configure 957 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641
  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. PKGCONFIG_DEPENDS
  621. SDL_RLD_FLAGS
  622. SDL_STATIC_LIBS
  623. SDL_LIBS
  624. SDL_CFLAGS
  625. bin_prefix_relpath
  626. cmake_prefix_relpath
  627. SDL_VENDOR_INFO
  628. INSTALL_SDL2_CONFIG
  629. LIBUSB_LIBS
  630. LIBUSB_CFLAGS
  631. IBUS_LIBS
  632. IBUS_CFLAGS
  633. DBUS_LIBS
  634. DBUS_CFLAGS
  635. LIBGBM_LIBS
  636. LIBGBM_CFLAGS
  637. LIBDRM_LIBS
  638. LIBDRM_CFLAGS
  639. DIRECTFB_LIBS
  640. DIRECTFB_CFLAGS
  641. X_EXTRA_LIBS
  642. X_LIBS
  643. X_PRE_LIBS
  644. X_CFLAGS
  645. XMKMF
  646. RPI_LIBS
  647. RPI_CFLAGS
  648. DECOR_LIBS
  649. DECOR_CFLAGS
  650. FUSIONSOUND_LIBS
  651. FUSIONSOUND_CFLAGS
  652. SNDIO_LIBS
  653. SNDIO_CFLAGS
  654. ARTSCONFIG
  655. PULSEAUDIO_LIBS
  656. PULSEAUDIO_CFLAGS
  657. PIPEWIRE_LIBS
  658. PIPEWIRE_CFLAGS
  659. ESD_CONFIG
  660. ESD_LIBS
  661. ESD_CFLAGS
  662. JACK_LIBS
  663. JACK_CFLAGS
  664. ALSA_LIBS
  665. ALSA_CFLAGS
  666. ALLOCA
  667. CPP
  668. LIBTOOLLINKERTAG
  669. LINKER
  670. SORT
  671. PKG_CONFIG_LIBDIR
  672. PKG_CONFIG_PATH
  673. PKG_CONFIG
  674. SET_MAKE
  675. INSTALL_DATA
  676. INSTALL_SCRIPT
  677. INSTALL_PROGRAM
  678. CXXCPP
  679. ac_ct_CXX
  680. CXXFLAGS
  681. CXX
  682. LT_AGE
  683. LT_REVISION
  684. LT_CURRENT
  685. LT_RELEASE
  686. RC
  687. LT_SYS_LIBRARY_PATH
  688. OTOOL64
  689. OTOOL
  690. LIPO
  691. NMEDIT
  692. DSYMUTIL
  693. MANIFEST_TOOL
  694. AWK
  695. RANLIB
  696. STRIP
  697. ac_ct_AR
  698. AR
  699. LN_S
  700. NM
  701. ac_ct_DUMPBIN
  702. DUMPBIN
  703. LD
  704. FGREP
  705. EGREP
  706. GREP
  707. SED
  708. OBJEXT
  709. EXEEXT
  710. ac_ct_CC
  711. CPPFLAGS
  712. LDFLAGS
  713. CFLAGS
  714. CC
  715. host_os
  716. host_vendor
  717. host_cpu
  718. host
  719. build_os
  720. build_vendor
  721. build_cpu
  722. build
  723. LIBTOOL
  724. OBJDUMP
  725. DLLTOOL
  726. AS
  727. SDL_VERSION
  728. SDL_BINARY_AGE
  729. SDL_INTERFACE_AGE
  730. SDL_MICRO_VERSION
  731. SDL_MINOR_VERSION
  732. SDL_MAJOR_VERSION
  733. target_alias
  734. host_alias
  735. build_alias
  736. LIBS
  737. ECHO_T
  738. ECHO_N
  739. ECHO_C
  740. DEFS
  741. mandir
  742. localedir
  743. libdir
  744. psdir
  745. pdfdir
  746. dvidir
  747. htmldir
  748. infodir
  749. docdir
  750. oldincludedir
  751. includedir
  752. runstatedir
  753. localstatedir
  754. sharedstatedir
  755. sysconfdir
  756. datadir
  757. datarootdir
  758. libexecdir
  759. sbindir
  760. bindir
  761. program_transform_name
  762. prefix
  763. exec_prefix
  764. PACKAGE_URL
  765. PACKAGE_BUGREPORT
  766. PACKAGE_STRING
  767. PACKAGE_VERSION
  768. PACKAGE_TARNAME
  769. PACKAGE_NAME
  770. PATH_SEPARATOR
  771. SHELL'
  772. ac_subst_files=''
  773. ac_user_opts='
  774. enable_option_checking
  775. enable_shared
  776. enable_static
  777. with_pic
  778. enable_fast_install
  779. with_aix_soname
  780. with_gnu_ld
  781. with_sysroot
  782. enable_libtool_lock
  783. enable_largefile
  784. enable_assertions
  785. enable_dependency_tracking
  786. enable_libc
  787. enable_system_iconv
  788. enable_gcc_atomics
  789. enable_atomic
  790. enable_audio
  791. enable_video
  792. enable_render
  793. enable_events
  794. enable_joystick
  795. enable_haptic
  796. enable_hidapi
  797. enable_sensor
  798. enable_power
  799. enable_filesystem
  800. enable_timers
  801. enable_file
  802. enable_misc
  803. enable_locale
  804. enable_loadso
  805. enable_cpuinfo
  806. enable_assembly
  807. enable_ssemath
  808. enable_mmx
  809. enable_3dnow
  810. enable_sse
  811. enable_sse2
  812. enable_sse3
  813. enable_altivec
  814. enable_lsx
  815. enable_lasx
  816. enable_oss
  817. enable_alsa
  818. with_alsa_prefix
  819. with_alsa_inc_prefix
  820. enable_alsatest
  821. enable_alsa_shared
  822. enable_jack
  823. enable_jack_shared
  824. enable_esd
  825. with_esd_prefix
  826. with_esd_exec_prefix
  827. enable_esdtest
  828. enable_esd_shared
  829. enable_pipewire
  830. enable_pipewire_shared
  831. enable_pulseaudio
  832. enable_pulseaudio_shared
  833. enable_arts
  834. enable_arts_shared
  835. enable_nas
  836. enable_nas_shared
  837. enable_sndio
  838. enable_sndio_shared
  839. enable_fusionsound
  840. enable_fusionsound_shared
  841. enable_diskaudio
  842. enable_dummyaudio
  843. enable_libsamplerate
  844. enable_libsamplerate_shared
  845. enable_arm_simd
  846. enable_arm_neon
  847. enable_werror
  848. enable_video_wayland
  849. enable_video_wayland_qt_touch
  850. enable_wayland_shared
  851. enable_libdecor
  852. enable_libdecor_shared
  853. enable_video_rpi
  854. enable_video_x11
  855. with_x
  856. enable_x11_shared
  857. enable_video_x11_xcursor
  858. enable_video_x11_xdbe
  859. enable_video_x11_xinput
  860. enable_video_x11_xfixes
  861. enable_video_x11_xrandr
  862. enable_video_x11_scrnsaver
  863. enable_video_x11_xshape
  864. enable_video_vivante
  865. enable_video_cocoa
  866. enable_video_metal
  867. enable_render_metal
  868. enable_video_directfb
  869. enable_directfb_shared
  870. enable_video_kmsdrm
  871. enable_kmsdrm_shared
  872. enable_video_dummy
  873. enable_video_offscreen
  874. enable_video_opengl
  875. enable_video_opengles
  876. enable_video_opengles1
  877. enable_video_opengles2
  878. enable_video_vulkan
  879. enable_libudev
  880. enable_dbus
  881. enable_ime
  882. enable_ibus
  883. enable_fcitx
  884. enable_joystick_mfi
  885. enable_pthreads
  886. enable_pthread_sem
  887. enable_directx
  888. enable_xinput
  889. enable_wasapi
  890. enable_hidapi_joystick
  891. enable_hidapi_libusb
  892. enable_clock_gettime
  893. enable_rpath
  894. enable_backgrounding_signal
  895. enable_foregrounding_signal
  896. enable_joystick_virtual
  897. enable_render_d3d
  898. enable_sdl2_config
  899. enable_vendor_info
  900. '
  901. ac_precious_vars='build_alias
  902. host_alias
  903. target_alias
  904. CC
  905. CFLAGS
  906. LDFLAGS
  907. LIBS
  908. CPPFLAGS
  909. LT_SYS_LIBRARY_PATH
  910. CXX
  911. CXXFLAGS
  912. CCC
  913. CXXCPP
  914. PKG_CONFIG
  915. PKG_CONFIG_PATH
  916. PKG_CONFIG_LIBDIR
  917. CPP
  918. JACK_CFLAGS
  919. JACK_LIBS
  920. ESD_CFLAGS
  921. ESD_LIBS
  922. PIPEWIRE_CFLAGS
  923. PIPEWIRE_LIBS
  924. PULSEAUDIO_CFLAGS
  925. PULSEAUDIO_LIBS
  926. SNDIO_CFLAGS
  927. SNDIO_LIBS
  928. FUSIONSOUND_CFLAGS
  929. FUSIONSOUND_LIBS
  930. DECOR_CFLAGS
  931. DECOR_LIBS
  932. RPI_CFLAGS
  933. RPI_LIBS
  934. XMKMF
  935. DIRECTFB_CFLAGS
  936. DIRECTFB_LIBS
  937. LIBDRM_CFLAGS
  938. LIBDRM_LIBS
  939. LIBGBM_CFLAGS
  940. LIBGBM_LIBS
  941. DBUS_CFLAGS
  942. DBUS_LIBS
  943. IBUS_CFLAGS
  944. IBUS_LIBS
  945. LIBUSB_CFLAGS
  946. LIBUSB_LIBS'
  947. # Initialize some variables set by options.
  948. ac_init_help=
  949. ac_init_version=false
  950. ac_unrecognized_opts=
  951. ac_unrecognized_sep=
  952. # The variables have the same names as the options, with
  953. # dashes changed to underlines.
  954. cache_file=/dev/null
  955. exec_prefix=NONE
  956. no_create=
  957. no_recursion=
  958. prefix=NONE
  959. program_prefix=NONE
  960. program_suffix=NONE
  961. program_transform_name=s,x,x,
  962. silent=
  963. site=
  964. srcdir=
  965. verbose=
  966. x_includes=NONE
  967. x_libraries=NONE
  968. # Installation directory options.
  969. # These are left unexpanded so users can "make install exec_prefix=/foo"
  970. # and all the variables that are supposed to be based on exec_prefix
  971. # by default will actually change.
  972. # Use braces instead of parens because sh, perl, etc. also accept them.
  973. # (The list follows the same order as the GNU Coding Standards.)
  974. bindir='${exec_prefix}/bin'
  975. sbindir='${exec_prefix}/sbin'
  976. libexecdir='${exec_prefix}/libexec'
  977. datarootdir='${prefix}/share'
  978. datadir='${datarootdir}'
  979. sysconfdir='${prefix}/etc'
  980. sharedstatedir='${prefix}/com'
  981. localstatedir='${prefix}/var'
  982. runstatedir='${localstatedir}/run'
  983. includedir='${prefix}/include'
  984. oldincludedir='/usr/include'
  985. docdir='${datarootdir}/doc/${PACKAGE}'
  986. infodir='${datarootdir}/info'
  987. htmldir='${docdir}'
  988. dvidir='${docdir}'
  989. pdfdir='${docdir}'
  990. psdir='${docdir}'
  991. libdir='${exec_prefix}/lib'
  992. localedir='${datarootdir}/locale'
  993. mandir='${datarootdir}/man'
  994. ac_prev=
  995. ac_dashdash=
  996. for ac_option
  997. do
  998. # If the previous option needs an argument, assign it.
  999. if test -n "$ac_prev"; then
  1000. eval $ac_prev=\$ac_option
  1001. ac_prev=
  1002. continue
  1003. fi
  1004. case $ac_option in
  1005. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1006. *=) ac_optarg= ;;
  1007. *) ac_optarg=yes ;;
  1008. esac
  1009. case $ac_dashdash$ac_option in
  1010. --)
  1011. ac_dashdash=yes ;;
  1012. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1013. ac_prev=bindir ;;
  1014. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1015. bindir=$ac_optarg ;;
  1016. -build | --build | --buil | --bui | --bu)
  1017. ac_prev=build_alias ;;
  1018. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1019. build_alias=$ac_optarg ;;
  1020. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1021. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1022. ac_prev=cache_file ;;
  1023. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1024. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1025. cache_file=$ac_optarg ;;
  1026. --config-cache | -C)
  1027. cache_file=config.cache ;;
  1028. -datadir | --datadir | --datadi | --datad)
  1029. ac_prev=datadir ;;
  1030. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1031. datadir=$ac_optarg ;;
  1032. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1033. | --dataroo | --dataro | --datar)
  1034. ac_prev=datarootdir ;;
  1035. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1036. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1037. datarootdir=$ac_optarg ;;
  1038. -disable-* | --disable-*)
  1039. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1040. # Reject names that are not valid shell variable names.
  1041. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1042. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1043. ac_useropt_orig=$ac_useropt
  1044. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1045. case $ac_user_opts in
  1046. *"
  1047. "enable_$ac_useropt"
  1048. "*) ;;
  1049. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1050. ac_unrecognized_sep=', ';;
  1051. esac
  1052. eval enable_$ac_useropt=no ;;
  1053. -docdir | --docdir | --docdi | --doc | --do)
  1054. ac_prev=docdir ;;
  1055. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1056. docdir=$ac_optarg ;;
  1057. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1058. ac_prev=dvidir ;;
  1059. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1060. dvidir=$ac_optarg ;;
  1061. -enable-* | --enable-*)
  1062. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1063. # Reject names that are not valid shell variable names.
  1064. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1065. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1066. ac_useropt_orig=$ac_useropt
  1067. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1068. case $ac_user_opts in
  1069. *"
  1070. "enable_$ac_useropt"
  1071. "*) ;;
  1072. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1073. ac_unrecognized_sep=', ';;
  1074. esac
  1075. eval enable_$ac_useropt=\$ac_optarg ;;
  1076. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1077. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1078. | --exec | --exe | --ex)
  1079. ac_prev=exec_prefix ;;
  1080. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1081. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1082. | --exec=* | --exe=* | --ex=*)
  1083. exec_prefix=$ac_optarg ;;
  1084. -gas | --gas | --ga | --g)
  1085. # Obsolete; use --with-gas.
  1086. with_gas=yes ;;
  1087. -help | --help | --hel | --he | -h)
  1088. ac_init_help=long ;;
  1089. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1090. ac_init_help=recursive ;;
  1091. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1092. ac_init_help=short ;;
  1093. -host | --host | --hos | --ho)
  1094. ac_prev=host_alias ;;
  1095. -host=* | --host=* | --hos=* | --ho=*)
  1096. host_alias=$ac_optarg ;;
  1097. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1098. ac_prev=htmldir ;;
  1099. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1100. | --ht=*)
  1101. htmldir=$ac_optarg ;;
  1102. -includedir | --includedir | --includedi | --included | --include \
  1103. | --includ | --inclu | --incl | --inc)
  1104. ac_prev=includedir ;;
  1105. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1106. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1107. includedir=$ac_optarg ;;
  1108. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1109. ac_prev=infodir ;;
  1110. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1111. infodir=$ac_optarg ;;
  1112. -libdir | --libdir | --libdi | --libd)
  1113. ac_prev=libdir ;;
  1114. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1115. libdir=$ac_optarg ;;
  1116. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1117. | --libexe | --libex | --libe)
  1118. ac_prev=libexecdir ;;
  1119. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1120. | --libexe=* | --libex=* | --libe=*)
  1121. libexecdir=$ac_optarg ;;
  1122. -localedir | --localedir | --localedi | --localed | --locale)
  1123. ac_prev=localedir ;;
  1124. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1125. localedir=$ac_optarg ;;
  1126. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1127. | --localstate | --localstat | --localsta | --localst | --locals)
  1128. ac_prev=localstatedir ;;
  1129. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1130. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1131. localstatedir=$ac_optarg ;;
  1132. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1133. ac_prev=mandir ;;
  1134. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1135. mandir=$ac_optarg ;;
  1136. -nfp | --nfp | --nf)
  1137. # Obsolete; use --without-fp.
  1138. with_fp=no ;;
  1139. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1140. | --no-cr | --no-c | -n)
  1141. no_create=yes ;;
  1142. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1143. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1144. no_recursion=yes ;;
  1145. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1146. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1147. | --oldin | --oldi | --old | --ol | --o)
  1148. ac_prev=oldincludedir ;;
  1149. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1150. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1151. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1152. oldincludedir=$ac_optarg ;;
  1153. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1154. ac_prev=prefix ;;
  1155. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1156. prefix=$ac_optarg ;;
  1157. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1158. | --program-pre | --program-pr | --program-p)
  1159. ac_prev=program_prefix ;;
  1160. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1161. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1162. program_prefix=$ac_optarg ;;
  1163. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1164. | --program-suf | --program-su | --program-s)
  1165. ac_prev=program_suffix ;;
  1166. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1167. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1168. program_suffix=$ac_optarg ;;
  1169. -program-transform-name | --program-transform-name \
  1170. | --program-transform-nam | --program-transform-na \
  1171. | --program-transform-n | --program-transform- \
  1172. | --program-transform | --program-transfor \
  1173. | --program-transfo | --program-transf \
  1174. | --program-trans | --program-tran \
  1175. | --progr-tra | --program-tr | --program-t)
  1176. ac_prev=program_transform_name ;;
  1177. -program-transform-name=* | --program-transform-name=* \
  1178. | --program-transform-nam=* | --program-transform-na=* \
  1179. | --program-transform-n=* | --program-transform-=* \
  1180. | --program-transform=* | --program-transfor=* \
  1181. | --program-transfo=* | --program-transf=* \
  1182. | --program-trans=* | --program-tran=* \
  1183. | --progr-tra=* | --program-tr=* | --program-t=*)
  1184. program_transform_name=$ac_optarg ;;
  1185. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1186. ac_prev=pdfdir ;;
  1187. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1188. pdfdir=$ac_optarg ;;
  1189. -psdir | --psdir | --psdi | --psd | --ps)
  1190. ac_prev=psdir ;;
  1191. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1192. psdir=$ac_optarg ;;
  1193. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1194. | -silent | --silent | --silen | --sile | --sil)
  1195. silent=yes ;;
  1196. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1197. | --runstate | --runstat | --runsta | --runst | --runs \
  1198. | --run | --ru | --r)
  1199. ac_prev=runstatedir ;;
  1200. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1201. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1202. | --run=* | --ru=* | --r=*)
  1203. runstatedir=$ac_optarg ;;
  1204. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1205. ac_prev=sbindir ;;
  1206. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1207. | --sbi=* | --sb=*)
  1208. sbindir=$ac_optarg ;;
  1209. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1210. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1211. | --sharedst | --shareds | --shared | --share | --shar \
  1212. | --sha | --sh)
  1213. ac_prev=sharedstatedir ;;
  1214. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1215. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1216. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1217. | --sha=* | --sh=*)
  1218. sharedstatedir=$ac_optarg ;;
  1219. -site | --site | --sit)
  1220. ac_prev=site ;;
  1221. -site=* | --site=* | --sit=*)
  1222. site=$ac_optarg ;;
  1223. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1224. ac_prev=srcdir ;;
  1225. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1226. srcdir=$ac_optarg ;;
  1227. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1228. | --syscon | --sysco | --sysc | --sys | --sy)
  1229. ac_prev=sysconfdir ;;
  1230. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1231. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1232. sysconfdir=$ac_optarg ;;
  1233. -target | --target | --targe | --targ | --tar | --ta | --t)
  1234. ac_prev=target_alias ;;
  1235. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1236. target_alias=$ac_optarg ;;
  1237. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1238. verbose=yes ;;
  1239. -version | --version | --versio | --versi | --vers | -V)
  1240. ac_init_version=: ;;
  1241. -with-* | --with-*)
  1242. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1243. # Reject names that are not valid shell variable names.
  1244. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1245. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1246. ac_useropt_orig=$ac_useropt
  1247. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1248. case $ac_user_opts in
  1249. *"
  1250. "with_$ac_useropt"
  1251. "*) ;;
  1252. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1253. ac_unrecognized_sep=', ';;
  1254. esac
  1255. eval with_$ac_useropt=\$ac_optarg ;;
  1256. -without-* | --without-*)
  1257. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1258. # Reject names that are not valid shell variable names.
  1259. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1260. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1261. ac_useropt_orig=$ac_useropt
  1262. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1263. case $ac_user_opts in
  1264. *"
  1265. "with_$ac_useropt"
  1266. "*) ;;
  1267. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1268. ac_unrecognized_sep=', ';;
  1269. esac
  1270. eval with_$ac_useropt=no ;;
  1271. --x)
  1272. # Obsolete; use --with-x.
  1273. with_x=yes ;;
  1274. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1275. | --x-incl | --x-inc | --x-in | --x-i)
  1276. ac_prev=x_includes ;;
  1277. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1278. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1279. x_includes=$ac_optarg ;;
  1280. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1281. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1282. ac_prev=x_libraries ;;
  1283. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1284. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1285. x_libraries=$ac_optarg ;;
  1286. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1287. Try \`$0 --help' for more information"
  1288. ;;
  1289. *=*)
  1290. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1291. # Reject names that are not valid shell variable names.
  1292. case $ac_envvar in #(
  1293. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1294. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1295. esac
  1296. eval $ac_envvar=\$ac_optarg
  1297. export $ac_envvar ;;
  1298. *)
  1299. # FIXME: should be removed in autoconf 3.0.
  1300. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1301. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1302. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1303. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1304. ;;
  1305. esac
  1306. done
  1307. if test -n "$ac_prev"; then
  1308. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1309. as_fn_error $? "missing argument to $ac_option"
  1310. fi
  1311. if test -n "$ac_unrecognized_opts"; then
  1312. case $enable_option_checking in
  1313. no) ;;
  1314. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1315. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1316. esac
  1317. fi
  1318. # Check all directory arguments for consistency.
  1319. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1320. datadir sysconfdir sharedstatedir localstatedir includedir \
  1321. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1322. libdir localedir mandir runstatedir
  1323. do
  1324. eval ac_val=\$$ac_var
  1325. # Remove trailing slashes.
  1326. case $ac_val in
  1327. */ )
  1328. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1329. eval $ac_var=\$ac_val;;
  1330. esac
  1331. # Be sure to have absolute directory names.
  1332. case $ac_val in
  1333. [\\/$]* | ?:[\\/]* ) continue;;
  1334. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1335. esac
  1336. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1337. done
  1338. # There might be people who depend on the old broken behavior: `$host'
  1339. # used to hold the argument of --host etc.
  1340. # FIXME: To remove some day.
  1341. build=$build_alias
  1342. host=$host_alias
  1343. target=$target_alias
  1344. # FIXME: To remove some day.
  1345. if test "x$host_alias" != x; then
  1346. if test "x$build_alias" = x; then
  1347. cross_compiling=maybe
  1348. elif test "x$build_alias" != "x$host_alias"; then
  1349. cross_compiling=yes
  1350. fi
  1351. fi
  1352. ac_tool_prefix=
  1353. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1354. test "$silent" = yes && exec 6>/dev/null
  1355. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1356. ac_ls_di=`ls -di .` &&
  1357. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1358. as_fn_error $? "working directory cannot be determined"
  1359. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1360. as_fn_error $? "pwd does not report name of working directory"
  1361. # Find the source files, if location was not specified.
  1362. if test -z "$srcdir"; then
  1363. ac_srcdir_defaulted=yes
  1364. # Try the directory containing this script, then the parent directory.
  1365. ac_confdir=`$as_dirname -- "$as_myself" ||
  1366. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1367. X"$as_myself" : 'X\(//\)[^/]' \| \
  1368. X"$as_myself" : 'X\(//\)$' \| \
  1369. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1370. printf "%s\n" X"$as_myself" |
  1371. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1372. s//\1/
  1373. q
  1374. }
  1375. /^X\(\/\/\)[^/].*/{
  1376. s//\1/
  1377. q
  1378. }
  1379. /^X\(\/\/\)$/{
  1380. s//\1/
  1381. q
  1382. }
  1383. /^X\(\/\).*/{
  1384. s//\1/
  1385. q
  1386. }
  1387. s/.*/./; q'`
  1388. srcdir=$ac_confdir
  1389. if test ! -r "$srcdir/$ac_unique_file"; then
  1390. srcdir=..
  1391. fi
  1392. else
  1393. ac_srcdir_defaulted=no
  1394. fi
  1395. if test ! -r "$srcdir/$ac_unique_file"; then
  1396. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1397. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1398. fi
  1399. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1400. ac_abs_confdir=`(
  1401. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1402. pwd)`
  1403. # When building in place, set srcdir=.
  1404. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1405. srcdir=.
  1406. fi
  1407. # Remove unnecessary trailing slashes from srcdir.
  1408. # Double slashes in file names in object file debugging info
  1409. # mess up M-x gdb in Emacs.
  1410. case $srcdir in
  1411. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1412. esac
  1413. for ac_var in $ac_precious_vars; do
  1414. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1415. eval ac_env_${ac_var}_value=\$${ac_var}
  1416. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1417. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1418. done
  1419. #
  1420. # Report the --help message.
  1421. #
  1422. if test "$ac_init_help" = "long"; then
  1423. # Omit some internal or obsolete options to make the list less imposing.
  1424. # This message is too long to be a string in the A/UX 3.1 sh.
  1425. cat <<_ACEOF
  1426. \`configure' configures this package to adapt to many kinds of systems.
  1427. Usage: $0 [OPTION]... [VAR=VALUE]...
  1428. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1429. VAR=VALUE. See below for descriptions of some of the useful variables.
  1430. Defaults for the options are specified in brackets.
  1431. Configuration:
  1432. -h, --help display this help and exit
  1433. --help=short display options specific to this package
  1434. --help=recursive display the short help of all the included packages
  1435. -V, --version display version information and exit
  1436. -q, --quiet, --silent do not print \`checking ...' messages
  1437. --cache-file=FILE cache test results in FILE [disabled]
  1438. -C, --config-cache alias for \`--cache-file=config.cache'
  1439. -n, --no-create do not create output files
  1440. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1441. Installation directories:
  1442. --prefix=PREFIX install architecture-independent files in PREFIX
  1443. [$ac_default_prefix]
  1444. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1445. [PREFIX]
  1446. By default, \`make install' will install all the files in
  1447. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1448. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1449. for instance \`--prefix=\$HOME'.
  1450. For better control, use the options below.
  1451. Fine tuning of the installation directories:
  1452. --bindir=DIR user executables [EPREFIX/bin]
  1453. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1454. --libexecdir=DIR program executables [EPREFIX/libexec]
  1455. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1456. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1457. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1458. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1459. --libdir=DIR object code libraries [EPREFIX/lib]
  1460. --includedir=DIR C header files [PREFIX/include]
  1461. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1462. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1463. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1464. --infodir=DIR info documentation [DATAROOTDIR/info]
  1465. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1466. --mandir=DIR man documentation [DATAROOTDIR/man]
  1467. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1468. --htmldir=DIR html documentation [DOCDIR]
  1469. --dvidir=DIR dvi documentation [DOCDIR]
  1470. --pdfdir=DIR pdf documentation [DOCDIR]
  1471. --psdir=DIR ps documentation [DOCDIR]
  1472. _ACEOF
  1473. cat <<\_ACEOF
  1474. X features:
  1475. --x-includes=DIR X include files are in DIR
  1476. --x-libraries=DIR X library files are in DIR
  1477. System types:
  1478. --build=BUILD configure for building on BUILD [guessed]
  1479. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1480. _ACEOF
  1481. fi
  1482. if test -n "$ac_init_help"; then
  1483. cat <<\_ACEOF
  1484. Optional Features:
  1485. --disable-option-checking ignore unrecognized --enable/--with options
  1486. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1487. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1488. --enable-shared[=PKGS] build shared libraries [default=yes]
  1489. --enable-static[=PKGS] build static libraries [default=yes]
  1490. --enable-fast-install[=PKGS]
  1491. optimize for fast installation [default=yes]
  1492. --disable-libtool-lock avoid locking (might break parallel builds)
  1493. --disable-largefile omit support for large files
  1494. --enable-assertions Enable internal sanity checks
  1495. (auto/disabled/release/enabled/paranoid)
  1496. [default=auto]
  1497. --enable-dependency-tracking
  1498. Use gcc -MMD -MT dependency tracking [default=yes]
  1499. --enable-libc Use the system C library [default=yes]
  1500. --enable-system-iconv Use iconv() from system-installed libraries
  1501. [default=yes]
  1502. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1503. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1504. --enable-audio Enable the audio subsystem [default=yes]
  1505. --enable-video Enable the video subsystem [default=yes]
  1506. --enable-render Enable the render subsystem [default=yes]
  1507. --enable-events Enable the events subsystem [default=yes]
  1508. --enable-joystick Enable the joystick subsystem [default=yes]
  1509. --enable-haptic Enable the haptic (force feedback) subsystem
  1510. [default=yes]
  1511. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1512. --enable-sensor Enable the sensor subsystem [default=yes]
  1513. --enable-power Enable the power subsystem [default=yes]
  1514. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1515. --enable-timers Enable the timer subsystem [default=yes]
  1516. --enable-file Enable the file subsystem [default=yes]
  1517. --enable-misc Enable the misc subsystem [default=yes]
  1518. --enable-locale Enable the locale subsystem [default=yes]
  1519. --enable-loadso Enable the shared object loading subsystem
  1520. [default=yes]
  1521. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1522. --enable-assembly Enable assembly routines [default=yes]
  1523. --enable-ssemath Allow GCC to use SSE floating point math
  1524. [default=maybe]
  1525. --enable-mmx use MMX assembly routines [default=yes]
  1526. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1527. --enable-sse use SSE assembly routines [default=yes]
  1528. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1529. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1530. --enable-altivec use Altivec assembly routines [default=yes]
  1531. --enable-lsx use LSX assembly routines [default=yes]
  1532. --enable-lasx use LASX assembly routines [default=yes]
  1533. --enable-oss support the OSS audio API [default=maybe]
  1534. --enable-alsa support the ALSA audio API [default=yes]
  1535. --disable-alsatest Do not try to compile and run a test Alsa program
  1536. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1537. --enable-jack use JACK audio [default=yes]
  1538. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1539. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1540. --disable-esdtest Do not try to compile and run a test ESD program
  1541. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1542. --enable-pipewire use Pipewire audio [default=yes]
  1543. --enable-pipewire-shared
  1544. dynamically load Pipewire support [default=yes]
  1545. --enable-pulseaudio use PulseAudio [default=yes]
  1546. --enable-pulseaudio-shared
  1547. dynamically load PulseAudio support [default=yes]
  1548. --enable-arts support the Analog Real Time Synthesizer
  1549. [default=yes]
  1550. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1551. --enable-nas support the NAS audio API [default=yes]
  1552. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1553. --enable-sndio support the sndio audio API [default=yes]
  1554. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1555. --enable-fusionsound use FusionSound audio driver [default=no]
  1556. --enable-fusionsound-shared
  1557. dynamically load fusionsound audio support
  1558. [default=yes]
  1559. --enable-diskaudio support the disk writer audio driver [default=yes]
  1560. --enable-dummyaudio support the dummy audio driver [default=yes]
  1561. --enable-libsamplerate use libsamplerate for audio rate conversion
  1562. [default=yes]
  1563. --enable-libsamplerate-shared
  1564. dynamically load libsamplerate [default=yes]
  1565. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1566. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1567. --enable-werror treat warnings as errors [default=no]
  1568. --enable-video-wayland use Wayland video driver [default=yes]
  1569. --enable-video-wayland-qt-touch
  1570. QtWayland server support for Wayland video driver
  1571. [default=yes]
  1572. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1573. --enable-libdecor use libdecor for Wayland client-side decorations
  1574. [default=yes]
  1575. --enable-libdecor-shared
  1576. dynamically load libdecor [default=yes]
  1577. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1578. --enable-video-x11 use X11 video driver [default=maybe]
  1579. --enable-x11-shared dynamically load X11 support [default=maybe]
  1580. --enable-video-x11-xcursor
  1581. enable X11 Xcursor support [default=yes]
  1582. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1583. --enable-video-x11-xinput
  1584. enable X11 XInput extension for manymouse, tablets,
  1585. etc [default=yes]
  1586. --enable-video-x11-xfixes
  1587. enable X11 Xfixes support [default=yes]
  1588. --enable-video-x11-xrandr
  1589. enable X11 Xrandr extension for fullscreen
  1590. [default=yes]
  1591. --enable-video-x11-scrnsaver
  1592. enable X11 screensaver extension [default=yes]
  1593. --enable-video-x11-xshape
  1594. enable X11 XShape support [default=yes]
  1595. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1596. --enable-video-cocoa use Cocoa video driver [default=yes]
  1597. --enable-video-metal include Metal support [default=yes]
  1598. --enable-render-metal enable the Metal render driver [default=yes]
  1599. --enable-video-directfb use DirectFB video driver [default=no]
  1600. --enable-directfb-shared
  1601. dynamically load directfb support [default=yes]
  1602. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1603. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1604. --enable-video-dummy use dummy video driver [default=yes]
  1605. --enable-video-offscreen
  1606. use offscreen video driver [default=yes]
  1607. --enable-video-opengl include OpenGL support [default=yes]
  1608. --enable-video-opengles include OpenGL ES support [default=yes]
  1609. --enable-video-opengles1
  1610. include OpenGL ES 1.1 support [default=yes]
  1611. --enable-video-opengles2
  1612. include OpenGL ES 2.0 support [default=yes]
  1613. --enable-video-vulkan include Vulkan support [default=yes]
  1614. --enable-libudev enable libudev support [default=yes]
  1615. --enable-dbus enable D-Bus support [default=yes]
  1616. --enable-ime enable IME support [default=yes]
  1617. --enable-ibus enable IBus support [default=yes]
  1618. --enable-fcitx enable fcitx support [default=yes]
  1619. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1620. --enable-pthreads use POSIX threads for multi-threading
  1621. [default=maybe]
  1622. --enable-pthread-sem use pthread semaphores [default=maybe]
  1623. --enable-directx use DirectX for Windows audio/video [default=yes]
  1624. --enable-xinput use Xinput for Windows [default=yes]
  1625. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1626. --enable-hidapi-joystick
  1627. use HIDAPI for low level joystick drivers
  1628. [default=yes]
  1629. --enable-hidapi-libusb use libusb for low level joystick drivers
  1630. [default=maybe]
  1631. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1632. UNIX [default=yes]
  1633. --enable-rpath use an rpath when linking SDL [default=yes]
  1634. --enable-backgrounding-signal
  1635. number to use for magic backgrounding signal or 'no'
  1636. [default=no]
  1637. --enable-foregrounding-signal
  1638. number to use for magic foregrounding signal or 'no'
  1639. [default=no]
  1640. --enable-joystick-virtual
  1641. enable virtual joystick APIs [default=yes]
  1642. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1643. --enable-sdl2-config Install sdl2-config [default=yes]
  1644. --enable-vendor-info=STRING
  1645. Add vendor info to SDL_REVISION
  1646. Optional Packages:
  1647. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1648. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1649. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1650. both]
  1651. --with-aix-soname=aix|svr4|both
  1652. shared library versioning (aka "SONAME") variant to
  1653. provide on AIX, [default=aix].
  1654. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1655. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1656. compiler's sysroot if not specified).
  1657. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1658. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1659. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1660. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1661. --with-x use the X Window System
  1662. Some influential environment variables:
  1663. CC C compiler command
  1664. CFLAGS C compiler flags
  1665. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1666. nonstandard directory <lib dir>
  1667. LIBS libraries to pass to the linker, e.g. -l<library>
  1668. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1669. you have headers in a nonstandard directory <include dir>
  1670. LT_SYS_LIBRARY_PATH
  1671. User-defined run-time library search path.
  1672. CXX C++ compiler command
  1673. CXXFLAGS C++ compiler flags
  1674. CXXCPP C++ preprocessor
  1675. PKG_CONFIG path to pkg-config utility
  1676. PKG_CONFIG_PATH
  1677. directories to add to pkg-config's search path
  1678. PKG_CONFIG_LIBDIR
  1679. path overriding pkg-config's built-in search path
  1680. CPP C preprocessor
  1681. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1682. JACK_LIBS linker flags for JACK, overriding pkg-config
  1683. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1684. ESD_LIBS linker flags for ESD, overriding pkg-config
  1685. PIPEWIRE_CFLAGS
  1686. C compiler flags for PIPEWIRE, overriding pkg-config
  1687. PIPEWIRE_LIBS
  1688. linker flags for PIPEWIRE, overriding pkg-config
  1689. PULSEAUDIO_CFLAGS
  1690. C compiler flags for PULSEAUDIO, overriding pkg-config
  1691. PULSEAUDIO_LIBS
  1692. linker flags for PULSEAUDIO, overriding pkg-config
  1693. SNDIO_CFLAGS
  1694. C compiler flags for SNDIO, overriding pkg-config
  1695. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1696. FUSIONSOUND_CFLAGS
  1697. C compiler flags for FUSIONSOUND, overriding pkg-config
  1698. FUSIONSOUND_LIBS
  1699. linker flags for FUSIONSOUND, overriding pkg-config
  1700. DECOR_CFLAGS
  1701. C compiler flags for DECOR, overriding pkg-config
  1702. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1703. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1704. RPI_LIBS linker flags for RPI, overriding pkg-config
  1705. XMKMF Path to xmkmf, Makefile generator for X Window System
  1706. DIRECTFB_CFLAGS
  1707. C compiler flags for DIRECTFB, overriding pkg-config
  1708. DIRECTFB_LIBS
  1709. linker flags for DIRECTFB, overriding pkg-config
  1710. LIBDRM_CFLAGS
  1711. C compiler flags for LIBDRM, overriding pkg-config
  1712. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1713. LIBGBM_CFLAGS
  1714. C compiler flags for LIBGBM, overriding pkg-config
  1715. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1716. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1717. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1718. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1719. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1720. LIBUSB_CFLAGS
  1721. C compiler flags for LIBUSB, overriding pkg-config
  1722. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1723. Use these variables to override the choices made by `configure' or to help
  1724. it to find libraries and programs with nonstandard names/locations.
  1725. Report bugs to the package provider.
  1726. _ACEOF
  1727. ac_status=$?
  1728. fi
  1729. if test "$ac_init_help" = "recursive"; then
  1730. # If there are subdirs, report their specific --help.
  1731. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1732. test -d "$ac_dir" ||
  1733. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1734. continue
  1735. ac_builddir=.
  1736. case "$ac_dir" in
  1737. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1738. *)
  1739. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1740. # A ".." for each directory in $ac_dir_suffix.
  1741. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1742. case $ac_top_builddir_sub in
  1743. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1744. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1745. esac ;;
  1746. esac
  1747. ac_abs_top_builddir=$ac_pwd
  1748. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1749. # for backward compatibility:
  1750. ac_top_builddir=$ac_top_build_prefix
  1751. case $srcdir in
  1752. .) # We are building in place.
  1753. ac_srcdir=.
  1754. ac_top_srcdir=$ac_top_builddir_sub
  1755. ac_abs_top_srcdir=$ac_pwd ;;
  1756. [\\/]* | ?:[\\/]* ) # Absolute name.
  1757. ac_srcdir=$srcdir$ac_dir_suffix;
  1758. ac_top_srcdir=$srcdir
  1759. ac_abs_top_srcdir=$srcdir ;;
  1760. *) # Relative name.
  1761. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1762. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1763. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1764. esac
  1765. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1766. cd "$ac_dir" || { ac_status=$?; continue; }
  1767. # Check for configure.gnu first; this name is used for a wrapper for
  1768. # Metaconfig's "Configure" on case-insensitive file systems.
  1769. if test -f "$ac_srcdir/configure.gnu"; then
  1770. echo &&
  1771. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1772. elif test -f "$ac_srcdir/configure"; then
  1773. echo &&
  1774. $SHELL "$ac_srcdir/configure" --help=recursive
  1775. else
  1776. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1777. fi || ac_status=$?
  1778. cd "$ac_pwd" || { ac_status=$?; break; }
  1779. done
  1780. fi
  1781. test -n "$ac_init_help" && exit $ac_status
  1782. if $ac_init_version; then
  1783. cat <<\_ACEOF
  1784. configure
  1785. generated by GNU Autoconf 2.71
  1786. Copyright (C) 2021 Free Software Foundation, Inc.
  1787. This configure script is free software; the Free Software Foundation
  1788. gives unlimited permission to copy, distribute and modify it.
  1789. _ACEOF
  1790. exit
  1791. fi
  1792. ## ------------------------ ##
  1793. ## Autoconf initialization. ##
  1794. ## ------------------------ ##
  1795. # ac_fn_c_try_compile LINENO
  1796. # --------------------------
  1797. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1798. ac_fn_c_try_compile ()
  1799. {
  1800. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1801. rm -f conftest.$ac_objext conftest.beam
  1802. if { { ac_try="$ac_compile"
  1803. case "(($ac_try" in
  1804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1805. *) ac_try_echo=$ac_try;;
  1806. esac
  1807. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1808. printf "%s\n" "$ac_try_echo"; } >&5
  1809. (eval "$ac_compile") 2>conftest.err
  1810. ac_status=$?
  1811. if test -s conftest.err; then
  1812. grep -v '^ *+' conftest.err >conftest.er1
  1813. cat conftest.er1 >&5
  1814. mv -f conftest.er1 conftest.err
  1815. fi
  1816. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1817. test $ac_status = 0; } && {
  1818. test -z "$ac_c_werror_flag" ||
  1819. test ! -s conftest.err
  1820. } && test -s conftest.$ac_objext
  1821. then :
  1822. ac_retval=0
  1823. else $as_nop
  1824. printf "%s\n" "$as_me: failed program was:" >&5
  1825. sed 's/^/| /' conftest.$ac_ext >&5
  1826. ac_retval=1
  1827. fi
  1828. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1829. as_fn_set_status $ac_retval
  1830. } # ac_fn_c_try_compile
  1831. # ac_fn_c_try_link LINENO
  1832. # -----------------------
  1833. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1834. ac_fn_c_try_link ()
  1835. {
  1836. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1837. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1838. if { { ac_try="$ac_link"
  1839. case "(($ac_try" in
  1840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1841. *) ac_try_echo=$ac_try;;
  1842. esac
  1843. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1844. printf "%s\n" "$ac_try_echo"; } >&5
  1845. (eval "$ac_link") 2>conftest.err
  1846. ac_status=$?
  1847. if test -s conftest.err; then
  1848. grep -v '^ *+' conftest.err >conftest.er1
  1849. cat conftest.er1 >&5
  1850. mv -f conftest.er1 conftest.err
  1851. fi
  1852. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1853. test $ac_status = 0; } && {
  1854. test -z "$ac_c_werror_flag" ||
  1855. test ! -s conftest.err
  1856. } && test -s conftest$ac_exeext && {
  1857. test "$cross_compiling" = yes ||
  1858. test -x conftest$ac_exeext
  1859. }
  1860. then :
  1861. ac_retval=0
  1862. else $as_nop
  1863. printf "%s\n" "$as_me: failed program was:" >&5
  1864. sed 's/^/| /' conftest.$ac_ext >&5
  1865. ac_retval=1
  1866. fi
  1867. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1868. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1869. # interfere with the next link command; also delete a directory that is
  1870. # left behind by Apple's compiler. We do this before executing the actions.
  1871. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1872. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1873. as_fn_set_status $ac_retval
  1874. } # ac_fn_c_try_link
  1875. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1876. # -------------------------------------------------------
  1877. # Tests whether HEADER exists and can be compiled using the include files in
  1878. # INCLUDES, setting the cache variable VAR accordingly.
  1879. ac_fn_c_check_header_compile ()
  1880. {
  1881. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1883. printf %s "checking for $2... " >&6; }
  1884. if eval test \${$3+y}
  1885. then :
  1886. printf %s "(cached) " >&6
  1887. else $as_nop
  1888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1889. /* end confdefs.h. */
  1890. $4
  1891. #include <$2>
  1892. _ACEOF
  1893. if ac_fn_c_try_compile "$LINENO"
  1894. then :
  1895. eval "$3=yes"
  1896. else $as_nop
  1897. eval "$3=no"
  1898. fi
  1899. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1900. fi
  1901. eval ac_res=\$$3
  1902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1903. printf "%s\n" "$ac_res" >&6; }
  1904. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1905. } # ac_fn_c_check_header_compile
  1906. # ac_fn_c_check_func LINENO FUNC VAR
  1907. # ----------------------------------
  1908. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1909. ac_fn_c_check_func ()
  1910. {
  1911. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1913. printf %s "checking for $2... " >&6; }
  1914. if eval test \${$3+y}
  1915. then :
  1916. printf %s "(cached) " >&6
  1917. else $as_nop
  1918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1919. /* end confdefs.h. */
  1920. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1921. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1922. #define $2 innocuous_$2
  1923. /* System header to define __stub macros and hopefully few prototypes,
  1924. which can conflict with char $2 (); below. */
  1925. #include <limits.h>
  1926. #undef $2
  1927. /* Override any GCC internal prototype to avoid an error.
  1928. Use char because int might match the return type of a GCC
  1929. builtin and then its argument prototype would still apply. */
  1930. #ifdef __cplusplus
  1931. extern "C"
  1932. #endif
  1933. char $2 ();
  1934. /* The GNU C library defines this for functions which it implements
  1935. to always fail with ENOSYS. Some functions are actually named
  1936. something starting with __ and the normal name is an alias. */
  1937. #if defined __stub_$2 || defined __stub___$2
  1938. choke me
  1939. #endif
  1940. int
  1941. main (void)
  1942. {
  1943. return $2 ();
  1944. ;
  1945. return 0;
  1946. }
  1947. _ACEOF
  1948. if ac_fn_c_try_link "$LINENO"
  1949. then :
  1950. eval "$3=yes"
  1951. else $as_nop
  1952. eval "$3=no"
  1953. fi
  1954. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1955. conftest$ac_exeext conftest.$ac_ext
  1956. fi
  1957. eval ac_res=\$$3
  1958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1959. printf "%s\n" "$ac_res" >&6; }
  1960. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1961. } # ac_fn_c_check_func
  1962. # ac_fn_cxx_try_compile LINENO
  1963. # ----------------------------
  1964. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1965. ac_fn_cxx_try_compile ()
  1966. {
  1967. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1968. rm -f conftest.$ac_objext conftest.beam
  1969. if { { ac_try="$ac_compile"
  1970. case "(($ac_try" in
  1971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1972. *) ac_try_echo=$ac_try;;
  1973. esac
  1974. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1975. printf "%s\n" "$ac_try_echo"; } >&5
  1976. (eval "$ac_compile") 2>conftest.err
  1977. ac_status=$?
  1978. if test -s conftest.err; then
  1979. grep -v '^ *+' conftest.err >conftest.er1
  1980. cat conftest.er1 >&5
  1981. mv -f conftest.er1 conftest.err
  1982. fi
  1983. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1984. test $ac_status = 0; } && {
  1985. test -z "$ac_cxx_werror_flag" ||
  1986. test ! -s conftest.err
  1987. } && test -s conftest.$ac_objext
  1988. then :
  1989. ac_retval=0
  1990. else $as_nop
  1991. printf "%s\n" "$as_me: failed program was:" >&5
  1992. sed 's/^/| /' conftest.$ac_ext >&5
  1993. ac_retval=1
  1994. fi
  1995. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1996. as_fn_set_status $ac_retval
  1997. } # ac_fn_cxx_try_compile
  1998. # ac_fn_cxx_try_cpp LINENO
  1999. # ------------------------
  2000. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2001. ac_fn_cxx_try_cpp ()
  2002. {
  2003. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2004. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2005. case "(($ac_try" in
  2006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2007. *) ac_try_echo=$ac_try;;
  2008. esac
  2009. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2010. printf "%s\n" "$ac_try_echo"; } >&5
  2011. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2012. ac_status=$?
  2013. if test -s conftest.err; then
  2014. grep -v '^ *+' conftest.err >conftest.er1
  2015. cat conftest.er1 >&5
  2016. mv -f conftest.er1 conftest.err
  2017. fi
  2018. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2019. test $ac_status = 0; } > conftest.i && {
  2020. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2021. test ! -s conftest.err
  2022. }
  2023. then :
  2024. ac_retval=0
  2025. else $as_nop
  2026. printf "%s\n" "$as_me: failed program was:" >&5
  2027. sed 's/^/| /' conftest.$ac_ext >&5
  2028. ac_retval=1
  2029. fi
  2030. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2031. as_fn_set_status $ac_retval
  2032. } # ac_fn_cxx_try_cpp
  2033. # ac_fn_cxx_try_link LINENO
  2034. # -------------------------
  2035. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2036. ac_fn_cxx_try_link ()
  2037. {
  2038. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2039. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2040. if { { ac_try="$ac_link"
  2041. case "(($ac_try" in
  2042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2043. *) ac_try_echo=$ac_try;;
  2044. esac
  2045. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2046. printf "%s\n" "$ac_try_echo"; } >&5
  2047. (eval "$ac_link") 2>conftest.err
  2048. ac_status=$?
  2049. if test -s conftest.err; then
  2050. grep -v '^ *+' conftest.err >conftest.er1
  2051. cat conftest.er1 >&5
  2052. mv -f conftest.er1 conftest.err
  2053. fi
  2054. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2055. test $ac_status = 0; } && {
  2056. test -z "$ac_cxx_werror_flag" ||
  2057. test ! -s conftest.err
  2058. } && test -s conftest$ac_exeext && {
  2059. test "$cross_compiling" = yes ||
  2060. test -x conftest$ac_exeext
  2061. }
  2062. then :
  2063. ac_retval=0
  2064. else $as_nop
  2065. printf "%s\n" "$as_me: failed program was:" >&5
  2066. sed 's/^/| /' conftest.$ac_ext >&5
  2067. ac_retval=1
  2068. fi
  2069. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2070. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2071. # interfere with the next link command; also delete a directory that is
  2072. # left behind by Apple's compiler. We do this before executing the actions.
  2073. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2074. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2075. as_fn_set_status $ac_retval
  2076. } # ac_fn_cxx_try_link
  2077. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2078. # -------------------------------------------
  2079. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2080. # variable VAR accordingly.
  2081. ac_fn_c_check_type ()
  2082. {
  2083. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2085. printf %s "checking for $2... " >&6; }
  2086. if eval test \${$3+y}
  2087. then :
  2088. printf %s "(cached) " >&6
  2089. else $as_nop
  2090. eval "$3=no"
  2091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2092. /* end confdefs.h. */
  2093. $4
  2094. int
  2095. main (void)
  2096. {
  2097. if (sizeof ($2))
  2098. return 0;
  2099. ;
  2100. return 0;
  2101. }
  2102. _ACEOF
  2103. if ac_fn_c_try_compile "$LINENO"
  2104. then :
  2105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2106. /* end confdefs.h. */
  2107. $4
  2108. int
  2109. main (void)
  2110. {
  2111. if (sizeof (($2)))
  2112. return 0;
  2113. ;
  2114. return 0;
  2115. }
  2116. _ACEOF
  2117. if ac_fn_c_try_compile "$LINENO"
  2118. then :
  2119. else $as_nop
  2120. eval "$3=yes"
  2121. fi
  2122. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2123. fi
  2124. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2125. fi
  2126. eval ac_res=\$$3
  2127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2128. printf "%s\n" "$ac_res" >&6; }
  2129. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2130. } # ac_fn_c_check_type
  2131. # ac_fn_c_try_cpp LINENO
  2132. # ----------------------
  2133. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2134. ac_fn_c_try_cpp ()
  2135. {
  2136. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2137. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2138. case "(($ac_try" in
  2139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2140. *) ac_try_echo=$ac_try;;
  2141. esac
  2142. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2143. printf "%s\n" "$ac_try_echo"; } >&5
  2144. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2145. ac_status=$?
  2146. if test -s conftest.err; then
  2147. grep -v '^ *+' conftest.err >conftest.er1
  2148. cat conftest.er1 >&5
  2149. mv -f conftest.er1 conftest.err
  2150. fi
  2151. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2152. test $ac_status = 0; } > conftest.i && {
  2153. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2154. test ! -s conftest.err
  2155. }
  2156. then :
  2157. ac_retval=0
  2158. else $as_nop
  2159. printf "%s\n" "$as_me: failed program was:" >&5
  2160. sed 's/^/| /' conftest.$ac_ext >&5
  2161. ac_retval=1
  2162. fi
  2163. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2164. as_fn_set_status $ac_retval
  2165. } # ac_fn_c_try_cpp
  2166. # ac_fn_c_try_run LINENO
  2167. # ----------------------
  2168. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2169. # executables *can* be run.
  2170. ac_fn_c_try_run ()
  2171. {
  2172. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2173. if { { ac_try="$ac_link"
  2174. case "(($ac_try" in
  2175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2176. *) ac_try_echo=$ac_try;;
  2177. esac
  2178. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2179. printf "%s\n" "$ac_try_echo"; } >&5
  2180. (eval "$ac_link") 2>&5
  2181. ac_status=$?
  2182. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2183. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2184. { { case "(($ac_try" in
  2185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2186. *) ac_try_echo=$ac_try;;
  2187. esac
  2188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2189. printf "%s\n" "$ac_try_echo"; } >&5
  2190. (eval "$ac_try") 2>&5
  2191. ac_status=$?
  2192. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2193. test $ac_status = 0; }; }
  2194. then :
  2195. ac_retval=0
  2196. else $as_nop
  2197. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2198. printf "%s\n" "$as_me: failed program was:" >&5
  2199. sed 's/^/| /' conftest.$ac_ext >&5
  2200. ac_retval=$ac_status
  2201. fi
  2202. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2203. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2204. as_fn_set_status $ac_retval
  2205. } # ac_fn_c_try_run
  2206. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2207. # ----------------------------------------------------
  2208. # Tries to find if the field MEMBER exists in type AGGR, after including
  2209. # INCLUDES, setting cache variable VAR accordingly.
  2210. ac_fn_c_check_member ()
  2211. {
  2212. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2214. printf %s "checking for $2.$3... " >&6; }
  2215. if eval test \${$4+y}
  2216. then :
  2217. printf %s "(cached) " >&6
  2218. else $as_nop
  2219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2220. /* end confdefs.h. */
  2221. $5
  2222. int
  2223. main (void)
  2224. {
  2225. static $2 ac_aggr;
  2226. if (ac_aggr.$3)
  2227. return 0;
  2228. ;
  2229. return 0;
  2230. }
  2231. _ACEOF
  2232. if ac_fn_c_try_compile "$LINENO"
  2233. then :
  2234. eval "$4=yes"
  2235. else $as_nop
  2236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2237. /* end confdefs.h. */
  2238. $5
  2239. int
  2240. main (void)
  2241. {
  2242. static $2 ac_aggr;
  2243. if (sizeof ac_aggr.$3)
  2244. return 0;
  2245. ;
  2246. return 0;
  2247. }
  2248. _ACEOF
  2249. if ac_fn_c_try_compile "$LINENO"
  2250. then :
  2251. eval "$4=yes"
  2252. else $as_nop
  2253. eval "$4=no"
  2254. fi
  2255. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2256. fi
  2257. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2258. fi
  2259. eval ac_res=\$$4
  2260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2261. printf "%s\n" "$ac_res" >&6; }
  2262. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2263. } # ac_fn_c_check_member
  2264. ac_configure_args_raw=
  2265. for ac_arg
  2266. do
  2267. case $ac_arg in
  2268. *\'*)
  2269. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2270. esac
  2271. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2272. done
  2273. case $ac_configure_args_raw in
  2274. *$as_nl*)
  2275. ac_safe_unquote= ;;
  2276. *)
  2277. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2278. ac_unsafe_a="$ac_unsafe_z#~"
  2279. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2280. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2281. esac
  2282. cat >config.log <<_ACEOF
  2283. This file contains any messages produced by compilers while
  2284. running configure, to aid debugging if configure makes a mistake.
  2285. It was created by $as_me, which was
  2286. generated by GNU Autoconf 2.71. Invocation command line was
  2287. $ $0$ac_configure_args_raw
  2288. _ACEOF
  2289. exec 5>>config.log
  2290. {
  2291. cat <<_ASUNAME
  2292. ## --------- ##
  2293. ## Platform. ##
  2294. ## --------- ##
  2295. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2296. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2297. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2298. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2299. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2300. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2301. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2302. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2303. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2304. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2305. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2306. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2307. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2308. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2309. _ASUNAME
  2310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2311. for as_dir in $PATH
  2312. do
  2313. IFS=$as_save_IFS
  2314. case $as_dir in #(((
  2315. '') as_dir=./ ;;
  2316. */) ;;
  2317. *) as_dir=$as_dir/ ;;
  2318. esac
  2319. printf "%s\n" "PATH: $as_dir"
  2320. done
  2321. IFS=$as_save_IFS
  2322. } >&5
  2323. cat >&5 <<_ACEOF
  2324. ## ----------- ##
  2325. ## Core tests. ##
  2326. ## ----------- ##
  2327. _ACEOF
  2328. # Keep a trace of the command line.
  2329. # Strip out --no-create and --no-recursion so they do not pile up.
  2330. # Strip out --silent because we don't want to record it for future runs.
  2331. # Also quote any args containing shell meta-characters.
  2332. # Make two passes to allow for proper duplicate-argument suppression.
  2333. ac_configure_args=
  2334. ac_configure_args0=
  2335. ac_configure_args1=
  2336. ac_must_keep_next=false
  2337. for ac_pass in 1 2
  2338. do
  2339. for ac_arg
  2340. do
  2341. case $ac_arg in
  2342. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2343. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2344. | -silent | --silent | --silen | --sile | --sil)
  2345. continue ;;
  2346. *\'*)
  2347. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2348. esac
  2349. case $ac_pass in
  2350. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2351. 2)
  2352. as_fn_append ac_configure_args1 " '$ac_arg'"
  2353. if test $ac_must_keep_next = true; then
  2354. ac_must_keep_next=false # Got value, back to normal.
  2355. else
  2356. case $ac_arg in
  2357. *=* | --config-cache | -C | -disable-* | --disable-* \
  2358. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2359. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2360. | -with-* | --with-* | -without-* | --without-* | --x)
  2361. case "$ac_configure_args0 " in
  2362. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2363. esac
  2364. ;;
  2365. -* ) ac_must_keep_next=true ;;
  2366. esac
  2367. fi
  2368. as_fn_append ac_configure_args " '$ac_arg'"
  2369. ;;
  2370. esac
  2371. done
  2372. done
  2373. { ac_configure_args0=; unset ac_configure_args0;}
  2374. { ac_configure_args1=; unset ac_configure_args1;}
  2375. # When interrupted or exit'd, cleanup temporary files, and complete
  2376. # config.log. We remove comments because anyway the quotes in there
  2377. # would cause problems or look ugly.
  2378. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2379. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2380. trap 'exit_status=$?
  2381. # Sanitize IFS.
  2382. IFS=" "" $as_nl"
  2383. # Save into config.log some information that might help in debugging.
  2384. {
  2385. echo
  2386. printf "%s\n" "## ---------------- ##
  2387. ## Cache variables. ##
  2388. ## ---------------- ##"
  2389. echo
  2390. # The following way of writing the cache mishandles newlines in values,
  2391. (
  2392. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2393. eval ac_val=\$$ac_var
  2394. case $ac_val in #(
  2395. *${as_nl}*)
  2396. case $ac_var in #(
  2397. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2398. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2399. esac
  2400. case $ac_var in #(
  2401. _ | IFS | as_nl) ;; #(
  2402. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2403. *) { eval $ac_var=; unset $ac_var;} ;;
  2404. esac ;;
  2405. esac
  2406. done
  2407. (set) 2>&1 |
  2408. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2409. *${as_nl}ac_space=\ *)
  2410. sed -n \
  2411. "s/'\''/'\''\\\\'\'''\''/g;
  2412. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2413. ;; #(
  2414. *)
  2415. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2416. ;;
  2417. esac |
  2418. sort
  2419. )
  2420. echo
  2421. printf "%s\n" "## ----------------- ##
  2422. ## Output variables. ##
  2423. ## ----------------- ##"
  2424. echo
  2425. for ac_var in $ac_subst_vars
  2426. do
  2427. eval ac_val=\$$ac_var
  2428. case $ac_val in
  2429. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2430. esac
  2431. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2432. done | sort
  2433. echo
  2434. if test -n "$ac_subst_files"; then
  2435. printf "%s\n" "## ------------------- ##
  2436. ## File substitutions. ##
  2437. ## ------------------- ##"
  2438. echo
  2439. for ac_var in $ac_subst_files
  2440. do
  2441. eval ac_val=\$$ac_var
  2442. case $ac_val in
  2443. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2444. esac
  2445. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2446. done | sort
  2447. echo
  2448. fi
  2449. if test -s confdefs.h; then
  2450. printf "%s\n" "## ----------- ##
  2451. ## confdefs.h. ##
  2452. ## ----------- ##"
  2453. echo
  2454. cat confdefs.h
  2455. echo
  2456. fi
  2457. test "$ac_signal" != 0 &&
  2458. printf "%s\n" "$as_me: caught signal $ac_signal"
  2459. printf "%s\n" "$as_me: exit $exit_status"
  2460. } >&5
  2461. rm -f core *.core core.conftest.* &&
  2462. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2463. exit $exit_status
  2464. ' 0
  2465. for ac_signal in 1 2 13 15; do
  2466. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2467. done
  2468. ac_signal=0
  2469. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2470. rm -f -r conftest* confdefs.h
  2471. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2472. # Predefined preprocessor variables.
  2473. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2474. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2475. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2476. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2477. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2478. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2479. # Let the site file select an alternate cache file if it wants to.
  2480. # Prefer an explicitly selected file to automatically selected ones.
  2481. if test -n "$CONFIG_SITE"; then
  2482. ac_site_files="$CONFIG_SITE"
  2483. elif test "x$prefix" != xNONE; then
  2484. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2485. else
  2486. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2487. fi
  2488. for ac_site_file in $ac_site_files
  2489. do
  2490. case $ac_site_file in #(
  2491. */*) :
  2492. ;; #(
  2493. *) :
  2494. ac_site_file=./$ac_site_file ;;
  2495. esac
  2496. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2498. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2499. sed 's/^/| /' "$ac_site_file" >&5
  2500. . "$ac_site_file" \
  2501. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2502. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2503. as_fn_error $? "failed to load site script $ac_site_file
  2504. See \`config.log' for more details" "$LINENO" 5; }
  2505. fi
  2506. done
  2507. if test -r "$cache_file"; then
  2508. # Some versions of bash will fail to source /dev/null (special files
  2509. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2510. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2512. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2513. case $cache_file in
  2514. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2515. *) . "./$cache_file";;
  2516. esac
  2517. fi
  2518. else
  2519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2520. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2521. >$cache_file
  2522. fi
  2523. # Test code for whether the C compiler supports C89 (global declarations)
  2524. ac_c_conftest_c89_globals='
  2525. /* Does the compiler advertise C89 conformance?
  2526. Do not test the value of __STDC__, because some compilers set it to 0
  2527. while being otherwise adequately conformant. */
  2528. #if !defined __STDC__
  2529. # error "Compiler does not advertise C89 conformance"
  2530. #endif
  2531. #include <stddef.h>
  2532. #include <stdarg.h>
  2533. struct stat;
  2534. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2535. struct buf { int x; };
  2536. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2537. static char *e (p, i)
  2538. char **p;
  2539. int i;
  2540. {
  2541. return p[i];
  2542. }
  2543. static char *f (char * (*g) (char **, int), char **p, ...)
  2544. {
  2545. char *s;
  2546. va_list v;
  2547. va_start (v,p);
  2548. s = g (p, va_arg (v,int));
  2549. va_end (v);
  2550. return s;
  2551. }
  2552. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2553. function prototypes and stuff, but not \xHH hex character constants.
  2554. These do not provoke an error unfortunately, instead are silently treated
  2555. as an "x". The following induces an error, until -std is added to get
  2556. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2557. array size at least. It is necessary to write \x00 == 0 to get something
  2558. that is true only with -std. */
  2559. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2560. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2561. inside strings and character constants. */
  2562. #define FOO(x) '\''x'\''
  2563. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2564. int test (int i, double x);
  2565. struct s1 {int (*f) (int a);};
  2566. struct s2 {int (*f) (double a);};
  2567. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2568. int, int);'
  2569. # Test code for whether the C compiler supports C89 (body of main).
  2570. ac_c_conftest_c89_main='
  2571. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2572. '
  2573. # Test code for whether the C compiler supports C99 (global declarations)
  2574. ac_c_conftest_c99_globals='
  2575. // Does the compiler advertise C99 conformance?
  2576. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2577. # error "Compiler does not advertise C99 conformance"
  2578. #endif
  2579. #include <stdbool.h>
  2580. extern int puts (const char *);
  2581. extern int printf (const char *, ...);
  2582. extern int dprintf (int, const char *, ...);
  2583. extern void *malloc (size_t);
  2584. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2585. // dprintf is used instead of fprintf to avoid needing to declare
  2586. // FILE and stderr.
  2587. #define debug(...) dprintf (2, __VA_ARGS__)
  2588. #define showlist(...) puts (#__VA_ARGS__)
  2589. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2590. static void
  2591. test_varargs_macros (void)
  2592. {
  2593. int x = 1234;
  2594. int y = 5678;
  2595. debug ("Flag");
  2596. debug ("X = %d\n", x);
  2597. showlist (The first, second, and third items.);
  2598. report (x>y, "x is %d but y is %d", x, y);
  2599. }
  2600. // Check long long types.
  2601. #define BIG64 18446744073709551615ull
  2602. #define BIG32 4294967295ul
  2603. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2604. #if !BIG_OK
  2605. #error "your preprocessor is broken"
  2606. #endif
  2607. #if BIG_OK
  2608. #else
  2609. #error "your preprocessor is broken"
  2610. #endif
  2611. static long long int bignum = -9223372036854775807LL;
  2612. static unsigned long long int ubignum = BIG64;
  2613. struct incomplete_array
  2614. {
  2615. int datasize;
  2616. double data[];
  2617. };
  2618. struct named_init {
  2619. int number;
  2620. const wchar_t *name;
  2621. double average;
  2622. };
  2623. typedef const char *ccp;
  2624. static inline int
  2625. test_restrict (ccp restrict text)
  2626. {
  2627. // See if C++-style comments work.
  2628. // Iterate through items via the restricted pointer.
  2629. // Also check for declarations in for loops.
  2630. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2631. continue;
  2632. return 0;
  2633. }
  2634. // Check varargs and va_copy.
  2635. static bool
  2636. test_varargs (const char *format, ...)
  2637. {
  2638. va_list args;
  2639. va_start (args, format);
  2640. va_list args_copy;
  2641. va_copy (args_copy, args);
  2642. const char *str = "";
  2643. int number = 0;
  2644. float fnumber = 0;
  2645. while (*format)
  2646. {
  2647. switch (*format++)
  2648. {
  2649. case '\''s'\'': // string
  2650. str = va_arg (args_copy, const char *);
  2651. break;
  2652. case '\''d'\'': // int
  2653. number = va_arg (args_copy, int);
  2654. break;
  2655. case '\''f'\'': // float
  2656. fnumber = va_arg (args_copy, double);
  2657. break;
  2658. default:
  2659. break;
  2660. }
  2661. }
  2662. va_end (args_copy);
  2663. va_end (args);
  2664. return *str && number && fnumber;
  2665. }
  2666. '
  2667. # Test code for whether the C compiler supports C99 (body of main).
  2668. ac_c_conftest_c99_main='
  2669. // Check bool.
  2670. _Bool success = false;
  2671. success |= (argc != 0);
  2672. // Check restrict.
  2673. if (test_restrict ("String literal") == 0)
  2674. success = true;
  2675. char *restrict newvar = "Another string";
  2676. // Check varargs.
  2677. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2678. test_varargs_macros ();
  2679. // Check flexible array members.
  2680. struct incomplete_array *ia =
  2681. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2682. ia->datasize = 10;
  2683. for (int i = 0; i < ia->datasize; ++i)
  2684. ia->data[i] = i * 1.234;
  2685. // Check named initializers.
  2686. struct named_init ni = {
  2687. .number = 34,
  2688. .name = L"Test wide string",
  2689. .average = 543.34343,
  2690. };
  2691. ni.number = 58;
  2692. int dynamic_array[ni.number];
  2693. dynamic_array[0] = argv[0][0];
  2694. dynamic_array[ni.number - 1] = 543;
  2695. // work around unused variable warnings
  2696. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2697. || dynamic_array[ni.number - 1] != 543);
  2698. '
  2699. # Test code for whether the C compiler supports C11 (global declarations)
  2700. ac_c_conftest_c11_globals='
  2701. // Does the compiler advertise C11 conformance?
  2702. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2703. # error "Compiler does not advertise C11 conformance"
  2704. #endif
  2705. // Check _Alignas.
  2706. char _Alignas (double) aligned_as_double;
  2707. char _Alignas (0) no_special_alignment;
  2708. extern char aligned_as_int;
  2709. char _Alignas (0) _Alignas (int) aligned_as_int;
  2710. // Check _Alignof.
  2711. enum
  2712. {
  2713. int_alignment = _Alignof (int),
  2714. int_array_alignment = _Alignof (int[100]),
  2715. char_alignment = _Alignof (char)
  2716. };
  2717. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2718. // Check _Noreturn.
  2719. int _Noreturn does_not_return (void) { for (;;) continue; }
  2720. // Check _Static_assert.
  2721. struct test_static_assert
  2722. {
  2723. int x;
  2724. _Static_assert (sizeof (int) <= sizeof (long int),
  2725. "_Static_assert does not work in struct");
  2726. long int y;
  2727. };
  2728. // Check UTF-8 literals.
  2729. #define u8 syntax error!
  2730. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2731. // Check duplicate typedefs.
  2732. typedef long *long_ptr;
  2733. typedef long int *long_ptr;
  2734. typedef long_ptr long_ptr;
  2735. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2736. struct anonymous
  2737. {
  2738. union {
  2739. struct { int i; int j; };
  2740. struct { int k; long int l; } w;
  2741. };
  2742. int m;
  2743. } v1;
  2744. '
  2745. # Test code for whether the C compiler supports C11 (body of main).
  2746. ac_c_conftest_c11_main='
  2747. _Static_assert ((offsetof (struct anonymous, i)
  2748. == offsetof (struct anonymous, w.k)),
  2749. "Anonymous union alignment botch");
  2750. v1.i = 2;
  2751. v1.w.k = 5;
  2752. ok |= v1.i != 5;
  2753. '
  2754. # Test code for whether the C compiler supports C11 (complete).
  2755. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2756. ${ac_c_conftest_c99_globals}
  2757. ${ac_c_conftest_c11_globals}
  2758. int
  2759. main (int argc, char **argv)
  2760. {
  2761. int ok = 0;
  2762. ${ac_c_conftest_c89_main}
  2763. ${ac_c_conftest_c99_main}
  2764. ${ac_c_conftest_c11_main}
  2765. return ok;
  2766. }
  2767. "
  2768. # Test code for whether the C compiler supports C99 (complete).
  2769. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2770. ${ac_c_conftest_c99_globals}
  2771. int
  2772. main (int argc, char **argv)
  2773. {
  2774. int ok = 0;
  2775. ${ac_c_conftest_c89_main}
  2776. ${ac_c_conftest_c99_main}
  2777. return ok;
  2778. }
  2779. "
  2780. # Test code for whether the C compiler supports C89 (complete).
  2781. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2782. int
  2783. main (int argc, char **argv)
  2784. {
  2785. int ok = 0;
  2786. ${ac_c_conftest_c89_main}
  2787. return ok;
  2788. }
  2789. "
  2790. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2791. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2792. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2793. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2794. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2795. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2796. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2797. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2798. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2799. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2800. ac_cxx_conftest_cxx98_globals='
  2801. // Does the compiler advertise C++98 conformance?
  2802. #if !defined __cplusplus || __cplusplus < 199711L
  2803. # error "Compiler does not advertise C++98 conformance"
  2804. #endif
  2805. // These inclusions are to reject old compilers that
  2806. // lack the unsuffixed header files.
  2807. #include <cstdlib>
  2808. #include <exception>
  2809. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2810. extern void assert (int);
  2811. namespace std {
  2812. extern int strcmp (const char *, const char *);
  2813. }
  2814. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2815. using std::exception;
  2816. using std::strcmp;
  2817. namespace {
  2818. void test_exception_syntax()
  2819. {
  2820. try {
  2821. throw "test";
  2822. } catch (const char *s) {
  2823. // Extra parentheses suppress a warning when building autoconf itself,
  2824. // due to lint rules shared with more typical C programs.
  2825. assert (!(strcmp) (s, "test"));
  2826. }
  2827. }
  2828. template <typename T> struct test_template
  2829. {
  2830. T const val;
  2831. explicit test_template(T t) : val(t) {}
  2832. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2833. };
  2834. } // anonymous namespace
  2835. '
  2836. # Test code for whether the C++ compiler supports C++98 (body of main)
  2837. ac_cxx_conftest_cxx98_main='
  2838. assert (argc);
  2839. assert (! argv[0]);
  2840. {
  2841. test_exception_syntax ();
  2842. test_template<double> tt (2.0);
  2843. assert (tt.add (4) == 6.0);
  2844. assert (true && !false);
  2845. }
  2846. '
  2847. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2848. ac_cxx_conftest_cxx11_globals='
  2849. // Does the compiler advertise C++ 2011 conformance?
  2850. #if !defined __cplusplus || __cplusplus < 201103L
  2851. # error "Compiler does not advertise C++11 conformance"
  2852. #endif
  2853. namespace cxx11test
  2854. {
  2855. constexpr int get_val() { return 20; }
  2856. struct testinit
  2857. {
  2858. int i;
  2859. double d;
  2860. };
  2861. class delegate
  2862. {
  2863. public:
  2864. delegate(int n) : n(n) {}
  2865. delegate(): delegate(2354) {}
  2866. virtual int getval() { return this->n; };
  2867. protected:
  2868. int n;
  2869. };
  2870. class overridden : public delegate
  2871. {
  2872. public:
  2873. overridden(int n): delegate(n) {}
  2874. virtual int getval() override final { return this->n * 2; }
  2875. };
  2876. class nocopy
  2877. {
  2878. public:
  2879. nocopy(int i): i(i) {}
  2880. nocopy() = default;
  2881. nocopy(const nocopy&) = delete;
  2882. nocopy & operator=(const nocopy&) = delete;
  2883. private:
  2884. int i;
  2885. };
  2886. // for testing lambda expressions
  2887. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2888. {
  2889. return f(v);
  2890. }
  2891. // for testing variadic templates and trailing return types
  2892. template <typename V> auto sum(V first) -> V
  2893. {
  2894. return first;
  2895. }
  2896. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2897. {
  2898. return first + sum(rest...);
  2899. }
  2900. }
  2901. '
  2902. # Test code for whether the C++ compiler supports C++11 (body of main)
  2903. ac_cxx_conftest_cxx11_main='
  2904. {
  2905. // Test auto and decltype
  2906. auto a1 = 6538;
  2907. auto a2 = 48573953.4;
  2908. auto a3 = "String literal";
  2909. int total = 0;
  2910. for (auto i = a3; *i; ++i) { total += *i; }
  2911. decltype(a2) a4 = 34895.034;
  2912. }
  2913. {
  2914. // Test constexpr
  2915. short sa[cxx11test::get_val()] = { 0 };
  2916. }
  2917. {
  2918. // Test initializer lists
  2919. cxx11test::testinit il = { 4323, 435234.23544 };
  2920. }
  2921. {
  2922. // Test range-based for
  2923. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2924. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2925. for (auto &x : array) { x += 23; }
  2926. }
  2927. {
  2928. // Test lambda expressions
  2929. using cxx11test::eval;
  2930. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2931. double d = 2.0;
  2932. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2933. assert (d == 5.0);
  2934. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2935. assert (d == 5.0);
  2936. }
  2937. {
  2938. // Test use of variadic templates
  2939. using cxx11test::sum;
  2940. auto a = sum(1);
  2941. auto b = sum(1, 2);
  2942. auto c = sum(1.0, 2.0, 3.0);
  2943. }
  2944. {
  2945. // Test constructor delegation
  2946. cxx11test::delegate d1;
  2947. cxx11test::delegate d2();
  2948. cxx11test::delegate d3(45);
  2949. }
  2950. {
  2951. // Test override and final
  2952. cxx11test::overridden o1(55464);
  2953. }
  2954. {
  2955. // Test nullptr
  2956. char *c = nullptr;
  2957. }
  2958. {
  2959. // Test template brackets
  2960. test_template<::test_template<int>> v(test_template<int>(12));
  2961. }
  2962. {
  2963. // Unicode literals
  2964. char const *utf8 = u8"UTF-8 string \u2500";
  2965. char16_t const *utf16 = u"UTF-8 string \u2500";
  2966. char32_t const *utf32 = U"UTF-32 string \u2500";
  2967. }
  2968. '
  2969. # Test code for whether the C compiler supports C++11 (complete).
  2970. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2971. ${ac_cxx_conftest_cxx11_globals}
  2972. int
  2973. main (int argc, char **argv)
  2974. {
  2975. int ok = 0;
  2976. ${ac_cxx_conftest_cxx98_main}
  2977. ${ac_cxx_conftest_cxx11_main}
  2978. return ok;
  2979. }
  2980. "
  2981. # Test code for whether the C compiler supports C++98 (complete).
  2982. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2983. int
  2984. main (int argc, char **argv)
  2985. {
  2986. int ok = 0;
  2987. ${ac_cxx_conftest_cxx98_main}
  2988. return ok;
  2989. }
  2990. "
  2991. # Auxiliary files required by this configure script.
  2992. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2993. # Locations in which to look for auxiliary files.
  2994. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2995. # Search for a directory containing all of the required auxiliary files,
  2996. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2997. # If we don't find one directory that contains all the files we need,
  2998. # we report the set of missing files from the *first* directory in
  2999. # $ac_aux_dir_candidates and give up.
  3000. ac_missing_aux_files=""
  3001. ac_first_candidate=:
  3002. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3004. as_found=false
  3005. for as_dir in $ac_aux_dir_candidates
  3006. do
  3007. IFS=$as_save_IFS
  3008. case $as_dir in #(((
  3009. '') as_dir=./ ;;
  3010. */) ;;
  3011. *) as_dir=$as_dir/ ;;
  3012. esac
  3013. as_found=:
  3014. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3015. ac_aux_dir_found=yes
  3016. ac_install_sh=
  3017. for ac_aux in $ac_aux_files
  3018. do
  3019. # As a special case, if "install-sh" is required, that requirement
  3020. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3021. # and $ac_install_sh is set appropriately for whichever one is found.
  3022. if test x"$ac_aux" = x"install-sh"
  3023. then
  3024. if test -f "${as_dir}install-sh"; then
  3025. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3026. ac_install_sh="${as_dir}install-sh -c"
  3027. elif test -f "${as_dir}install.sh"; then
  3028. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3029. ac_install_sh="${as_dir}install.sh -c"
  3030. elif test -f "${as_dir}shtool"; then
  3031. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3032. ac_install_sh="${as_dir}shtool install -c"
  3033. else
  3034. ac_aux_dir_found=no
  3035. if $ac_first_candidate; then
  3036. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3037. else
  3038. break
  3039. fi
  3040. fi
  3041. else
  3042. if test -f "${as_dir}${ac_aux}"; then
  3043. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3044. else
  3045. ac_aux_dir_found=no
  3046. if $ac_first_candidate; then
  3047. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3048. else
  3049. break
  3050. fi
  3051. fi
  3052. fi
  3053. done
  3054. if test "$ac_aux_dir_found" = yes; then
  3055. ac_aux_dir="$as_dir"
  3056. break
  3057. fi
  3058. ac_first_candidate=false
  3059. as_found=false
  3060. done
  3061. IFS=$as_save_IFS
  3062. if $as_found
  3063. then :
  3064. else $as_nop
  3065. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3066. fi
  3067. # These three variables are undocumented and unsupported,
  3068. # and are intended to be withdrawn in a future Autoconf release.
  3069. # They can cause serious problems if a builder's source tree is in a directory
  3070. # whose full name contains unusual characters.
  3071. if test -f "${ac_aux_dir}config.guess"; then
  3072. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3073. fi
  3074. if test -f "${ac_aux_dir}config.sub"; then
  3075. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3076. fi
  3077. if test -f "$ac_aux_dir/configure"; then
  3078. ac_configure="$SHELL ${ac_aux_dir}configure"
  3079. fi
  3080. # Check that the precious variables saved in the cache have kept the same
  3081. # value.
  3082. ac_cache_corrupted=false
  3083. for ac_var in $ac_precious_vars; do
  3084. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3085. eval ac_new_set=\$ac_env_${ac_var}_set
  3086. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3087. eval ac_new_val=\$ac_env_${ac_var}_value
  3088. case $ac_old_set,$ac_new_set in
  3089. set,)
  3090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3091. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3092. ac_cache_corrupted=: ;;
  3093. ,set)
  3094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3095. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3096. ac_cache_corrupted=: ;;
  3097. ,);;
  3098. *)
  3099. if test "x$ac_old_val" != "x$ac_new_val"; then
  3100. # differences in whitespace do not lead to failure.
  3101. ac_old_val_w=`echo x $ac_old_val`
  3102. ac_new_val_w=`echo x $ac_new_val`
  3103. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3105. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3106. ac_cache_corrupted=:
  3107. else
  3108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3109. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3110. eval $ac_var=\$ac_old_val
  3111. fi
  3112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3113. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3115. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3116. fi;;
  3117. esac
  3118. # Pass precious variables to config.status.
  3119. if test "$ac_new_set" = set; then
  3120. case $ac_new_val in
  3121. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3122. *) ac_arg=$ac_var=$ac_new_val ;;
  3123. esac
  3124. case " $ac_configure_args " in
  3125. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3126. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3127. esac
  3128. fi
  3129. done
  3130. if $ac_cache_corrupted; then
  3131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3132. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3134. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3135. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3136. and start over" "$LINENO" 5
  3137. fi
  3138. ## -------------------- ##
  3139. ## Main body of script. ##
  3140. ## -------------------- ##
  3141. ac_ext=c
  3142. ac_cpp='$CPP $CPPFLAGS'
  3143. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3144. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3145. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3146. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3147. orig_CFLAGS="$CFLAGS"
  3148. # See docs/release_checklist.md
  3149. SDL_MAJOR_VERSION=2
  3150. SDL_MINOR_VERSION=27
  3151. SDL_MICRO_VERSION=0
  3152. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3153. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3154. case "$SDL_MINOR_VERSION" in #(
  3155. *[02468]) :
  3156. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3157. *) :
  3158. SDL_INTERFACE_AGE=0 ;; #(
  3159. *) :
  3160. ;;
  3161. esac
  3162. # libtool versioning
  3163. case `pwd` in
  3164. *\ * | *\ *)
  3165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3166. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3167. esac
  3168. macro_version='2.4.6'
  3169. macro_revision='2.4.6'
  3170. ltmain=$ac_aux_dir/ltmain.sh
  3171. # Make sure we can run config.sub.
  3172. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3173. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3175. printf %s "checking build system type... " >&6; }
  3176. if test ${ac_cv_build+y}
  3177. then :
  3178. printf %s "(cached) " >&6
  3179. else $as_nop
  3180. ac_build_alias=$build_alias
  3181. test "x$ac_build_alias" = x &&
  3182. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3183. test "x$ac_build_alias" = x &&
  3184. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3185. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3186. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3187. fi
  3188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3189. printf "%s\n" "$ac_cv_build" >&6; }
  3190. case $ac_cv_build in
  3191. *-*-*) ;;
  3192. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3193. esac
  3194. build=$ac_cv_build
  3195. ac_save_IFS=$IFS; IFS='-'
  3196. set x $ac_cv_build
  3197. shift
  3198. build_cpu=$1
  3199. build_vendor=$2
  3200. shift; shift
  3201. # Remember, the first character of IFS is used to create $*,
  3202. # except with old shells:
  3203. build_os=$*
  3204. IFS=$ac_save_IFS
  3205. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3207. printf %s "checking host system type... " >&6; }
  3208. if test ${ac_cv_host+y}
  3209. then :
  3210. printf %s "(cached) " >&6
  3211. else $as_nop
  3212. if test "x$host_alias" = x; then
  3213. ac_cv_host=$ac_cv_build
  3214. else
  3215. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3216. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3217. fi
  3218. fi
  3219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3220. printf "%s\n" "$ac_cv_host" >&6; }
  3221. case $ac_cv_host in
  3222. *-*-*) ;;
  3223. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3224. esac
  3225. host=$ac_cv_host
  3226. ac_save_IFS=$IFS; IFS='-'
  3227. set x $ac_cv_host
  3228. shift
  3229. host_cpu=$1
  3230. host_vendor=$2
  3231. shift; shift
  3232. # Remember, the first character of IFS is used to create $*,
  3233. # except with old shells:
  3234. host_os=$*
  3235. IFS=$ac_save_IFS
  3236. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3237. # Backslashify metacharacters that are still active within
  3238. # double-quoted strings.
  3239. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3240. # Same as above, but do not quote variable references.
  3241. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3242. # Sed substitution to delay expansion of an escaped shell variable in a
  3243. # double_quote_subst'ed string.
  3244. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3245. # Sed substitution to delay expansion of an escaped single quote.
  3246. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3247. # Sed substitution to avoid accidental globbing in evaled expressions
  3248. no_glob_subst='s/\*/\\\*/g'
  3249. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3250. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3251. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3253. printf %s "checking how to print strings... " >&6; }
  3254. # Test print first, because it will be a builtin if present.
  3255. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3256. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3257. ECHO='print -r --'
  3258. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3259. ECHO='printf %s\n'
  3260. else
  3261. # Use this function as a fallback that always works.
  3262. func_fallback_echo ()
  3263. {
  3264. eval 'cat <<_LTECHO_EOF
  3265. $1
  3266. _LTECHO_EOF'
  3267. }
  3268. ECHO='func_fallback_echo'
  3269. fi
  3270. # func_echo_all arg...
  3271. # Invoke $ECHO with all args, space-separated.
  3272. func_echo_all ()
  3273. {
  3274. $ECHO ""
  3275. }
  3276. case $ECHO in
  3277. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3278. printf "%s\n" "printf" >&6; } ;;
  3279. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3280. printf "%s\n" "print -r" >&6; } ;;
  3281. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3282. printf "%s\n" "cat" >&6; } ;;
  3283. esac
  3284. ac_ext=c
  3285. ac_cpp='$CPP $CPPFLAGS'
  3286. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3287. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3288. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3289. if test -n "$ac_tool_prefix"; then
  3290. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3291. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3293. printf %s "checking for $ac_word... " >&6; }
  3294. if test ${ac_cv_prog_CC+y}
  3295. then :
  3296. printf %s "(cached) " >&6
  3297. else $as_nop
  3298. if test -n "$CC"; then
  3299. ac_cv_prog_CC="$CC" # Let the user override the test.
  3300. else
  3301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3302. for as_dir in $PATH
  3303. do
  3304. IFS=$as_save_IFS
  3305. case $as_dir in #(((
  3306. '') as_dir=./ ;;
  3307. */) ;;
  3308. *) as_dir=$as_dir/ ;;
  3309. esac
  3310. for ac_exec_ext in '' $ac_executable_extensions; do
  3311. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3312. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3313. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3314. break 2
  3315. fi
  3316. done
  3317. done
  3318. IFS=$as_save_IFS
  3319. fi
  3320. fi
  3321. CC=$ac_cv_prog_CC
  3322. if test -n "$CC"; then
  3323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3324. printf "%s\n" "$CC" >&6; }
  3325. else
  3326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3327. printf "%s\n" "no" >&6; }
  3328. fi
  3329. fi
  3330. if test -z "$ac_cv_prog_CC"; then
  3331. ac_ct_CC=$CC
  3332. # Extract the first word of "gcc", so it can be a program name with args.
  3333. set dummy gcc; ac_word=$2
  3334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3335. printf %s "checking for $ac_word... " >&6; }
  3336. if test ${ac_cv_prog_ac_ct_CC+y}
  3337. then :
  3338. printf %s "(cached) " >&6
  3339. else $as_nop
  3340. if test -n "$ac_ct_CC"; then
  3341. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3342. else
  3343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3344. for as_dir in $PATH
  3345. do
  3346. IFS=$as_save_IFS
  3347. case $as_dir in #(((
  3348. '') as_dir=./ ;;
  3349. */) ;;
  3350. *) as_dir=$as_dir/ ;;
  3351. esac
  3352. for ac_exec_ext in '' $ac_executable_extensions; do
  3353. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3354. ac_cv_prog_ac_ct_CC="gcc"
  3355. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3356. break 2
  3357. fi
  3358. done
  3359. done
  3360. IFS=$as_save_IFS
  3361. fi
  3362. fi
  3363. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3364. if test -n "$ac_ct_CC"; then
  3365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3366. printf "%s\n" "$ac_ct_CC" >&6; }
  3367. else
  3368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3369. printf "%s\n" "no" >&6; }
  3370. fi
  3371. if test "x$ac_ct_CC" = x; then
  3372. CC=""
  3373. else
  3374. case $cross_compiling:$ac_tool_warned in
  3375. yes:)
  3376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3377. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3378. ac_tool_warned=yes ;;
  3379. esac
  3380. CC=$ac_ct_CC
  3381. fi
  3382. else
  3383. CC="$ac_cv_prog_CC"
  3384. fi
  3385. if test -z "$CC"; then
  3386. if test -n "$ac_tool_prefix"; then
  3387. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3388. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3390. printf %s "checking for $ac_word... " >&6; }
  3391. if test ${ac_cv_prog_CC+y}
  3392. then :
  3393. printf %s "(cached) " >&6
  3394. else $as_nop
  3395. if test -n "$CC"; then
  3396. ac_cv_prog_CC="$CC" # Let the user override the test.
  3397. else
  3398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3399. for as_dir in $PATH
  3400. do
  3401. IFS=$as_save_IFS
  3402. case $as_dir in #(((
  3403. '') as_dir=./ ;;
  3404. */) ;;
  3405. *) as_dir=$as_dir/ ;;
  3406. esac
  3407. for ac_exec_ext in '' $ac_executable_extensions; do
  3408. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3409. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3410. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3411. break 2
  3412. fi
  3413. done
  3414. done
  3415. IFS=$as_save_IFS
  3416. fi
  3417. fi
  3418. CC=$ac_cv_prog_CC
  3419. if test -n "$CC"; then
  3420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3421. printf "%s\n" "$CC" >&6; }
  3422. else
  3423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3424. printf "%s\n" "no" >&6; }
  3425. fi
  3426. fi
  3427. fi
  3428. if test -z "$CC"; then
  3429. # Extract the first word of "cc", so it can be a program name with args.
  3430. set dummy cc; ac_word=$2
  3431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3432. printf %s "checking for $ac_word... " >&6; }
  3433. if test ${ac_cv_prog_CC+y}
  3434. then :
  3435. printf %s "(cached) " >&6
  3436. else $as_nop
  3437. if test -n "$CC"; then
  3438. ac_cv_prog_CC="$CC" # Let the user override the test.
  3439. else
  3440. ac_prog_rejected=no
  3441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3442. for as_dir in $PATH
  3443. do
  3444. IFS=$as_save_IFS
  3445. case $as_dir in #(((
  3446. '') as_dir=./ ;;
  3447. */) ;;
  3448. *) as_dir=$as_dir/ ;;
  3449. esac
  3450. for ac_exec_ext in '' $ac_executable_extensions; do
  3451. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3452. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3453. ac_prog_rejected=yes
  3454. continue
  3455. fi
  3456. ac_cv_prog_CC="cc"
  3457. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3458. break 2
  3459. fi
  3460. done
  3461. done
  3462. IFS=$as_save_IFS
  3463. if test $ac_prog_rejected = yes; then
  3464. # We found a bogon in the path, so make sure we never use it.
  3465. set dummy $ac_cv_prog_CC
  3466. shift
  3467. if test $# != 0; then
  3468. # We chose a different compiler from the bogus one.
  3469. # However, it has the same basename, so the bogon will be chosen
  3470. # first if we set CC to just the basename; use the full file name.
  3471. shift
  3472. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3473. fi
  3474. fi
  3475. fi
  3476. fi
  3477. CC=$ac_cv_prog_CC
  3478. if test -n "$CC"; then
  3479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3480. printf "%s\n" "$CC" >&6; }
  3481. else
  3482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3483. printf "%s\n" "no" >&6; }
  3484. fi
  3485. fi
  3486. if test -z "$CC"; then
  3487. if test -n "$ac_tool_prefix"; then
  3488. for ac_prog in cl.exe
  3489. do
  3490. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3491. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3493. printf %s "checking for $ac_word... " >&6; }
  3494. if test ${ac_cv_prog_CC+y}
  3495. then :
  3496. printf %s "(cached) " >&6
  3497. else $as_nop
  3498. if test -n "$CC"; then
  3499. ac_cv_prog_CC="$CC" # Let the user override the test.
  3500. else
  3501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3502. for as_dir in $PATH
  3503. do
  3504. IFS=$as_save_IFS
  3505. case $as_dir in #(((
  3506. '') as_dir=./ ;;
  3507. */) ;;
  3508. *) as_dir=$as_dir/ ;;
  3509. esac
  3510. for ac_exec_ext in '' $ac_executable_extensions; do
  3511. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3512. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3513. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3514. break 2
  3515. fi
  3516. done
  3517. done
  3518. IFS=$as_save_IFS
  3519. fi
  3520. fi
  3521. CC=$ac_cv_prog_CC
  3522. if test -n "$CC"; then
  3523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3524. printf "%s\n" "$CC" >&6; }
  3525. else
  3526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3527. printf "%s\n" "no" >&6; }
  3528. fi
  3529. test -n "$CC" && break
  3530. done
  3531. fi
  3532. if test -z "$CC"; then
  3533. ac_ct_CC=$CC
  3534. for ac_prog in cl.exe
  3535. do
  3536. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3537. set dummy $ac_prog; ac_word=$2
  3538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3539. printf %s "checking for $ac_word... " >&6; }
  3540. if test ${ac_cv_prog_ac_ct_CC+y}
  3541. then :
  3542. printf %s "(cached) " >&6
  3543. else $as_nop
  3544. if test -n "$ac_ct_CC"; then
  3545. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3546. else
  3547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3548. for as_dir in $PATH
  3549. do
  3550. IFS=$as_save_IFS
  3551. case $as_dir in #(((
  3552. '') as_dir=./ ;;
  3553. */) ;;
  3554. *) as_dir=$as_dir/ ;;
  3555. esac
  3556. for ac_exec_ext in '' $ac_executable_extensions; do
  3557. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3558. ac_cv_prog_ac_ct_CC="$ac_prog"
  3559. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3560. break 2
  3561. fi
  3562. done
  3563. done
  3564. IFS=$as_save_IFS
  3565. fi
  3566. fi
  3567. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3568. if test -n "$ac_ct_CC"; then
  3569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3570. printf "%s\n" "$ac_ct_CC" >&6; }
  3571. else
  3572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3573. printf "%s\n" "no" >&6; }
  3574. fi
  3575. test -n "$ac_ct_CC" && break
  3576. done
  3577. if test "x$ac_ct_CC" = x; then
  3578. CC=""
  3579. else
  3580. case $cross_compiling:$ac_tool_warned in
  3581. yes:)
  3582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3583. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3584. ac_tool_warned=yes ;;
  3585. esac
  3586. CC=$ac_ct_CC
  3587. fi
  3588. fi
  3589. fi
  3590. if test -z "$CC"; then
  3591. if test -n "$ac_tool_prefix"; then
  3592. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3593. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3595. printf %s "checking for $ac_word... " >&6; }
  3596. if test ${ac_cv_prog_CC+y}
  3597. then :
  3598. printf %s "(cached) " >&6
  3599. else $as_nop
  3600. if test -n "$CC"; then
  3601. ac_cv_prog_CC="$CC" # Let the user override the test.
  3602. else
  3603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3604. for as_dir in $PATH
  3605. do
  3606. IFS=$as_save_IFS
  3607. case $as_dir in #(((
  3608. '') as_dir=./ ;;
  3609. */) ;;
  3610. *) as_dir=$as_dir/ ;;
  3611. esac
  3612. for ac_exec_ext in '' $ac_executable_extensions; do
  3613. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3614. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3615. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3616. break 2
  3617. fi
  3618. done
  3619. done
  3620. IFS=$as_save_IFS
  3621. fi
  3622. fi
  3623. CC=$ac_cv_prog_CC
  3624. if test -n "$CC"; then
  3625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3626. printf "%s\n" "$CC" >&6; }
  3627. else
  3628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3629. printf "%s\n" "no" >&6; }
  3630. fi
  3631. fi
  3632. if test -z "$ac_cv_prog_CC"; then
  3633. ac_ct_CC=$CC
  3634. # Extract the first word of "clang", so it can be a program name with args.
  3635. set dummy clang; ac_word=$2
  3636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3637. printf %s "checking for $ac_word... " >&6; }
  3638. if test ${ac_cv_prog_ac_ct_CC+y}
  3639. then :
  3640. printf %s "(cached) " >&6
  3641. else $as_nop
  3642. if test -n "$ac_ct_CC"; then
  3643. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3644. else
  3645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3646. for as_dir in $PATH
  3647. do
  3648. IFS=$as_save_IFS
  3649. case $as_dir in #(((
  3650. '') as_dir=./ ;;
  3651. */) ;;
  3652. *) as_dir=$as_dir/ ;;
  3653. esac
  3654. for ac_exec_ext in '' $ac_executable_extensions; do
  3655. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3656. ac_cv_prog_ac_ct_CC="clang"
  3657. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3658. break 2
  3659. fi
  3660. done
  3661. done
  3662. IFS=$as_save_IFS
  3663. fi
  3664. fi
  3665. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3666. if test -n "$ac_ct_CC"; then
  3667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3668. printf "%s\n" "$ac_ct_CC" >&6; }
  3669. else
  3670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3671. printf "%s\n" "no" >&6; }
  3672. fi
  3673. if test "x$ac_ct_CC" = x; then
  3674. CC=""
  3675. else
  3676. case $cross_compiling:$ac_tool_warned in
  3677. yes:)
  3678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3679. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3680. ac_tool_warned=yes ;;
  3681. esac
  3682. CC=$ac_ct_CC
  3683. fi
  3684. else
  3685. CC="$ac_cv_prog_CC"
  3686. fi
  3687. fi
  3688. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3689. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3690. as_fn_error $? "no acceptable C compiler found in \$PATH
  3691. See \`config.log' for more details" "$LINENO" 5; }
  3692. # Provide some information about the compiler.
  3693. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3694. set X $ac_compile
  3695. ac_compiler=$2
  3696. for ac_option in --version -v -V -qversion -version; do
  3697. { { ac_try="$ac_compiler $ac_option >&5"
  3698. case "(($ac_try" in
  3699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3700. *) ac_try_echo=$ac_try;;
  3701. esac
  3702. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3703. printf "%s\n" "$ac_try_echo"; } >&5
  3704. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3705. ac_status=$?
  3706. if test -s conftest.err; then
  3707. sed '10a\
  3708. ... rest of stderr output deleted ...
  3709. 10q' conftest.err >conftest.er1
  3710. cat conftest.er1 >&5
  3711. fi
  3712. rm -f conftest.er1 conftest.err
  3713. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3714. test $ac_status = 0; }
  3715. done
  3716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3717. /* end confdefs.h. */
  3718. int
  3719. main (void)
  3720. {
  3721. ;
  3722. return 0;
  3723. }
  3724. _ACEOF
  3725. ac_clean_files_save=$ac_clean_files
  3726. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3727. # Try to create an executable without -o first, disregard a.out.
  3728. # It will help us diagnose broken compilers, and finding out an intuition
  3729. # of exeext.
  3730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3731. printf %s "checking whether the C compiler works... " >&6; }
  3732. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3733. # The possible output files:
  3734. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3735. ac_rmfiles=
  3736. for ac_file in $ac_files
  3737. do
  3738. case $ac_file in
  3739. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3740. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3741. esac
  3742. done
  3743. rm -f $ac_rmfiles
  3744. if { { ac_try="$ac_link_default"
  3745. case "(($ac_try" in
  3746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3747. *) ac_try_echo=$ac_try;;
  3748. esac
  3749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3750. printf "%s\n" "$ac_try_echo"; } >&5
  3751. (eval "$ac_link_default") 2>&5
  3752. ac_status=$?
  3753. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3754. test $ac_status = 0; }
  3755. then :
  3756. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3757. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3758. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3759. # so that the user can short-circuit this test for compilers unknown to
  3760. # Autoconf.
  3761. for ac_file in $ac_files ''
  3762. do
  3763. test -f "$ac_file" || continue
  3764. case $ac_file in
  3765. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3766. ;;
  3767. [ab].out )
  3768. # We found the default executable, but exeext='' is most
  3769. # certainly right.
  3770. break;;
  3771. *.* )
  3772. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3773. then :; else
  3774. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3775. fi
  3776. # We set ac_cv_exeext here because the later test for it is not
  3777. # safe: cross compilers may not add the suffix if given an `-o'
  3778. # argument, so we may need to know it at that point already.
  3779. # Even if this section looks crufty: it has the advantage of
  3780. # actually working.
  3781. break;;
  3782. * )
  3783. break;;
  3784. esac
  3785. done
  3786. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3787. else $as_nop
  3788. ac_file=''
  3789. fi
  3790. if test -z "$ac_file"
  3791. then :
  3792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3793. printf "%s\n" "no" >&6; }
  3794. printf "%s\n" "$as_me: failed program was:" >&5
  3795. sed 's/^/| /' conftest.$ac_ext >&5
  3796. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3797. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3798. as_fn_error 77 "C compiler cannot create executables
  3799. See \`config.log' for more details" "$LINENO" 5; }
  3800. else $as_nop
  3801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3802. printf "%s\n" "yes" >&6; }
  3803. fi
  3804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3805. printf %s "checking for C compiler default output file name... " >&6; }
  3806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3807. printf "%s\n" "$ac_file" >&6; }
  3808. ac_exeext=$ac_cv_exeext
  3809. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3810. ac_clean_files=$ac_clean_files_save
  3811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3812. printf %s "checking for suffix of executables... " >&6; }
  3813. if { { ac_try="$ac_link"
  3814. case "(($ac_try" in
  3815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3816. *) ac_try_echo=$ac_try;;
  3817. esac
  3818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3819. printf "%s\n" "$ac_try_echo"; } >&5
  3820. (eval "$ac_link") 2>&5
  3821. ac_status=$?
  3822. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3823. test $ac_status = 0; }
  3824. then :
  3825. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3826. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3827. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3828. # `rm'.
  3829. for ac_file in conftest.exe conftest conftest.*; do
  3830. test -f "$ac_file" || continue
  3831. case $ac_file in
  3832. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3833. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3834. break;;
  3835. * ) break;;
  3836. esac
  3837. done
  3838. else $as_nop
  3839. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3840. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3841. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3842. See \`config.log' for more details" "$LINENO" 5; }
  3843. fi
  3844. rm -f conftest conftest$ac_cv_exeext
  3845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3846. printf "%s\n" "$ac_cv_exeext" >&6; }
  3847. rm -f conftest.$ac_ext
  3848. EXEEXT=$ac_cv_exeext
  3849. ac_exeext=$EXEEXT
  3850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3851. /* end confdefs.h. */
  3852. #include <stdio.h>
  3853. int
  3854. main (void)
  3855. {
  3856. FILE *f = fopen ("conftest.out", "w");
  3857. return ferror (f) || fclose (f) != 0;
  3858. ;
  3859. return 0;
  3860. }
  3861. _ACEOF
  3862. ac_clean_files="$ac_clean_files conftest.out"
  3863. # Check that the compiler produces executables we can run. If not, either
  3864. # the compiler is broken, or we cross compile.
  3865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3866. printf %s "checking whether we are cross compiling... " >&6; }
  3867. if test "$cross_compiling" != yes; then
  3868. { { ac_try="$ac_link"
  3869. case "(($ac_try" in
  3870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3871. *) ac_try_echo=$ac_try;;
  3872. esac
  3873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3874. printf "%s\n" "$ac_try_echo"; } >&5
  3875. (eval "$ac_link") 2>&5
  3876. ac_status=$?
  3877. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3878. test $ac_status = 0; }
  3879. if { ac_try='./conftest$ac_cv_exeext'
  3880. { { case "(($ac_try" in
  3881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3882. *) ac_try_echo=$ac_try;;
  3883. esac
  3884. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3885. printf "%s\n" "$ac_try_echo"; } >&5
  3886. (eval "$ac_try") 2>&5
  3887. ac_status=$?
  3888. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3889. test $ac_status = 0; }; }; then
  3890. cross_compiling=no
  3891. else
  3892. if test "$cross_compiling" = maybe; then
  3893. cross_compiling=yes
  3894. else
  3895. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3896. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3897. as_fn_error 77 "cannot run C compiled programs.
  3898. If you meant to cross compile, use \`--host'.
  3899. See \`config.log' for more details" "$LINENO" 5; }
  3900. fi
  3901. fi
  3902. fi
  3903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3904. printf "%s\n" "$cross_compiling" >&6; }
  3905. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3906. ac_clean_files=$ac_clean_files_save
  3907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3908. printf %s "checking for suffix of object files... " >&6; }
  3909. if test ${ac_cv_objext+y}
  3910. then :
  3911. printf %s "(cached) " >&6
  3912. else $as_nop
  3913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3914. /* end confdefs.h. */
  3915. int
  3916. main (void)
  3917. {
  3918. ;
  3919. return 0;
  3920. }
  3921. _ACEOF
  3922. rm -f conftest.o conftest.obj
  3923. if { { ac_try="$ac_compile"
  3924. case "(($ac_try" in
  3925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3926. *) ac_try_echo=$ac_try;;
  3927. esac
  3928. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3929. printf "%s\n" "$ac_try_echo"; } >&5
  3930. (eval "$ac_compile") 2>&5
  3931. ac_status=$?
  3932. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3933. test $ac_status = 0; }
  3934. then :
  3935. for ac_file in conftest.o conftest.obj conftest.*; do
  3936. test -f "$ac_file" || continue;
  3937. case $ac_file in
  3938. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3939. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3940. break;;
  3941. esac
  3942. done
  3943. else $as_nop
  3944. printf "%s\n" "$as_me: failed program was:" >&5
  3945. sed 's/^/| /' conftest.$ac_ext >&5
  3946. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3947. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3948. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3949. See \`config.log' for more details" "$LINENO" 5; }
  3950. fi
  3951. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3952. fi
  3953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3954. printf "%s\n" "$ac_cv_objext" >&6; }
  3955. OBJEXT=$ac_cv_objext
  3956. ac_objext=$OBJEXT
  3957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3958. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3959. if test ${ac_cv_c_compiler_gnu+y}
  3960. then :
  3961. printf %s "(cached) " >&6
  3962. else $as_nop
  3963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3964. /* end confdefs.h. */
  3965. int
  3966. main (void)
  3967. {
  3968. #ifndef __GNUC__
  3969. choke me
  3970. #endif
  3971. ;
  3972. return 0;
  3973. }
  3974. _ACEOF
  3975. if ac_fn_c_try_compile "$LINENO"
  3976. then :
  3977. ac_compiler_gnu=yes
  3978. else $as_nop
  3979. ac_compiler_gnu=no
  3980. fi
  3981. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3982. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3983. fi
  3984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3985. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3986. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3987. if test $ac_compiler_gnu = yes; then
  3988. GCC=yes
  3989. else
  3990. GCC=
  3991. fi
  3992. ac_test_CFLAGS=${CFLAGS+y}
  3993. ac_save_CFLAGS=$CFLAGS
  3994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3995. printf %s "checking whether $CC accepts -g... " >&6; }
  3996. if test ${ac_cv_prog_cc_g+y}
  3997. then :
  3998. printf %s "(cached) " >&6
  3999. else $as_nop
  4000. ac_save_c_werror_flag=$ac_c_werror_flag
  4001. ac_c_werror_flag=yes
  4002. ac_cv_prog_cc_g=no
  4003. CFLAGS="-g"
  4004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4005. /* end confdefs.h. */
  4006. int
  4007. main (void)
  4008. {
  4009. ;
  4010. return 0;
  4011. }
  4012. _ACEOF
  4013. if ac_fn_c_try_compile "$LINENO"
  4014. then :
  4015. ac_cv_prog_cc_g=yes
  4016. else $as_nop
  4017. CFLAGS=""
  4018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4019. /* end confdefs.h. */
  4020. int
  4021. main (void)
  4022. {
  4023. ;
  4024. return 0;
  4025. }
  4026. _ACEOF
  4027. if ac_fn_c_try_compile "$LINENO"
  4028. then :
  4029. else $as_nop
  4030. ac_c_werror_flag=$ac_save_c_werror_flag
  4031. CFLAGS="-g"
  4032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4033. /* end confdefs.h. */
  4034. int
  4035. main (void)
  4036. {
  4037. ;
  4038. return 0;
  4039. }
  4040. _ACEOF
  4041. if ac_fn_c_try_compile "$LINENO"
  4042. then :
  4043. ac_cv_prog_cc_g=yes
  4044. fi
  4045. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4046. fi
  4047. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4048. fi
  4049. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4050. ac_c_werror_flag=$ac_save_c_werror_flag
  4051. fi
  4052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4053. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4054. if test $ac_test_CFLAGS; then
  4055. CFLAGS=$ac_save_CFLAGS
  4056. elif test $ac_cv_prog_cc_g = yes; then
  4057. if test "$GCC" = yes; then
  4058. CFLAGS="-g -O2"
  4059. else
  4060. CFLAGS="-g"
  4061. fi
  4062. else
  4063. if test "$GCC" = yes; then
  4064. CFLAGS="-O2"
  4065. else
  4066. CFLAGS=
  4067. fi
  4068. fi
  4069. ac_prog_cc_stdc=no
  4070. if test x$ac_prog_cc_stdc = xno
  4071. then :
  4072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4073. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4074. if test ${ac_cv_prog_cc_c11+y}
  4075. then :
  4076. printf %s "(cached) " >&6
  4077. else $as_nop
  4078. ac_cv_prog_cc_c11=no
  4079. ac_save_CC=$CC
  4080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4081. /* end confdefs.h. */
  4082. $ac_c_conftest_c11_program
  4083. _ACEOF
  4084. for ac_arg in '' -std=gnu11
  4085. do
  4086. CC="$ac_save_CC $ac_arg"
  4087. if ac_fn_c_try_compile "$LINENO"
  4088. then :
  4089. ac_cv_prog_cc_c11=$ac_arg
  4090. fi
  4091. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4092. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4093. done
  4094. rm -f conftest.$ac_ext
  4095. CC=$ac_save_CC
  4096. fi
  4097. if test "x$ac_cv_prog_cc_c11" = xno
  4098. then :
  4099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4100. printf "%s\n" "unsupported" >&6; }
  4101. else $as_nop
  4102. if test "x$ac_cv_prog_cc_c11" = x
  4103. then :
  4104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4105. printf "%s\n" "none needed" >&6; }
  4106. else $as_nop
  4107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4108. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4109. CC="$CC $ac_cv_prog_cc_c11"
  4110. fi
  4111. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4112. ac_prog_cc_stdc=c11
  4113. fi
  4114. fi
  4115. if test x$ac_prog_cc_stdc = xno
  4116. then :
  4117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4118. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4119. if test ${ac_cv_prog_cc_c99+y}
  4120. then :
  4121. printf %s "(cached) " >&6
  4122. else $as_nop
  4123. ac_cv_prog_cc_c99=no
  4124. ac_save_CC=$CC
  4125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4126. /* end confdefs.h. */
  4127. $ac_c_conftest_c99_program
  4128. _ACEOF
  4129. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4130. do
  4131. CC="$ac_save_CC $ac_arg"
  4132. if ac_fn_c_try_compile "$LINENO"
  4133. then :
  4134. ac_cv_prog_cc_c99=$ac_arg
  4135. fi
  4136. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4137. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4138. done
  4139. rm -f conftest.$ac_ext
  4140. CC=$ac_save_CC
  4141. fi
  4142. if test "x$ac_cv_prog_cc_c99" = xno
  4143. then :
  4144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4145. printf "%s\n" "unsupported" >&6; }
  4146. else $as_nop
  4147. if test "x$ac_cv_prog_cc_c99" = x
  4148. then :
  4149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4150. printf "%s\n" "none needed" >&6; }
  4151. else $as_nop
  4152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4153. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4154. CC="$CC $ac_cv_prog_cc_c99"
  4155. fi
  4156. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4157. ac_prog_cc_stdc=c99
  4158. fi
  4159. fi
  4160. if test x$ac_prog_cc_stdc = xno
  4161. then :
  4162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4163. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4164. if test ${ac_cv_prog_cc_c89+y}
  4165. then :
  4166. printf %s "(cached) " >&6
  4167. else $as_nop
  4168. ac_cv_prog_cc_c89=no
  4169. ac_save_CC=$CC
  4170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4171. /* end confdefs.h. */
  4172. $ac_c_conftest_c89_program
  4173. _ACEOF
  4174. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4175. do
  4176. CC="$ac_save_CC $ac_arg"
  4177. if ac_fn_c_try_compile "$LINENO"
  4178. then :
  4179. ac_cv_prog_cc_c89=$ac_arg
  4180. fi
  4181. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4182. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4183. done
  4184. rm -f conftest.$ac_ext
  4185. CC=$ac_save_CC
  4186. fi
  4187. if test "x$ac_cv_prog_cc_c89" = xno
  4188. then :
  4189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4190. printf "%s\n" "unsupported" >&6; }
  4191. else $as_nop
  4192. if test "x$ac_cv_prog_cc_c89" = x
  4193. then :
  4194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4195. printf "%s\n" "none needed" >&6; }
  4196. else $as_nop
  4197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4198. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4199. CC="$CC $ac_cv_prog_cc_c89"
  4200. fi
  4201. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4202. ac_prog_cc_stdc=c89
  4203. fi
  4204. fi
  4205. ac_ext=c
  4206. ac_cpp='$CPP $CPPFLAGS'
  4207. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4208. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4209. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4211. printf %s "checking for a sed that does not truncate output... " >&6; }
  4212. if test ${ac_cv_path_SED+y}
  4213. then :
  4214. printf %s "(cached) " >&6
  4215. else $as_nop
  4216. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4217. for ac_i in 1 2 3 4 5 6 7; do
  4218. ac_script="$ac_script$as_nl$ac_script"
  4219. done
  4220. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4221. { ac_script=; unset ac_script;}
  4222. if test -z "$SED"; then
  4223. ac_path_SED_found=false
  4224. # Loop through the user's path and test for each of PROGNAME-LIST
  4225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4226. for as_dir in $PATH
  4227. do
  4228. IFS=$as_save_IFS
  4229. case $as_dir in #(((
  4230. '') as_dir=./ ;;
  4231. */) ;;
  4232. *) as_dir=$as_dir/ ;;
  4233. esac
  4234. for ac_prog in sed gsed
  4235. do
  4236. for ac_exec_ext in '' $ac_executable_extensions; do
  4237. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4238. as_fn_executable_p "$ac_path_SED" || continue
  4239. # Check for GNU ac_path_SED and select it if it is found.
  4240. # Check for GNU $ac_path_SED
  4241. case `"$ac_path_SED" --version 2>&1` in
  4242. *GNU*)
  4243. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4244. *)
  4245. ac_count=0
  4246. printf %s 0123456789 >"conftest.in"
  4247. while :
  4248. do
  4249. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4250. mv "conftest.tmp" "conftest.in"
  4251. cp "conftest.in" "conftest.nl"
  4252. printf "%s\n" '' >> "conftest.nl"
  4253. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4254. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4255. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4256. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4257. # Best one so far, save it but keep looking for a better one
  4258. ac_cv_path_SED="$ac_path_SED"
  4259. ac_path_SED_max=$ac_count
  4260. fi
  4261. # 10*(2^10) chars as input seems more than enough
  4262. test $ac_count -gt 10 && break
  4263. done
  4264. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4265. esac
  4266. $ac_path_SED_found && break 3
  4267. done
  4268. done
  4269. done
  4270. IFS=$as_save_IFS
  4271. if test -z "$ac_cv_path_SED"; then
  4272. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4273. fi
  4274. else
  4275. ac_cv_path_SED=$SED
  4276. fi
  4277. fi
  4278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4279. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4280. SED="$ac_cv_path_SED"
  4281. rm -f conftest.sed
  4282. test -z "$SED" && SED=sed
  4283. Xsed="$SED -e 1s/^X//"
  4284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4285. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4286. if test ${ac_cv_path_GREP+y}
  4287. then :
  4288. printf %s "(cached) " >&6
  4289. else $as_nop
  4290. if test -z "$GREP"; then
  4291. ac_path_GREP_found=false
  4292. # Loop through the user's path and test for each of PROGNAME-LIST
  4293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4294. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4295. do
  4296. IFS=$as_save_IFS
  4297. case $as_dir in #(((
  4298. '') as_dir=./ ;;
  4299. */) ;;
  4300. *) as_dir=$as_dir/ ;;
  4301. esac
  4302. for ac_prog in grep ggrep
  4303. do
  4304. for ac_exec_ext in '' $ac_executable_extensions; do
  4305. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4306. as_fn_executable_p "$ac_path_GREP" || continue
  4307. # Check for GNU ac_path_GREP and select it if it is found.
  4308. # Check for GNU $ac_path_GREP
  4309. case `"$ac_path_GREP" --version 2>&1` in
  4310. *GNU*)
  4311. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4312. *)
  4313. ac_count=0
  4314. printf %s 0123456789 >"conftest.in"
  4315. while :
  4316. do
  4317. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4318. mv "conftest.tmp" "conftest.in"
  4319. cp "conftest.in" "conftest.nl"
  4320. printf "%s\n" 'GREP' >> "conftest.nl"
  4321. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4322. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4323. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4324. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4325. # Best one so far, save it but keep looking for a better one
  4326. ac_cv_path_GREP="$ac_path_GREP"
  4327. ac_path_GREP_max=$ac_count
  4328. fi
  4329. # 10*(2^10) chars as input seems more than enough
  4330. test $ac_count -gt 10 && break
  4331. done
  4332. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4333. esac
  4334. $ac_path_GREP_found && break 3
  4335. done
  4336. done
  4337. done
  4338. IFS=$as_save_IFS
  4339. if test -z "$ac_cv_path_GREP"; then
  4340. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4341. fi
  4342. else
  4343. ac_cv_path_GREP=$GREP
  4344. fi
  4345. fi
  4346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4347. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4348. GREP="$ac_cv_path_GREP"
  4349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4350. printf %s "checking for egrep... " >&6; }
  4351. if test ${ac_cv_path_EGREP+y}
  4352. then :
  4353. printf %s "(cached) " >&6
  4354. else $as_nop
  4355. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4356. then ac_cv_path_EGREP="$GREP -E"
  4357. else
  4358. if test -z "$EGREP"; then
  4359. ac_path_EGREP_found=false
  4360. # Loop through the user's path and test for each of PROGNAME-LIST
  4361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4362. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4363. do
  4364. IFS=$as_save_IFS
  4365. case $as_dir in #(((
  4366. '') as_dir=./ ;;
  4367. */) ;;
  4368. *) as_dir=$as_dir/ ;;
  4369. esac
  4370. for ac_prog in egrep
  4371. do
  4372. for ac_exec_ext in '' $ac_executable_extensions; do
  4373. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4374. as_fn_executable_p "$ac_path_EGREP" || continue
  4375. # Check for GNU ac_path_EGREP and select it if it is found.
  4376. # Check for GNU $ac_path_EGREP
  4377. case `"$ac_path_EGREP" --version 2>&1` in
  4378. *GNU*)
  4379. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4380. *)
  4381. ac_count=0
  4382. printf %s 0123456789 >"conftest.in"
  4383. while :
  4384. do
  4385. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4386. mv "conftest.tmp" "conftest.in"
  4387. cp "conftest.in" "conftest.nl"
  4388. printf "%s\n" 'EGREP' >> "conftest.nl"
  4389. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4390. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4391. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4392. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4393. # Best one so far, save it but keep looking for a better one
  4394. ac_cv_path_EGREP="$ac_path_EGREP"
  4395. ac_path_EGREP_max=$ac_count
  4396. fi
  4397. # 10*(2^10) chars as input seems more than enough
  4398. test $ac_count -gt 10 && break
  4399. done
  4400. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4401. esac
  4402. $ac_path_EGREP_found && break 3
  4403. done
  4404. done
  4405. done
  4406. IFS=$as_save_IFS
  4407. if test -z "$ac_cv_path_EGREP"; then
  4408. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4409. fi
  4410. else
  4411. ac_cv_path_EGREP=$EGREP
  4412. fi
  4413. fi
  4414. fi
  4415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4416. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4417. EGREP="$ac_cv_path_EGREP"
  4418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4419. printf %s "checking for fgrep... " >&6; }
  4420. if test ${ac_cv_path_FGREP+y}
  4421. then :
  4422. printf %s "(cached) " >&6
  4423. else $as_nop
  4424. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4425. then ac_cv_path_FGREP="$GREP -F"
  4426. else
  4427. if test -z "$FGREP"; then
  4428. ac_path_FGREP_found=false
  4429. # Loop through the user's path and test for each of PROGNAME-LIST
  4430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4431. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4432. do
  4433. IFS=$as_save_IFS
  4434. case $as_dir in #(((
  4435. '') as_dir=./ ;;
  4436. */) ;;
  4437. *) as_dir=$as_dir/ ;;
  4438. esac
  4439. for ac_prog in fgrep
  4440. do
  4441. for ac_exec_ext in '' $ac_executable_extensions; do
  4442. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4443. as_fn_executable_p "$ac_path_FGREP" || continue
  4444. # Check for GNU ac_path_FGREP and select it if it is found.
  4445. # Check for GNU $ac_path_FGREP
  4446. case `"$ac_path_FGREP" --version 2>&1` in
  4447. *GNU*)
  4448. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4449. *)
  4450. ac_count=0
  4451. printf %s 0123456789 >"conftest.in"
  4452. while :
  4453. do
  4454. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4455. mv "conftest.tmp" "conftest.in"
  4456. cp "conftest.in" "conftest.nl"
  4457. printf "%s\n" 'FGREP' >> "conftest.nl"
  4458. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4459. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4460. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4461. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4462. # Best one so far, save it but keep looking for a better one
  4463. ac_cv_path_FGREP="$ac_path_FGREP"
  4464. ac_path_FGREP_max=$ac_count
  4465. fi
  4466. # 10*(2^10) chars as input seems more than enough
  4467. test $ac_count -gt 10 && break
  4468. done
  4469. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4470. esac
  4471. $ac_path_FGREP_found && break 3
  4472. done
  4473. done
  4474. done
  4475. IFS=$as_save_IFS
  4476. if test -z "$ac_cv_path_FGREP"; then
  4477. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4478. fi
  4479. else
  4480. ac_cv_path_FGREP=$FGREP
  4481. fi
  4482. fi
  4483. fi
  4484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4485. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4486. FGREP="$ac_cv_path_FGREP"
  4487. test -z "$GREP" && GREP=grep
  4488. # Check whether --with-gnu-ld was given.
  4489. if test ${with_gnu_ld+y}
  4490. then :
  4491. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4492. else $as_nop
  4493. with_gnu_ld=no
  4494. fi
  4495. ac_prog=ld
  4496. if test yes = "$GCC"; then
  4497. # Check if gcc -print-prog-name=ld gives a path.
  4498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4499. printf %s "checking for ld used by $CC... " >&6; }
  4500. case $host in
  4501. *-*-mingw*)
  4502. # gcc leaves a trailing carriage return, which upsets mingw
  4503. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4504. *)
  4505. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4506. esac
  4507. case $ac_prog in
  4508. # Accept absolute paths.
  4509. [\\/]* | ?:[\\/]*)
  4510. re_direlt='/[^/][^/]*/\.\./'
  4511. # Canonicalize the pathname of ld
  4512. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4513. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4514. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4515. done
  4516. test -z "$LD" && LD=$ac_prog
  4517. ;;
  4518. "")
  4519. # If it fails, then pretend we aren't using GCC.
  4520. ac_prog=ld
  4521. ;;
  4522. *)
  4523. # If it is relative, then search for the first ld in PATH.
  4524. with_gnu_ld=unknown
  4525. ;;
  4526. esac
  4527. elif test yes = "$with_gnu_ld"; then
  4528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4529. printf %s "checking for GNU ld... " >&6; }
  4530. else
  4531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4532. printf %s "checking for non-GNU ld... " >&6; }
  4533. fi
  4534. if test ${lt_cv_path_LD+y}
  4535. then :
  4536. printf %s "(cached) " >&6
  4537. else $as_nop
  4538. if test -z "$LD"; then
  4539. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4540. for ac_dir in $PATH; do
  4541. IFS=$lt_save_ifs
  4542. test -z "$ac_dir" && ac_dir=.
  4543. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4544. lt_cv_path_LD=$ac_dir/$ac_prog
  4545. # Check to see if the program is GNU ld. I'd rather use --version,
  4546. # but apparently some variants of GNU ld only accept -v.
  4547. # Break only if it was the GNU/non-GNU ld that we prefer.
  4548. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4549. *GNU* | *'with BFD'*)
  4550. test no != "$with_gnu_ld" && break
  4551. ;;
  4552. *)
  4553. test yes != "$with_gnu_ld" && break
  4554. ;;
  4555. esac
  4556. fi
  4557. done
  4558. IFS=$lt_save_ifs
  4559. else
  4560. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4561. fi
  4562. fi
  4563. LD=$lt_cv_path_LD
  4564. if test -n "$LD"; then
  4565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4566. printf "%s\n" "$LD" >&6; }
  4567. else
  4568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4569. printf "%s\n" "no" >&6; }
  4570. fi
  4571. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4573. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4574. if test ${lt_cv_prog_gnu_ld+y}
  4575. then :
  4576. printf %s "(cached) " >&6
  4577. else $as_nop
  4578. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4579. case `$LD -v 2>&1 </dev/null` in
  4580. *GNU* | *'with BFD'*)
  4581. lt_cv_prog_gnu_ld=yes
  4582. ;;
  4583. *)
  4584. lt_cv_prog_gnu_ld=no
  4585. ;;
  4586. esac
  4587. fi
  4588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4589. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4590. with_gnu_ld=$lt_cv_prog_gnu_ld
  4591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4592. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4593. if test ${lt_cv_path_NM+y}
  4594. then :
  4595. printf %s "(cached) " >&6
  4596. else $as_nop
  4597. if test -n "$NM"; then
  4598. # Let the user override the test.
  4599. lt_cv_path_NM=$NM
  4600. else
  4601. lt_nm_to_check=${ac_tool_prefix}nm
  4602. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4603. lt_nm_to_check="$lt_nm_to_check nm"
  4604. fi
  4605. for lt_tmp_nm in $lt_nm_to_check; do
  4606. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4607. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4608. IFS=$lt_save_ifs
  4609. test -z "$ac_dir" && ac_dir=.
  4610. tmp_nm=$ac_dir/$lt_tmp_nm
  4611. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4612. # Check to see if the nm accepts a BSD-compat flag.
  4613. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4614. # nm: unknown option "B" ignored
  4615. # Tru64's nm complains that /dev/null is an invalid object file
  4616. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4617. case $build_os in
  4618. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4619. *) lt_bad_file=/dev/null ;;
  4620. esac
  4621. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4622. *$lt_bad_file* | *'Invalid file or object type'*)
  4623. lt_cv_path_NM="$tmp_nm -B"
  4624. break 2
  4625. ;;
  4626. *)
  4627. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4628. */dev/null*)
  4629. lt_cv_path_NM="$tmp_nm -p"
  4630. break 2
  4631. ;;
  4632. *)
  4633. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4634. continue # so that we can try to find one that supports BSD flags
  4635. ;;
  4636. esac
  4637. ;;
  4638. esac
  4639. fi
  4640. done
  4641. IFS=$lt_save_ifs
  4642. done
  4643. : ${lt_cv_path_NM=no}
  4644. fi
  4645. fi
  4646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4647. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4648. if test no != "$lt_cv_path_NM"; then
  4649. NM=$lt_cv_path_NM
  4650. else
  4651. # Didn't find any BSD compatible name lister, look for dumpbin.
  4652. if test -n "$DUMPBIN"; then :
  4653. # Let the user override the test.
  4654. else
  4655. if test -n "$ac_tool_prefix"; then
  4656. for ac_prog in dumpbin "link -dump"
  4657. do
  4658. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4659. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4661. printf %s "checking for $ac_word... " >&6; }
  4662. if test ${ac_cv_prog_DUMPBIN+y}
  4663. then :
  4664. printf %s "(cached) " >&6
  4665. else $as_nop
  4666. if test -n "$DUMPBIN"; then
  4667. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4668. else
  4669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4670. for as_dir in $PATH
  4671. do
  4672. IFS=$as_save_IFS
  4673. case $as_dir in #(((
  4674. '') as_dir=./ ;;
  4675. */) ;;
  4676. *) as_dir=$as_dir/ ;;
  4677. esac
  4678. for ac_exec_ext in '' $ac_executable_extensions; do
  4679. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4680. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4682. break 2
  4683. fi
  4684. done
  4685. done
  4686. IFS=$as_save_IFS
  4687. fi
  4688. fi
  4689. DUMPBIN=$ac_cv_prog_DUMPBIN
  4690. if test -n "$DUMPBIN"; then
  4691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4692. printf "%s\n" "$DUMPBIN" >&6; }
  4693. else
  4694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4695. printf "%s\n" "no" >&6; }
  4696. fi
  4697. test -n "$DUMPBIN" && break
  4698. done
  4699. fi
  4700. if test -z "$DUMPBIN"; then
  4701. ac_ct_DUMPBIN=$DUMPBIN
  4702. for ac_prog in dumpbin "link -dump"
  4703. do
  4704. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4705. set dummy $ac_prog; ac_word=$2
  4706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4707. printf %s "checking for $ac_word... " >&6; }
  4708. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4709. then :
  4710. printf %s "(cached) " >&6
  4711. else $as_nop
  4712. if test -n "$ac_ct_DUMPBIN"; then
  4713. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4714. else
  4715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4716. for as_dir in $PATH
  4717. do
  4718. IFS=$as_save_IFS
  4719. case $as_dir in #(((
  4720. '') as_dir=./ ;;
  4721. */) ;;
  4722. *) as_dir=$as_dir/ ;;
  4723. esac
  4724. for ac_exec_ext in '' $ac_executable_extensions; do
  4725. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4726. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4727. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4728. break 2
  4729. fi
  4730. done
  4731. done
  4732. IFS=$as_save_IFS
  4733. fi
  4734. fi
  4735. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4736. if test -n "$ac_ct_DUMPBIN"; then
  4737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4738. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4739. else
  4740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4741. printf "%s\n" "no" >&6; }
  4742. fi
  4743. test -n "$ac_ct_DUMPBIN" && break
  4744. done
  4745. if test "x$ac_ct_DUMPBIN" = x; then
  4746. DUMPBIN=":"
  4747. else
  4748. case $cross_compiling:$ac_tool_warned in
  4749. yes:)
  4750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4751. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4752. ac_tool_warned=yes ;;
  4753. esac
  4754. DUMPBIN=$ac_ct_DUMPBIN
  4755. fi
  4756. fi
  4757. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4758. *COFF*)
  4759. DUMPBIN="$DUMPBIN -symbols -headers"
  4760. ;;
  4761. *)
  4762. DUMPBIN=:
  4763. ;;
  4764. esac
  4765. fi
  4766. if test : != "$DUMPBIN"; then
  4767. NM=$DUMPBIN
  4768. fi
  4769. fi
  4770. test -z "$NM" && NM=nm
  4771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4772. printf %s "checking the name lister ($NM) interface... " >&6; }
  4773. if test ${lt_cv_nm_interface+y}
  4774. then :
  4775. printf %s "(cached) " >&6
  4776. else $as_nop
  4777. lt_cv_nm_interface="BSD nm"
  4778. echo "int some_variable = 0;" > conftest.$ac_ext
  4779. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4780. (eval "$ac_compile" 2>conftest.err)
  4781. cat conftest.err >&5
  4782. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4783. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4784. cat conftest.err >&5
  4785. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4786. cat conftest.out >&5
  4787. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4788. lt_cv_nm_interface="MS dumpbin"
  4789. fi
  4790. rm -f conftest*
  4791. fi
  4792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4793. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4795. printf %s "checking whether ln -s works... " >&6; }
  4796. LN_S=$as_ln_s
  4797. if test "$LN_S" = "ln -s"; then
  4798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4799. printf "%s\n" "yes" >&6; }
  4800. else
  4801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4802. printf "%s\n" "no, using $LN_S" >&6; }
  4803. fi
  4804. # find the maximum length of command line arguments
  4805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4806. printf %s "checking the maximum length of command line arguments... " >&6; }
  4807. if test ${lt_cv_sys_max_cmd_len+y}
  4808. then :
  4809. printf %s "(cached) " >&6
  4810. else $as_nop
  4811. i=0
  4812. teststring=ABCD
  4813. case $build_os in
  4814. msdosdjgpp*)
  4815. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4816. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4817. # during glob expansion). Even if it were fixed, the result of this
  4818. # check would be larger than it should be.
  4819. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4820. ;;
  4821. gnu*)
  4822. # Under GNU Hurd, this test is not required because there is
  4823. # no limit to the length of command line arguments.
  4824. # Libtool will interpret -1 as no limit whatsoever
  4825. lt_cv_sys_max_cmd_len=-1;
  4826. ;;
  4827. cygwin* | mingw* | cegcc*)
  4828. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4829. # about 5 minutes as the teststring grows exponentially.
  4830. # Worse, since 9x/ME are not pre-emptively multitasking,
  4831. # you end up with a "frozen" computer, even though with patience
  4832. # the test eventually succeeds (with a max line length of 256k).
  4833. # Instead, let's just punt: use the minimum linelength reported by
  4834. # all of the supported platforms: 8192 (on NT/2K/XP).
  4835. lt_cv_sys_max_cmd_len=8192;
  4836. ;;
  4837. mint*)
  4838. # On MiNT this can take a long time and run out of memory.
  4839. lt_cv_sys_max_cmd_len=8192;
  4840. ;;
  4841. amigaos*)
  4842. # On AmigaOS with pdksh, this test takes hours, literally.
  4843. # So we just punt and use a minimum line length of 8192.
  4844. lt_cv_sys_max_cmd_len=8192;
  4845. ;;
  4846. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4847. # This has been around since 386BSD, at least. Likely further.
  4848. if test -x /sbin/sysctl; then
  4849. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4850. elif test -x /usr/sbin/sysctl; then
  4851. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4852. else
  4853. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4854. fi
  4855. # And add a safety zone
  4856. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4857. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4858. ;;
  4859. interix*)
  4860. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4861. lt_cv_sys_max_cmd_len=196608
  4862. ;;
  4863. os2*)
  4864. # The test takes a long time on OS/2.
  4865. lt_cv_sys_max_cmd_len=8192
  4866. ;;
  4867. osf*)
  4868. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4869. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4870. # nice to cause kernel panics so lets avoid the loop below.
  4871. # First set a reasonable default.
  4872. lt_cv_sys_max_cmd_len=16384
  4873. #
  4874. if test -x /sbin/sysconfig; then
  4875. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4876. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4877. esac
  4878. fi
  4879. ;;
  4880. sco3.2v5*)
  4881. lt_cv_sys_max_cmd_len=102400
  4882. ;;
  4883. sysv5* | sco5v6* | sysv4.2uw2*)
  4884. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4885. if test -n "$kargmax"; then
  4886. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4887. else
  4888. lt_cv_sys_max_cmd_len=32768
  4889. fi
  4890. ;;
  4891. *)
  4892. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4893. if test -n "$lt_cv_sys_max_cmd_len" && \
  4894. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4895. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4896. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4897. else
  4898. # Make teststring a little bigger before we do anything with it.
  4899. # a 1K string should be a reasonable start.
  4900. for i in 1 2 3 4 5 6 7 8; do
  4901. teststring=$teststring$teststring
  4902. done
  4903. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4904. # If test is not a shell built-in, we'll probably end up computing a
  4905. # maximum length that is only half of the actual maximum length, but
  4906. # we can't tell.
  4907. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4908. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4909. test 17 != "$i" # 1/2 MB should be enough
  4910. do
  4911. i=`expr $i + 1`
  4912. teststring=$teststring$teststring
  4913. done
  4914. # Only check the string length outside the loop.
  4915. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4916. teststring=
  4917. # Add a significant safety factor because C++ compilers can tack on
  4918. # massive amounts of additional arguments before passing them to the
  4919. # linker. It appears as though 1/2 is a usable value.
  4920. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4921. fi
  4922. ;;
  4923. esac
  4924. fi
  4925. if test -n "$lt_cv_sys_max_cmd_len"; then
  4926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4927. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4928. else
  4929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4930. printf "%s\n" "none" >&6; }
  4931. fi
  4932. max_cmd_len=$lt_cv_sys_max_cmd_len
  4933. : ${CP="cp -f"}
  4934. : ${MV="mv -f"}
  4935. : ${RM="rm -f"}
  4936. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4937. lt_unset=unset
  4938. else
  4939. lt_unset=false
  4940. fi
  4941. # test EBCDIC or ASCII
  4942. case `echo X|tr X '\101'` in
  4943. A) # ASCII based system
  4944. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4945. lt_SP2NL='tr \040 \012'
  4946. lt_NL2SP='tr \015\012 \040\040'
  4947. ;;
  4948. *) # EBCDIC based system
  4949. lt_SP2NL='tr \100 \n'
  4950. lt_NL2SP='tr \r\n \100\100'
  4951. ;;
  4952. esac
  4953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4954. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4955. if test ${lt_cv_to_host_file_cmd+y}
  4956. then :
  4957. printf %s "(cached) " >&6
  4958. else $as_nop
  4959. case $host in
  4960. *-*-mingw* )
  4961. case $build in
  4962. *-*-mingw* ) # actually msys
  4963. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4964. ;;
  4965. *-*-cygwin* )
  4966. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4967. ;;
  4968. * ) # otherwise, assume *nix
  4969. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4970. ;;
  4971. esac
  4972. ;;
  4973. *-*-cygwin* )
  4974. case $build in
  4975. *-*-mingw* ) # actually msys
  4976. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4977. ;;
  4978. *-*-cygwin* )
  4979. lt_cv_to_host_file_cmd=func_convert_file_noop
  4980. ;;
  4981. * ) # otherwise, assume *nix
  4982. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4983. ;;
  4984. esac
  4985. ;;
  4986. * ) # unhandled hosts (and "normal" native builds)
  4987. lt_cv_to_host_file_cmd=func_convert_file_noop
  4988. ;;
  4989. esac
  4990. fi
  4991. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4993. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4995. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4996. if test ${lt_cv_to_tool_file_cmd+y}
  4997. then :
  4998. printf %s "(cached) " >&6
  4999. else $as_nop
  5000. #assume ordinary cross tools, or native build.
  5001. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5002. case $host in
  5003. *-*-mingw* )
  5004. case $build in
  5005. *-*-mingw* ) # actually msys
  5006. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5007. ;;
  5008. esac
  5009. ;;
  5010. esac
  5011. fi
  5012. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5014. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5016. printf %s "checking for $LD option to reload object files... " >&6; }
  5017. if test ${lt_cv_ld_reload_flag+y}
  5018. then :
  5019. printf %s "(cached) " >&6
  5020. else $as_nop
  5021. lt_cv_ld_reload_flag='-r'
  5022. fi
  5023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5024. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5025. reload_flag=$lt_cv_ld_reload_flag
  5026. case $reload_flag in
  5027. "" | " "*) ;;
  5028. *) reload_flag=" $reload_flag" ;;
  5029. esac
  5030. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5031. case $host_os in
  5032. cygwin* | mingw* | pw32* | cegcc*)
  5033. if test yes != "$GCC"; then
  5034. reload_cmds=false
  5035. fi
  5036. ;;
  5037. darwin*)
  5038. if test yes = "$GCC"; then
  5039. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5040. else
  5041. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5042. fi
  5043. ;;
  5044. esac
  5045. if test -n "$ac_tool_prefix"; then
  5046. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5047. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5049. printf %s "checking for $ac_word... " >&6; }
  5050. if test ${ac_cv_prog_OBJDUMP+y}
  5051. then :
  5052. printf %s "(cached) " >&6
  5053. else $as_nop
  5054. if test -n "$OBJDUMP"; then
  5055. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5056. else
  5057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5058. for as_dir in $PATH
  5059. do
  5060. IFS=$as_save_IFS
  5061. case $as_dir in #(((
  5062. '') as_dir=./ ;;
  5063. */) ;;
  5064. *) as_dir=$as_dir/ ;;
  5065. esac
  5066. for ac_exec_ext in '' $ac_executable_extensions; do
  5067. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5068. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5069. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5070. break 2
  5071. fi
  5072. done
  5073. done
  5074. IFS=$as_save_IFS
  5075. fi
  5076. fi
  5077. OBJDUMP=$ac_cv_prog_OBJDUMP
  5078. if test -n "$OBJDUMP"; then
  5079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5080. printf "%s\n" "$OBJDUMP" >&6; }
  5081. else
  5082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5083. printf "%s\n" "no" >&6; }
  5084. fi
  5085. fi
  5086. if test -z "$ac_cv_prog_OBJDUMP"; then
  5087. ac_ct_OBJDUMP=$OBJDUMP
  5088. # Extract the first word of "objdump", so it can be a program name with args.
  5089. set dummy objdump; ac_word=$2
  5090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5091. printf %s "checking for $ac_word... " >&6; }
  5092. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5093. then :
  5094. printf %s "(cached) " >&6
  5095. else $as_nop
  5096. if test -n "$ac_ct_OBJDUMP"; then
  5097. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5098. else
  5099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5100. for as_dir in $PATH
  5101. do
  5102. IFS=$as_save_IFS
  5103. case $as_dir in #(((
  5104. '') as_dir=./ ;;
  5105. */) ;;
  5106. *) as_dir=$as_dir/ ;;
  5107. esac
  5108. for ac_exec_ext in '' $ac_executable_extensions; do
  5109. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5110. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5111. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5112. break 2
  5113. fi
  5114. done
  5115. done
  5116. IFS=$as_save_IFS
  5117. fi
  5118. fi
  5119. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5120. if test -n "$ac_ct_OBJDUMP"; then
  5121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5122. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5123. else
  5124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5125. printf "%s\n" "no" >&6; }
  5126. fi
  5127. if test "x$ac_ct_OBJDUMP" = x; then
  5128. OBJDUMP="false"
  5129. else
  5130. case $cross_compiling:$ac_tool_warned in
  5131. yes:)
  5132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5133. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5134. ac_tool_warned=yes ;;
  5135. esac
  5136. OBJDUMP=$ac_ct_OBJDUMP
  5137. fi
  5138. else
  5139. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5140. fi
  5141. test -z "$OBJDUMP" && OBJDUMP=objdump
  5142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5143. printf %s "checking how to recognize dependent libraries... " >&6; }
  5144. if test ${lt_cv_deplibs_check_method+y}
  5145. then :
  5146. printf %s "(cached) " >&6
  5147. else $as_nop
  5148. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5149. lt_cv_file_magic_test_file=
  5150. lt_cv_deplibs_check_method='unknown'
  5151. # Need to set the preceding variable on all platforms that support
  5152. # interlibrary dependencies.
  5153. # 'none' -- dependencies not supported.
  5154. # 'unknown' -- same as none, but documents that we really don't know.
  5155. # 'pass_all' -- all dependencies passed with no checks.
  5156. # 'test_compile' -- check by making test program.
  5157. # 'file_magic [[regex]]' -- check by looking for files in library path
  5158. # that responds to the $file_magic_cmd with a given extended regex.
  5159. # If you have 'file' or equivalent on your system and you're not sure
  5160. # whether 'pass_all' will *always* work, you probably want this one.
  5161. case $host_os in
  5162. aix[4-9]*)
  5163. lt_cv_deplibs_check_method=pass_all
  5164. ;;
  5165. beos*)
  5166. lt_cv_deplibs_check_method=pass_all
  5167. ;;
  5168. bsdi[45]*)
  5169. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5170. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5171. lt_cv_file_magic_test_file=/shlib/libc.so
  5172. ;;
  5173. cygwin*)
  5174. # func_win32_libid is a shell function defined in ltmain.sh
  5175. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5176. lt_cv_file_magic_cmd='func_win32_libid'
  5177. lt_cv_deplibs_check_method=pass_all # SDL customization
  5178. ;;
  5179. mingw* | pw32*)
  5180. # Base MSYS/MinGW do not provide the 'file' command needed by
  5181. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5182. # unless we find 'file', for example because we are cross-compiling.
  5183. if ( file / ) >/dev/null 2>&1; then
  5184. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5185. lt_cv_file_magic_cmd='func_win32_libid'
  5186. else
  5187. # Keep this pattern in sync with the one in func_win32_libid.
  5188. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5189. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5190. fi
  5191. lt_cv_deplibs_check_method=pass_all # SDL customization
  5192. ;;
  5193. cegcc*)
  5194. # use the weaker test based on 'objdump'. See mingw*.
  5195. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5196. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5197. ;;
  5198. darwin* | rhapsody*)
  5199. lt_cv_deplibs_check_method=pass_all
  5200. ;;
  5201. freebsd* | dragonfly* | midnightbsd*)
  5202. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5203. case $host_cpu in
  5204. i*86 )
  5205. # Not sure whether the presence of OpenBSD here was a mistake.
  5206. # Let's accept both of them until this is cleared up.
  5207. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5208. lt_cv_file_magic_cmd=/usr/bin/file
  5209. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5210. ;;
  5211. esac
  5212. else
  5213. lt_cv_deplibs_check_method=pass_all
  5214. fi
  5215. ;;
  5216. haiku*)
  5217. lt_cv_deplibs_check_method=pass_all
  5218. ;;
  5219. hpux10.20* | hpux11*)
  5220. lt_cv_file_magic_cmd=/usr/bin/file
  5221. case $host_cpu in
  5222. ia64*)
  5223. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5224. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5225. ;;
  5226. hppa*64*)
  5227. 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]'
  5228. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5229. ;;
  5230. *)
  5231. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5232. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5233. ;;
  5234. esac
  5235. ;;
  5236. interix[3-9]*)
  5237. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5238. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5239. ;;
  5240. irix5* | irix6* | nonstopux*)
  5241. case $LD in
  5242. *-32|*"-32 ") libmagic=32-bit;;
  5243. *-n32|*"-n32 ") libmagic=N32;;
  5244. *-64|*"-64 ") libmagic=64-bit;;
  5245. *) libmagic=never-match;;
  5246. esac
  5247. lt_cv_deplibs_check_method=pass_all
  5248. ;;
  5249. # This must be glibc/ELF.
  5250. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5251. lt_cv_deplibs_check_method=pass_all
  5252. ;;
  5253. netbsd*)
  5254. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5255. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5256. else
  5257. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5258. fi
  5259. ;;
  5260. newos6*)
  5261. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5262. lt_cv_file_magic_cmd=/usr/bin/file
  5263. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5264. ;;
  5265. *nto* | *qnx*)
  5266. lt_cv_deplibs_check_method=pass_all
  5267. ;;
  5268. openbsd* | bitrig*)
  5269. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5270. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5271. else
  5272. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5273. fi
  5274. ;;
  5275. osf3* | osf4* | osf5*)
  5276. lt_cv_deplibs_check_method=pass_all
  5277. ;;
  5278. rdos*)
  5279. lt_cv_deplibs_check_method=pass_all
  5280. ;;
  5281. solaris*)
  5282. lt_cv_deplibs_check_method=pass_all
  5283. ;;
  5284. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5285. lt_cv_deplibs_check_method=pass_all
  5286. ;;
  5287. sysv4 | sysv4.3*)
  5288. case $host_vendor in
  5289. motorola)
  5290. 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]'
  5291. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5292. ;;
  5293. ncr)
  5294. lt_cv_deplibs_check_method=pass_all
  5295. ;;
  5296. sequent)
  5297. lt_cv_file_magic_cmd='/bin/file'
  5298. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5299. ;;
  5300. sni)
  5301. lt_cv_file_magic_cmd='/bin/file'
  5302. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5303. lt_cv_file_magic_test_file=/lib/libc.so
  5304. ;;
  5305. siemens)
  5306. lt_cv_deplibs_check_method=pass_all
  5307. ;;
  5308. pc)
  5309. lt_cv_deplibs_check_method=pass_all
  5310. ;;
  5311. esac
  5312. ;;
  5313. tpf*)
  5314. lt_cv_deplibs_check_method=pass_all
  5315. ;;
  5316. os2*)
  5317. lt_cv_deplibs_check_method=pass_all
  5318. ;;
  5319. esac
  5320. fi
  5321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5322. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5323. file_magic_glob=
  5324. want_nocaseglob=no
  5325. if test "$build" = "$host"; then
  5326. case $host_os in
  5327. mingw* | pw32*)
  5328. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5329. want_nocaseglob=yes
  5330. else
  5331. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5332. fi
  5333. ;;
  5334. esac
  5335. fi
  5336. file_magic_cmd=$lt_cv_file_magic_cmd
  5337. deplibs_check_method=$lt_cv_deplibs_check_method
  5338. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5339. if test -n "$ac_tool_prefix"; then
  5340. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5341. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5343. printf %s "checking for $ac_word... " >&6; }
  5344. if test ${ac_cv_prog_DLLTOOL+y}
  5345. then :
  5346. printf %s "(cached) " >&6
  5347. else $as_nop
  5348. if test -n "$DLLTOOL"; then
  5349. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5350. else
  5351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5352. for as_dir in $PATH
  5353. do
  5354. IFS=$as_save_IFS
  5355. case $as_dir in #(((
  5356. '') as_dir=./ ;;
  5357. */) ;;
  5358. *) as_dir=$as_dir/ ;;
  5359. esac
  5360. for ac_exec_ext in '' $ac_executable_extensions; do
  5361. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5362. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5363. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5364. break 2
  5365. fi
  5366. done
  5367. done
  5368. IFS=$as_save_IFS
  5369. fi
  5370. fi
  5371. DLLTOOL=$ac_cv_prog_DLLTOOL
  5372. if test -n "$DLLTOOL"; then
  5373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5374. printf "%s\n" "$DLLTOOL" >&6; }
  5375. else
  5376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5377. printf "%s\n" "no" >&6; }
  5378. fi
  5379. fi
  5380. if test -z "$ac_cv_prog_DLLTOOL"; then
  5381. ac_ct_DLLTOOL=$DLLTOOL
  5382. # Extract the first word of "dlltool", so it can be a program name with args.
  5383. set dummy dlltool; ac_word=$2
  5384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5385. printf %s "checking for $ac_word... " >&6; }
  5386. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5387. then :
  5388. printf %s "(cached) " >&6
  5389. else $as_nop
  5390. if test -n "$ac_ct_DLLTOOL"; then
  5391. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5392. else
  5393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5394. for as_dir in $PATH
  5395. do
  5396. IFS=$as_save_IFS
  5397. case $as_dir in #(((
  5398. '') as_dir=./ ;;
  5399. */) ;;
  5400. *) as_dir=$as_dir/ ;;
  5401. esac
  5402. for ac_exec_ext in '' $ac_executable_extensions; do
  5403. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5404. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5405. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5406. break 2
  5407. fi
  5408. done
  5409. done
  5410. IFS=$as_save_IFS
  5411. fi
  5412. fi
  5413. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5414. if test -n "$ac_ct_DLLTOOL"; then
  5415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5416. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5417. else
  5418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5419. printf "%s\n" "no" >&6; }
  5420. fi
  5421. if test "x$ac_ct_DLLTOOL" = x; then
  5422. DLLTOOL="false"
  5423. else
  5424. case $cross_compiling:$ac_tool_warned in
  5425. yes:)
  5426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5427. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5428. ac_tool_warned=yes ;;
  5429. esac
  5430. DLLTOOL=$ac_ct_DLLTOOL
  5431. fi
  5432. else
  5433. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5434. fi
  5435. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5437. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5438. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5439. then :
  5440. printf %s "(cached) " >&6
  5441. else $as_nop
  5442. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5443. case $host_os in
  5444. cygwin* | mingw* | pw32* | cegcc*)
  5445. # two different shell functions defined in ltmain.sh;
  5446. # decide which one to use based on capabilities of $DLLTOOL
  5447. case `$DLLTOOL --help 2>&1` in
  5448. *--identify-strict*)
  5449. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5450. ;;
  5451. *)
  5452. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5453. ;;
  5454. esac
  5455. ;;
  5456. *)
  5457. # fallback: assume linklib IS sharedlib
  5458. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5459. ;;
  5460. esac
  5461. fi
  5462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5463. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5464. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5465. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5466. if test -n "$ac_tool_prefix"; then
  5467. for ac_prog in ar
  5468. do
  5469. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5470. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5472. printf %s "checking for $ac_word... " >&6; }
  5473. if test ${ac_cv_prog_AR+y}
  5474. then :
  5475. printf %s "(cached) " >&6
  5476. else $as_nop
  5477. if test -n "$AR"; then
  5478. ac_cv_prog_AR="$AR" # Let the user override the test.
  5479. else
  5480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5481. for as_dir in $PATH
  5482. do
  5483. IFS=$as_save_IFS
  5484. case $as_dir in #(((
  5485. '') as_dir=./ ;;
  5486. */) ;;
  5487. *) as_dir=$as_dir/ ;;
  5488. esac
  5489. for ac_exec_ext in '' $ac_executable_extensions; do
  5490. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5491. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5492. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5493. break 2
  5494. fi
  5495. done
  5496. done
  5497. IFS=$as_save_IFS
  5498. fi
  5499. fi
  5500. AR=$ac_cv_prog_AR
  5501. if test -n "$AR"; then
  5502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5503. printf "%s\n" "$AR" >&6; }
  5504. else
  5505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5506. printf "%s\n" "no" >&6; }
  5507. fi
  5508. test -n "$AR" && break
  5509. done
  5510. fi
  5511. if test -z "$AR"; then
  5512. ac_ct_AR=$AR
  5513. for ac_prog in ar
  5514. do
  5515. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5516. set dummy $ac_prog; ac_word=$2
  5517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5518. printf %s "checking for $ac_word... " >&6; }
  5519. if test ${ac_cv_prog_ac_ct_AR+y}
  5520. then :
  5521. printf %s "(cached) " >&6
  5522. else $as_nop
  5523. if test -n "$ac_ct_AR"; then
  5524. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5525. else
  5526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5527. for as_dir in $PATH
  5528. do
  5529. IFS=$as_save_IFS
  5530. case $as_dir in #(((
  5531. '') as_dir=./ ;;
  5532. */) ;;
  5533. *) as_dir=$as_dir/ ;;
  5534. esac
  5535. for ac_exec_ext in '' $ac_executable_extensions; do
  5536. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5537. ac_cv_prog_ac_ct_AR="$ac_prog"
  5538. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5539. break 2
  5540. fi
  5541. done
  5542. done
  5543. IFS=$as_save_IFS
  5544. fi
  5545. fi
  5546. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5547. if test -n "$ac_ct_AR"; then
  5548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5549. printf "%s\n" "$ac_ct_AR" >&6; }
  5550. else
  5551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5552. printf "%s\n" "no" >&6; }
  5553. fi
  5554. test -n "$ac_ct_AR" && break
  5555. done
  5556. if test "x$ac_ct_AR" = x; then
  5557. AR="false"
  5558. else
  5559. case $cross_compiling:$ac_tool_warned in
  5560. yes:)
  5561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5562. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5563. ac_tool_warned=yes ;;
  5564. esac
  5565. AR=$ac_ct_AR
  5566. fi
  5567. fi
  5568. : ${AR=ar}
  5569. : ${AR_FLAGS=cru}
  5570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5571. printf %s "checking for archiver @FILE support... " >&6; }
  5572. if test ${lt_cv_ar_at_file+y}
  5573. then :
  5574. printf %s "(cached) " >&6
  5575. else $as_nop
  5576. lt_cv_ar_at_file=no
  5577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5578. /* end confdefs.h. */
  5579. int
  5580. main (void)
  5581. {
  5582. ;
  5583. return 0;
  5584. }
  5585. _ACEOF
  5586. if ac_fn_c_try_compile "$LINENO"
  5587. then :
  5588. echo conftest.$ac_objext > conftest.lst
  5589. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5590. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5591. (eval $lt_ar_try) 2>&5
  5592. ac_status=$?
  5593. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5594. test $ac_status = 0; }
  5595. if test 0 -eq "$ac_status"; then
  5596. # Ensure the archiver fails upon bogus file names.
  5597. rm -f conftest.$ac_objext libconftest.a
  5598. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5599. (eval $lt_ar_try) 2>&5
  5600. ac_status=$?
  5601. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5602. test $ac_status = 0; }
  5603. if test 0 -ne "$ac_status"; then
  5604. lt_cv_ar_at_file=@
  5605. fi
  5606. fi
  5607. rm -f conftest.* libconftest.a
  5608. fi
  5609. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5610. fi
  5611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5612. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5613. if test no = "$lt_cv_ar_at_file"; then
  5614. archiver_list_spec=
  5615. else
  5616. archiver_list_spec=$lt_cv_ar_at_file
  5617. fi
  5618. if test -n "$ac_tool_prefix"; then
  5619. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5620. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5622. printf %s "checking for $ac_word... " >&6; }
  5623. if test ${ac_cv_prog_STRIP+y}
  5624. then :
  5625. printf %s "(cached) " >&6
  5626. else $as_nop
  5627. if test -n "$STRIP"; then
  5628. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5629. else
  5630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5631. for as_dir in $PATH
  5632. do
  5633. IFS=$as_save_IFS
  5634. case $as_dir in #(((
  5635. '') as_dir=./ ;;
  5636. */) ;;
  5637. *) as_dir=$as_dir/ ;;
  5638. esac
  5639. for ac_exec_ext in '' $ac_executable_extensions; do
  5640. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5641. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5642. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5643. break 2
  5644. fi
  5645. done
  5646. done
  5647. IFS=$as_save_IFS
  5648. fi
  5649. fi
  5650. STRIP=$ac_cv_prog_STRIP
  5651. if test -n "$STRIP"; then
  5652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5653. printf "%s\n" "$STRIP" >&6; }
  5654. else
  5655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5656. printf "%s\n" "no" >&6; }
  5657. fi
  5658. fi
  5659. if test -z "$ac_cv_prog_STRIP"; then
  5660. ac_ct_STRIP=$STRIP
  5661. # Extract the first word of "strip", so it can be a program name with args.
  5662. set dummy strip; ac_word=$2
  5663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5664. printf %s "checking for $ac_word... " >&6; }
  5665. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5666. then :
  5667. printf %s "(cached) " >&6
  5668. else $as_nop
  5669. if test -n "$ac_ct_STRIP"; then
  5670. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5671. else
  5672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5673. for as_dir in $PATH
  5674. do
  5675. IFS=$as_save_IFS
  5676. case $as_dir in #(((
  5677. '') as_dir=./ ;;
  5678. */) ;;
  5679. *) as_dir=$as_dir/ ;;
  5680. esac
  5681. for ac_exec_ext in '' $ac_executable_extensions; do
  5682. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5683. ac_cv_prog_ac_ct_STRIP="strip"
  5684. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5685. break 2
  5686. fi
  5687. done
  5688. done
  5689. IFS=$as_save_IFS
  5690. fi
  5691. fi
  5692. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5693. if test -n "$ac_ct_STRIP"; then
  5694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5695. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5696. else
  5697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5698. printf "%s\n" "no" >&6; }
  5699. fi
  5700. if test "x$ac_ct_STRIP" = x; then
  5701. STRIP=":"
  5702. else
  5703. case $cross_compiling:$ac_tool_warned in
  5704. yes:)
  5705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5706. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5707. ac_tool_warned=yes ;;
  5708. esac
  5709. STRIP=$ac_ct_STRIP
  5710. fi
  5711. else
  5712. STRIP="$ac_cv_prog_STRIP"
  5713. fi
  5714. test -z "$STRIP" && STRIP=:
  5715. if test -n "$ac_tool_prefix"; then
  5716. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5717. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5719. printf %s "checking for $ac_word... " >&6; }
  5720. if test ${ac_cv_prog_RANLIB+y}
  5721. then :
  5722. printf %s "(cached) " >&6
  5723. else $as_nop
  5724. if test -n "$RANLIB"; then
  5725. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5726. else
  5727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5728. for as_dir in $PATH
  5729. do
  5730. IFS=$as_save_IFS
  5731. case $as_dir in #(((
  5732. '') as_dir=./ ;;
  5733. */) ;;
  5734. *) as_dir=$as_dir/ ;;
  5735. esac
  5736. for ac_exec_ext in '' $ac_executable_extensions; do
  5737. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5738. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5739. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5740. break 2
  5741. fi
  5742. done
  5743. done
  5744. IFS=$as_save_IFS
  5745. fi
  5746. fi
  5747. RANLIB=$ac_cv_prog_RANLIB
  5748. if test -n "$RANLIB"; then
  5749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5750. printf "%s\n" "$RANLIB" >&6; }
  5751. else
  5752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5753. printf "%s\n" "no" >&6; }
  5754. fi
  5755. fi
  5756. if test -z "$ac_cv_prog_RANLIB"; then
  5757. ac_ct_RANLIB=$RANLIB
  5758. # Extract the first word of "ranlib", so it can be a program name with args.
  5759. set dummy ranlib; ac_word=$2
  5760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5761. printf %s "checking for $ac_word... " >&6; }
  5762. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5763. then :
  5764. printf %s "(cached) " >&6
  5765. else $as_nop
  5766. if test -n "$ac_ct_RANLIB"; then
  5767. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5768. else
  5769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5770. for as_dir in $PATH
  5771. do
  5772. IFS=$as_save_IFS
  5773. case $as_dir in #(((
  5774. '') as_dir=./ ;;
  5775. */) ;;
  5776. *) as_dir=$as_dir/ ;;
  5777. esac
  5778. for ac_exec_ext in '' $ac_executable_extensions; do
  5779. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5780. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5781. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5782. break 2
  5783. fi
  5784. done
  5785. done
  5786. IFS=$as_save_IFS
  5787. fi
  5788. fi
  5789. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5790. if test -n "$ac_ct_RANLIB"; then
  5791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5792. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5793. else
  5794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5795. printf "%s\n" "no" >&6; }
  5796. fi
  5797. if test "x$ac_ct_RANLIB" = x; then
  5798. RANLIB=":"
  5799. else
  5800. case $cross_compiling:$ac_tool_warned in
  5801. yes:)
  5802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5803. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5804. ac_tool_warned=yes ;;
  5805. esac
  5806. RANLIB=$ac_ct_RANLIB
  5807. fi
  5808. else
  5809. RANLIB="$ac_cv_prog_RANLIB"
  5810. fi
  5811. test -z "$RANLIB" && RANLIB=:
  5812. # Determine commands to create old-style static archives.
  5813. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5814. old_postinstall_cmds='chmod 644 $oldlib'
  5815. old_postuninstall_cmds=
  5816. if test -n "$RANLIB"; then
  5817. case $host_os in
  5818. bitrig* | openbsd*)
  5819. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5820. ;;
  5821. *)
  5822. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5823. ;;
  5824. esac
  5825. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5826. fi
  5827. case $host_os in
  5828. darwin*)
  5829. lock_old_archive_extraction=yes ;;
  5830. *)
  5831. lock_old_archive_extraction=no ;;
  5832. esac
  5833. for ac_prog in gawk mawk nawk awk
  5834. do
  5835. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5836. set dummy $ac_prog; ac_word=$2
  5837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5838. printf %s "checking for $ac_word... " >&6; }
  5839. if test ${ac_cv_prog_AWK+y}
  5840. then :
  5841. printf %s "(cached) " >&6
  5842. else $as_nop
  5843. if test -n "$AWK"; then
  5844. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5845. else
  5846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5847. for as_dir in $PATH
  5848. do
  5849. IFS=$as_save_IFS
  5850. case $as_dir in #(((
  5851. '') as_dir=./ ;;
  5852. */) ;;
  5853. *) as_dir=$as_dir/ ;;
  5854. esac
  5855. for ac_exec_ext in '' $ac_executable_extensions; do
  5856. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5857. ac_cv_prog_AWK="$ac_prog"
  5858. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5859. break 2
  5860. fi
  5861. done
  5862. done
  5863. IFS=$as_save_IFS
  5864. fi
  5865. fi
  5866. AWK=$ac_cv_prog_AWK
  5867. if test -n "$AWK"; then
  5868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5869. printf "%s\n" "$AWK" >&6; }
  5870. else
  5871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5872. printf "%s\n" "no" >&6; }
  5873. fi
  5874. test -n "$AWK" && break
  5875. done
  5876. # If no C compiler was specified, use CC.
  5877. LTCC=${LTCC-"$CC"}
  5878. # If no C compiler flags were specified, use CFLAGS.
  5879. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5880. # Allow CC to be a program name with arguments.
  5881. compiler=$CC
  5882. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5884. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5885. if test ${lt_cv_sys_global_symbol_pipe+y}
  5886. then :
  5887. printf %s "(cached) " >&6
  5888. else $as_nop
  5889. # These are sane defaults that work on at least a few old systems.
  5890. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5891. # Character class describing NM global symbol codes.
  5892. symcode='[BCDEGRST]'
  5893. # Regexp to match symbols that can be accessed directly from C.
  5894. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5895. # Define system-specific variables.
  5896. case $host_os in
  5897. aix*)
  5898. symcode='[BCDT]'
  5899. ;;
  5900. cygwin* | mingw* | pw32* | cegcc*)
  5901. symcode='[ABCDGISTW]'
  5902. ;;
  5903. hpux*)
  5904. if test ia64 = "$host_cpu"; then
  5905. symcode='[ABCDEGRST]'
  5906. fi
  5907. ;;
  5908. irix* | nonstopux*)
  5909. symcode='[BCDEGRST]'
  5910. ;;
  5911. osf*)
  5912. symcode='[BCDEGQRST]'
  5913. ;;
  5914. solaris*)
  5915. symcode='[BCDRT]'
  5916. ;;
  5917. sco3.2v5*)
  5918. symcode='[DT]'
  5919. ;;
  5920. sysv4.2uw2*)
  5921. symcode='[DT]'
  5922. ;;
  5923. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5924. symcode='[ABDT]'
  5925. ;;
  5926. sysv4)
  5927. symcode='[DFNSTU]'
  5928. ;;
  5929. esac
  5930. # If we're using GNU nm, then use its standard symbol codes.
  5931. case `$NM -V 2>&1` in
  5932. *GNU* | *'with BFD'*)
  5933. symcode='[ABCDGIRSTW]' ;;
  5934. esac
  5935. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5936. # Gets list of data symbols to import.
  5937. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5938. # Adjust the below global symbol transforms to fixup imported variables.
  5939. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5940. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5941. lt_c_name_lib_hook="\
  5942. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5943. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5944. else
  5945. # Disable hooks by default.
  5946. lt_cv_sys_global_symbol_to_import=
  5947. lt_cdecl_hook=
  5948. lt_c_name_hook=
  5949. lt_c_name_lib_hook=
  5950. fi
  5951. # Transform an extracted symbol line into a proper C declaration.
  5952. # Some systems (esp. on ia64) link data and code symbols differently,
  5953. # so use this general approach.
  5954. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5955. $lt_cdecl_hook\
  5956. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5957. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5958. # Transform an extracted symbol line into symbol name and symbol address
  5959. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5960. $lt_c_name_hook\
  5961. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5962. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5963. # Transform an extracted symbol line into symbol name with lib prefix and
  5964. # symbol address.
  5965. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5966. $lt_c_name_lib_hook\
  5967. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5968. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5969. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5970. # Handle CRLF in mingw tool chain
  5971. opt_cr=
  5972. case $build_os in
  5973. mingw*)
  5974. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5975. ;;
  5976. esac
  5977. # Try without a prefix underscore, then with it.
  5978. for ac_symprfx in "" "_"; do
  5979. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5980. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5981. # Write the raw and C identifiers.
  5982. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5983. # Fake it for dumpbin and say T for any non-static function,
  5984. # D for any global variable and I for any imported variable.
  5985. # Also find C++ and __fastcall symbols from MSVC++,
  5986. # which start with @ or ?.
  5987. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5988. " {last_section=section; section=\$ 3};"\
  5989. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5990. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5991. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5992. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5993. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5994. " \$ 0!~/External *\|/{next};"\
  5995. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5996. " {if(hide[section]) next};"\
  5997. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5998. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5999. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6000. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6001. " ' prfx=^$ac_symprfx"
  6002. else
  6003. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6004. fi
  6005. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6006. # Check to see that the pipe works correctly.
  6007. pipe_works=no
  6008. rm -f conftest*
  6009. cat > conftest.$ac_ext <<_LT_EOF
  6010. #ifdef __cplusplus
  6011. extern "C" {
  6012. #endif
  6013. char nm_test_var;
  6014. void nm_test_func(void);
  6015. void nm_test_func(void){}
  6016. #ifdef __cplusplus
  6017. }
  6018. #endif
  6019. int main(){nm_test_var='a';nm_test_func();return(0);}
  6020. _LT_EOF
  6021. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6022. (eval $ac_compile) 2>&5
  6023. ac_status=$?
  6024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6025. test $ac_status = 0; }; then
  6026. # Now try to grab the symbols.
  6027. nlist=conftest.nm
  6028. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6029. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6030. ac_status=$?
  6031. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6032. test $ac_status = 0; } && test -s "$nlist"; then
  6033. # Try sorting and uniquifying the output.
  6034. if sort "$nlist" | uniq > "$nlist"T; then
  6035. mv -f "$nlist"T "$nlist"
  6036. else
  6037. rm -f "$nlist"T
  6038. fi
  6039. # Make sure that we snagged all the symbols we need.
  6040. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6041. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6042. cat <<_LT_EOF > conftest.$ac_ext
  6043. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6044. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6045. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6046. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6047. # define LT_DLSYM_CONST
  6048. #elif defined __osf__
  6049. /* This system does not cope well with relocations in const data. */
  6050. # define LT_DLSYM_CONST
  6051. #else
  6052. # define LT_DLSYM_CONST const
  6053. #endif
  6054. #ifdef __cplusplus
  6055. extern "C" {
  6056. #endif
  6057. _LT_EOF
  6058. # Now generate the symbol file.
  6059. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6060. cat <<_LT_EOF >> conftest.$ac_ext
  6061. /* The mapping between symbol names and symbols. */
  6062. LT_DLSYM_CONST struct {
  6063. const char *name;
  6064. void *address;
  6065. }
  6066. lt__PROGRAM__LTX_preloaded_symbols[] =
  6067. {
  6068. { "@PROGRAM@", (void *) 0 },
  6069. _LT_EOF
  6070. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6071. cat <<\_LT_EOF >> conftest.$ac_ext
  6072. {0, (void *) 0}
  6073. };
  6074. /* This works around a problem in FreeBSD linker */
  6075. #ifdef FREEBSD_WORKAROUND
  6076. static const void *lt_preloaded_setup() {
  6077. return lt__PROGRAM__LTX_preloaded_symbols;
  6078. }
  6079. #endif
  6080. #ifdef __cplusplus
  6081. }
  6082. #endif
  6083. _LT_EOF
  6084. # Now try linking the two files.
  6085. mv conftest.$ac_objext conftstm.$ac_objext
  6086. lt_globsym_save_LIBS=$LIBS
  6087. lt_globsym_save_CFLAGS=$CFLAGS
  6088. LIBS=conftstm.$ac_objext
  6089. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6090. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6091. (eval $ac_link) 2>&5
  6092. ac_status=$?
  6093. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6094. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6095. pipe_works=yes
  6096. fi
  6097. LIBS=$lt_globsym_save_LIBS
  6098. CFLAGS=$lt_globsym_save_CFLAGS
  6099. else
  6100. echo "cannot find nm_test_func in $nlist" >&5
  6101. fi
  6102. else
  6103. echo "cannot find nm_test_var in $nlist" >&5
  6104. fi
  6105. else
  6106. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6107. fi
  6108. else
  6109. echo "$progname: failed program was:" >&5
  6110. cat conftest.$ac_ext >&5
  6111. fi
  6112. rm -rf conftest* conftst*
  6113. # Do not use the global_symbol_pipe unless it works.
  6114. if test yes = "$pipe_works"; then
  6115. break
  6116. else
  6117. lt_cv_sys_global_symbol_pipe=
  6118. fi
  6119. done
  6120. fi
  6121. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6122. lt_cv_sys_global_symbol_to_cdecl=
  6123. fi
  6124. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6126. printf "%s\n" "failed" >&6; }
  6127. else
  6128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6129. printf "%s\n" "ok" >&6; }
  6130. fi
  6131. # Response file support.
  6132. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6133. nm_file_list_spec='@'
  6134. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6135. nm_file_list_spec='@'
  6136. fi
  6137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6138. printf %s "checking for sysroot... " >&6; }
  6139. # Check whether --with-sysroot was given.
  6140. if test ${with_sysroot+y}
  6141. then :
  6142. withval=$with_sysroot;
  6143. else $as_nop
  6144. with_sysroot=no
  6145. fi
  6146. lt_sysroot=
  6147. case $with_sysroot in #(
  6148. yes)
  6149. if test yes = "$GCC"; then
  6150. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6151. fi
  6152. ;; #(
  6153. /*)
  6154. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6155. ;; #(
  6156. no|'')
  6157. ;; #(
  6158. *)
  6159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6160. printf "%s\n" "$with_sysroot" >&6; }
  6161. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6162. ;;
  6163. esac
  6164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6165. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6167. printf %s "checking for a working dd... " >&6; }
  6168. if test ${ac_cv_path_lt_DD+y}
  6169. then :
  6170. printf %s "(cached) " >&6
  6171. else $as_nop
  6172. printf 0123456789abcdef0123456789abcdef >conftest.i
  6173. cat conftest.i conftest.i >conftest2.i
  6174. : ${lt_DD:=$DD}
  6175. if test -z "$lt_DD"; then
  6176. ac_path_lt_DD_found=false
  6177. # Loop through the user's path and test for each of PROGNAME-LIST
  6178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6179. for as_dir in $PATH
  6180. do
  6181. IFS=$as_save_IFS
  6182. case $as_dir in #(((
  6183. '') as_dir=./ ;;
  6184. */) ;;
  6185. *) as_dir=$as_dir/ ;;
  6186. esac
  6187. for ac_prog in dd
  6188. do
  6189. for ac_exec_ext in '' $ac_executable_extensions; do
  6190. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6191. as_fn_executable_p "$ac_path_lt_DD" || continue
  6192. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6193. cmp -s conftest.i conftest.out \
  6194. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6195. fi
  6196. $ac_path_lt_DD_found && break 3
  6197. done
  6198. done
  6199. done
  6200. IFS=$as_save_IFS
  6201. if test -z "$ac_cv_path_lt_DD"; then
  6202. :
  6203. fi
  6204. else
  6205. ac_cv_path_lt_DD=$lt_DD
  6206. fi
  6207. rm -f conftest.i conftest2.i conftest.out
  6208. fi
  6209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6210. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6212. printf %s "checking how to truncate binary pipes... " >&6; }
  6213. if test ${lt_cv_truncate_bin+y}
  6214. then :
  6215. printf %s "(cached) " >&6
  6216. else $as_nop
  6217. printf 0123456789abcdef0123456789abcdef >conftest.i
  6218. cat conftest.i conftest.i >conftest2.i
  6219. lt_cv_truncate_bin=
  6220. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6221. cmp -s conftest.i conftest.out \
  6222. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6223. fi
  6224. rm -f conftest.i conftest2.i conftest.out
  6225. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6226. fi
  6227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6228. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6229. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6230. func_cc_basename ()
  6231. {
  6232. for cc_temp in $*""; do
  6233. case $cc_temp in
  6234. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6235. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6236. \-*) ;;
  6237. *) break;;
  6238. esac
  6239. done
  6240. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6241. }
  6242. # Check whether --enable-libtool-lock was given.
  6243. if test ${enable_libtool_lock+y}
  6244. then :
  6245. enableval=$enable_libtool_lock;
  6246. fi
  6247. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6248. # Some flags need to be propagated to the compiler or linker for good
  6249. # libtool support.
  6250. case $host in
  6251. ia64-*-hpux*)
  6252. # Find out what ABI is being produced by ac_compile, and set mode
  6253. # options accordingly.
  6254. echo 'int i;' > conftest.$ac_ext
  6255. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6256. (eval $ac_compile) 2>&5
  6257. ac_status=$?
  6258. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6259. test $ac_status = 0; }; then
  6260. case `/usr/bin/file conftest.$ac_objext` in
  6261. *ELF-32*)
  6262. HPUX_IA64_MODE=32
  6263. ;;
  6264. *ELF-64*)
  6265. HPUX_IA64_MODE=64
  6266. ;;
  6267. esac
  6268. fi
  6269. rm -rf conftest*
  6270. ;;
  6271. *-*-irix6*)
  6272. # Find out what ABI is being produced by ac_compile, and set linker
  6273. # options accordingly.
  6274. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6275. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6276. (eval $ac_compile) 2>&5
  6277. ac_status=$?
  6278. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6279. test $ac_status = 0; }; then
  6280. if test yes = "$lt_cv_prog_gnu_ld"; then
  6281. case `/usr/bin/file conftest.$ac_objext` in
  6282. *32-bit*)
  6283. LD="${LD-ld} -melf32bsmip"
  6284. ;;
  6285. *N32*)
  6286. LD="${LD-ld} -melf32bmipn32"
  6287. ;;
  6288. *64-bit*)
  6289. LD="${LD-ld} -melf64bmip"
  6290. ;;
  6291. esac
  6292. else
  6293. case `/usr/bin/file conftest.$ac_objext` in
  6294. *32-bit*)
  6295. LD="${LD-ld} -32"
  6296. ;;
  6297. *N32*)
  6298. LD="${LD-ld} -n32"
  6299. ;;
  6300. *64-bit*)
  6301. LD="${LD-ld} -64"
  6302. ;;
  6303. esac
  6304. fi
  6305. fi
  6306. rm -rf conftest*
  6307. ;;
  6308. mips64*-*linux*)
  6309. # Find out what ABI is being produced by ac_compile, and set linker
  6310. # options accordingly.
  6311. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6312. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6313. (eval $ac_compile) 2>&5
  6314. ac_status=$?
  6315. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6316. test $ac_status = 0; }; then
  6317. emul=elf
  6318. case `/usr/bin/file conftest.$ac_objext` in
  6319. *32-bit*)
  6320. emul="${emul}32"
  6321. ;;
  6322. *64-bit*)
  6323. emul="${emul}64"
  6324. ;;
  6325. esac
  6326. case `/usr/bin/file conftest.$ac_objext` in
  6327. *MSB*)
  6328. emul="${emul}btsmip"
  6329. ;;
  6330. *LSB*)
  6331. emul="${emul}ltsmip"
  6332. ;;
  6333. esac
  6334. case `/usr/bin/file conftest.$ac_objext` in
  6335. *N32*)
  6336. emul="${emul}n32"
  6337. ;;
  6338. esac
  6339. LD="${LD-ld} -m $emul"
  6340. fi
  6341. rm -rf conftest*
  6342. ;;
  6343. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6344. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6345. # Find out what ABI is being produced by ac_compile, and set linker
  6346. # options accordingly. Note that the listed cases only cover the
  6347. # situations where additional linker options are needed (such as when
  6348. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6349. # vice versa); the common cases where no linker options are needed do
  6350. # not appear in the list.
  6351. echo 'int i;' > conftest.$ac_ext
  6352. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6353. (eval $ac_compile) 2>&5
  6354. ac_status=$?
  6355. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6356. test $ac_status = 0; }; then
  6357. case `/usr/bin/file conftest.o` in
  6358. *32-bit*)
  6359. case $host in
  6360. x86_64-*kfreebsd*-gnu)
  6361. LD="${LD-ld} -m elf_i386_fbsd"
  6362. ;;
  6363. x86_64-*linux*)
  6364. case `/usr/bin/file conftest.o` in
  6365. *x86-64*)
  6366. LD="${LD-ld} -m elf32_x86_64"
  6367. ;;
  6368. *)
  6369. LD="${LD-ld} -m elf_i386"
  6370. ;;
  6371. esac
  6372. ;;
  6373. powerpc64le-*linux*)
  6374. LD="${LD-ld} -m elf32lppclinux"
  6375. ;;
  6376. powerpc64-*linux*)
  6377. LD="${LD-ld} -m elf32ppclinux"
  6378. ;;
  6379. s390x-*linux*)
  6380. LD="${LD-ld} -m elf_s390"
  6381. ;;
  6382. sparc64-*linux*)
  6383. LD="${LD-ld} -m elf32_sparc"
  6384. ;;
  6385. esac
  6386. ;;
  6387. *64-bit*)
  6388. case $host in
  6389. x86_64-*kfreebsd*-gnu)
  6390. LD="${LD-ld} -m elf_x86_64_fbsd"
  6391. ;;
  6392. x86_64-*linux*)
  6393. LD="${LD-ld} -m elf_x86_64"
  6394. ;;
  6395. powerpcle-*linux*|powerpc64le-*linux*)
  6396. LD="${LD-ld} -m elf64lppc"
  6397. ;;
  6398. powerpc-*linux*|powerpc64-*linux*)
  6399. LD="${LD-ld} -m elf64ppc"
  6400. ;;
  6401. s390*-*linux*|s390*-*tpf*)
  6402. LD="${LD-ld} -m elf64_s390"
  6403. ;;
  6404. sparc*-*linux*)
  6405. LD="${LD-ld} -m elf64_sparc"
  6406. ;;
  6407. esac
  6408. ;;
  6409. esac
  6410. fi
  6411. rm -rf conftest*
  6412. ;;
  6413. *-*-sco3.2v5*)
  6414. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6415. SAVE_CFLAGS=$CFLAGS
  6416. CFLAGS="$CFLAGS -belf"
  6417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6418. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6419. if test ${lt_cv_cc_needs_belf+y}
  6420. then :
  6421. printf %s "(cached) " >&6
  6422. else $as_nop
  6423. ac_ext=c
  6424. ac_cpp='$CPP $CPPFLAGS'
  6425. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6426. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6427. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6429. /* end confdefs.h. */
  6430. int
  6431. main (void)
  6432. {
  6433. ;
  6434. return 0;
  6435. }
  6436. _ACEOF
  6437. if ac_fn_c_try_link "$LINENO"
  6438. then :
  6439. lt_cv_cc_needs_belf=yes
  6440. else $as_nop
  6441. lt_cv_cc_needs_belf=no
  6442. fi
  6443. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6444. conftest$ac_exeext conftest.$ac_ext
  6445. ac_ext=c
  6446. ac_cpp='$CPP $CPPFLAGS'
  6447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6450. fi
  6451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6452. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6453. if test yes != "$lt_cv_cc_needs_belf"; then
  6454. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6455. CFLAGS=$SAVE_CFLAGS
  6456. fi
  6457. ;;
  6458. *-*solaris*)
  6459. # Find out what ABI is being produced by ac_compile, and set linker
  6460. # options accordingly.
  6461. echo 'int i;' > conftest.$ac_ext
  6462. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6463. (eval $ac_compile) 2>&5
  6464. ac_status=$?
  6465. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6466. test $ac_status = 0; }; then
  6467. case `/usr/bin/file conftest.o` in
  6468. *64-bit*)
  6469. case $lt_cv_prog_gnu_ld in
  6470. yes*)
  6471. case $host in
  6472. i?86-*-solaris*|x86_64-*-solaris*)
  6473. LD="${LD-ld} -m elf_x86_64"
  6474. ;;
  6475. sparc*-*-solaris*)
  6476. LD="${LD-ld} -m elf64_sparc"
  6477. ;;
  6478. esac
  6479. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6480. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6481. LD=${LD-ld}_sol2
  6482. fi
  6483. ;;
  6484. *)
  6485. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6486. LD="${LD-ld} -64"
  6487. fi
  6488. ;;
  6489. esac
  6490. ;;
  6491. esac
  6492. fi
  6493. rm -rf conftest*
  6494. ;;
  6495. esac
  6496. need_locks=$enable_libtool_lock
  6497. if test -n "$ac_tool_prefix"; then
  6498. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6499. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6501. printf %s "checking for $ac_word... " >&6; }
  6502. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6503. then :
  6504. printf %s "(cached) " >&6
  6505. else $as_nop
  6506. if test -n "$MANIFEST_TOOL"; then
  6507. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6508. else
  6509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6510. for as_dir in $PATH
  6511. do
  6512. IFS=$as_save_IFS
  6513. case $as_dir in #(((
  6514. '') as_dir=./ ;;
  6515. */) ;;
  6516. *) as_dir=$as_dir/ ;;
  6517. esac
  6518. for ac_exec_ext in '' $ac_executable_extensions; do
  6519. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6520. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6521. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6522. break 2
  6523. fi
  6524. done
  6525. done
  6526. IFS=$as_save_IFS
  6527. fi
  6528. fi
  6529. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6530. if test -n "$MANIFEST_TOOL"; then
  6531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6532. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6533. else
  6534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6535. printf "%s\n" "no" >&6; }
  6536. fi
  6537. fi
  6538. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6539. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6540. # Extract the first word of "mt", so it can be a program name with args.
  6541. set dummy mt; ac_word=$2
  6542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6543. printf %s "checking for $ac_word... " >&6; }
  6544. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6545. then :
  6546. printf %s "(cached) " >&6
  6547. else $as_nop
  6548. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6549. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6550. else
  6551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6552. for as_dir in $PATH
  6553. do
  6554. IFS=$as_save_IFS
  6555. case $as_dir in #(((
  6556. '') as_dir=./ ;;
  6557. */) ;;
  6558. *) as_dir=$as_dir/ ;;
  6559. esac
  6560. for ac_exec_ext in '' $ac_executable_extensions; do
  6561. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6562. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6563. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6564. break 2
  6565. fi
  6566. done
  6567. done
  6568. IFS=$as_save_IFS
  6569. fi
  6570. fi
  6571. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6572. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6574. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6575. else
  6576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6577. printf "%s\n" "no" >&6; }
  6578. fi
  6579. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6580. MANIFEST_TOOL=":"
  6581. else
  6582. case $cross_compiling:$ac_tool_warned in
  6583. yes:)
  6584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6585. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6586. ac_tool_warned=yes ;;
  6587. esac
  6588. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6589. fi
  6590. else
  6591. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6592. fi
  6593. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6595. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6596. if test ${lt_cv_path_mainfest_tool+y}
  6597. then :
  6598. printf %s "(cached) " >&6
  6599. else $as_nop
  6600. lt_cv_path_mainfest_tool=no
  6601. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6602. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6603. cat conftest.err >&5
  6604. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6605. lt_cv_path_mainfest_tool=yes
  6606. fi
  6607. rm -f conftest*
  6608. fi
  6609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6610. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6611. if test yes != "$lt_cv_path_mainfest_tool"; then
  6612. MANIFEST_TOOL=:
  6613. fi
  6614. case $host_os in
  6615. rhapsody* | darwin*)
  6616. if test -n "$ac_tool_prefix"; then
  6617. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6618. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6620. printf %s "checking for $ac_word... " >&6; }
  6621. if test ${ac_cv_prog_DSYMUTIL+y}
  6622. then :
  6623. printf %s "(cached) " >&6
  6624. else $as_nop
  6625. if test -n "$DSYMUTIL"; then
  6626. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6627. else
  6628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6629. for as_dir in $PATH
  6630. do
  6631. IFS=$as_save_IFS
  6632. case $as_dir in #(((
  6633. '') as_dir=./ ;;
  6634. */) ;;
  6635. *) as_dir=$as_dir/ ;;
  6636. esac
  6637. for ac_exec_ext in '' $ac_executable_extensions; do
  6638. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6639. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6640. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6641. break 2
  6642. fi
  6643. done
  6644. done
  6645. IFS=$as_save_IFS
  6646. fi
  6647. fi
  6648. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6649. if test -n "$DSYMUTIL"; then
  6650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6651. printf "%s\n" "$DSYMUTIL" >&6; }
  6652. else
  6653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6654. printf "%s\n" "no" >&6; }
  6655. fi
  6656. fi
  6657. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6658. ac_ct_DSYMUTIL=$DSYMUTIL
  6659. # Extract the first word of "dsymutil", so it can be a program name with args.
  6660. set dummy dsymutil; ac_word=$2
  6661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6662. printf %s "checking for $ac_word... " >&6; }
  6663. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6664. then :
  6665. printf %s "(cached) " >&6
  6666. else $as_nop
  6667. if test -n "$ac_ct_DSYMUTIL"; then
  6668. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6669. else
  6670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6671. for as_dir in $PATH
  6672. do
  6673. IFS=$as_save_IFS
  6674. case $as_dir in #(((
  6675. '') as_dir=./ ;;
  6676. */) ;;
  6677. *) as_dir=$as_dir/ ;;
  6678. esac
  6679. for ac_exec_ext in '' $ac_executable_extensions; do
  6680. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6681. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6682. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6683. break 2
  6684. fi
  6685. done
  6686. done
  6687. IFS=$as_save_IFS
  6688. fi
  6689. fi
  6690. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6691. if test -n "$ac_ct_DSYMUTIL"; then
  6692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6693. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6694. else
  6695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6696. printf "%s\n" "no" >&6; }
  6697. fi
  6698. if test "x$ac_ct_DSYMUTIL" = x; then
  6699. DSYMUTIL=":"
  6700. else
  6701. case $cross_compiling:$ac_tool_warned in
  6702. yes:)
  6703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6704. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6705. ac_tool_warned=yes ;;
  6706. esac
  6707. DSYMUTIL=$ac_ct_DSYMUTIL
  6708. fi
  6709. else
  6710. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6711. fi
  6712. if test -n "$ac_tool_prefix"; then
  6713. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6714. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6716. printf %s "checking for $ac_word... " >&6; }
  6717. if test ${ac_cv_prog_NMEDIT+y}
  6718. then :
  6719. printf %s "(cached) " >&6
  6720. else $as_nop
  6721. if test -n "$NMEDIT"; then
  6722. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6723. else
  6724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6725. for as_dir in $PATH
  6726. do
  6727. IFS=$as_save_IFS
  6728. case $as_dir in #(((
  6729. '') as_dir=./ ;;
  6730. */) ;;
  6731. *) as_dir=$as_dir/ ;;
  6732. esac
  6733. for ac_exec_ext in '' $ac_executable_extensions; do
  6734. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6735. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6736. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6737. break 2
  6738. fi
  6739. done
  6740. done
  6741. IFS=$as_save_IFS
  6742. fi
  6743. fi
  6744. NMEDIT=$ac_cv_prog_NMEDIT
  6745. if test -n "$NMEDIT"; then
  6746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6747. printf "%s\n" "$NMEDIT" >&6; }
  6748. else
  6749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6750. printf "%s\n" "no" >&6; }
  6751. fi
  6752. fi
  6753. if test -z "$ac_cv_prog_NMEDIT"; then
  6754. ac_ct_NMEDIT=$NMEDIT
  6755. # Extract the first word of "nmedit", so it can be a program name with args.
  6756. set dummy nmedit; ac_word=$2
  6757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6758. printf %s "checking for $ac_word... " >&6; }
  6759. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6760. then :
  6761. printf %s "(cached) " >&6
  6762. else $as_nop
  6763. if test -n "$ac_ct_NMEDIT"; then
  6764. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6765. else
  6766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6767. for as_dir in $PATH
  6768. do
  6769. IFS=$as_save_IFS
  6770. case $as_dir in #(((
  6771. '') as_dir=./ ;;
  6772. */) ;;
  6773. *) as_dir=$as_dir/ ;;
  6774. esac
  6775. for ac_exec_ext in '' $ac_executable_extensions; do
  6776. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6777. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6778. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6779. break 2
  6780. fi
  6781. done
  6782. done
  6783. IFS=$as_save_IFS
  6784. fi
  6785. fi
  6786. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6787. if test -n "$ac_ct_NMEDIT"; then
  6788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6789. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6790. else
  6791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6792. printf "%s\n" "no" >&6; }
  6793. fi
  6794. if test "x$ac_ct_NMEDIT" = x; then
  6795. NMEDIT=":"
  6796. else
  6797. case $cross_compiling:$ac_tool_warned in
  6798. yes:)
  6799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6800. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6801. ac_tool_warned=yes ;;
  6802. esac
  6803. NMEDIT=$ac_ct_NMEDIT
  6804. fi
  6805. else
  6806. NMEDIT="$ac_cv_prog_NMEDIT"
  6807. fi
  6808. if test -n "$ac_tool_prefix"; then
  6809. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6810. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6812. printf %s "checking for $ac_word... " >&6; }
  6813. if test ${ac_cv_prog_LIPO+y}
  6814. then :
  6815. printf %s "(cached) " >&6
  6816. else $as_nop
  6817. if test -n "$LIPO"; then
  6818. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6819. else
  6820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6821. for as_dir in $PATH
  6822. do
  6823. IFS=$as_save_IFS
  6824. case $as_dir in #(((
  6825. '') as_dir=./ ;;
  6826. */) ;;
  6827. *) as_dir=$as_dir/ ;;
  6828. esac
  6829. for ac_exec_ext in '' $ac_executable_extensions; do
  6830. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6831. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6832. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6833. break 2
  6834. fi
  6835. done
  6836. done
  6837. IFS=$as_save_IFS
  6838. fi
  6839. fi
  6840. LIPO=$ac_cv_prog_LIPO
  6841. if test -n "$LIPO"; then
  6842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6843. printf "%s\n" "$LIPO" >&6; }
  6844. else
  6845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6846. printf "%s\n" "no" >&6; }
  6847. fi
  6848. fi
  6849. if test -z "$ac_cv_prog_LIPO"; then
  6850. ac_ct_LIPO=$LIPO
  6851. # Extract the first word of "lipo", so it can be a program name with args.
  6852. set dummy lipo; ac_word=$2
  6853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6854. printf %s "checking for $ac_word... " >&6; }
  6855. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6856. then :
  6857. printf %s "(cached) " >&6
  6858. else $as_nop
  6859. if test -n "$ac_ct_LIPO"; then
  6860. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6861. else
  6862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6863. for as_dir in $PATH
  6864. do
  6865. IFS=$as_save_IFS
  6866. case $as_dir in #(((
  6867. '') as_dir=./ ;;
  6868. */) ;;
  6869. *) as_dir=$as_dir/ ;;
  6870. esac
  6871. for ac_exec_ext in '' $ac_executable_extensions; do
  6872. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6873. ac_cv_prog_ac_ct_LIPO="lipo"
  6874. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6875. break 2
  6876. fi
  6877. done
  6878. done
  6879. IFS=$as_save_IFS
  6880. fi
  6881. fi
  6882. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6883. if test -n "$ac_ct_LIPO"; then
  6884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6885. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6886. else
  6887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6888. printf "%s\n" "no" >&6; }
  6889. fi
  6890. if test "x$ac_ct_LIPO" = x; then
  6891. LIPO=":"
  6892. else
  6893. case $cross_compiling:$ac_tool_warned in
  6894. yes:)
  6895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6896. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6897. ac_tool_warned=yes ;;
  6898. esac
  6899. LIPO=$ac_ct_LIPO
  6900. fi
  6901. else
  6902. LIPO="$ac_cv_prog_LIPO"
  6903. fi
  6904. if test -n "$ac_tool_prefix"; then
  6905. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6906. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6908. printf %s "checking for $ac_word... " >&6; }
  6909. if test ${ac_cv_prog_OTOOL+y}
  6910. then :
  6911. printf %s "(cached) " >&6
  6912. else $as_nop
  6913. if test -n "$OTOOL"; then
  6914. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6915. else
  6916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6917. for as_dir in $PATH
  6918. do
  6919. IFS=$as_save_IFS
  6920. case $as_dir in #(((
  6921. '') as_dir=./ ;;
  6922. */) ;;
  6923. *) as_dir=$as_dir/ ;;
  6924. esac
  6925. for ac_exec_ext in '' $ac_executable_extensions; do
  6926. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6927. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6928. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6929. break 2
  6930. fi
  6931. done
  6932. done
  6933. IFS=$as_save_IFS
  6934. fi
  6935. fi
  6936. OTOOL=$ac_cv_prog_OTOOL
  6937. if test -n "$OTOOL"; then
  6938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6939. printf "%s\n" "$OTOOL" >&6; }
  6940. else
  6941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6942. printf "%s\n" "no" >&6; }
  6943. fi
  6944. fi
  6945. if test -z "$ac_cv_prog_OTOOL"; then
  6946. ac_ct_OTOOL=$OTOOL
  6947. # Extract the first word of "otool", so it can be a program name with args.
  6948. set dummy otool; ac_word=$2
  6949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6950. printf %s "checking for $ac_word... " >&6; }
  6951. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6952. then :
  6953. printf %s "(cached) " >&6
  6954. else $as_nop
  6955. if test -n "$ac_ct_OTOOL"; then
  6956. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6957. else
  6958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6959. for as_dir in $PATH
  6960. do
  6961. IFS=$as_save_IFS
  6962. case $as_dir in #(((
  6963. '') as_dir=./ ;;
  6964. */) ;;
  6965. *) as_dir=$as_dir/ ;;
  6966. esac
  6967. for ac_exec_ext in '' $ac_executable_extensions; do
  6968. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6969. ac_cv_prog_ac_ct_OTOOL="otool"
  6970. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6971. break 2
  6972. fi
  6973. done
  6974. done
  6975. IFS=$as_save_IFS
  6976. fi
  6977. fi
  6978. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6979. if test -n "$ac_ct_OTOOL"; then
  6980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6981. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6982. else
  6983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6984. printf "%s\n" "no" >&6; }
  6985. fi
  6986. if test "x$ac_ct_OTOOL" = x; then
  6987. OTOOL=":"
  6988. else
  6989. case $cross_compiling:$ac_tool_warned in
  6990. yes:)
  6991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6992. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6993. ac_tool_warned=yes ;;
  6994. esac
  6995. OTOOL=$ac_ct_OTOOL
  6996. fi
  6997. else
  6998. OTOOL="$ac_cv_prog_OTOOL"
  6999. fi
  7000. if test -n "$ac_tool_prefix"; then
  7001. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7002. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7004. printf %s "checking for $ac_word... " >&6; }
  7005. if test ${ac_cv_prog_OTOOL64+y}
  7006. then :
  7007. printf %s "(cached) " >&6
  7008. else $as_nop
  7009. if test -n "$OTOOL64"; then
  7010. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7011. else
  7012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7013. for as_dir in $PATH
  7014. do
  7015. IFS=$as_save_IFS
  7016. case $as_dir in #(((
  7017. '') as_dir=./ ;;
  7018. */) ;;
  7019. *) as_dir=$as_dir/ ;;
  7020. esac
  7021. for ac_exec_ext in '' $ac_executable_extensions; do
  7022. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7023. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7025. break 2
  7026. fi
  7027. done
  7028. done
  7029. IFS=$as_save_IFS
  7030. fi
  7031. fi
  7032. OTOOL64=$ac_cv_prog_OTOOL64
  7033. if test -n "$OTOOL64"; then
  7034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7035. printf "%s\n" "$OTOOL64" >&6; }
  7036. else
  7037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7038. printf "%s\n" "no" >&6; }
  7039. fi
  7040. fi
  7041. if test -z "$ac_cv_prog_OTOOL64"; then
  7042. ac_ct_OTOOL64=$OTOOL64
  7043. # Extract the first word of "otool64", so it can be a program name with args.
  7044. set dummy otool64; ac_word=$2
  7045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7046. printf %s "checking for $ac_word... " >&6; }
  7047. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7048. then :
  7049. printf %s "(cached) " >&6
  7050. else $as_nop
  7051. if test -n "$ac_ct_OTOOL64"; then
  7052. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7053. else
  7054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7055. for as_dir in $PATH
  7056. do
  7057. IFS=$as_save_IFS
  7058. case $as_dir in #(((
  7059. '') as_dir=./ ;;
  7060. */) ;;
  7061. *) as_dir=$as_dir/ ;;
  7062. esac
  7063. for ac_exec_ext in '' $ac_executable_extensions; do
  7064. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7065. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7066. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7067. break 2
  7068. fi
  7069. done
  7070. done
  7071. IFS=$as_save_IFS
  7072. fi
  7073. fi
  7074. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7075. if test -n "$ac_ct_OTOOL64"; then
  7076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7077. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7078. else
  7079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7080. printf "%s\n" "no" >&6; }
  7081. fi
  7082. if test "x$ac_ct_OTOOL64" = x; then
  7083. OTOOL64=":"
  7084. else
  7085. case $cross_compiling:$ac_tool_warned in
  7086. yes:)
  7087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7088. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7089. ac_tool_warned=yes ;;
  7090. esac
  7091. OTOOL64=$ac_ct_OTOOL64
  7092. fi
  7093. else
  7094. OTOOL64="$ac_cv_prog_OTOOL64"
  7095. fi
  7096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7097. printf %s "checking for -single_module linker flag... " >&6; }
  7098. if test ${lt_cv_apple_cc_single_mod+y}
  7099. then :
  7100. printf %s "(cached) " >&6
  7101. else $as_nop
  7102. lt_cv_apple_cc_single_mod=no
  7103. if test -z "$LT_MULTI_MODULE"; then
  7104. # By default we will add the -single_module flag. You can override
  7105. # by either setting the environment variable LT_MULTI_MODULE
  7106. # non-empty at configure time, or by adding -multi_module to the
  7107. # link flags.
  7108. rm -rf libconftest.dylib*
  7109. echo "int foo(void){return 1;}" > conftest.c
  7110. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7111. -dynamiclib -Wl,-single_module conftest.c" >&5
  7112. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7113. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7114. _lt_result=$?
  7115. # If there is a non-empty error log, and "single_module"
  7116. # appears in it, assume the flag caused a linker warning
  7117. if test -s conftest.err && $GREP single_module conftest.err; then
  7118. cat conftest.err >&5
  7119. # Otherwise, if the output was created with a 0 exit code from
  7120. # the compiler, it worked.
  7121. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7122. lt_cv_apple_cc_single_mod=yes
  7123. else
  7124. cat conftest.err >&5
  7125. fi
  7126. rm -rf libconftest.dylib*
  7127. rm -f conftest.*
  7128. fi
  7129. fi
  7130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7131. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7133. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7134. if test ${lt_cv_ld_exported_symbols_list+y}
  7135. then :
  7136. printf %s "(cached) " >&6
  7137. else $as_nop
  7138. lt_cv_ld_exported_symbols_list=no
  7139. save_LDFLAGS=$LDFLAGS
  7140. echo "_main" > conftest.sym
  7141. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7143. /* end confdefs.h. */
  7144. int
  7145. main (void)
  7146. {
  7147. ;
  7148. return 0;
  7149. }
  7150. _ACEOF
  7151. if ac_fn_c_try_link "$LINENO"
  7152. then :
  7153. lt_cv_ld_exported_symbols_list=yes
  7154. else $as_nop
  7155. lt_cv_ld_exported_symbols_list=no
  7156. fi
  7157. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7158. conftest$ac_exeext conftest.$ac_ext
  7159. LDFLAGS=$save_LDFLAGS
  7160. fi
  7161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7162. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7164. printf %s "checking for -force_load linker flag... " >&6; }
  7165. if test ${lt_cv_ld_force_load+y}
  7166. then :
  7167. printf %s "(cached) " >&6
  7168. else $as_nop
  7169. lt_cv_ld_force_load=no
  7170. cat > conftest.c << _LT_EOF
  7171. int forced_loaded() { return 2;}
  7172. _LT_EOF
  7173. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7174. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7175. echo "$AR cru libconftest.a conftest.o" >&5
  7176. $AR cru libconftest.a conftest.o 2>&5
  7177. echo "$RANLIB libconftest.a" >&5
  7178. $RANLIB libconftest.a 2>&5
  7179. cat > conftest.c << _LT_EOF
  7180. int main() { return 0;}
  7181. _LT_EOF
  7182. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7183. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7184. _lt_result=$?
  7185. if test -s conftest.err && $GREP force_load conftest.err; then
  7186. cat conftest.err >&5
  7187. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7188. lt_cv_ld_force_load=yes
  7189. else
  7190. cat conftest.err >&5
  7191. fi
  7192. rm -f conftest.err libconftest.a conftest conftest.c
  7193. rm -rf conftest.dSYM
  7194. fi
  7195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7196. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7197. case $host_os in
  7198. rhapsody* | darwin1.[012])
  7199. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7200. darwin1.*)
  7201. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7202. darwin*)
  7203. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7204. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7205. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7206. *)
  7207. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7208. esac
  7209. ;;
  7210. esac
  7211. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7212. _lt_dar_single_mod='$single_module'
  7213. fi
  7214. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7215. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7216. else
  7217. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7218. fi
  7219. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7220. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7221. else
  7222. _lt_dsymutil=
  7223. fi
  7224. ;;
  7225. esac
  7226. # func_munge_path_list VARIABLE PATH
  7227. # -----------------------------------
  7228. # VARIABLE is name of variable containing _space_ separated list of
  7229. # directories to be munged by the contents of PATH, which is string
  7230. # having a format:
  7231. # "DIR[:DIR]:"
  7232. # string "DIR[ DIR]" will be prepended to VARIABLE
  7233. # ":DIR[:DIR]"
  7234. # string "DIR[ DIR]" will be appended to VARIABLE
  7235. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7236. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7237. # "DIRA[ DIRA]" will be appended to VARIABLE
  7238. # "DIR[:DIR]"
  7239. # VARIABLE will be replaced by "DIR[ DIR]"
  7240. func_munge_path_list ()
  7241. {
  7242. case x$2 in
  7243. x)
  7244. ;;
  7245. *:)
  7246. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7247. ;;
  7248. x:*)
  7249. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7250. ;;
  7251. *::*)
  7252. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7253. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7254. ;;
  7255. *)
  7256. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7257. ;;
  7258. esac
  7259. }
  7260. ac_header= ac_cache=
  7261. for ac_item in $ac_header_c_list
  7262. do
  7263. if test $ac_cache; then
  7264. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7265. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7266. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7267. fi
  7268. ac_header= ac_cache=
  7269. elif test $ac_header; then
  7270. ac_cache=$ac_item
  7271. else
  7272. ac_header=$ac_item
  7273. fi
  7274. done
  7275. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7276. then :
  7277. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7278. fi
  7279. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7280. "
  7281. if test "x$ac_cv_header_dlfcn_h" = xyes
  7282. then :
  7283. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7284. fi
  7285. # Set options
  7286. enable_win32_dll=yes
  7287. case $host in
  7288. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7289. if test -n "$ac_tool_prefix"; then
  7290. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7291. set dummy ${ac_tool_prefix}as; ac_word=$2
  7292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7293. printf %s "checking for $ac_word... " >&6; }
  7294. if test ${ac_cv_prog_AS+y}
  7295. then :
  7296. printf %s "(cached) " >&6
  7297. else $as_nop
  7298. if test -n "$AS"; then
  7299. ac_cv_prog_AS="$AS" # Let the user override the test.
  7300. else
  7301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7302. for as_dir in $PATH
  7303. do
  7304. IFS=$as_save_IFS
  7305. case $as_dir in #(((
  7306. '') as_dir=./ ;;
  7307. */) ;;
  7308. *) as_dir=$as_dir/ ;;
  7309. esac
  7310. for ac_exec_ext in '' $ac_executable_extensions; do
  7311. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7312. ac_cv_prog_AS="${ac_tool_prefix}as"
  7313. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7314. break 2
  7315. fi
  7316. done
  7317. done
  7318. IFS=$as_save_IFS
  7319. fi
  7320. fi
  7321. AS=$ac_cv_prog_AS
  7322. if test -n "$AS"; then
  7323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7324. printf "%s\n" "$AS" >&6; }
  7325. else
  7326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7327. printf "%s\n" "no" >&6; }
  7328. fi
  7329. fi
  7330. if test -z "$ac_cv_prog_AS"; then
  7331. ac_ct_AS=$AS
  7332. # Extract the first word of "as", so it can be a program name with args.
  7333. set dummy as; ac_word=$2
  7334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7335. printf %s "checking for $ac_word... " >&6; }
  7336. if test ${ac_cv_prog_ac_ct_AS+y}
  7337. then :
  7338. printf %s "(cached) " >&6
  7339. else $as_nop
  7340. if test -n "$ac_ct_AS"; then
  7341. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7342. else
  7343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7344. for as_dir in $PATH
  7345. do
  7346. IFS=$as_save_IFS
  7347. case $as_dir in #(((
  7348. '') as_dir=./ ;;
  7349. */) ;;
  7350. *) as_dir=$as_dir/ ;;
  7351. esac
  7352. for ac_exec_ext in '' $ac_executable_extensions; do
  7353. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7354. ac_cv_prog_ac_ct_AS="as"
  7355. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7356. break 2
  7357. fi
  7358. done
  7359. done
  7360. IFS=$as_save_IFS
  7361. fi
  7362. fi
  7363. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7364. if test -n "$ac_ct_AS"; then
  7365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7366. printf "%s\n" "$ac_ct_AS" >&6; }
  7367. else
  7368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7369. printf "%s\n" "no" >&6; }
  7370. fi
  7371. if test "x$ac_ct_AS" = x; then
  7372. AS="false"
  7373. else
  7374. case $cross_compiling:$ac_tool_warned in
  7375. yes:)
  7376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7377. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7378. ac_tool_warned=yes ;;
  7379. esac
  7380. AS=$ac_ct_AS
  7381. fi
  7382. else
  7383. AS="$ac_cv_prog_AS"
  7384. fi
  7385. if test -n "$ac_tool_prefix"; then
  7386. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7387. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7389. printf %s "checking for $ac_word... " >&6; }
  7390. if test ${ac_cv_prog_DLLTOOL+y}
  7391. then :
  7392. printf %s "(cached) " >&6
  7393. else $as_nop
  7394. if test -n "$DLLTOOL"; then
  7395. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7396. else
  7397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7398. for as_dir in $PATH
  7399. do
  7400. IFS=$as_save_IFS
  7401. case $as_dir in #(((
  7402. '') as_dir=./ ;;
  7403. */) ;;
  7404. *) as_dir=$as_dir/ ;;
  7405. esac
  7406. for ac_exec_ext in '' $ac_executable_extensions; do
  7407. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7408. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7410. break 2
  7411. fi
  7412. done
  7413. done
  7414. IFS=$as_save_IFS
  7415. fi
  7416. fi
  7417. DLLTOOL=$ac_cv_prog_DLLTOOL
  7418. if test -n "$DLLTOOL"; then
  7419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7420. printf "%s\n" "$DLLTOOL" >&6; }
  7421. else
  7422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7423. printf "%s\n" "no" >&6; }
  7424. fi
  7425. fi
  7426. if test -z "$ac_cv_prog_DLLTOOL"; then
  7427. ac_ct_DLLTOOL=$DLLTOOL
  7428. # Extract the first word of "dlltool", so it can be a program name with args.
  7429. set dummy dlltool; ac_word=$2
  7430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7431. printf %s "checking for $ac_word... " >&6; }
  7432. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7433. then :
  7434. printf %s "(cached) " >&6
  7435. else $as_nop
  7436. if test -n "$ac_ct_DLLTOOL"; then
  7437. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7438. else
  7439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7440. for as_dir in $PATH
  7441. do
  7442. IFS=$as_save_IFS
  7443. case $as_dir in #(((
  7444. '') as_dir=./ ;;
  7445. */) ;;
  7446. *) as_dir=$as_dir/ ;;
  7447. esac
  7448. for ac_exec_ext in '' $ac_executable_extensions; do
  7449. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7450. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7452. break 2
  7453. fi
  7454. done
  7455. done
  7456. IFS=$as_save_IFS
  7457. fi
  7458. fi
  7459. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7460. if test -n "$ac_ct_DLLTOOL"; then
  7461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7462. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7463. else
  7464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7465. printf "%s\n" "no" >&6; }
  7466. fi
  7467. if test "x$ac_ct_DLLTOOL" = x; then
  7468. DLLTOOL="false"
  7469. else
  7470. case $cross_compiling:$ac_tool_warned in
  7471. yes:)
  7472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7473. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7474. ac_tool_warned=yes ;;
  7475. esac
  7476. DLLTOOL=$ac_ct_DLLTOOL
  7477. fi
  7478. else
  7479. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7480. fi
  7481. if test -n "$ac_tool_prefix"; then
  7482. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7483. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7485. printf %s "checking for $ac_word... " >&6; }
  7486. if test ${ac_cv_prog_OBJDUMP+y}
  7487. then :
  7488. printf %s "(cached) " >&6
  7489. else $as_nop
  7490. if test -n "$OBJDUMP"; then
  7491. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7492. else
  7493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7494. for as_dir in $PATH
  7495. do
  7496. IFS=$as_save_IFS
  7497. case $as_dir in #(((
  7498. '') as_dir=./ ;;
  7499. */) ;;
  7500. *) as_dir=$as_dir/ ;;
  7501. esac
  7502. for ac_exec_ext in '' $ac_executable_extensions; do
  7503. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7504. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7505. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7506. break 2
  7507. fi
  7508. done
  7509. done
  7510. IFS=$as_save_IFS
  7511. fi
  7512. fi
  7513. OBJDUMP=$ac_cv_prog_OBJDUMP
  7514. if test -n "$OBJDUMP"; then
  7515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7516. printf "%s\n" "$OBJDUMP" >&6; }
  7517. else
  7518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7519. printf "%s\n" "no" >&6; }
  7520. fi
  7521. fi
  7522. if test -z "$ac_cv_prog_OBJDUMP"; then
  7523. ac_ct_OBJDUMP=$OBJDUMP
  7524. # Extract the first word of "objdump", so it can be a program name with args.
  7525. set dummy objdump; ac_word=$2
  7526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7527. printf %s "checking for $ac_word... " >&6; }
  7528. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7529. then :
  7530. printf %s "(cached) " >&6
  7531. else $as_nop
  7532. if test -n "$ac_ct_OBJDUMP"; then
  7533. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7534. else
  7535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7536. for as_dir in $PATH
  7537. do
  7538. IFS=$as_save_IFS
  7539. case $as_dir in #(((
  7540. '') as_dir=./ ;;
  7541. */) ;;
  7542. *) as_dir=$as_dir/ ;;
  7543. esac
  7544. for ac_exec_ext in '' $ac_executable_extensions; do
  7545. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7546. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7547. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7548. break 2
  7549. fi
  7550. done
  7551. done
  7552. IFS=$as_save_IFS
  7553. fi
  7554. fi
  7555. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7556. if test -n "$ac_ct_OBJDUMP"; then
  7557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7558. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7559. else
  7560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7561. printf "%s\n" "no" >&6; }
  7562. fi
  7563. if test "x$ac_ct_OBJDUMP" = x; then
  7564. OBJDUMP="false"
  7565. else
  7566. case $cross_compiling:$ac_tool_warned in
  7567. yes:)
  7568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7569. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7570. ac_tool_warned=yes ;;
  7571. esac
  7572. OBJDUMP=$ac_ct_OBJDUMP
  7573. fi
  7574. else
  7575. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7576. fi
  7577. ;;
  7578. esac
  7579. test -z "$AS" && AS=as
  7580. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7581. test -z "$OBJDUMP" && OBJDUMP=objdump
  7582. enable_dlopen=no
  7583. # Check whether --enable-shared was given.
  7584. if test ${enable_shared+y}
  7585. then :
  7586. enableval=$enable_shared; p=${PACKAGE-default}
  7587. case $enableval in
  7588. yes) enable_shared=yes ;;
  7589. no) enable_shared=no ;;
  7590. *)
  7591. enable_shared=no
  7592. # Look at the argument we got. We use all the common list separators.
  7593. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7594. for pkg in $enableval; do
  7595. IFS=$lt_save_ifs
  7596. if test "X$pkg" = "X$p"; then
  7597. enable_shared=yes
  7598. fi
  7599. done
  7600. IFS=$lt_save_ifs
  7601. ;;
  7602. esac
  7603. else $as_nop
  7604. enable_shared=yes
  7605. fi
  7606. # Check whether --enable-static was given.
  7607. if test ${enable_static+y}
  7608. then :
  7609. enableval=$enable_static; p=${PACKAGE-default}
  7610. case $enableval in
  7611. yes) enable_static=yes ;;
  7612. no) enable_static=no ;;
  7613. *)
  7614. enable_static=no
  7615. # Look at the argument we got. We use all the common list separators.
  7616. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7617. for pkg in $enableval; do
  7618. IFS=$lt_save_ifs
  7619. if test "X$pkg" = "X$p"; then
  7620. enable_static=yes
  7621. fi
  7622. done
  7623. IFS=$lt_save_ifs
  7624. ;;
  7625. esac
  7626. else $as_nop
  7627. enable_static=yes
  7628. fi
  7629. # Check whether --with-pic was given.
  7630. if test ${with_pic+y}
  7631. then :
  7632. withval=$with_pic; lt_p=${PACKAGE-default}
  7633. case $withval in
  7634. yes|no) pic_mode=$withval ;;
  7635. *)
  7636. pic_mode=default
  7637. # Look at the argument we got. We use all the common list separators.
  7638. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7639. for lt_pkg in $withval; do
  7640. IFS=$lt_save_ifs
  7641. if test "X$lt_pkg" = "X$lt_p"; then
  7642. pic_mode=yes
  7643. fi
  7644. done
  7645. IFS=$lt_save_ifs
  7646. ;;
  7647. esac
  7648. else $as_nop
  7649. pic_mode=default
  7650. fi
  7651. # Check whether --enable-fast-install was given.
  7652. if test ${enable_fast_install+y}
  7653. then :
  7654. enableval=$enable_fast_install; p=${PACKAGE-default}
  7655. case $enableval in
  7656. yes) enable_fast_install=yes ;;
  7657. no) enable_fast_install=no ;;
  7658. *)
  7659. enable_fast_install=no
  7660. # Look at the argument we got. We use all the common list separators.
  7661. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7662. for pkg in $enableval; do
  7663. IFS=$lt_save_ifs
  7664. if test "X$pkg" = "X$p"; then
  7665. enable_fast_install=yes
  7666. fi
  7667. done
  7668. IFS=$lt_save_ifs
  7669. ;;
  7670. esac
  7671. else $as_nop
  7672. enable_fast_install=yes
  7673. fi
  7674. shared_archive_member_spec=
  7675. case $host,$enable_shared in
  7676. power*-*-aix[5-9]*,yes)
  7677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7678. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7679. # Check whether --with-aix-soname was given.
  7680. if test ${with_aix_soname+y}
  7681. then :
  7682. withval=$with_aix_soname; case $withval in
  7683. aix|svr4|both)
  7684. ;;
  7685. *)
  7686. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7687. ;;
  7688. esac
  7689. lt_cv_with_aix_soname=$with_aix_soname
  7690. else $as_nop
  7691. if test ${lt_cv_with_aix_soname+y}
  7692. then :
  7693. printf %s "(cached) " >&6
  7694. else $as_nop
  7695. lt_cv_with_aix_soname=aix
  7696. fi
  7697. with_aix_soname=$lt_cv_with_aix_soname
  7698. fi
  7699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7700. printf "%s\n" "$with_aix_soname" >&6; }
  7701. if test aix != "$with_aix_soname"; then
  7702. # For the AIX way of multilib, we name the shared archive member
  7703. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7704. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7705. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7706. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7707. if test 64 = "${OBJECT_MODE-32}"; then
  7708. shared_archive_member_spec=shr_64
  7709. else
  7710. shared_archive_member_spec=shr
  7711. fi
  7712. fi
  7713. ;;
  7714. *)
  7715. with_aix_soname=aix
  7716. ;;
  7717. esac
  7718. # This can be used to rebuild libtool when needed
  7719. LIBTOOL_DEPS=$ltmain
  7720. # Always use our own libtool.
  7721. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7722. test -z "$LN_S" && LN_S="ln -s"
  7723. if test -n "${ZSH_VERSION+set}"; then
  7724. setopt NO_GLOB_SUBST
  7725. fi
  7726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7727. printf %s "checking for objdir... " >&6; }
  7728. if test ${lt_cv_objdir+y}
  7729. then :
  7730. printf %s "(cached) " >&6
  7731. else $as_nop
  7732. rm -f .libs 2>/dev/null
  7733. mkdir .libs 2>/dev/null
  7734. if test -d .libs; then
  7735. lt_cv_objdir=.libs
  7736. else
  7737. # MS-DOS does not allow filenames that begin with a dot.
  7738. lt_cv_objdir=_libs
  7739. fi
  7740. rmdir .libs 2>/dev/null
  7741. fi
  7742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7743. printf "%s\n" "$lt_cv_objdir" >&6; }
  7744. objdir=$lt_cv_objdir
  7745. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7746. case $host_os in
  7747. aix3*)
  7748. # AIX sometimes has problems with the GCC collect2 program. For some
  7749. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7750. # vanish in a puff of smoke.
  7751. if test set != "${COLLECT_NAMES+set}"; then
  7752. COLLECT_NAMES=
  7753. export COLLECT_NAMES
  7754. fi
  7755. ;;
  7756. esac
  7757. # Global variables:
  7758. ofile=libtool
  7759. can_build_shared=yes
  7760. # All known linkers require a '.a' archive for static linking (except MSVC,
  7761. # which needs '.lib').
  7762. libext=a
  7763. with_gnu_ld=$lt_cv_prog_gnu_ld
  7764. old_CC=$CC
  7765. old_CFLAGS=$CFLAGS
  7766. # Set sane defaults for various variables
  7767. test -z "$CC" && CC=cc
  7768. test -z "$LTCC" && LTCC=$CC
  7769. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7770. test -z "$LD" && LD=ld
  7771. test -z "$ac_objext" && ac_objext=o
  7772. func_cc_basename $compiler
  7773. cc_basename=$func_cc_basename_result
  7774. # Only perform the check for file, if the check method requires it
  7775. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7776. case $deplibs_check_method in
  7777. file_magic*)
  7778. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7780. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7781. if test ${lt_cv_path_MAGIC_CMD+y}
  7782. then :
  7783. printf %s "(cached) " >&6
  7784. else $as_nop
  7785. case $MAGIC_CMD in
  7786. [\\/*] | ?:[\\/]*)
  7787. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7788. ;;
  7789. *)
  7790. lt_save_MAGIC_CMD=$MAGIC_CMD
  7791. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7792. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7793. for ac_dir in $ac_dummy; do
  7794. IFS=$lt_save_ifs
  7795. test -z "$ac_dir" && ac_dir=.
  7796. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7797. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7798. if test -n "$file_magic_test_file"; then
  7799. case $deplibs_check_method in
  7800. "file_magic "*)
  7801. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7802. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7803. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7804. $EGREP "$file_magic_regex" > /dev/null; then
  7805. :
  7806. else
  7807. cat <<_LT_EOF 1>&2
  7808. *** Warning: the command libtool uses to detect shared libraries,
  7809. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7810. *** The result is that libtool may fail to recognize shared libraries
  7811. *** as such. This will affect the creation of libtool libraries that
  7812. *** depend on shared libraries, but programs linked with such libtool
  7813. *** libraries will work regardless of this problem. Nevertheless, you
  7814. *** may want to report the problem to your system manager and/or to
  7815. *** bug-libtool@gnu.org
  7816. _LT_EOF
  7817. fi ;;
  7818. esac
  7819. fi
  7820. break
  7821. fi
  7822. done
  7823. IFS=$lt_save_ifs
  7824. MAGIC_CMD=$lt_save_MAGIC_CMD
  7825. ;;
  7826. esac
  7827. fi
  7828. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7829. if test -n "$MAGIC_CMD"; then
  7830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7831. printf "%s\n" "$MAGIC_CMD" >&6; }
  7832. else
  7833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7834. printf "%s\n" "no" >&6; }
  7835. fi
  7836. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7837. if test -n "$ac_tool_prefix"; then
  7838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7839. printf %s "checking for file... " >&6; }
  7840. if test ${lt_cv_path_MAGIC_CMD+y}
  7841. then :
  7842. printf %s "(cached) " >&6
  7843. else $as_nop
  7844. case $MAGIC_CMD in
  7845. [\\/*] | ?:[\\/]*)
  7846. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7847. ;;
  7848. *)
  7849. lt_save_MAGIC_CMD=$MAGIC_CMD
  7850. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7851. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7852. for ac_dir in $ac_dummy; do
  7853. IFS=$lt_save_ifs
  7854. test -z "$ac_dir" && ac_dir=.
  7855. if test -f "$ac_dir/file"; then
  7856. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7857. if test -n "$file_magic_test_file"; then
  7858. case $deplibs_check_method in
  7859. "file_magic "*)
  7860. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7861. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7862. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7863. $EGREP "$file_magic_regex" > /dev/null; then
  7864. :
  7865. else
  7866. cat <<_LT_EOF 1>&2
  7867. *** Warning: the command libtool uses to detect shared libraries,
  7868. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7869. *** The result is that libtool may fail to recognize shared libraries
  7870. *** as such. This will affect the creation of libtool libraries that
  7871. *** depend on shared libraries, but programs linked with such libtool
  7872. *** libraries will work regardless of this problem. Nevertheless, you
  7873. *** may want to report the problem to your system manager and/or to
  7874. *** bug-libtool@gnu.org
  7875. _LT_EOF
  7876. fi ;;
  7877. esac
  7878. fi
  7879. break
  7880. fi
  7881. done
  7882. IFS=$lt_save_ifs
  7883. MAGIC_CMD=$lt_save_MAGIC_CMD
  7884. ;;
  7885. esac
  7886. fi
  7887. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7888. if test -n "$MAGIC_CMD"; then
  7889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7890. printf "%s\n" "$MAGIC_CMD" >&6; }
  7891. else
  7892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7893. printf "%s\n" "no" >&6; }
  7894. fi
  7895. else
  7896. MAGIC_CMD=:
  7897. fi
  7898. fi
  7899. fi
  7900. ;;
  7901. esac
  7902. # Use C for the default configuration in the libtool script
  7903. lt_save_CC=$CC
  7904. ac_ext=c
  7905. ac_cpp='$CPP $CPPFLAGS'
  7906. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7907. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7908. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7909. # Source file extension for C test sources.
  7910. ac_ext=c
  7911. # Object file extension for compiled C test sources.
  7912. objext=o
  7913. objext=$objext
  7914. # Code to be used in simple compile tests
  7915. lt_simple_compile_test_code="int some_variable = 0;"
  7916. # Code to be used in simple link tests
  7917. lt_simple_link_test_code='int main(){return(0);}'
  7918. # If no C compiler was specified, use CC.
  7919. LTCC=${LTCC-"$CC"}
  7920. # If no C compiler flags were specified, use CFLAGS.
  7921. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7922. # Allow CC to be a program name with arguments.
  7923. compiler=$CC
  7924. # Save the default compiler, since it gets overwritten when the other
  7925. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7926. compiler_DEFAULT=$CC
  7927. # save warnings/boilerplate of simple test code
  7928. ac_outfile=conftest.$ac_objext
  7929. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7930. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7931. _lt_compiler_boilerplate=`cat conftest.err`
  7932. $RM conftest*
  7933. ac_outfile=conftest.$ac_objext
  7934. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7935. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7936. _lt_linker_boilerplate=`cat conftest.err`
  7937. $RM -r conftest*
  7938. ## CAVEAT EMPTOR:
  7939. ## There is no encapsulation within the following macros, do not change
  7940. ## the running order or otherwise move them around unless you know exactly
  7941. ## what you are doing...
  7942. if test -n "$compiler"; then
  7943. lt_prog_compiler_no_builtin_flag=
  7944. if test yes = "$GCC"; then
  7945. case $cc_basename in
  7946. nvcc*)
  7947. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7948. *)
  7949. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7950. esac
  7951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7952. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7953. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7954. then :
  7955. printf %s "(cached) " >&6
  7956. else $as_nop
  7957. lt_cv_prog_compiler_rtti_exceptions=no
  7958. ac_outfile=conftest.$ac_objext
  7959. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7960. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7961. # Insert the option either (1) after the last *FLAGS variable, or
  7962. # (2) before a word containing "conftest.", or (3) at the end.
  7963. # Note that $ac_compile itself does not contain backslashes and begins
  7964. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7965. # The option is referenced via a variable to avoid confusing sed.
  7966. lt_compile=`echo "$ac_compile" | $SED \
  7967. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7968. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7969. -e 's:$: $lt_compiler_flag:'`
  7970. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7971. (eval "$lt_compile" 2>conftest.err)
  7972. ac_status=$?
  7973. cat conftest.err >&5
  7974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7975. if (exit $ac_status) && test -s "$ac_outfile"; then
  7976. # The compiler can only warn and ignore the option if not recognized
  7977. # So say no if there are warnings other than the usual output.
  7978. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7979. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7980. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7981. lt_cv_prog_compiler_rtti_exceptions=yes
  7982. fi
  7983. fi
  7984. $RM conftest*
  7985. fi
  7986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7987. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7988. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7989. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7990. else
  7991. :
  7992. fi
  7993. fi
  7994. lt_prog_compiler_wl=
  7995. lt_prog_compiler_pic=
  7996. lt_prog_compiler_static=
  7997. if test yes = "$GCC"; then
  7998. lt_prog_compiler_wl='-Wl,'
  7999. lt_prog_compiler_static='-static'
  8000. case $host_os in
  8001. aix*)
  8002. # All AIX code is PIC.
  8003. if test ia64 = "$host_cpu"; then
  8004. # AIX 5 now supports IA64 processor
  8005. lt_prog_compiler_static='-Bstatic'
  8006. fi
  8007. lt_prog_compiler_pic='-fPIC'
  8008. ;;
  8009. amigaos*)
  8010. case $host_cpu in
  8011. powerpc)
  8012. # see comment about AmigaOS4 .so support
  8013. lt_prog_compiler_pic='-fPIC'
  8014. ;;
  8015. m68k)
  8016. # FIXME: we need at least 68020 code to build shared libraries, but
  8017. # adding the '-m68020' flag to GCC prevents building anything better,
  8018. # like '-m68040'.
  8019. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8020. ;;
  8021. esac
  8022. ;;
  8023. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8024. # PIC is the default for these OSes.
  8025. ;;
  8026. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8027. # This hack is so that the source file can tell whether it is being
  8028. # built for inclusion in a dll (and should export symbols for example).
  8029. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8030. # (--disable-auto-import) libraries
  8031. lt_prog_compiler_pic='-DDLL_EXPORT'
  8032. case $host_os in
  8033. os2*)
  8034. lt_prog_compiler_static='$wl-static'
  8035. ;;
  8036. esac
  8037. ;;
  8038. darwin* | rhapsody*)
  8039. # PIC is the default on this platform
  8040. # Common symbols not allowed in MH_DYLIB files
  8041. lt_prog_compiler_pic='-fno-common'
  8042. ;;
  8043. haiku*)
  8044. # PIC is the default for Haiku.
  8045. # The "-static" flag exists, but is broken.
  8046. lt_prog_compiler_static=
  8047. ;;
  8048. hpux*)
  8049. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8050. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8051. # sets the default TLS model and affects inlining.
  8052. case $host_cpu in
  8053. hppa*64*)
  8054. # +Z the default
  8055. ;;
  8056. *)
  8057. lt_prog_compiler_pic='-fPIC'
  8058. ;;
  8059. esac
  8060. ;;
  8061. interix[3-9]*)
  8062. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8063. # Instead, we relocate shared libraries at runtime.
  8064. ;;
  8065. msdosdjgpp*)
  8066. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8067. # on systems that don't support them.
  8068. lt_prog_compiler_can_build_shared=no
  8069. enable_shared=no
  8070. ;;
  8071. *nto* | *qnx*)
  8072. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8073. # it will coredump.
  8074. lt_prog_compiler_pic='-fPIC -shared'
  8075. ;;
  8076. sysv4*MP*)
  8077. if test -d /usr/nec; then
  8078. lt_prog_compiler_pic=-Kconform_pic
  8079. fi
  8080. ;;
  8081. *)
  8082. lt_prog_compiler_pic='-fPIC'
  8083. ;;
  8084. esac
  8085. case $cc_basename in
  8086. nvcc*) # Cuda Compiler Driver 2.2
  8087. lt_prog_compiler_wl='-Xlinker '
  8088. if test -n "$lt_prog_compiler_pic"; then
  8089. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8090. fi
  8091. ;;
  8092. esac
  8093. else
  8094. # PORTME Check for flag to pass linker flags through the system compiler.
  8095. case $host_os in
  8096. aix*)
  8097. lt_prog_compiler_wl='-Wl,'
  8098. if test ia64 = "$host_cpu"; then
  8099. # AIX 5 now supports IA64 processor
  8100. lt_prog_compiler_static='-Bstatic'
  8101. else
  8102. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8103. fi
  8104. ;;
  8105. darwin* | rhapsody*)
  8106. # PIC is the default on this platform
  8107. # Common symbols not allowed in MH_DYLIB files
  8108. lt_prog_compiler_pic='-fno-common'
  8109. case $cc_basename in
  8110. nagfor*)
  8111. # NAG Fortran compiler
  8112. lt_prog_compiler_wl='-Wl,-Wl,,'
  8113. lt_prog_compiler_pic='-PIC'
  8114. lt_prog_compiler_static='-Bstatic'
  8115. ;;
  8116. esac
  8117. ;;
  8118. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8119. # This hack is so that the source file can tell whether it is being
  8120. # built for inclusion in a dll (and should export symbols for example).
  8121. lt_prog_compiler_pic='-DDLL_EXPORT'
  8122. case $host_os in
  8123. os2*)
  8124. lt_prog_compiler_static='$wl-static'
  8125. ;;
  8126. esac
  8127. ;;
  8128. hpux9* | hpux10* | hpux11*)
  8129. lt_prog_compiler_wl='-Wl,'
  8130. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8131. # not for PA HP-UX.
  8132. case $host_cpu in
  8133. hppa*64*|ia64*)
  8134. # +Z the default
  8135. ;;
  8136. *)
  8137. lt_prog_compiler_pic='+Z'
  8138. ;;
  8139. esac
  8140. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8141. lt_prog_compiler_static='$wl-a ${wl}archive'
  8142. ;;
  8143. irix5* | irix6* | nonstopux*)
  8144. lt_prog_compiler_wl='-Wl,'
  8145. # PIC (with -KPIC) is the default.
  8146. lt_prog_compiler_static='-non_shared'
  8147. ;;
  8148. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8149. case $cc_basename in
  8150. # old Intel for x86_64, which still supported -KPIC.
  8151. ecc*)
  8152. lt_prog_compiler_wl='-Wl,'
  8153. lt_prog_compiler_pic='-KPIC'
  8154. lt_prog_compiler_static='-static'
  8155. ;;
  8156. # icc used to be incompatible with GCC.
  8157. # ICC 10 doesn't accept -KPIC any more.
  8158. icc* | ifort*)
  8159. lt_prog_compiler_wl='-Wl,'
  8160. lt_prog_compiler_pic='-fPIC'
  8161. lt_prog_compiler_static='-static'
  8162. ;;
  8163. # Lahey Fortran 8.1.
  8164. lf95*)
  8165. lt_prog_compiler_wl='-Wl,'
  8166. lt_prog_compiler_pic='--shared'
  8167. lt_prog_compiler_static='--static'
  8168. ;;
  8169. nagfor*)
  8170. # NAG Fortran compiler
  8171. lt_prog_compiler_wl='-Wl,-Wl,,'
  8172. lt_prog_compiler_pic='-PIC'
  8173. lt_prog_compiler_static='-Bstatic'
  8174. ;;
  8175. tcc*)
  8176. # Fabrice Bellard et al's Tiny C Compiler
  8177. lt_prog_compiler_wl='-Wl,'
  8178. lt_prog_compiler_pic='-fPIC'
  8179. lt_prog_compiler_static='-static'
  8180. ;;
  8181. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8182. # Portland Group compilers (*not* the Pentium gcc compiler,
  8183. # which looks to be a dead project)
  8184. lt_prog_compiler_wl='-Wl,'
  8185. lt_prog_compiler_pic='-fpic'
  8186. lt_prog_compiler_static='-Bstatic'
  8187. ;;
  8188. ccc*)
  8189. lt_prog_compiler_wl='-Wl,'
  8190. # All Alpha code is PIC.
  8191. lt_prog_compiler_static='-non_shared'
  8192. ;;
  8193. xl* | bgxl* | bgf* | mpixl*)
  8194. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8195. lt_prog_compiler_wl='-Wl,'
  8196. lt_prog_compiler_pic='-qpic'
  8197. lt_prog_compiler_static='-qstaticlink'
  8198. ;;
  8199. *)
  8200. case `$CC -V 2>&1 | sed 5q` in
  8201. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8202. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8203. lt_prog_compiler_pic='-KPIC'
  8204. lt_prog_compiler_static='-Bstatic'
  8205. lt_prog_compiler_wl=''
  8206. ;;
  8207. *Sun\ F* | *Sun*Fortran*)
  8208. lt_prog_compiler_pic='-KPIC'
  8209. lt_prog_compiler_static='-Bstatic'
  8210. lt_prog_compiler_wl='-Qoption ld '
  8211. ;;
  8212. *Sun\ C*)
  8213. # Sun C 5.9
  8214. lt_prog_compiler_pic='-KPIC'
  8215. lt_prog_compiler_static='-Bstatic'
  8216. lt_prog_compiler_wl='-Wl,'
  8217. ;;
  8218. *Intel*\ [CF]*Compiler*)
  8219. lt_prog_compiler_wl='-Wl,'
  8220. lt_prog_compiler_pic='-fPIC'
  8221. lt_prog_compiler_static='-static'
  8222. ;;
  8223. *Portland\ Group*)
  8224. lt_prog_compiler_wl='-Wl,'
  8225. lt_prog_compiler_pic='-fpic'
  8226. lt_prog_compiler_static='-Bstatic'
  8227. ;;
  8228. esac
  8229. ;;
  8230. esac
  8231. ;;
  8232. newsos6)
  8233. lt_prog_compiler_pic='-KPIC'
  8234. lt_prog_compiler_static='-Bstatic'
  8235. ;;
  8236. *nto* | *qnx*)
  8237. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8238. # it will coredump.
  8239. lt_prog_compiler_pic='-fPIC -shared'
  8240. ;;
  8241. osf3* | osf4* | osf5*)
  8242. lt_prog_compiler_wl='-Wl,'
  8243. # All OSF/1 code is PIC.
  8244. lt_prog_compiler_static='-non_shared'
  8245. ;;
  8246. rdos*)
  8247. lt_prog_compiler_static='-non_shared'
  8248. ;;
  8249. solaris*)
  8250. lt_prog_compiler_pic='-KPIC'
  8251. lt_prog_compiler_static='-Bstatic'
  8252. case $cc_basename in
  8253. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8254. lt_prog_compiler_wl='-Qoption ld ';;
  8255. *)
  8256. lt_prog_compiler_wl='-Wl,';;
  8257. esac
  8258. ;;
  8259. sunos4*)
  8260. lt_prog_compiler_wl='-Qoption ld '
  8261. lt_prog_compiler_pic='-PIC'
  8262. lt_prog_compiler_static='-Bstatic'
  8263. ;;
  8264. sysv4 | sysv4.2uw2* | sysv4.3*)
  8265. lt_prog_compiler_wl='-Wl,'
  8266. lt_prog_compiler_pic='-KPIC'
  8267. lt_prog_compiler_static='-Bstatic'
  8268. ;;
  8269. sysv4*MP*)
  8270. if test -d /usr/nec; then
  8271. lt_prog_compiler_pic='-Kconform_pic'
  8272. lt_prog_compiler_static='-Bstatic'
  8273. fi
  8274. ;;
  8275. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8276. lt_prog_compiler_wl='-Wl,'
  8277. lt_prog_compiler_pic='-KPIC'
  8278. lt_prog_compiler_static='-Bstatic'
  8279. ;;
  8280. unicos*)
  8281. lt_prog_compiler_wl='-Wl,'
  8282. lt_prog_compiler_can_build_shared=no
  8283. ;;
  8284. uts4*)
  8285. lt_prog_compiler_pic='-pic'
  8286. lt_prog_compiler_static='-Bstatic'
  8287. ;;
  8288. *)
  8289. lt_prog_compiler_can_build_shared=no
  8290. ;;
  8291. esac
  8292. fi
  8293. case $host_os in
  8294. # For platforms that do not support PIC, -DPIC is meaningless:
  8295. *djgpp*)
  8296. lt_prog_compiler_pic=
  8297. ;;
  8298. *)
  8299. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8300. ;;
  8301. esac
  8302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8303. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8304. if test ${lt_cv_prog_compiler_pic+y}
  8305. then :
  8306. printf %s "(cached) " >&6
  8307. else $as_nop
  8308. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8309. fi
  8310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8311. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8312. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8313. #
  8314. # Check to make sure the PIC flag actually works.
  8315. #
  8316. if test -n "$lt_prog_compiler_pic"; then
  8317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8318. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8319. if test ${lt_cv_prog_compiler_pic_works+y}
  8320. then :
  8321. printf %s "(cached) " >&6
  8322. else $as_nop
  8323. lt_cv_prog_compiler_pic_works=no
  8324. ac_outfile=conftest.$ac_objext
  8325. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8326. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8327. # Insert the option either (1) after the last *FLAGS variable, or
  8328. # (2) before a word containing "conftest.", or (3) at the end.
  8329. # Note that $ac_compile itself does not contain backslashes and begins
  8330. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8331. # The option is referenced via a variable to avoid confusing sed.
  8332. lt_compile=`echo "$ac_compile" | $SED \
  8333. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8334. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8335. -e 's:$: $lt_compiler_flag:'`
  8336. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8337. (eval "$lt_compile" 2>conftest.err)
  8338. ac_status=$?
  8339. cat conftest.err >&5
  8340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8341. if (exit $ac_status) && test -s "$ac_outfile"; then
  8342. # The compiler can only warn and ignore the option if not recognized
  8343. # So say no if there are warnings other than the usual output.
  8344. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8345. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8346. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8347. lt_cv_prog_compiler_pic_works=yes
  8348. fi
  8349. fi
  8350. $RM conftest*
  8351. fi
  8352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8353. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8354. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8355. case $lt_prog_compiler_pic in
  8356. "" | " "*) ;;
  8357. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8358. esac
  8359. else
  8360. lt_prog_compiler_pic=
  8361. lt_prog_compiler_can_build_shared=no
  8362. fi
  8363. fi
  8364. #
  8365. # Check to make sure the static flag actually works.
  8366. #
  8367. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8369. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8370. if test ${lt_cv_prog_compiler_static_works+y}
  8371. then :
  8372. printf %s "(cached) " >&6
  8373. else $as_nop
  8374. lt_cv_prog_compiler_static_works=no
  8375. save_LDFLAGS=$LDFLAGS
  8376. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8377. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8378. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8379. # The linker can only warn and ignore the option if not recognized
  8380. # So say no if there are warnings
  8381. if test -s conftest.err; then
  8382. # Append any errors to the config.log.
  8383. cat conftest.err 1>&5
  8384. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8385. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8386. if diff conftest.exp conftest.er2 >/dev/null; then
  8387. lt_cv_prog_compiler_static_works=yes
  8388. fi
  8389. else
  8390. lt_cv_prog_compiler_static_works=yes
  8391. fi
  8392. fi
  8393. $RM -r conftest*
  8394. LDFLAGS=$save_LDFLAGS
  8395. fi
  8396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8397. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8398. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8399. :
  8400. else
  8401. lt_prog_compiler_static=
  8402. fi
  8403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8404. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8405. if test ${lt_cv_prog_compiler_c_o+y}
  8406. then :
  8407. printf %s "(cached) " >&6
  8408. else $as_nop
  8409. lt_cv_prog_compiler_c_o=no
  8410. $RM -r conftest 2>/dev/null
  8411. mkdir conftest
  8412. cd conftest
  8413. mkdir out
  8414. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8415. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8416. # Insert the option either (1) after the last *FLAGS variable, or
  8417. # (2) before a word containing "conftest.", or (3) at the end.
  8418. # Note that $ac_compile itself does not contain backslashes and begins
  8419. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8420. lt_compile=`echo "$ac_compile" | $SED \
  8421. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8422. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8423. -e 's:$: $lt_compiler_flag:'`
  8424. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8425. (eval "$lt_compile" 2>out/conftest.err)
  8426. ac_status=$?
  8427. cat out/conftest.err >&5
  8428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8429. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8430. then
  8431. # The compiler can only warn and ignore the option if not recognized
  8432. # So say no if there are warnings
  8433. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8434. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8435. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8436. lt_cv_prog_compiler_c_o=yes
  8437. fi
  8438. fi
  8439. chmod u+w . 2>&5
  8440. $RM conftest*
  8441. # SGI C++ compiler will create directory out/ii_files/ for
  8442. # template instantiation
  8443. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8444. $RM out/* && rmdir out
  8445. cd ..
  8446. $RM -r conftest
  8447. $RM conftest*
  8448. fi
  8449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8450. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8452. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8453. if test ${lt_cv_prog_compiler_c_o+y}
  8454. then :
  8455. printf %s "(cached) " >&6
  8456. else $as_nop
  8457. lt_cv_prog_compiler_c_o=no
  8458. $RM -r conftest 2>/dev/null
  8459. mkdir conftest
  8460. cd conftest
  8461. mkdir out
  8462. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8463. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8464. # Insert the option either (1) after the last *FLAGS variable, or
  8465. # (2) before a word containing "conftest.", or (3) at the end.
  8466. # Note that $ac_compile itself does not contain backslashes and begins
  8467. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8468. lt_compile=`echo "$ac_compile" | $SED \
  8469. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8470. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8471. -e 's:$: $lt_compiler_flag:'`
  8472. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8473. (eval "$lt_compile" 2>out/conftest.err)
  8474. ac_status=$?
  8475. cat out/conftest.err >&5
  8476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8477. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8478. then
  8479. # The compiler can only warn and ignore the option if not recognized
  8480. # So say no if there are warnings
  8481. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8482. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8483. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8484. lt_cv_prog_compiler_c_o=yes
  8485. fi
  8486. fi
  8487. chmod u+w . 2>&5
  8488. $RM conftest*
  8489. # SGI C++ compiler will create directory out/ii_files/ for
  8490. # template instantiation
  8491. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8492. $RM out/* && rmdir out
  8493. cd ..
  8494. $RM -r conftest
  8495. $RM conftest*
  8496. fi
  8497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8498. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8499. hard_links=nottested
  8500. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8501. # do not overwrite the value of need_locks provided by the user
  8502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8503. printf %s "checking if we can lock with hard links... " >&6; }
  8504. hard_links=yes
  8505. $RM conftest*
  8506. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8507. touch conftest.a
  8508. ln conftest.a conftest.b 2>&5 || hard_links=no
  8509. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8511. printf "%s\n" "$hard_links" >&6; }
  8512. if test no = "$hard_links"; then
  8513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8514. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8515. need_locks=warn
  8516. fi
  8517. else
  8518. need_locks=no
  8519. fi
  8520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8521. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8522. runpath_var=
  8523. allow_undefined_flag=
  8524. always_export_symbols=no
  8525. archive_cmds=
  8526. archive_expsym_cmds=
  8527. compiler_needs_object=no
  8528. enable_shared_with_static_runtimes=no
  8529. export_dynamic_flag_spec=
  8530. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8531. hardcode_automatic=no
  8532. hardcode_direct=no
  8533. hardcode_direct_absolute=no
  8534. hardcode_libdir_flag_spec=
  8535. hardcode_libdir_separator=
  8536. hardcode_minus_L=no
  8537. hardcode_shlibpath_var=unsupported
  8538. inherit_rpath=no
  8539. link_all_deplibs=unknown
  8540. module_cmds=
  8541. module_expsym_cmds=
  8542. old_archive_from_new_cmds=
  8543. old_archive_from_expsyms_cmds=
  8544. thread_safe_flag_spec=
  8545. whole_archive_flag_spec=
  8546. # include_expsyms should be a list of space-separated symbols to be *always*
  8547. # included in the symbol list
  8548. include_expsyms=
  8549. # exclude_expsyms can be an extended regexp of symbols to exclude
  8550. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8551. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8552. # as well as any symbol that contains 'd'.
  8553. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8554. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8555. # platforms (ab)use it in PIC code, but their linkers get confused if
  8556. # the symbol is explicitly referenced. Since portable code cannot
  8557. # rely on this symbol name, it's probably fine to never include it in
  8558. # preloaded symbol tables.
  8559. # Exclude shared library initialization/finalization symbols.
  8560. extract_expsyms_cmds=
  8561. case $host_os in
  8562. cygwin* | mingw* | pw32* | cegcc*)
  8563. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8564. # When not using gcc, we currently assume that we are using
  8565. # Microsoft Visual C++.
  8566. if test yes != "$GCC"; then
  8567. with_gnu_ld=no
  8568. fi
  8569. ;;
  8570. interix*)
  8571. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8572. with_gnu_ld=yes
  8573. ;;
  8574. openbsd* | bitrig*)
  8575. with_gnu_ld=no
  8576. ;;
  8577. esac
  8578. ld_shlibs=yes
  8579. # On some targets, GNU ld is compatible enough with the native linker
  8580. # that we're better off using the native interface for both.
  8581. lt_use_gnu_ld_interface=no
  8582. if test yes = "$with_gnu_ld"; then
  8583. case $host_os in
  8584. aix*)
  8585. # The AIX port of GNU ld has always aspired to compatibility
  8586. # with the native linker. However, as the warning in the GNU ld
  8587. # block says, versions before 2.19.5* couldn't really create working
  8588. # shared libraries, regardless of the interface used.
  8589. case `$LD -v 2>&1` in
  8590. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8591. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8592. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8593. *)
  8594. lt_use_gnu_ld_interface=yes
  8595. ;;
  8596. esac
  8597. ;;
  8598. *)
  8599. lt_use_gnu_ld_interface=yes
  8600. ;;
  8601. esac
  8602. fi
  8603. if test yes = "$lt_use_gnu_ld_interface"; then
  8604. # If archive_cmds runs LD, not CC, wlarc should be empty
  8605. wlarc='$wl'
  8606. # Set some defaults for GNU ld with shared library support. These
  8607. # are reset later if shared libraries are not supported. Putting them
  8608. # here allows them to be overridden if necessary.
  8609. runpath_var=LD_RUN_PATH
  8610. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8611. export_dynamic_flag_spec='$wl--export-dynamic'
  8612. # ancient GNU ld didn't support --whole-archive et. al.
  8613. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8614. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8615. else
  8616. whole_archive_flag_spec=
  8617. fi
  8618. supports_anon_versioning=no
  8619. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8620. *GNU\ gold*) supports_anon_versioning=yes ;;
  8621. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8622. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8623. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8624. *\ 2.11.*) ;; # other 2.11 versions
  8625. *) supports_anon_versioning=yes ;;
  8626. esac
  8627. # See if GNU ld supports shared libraries.
  8628. case $host_os in
  8629. aix[3-9]*)
  8630. # On AIX/PPC, the GNU linker is very broken
  8631. if test ia64 != "$host_cpu"; then
  8632. ld_shlibs=no
  8633. cat <<_LT_EOF 1>&2
  8634. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8635. *** to be unable to reliably create shared libraries on AIX.
  8636. *** Therefore, libtool is disabling shared libraries support. If you
  8637. *** really care for shared libraries, you may want to install binutils
  8638. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8639. *** You will then need to restart the configuration process.
  8640. _LT_EOF
  8641. fi
  8642. ;;
  8643. amigaos*)
  8644. case $host_cpu in
  8645. powerpc)
  8646. # see comment about AmigaOS4 .so support
  8647. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8648. archive_expsym_cmds=''
  8649. ;;
  8650. m68k)
  8651. 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)'
  8652. hardcode_libdir_flag_spec='-L$libdir'
  8653. hardcode_minus_L=yes
  8654. ;;
  8655. esac
  8656. ;;
  8657. beos*)
  8658. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8659. allow_undefined_flag=unsupported
  8660. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8661. # support --undefined. This deserves some investigation. FIXME
  8662. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8663. else
  8664. ld_shlibs=no
  8665. fi
  8666. ;;
  8667. cygwin* | mingw* | pw32* | cegcc*)
  8668. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8669. # as there is no search path for DLLs.
  8670. hardcode_libdir_flag_spec='-L$libdir'
  8671. export_dynamic_flag_spec='$wl--export-all-symbols'
  8672. allow_undefined_flag=unsupported
  8673. always_export_symbols=no
  8674. enable_shared_with_static_runtimes=yes
  8675. 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'
  8676. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8677. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8678. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8679. # If the export-symbols file already is a .def file, use it as
  8680. # is; otherwise, prepend EXPORTS...
  8681. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8682. cp $export_symbols $output_objdir/$soname.def;
  8683. else
  8684. echo EXPORTS > $output_objdir/$soname.def;
  8685. cat $export_symbols >> $output_objdir/$soname.def;
  8686. fi~
  8687. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8688. else
  8689. ld_shlibs=no
  8690. fi
  8691. ;;
  8692. haiku*)
  8693. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8694. link_all_deplibs=yes
  8695. ;;
  8696. os2*)
  8697. hardcode_libdir_flag_spec='-L$libdir'
  8698. hardcode_minus_L=yes
  8699. allow_undefined_flag=unsupported
  8700. shrext_cmds=.dll
  8701. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8702. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8703. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8704. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8705. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8706. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8707. emximp -o $lib $output_objdir/$libname.def'
  8708. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8709. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8710. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8711. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8712. prefix_cmds="$SED"~
  8713. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8714. prefix_cmds="$prefix_cmds -e 1d";
  8715. fi~
  8716. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8717. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8718. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8719. emximp -o $lib $output_objdir/$libname.def'
  8720. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8721. enable_shared_with_static_runtimes=yes
  8722. file_list_spec='@'
  8723. ;;
  8724. interix[3-9]*)
  8725. hardcode_direct=no
  8726. hardcode_shlibpath_var=no
  8727. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8728. export_dynamic_flag_spec='$wl-E'
  8729. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8730. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8731. # default) and relocated if they conflict, which is a slow very memory
  8732. # consuming and fragmenting process. To avoid this, we pick a random,
  8733. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8734. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8735. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8736. 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'
  8737. ;;
  8738. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8739. tmp_diet=no
  8740. if test linux-dietlibc = "$host_os"; then
  8741. case $cc_basename in
  8742. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8743. esac
  8744. fi
  8745. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8746. && test no = "$tmp_diet"
  8747. then
  8748. tmp_addflag=' $pic_flag'
  8749. tmp_sharedflag='-shared'
  8750. case $cc_basename,$host_cpu in
  8751. pgcc*) # Portland Group C compiler
  8752. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8753. tmp_addflag=' $pic_flag'
  8754. ;;
  8755. pgf77* | pgf90* | pgf95* | pgfortran*)
  8756. # Portland Group f77 and f90 compilers
  8757. 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'
  8758. tmp_addflag=' $pic_flag -Mnomain' ;;
  8759. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8760. tmp_addflag=' -i_dynamic' ;;
  8761. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8762. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8763. ifc* | ifort*) # Intel Fortran compiler
  8764. tmp_addflag=' -nofor_main' ;;
  8765. lf95*) # Lahey Fortran 8.1
  8766. whole_archive_flag_spec=
  8767. tmp_sharedflag='--shared' ;;
  8768. nagfor*) # NAGFOR 5.3
  8769. tmp_sharedflag='-Wl,-shared' ;;
  8770. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8771. tmp_sharedflag='-qmkshrobj'
  8772. tmp_addflag= ;;
  8773. nvcc*) # Cuda Compiler Driver 2.2
  8774. 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'
  8775. compiler_needs_object=yes
  8776. ;;
  8777. esac
  8778. case `$CC -V 2>&1 | sed 5q` in
  8779. *Sun\ C*) # Sun C 5.9
  8780. 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'
  8781. compiler_needs_object=yes
  8782. tmp_sharedflag='-G' ;;
  8783. *Sun\ F*) # Sun Fortran 8.3
  8784. tmp_sharedflag='-G' ;;
  8785. esac
  8786. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8787. if test yes = "$supports_anon_versioning"; then
  8788. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8789. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8790. echo "local: *; };" >> $output_objdir/$libname.ver~
  8791. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8792. fi
  8793. case $cc_basename in
  8794. tcc*)
  8795. export_dynamic_flag_spec='-rdynamic'
  8796. ;;
  8797. xlf* | bgf* | bgxlf* | mpixlf*)
  8798. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8799. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8800. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8801. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8802. if test yes = "$supports_anon_versioning"; then
  8803. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8804. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8805. echo "local: *; };" >> $output_objdir/$libname.ver~
  8806. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8807. fi
  8808. ;;
  8809. esac
  8810. else
  8811. ld_shlibs=no
  8812. fi
  8813. ;;
  8814. netbsd*)
  8815. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8816. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8817. wlarc=
  8818. else
  8819. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8820. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8821. fi
  8822. ;;
  8823. solaris*)
  8824. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8825. ld_shlibs=no
  8826. cat <<_LT_EOF 1>&2
  8827. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8828. *** create shared libraries on Solaris systems. Therefore, libtool
  8829. *** is disabling shared libraries support. We urge you to upgrade GNU
  8830. *** binutils to release 2.9.1 or newer. Another option is to modify
  8831. *** your PATH or compiler configuration so that the native linker is
  8832. *** used, and then restart.
  8833. _LT_EOF
  8834. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8835. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8836. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8837. else
  8838. ld_shlibs=no
  8839. fi
  8840. ;;
  8841. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8842. case `$LD -v 2>&1` in
  8843. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8844. ld_shlibs=no
  8845. cat <<_LT_EOF 1>&2
  8846. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8847. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8848. *** is disabling shared libraries support. We urge you to upgrade GNU
  8849. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8850. *** your PATH or compiler configuration so that the native linker is
  8851. *** used, and then restart.
  8852. _LT_EOF
  8853. ;;
  8854. *)
  8855. # For security reasons, it is highly recommended that you always
  8856. # use absolute paths for naming shared libraries, and exclude the
  8857. # DT_RUNPATH tag from executables and libraries. But doing so
  8858. # requires that you compile everything twice, which is a pain.
  8859. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8860. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8861. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8862. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8863. else
  8864. ld_shlibs=no
  8865. fi
  8866. ;;
  8867. esac
  8868. ;;
  8869. sunos4*)
  8870. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8871. wlarc=
  8872. hardcode_direct=yes
  8873. hardcode_shlibpath_var=no
  8874. ;;
  8875. *)
  8876. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8877. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8878. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8879. else
  8880. ld_shlibs=no
  8881. fi
  8882. ;;
  8883. esac
  8884. if test no = "$ld_shlibs"; then
  8885. runpath_var=
  8886. hardcode_libdir_flag_spec=
  8887. export_dynamic_flag_spec=
  8888. whole_archive_flag_spec=
  8889. fi
  8890. else
  8891. # PORTME fill in a description of your system's linker (not GNU ld)
  8892. case $host_os in
  8893. aix3*)
  8894. allow_undefined_flag=unsupported
  8895. always_export_symbols=yes
  8896. 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'
  8897. # Note: this linker hardcodes the directories in LIBPATH if there
  8898. # are no directories specified by -L.
  8899. hardcode_minus_L=yes
  8900. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8901. # Neither direct hardcoding nor static linking is supported with a
  8902. # broken collect2.
  8903. hardcode_direct=unsupported
  8904. fi
  8905. ;;
  8906. aix[4-9]*)
  8907. if test ia64 = "$host_cpu"; then
  8908. # On IA64, the linker does run time linking by default, so we don't
  8909. # have to do anything special.
  8910. aix_use_runtimelinking=no
  8911. exp_sym_flag='-Bexport'
  8912. no_entry_flag=
  8913. else
  8914. # If we're using GNU nm, then we don't want the "-C" option.
  8915. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8916. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8917. # weak defined symbols like other global defined symbols, whereas
  8918. # GNU nm marks them as "W".
  8919. # While the 'weak' keyword is ignored in the Export File, we need
  8920. # it in the Import File for the 'aix-soname' feature, so we have
  8921. # to replace the "-B" option with "-P" for AIX nm.
  8922. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8923. 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'
  8924. else
  8925. 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'
  8926. fi
  8927. aix_use_runtimelinking=no
  8928. # Test if we are trying to use run time linking or normal
  8929. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8930. # have runtime linking enabled, and use it for executables.
  8931. # For shared libraries, we enable/disable runtime linking
  8932. # depending on the kind of the shared library created -
  8933. # when "with_aix_soname,aix_use_runtimelinking" is:
  8934. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8935. # "aix,yes" lib.so shared, rtl:yes, for executables
  8936. # lib.a static archive
  8937. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8938. # lib.a(lib.so.V) shared, rtl:no, for executables
  8939. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8940. # lib.a(lib.so.V) shared, rtl:no
  8941. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8942. # lib.a static archive
  8943. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8944. for ld_flag in $LDFLAGS; do
  8945. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8946. aix_use_runtimelinking=yes
  8947. break
  8948. fi
  8949. done
  8950. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8951. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8952. # so we don't have lib.a shared libs to link our executables.
  8953. # We have to force runtime linking in this case.
  8954. aix_use_runtimelinking=yes
  8955. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8956. fi
  8957. ;;
  8958. esac
  8959. exp_sym_flag='-bexport'
  8960. no_entry_flag='-bnoentry'
  8961. fi
  8962. # When large executables or shared objects are built, AIX ld can
  8963. # have problems creating the table of contents. If linking a library
  8964. # or program results in "error TOC overflow" add -mminimal-toc to
  8965. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8966. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8967. archive_cmds=''
  8968. hardcode_direct=yes
  8969. hardcode_direct_absolute=yes
  8970. hardcode_libdir_separator=':'
  8971. link_all_deplibs=yes
  8972. file_list_spec='$wl-f,'
  8973. case $with_aix_soname,$aix_use_runtimelinking in
  8974. aix,*) ;; # traditional, no import file
  8975. svr4,* | *,yes) # use import file
  8976. # The Import File defines what to hardcode.
  8977. hardcode_direct=no
  8978. hardcode_direct_absolute=no
  8979. ;;
  8980. esac
  8981. if test yes = "$GCC"; then
  8982. case $host_os in aix4.[012]|aix4.[012].*)
  8983. # We only want to do this on AIX 4.2 and lower, the check
  8984. # below for broken collect2 doesn't work under 4.3+
  8985. collect2name=`$CC -print-prog-name=collect2`
  8986. if test -f "$collect2name" &&
  8987. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8988. then
  8989. # We have reworked collect2
  8990. :
  8991. else
  8992. # We have old collect2
  8993. hardcode_direct=unsupported
  8994. # It fails to find uninstalled libraries when the uninstalled
  8995. # path is not listed in the libpath. Setting hardcode_minus_L
  8996. # to unsupported forces relinking
  8997. hardcode_minus_L=yes
  8998. hardcode_libdir_flag_spec='-L$libdir'
  8999. hardcode_libdir_separator=
  9000. fi
  9001. ;;
  9002. esac
  9003. shared_flag='-shared'
  9004. if test yes = "$aix_use_runtimelinking"; then
  9005. shared_flag="$shared_flag "'$wl-G'
  9006. fi
  9007. # Need to ensure runtime linking is disabled for the traditional
  9008. # shared library, or the linker may eventually find shared libraries
  9009. # /with/ Import File - we do not want to mix them.
  9010. shared_flag_aix='-shared'
  9011. shared_flag_svr4='-shared $wl-G'
  9012. else
  9013. # not using gcc
  9014. if test ia64 = "$host_cpu"; then
  9015. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9016. # chokes on -Wl,-G. The following line is correct:
  9017. shared_flag='-G'
  9018. else
  9019. if test yes = "$aix_use_runtimelinking"; then
  9020. shared_flag='$wl-G'
  9021. else
  9022. shared_flag='$wl-bM:SRE'
  9023. fi
  9024. shared_flag_aix='$wl-bM:SRE'
  9025. shared_flag_svr4='$wl-G'
  9026. fi
  9027. fi
  9028. export_dynamic_flag_spec='$wl-bexpall'
  9029. # It seems that -bexpall does not export symbols beginning with
  9030. # underscore (_), so it is better to generate a list of symbols to export.
  9031. always_export_symbols=yes
  9032. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9033. # Warning - without using the other runtime loading flags (-brtl),
  9034. # -berok will link without error, but may produce a broken library.
  9035. allow_undefined_flag='-berok'
  9036. # Determine the default libpath from the value encoded in an
  9037. # empty executable.
  9038. if test set = "${lt_cv_aix_libpath+set}"; then
  9039. aix_libpath=$lt_cv_aix_libpath
  9040. else
  9041. if test ${lt_cv_aix_libpath_+y}
  9042. then :
  9043. printf %s "(cached) " >&6
  9044. else $as_nop
  9045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9046. /* end confdefs.h. */
  9047. int
  9048. main (void)
  9049. {
  9050. ;
  9051. return 0;
  9052. }
  9053. _ACEOF
  9054. if ac_fn_c_try_link "$LINENO"
  9055. then :
  9056. lt_aix_libpath_sed='
  9057. /Import File Strings/,/^$/ {
  9058. /^0/ {
  9059. s/^0 *\([^ ]*\) *$/\1/
  9060. p
  9061. }
  9062. }'
  9063. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9064. # Check for a 64-bit object if we didn't find anything.
  9065. if test -z "$lt_cv_aix_libpath_"; then
  9066. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9067. fi
  9068. fi
  9069. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9070. conftest$ac_exeext conftest.$ac_ext
  9071. if test -z "$lt_cv_aix_libpath_"; then
  9072. lt_cv_aix_libpath_=/usr/lib:/lib
  9073. fi
  9074. fi
  9075. aix_libpath=$lt_cv_aix_libpath_
  9076. fi
  9077. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9078. 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
  9079. else
  9080. if test ia64 = "$host_cpu"; then
  9081. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9082. allow_undefined_flag="-z nodefs"
  9083. 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"
  9084. else
  9085. # Determine the default libpath from the value encoded in an
  9086. # empty executable.
  9087. if test set = "${lt_cv_aix_libpath+set}"; then
  9088. aix_libpath=$lt_cv_aix_libpath
  9089. else
  9090. if test ${lt_cv_aix_libpath_+y}
  9091. then :
  9092. printf %s "(cached) " >&6
  9093. else $as_nop
  9094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9095. /* end confdefs.h. */
  9096. int
  9097. main (void)
  9098. {
  9099. ;
  9100. return 0;
  9101. }
  9102. _ACEOF
  9103. if ac_fn_c_try_link "$LINENO"
  9104. then :
  9105. lt_aix_libpath_sed='
  9106. /Import File Strings/,/^$/ {
  9107. /^0/ {
  9108. s/^0 *\([^ ]*\) *$/\1/
  9109. p
  9110. }
  9111. }'
  9112. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9113. # Check for a 64-bit object if we didn't find anything.
  9114. if test -z "$lt_cv_aix_libpath_"; then
  9115. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9116. fi
  9117. fi
  9118. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9119. conftest$ac_exeext conftest.$ac_ext
  9120. if test -z "$lt_cv_aix_libpath_"; then
  9121. lt_cv_aix_libpath_=/usr/lib:/lib
  9122. fi
  9123. fi
  9124. aix_libpath=$lt_cv_aix_libpath_
  9125. fi
  9126. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9127. # Warning - without using the other run time loading flags,
  9128. # -berok will link without error, but may produce a broken library.
  9129. no_undefined_flag=' $wl-bernotok'
  9130. allow_undefined_flag=' $wl-berok'
  9131. if test yes = "$with_gnu_ld"; then
  9132. # We only use this code for GNU lds that support --whole-archive.
  9133. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9134. else
  9135. # Exported symbols can be pulled into shared objects from archives
  9136. whole_archive_flag_spec='$convenience'
  9137. fi
  9138. archive_cmds_need_lc=yes
  9139. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9140. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9141. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9142. if test svr4 != "$with_aix_soname"; then
  9143. # This is similar to how AIX traditionally builds its shared libraries.
  9144. 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'
  9145. fi
  9146. if test aix != "$with_aix_soname"; then
  9147. 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'
  9148. else
  9149. # used by -dlpreopen to get the symbols
  9150. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9151. fi
  9152. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9153. fi
  9154. fi
  9155. ;;
  9156. amigaos*)
  9157. case $host_cpu in
  9158. powerpc)
  9159. # see comment about AmigaOS4 .so support
  9160. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9161. archive_expsym_cmds=''
  9162. ;;
  9163. m68k)
  9164. 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)'
  9165. hardcode_libdir_flag_spec='-L$libdir'
  9166. hardcode_minus_L=yes
  9167. ;;
  9168. esac
  9169. ;;
  9170. bsdi[45]*)
  9171. export_dynamic_flag_spec=-rdynamic
  9172. ;;
  9173. cygwin* | mingw* | pw32* | cegcc*)
  9174. # When not using gcc, we currently assume that we are using
  9175. # Microsoft Visual C++.
  9176. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9177. # no search path for DLLs.
  9178. case $cc_basename in
  9179. cl*)
  9180. # Native MSVC
  9181. hardcode_libdir_flag_spec=' '
  9182. allow_undefined_flag=unsupported
  9183. always_export_symbols=yes
  9184. file_list_spec='@'
  9185. # Tell ltmain to make .lib files, not .a files.
  9186. libext=lib
  9187. # Tell ltmain to make .dll files, not .so files.
  9188. shrext_cmds=.dll
  9189. # FIXME: Setting linknames here is a bad hack.
  9190. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9191. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9192. cp "$export_symbols" "$output_objdir/$soname.def";
  9193. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9194. else
  9195. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9196. fi~
  9197. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9198. linknames='
  9199. # The linker will not automatically build a static lib if we build a DLL.
  9200. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9201. enable_shared_with_static_runtimes=yes
  9202. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9203. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9204. # Don't use ranlib
  9205. old_postinstall_cmds='chmod 644 $oldlib'
  9206. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9207. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9208. case $lt_outputfile in
  9209. *.exe|*.EXE) ;;
  9210. *)
  9211. lt_outputfile=$lt_outputfile.exe
  9212. lt_tool_outputfile=$lt_tool_outputfile.exe
  9213. ;;
  9214. esac~
  9215. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9216. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9217. $RM "$lt_outputfile.manifest";
  9218. fi'
  9219. ;;
  9220. *)
  9221. # Assume MSVC wrapper
  9222. hardcode_libdir_flag_spec=' '
  9223. allow_undefined_flag=unsupported
  9224. # Tell ltmain to make .lib files, not .a files.
  9225. libext=lib
  9226. # Tell ltmain to make .dll files, not .so files.
  9227. shrext_cmds=.dll
  9228. # FIXME: Setting linknames here is a bad hack.
  9229. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9230. # The linker will automatically build a .lib file if we build a DLL.
  9231. old_archive_from_new_cmds='true'
  9232. # FIXME: Should let the user specify the lib program.
  9233. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9234. enable_shared_with_static_runtimes=yes
  9235. ;;
  9236. esac
  9237. ;;
  9238. darwin* | rhapsody*)
  9239. archive_cmds_need_lc=no
  9240. hardcode_direct=no
  9241. hardcode_automatic=yes
  9242. hardcode_shlibpath_var=unsupported
  9243. if test yes = "$lt_cv_ld_force_load"; then
  9244. 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\"`'
  9245. else
  9246. whole_archive_flag_spec=''
  9247. fi
  9248. link_all_deplibs=yes
  9249. allow_undefined_flag=$_lt_dar_allow_undefined
  9250. case $cc_basename in
  9251. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9252. *) _lt_dar_can_shared=$GCC ;;
  9253. esac
  9254. if test yes = "$_lt_dar_can_shared"; then
  9255. output_verbose_link_cmd=func_echo_all
  9256. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9257. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9258. 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"
  9259. 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"
  9260. else
  9261. ld_shlibs=no
  9262. fi
  9263. ;;
  9264. dgux*)
  9265. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9266. hardcode_libdir_flag_spec='-L$libdir'
  9267. hardcode_shlibpath_var=no
  9268. ;;
  9269. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9270. # support. Future versions do this automatically, but an explicit c++rt0.o
  9271. # does not break anything, and helps significantly (at the cost of a little
  9272. # extra space).
  9273. freebsd2.2*)
  9274. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9275. hardcode_libdir_flag_spec='-R$libdir'
  9276. hardcode_direct=yes
  9277. hardcode_shlibpath_var=no
  9278. ;;
  9279. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9280. freebsd2.*)
  9281. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9282. hardcode_direct=yes
  9283. hardcode_minus_L=yes
  9284. hardcode_shlibpath_var=no
  9285. ;;
  9286. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9287. freebsd* | dragonfly* | midnightbsd*)
  9288. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9289. hardcode_libdir_flag_spec='-R$libdir'
  9290. hardcode_direct=yes
  9291. hardcode_shlibpath_var=no
  9292. ;;
  9293. hpux9*)
  9294. if test yes = "$GCC"; then
  9295. 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'
  9296. else
  9297. 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'
  9298. fi
  9299. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9300. hardcode_libdir_separator=:
  9301. hardcode_direct=yes
  9302. # hardcode_minus_L: Not really in the search PATH,
  9303. # but as the default location of the library.
  9304. hardcode_minus_L=yes
  9305. export_dynamic_flag_spec='$wl-E'
  9306. ;;
  9307. hpux10*)
  9308. if test yes,no = "$GCC,$with_gnu_ld"; then
  9309. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9310. else
  9311. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9312. fi
  9313. if test no = "$with_gnu_ld"; then
  9314. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9315. hardcode_libdir_separator=:
  9316. hardcode_direct=yes
  9317. hardcode_direct_absolute=yes
  9318. export_dynamic_flag_spec='$wl-E'
  9319. # hardcode_minus_L: Not really in the search PATH,
  9320. # but as the default location of the library.
  9321. hardcode_minus_L=yes
  9322. fi
  9323. ;;
  9324. hpux11*)
  9325. if test yes,no = "$GCC,$with_gnu_ld"; then
  9326. case $host_cpu in
  9327. hppa*64*)
  9328. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9329. ;;
  9330. ia64*)
  9331. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9332. ;;
  9333. *)
  9334. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9335. ;;
  9336. esac
  9337. else
  9338. case $host_cpu in
  9339. hppa*64*)
  9340. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9341. ;;
  9342. ia64*)
  9343. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9344. ;;
  9345. *)
  9346. # Older versions of the 11.00 compiler do not understand -b yet
  9347. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9349. printf %s "checking if $CC understands -b... " >&6; }
  9350. if test ${lt_cv_prog_compiler__b+y}
  9351. then :
  9352. printf %s "(cached) " >&6
  9353. else $as_nop
  9354. lt_cv_prog_compiler__b=no
  9355. save_LDFLAGS=$LDFLAGS
  9356. LDFLAGS="$LDFLAGS -b"
  9357. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9358. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9359. # The linker can only warn and ignore the option if not recognized
  9360. # So say no if there are warnings
  9361. if test -s conftest.err; then
  9362. # Append any errors to the config.log.
  9363. cat conftest.err 1>&5
  9364. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9365. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9366. if diff conftest.exp conftest.er2 >/dev/null; then
  9367. lt_cv_prog_compiler__b=yes
  9368. fi
  9369. else
  9370. lt_cv_prog_compiler__b=yes
  9371. fi
  9372. fi
  9373. $RM -r conftest*
  9374. LDFLAGS=$save_LDFLAGS
  9375. fi
  9376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9377. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9378. if test yes = "$lt_cv_prog_compiler__b"; then
  9379. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9380. else
  9381. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9382. fi
  9383. ;;
  9384. esac
  9385. fi
  9386. if test no = "$with_gnu_ld"; then
  9387. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9388. hardcode_libdir_separator=:
  9389. case $host_cpu in
  9390. hppa*64*|ia64*)
  9391. hardcode_direct=no
  9392. hardcode_shlibpath_var=no
  9393. ;;
  9394. *)
  9395. hardcode_direct=yes
  9396. hardcode_direct_absolute=yes
  9397. export_dynamic_flag_spec='$wl-E'
  9398. # hardcode_minus_L: Not really in the search PATH,
  9399. # but as the default location of the library.
  9400. hardcode_minus_L=yes
  9401. ;;
  9402. esac
  9403. fi
  9404. ;;
  9405. irix5* | irix6* | nonstopux*)
  9406. if test yes = "$GCC"; then
  9407. 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'
  9408. # Try to use the -exported_symbol ld option, if it does not
  9409. # work, assume that -exports_file does not work either and
  9410. # implicitly export all symbols.
  9411. # This should be the same for all languages, so no per-tag cache variable.
  9412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9413. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9414. if test ${lt_cv_irix_exported_symbol+y}
  9415. then :
  9416. printf %s "(cached) " >&6
  9417. else $as_nop
  9418. save_LDFLAGS=$LDFLAGS
  9419. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9421. /* end confdefs.h. */
  9422. int foo (void) { return 0; }
  9423. _ACEOF
  9424. if ac_fn_c_try_link "$LINENO"
  9425. then :
  9426. lt_cv_irix_exported_symbol=yes
  9427. else $as_nop
  9428. lt_cv_irix_exported_symbol=no
  9429. fi
  9430. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9431. conftest$ac_exeext conftest.$ac_ext
  9432. LDFLAGS=$save_LDFLAGS
  9433. fi
  9434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9435. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9436. if test yes = "$lt_cv_irix_exported_symbol"; then
  9437. 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'
  9438. fi
  9439. else
  9440. 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'
  9441. 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'
  9442. fi
  9443. archive_cmds_need_lc='no'
  9444. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9445. hardcode_libdir_separator=:
  9446. inherit_rpath=yes
  9447. link_all_deplibs=yes
  9448. ;;
  9449. linux*)
  9450. case $cc_basename in
  9451. tcc*)
  9452. # Fabrice Bellard et al's Tiny C Compiler
  9453. ld_shlibs=yes
  9454. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9455. ;;
  9456. esac
  9457. ;;
  9458. netbsd*)
  9459. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9460. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9461. else
  9462. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9463. fi
  9464. hardcode_libdir_flag_spec='-R$libdir'
  9465. hardcode_direct=yes
  9466. hardcode_shlibpath_var=no
  9467. ;;
  9468. newsos6)
  9469. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9470. hardcode_direct=yes
  9471. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9472. hardcode_libdir_separator=:
  9473. hardcode_shlibpath_var=no
  9474. ;;
  9475. *nto* | *qnx*)
  9476. ;;
  9477. openbsd* | bitrig*)
  9478. if test -f /usr/libexec/ld.so; then
  9479. hardcode_direct=yes
  9480. hardcode_shlibpath_var=no
  9481. hardcode_direct_absolute=yes
  9482. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9483. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9484. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9485. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9486. export_dynamic_flag_spec='$wl-E'
  9487. else
  9488. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9489. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9490. fi
  9491. else
  9492. ld_shlibs=no
  9493. fi
  9494. ;;
  9495. os2*)
  9496. hardcode_libdir_flag_spec='-L$libdir'
  9497. hardcode_minus_L=yes
  9498. allow_undefined_flag=unsupported
  9499. shrext_cmds=.dll
  9500. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9501. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9502. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9503. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9504. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9505. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9506. emximp -o $lib $output_objdir/$libname.def'
  9507. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9508. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9509. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9510. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9511. prefix_cmds="$SED"~
  9512. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9513. prefix_cmds="$prefix_cmds -e 1d";
  9514. fi~
  9515. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9516. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9517. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9518. emximp -o $lib $output_objdir/$libname.def'
  9519. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9520. enable_shared_with_static_runtimes=yes
  9521. file_list_spec='@'
  9522. ;;
  9523. osf3*)
  9524. if test yes = "$GCC"; then
  9525. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9526. 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'
  9527. else
  9528. allow_undefined_flag=' -expect_unresolved \*'
  9529. 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'
  9530. fi
  9531. archive_cmds_need_lc='no'
  9532. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9533. hardcode_libdir_separator=:
  9534. ;;
  9535. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9536. if test yes = "$GCC"; then
  9537. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9538. 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'
  9539. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9540. else
  9541. allow_undefined_flag=' -expect_unresolved \*'
  9542. 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'
  9543. 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~
  9544. $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'
  9545. # Both c and cxx compiler support -rpath directly
  9546. hardcode_libdir_flag_spec='-rpath $libdir'
  9547. fi
  9548. archive_cmds_need_lc='no'
  9549. hardcode_libdir_separator=:
  9550. ;;
  9551. solaris*)
  9552. no_undefined_flag=' -z defs'
  9553. if test yes = "$GCC"; then
  9554. wlarc='$wl'
  9555. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9556. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9557. $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'
  9558. else
  9559. case `$CC -V 2>&1` in
  9560. *"Compilers 5.0"*)
  9561. wlarc=''
  9562. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9563. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9564. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9565. ;;
  9566. *)
  9567. wlarc='$wl'
  9568. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9569. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9570. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9571. ;;
  9572. esac
  9573. fi
  9574. hardcode_libdir_flag_spec='-R$libdir'
  9575. hardcode_shlibpath_var=no
  9576. case $host_os in
  9577. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9578. *)
  9579. # The compiler driver will combine and reorder linker options,
  9580. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9581. # but is careful enough not to reorder.
  9582. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9583. if test yes = "$GCC"; then
  9584. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9585. else
  9586. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9587. fi
  9588. ;;
  9589. esac
  9590. link_all_deplibs=yes
  9591. ;;
  9592. sunos4*)
  9593. if test sequent = "$host_vendor"; then
  9594. # Use $CC to link under sequent, because it throws in some extra .o
  9595. # files that make .init and .fini sections work.
  9596. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9597. else
  9598. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9599. fi
  9600. hardcode_libdir_flag_spec='-L$libdir'
  9601. hardcode_direct=yes
  9602. hardcode_minus_L=yes
  9603. hardcode_shlibpath_var=no
  9604. ;;
  9605. sysv4)
  9606. case $host_vendor in
  9607. sni)
  9608. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9609. hardcode_direct=yes # is this really true???
  9610. ;;
  9611. siemens)
  9612. ## LD is ld it makes a PLAMLIB
  9613. ## CC just makes a GrossModule.
  9614. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9615. reload_cmds='$CC -r -o $output$reload_objs'
  9616. hardcode_direct=no
  9617. ;;
  9618. motorola)
  9619. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9620. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9621. ;;
  9622. esac
  9623. runpath_var='LD_RUN_PATH'
  9624. hardcode_shlibpath_var=no
  9625. ;;
  9626. sysv4.3*)
  9627. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9628. hardcode_shlibpath_var=no
  9629. export_dynamic_flag_spec='-Bexport'
  9630. ;;
  9631. sysv4*MP*)
  9632. if test -d /usr/nec; then
  9633. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9634. hardcode_shlibpath_var=no
  9635. runpath_var=LD_RUN_PATH
  9636. hardcode_runpath_var=yes
  9637. ld_shlibs=yes
  9638. fi
  9639. ;;
  9640. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9641. no_undefined_flag='$wl-z,text'
  9642. archive_cmds_need_lc=no
  9643. hardcode_shlibpath_var=no
  9644. runpath_var='LD_RUN_PATH'
  9645. if test yes = "$GCC"; then
  9646. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9647. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9648. else
  9649. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9650. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9651. fi
  9652. ;;
  9653. sysv5* | sco3.2v5* | sco5v6*)
  9654. # Note: We CANNOT use -z defs as we might desire, because we do not
  9655. # link with -lc, and that would cause any symbols used from libc to
  9656. # always be unresolved, which means just about no library would
  9657. # ever link correctly. If we're not using GNU ld we use -z text
  9658. # though, which does catch some bad symbols but isn't as heavy-handed
  9659. # as -z defs.
  9660. no_undefined_flag='$wl-z,text'
  9661. allow_undefined_flag='$wl-z,nodefs'
  9662. archive_cmds_need_lc=no
  9663. hardcode_shlibpath_var=no
  9664. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9665. hardcode_libdir_separator=':'
  9666. link_all_deplibs=yes
  9667. export_dynamic_flag_spec='$wl-Bexport'
  9668. runpath_var='LD_RUN_PATH'
  9669. if test yes = "$GCC"; then
  9670. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9671. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9672. else
  9673. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9674. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9675. fi
  9676. ;;
  9677. uts4*)
  9678. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9679. hardcode_libdir_flag_spec='-L$libdir'
  9680. hardcode_shlibpath_var=no
  9681. ;;
  9682. *)
  9683. ld_shlibs=no
  9684. ;;
  9685. esac
  9686. if test sni = "$host_vendor"; then
  9687. case $host in
  9688. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9689. export_dynamic_flag_spec='$wl-Blargedynsym'
  9690. ;;
  9691. esac
  9692. fi
  9693. fi
  9694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9695. printf "%s\n" "$ld_shlibs" >&6; }
  9696. test no = "$ld_shlibs" && can_build_shared=no
  9697. with_gnu_ld=$with_gnu_ld
  9698. #
  9699. # Do we need to explicitly link libc?
  9700. #
  9701. case "x$archive_cmds_need_lc" in
  9702. x|xyes)
  9703. # Assume -lc should be added
  9704. archive_cmds_need_lc=yes
  9705. if test yes,yes = "$GCC,$enable_shared"; then
  9706. case $archive_cmds in
  9707. *'~'*)
  9708. # FIXME: we may have to deal with multi-command sequences.
  9709. ;;
  9710. '$CC '*)
  9711. # Test whether the compiler implicitly links with -lc since on some
  9712. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9713. # to ld, don't add -lc before -lgcc.
  9714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9715. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9716. if test ${lt_cv_archive_cmds_need_lc+y}
  9717. then :
  9718. printf %s "(cached) " >&6
  9719. else $as_nop
  9720. $RM conftest*
  9721. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9722. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9723. (eval $ac_compile) 2>&5
  9724. ac_status=$?
  9725. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9726. test $ac_status = 0; } 2>conftest.err; then
  9727. soname=conftest
  9728. lib=conftest
  9729. libobjs=conftest.$ac_objext
  9730. deplibs=
  9731. wl=$lt_prog_compiler_wl
  9732. pic_flag=$lt_prog_compiler_pic
  9733. compiler_flags=-v
  9734. linker_flags=-v
  9735. verstring=
  9736. output_objdir=.
  9737. libname=conftest
  9738. lt_save_allow_undefined_flag=$allow_undefined_flag
  9739. allow_undefined_flag=
  9740. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9741. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9742. ac_status=$?
  9743. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9744. test $ac_status = 0; }
  9745. then
  9746. lt_cv_archive_cmds_need_lc=no
  9747. else
  9748. lt_cv_archive_cmds_need_lc=yes
  9749. fi
  9750. allow_undefined_flag=$lt_save_allow_undefined_flag
  9751. else
  9752. cat conftest.err 1>&5
  9753. fi
  9754. $RM conftest*
  9755. fi
  9756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9757. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9758. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9759. ;;
  9760. esac
  9761. fi
  9762. ;;
  9763. esac
  9764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9765. printf %s "checking dynamic linker characteristics... " >&6; }
  9766. if test yes = "$GCC"; then
  9767. case $host_os in
  9768. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9769. *) lt_awk_arg='/^libraries:/' ;;
  9770. esac
  9771. case $host_os in
  9772. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9773. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9774. esac
  9775. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9776. case $lt_search_path_spec in
  9777. *\;*)
  9778. # if the path contains ";" then we assume it to be the separator
  9779. # otherwise default to the standard path separator (i.e. ":") - it is
  9780. # assumed that no part of a normal pathname contains ";" but that should
  9781. # okay in the real world where ";" in dirpaths is itself problematic.
  9782. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9783. ;;
  9784. *)
  9785. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9786. ;;
  9787. esac
  9788. # Ok, now we have the path, separated by spaces, we can step through it
  9789. # and add multilib dir if necessary...
  9790. lt_tmp_lt_search_path_spec=
  9791. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9792. # ...but if some path component already ends with the multilib dir we assume
  9793. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9794. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9795. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9796. lt_multi_os_dir=
  9797. ;;
  9798. esac
  9799. for lt_sys_path in $lt_search_path_spec; do
  9800. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9801. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9802. elif test -n "$lt_multi_os_dir"; then
  9803. test -d "$lt_sys_path" && \
  9804. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9805. fi
  9806. done
  9807. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9808. BEGIN {RS = " "; FS = "/|\n";} {
  9809. lt_foo = "";
  9810. lt_count = 0;
  9811. for (lt_i = NF; lt_i > 0; lt_i--) {
  9812. if ($lt_i != "" && $lt_i != ".") {
  9813. if ($lt_i == "..") {
  9814. lt_count++;
  9815. } else {
  9816. if (lt_count == 0) {
  9817. lt_foo = "/" $lt_i lt_foo;
  9818. } else {
  9819. lt_count--;
  9820. }
  9821. }
  9822. }
  9823. }
  9824. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9825. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9826. }'`
  9827. # AWK program above erroneously prepends '/' to C:/dos/paths
  9828. # for these hosts.
  9829. case $host_os in
  9830. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9831. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9832. esac
  9833. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9834. else
  9835. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9836. fi
  9837. library_names_spec=
  9838. libname_spec='lib$name'
  9839. soname_spec=
  9840. shrext_cmds=.so
  9841. postinstall_cmds=
  9842. postuninstall_cmds=
  9843. finish_cmds=
  9844. finish_eval=
  9845. shlibpath_var=
  9846. shlibpath_overrides_runpath=unknown
  9847. version_type=none
  9848. dynamic_linker="$host_os ld.so"
  9849. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9850. need_lib_prefix=unknown
  9851. hardcode_into_libs=no
  9852. # when you set need_version to no, make sure it does not cause -set_version
  9853. # flags to be left without arguments
  9854. need_version=unknown
  9855. case $host_os in
  9856. aix3*)
  9857. version_type=linux # correct to gnu/linux during the next big refactor
  9858. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9859. shlibpath_var=LIBPATH
  9860. # AIX 3 has no versioning support, so we append a major version to the name.
  9861. soname_spec='$libname$release$shared_ext$major'
  9862. ;;
  9863. aix[4-9]*)
  9864. version_type=linux # correct to gnu/linux during the next big refactor
  9865. need_lib_prefix=no
  9866. need_version=no
  9867. hardcode_into_libs=yes
  9868. if test ia64 = "$host_cpu"; then
  9869. # AIX 5 supports IA64
  9870. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9871. shlibpath_var=LD_LIBRARY_PATH
  9872. else
  9873. # With GCC up to 2.95.x, collect2 would create an import file
  9874. # for dependence libraries. The import file would start with
  9875. # the line '#! .'. This would cause the generated library to
  9876. # depend on '.', always an invalid library. This was fixed in
  9877. # development snapshots of GCC prior to 3.0.
  9878. case $host_os in
  9879. aix4 | aix4.[01] | aix4.[01].*)
  9880. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9881. echo ' yes '
  9882. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9883. :
  9884. else
  9885. can_build_shared=no
  9886. fi
  9887. ;;
  9888. esac
  9889. # Using Import Files as archive members, it is possible to support
  9890. # filename-based versioning of shared library archives on AIX. While
  9891. # this would work for both with and without runtime linking, it will
  9892. # prevent static linking of such archives. So we do filename-based
  9893. # shared library versioning with .so extension only, which is used
  9894. # when both runtime linking and shared linking is enabled.
  9895. # Unfortunately, runtime linking may impact performance, so we do
  9896. # not want this to be the default eventually. Also, we use the
  9897. # versioned .so libs for executables only if there is the -brtl
  9898. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9899. # To allow for filename-based versioning support, we need to create
  9900. # libNAME.so.V as an archive file, containing:
  9901. # *) an Import File, referring to the versioned filename of the
  9902. # archive as well as the shared archive member, telling the
  9903. # bitwidth (32 or 64) of that shared object, and providing the
  9904. # list of exported symbols of that shared object, eventually
  9905. # decorated with the 'weak' keyword
  9906. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9907. # it being seen by the linker.
  9908. # At run time we better use the real file rather than another symlink,
  9909. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9910. case $with_aix_soname,$aix_use_runtimelinking in
  9911. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9912. # soname into executable. Probably we can add versioning support to
  9913. # collect2, so additional links can be useful in future.
  9914. aix,yes) # traditional libtool
  9915. dynamic_linker='AIX unversionable lib.so'
  9916. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9917. # instead of lib<name>.a to let people know that these are not
  9918. # typical AIX shared libraries.
  9919. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9920. ;;
  9921. aix,no) # traditional AIX only
  9922. dynamic_linker='AIX lib.a(lib.so.V)'
  9923. # We preserve .a as extension for shared libraries through AIX4.2
  9924. # and later when we are not doing run time linking.
  9925. library_names_spec='$libname$release.a $libname.a'
  9926. soname_spec='$libname$release$shared_ext$major'
  9927. ;;
  9928. svr4,*) # full svr4 only
  9929. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9930. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9931. # We do not specify a path in Import Files, so LIBPATH fires.
  9932. shlibpath_overrides_runpath=yes
  9933. ;;
  9934. *,yes) # both, prefer svr4
  9935. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9936. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9937. # unpreferred sharedlib libNAME.a needs extra handling
  9938. 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"'
  9939. 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"'
  9940. # We do not specify a path in Import Files, so LIBPATH fires.
  9941. shlibpath_overrides_runpath=yes
  9942. ;;
  9943. *,no) # both, prefer aix
  9944. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9945. library_names_spec='$libname$release.a $libname.a'
  9946. soname_spec='$libname$release$shared_ext$major'
  9947. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9948. 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)'
  9949. 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"'
  9950. ;;
  9951. esac
  9952. shlibpath_var=LIBPATH
  9953. fi
  9954. ;;
  9955. amigaos*)
  9956. case $host_cpu in
  9957. powerpc)
  9958. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9959. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9960. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9961. ;;
  9962. m68k)
  9963. library_names_spec='$libname.ixlibrary $libname.a'
  9964. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9965. 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'
  9966. ;;
  9967. esac
  9968. ;;
  9969. beos*)
  9970. library_names_spec='$libname$shared_ext'
  9971. dynamic_linker="$host_os ld.so"
  9972. shlibpath_var=LIBRARY_PATH
  9973. ;;
  9974. bsdi[45]*)
  9975. version_type=linux # correct to gnu/linux during the next big refactor
  9976. need_version=no
  9977. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9978. soname_spec='$libname$release$shared_ext$major'
  9979. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9980. shlibpath_var=LD_LIBRARY_PATH
  9981. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9982. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9983. # the default ld.so.conf also contains /usr/contrib/lib and
  9984. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9985. # libtool to hard-code these into programs
  9986. ;;
  9987. cygwin* | mingw* | pw32* | cegcc*)
  9988. version_type=windows
  9989. shrext_cmds=.dll
  9990. need_version=no
  9991. need_lib_prefix=no
  9992. case $GCC,$cc_basename in
  9993. yes,*)
  9994. # gcc
  9995. library_names_spec='$libname.dll.a'
  9996. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9997. postinstall_cmds='base_file=`basename \$file`~
  9998. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9999. dldir=$destdir/`dirname \$dlpath`~
  10000. test -d \$dldir || mkdir -p \$dldir~
  10001. $install_prog $dir/$dlname \$dldir/$dlname~
  10002. chmod a+x \$dldir/$dlname~
  10003. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10004. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10005. fi'
  10006. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10007. dlpath=$dir/\$dldll~
  10008. $RM \$dlpath'
  10009. shlibpath_overrides_runpath=yes
  10010. case $host_os in
  10011. cygwin*)
  10012. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10013. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10014. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10015. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10016. ;;
  10017. mingw* | cegcc*)
  10018. # MinGW DLLs use traditional 'lib' prefix
  10019. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10020. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10021. ;;
  10022. pw32*)
  10023. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10024. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10025. ;;
  10026. esac
  10027. dynamic_linker='Win32 ld.exe'
  10028. ;;
  10029. *,cl*)
  10030. # Native MSVC
  10031. libname_spec='$name'
  10032. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10033. library_names_spec='$libname.dll.lib'
  10034. case $build_os in
  10035. mingw*)
  10036. sys_lib_search_path_spec=
  10037. lt_save_ifs=$IFS
  10038. IFS=';'
  10039. for lt_path in $LIB
  10040. do
  10041. IFS=$lt_save_ifs
  10042. # Let DOS variable expansion print the short 8.3 style file name.
  10043. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10044. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10045. done
  10046. IFS=$lt_save_ifs
  10047. # Convert to MSYS style.
  10048. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10049. ;;
  10050. cygwin*)
  10051. # Convert to unix form, then to dos form, then back to unix form
  10052. # but this time dos style (no spaces!) so that the unix form looks
  10053. # like /cygdrive/c/PROGRA~1:/cygdr...
  10054. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10055. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10056. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10057. ;;
  10058. *)
  10059. sys_lib_search_path_spec=$LIB
  10060. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10061. # It is most probably a Windows format PATH.
  10062. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10063. else
  10064. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10065. fi
  10066. # FIXME: find the short name or the path components, as spaces are
  10067. # common. (e.g. "Program Files" -> "PROGRA~1")
  10068. ;;
  10069. esac
  10070. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10071. postinstall_cmds='base_file=`basename \$file`~
  10072. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10073. dldir=$destdir/`dirname \$dlpath`~
  10074. test -d \$dldir || mkdir -p \$dldir~
  10075. $install_prog $dir/$dlname \$dldir/$dlname'
  10076. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10077. dlpath=$dir/\$dldll~
  10078. $RM \$dlpath'
  10079. shlibpath_overrides_runpath=yes
  10080. dynamic_linker='Win32 link.exe'
  10081. ;;
  10082. *)
  10083. # Assume MSVC wrapper
  10084. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10085. dynamic_linker='Win32 ld.exe'
  10086. ;;
  10087. esac
  10088. # FIXME: first we should search . and the directory the executable is in
  10089. shlibpath_var=PATH
  10090. ;;
  10091. darwin* | rhapsody*)
  10092. dynamic_linker="$host_os dyld"
  10093. version_type=darwin
  10094. need_lib_prefix=no
  10095. need_version=no
  10096. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10097. soname_spec='$libname$release$major$shared_ext'
  10098. shlibpath_overrides_runpath=yes
  10099. shlibpath_var=DYLD_LIBRARY_PATH
  10100. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10101. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10102. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10103. ;;
  10104. dgux*)
  10105. version_type=linux # correct to gnu/linux during the next big refactor
  10106. need_lib_prefix=no
  10107. need_version=no
  10108. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10109. soname_spec='$libname$release$shared_ext$major'
  10110. shlibpath_var=LD_LIBRARY_PATH
  10111. ;;
  10112. freebsd* | dragonfly* | midnightbsd*)
  10113. # DragonFly does not have aout. When/if they implement a new
  10114. # versioning mechanism, adjust this.
  10115. if test -x /usr/bin/objformat; then
  10116. objformat=`/usr/bin/objformat`
  10117. else
  10118. case $host_os in
  10119. freebsd[23].*) objformat=aout ;;
  10120. *) objformat=elf ;;
  10121. esac
  10122. fi
  10123. version_type=freebsd-$objformat
  10124. case $version_type in
  10125. freebsd-elf*)
  10126. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10127. soname_spec='$libname$release$shared_ext$major'
  10128. need_version=no
  10129. need_lib_prefix=no
  10130. ;;
  10131. freebsd-*)
  10132. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10133. need_version=yes
  10134. ;;
  10135. esac
  10136. shlibpath_var=LD_LIBRARY_PATH
  10137. case $host_os in
  10138. freebsd2.*)
  10139. shlibpath_overrides_runpath=yes
  10140. ;;
  10141. freebsd3.[01]* | freebsdelf3.[01]*)
  10142. shlibpath_overrides_runpath=yes
  10143. hardcode_into_libs=yes
  10144. ;;
  10145. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10146. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10147. shlibpath_overrides_runpath=no
  10148. hardcode_into_libs=yes
  10149. ;;
  10150. *) # from 4.6 on, and DragonFly
  10151. shlibpath_overrides_runpath=yes
  10152. hardcode_into_libs=yes
  10153. ;;
  10154. esac
  10155. ;;
  10156. haiku*)
  10157. version_type=linux # correct to gnu/linux during the next big refactor
  10158. need_lib_prefix=no
  10159. need_version=no
  10160. dynamic_linker="$host_os runtime_loader"
  10161. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10162. soname_spec='$libname$release$shared_ext$major'
  10163. shlibpath_var=LIBRARY_PATH
  10164. shlibpath_overrides_runpath=no
  10165. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10166. hardcode_into_libs=yes
  10167. ;;
  10168. hpux9* | hpux10* | hpux11*)
  10169. # Give a soname corresponding to the major version so that dld.sl refuses to
  10170. # link against other versions.
  10171. version_type=sunos
  10172. need_lib_prefix=no
  10173. need_version=no
  10174. case $host_cpu in
  10175. ia64*)
  10176. shrext_cmds='.so'
  10177. hardcode_into_libs=yes
  10178. dynamic_linker="$host_os dld.so"
  10179. shlibpath_var=LD_LIBRARY_PATH
  10180. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10181. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10182. soname_spec='$libname$release$shared_ext$major'
  10183. if test 32 = "$HPUX_IA64_MODE"; then
  10184. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10185. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10186. else
  10187. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10188. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10189. fi
  10190. ;;
  10191. hppa*64*)
  10192. shrext_cmds='.sl'
  10193. hardcode_into_libs=yes
  10194. dynamic_linker="$host_os dld.sl"
  10195. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10196. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10197. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10198. soname_spec='$libname$release$shared_ext$major'
  10199. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10200. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10201. ;;
  10202. *)
  10203. shrext_cmds='.sl'
  10204. dynamic_linker="$host_os dld.sl"
  10205. shlibpath_var=SHLIB_PATH
  10206. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10207. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10208. soname_spec='$libname$release$shared_ext$major'
  10209. ;;
  10210. esac
  10211. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10212. postinstall_cmds='chmod 555 $lib'
  10213. # or fails outright, so override atomically:
  10214. install_override_mode=555
  10215. ;;
  10216. interix[3-9]*)
  10217. version_type=linux # correct to gnu/linux during the next big refactor
  10218. need_lib_prefix=no
  10219. need_version=no
  10220. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10221. soname_spec='$libname$release$shared_ext$major'
  10222. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10223. shlibpath_var=LD_LIBRARY_PATH
  10224. shlibpath_overrides_runpath=no
  10225. hardcode_into_libs=yes
  10226. ;;
  10227. irix5* | irix6* | nonstopux*)
  10228. case $host_os in
  10229. nonstopux*) version_type=nonstopux ;;
  10230. *)
  10231. if test yes = "$lt_cv_prog_gnu_ld"; then
  10232. version_type=linux # correct to gnu/linux during the next big refactor
  10233. else
  10234. version_type=irix
  10235. fi ;;
  10236. esac
  10237. need_lib_prefix=no
  10238. need_version=no
  10239. soname_spec='$libname$release$shared_ext$major'
  10240. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10241. case $host_os in
  10242. irix5* | nonstopux*)
  10243. libsuff= shlibsuff=
  10244. ;;
  10245. *)
  10246. case $LD in # libtool.m4 will add one of these switches to LD
  10247. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10248. libsuff= shlibsuff= libmagic=32-bit;;
  10249. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10250. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10251. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10252. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10253. *) libsuff= shlibsuff= libmagic=never-match;;
  10254. esac
  10255. ;;
  10256. esac
  10257. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10258. shlibpath_overrides_runpath=no
  10259. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10260. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10261. hardcode_into_libs=yes
  10262. ;;
  10263. # No shared lib support for Linux oldld, aout, or coff.
  10264. linux*oldld* | linux*aout* | linux*coff*)
  10265. dynamic_linker=no
  10266. ;;
  10267. linux*android*)
  10268. version_type=none # Android doesn't support versioned libraries.
  10269. need_lib_prefix=no
  10270. need_version=no
  10271. library_names_spec='$libname$release$shared_ext'
  10272. soname_spec='$libname$release$shared_ext'
  10273. finish_cmds=
  10274. shlibpath_var=LD_LIBRARY_PATH
  10275. shlibpath_overrides_runpath=yes
  10276. # This implies no fast_install, which is unacceptable.
  10277. # Some rework will be needed to allow for fast_install
  10278. # before this can be enabled.
  10279. hardcode_into_libs=yes
  10280. dynamic_linker='Android linker'
  10281. # Don't embed -rpath directories since the linker doesn't support them.
  10282. hardcode_libdir_flag_spec='-L$libdir'
  10283. ;;
  10284. # This must be glibc/ELF.
  10285. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10286. version_type=linux # correct to gnu/linux during the next big refactor
  10287. need_lib_prefix=no
  10288. need_version=no
  10289. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10290. soname_spec='$libname$release$shared_ext$major'
  10291. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10292. shlibpath_var=LD_LIBRARY_PATH
  10293. shlibpath_overrides_runpath=no
  10294. # Some binutils ld are patched to set DT_RUNPATH
  10295. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10296. then :
  10297. printf %s "(cached) " >&6
  10298. else $as_nop
  10299. lt_cv_shlibpath_overrides_runpath=no
  10300. save_LDFLAGS=$LDFLAGS
  10301. save_libdir=$libdir
  10302. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10303. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10305. /* end confdefs.h. */
  10306. int
  10307. main (void)
  10308. {
  10309. ;
  10310. return 0;
  10311. }
  10312. _ACEOF
  10313. if ac_fn_c_try_link "$LINENO"
  10314. then :
  10315. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10316. then :
  10317. lt_cv_shlibpath_overrides_runpath=yes
  10318. fi
  10319. fi
  10320. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10321. conftest$ac_exeext conftest.$ac_ext
  10322. LDFLAGS=$save_LDFLAGS
  10323. libdir=$save_libdir
  10324. fi
  10325. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10326. # This implies no fast_install, which is unacceptable.
  10327. # Some rework will be needed to allow for fast_install
  10328. # before this can be enabled.
  10329. hardcode_into_libs=yes
  10330. # Add ABI-specific directories to the system library path.
  10331. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10332. # Ideally, we could use ldconfig to report *all* directores which are
  10333. # searched for libraries, however this is still not possible. Aside from not
  10334. # being certain /sbin/ldconfig is available, command
  10335. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10336. # even though it is searched at run-time. Try to do the best guess by
  10337. # appending ld.so.conf contents (and includes) to the search path.
  10338. if test -f /etc/ld.so.conf; then
  10339. 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' ' '`
  10340. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10341. fi
  10342. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10343. # powerpc, because MkLinux only supported shared libraries with the
  10344. # GNU dynamic linker. Since this was broken with cross compilers,
  10345. # most powerpc-linux boxes support dynamic linking these days and
  10346. # people can always --disable-shared, the test was removed, and we
  10347. # assume the GNU/Linux dynamic linker is in use.
  10348. dynamic_linker='GNU/Linux ld.so'
  10349. ;;
  10350. netbsd*)
  10351. version_type=sunos
  10352. need_lib_prefix=no
  10353. need_version=no
  10354. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10355. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10356. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10357. dynamic_linker='NetBSD (a.out) ld.so'
  10358. else
  10359. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10360. soname_spec='$libname$release$shared_ext$major'
  10361. dynamic_linker='NetBSD ld.elf_so'
  10362. fi
  10363. shlibpath_var=LD_LIBRARY_PATH
  10364. shlibpath_overrides_runpath=yes
  10365. hardcode_into_libs=yes
  10366. ;;
  10367. newsos6)
  10368. version_type=linux # correct to gnu/linux during the next big refactor
  10369. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10370. shlibpath_var=LD_LIBRARY_PATH
  10371. shlibpath_overrides_runpath=yes
  10372. ;;
  10373. *nto* | *qnx*)
  10374. version_type=qnx
  10375. need_lib_prefix=no
  10376. need_version=no
  10377. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10378. soname_spec='$libname$release$shared_ext$major'
  10379. shlibpath_var=LD_LIBRARY_PATH
  10380. shlibpath_overrides_runpath=no
  10381. hardcode_into_libs=yes
  10382. dynamic_linker='ldqnx.so'
  10383. ;;
  10384. openbsd* | bitrig*)
  10385. version_type=sunos
  10386. sys_lib_dlsearch_path_spec=/usr/lib
  10387. need_lib_prefix=no
  10388. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10389. need_version=no
  10390. else
  10391. need_version=yes
  10392. fi
  10393. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10394. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10395. shlibpath_var=LD_LIBRARY_PATH
  10396. shlibpath_overrides_runpath=yes
  10397. ;;
  10398. os2*)
  10399. libname_spec='$name'
  10400. shrext_cmds=.dll
  10401. need_lib_prefix=no
  10402. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10403. # SDL customization: removed versioning support.
  10404. # version_type=windows
  10405. # need_version=no
  10406. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10407. # v=$($ECHO $release$versuffix | tr -d .-);
  10408. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10409. # $ECHO $n$v`$shared_ext'
  10410. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10411. library_names_spec='${libname}_dll.$libext'
  10412. dynamic_linker='OS/2 ld.exe'
  10413. shlibpath_var=BEGINLIBPATH
  10414. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10415. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10416. postinstall_cmds='base_file=`basename \$file`~
  10417. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10418. dldir=$destdir/`dirname \$dlpath`~
  10419. test -d \$dldir || mkdir -p \$dldir~
  10420. $install_prog $dir/$dlname \$dldir/$dlname~
  10421. chmod a+x \$dldir/$dlname~
  10422. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10423. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10424. fi'
  10425. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10426. dlpath=$dir/\$dldll~
  10427. $RM \$dlpath'
  10428. ;;
  10429. osf3* | osf4* | osf5*)
  10430. version_type=osf
  10431. need_lib_prefix=no
  10432. need_version=no
  10433. soname_spec='$libname$release$shared_ext$major'
  10434. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10435. shlibpath_var=LD_LIBRARY_PATH
  10436. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10437. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10438. ;;
  10439. rdos*)
  10440. dynamic_linker=no
  10441. ;;
  10442. solaris*)
  10443. version_type=linux # correct to gnu/linux during the next big refactor
  10444. need_lib_prefix=no
  10445. need_version=no
  10446. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10447. soname_spec='$libname$release$shared_ext$major'
  10448. shlibpath_var=LD_LIBRARY_PATH
  10449. shlibpath_overrides_runpath=yes
  10450. hardcode_into_libs=yes
  10451. # ldd complains unless libraries are executable
  10452. postinstall_cmds='chmod +x $lib'
  10453. ;;
  10454. sunos4*)
  10455. version_type=sunos
  10456. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10457. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10458. shlibpath_var=LD_LIBRARY_PATH
  10459. shlibpath_overrides_runpath=yes
  10460. if test yes = "$with_gnu_ld"; then
  10461. need_lib_prefix=no
  10462. fi
  10463. need_version=yes
  10464. ;;
  10465. sysv4 | sysv4.3*)
  10466. version_type=linux # correct to gnu/linux during the next big refactor
  10467. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10468. soname_spec='$libname$release$shared_ext$major'
  10469. shlibpath_var=LD_LIBRARY_PATH
  10470. case $host_vendor in
  10471. sni)
  10472. shlibpath_overrides_runpath=no
  10473. need_lib_prefix=no
  10474. runpath_var=LD_RUN_PATH
  10475. ;;
  10476. siemens)
  10477. need_lib_prefix=no
  10478. ;;
  10479. motorola)
  10480. need_lib_prefix=no
  10481. need_version=no
  10482. shlibpath_overrides_runpath=no
  10483. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10484. ;;
  10485. esac
  10486. ;;
  10487. sysv4*MP*)
  10488. if test -d /usr/nec; then
  10489. version_type=linux # correct to gnu/linux during the next big refactor
  10490. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10491. soname_spec='$libname$shared_ext.$major'
  10492. shlibpath_var=LD_LIBRARY_PATH
  10493. fi
  10494. ;;
  10495. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10496. version_type=sco
  10497. need_lib_prefix=no
  10498. need_version=no
  10499. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10500. soname_spec='$libname$release$shared_ext$major'
  10501. shlibpath_var=LD_LIBRARY_PATH
  10502. shlibpath_overrides_runpath=yes
  10503. hardcode_into_libs=yes
  10504. if test yes = "$with_gnu_ld"; then
  10505. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10506. else
  10507. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10508. case $host_os in
  10509. sco3.2v5*)
  10510. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10511. ;;
  10512. esac
  10513. fi
  10514. sys_lib_dlsearch_path_spec='/usr/lib'
  10515. ;;
  10516. tpf*)
  10517. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10518. version_type=linux # correct to gnu/linux during the next big refactor
  10519. need_lib_prefix=no
  10520. need_version=no
  10521. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10522. shlibpath_var=LD_LIBRARY_PATH
  10523. shlibpath_overrides_runpath=no
  10524. hardcode_into_libs=yes
  10525. ;;
  10526. uts4*)
  10527. version_type=linux # correct to gnu/linux during the next big refactor
  10528. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10529. soname_spec='$libname$release$shared_ext$major'
  10530. shlibpath_var=LD_LIBRARY_PATH
  10531. ;;
  10532. *)
  10533. dynamic_linker=no
  10534. ;;
  10535. esac
  10536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10537. printf "%s\n" "$dynamic_linker" >&6; }
  10538. test no = "$dynamic_linker" && can_build_shared=no
  10539. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10540. if test yes = "$GCC"; then
  10541. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10542. fi
  10543. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10544. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10545. fi
  10546. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10547. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10548. fi
  10549. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10550. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10551. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10552. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10553. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10554. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10556. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10557. hardcode_action=
  10558. if test -n "$hardcode_libdir_flag_spec" ||
  10559. test -n "$runpath_var" ||
  10560. test yes = "$hardcode_automatic"; then
  10561. # We can hardcode non-existent directories.
  10562. if test no != "$hardcode_direct" &&
  10563. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10564. # have to relink, otherwise we might link with an installed library
  10565. # when we should be linking with a yet-to-be-installed one
  10566. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10567. test no != "$hardcode_minus_L"; then
  10568. # Linking always hardcodes the temporary library directory.
  10569. hardcode_action=relink
  10570. else
  10571. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10572. hardcode_action=immediate
  10573. fi
  10574. else
  10575. # We cannot hardcode anything, or else we can only hardcode existing
  10576. # directories.
  10577. hardcode_action=unsupported
  10578. fi
  10579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10580. printf "%s\n" "$hardcode_action" >&6; }
  10581. if test relink = "$hardcode_action" ||
  10582. test yes = "$inherit_rpath"; then
  10583. # Fast installation is not supported
  10584. enable_fast_install=no
  10585. elif test yes = "$shlibpath_overrides_runpath" ||
  10586. test no = "$enable_shared"; then
  10587. # Fast installation is not necessary
  10588. enable_fast_install=needless
  10589. fi
  10590. if test yes != "$enable_dlopen"; then
  10591. enable_dlopen=unknown
  10592. enable_dlopen_self=unknown
  10593. enable_dlopen_self_static=unknown
  10594. else
  10595. lt_cv_dlopen=no
  10596. lt_cv_dlopen_libs=
  10597. case $host_os in
  10598. beos*)
  10599. lt_cv_dlopen=load_add_on
  10600. lt_cv_dlopen_libs=
  10601. lt_cv_dlopen_self=yes
  10602. ;;
  10603. mingw* | pw32* | cegcc*)
  10604. lt_cv_dlopen=LoadLibrary
  10605. lt_cv_dlopen_libs=
  10606. ;;
  10607. cygwin*)
  10608. lt_cv_dlopen=dlopen
  10609. lt_cv_dlopen_libs=
  10610. ;;
  10611. darwin*)
  10612. # if libdl is installed we need to link against it
  10613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10614. printf %s "checking for dlopen in -ldl... " >&6; }
  10615. if test ${ac_cv_lib_dl_dlopen+y}
  10616. then :
  10617. printf %s "(cached) " >&6
  10618. else $as_nop
  10619. ac_check_lib_save_LIBS=$LIBS
  10620. LIBS="-ldl $LIBS"
  10621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10622. /* end confdefs.h. */
  10623. /* Override any GCC internal prototype to avoid an error.
  10624. Use char because int might match the return type of a GCC
  10625. builtin and then its argument prototype would still apply. */
  10626. char dlopen ();
  10627. int
  10628. main (void)
  10629. {
  10630. return dlopen ();
  10631. ;
  10632. return 0;
  10633. }
  10634. _ACEOF
  10635. if ac_fn_c_try_link "$LINENO"
  10636. then :
  10637. ac_cv_lib_dl_dlopen=yes
  10638. else $as_nop
  10639. ac_cv_lib_dl_dlopen=no
  10640. fi
  10641. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10642. conftest$ac_exeext conftest.$ac_ext
  10643. LIBS=$ac_check_lib_save_LIBS
  10644. fi
  10645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10646. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10647. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10648. then :
  10649. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10650. else $as_nop
  10651. lt_cv_dlopen=dyld
  10652. lt_cv_dlopen_libs=
  10653. lt_cv_dlopen_self=yes
  10654. fi
  10655. ;;
  10656. tpf*)
  10657. # Don't try to run any link tests for TPF. We know it's impossible
  10658. # because TPF is a cross-compiler, and we know how we open DSOs.
  10659. lt_cv_dlopen=dlopen
  10660. lt_cv_dlopen_libs=
  10661. lt_cv_dlopen_self=no
  10662. ;;
  10663. *)
  10664. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10665. if test "x$ac_cv_func_shl_load" = xyes
  10666. then :
  10667. lt_cv_dlopen=shl_load
  10668. else $as_nop
  10669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10670. printf %s "checking for shl_load in -ldld... " >&6; }
  10671. if test ${ac_cv_lib_dld_shl_load+y}
  10672. then :
  10673. printf %s "(cached) " >&6
  10674. else $as_nop
  10675. ac_check_lib_save_LIBS=$LIBS
  10676. LIBS="-ldld $LIBS"
  10677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10678. /* end confdefs.h. */
  10679. /* Override any GCC internal prototype to avoid an error.
  10680. Use char because int might match the return type of a GCC
  10681. builtin and then its argument prototype would still apply. */
  10682. char shl_load ();
  10683. int
  10684. main (void)
  10685. {
  10686. return shl_load ();
  10687. ;
  10688. return 0;
  10689. }
  10690. _ACEOF
  10691. if ac_fn_c_try_link "$LINENO"
  10692. then :
  10693. ac_cv_lib_dld_shl_load=yes
  10694. else $as_nop
  10695. ac_cv_lib_dld_shl_load=no
  10696. fi
  10697. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10698. conftest$ac_exeext conftest.$ac_ext
  10699. LIBS=$ac_check_lib_save_LIBS
  10700. fi
  10701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10702. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10703. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10704. then :
  10705. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10706. else $as_nop
  10707. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10708. if test "x$ac_cv_func_dlopen" = xyes
  10709. then :
  10710. lt_cv_dlopen=dlopen
  10711. else $as_nop
  10712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10713. printf %s "checking for dlopen in -ldl... " >&6; }
  10714. if test ${ac_cv_lib_dl_dlopen+y}
  10715. then :
  10716. printf %s "(cached) " >&6
  10717. else $as_nop
  10718. ac_check_lib_save_LIBS=$LIBS
  10719. LIBS="-ldl $LIBS"
  10720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10721. /* end confdefs.h. */
  10722. /* Override any GCC internal prototype to avoid an error.
  10723. Use char because int might match the return type of a GCC
  10724. builtin and then its argument prototype would still apply. */
  10725. char dlopen ();
  10726. int
  10727. main (void)
  10728. {
  10729. return dlopen ();
  10730. ;
  10731. return 0;
  10732. }
  10733. _ACEOF
  10734. if ac_fn_c_try_link "$LINENO"
  10735. then :
  10736. ac_cv_lib_dl_dlopen=yes
  10737. else $as_nop
  10738. ac_cv_lib_dl_dlopen=no
  10739. fi
  10740. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10741. conftest$ac_exeext conftest.$ac_ext
  10742. LIBS=$ac_check_lib_save_LIBS
  10743. fi
  10744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10745. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10746. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10747. then :
  10748. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10749. else $as_nop
  10750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10751. printf %s "checking for dlopen in -lsvld... " >&6; }
  10752. if test ${ac_cv_lib_svld_dlopen+y}
  10753. then :
  10754. printf %s "(cached) " >&6
  10755. else $as_nop
  10756. ac_check_lib_save_LIBS=$LIBS
  10757. LIBS="-lsvld $LIBS"
  10758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10759. /* end confdefs.h. */
  10760. /* Override any GCC internal prototype to avoid an error.
  10761. Use char because int might match the return type of a GCC
  10762. builtin and then its argument prototype would still apply. */
  10763. char dlopen ();
  10764. int
  10765. main (void)
  10766. {
  10767. return dlopen ();
  10768. ;
  10769. return 0;
  10770. }
  10771. _ACEOF
  10772. if ac_fn_c_try_link "$LINENO"
  10773. then :
  10774. ac_cv_lib_svld_dlopen=yes
  10775. else $as_nop
  10776. ac_cv_lib_svld_dlopen=no
  10777. fi
  10778. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10779. conftest$ac_exeext conftest.$ac_ext
  10780. LIBS=$ac_check_lib_save_LIBS
  10781. fi
  10782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10783. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10784. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10785. then :
  10786. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10787. else $as_nop
  10788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10789. printf %s "checking for dld_link in -ldld... " >&6; }
  10790. if test ${ac_cv_lib_dld_dld_link+y}
  10791. then :
  10792. printf %s "(cached) " >&6
  10793. else $as_nop
  10794. ac_check_lib_save_LIBS=$LIBS
  10795. LIBS="-ldld $LIBS"
  10796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10797. /* end confdefs.h. */
  10798. /* Override any GCC internal prototype to avoid an error.
  10799. Use char because int might match the return type of a GCC
  10800. builtin and then its argument prototype would still apply. */
  10801. char dld_link ();
  10802. int
  10803. main (void)
  10804. {
  10805. return dld_link ();
  10806. ;
  10807. return 0;
  10808. }
  10809. _ACEOF
  10810. if ac_fn_c_try_link "$LINENO"
  10811. then :
  10812. ac_cv_lib_dld_dld_link=yes
  10813. else $as_nop
  10814. ac_cv_lib_dld_dld_link=no
  10815. fi
  10816. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10817. conftest$ac_exeext conftest.$ac_ext
  10818. LIBS=$ac_check_lib_save_LIBS
  10819. fi
  10820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10821. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10822. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10823. then :
  10824. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10825. fi
  10826. fi
  10827. fi
  10828. fi
  10829. fi
  10830. fi
  10831. ;;
  10832. esac
  10833. if test no = "$lt_cv_dlopen"; then
  10834. enable_dlopen=no
  10835. else
  10836. enable_dlopen=yes
  10837. fi
  10838. case $lt_cv_dlopen in
  10839. dlopen)
  10840. save_CPPFLAGS=$CPPFLAGS
  10841. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10842. save_LDFLAGS=$LDFLAGS
  10843. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10844. save_LIBS=$LIBS
  10845. LIBS="$lt_cv_dlopen_libs $LIBS"
  10846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10847. printf %s "checking whether a program can dlopen itself... " >&6; }
  10848. if test ${lt_cv_dlopen_self+y}
  10849. then :
  10850. printf %s "(cached) " >&6
  10851. else $as_nop
  10852. if test yes = "$cross_compiling"; then :
  10853. lt_cv_dlopen_self=cross
  10854. else
  10855. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10856. lt_status=$lt_dlunknown
  10857. cat > conftest.$ac_ext <<_LT_EOF
  10858. #line $LINENO "configure"
  10859. #include "confdefs.h"
  10860. #if HAVE_DLFCN_H
  10861. #include <dlfcn.h>
  10862. #endif
  10863. #include <stdio.h>
  10864. #ifdef RTLD_GLOBAL
  10865. # define LT_DLGLOBAL RTLD_GLOBAL
  10866. #else
  10867. # ifdef DL_GLOBAL
  10868. # define LT_DLGLOBAL DL_GLOBAL
  10869. # else
  10870. # define LT_DLGLOBAL 0
  10871. # endif
  10872. #endif
  10873. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10874. find out it does not work in some platform. */
  10875. #ifndef LT_DLLAZY_OR_NOW
  10876. # ifdef RTLD_LAZY
  10877. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10878. # else
  10879. # ifdef DL_LAZY
  10880. # define LT_DLLAZY_OR_NOW DL_LAZY
  10881. # else
  10882. # ifdef RTLD_NOW
  10883. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10884. # else
  10885. # ifdef DL_NOW
  10886. # define LT_DLLAZY_OR_NOW DL_NOW
  10887. # else
  10888. # define LT_DLLAZY_OR_NOW 0
  10889. # endif
  10890. # endif
  10891. # endif
  10892. # endif
  10893. #endif
  10894. /* When -fvisibility=hidden is used, assume the code has been annotated
  10895. correspondingly for the symbols needed. */
  10896. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10897. int fnord () __attribute__((visibility("default")));
  10898. #endif
  10899. int fnord () { return 42; }
  10900. int main ()
  10901. {
  10902. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10903. int status = $lt_dlunknown;
  10904. if (self)
  10905. {
  10906. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10907. else
  10908. {
  10909. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10910. else puts (dlerror ());
  10911. }
  10912. /* dlclose (self); */
  10913. }
  10914. else
  10915. puts (dlerror ());
  10916. return status;
  10917. }
  10918. _LT_EOF
  10919. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10920. (eval $ac_link) 2>&5
  10921. ac_status=$?
  10922. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10923. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10924. (./conftest; exit; ) >&5 2>/dev/null
  10925. lt_status=$?
  10926. case x$lt_status in
  10927. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10928. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10929. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10930. esac
  10931. else :
  10932. # compilation failed
  10933. lt_cv_dlopen_self=no
  10934. fi
  10935. fi
  10936. rm -fr conftest*
  10937. fi
  10938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10939. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10940. if test yes = "$lt_cv_dlopen_self"; then
  10941. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10943. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10944. if test ${lt_cv_dlopen_self_static+y}
  10945. then :
  10946. printf %s "(cached) " >&6
  10947. else $as_nop
  10948. if test yes = "$cross_compiling"; then :
  10949. lt_cv_dlopen_self_static=cross
  10950. else
  10951. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10952. lt_status=$lt_dlunknown
  10953. cat > conftest.$ac_ext <<_LT_EOF
  10954. #line $LINENO "configure"
  10955. #include "confdefs.h"
  10956. #if HAVE_DLFCN_H
  10957. #include <dlfcn.h>
  10958. #endif
  10959. #include <stdio.h>
  10960. #ifdef RTLD_GLOBAL
  10961. # define LT_DLGLOBAL RTLD_GLOBAL
  10962. #else
  10963. # ifdef DL_GLOBAL
  10964. # define LT_DLGLOBAL DL_GLOBAL
  10965. # else
  10966. # define LT_DLGLOBAL 0
  10967. # endif
  10968. #endif
  10969. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10970. find out it does not work in some platform. */
  10971. #ifndef LT_DLLAZY_OR_NOW
  10972. # ifdef RTLD_LAZY
  10973. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10974. # else
  10975. # ifdef DL_LAZY
  10976. # define LT_DLLAZY_OR_NOW DL_LAZY
  10977. # else
  10978. # ifdef RTLD_NOW
  10979. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10980. # else
  10981. # ifdef DL_NOW
  10982. # define LT_DLLAZY_OR_NOW DL_NOW
  10983. # else
  10984. # define LT_DLLAZY_OR_NOW 0
  10985. # endif
  10986. # endif
  10987. # endif
  10988. # endif
  10989. #endif
  10990. /* When -fvisibility=hidden is used, assume the code has been annotated
  10991. correspondingly for the symbols needed. */
  10992. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10993. int fnord () __attribute__((visibility("default")));
  10994. #endif
  10995. int fnord () { return 42; }
  10996. int main ()
  10997. {
  10998. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10999. int status = $lt_dlunknown;
  11000. if (self)
  11001. {
  11002. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11003. else
  11004. {
  11005. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11006. else puts (dlerror ());
  11007. }
  11008. /* dlclose (self); */
  11009. }
  11010. else
  11011. puts (dlerror ());
  11012. return status;
  11013. }
  11014. _LT_EOF
  11015. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11016. (eval $ac_link) 2>&5
  11017. ac_status=$?
  11018. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11019. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11020. (./conftest; exit; ) >&5 2>/dev/null
  11021. lt_status=$?
  11022. case x$lt_status in
  11023. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11024. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11025. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11026. esac
  11027. else :
  11028. # compilation failed
  11029. lt_cv_dlopen_self_static=no
  11030. fi
  11031. fi
  11032. rm -fr conftest*
  11033. fi
  11034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11035. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11036. fi
  11037. CPPFLAGS=$save_CPPFLAGS
  11038. LDFLAGS=$save_LDFLAGS
  11039. LIBS=$save_LIBS
  11040. ;;
  11041. esac
  11042. case $lt_cv_dlopen_self in
  11043. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11044. *) enable_dlopen_self=unknown ;;
  11045. esac
  11046. case $lt_cv_dlopen_self_static in
  11047. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11048. *) enable_dlopen_self_static=unknown ;;
  11049. esac
  11050. fi
  11051. striplib=
  11052. old_striplib=
  11053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11054. printf %s "checking whether stripping libraries is possible... " >&6; }
  11055. if test -z "$STRIP"; then
  11056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11057. printf "%s\n" "no" >&6; }
  11058. else
  11059. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11060. old_striplib="$STRIP --strip-debug"
  11061. striplib="$STRIP --strip-unneeded"
  11062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11063. printf "%s\n" "yes" >&6; }
  11064. else
  11065. case $host_os in
  11066. darwin*)
  11067. # FIXME - insert some real tests, host_os isn't really good enough
  11068. striplib="$STRIP -x"
  11069. old_striplib="$STRIP -S"
  11070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11071. printf "%s\n" "yes" >&6; }
  11072. ;;
  11073. freebsd*)
  11074. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11075. old_striplib="$STRIP --strip-debug"
  11076. striplib="$STRIP --strip-unneeded"
  11077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11078. printf "%s\n" "yes" >&6; }
  11079. else
  11080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11081. printf "%s\n" "no" >&6; }
  11082. fi
  11083. ;;
  11084. *)
  11085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11086. printf "%s\n" "no" >&6; }
  11087. ;;
  11088. esac
  11089. fi
  11090. fi
  11091. # Report what library types will actually be built
  11092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11093. printf %s "checking if libtool supports shared libraries... " >&6; }
  11094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11095. printf "%s\n" "$can_build_shared" >&6; }
  11096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11097. printf %s "checking whether to build shared libraries... " >&6; }
  11098. test no = "$can_build_shared" && enable_shared=no
  11099. # On AIX, shared libraries and static libraries use the same namespace, and
  11100. # are all built from PIC.
  11101. case $host_os in
  11102. aix3*)
  11103. test yes = "$enable_shared" && enable_static=no
  11104. if test -n "$RANLIB"; then
  11105. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11106. postinstall_cmds='$RANLIB $lib'
  11107. fi
  11108. ;;
  11109. aix[4-9]*)
  11110. if test ia64 != "$host_cpu"; then
  11111. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11112. yes,aix,yes) ;; # shared object as lib.so file only
  11113. yes,svr4,*) ;; # shared object as lib.so archive member only
  11114. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11115. esac
  11116. fi
  11117. ;;
  11118. esac
  11119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11120. printf "%s\n" "$enable_shared" >&6; }
  11121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11122. printf %s "checking whether to build static libraries... " >&6; }
  11123. # Make sure either enable_shared or enable_static is yes.
  11124. test yes = "$enable_shared" || enable_static=yes
  11125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11126. printf "%s\n" "$enable_static" >&6; }
  11127. fi
  11128. ac_ext=c
  11129. ac_cpp='$CPP $CPPFLAGS'
  11130. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11131. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11132. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11133. CC=$lt_save_CC
  11134. ac_config_commands="$ac_config_commands libtool"
  11135. # Only expand once:
  11136. if test -n "$ac_tool_prefix"; then
  11137. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11138. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11140. printf %s "checking for $ac_word... " >&6; }
  11141. if test ${ac_cv_prog_RC+y}
  11142. then :
  11143. printf %s "(cached) " >&6
  11144. else $as_nop
  11145. if test -n "$RC"; then
  11146. ac_cv_prog_RC="$RC" # Let the user override the test.
  11147. else
  11148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11149. for as_dir in $PATH
  11150. do
  11151. IFS=$as_save_IFS
  11152. case $as_dir in #(((
  11153. '') as_dir=./ ;;
  11154. */) ;;
  11155. *) as_dir=$as_dir/ ;;
  11156. esac
  11157. for ac_exec_ext in '' $ac_executable_extensions; do
  11158. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11159. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11160. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11161. break 2
  11162. fi
  11163. done
  11164. done
  11165. IFS=$as_save_IFS
  11166. fi
  11167. fi
  11168. RC=$ac_cv_prog_RC
  11169. if test -n "$RC"; then
  11170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11171. printf "%s\n" "$RC" >&6; }
  11172. else
  11173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11174. printf "%s\n" "no" >&6; }
  11175. fi
  11176. fi
  11177. if test -z "$ac_cv_prog_RC"; then
  11178. ac_ct_RC=$RC
  11179. # Extract the first word of "windres", so it can be a program name with args.
  11180. set dummy windres; ac_word=$2
  11181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11182. printf %s "checking for $ac_word... " >&6; }
  11183. if test ${ac_cv_prog_ac_ct_RC+y}
  11184. then :
  11185. printf %s "(cached) " >&6
  11186. else $as_nop
  11187. if test -n "$ac_ct_RC"; then
  11188. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11189. else
  11190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11191. for as_dir in $PATH
  11192. do
  11193. IFS=$as_save_IFS
  11194. case $as_dir in #(((
  11195. '') as_dir=./ ;;
  11196. */) ;;
  11197. *) as_dir=$as_dir/ ;;
  11198. esac
  11199. for ac_exec_ext in '' $ac_executable_extensions; do
  11200. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11201. ac_cv_prog_ac_ct_RC="windres"
  11202. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11203. break 2
  11204. fi
  11205. done
  11206. done
  11207. IFS=$as_save_IFS
  11208. fi
  11209. fi
  11210. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11211. if test -n "$ac_ct_RC"; then
  11212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11213. printf "%s\n" "$ac_ct_RC" >&6; }
  11214. else
  11215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11216. printf "%s\n" "no" >&6; }
  11217. fi
  11218. if test "x$ac_ct_RC" = x; then
  11219. RC=""
  11220. else
  11221. case $cross_compiling:$ac_tool_warned in
  11222. yes:)
  11223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11224. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11225. ac_tool_warned=yes ;;
  11226. esac
  11227. RC=$ac_ct_RC
  11228. fi
  11229. else
  11230. RC="$ac_cv_prog_RC"
  11231. fi
  11232. # Source file extension for RC test sources.
  11233. ac_ext=rc
  11234. # Object file extension for compiled RC test sources.
  11235. objext=o
  11236. objext_RC=$objext
  11237. # Code to be used in simple compile tests
  11238. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11239. # Code to be used in simple link tests
  11240. lt_simple_link_test_code=$lt_simple_compile_test_code
  11241. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11242. # If no C compiler was specified, use CC.
  11243. LTCC=${LTCC-"$CC"}
  11244. # If no C compiler flags were specified, use CFLAGS.
  11245. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11246. # Allow CC to be a program name with arguments.
  11247. compiler=$CC
  11248. # save warnings/boilerplate of simple test code
  11249. ac_outfile=conftest.$ac_objext
  11250. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11251. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11252. _lt_compiler_boilerplate=`cat conftest.err`
  11253. $RM conftest*
  11254. ac_outfile=conftest.$ac_objext
  11255. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11256. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11257. _lt_linker_boilerplate=`cat conftest.err`
  11258. $RM -r conftest*
  11259. # Allow CC to be a program name with arguments.
  11260. lt_save_CC=$CC
  11261. lt_save_CFLAGS=$CFLAGS
  11262. lt_save_GCC=$GCC
  11263. GCC=
  11264. CC=${RC-"windres"}
  11265. CFLAGS=
  11266. compiler=$CC
  11267. compiler_RC=$CC
  11268. func_cc_basename $compiler
  11269. cc_basename=$func_cc_basename_result
  11270. lt_cv_prog_compiler_c_o_RC=yes
  11271. if test -n "$compiler"; then
  11272. :
  11273. fi
  11274. GCC=$lt_save_GCC
  11275. ac_ext=c
  11276. ac_cpp='$CPP $CPPFLAGS'
  11277. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11278. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11279. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11280. CC=$lt_save_CC
  11281. CFLAGS=$lt_save_CFLAGS
  11282. # For historical reasons, the library name redundantly includes the major
  11283. # version twice: libSDL2-2.0.so.0.
  11284. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11285. LT_RELEASE=2.0
  11286. # Increment this if there is an incompatible change - but if that happens,
  11287. # we should rename the library from SDL2 to SDL3, at which point this would
  11288. # reset to 0 anyway.
  11289. LT_MAJOR=0
  11290. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11291. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11292. LT_REVISION=$SDL_INTERFACE_AGE
  11293. for ac_prog in gawk mawk nawk awk
  11294. do
  11295. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11296. set dummy $ac_prog; ac_word=$2
  11297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11298. printf %s "checking for $ac_word... " >&6; }
  11299. if test ${ac_cv_prog_AWK+y}
  11300. then :
  11301. printf %s "(cached) " >&6
  11302. else $as_nop
  11303. if test -n "$AWK"; then
  11304. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11305. else
  11306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11307. for as_dir in $PATH
  11308. do
  11309. IFS=$as_save_IFS
  11310. case $as_dir in #(((
  11311. '') as_dir=./ ;;
  11312. */) ;;
  11313. *) as_dir=$as_dir/ ;;
  11314. esac
  11315. for ac_exec_ext in '' $ac_executable_extensions; do
  11316. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11317. ac_cv_prog_AWK="$ac_prog"
  11318. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11319. break 2
  11320. fi
  11321. done
  11322. done
  11323. IFS=$as_save_IFS
  11324. fi
  11325. fi
  11326. AWK=$ac_cv_prog_AWK
  11327. if test -n "$AWK"; then
  11328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11329. printf "%s\n" "$AWK" >&6; }
  11330. else
  11331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11332. printf "%s\n" "no" >&6; }
  11333. fi
  11334. test -n "$AWK" && break
  11335. done
  11336. ac_ext=c
  11337. ac_cpp='$CPP $CPPFLAGS'
  11338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11341. if test -n "$ac_tool_prefix"; then
  11342. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11343. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11345. printf %s "checking for $ac_word... " >&6; }
  11346. if test ${ac_cv_prog_CC+y}
  11347. then :
  11348. printf %s "(cached) " >&6
  11349. else $as_nop
  11350. if test -n "$CC"; then
  11351. ac_cv_prog_CC="$CC" # Let the user override the test.
  11352. else
  11353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11354. for as_dir in $PATH
  11355. do
  11356. IFS=$as_save_IFS
  11357. case $as_dir in #(((
  11358. '') as_dir=./ ;;
  11359. */) ;;
  11360. *) as_dir=$as_dir/ ;;
  11361. esac
  11362. for ac_exec_ext in '' $ac_executable_extensions; do
  11363. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11364. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11365. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11366. break 2
  11367. fi
  11368. done
  11369. done
  11370. IFS=$as_save_IFS
  11371. fi
  11372. fi
  11373. CC=$ac_cv_prog_CC
  11374. if test -n "$CC"; then
  11375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11376. printf "%s\n" "$CC" >&6; }
  11377. else
  11378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11379. printf "%s\n" "no" >&6; }
  11380. fi
  11381. fi
  11382. if test -z "$ac_cv_prog_CC"; then
  11383. ac_ct_CC=$CC
  11384. # Extract the first word of "gcc", so it can be a program name with args.
  11385. set dummy gcc; ac_word=$2
  11386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11387. printf %s "checking for $ac_word... " >&6; }
  11388. if test ${ac_cv_prog_ac_ct_CC+y}
  11389. then :
  11390. printf %s "(cached) " >&6
  11391. else $as_nop
  11392. if test -n "$ac_ct_CC"; then
  11393. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11394. else
  11395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11396. for as_dir in $PATH
  11397. do
  11398. IFS=$as_save_IFS
  11399. case $as_dir in #(((
  11400. '') as_dir=./ ;;
  11401. */) ;;
  11402. *) as_dir=$as_dir/ ;;
  11403. esac
  11404. for ac_exec_ext in '' $ac_executable_extensions; do
  11405. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11406. ac_cv_prog_ac_ct_CC="gcc"
  11407. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11408. break 2
  11409. fi
  11410. done
  11411. done
  11412. IFS=$as_save_IFS
  11413. fi
  11414. fi
  11415. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11416. if test -n "$ac_ct_CC"; then
  11417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11418. printf "%s\n" "$ac_ct_CC" >&6; }
  11419. else
  11420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11421. printf "%s\n" "no" >&6; }
  11422. fi
  11423. if test "x$ac_ct_CC" = x; then
  11424. CC=""
  11425. else
  11426. case $cross_compiling:$ac_tool_warned in
  11427. yes:)
  11428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11429. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11430. ac_tool_warned=yes ;;
  11431. esac
  11432. CC=$ac_ct_CC
  11433. fi
  11434. else
  11435. CC="$ac_cv_prog_CC"
  11436. fi
  11437. if test -z "$CC"; then
  11438. if test -n "$ac_tool_prefix"; then
  11439. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11440. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11442. printf %s "checking for $ac_word... " >&6; }
  11443. if test ${ac_cv_prog_CC+y}
  11444. then :
  11445. printf %s "(cached) " >&6
  11446. else $as_nop
  11447. if test -n "$CC"; then
  11448. ac_cv_prog_CC="$CC" # Let the user override the test.
  11449. else
  11450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11451. for as_dir in $PATH
  11452. do
  11453. IFS=$as_save_IFS
  11454. case $as_dir in #(((
  11455. '') as_dir=./ ;;
  11456. */) ;;
  11457. *) as_dir=$as_dir/ ;;
  11458. esac
  11459. for ac_exec_ext in '' $ac_executable_extensions; do
  11460. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11461. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11462. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11463. break 2
  11464. fi
  11465. done
  11466. done
  11467. IFS=$as_save_IFS
  11468. fi
  11469. fi
  11470. CC=$ac_cv_prog_CC
  11471. if test -n "$CC"; then
  11472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11473. printf "%s\n" "$CC" >&6; }
  11474. else
  11475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11476. printf "%s\n" "no" >&6; }
  11477. fi
  11478. fi
  11479. fi
  11480. if test -z "$CC"; then
  11481. # Extract the first word of "cc", so it can be a program name with args.
  11482. set dummy cc; ac_word=$2
  11483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11484. printf %s "checking for $ac_word... " >&6; }
  11485. if test ${ac_cv_prog_CC+y}
  11486. then :
  11487. printf %s "(cached) " >&6
  11488. else $as_nop
  11489. if test -n "$CC"; then
  11490. ac_cv_prog_CC="$CC" # Let the user override the test.
  11491. else
  11492. ac_prog_rejected=no
  11493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11494. for as_dir in $PATH
  11495. do
  11496. IFS=$as_save_IFS
  11497. case $as_dir in #(((
  11498. '') as_dir=./ ;;
  11499. */) ;;
  11500. *) as_dir=$as_dir/ ;;
  11501. esac
  11502. for ac_exec_ext in '' $ac_executable_extensions; do
  11503. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11504. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11505. ac_prog_rejected=yes
  11506. continue
  11507. fi
  11508. ac_cv_prog_CC="cc"
  11509. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11510. break 2
  11511. fi
  11512. done
  11513. done
  11514. IFS=$as_save_IFS
  11515. if test $ac_prog_rejected = yes; then
  11516. # We found a bogon in the path, so make sure we never use it.
  11517. set dummy $ac_cv_prog_CC
  11518. shift
  11519. if test $# != 0; then
  11520. # We chose a different compiler from the bogus one.
  11521. # However, it has the same basename, so the bogon will be chosen
  11522. # first if we set CC to just the basename; use the full file name.
  11523. shift
  11524. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11525. fi
  11526. fi
  11527. fi
  11528. fi
  11529. CC=$ac_cv_prog_CC
  11530. if test -n "$CC"; then
  11531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11532. printf "%s\n" "$CC" >&6; }
  11533. else
  11534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11535. printf "%s\n" "no" >&6; }
  11536. fi
  11537. fi
  11538. if test -z "$CC"; then
  11539. if test -n "$ac_tool_prefix"; then
  11540. for ac_prog in cl.exe
  11541. do
  11542. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11543. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11545. printf %s "checking for $ac_word... " >&6; }
  11546. if test ${ac_cv_prog_CC+y}
  11547. then :
  11548. printf %s "(cached) " >&6
  11549. else $as_nop
  11550. if test -n "$CC"; then
  11551. ac_cv_prog_CC="$CC" # Let the user override the test.
  11552. else
  11553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11554. for as_dir in $PATH
  11555. do
  11556. IFS=$as_save_IFS
  11557. case $as_dir in #(((
  11558. '') as_dir=./ ;;
  11559. */) ;;
  11560. *) as_dir=$as_dir/ ;;
  11561. esac
  11562. for ac_exec_ext in '' $ac_executable_extensions; do
  11563. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11564. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11565. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11566. break 2
  11567. fi
  11568. done
  11569. done
  11570. IFS=$as_save_IFS
  11571. fi
  11572. fi
  11573. CC=$ac_cv_prog_CC
  11574. if test -n "$CC"; then
  11575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11576. printf "%s\n" "$CC" >&6; }
  11577. else
  11578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11579. printf "%s\n" "no" >&6; }
  11580. fi
  11581. test -n "$CC" && break
  11582. done
  11583. fi
  11584. if test -z "$CC"; then
  11585. ac_ct_CC=$CC
  11586. for ac_prog in cl.exe
  11587. do
  11588. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11589. set dummy $ac_prog; ac_word=$2
  11590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11591. printf %s "checking for $ac_word... " >&6; }
  11592. if test ${ac_cv_prog_ac_ct_CC+y}
  11593. then :
  11594. printf %s "(cached) " >&6
  11595. else $as_nop
  11596. if test -n "$ac_ct_CC"; then
  11597. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11598. else
  11599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11600. for as_dir in $PATH
  11601. do
  11602. IFS=$as_save_IFS
  11603. case $as_dir in #(((
  11604. '') as_dir=./ ;;
  11605. */) ;;
  11606. *) as_dir=$as_dir/ ;;
  11607. esac
  11608. for ac_exec_ext in '' $ac_executable_extensions; do
  11609. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11610. ac_cv_prog_ac_ct_CC="$ac_prog"
  11611. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11612. break 2
  11613. fi
  11614. done
  11615. done
  11616. IFS=$as_save_IFS
  11617. fi
  11618. fi
  11619. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11620. if test -n "$ac_ct_CC"; then
  11621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11622. printf "%s\n" "$ac_ct_CC" >&6; }
  11623. else
  11624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11625. printf "%s\n" "no" >&6; }
  11626. fi
  11627. test -n "$ac_ct_CC" && break
  11628. done
  11629. if test "x$ac_ct_CC" = x; then
  11630. CC=""
  11631. else
  11632. case $cross_compiling:$ac_tool_warned in
  11633. yes:)
  11634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11635. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11636. ac_tool_warned=yes ;;
  11637. esac
  11638. CC=$ac_ct_CC
  11639. fi
  11640. fi
  11641. fi
  11642. if test -z "$CC"; then
  11643. if test -n "$ac_tool_prefix"; then
  11644. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11645. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11647. printf %s "checking for $ac_word... " >&6; }
  11648. if test ${ac_cv_prog_CC+y}
  11649. then :
  11650. printf %s "(cached) " >&6
  11651. else $as_nop
  11652. if test -n "$CC"; then
  11653. ac_cv_prog_CC="$CC" # Let the user override the test.
  11654. else
  11655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11656. for as_dir in $PATH
  11657. do
  11658. IFS=$as_save_IFS
  11659. case $as_dir in #(((
  11660. '') as_dir=./ ;;
  11661. */) ;;
  11662. *) as_dir=$as_dir/ ;;
  11663. esac
  11664. for ac_exec_ext in '' $ac_executable_extensions; do
  11665. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11666. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11667. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11668. break 2
  11669. fi
  11670. done
  11671. done
  11672. IFS=$as_save_IFS
  11673. fi
  11674. fi
  11675. CC=$ac_cv_prog_CC
  11676. if test -n "$CC"; then
  11677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11678. printf "%s\n" "$CC" >&6; }
  11679. else
  11680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11681. printf "%s\n" "no" >&6; }
  11682. fi
  11683. fi
  11684. if test -z "$ac_cv_prog_CC"; then
  11685. ac_ct_CC=$CC
  11686. # Extract the first word of "clang", so it can be a program name with args.
  11687. set dummy clang; ac_word=$2
  11688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11689. printf %s "checking for $ac_word... " >&6; }
  11690. if test ${ac_cv_prog_ac_ct_CC+y}
  11691. then :
  11692. printf %s "(cached) " >&6
  11693. else $as_nop
  11694. if test -n "$ac_ct_CC"; then
  11695. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11696. else
  11697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11698. for as_dir in $PATH
  11699. do
  11700. IFS=$as_save_IFS
  11701. case $as_dir in #(((
  11702. '') as_dir=./ ;;
  11703. */) ;;
  11704. *) as_dir=$as_dir/ ;;
  11705. esac
  11706. for ac_exec_ext in '' $ac_executable_extensions; do
  11707. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11708. ac_cv_prog_ac_ct_CC="clang"
  11709. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11710. break 2
  11711. fi
  11712. done
  11713. done
  11714. IFS=$as_save_IFS
  11715. fi
  11716. fi
  11717. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11718. if test -n "$ac_ct_CC"; then
  11719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11720. printf "%s\n" "$ac_ct_CC" >&6; }
  11721. else
  11722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11723. printf "%s\n" "no" >&6; }
  11724. fi
  11725. if test "x$ac_ct_CC" = x; then
  11726. CC=""
  11727. else
  11728. case $cross_compiling:$ac_tool_warned in
  11729. yes:)
  11730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11731. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11732. ac_tool_warned=yes ;;
  11733. esac
  11734. CC=$ac_ct_CC
  11735. fi
  11736. else
  11737. CC="$ac_cv_prog_CC"
  11738. fi
  11739. fi
  11740. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11741. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11742. as_fn_error $? "no acceptable C compiler found in \$PATH
  11743. See \`config.log' for more details" "$LINENO" 5; }
  11744. # Provide some information about the compiler.
  11745. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11746. set X $ac_compile
  11747. ac_compiler=$2
  11748. for ac_option in --version -v -V -qversion -version; do
  11749. { { ac_try="$ac_compiler $ac_option >&5"
  11750. case "(($ac_try" in
  11751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11752. *) ac_try_echo=$ac_try;;
  11753. esac
  11754. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11755. printf "%s\n" "$ac_try_echo"; } >&5
  11756. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11757. ac_status=$?
  11758. if test -s conftest.err; then
  11759. sed '10a\
  11760. ... rest of stderr output deleted ...
  11761. 10q' conftest.err >conftest.er1
  11762. cat conftest.er1 >&5
  11763. fi
  11764. rm -f conftest.er1 conftest.err
  11765. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11766. test $ac_status = 0; }
  11767. done
  11768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11769. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11770. if test ${ac_cv_c_compiler_gnu+y}
  11771. then :
  11772. printf %s "(cached) " >&6
  11773. else $as_nop
  11774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11775. /* end confdefs.h. */
  11776. int
  11777. main (void)
  11778. {
  11779. #ifndef __GNUC__
  11780. choke me
  11781. #endif
  11782. ;
  11783. return 0;
  11784. }
  11785. _ACEOF
  11786. if ac_fn_c_try_compile "$LINENO"
  11787. then :
  11788. ac_compiler_gnu=yes
  11789. else $as_nop
  11790. ac_compiler_gnu=no
  11791. fi
  11792. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11793. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11794. fi
  11795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11796. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11797. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11798. if test $ac_compiler_gnu = yes; then
  11799. GCC=yes
  11800. else
  11801. GCC=
  11802. fi
  11803. ac_test_CFLAGS=${CFLAGS+y}
  11804. ac_save_CFLAGS=$CFLAGS
  11805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11806. printf %s "checking whether $CC accepts -g... " >&6; }
  11807. if test ${ac_cv_prog_cc_g+y}
  11808. then :
  11809. printf %s "(cached) " >&6
  11810. else $as_nop
  11811. ac_save_c_werror_flag=$ac_c_werror_flag
  11812. ac_c_werror_flag=yes
  11813. ac_cv_prog_cc_g=no
  11814. CFLAGS="-g"
  11815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11816. /* end confdefs.h. */
  11817. int
  11818. main (void)
  11819. {
  11820. ;
  11821. return 0;
  11822. }
  11823. _ACEOF
  11824. if ac_fn_c_try_compile "$LINENO"
  11825. then :
  11826. ac_cv_prog_cc_g=yes
  11827. else $as_nop
  11828. CFLAGS=""
  11829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11830. /* end confdefs.h. */
  11831. int
  11832. main (void)
  11833. {
  11834. ;
  11835. return 0;
  11836. }
  11837. _ACEOF
  11838. if ac_fn_c_try_compile "$LINENO"
  11839. then :
  11840. else $as_nop
  11841. ac_c_werror_flag=$ac_save_c_werror_flag
  11842. CFLAGS="-g"
  11843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11844. /* end confdefs.h. */
  11845. int
  11846. main (void)
  11847. {
  11848. ;
  11849. return 0;
  11850. }
  11851. _ACEOF
  11852. if ac_fn_c_try_compile "$LINENO"
  11853. then :
  11854. ac_cv_prog_cc_g=yes
  11855. fi
  11856. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11857. fi
  11858. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11859. fi
  11860. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11861. ac_c_werror_flag=$ac_save_c_werror_flag
  11862. fi
  11863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11864. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11865. if test $ac_test_CFLAGS; then
  11866. CFLAGS=$ac_save_CFLAGS
  11867. elif test $ac_cv_prog_cc_g = yes; then
  11868. if test "$GCC" = yes; then
  11869. CFLAGS="-g -O2"
  11870. else
  11871. CFLAGS="-g"
  11872. fi
  11873. else
  11874. if test "$GCC" = yes; then
  11875. CFLAGS="-O2"
  11876. else
  11877. CFLAGS=
  11878. fi
  11879. fi
  11880. ac_prog_cc_stdc=no
  11881. if test x$ac_prog_cc_stdc = xno
  11882. then :
  11883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11884. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11885. if test ${ac_cv_prog_cc_c11+y}
  11886. then :
  11887. printf %s "(cached) " >&6
  11888. else $as_nop
  11889. ac_cv_prog_cc_c11=no
  11890. ac_save_CC=$CC
  11891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11892. /* end confdefs.h. */
  11893. $ac_c_conftest_c11_program
  11894. _ACEOF
  11895. for ac_arg in '' -std=gnu11
  11896. do
  11897. CC="$ac_save_CC $ac_arg"
  11898. if ac_fn_c_try_compile "$LINENO"
  11899. then :
  11900. ac_cv_prog_cc_c11=$ac_arg
  11901. fi
  11902. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11903. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11904. done
  11905. rm -f conftest.$ac_ext
  11906. CC=$ac_save_CC
  11907. fi
  11908. if test "x$ac_cv_prog_cc_c11" = xno
  11909. then :
  11910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11911. printf "%s\n" "unsupported" >&6; }
  11912. else $as_nop
  11913. if test "x$ac_cv_prog_cc_c11" = x
  11914. then :
  11915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11916. printf "%s\n" "none needed" >&6; }
  11917. else $as_nop
  11918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11919. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11920. CC="$CC $ac_cv_prog_cc_c11"
  11921. fi
  11922. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11923. ac_prog_cc_stdc=c11
  11924. fi
  11925. fi
  11926. if test x$ac_prog_cc_stdc = xno
  11927. then :
  11928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11929. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11930. if test ${ac_cv_prog_cc_c99+y}
  11931. then :
  11932. printf %s "(cached) " >&6
  11933. else $as_nop
  11934. ac_cv_prog_cc_c99=no
  11935. ac_save_CC=$CC
  11936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11937. /* end confdefs.h. */
  11938. $ac_c_conftest_c99_program
  11939. _ACEOF
  11940. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11941. do
  11942. CC="$ac_save_CC $ac_arg"
  11943. if ac_fn_c_try_compile "$LINENO"
  11944. then :
  11945. ac_cv_prog_cc_c99=$ac_arg
  11946. fi
  11947. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11948. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11949. done
  11950. rm -f conftest.$ac_ext
  11951. CC=$ac_save_CC
  11952. fi
  11953. if test "x$ac_cv_prog_cc_c99" = xno
  11954. then :
  11955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11956. printf "%s\n" "unsupported" >&6; }
  11957. else $as_nop
  11958. if test "x$ac_cv_prog_cc_c99" = x
  11959. then :
  11960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11961. printf "%s\n" "none needed" >&6; }
  11962. else $as_nop
  11963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11964. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11965. CC="$CC $ac_cv_prog_cc_c99"
  11966. fi
  11967. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11968. ac_prog_cc_stdc=c99
  11969. fi
  11970. fi
  11971. if test x$ac_prog_cc_stdc = xno
  11972. then :
  11973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11974. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11975. if test ${ac_cv_prog_cc_c89+y}
  11976. then :
  11977. printf %s "(cached) " >&6
  11978. else $as_nop
  11979. ac_cv_prog_cc_c89=no
  11980. ac_save_CC=$CC
  11981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11982. /* end confdefs.h. */
  11983. $ac_c_conftest_c89_program
  11984. _ACEOF
  11985. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11986. do
  11987. CC="$ac_save_CC $ac_arg"
  11988. if ac_fn_c_try_compile "$LINENO"
  11989. then :
  11990. ac_cv_prog_cc_c89=$ac_arg
  11991. fi
  11992. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11993. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11994. done
  11995. rm -f conftest.$ac_ext
  11996. CC=$ac_save_CC
  11997. fi
  11998. if test "x$ac_cv_prog_cc_c89" = xno
  11999. then :
  12000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12001. printf "%s\n" "unsupported" >&6; }
  12002. else $as_nop
  12003. if test "x$ac_cv_prog_cc_c89" = x
  12004. then :
  12005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12006. printf "%s\n" "none needed" >&6; }
  12007. else $as_nop
  12008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12009. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12010. CC="$CC $ac_cv_prog_cc_c89"
  12011. fi
  12012. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12013. ac_prog_cc_stdc=c89
  12014. fi
  12015. fi
  12016. ac_ext=c
  12017. ac_cpp='$CPP $CPPFLAGS'
  12018. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12019. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12020. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12021. ac_ext=cpp
  12022. ac_cpp='$CXXCPP $CPPFLAGS'
  12023. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12024. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12025. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12026. if test -z "$CXX"; then
  12027. if test -n "$CCC"; then
  12028. CXX=$CCC
  12029. else
  12030. if test -n "$ac_tool_prefix"; then
  12031. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12032. do
  12033. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12034. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12036. printf %s "checking for $ac_word... " >&6; }
  12037. if test ${ac_cv_prog_CXX+y}
  12038. then :
  12039. printf %s "(cached) " >&6
  12040. else $as_nop
  12041. if test -n "$CXX"; then
  12042. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12043. else
  12044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12045. for as_dir in $PATH
  12046. do
  12047. IFS=$as_save_IFS
  12048. case $as_dir in #(((
  12049. '') as_dir=./ ;;
  12050. */) ;;
  12051. *) as_dir=$as_dir/ ;;
  12052. esac
  12053. for ac_exec_ext in '' $ac_executable_extensions; do
  12054. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12055. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12056. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12057. break 2
  12058. fi
  12059. done
  12060. done
  12061. IFS=$as_save_IFS
  12062. fi
  12063. fi
  12064. CXX=$ac_cv_prog_CXX
  12065. if test -n "$CXX"; then
  12066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12067. printf "%s\n" "$CXX" >&6; }
  12068. else
  12069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12070. printf "%s\n" "no" >&6; }
  12071. fi
  12072. test -n "$CXX" && break
  12073. done
  12074. fi
  12075. if test -z "$CXX"; then
  12076. ac_ct_CXX=$CXX
  12077. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12078. do
  12079. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12080. set dummy $ac_prog; ac_word=$2
  12081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12082. printf %s "checking for $ac_word... " >&6; }
  12083. if test ${ac_cv_prog_ac_ct_CXX+y}
  12084. then :
  12085. printf %s "(cached) " >&6
  12086. else $as_nop
  12087. if test -n "$ac_ct_CXX"; then
  12088. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12089. else
  12090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12091. for as_dir in $PATH
  12092. do
  12093. IFS=$as_save_IFS
  12094. case $as_dir in #(((
  12095. '') as_dir=./ ;;
  12096. */) ;;
  12097. *) as_dir=$as_dir/ ;;
  12098. esac
  12099. for ac_exec_ext in '' $ac_executable_extensions; do
  12100. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12101. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12102. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12103. break 2
  12104. fi
  12105. done
  12106. done
  12107. IFS=$as_save_IFS
  12108. fi
  12109. fi
  12110. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12111. if test -n "$ac_ct_CXX"; then
  12112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12113. printf "%s\n" "$ac_ct_CXX" >&6; }
  12114. else
  12115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12116. printf "%s\n" "no" >&6; }
  12117. fi
  12118. test -n "$ac_ct_CXX" && break
  12119. done
  12120. if test "x$ac_ct_CXX" = x; then
  12121. CXX="g++"
  12122. else
  12123. case $cross_compiling:$ac_tool_warned in
  12124. yes:)
  12125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12126. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12127. ac_tool_warned=yes ;;
  12128. esac
  12129. CXX=$ac_ct_CXX
  12130. fi
  12131. fi
  12132. fi
  12133. fi
  12134. # Provide some information about the compiler.
  12135. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12136. set X $ac_compile
  12137. ac_compiler=$2
  12138. for ac_option in --version -v -V -qversion; do
  12139. { { ac_try="$ac_compiler $ac_option >&5"
  12140. case "(($ac_try" in
  12141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12142. *) ac_try_echo=$ac_try;;
  12143. esac
  12144. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12145. printf "%s\n" "$ac_try_echo"; } >&5
  12146. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12147. ac_status=$?
  12148. if test -s conftest.err; then
  12149. sed '10a\
  12150. ... rest of stderr output deleted ...
  12151. 10q' conftest.err >conftest.er1
  12152. cat conftest.er1 >&5
  12153. fi
  12154. rm -f conftest.er1 conftest.err
  12155. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12156. test $ac_status = 0; }
  12157. done
  12158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12159. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12160. if test ${ac_cv_cxx_compiler_gnu+y}
  12161. then :
  12162. printf %s "(cached) " >&6
  12163. else $as_nop
  12164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12165. /* end confdefs.h. */
  12166. int
  12167. main (void)
  12168. {
  12169. #ifndef __GNUC__
  12170. choke me
  12171. #endif
  12172. ;
  12173. return 0;
  12174. }
  12175. _ACEOF
  12176. if ac_fn_cxx_try_compile "$LINENO"
  12177. then :
  12178. ac_compiler_gnu=yes
  12179. else $as_nop
  12180. ac_compiler_gnu=no
  12181. fi
  12182. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12183. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12184. fi
  12185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12186. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12187. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12188. if test $ac_compiler_gnu = yes; then
  12189. GXX=yes
  12190. else
  12191. GXX=
  12192. fi
  12193. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12194. ac_save_CXXFLAGS=$CXXFLAGS
  12195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12196. printf %s "checking whether $CXX accepts -g... " >&6; }
  12197. if test ${ac_cv_prog_cxx_g+y}
  12198. then :
  12199. printf %s "(cached) " >&6
  12200. else $as_nop
  12201. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12202. ac_cxx_werror_flag=yes
  12203. ac_cv_prog_cxx_g=no
  12204. CXXFLAGS="-g"
  12205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12206. /* end confdefs.h. */
  12207. int
  12208. main (void)
  12209. {
  12210. ;
  12211. return 0;
  12212. }
  12213. _ACEOF
  12214. if ac_fn_cxx_try_compile "$LINENO"
  12215. then :
  12216. ac_cv_prog_cxx_g=yes
  12217. else $as_nop
  12218. CXXFLAGS=""
  12219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12220. /* end confdefs.h. */
  12221. int
  12222. main (void)
  12223. {
  12224. ;
  12225. return 0;
  12226. }
  12227. _ACEOF
  12228. if ac_fn_cxx_try_compile "$LINENO"
  12229. then :
  12230. else $as_nop
  12231. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12232. CXXFLAGS="-g"
  12233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12234. /* end confdefs.h. */
  12235. int
  12236. main (void)
  12237. {
  12238. ;
  12239. return 0;
  12240. }
  12241. _ACEOF
  12242. if ac_fn_cxx_try_compile "$LINENO"
  12243. then :
  12244. ac_cv_prog_cxx_g=yes
  12245. fi
  12246. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12247. fi
  12248. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12249. fi
  12250. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12251. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12252. fi
  12253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12254. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12255. if test $ac_test_CXXFLAGS; then
  12256. CXXFLAGS=$ac_save_CXXFLAGS
  12257. elif test $ac_cv_prog_cxx_g = yes; then
  12258. if test "$GXX" = yes; then
  12259. CXXFLAGS="-g -O2"
  12260. else
  12261. CXXFLAGS="-g"
  12262. fi
  12263. else
  12264. if test "$GXX" = yes; then
  12265. CXXFLAGS="-O2"
  12266. else
  12267. CXXFLAGS=
  12268. fi
  12269. fi
  12270. ac_prog_cxx_stdcxx=no
  12271. if test x$ac_prog_cxx_stdcxx = xno
  12272. then :
  12273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12274. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12275. if test ${ac_cv_prog_cxx_11+y}
  12276. then :
  12277. printf %s "(cached) " >&6
  12278. else $as_nop
  12279. ac_cv_prog_cxx_11=no
  12280. ac_save_CXX=$CXX
  12281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12282. /* end confdefs.h. */
  12283. $ac_cxx_conftest_cxx11_program
  12284. _ACEOF
  12285. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12286. do
  12287. CXX="$ac_save_CXX $ac_arg"
  12288. if ac_fn_cxx_try_compile "$LINENO"
  12289. then :
  12290. ac_cv_prog_cxx_cxx11=$ac_arg
  12291. fi
  12292. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12293. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12294. done
  12295. rm -f conftest.$ac_ext
  12296. CXX=$ac_save_CXX
  12297. fi
  12298. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12299. then :
  12300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12301. printf "%s\n" "unsupported" >&6; }
  12302. else $as_nop
  12303. if test "x$ac_cv_prog_cxx_cxx11" = x
  12304. then :
  12305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12306. printf "%s\n" "none needed" >&6; }
  12307. else $as_nop
  12308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12309. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12310. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12311. fi
  12312. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12313. ac_prog_cxx_stdcxx=cxx11
  12314. fi
  12315. fi
  12316. if test x$ac_prog_cxx_stdcxx = xno
  12317. then :
  12318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12319. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12320. if test ${ac_cv_prog_cxx_98+y}
  12321. then :
  12322. printf %s "(cached) " >&6
  12323. else $as_nop
  12324. ac_cv_prog_cxx_98=no
  12325. ac_save_CXX=$CXX
  12326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12327. /* end confdefs.h. */
  12328. $ac_cxx_conftest_cxx98_program
  12329. _ACEOF
  12330. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12331. do
  12332. CXX="$ac_save_CXX $ac_arg"
  12333. if ac_fn_cxx_try_compile "$LINENO"
  12334. then :
  12335. ac_cv_prog_cxx_cxx98=$ac_arg
  12336. fi
  12337. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12338. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12339. done
  12340. rm -f conftest.$ac_ext
  12341. CXX=$ac_save_CXX
  12342. fi
  12343. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12344. then :
  12345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12346. printf "%s\n" "unsupported" >&6; }
  12347. else $as_nop
  12348. if test "x$ac_cv_prog_cxx_cxx98" = x
  12349. then :
  12350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12351. printf "%s\n" "none needed" >&6; }
  12352. else $as_nop
  12353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12354. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12355. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12356. fi
  12357. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12358. ac_prog_cxx_stdcxx=cxx98
  12359. fi
  12360. fi
  12361. ac_ext=c
  12362. ac_cpp='$CPP $CPPFLAGS'
  12363. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12364. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12365. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12366. func_stripname_cnf ()
  12367. {
  12368. case $2 in
  12369. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12370. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12371. esac
  12372. } # func_stripname_cnf
  12373. if test -n "$CXX" && ( test no != "$CXX" &&
  12374. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12375. (test g++ != "$CXX"))); then
  12376. ac_ext=cpp
  12377. ac_cpp='$CXXCPP $CPPFLAGS'
  12378. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12379. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12380. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12382. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12383. if test -z "$CXXCPP"; then
  12384. if test ${ac_cv_prog_CXXCPP+y}
  12385. then :
  12386. printf %s "(cached) " >&6
  12387. else $as_nop
  12388. # Double quotes because $CXX needs to be expanded
  12389. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12390. do
  12391. ac_preproc_ok=false
  12392. for ac_cxx_preproc_warn_flag in '' yes
  12393. do
  12394. # Use a header file that comes with gcc, so configuring glibc
  12395. # with a fresh cross-compiler works.
  12396. # On the NeXT, cc -E runs the code through the compiler's parser,
  12397. # not just through cpp. "Syntax error" is here to catch this case.
  12398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12399. /* end confdefs.h. */
  12400. #include <limits.h>
  12401. Syntax error
  12402. _ACEOF
  12403. if ac_fn_cxx_try_cpp "$LINENO"
  12404. then :
  12405. else $as_nop
  12406. # Broken: fails on valid input.
  12407. continue
  12408. fi
  12409. rm -f conftest.err conftest.i conftest.$ac_ext
  12410. # OK, works on sane cases. Now check whether nonexistent headers
  12411. # can be detected and how.
  12412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12413. /* end confdefs.h. */
  12414. #include <ac_nonexistent.h>
  12415. _ACEOF
  12416. if ac_fn_cxx_try_cpp "$LINENO"
  12417. then :
  12418. # Broken: success on invalid input.
  12419. continue
  12420. else $as_nop
  12421. # Passes both tests.
  12422. ac_preproc_ok=:
  12423. break
  12424. fi
  12425. rm -f conftest.err conftest.i conftest.$ac_ext
  12426. done
  12427. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12428. rm -f conftest.i conftest.err conftest.$ac_ext
  12429. if $ac_preproc_ok
  12430. then :
  12431. break
  12432. fi
  12433. done
  12434. ac_cv_prog_CXXCPP=$CXXCPP
  12435. fi
  12436. CXXCPP=$ac_cv_prog_CXXCPP
  12437. else
  12438. ac_cv_prog_CXXCPP=$CXXCPP
  12439. fi
  12440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12441. printf "%s\n" "$CXXCPP" >&6; }
  12442. ac_preproc_ok=false
  12443. for ac_cxx_preproc_warn_flag in '' yes
  12444. do
  12445. # Use a header file that comes with gcc, so configuring glibc
  12446. # with a fresh cross-compiler works.
  12447. # On the NeXT, cc -E runs the code through the compiler's parser,
  12448. # not just through cpp. "Syntax error" is here to catch this case.
  12449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12450. /* end confdefs.h. */
  12451. #include <limits.h>
  12452. Syntax error
  12453. _ACEOF
  12454. if ac_fn_cxx_try_cpp "$LINENO"
  12455. then :
  12456. else $as_nop
  12457. # Broken: fails on valid input.
  12458. continue
  12459. fi
  12460. rm -f conftest.err conftest.i conftest.$ac_ext
  12461. # OK, works on sane cases. Now check whether nonexistent headers
  12462. # can be detected and how.
  12463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12464. /* end confdefs.h. */
  12465. #include <ac_nonexistent.h>
  12466. _ACEOF
  12467. if ac_fn_cxx_try_cpp "$LINENO"
  12468. then :
  12469. # Broken: success on invalid input.
  12470. continue
  12471. else $as_nop
  12472. # Passes both tests.
  12473. ac_preproc_ok=:
  12474. break
  12475. fi
  12476. rm -f conftest.err conftest.i conftest.$ac_ext
  12477. done
  12478. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12479. rm -f conftest.i conftest.err conftest.$ac_ext
  12480. if $ac_preproc_ok
  12481. then :
  12482. else $as_nop
  12483. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12484. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12485. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12486. See \`config.log' for more details" "$LINENO" 5; }
  12487. fi
  12488. ac_ext=c
  12489. ac_cpp='$CPP $CPPFLAGS'
  12490. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12491. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12492. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12493. else
  12494. _lt_caught_CXX_error=yes
  12495. fi
  12496. ac_ext=cpp
  12497. ac_cpp='$CXXCPP $CPPFLAGS'
  12498. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12499. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12500. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12501. archive_cmds_need_lc_CXX=no
  12502. allow_undefined_flag_CXX=
  12503. always_export_symbols_CXX=no
  12504. archive_expsym_cmds_CXX=
  12505. compiler_needs_object_CXX=no
  12506. export_dynamic_flag_spec_CXX=
  12507. hardcode_direct_CXX=no
  12508. hardcode_direct_absolute_CXX=no
  12509. hardcode_libdir_flag_spec_CXX=
  12510. hardcode_libdir_separator_CXX=
  12511. hardcode_minus_L_CXX=no
  12512. hardcode_shlibpath_var_CXX=unsupported
  12513. hardcode_automatic_CXX=no
  12514. inherit_rpath_CXX=no
  12515. module_cmds_CXX=
  12516. module_expsym_cmds_CXX=
  12517. link_all_deplibs_CXX=unknown
  12518. old_archive_cmds_CXX=$old_archive_cmds
  12519. reload_flag_CXX=$reload_flag
  12520. reload_cmds_CXX=$reload_cmds
  12521. no_undefined_flag_CXX=
  12522. whole_archive_flag_spec_CXX=
  12523. enable_shared_with_static_runtimes_CXX=no
  12524. # Source file extension for C++ test sources.
  12525. ac_ext=cpp
  12526. # Object file extension for compiled C++ test sources.
  12527. objext=o
  12528. objext_CXX=$objext
  12529. # No sense in running all these tests if we already determined that
  12530. # the CXX compiler isn't working. Some variables (like enable_shared)
  12531. # are currently assumed to apply to all compilers on this platform,
  12532. # and will be corrupted by setting them based on a non-working compiler.
  12533. if test yes != "$_lt_caught_CXX_error"; then
  12534. # Code to be used in simple compile tests
  12535. lt_simple_compile_test_code="int some_variable = 0;"
  12536. # Code to be used in simple link tests
  12537. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12538. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12539. # If no C compiler was specified, use CC.
  12540. LTCC=${LTCC-"$CC"}
  12541. # If no C compiler flags were specified, use CFLAGS.
  12542. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12543. # Allow CC to be a program name with arguments.
  12544. compiler=$CC
  12545. # save warnings/boilerplate of simple test code
  12546. ac_outfile=conftest.$ac_objext
  12547. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12548. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12549. _lt_compiler_boilerplate=`cat conftest.err`
  12550. $RM conftest*
  12551. ac_outfile=conftest.$ac_objext
  12552. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12553. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12554. _lt_linker_boilerplate=`cat conftest.err`
  12555. $RM -r conftest*
  12556. # Allow CC to be a program name with arguments.
  12557. lt_save_CC=$CC
  12558. lt_save_CFLAGS=$CFLAGS
  12559. lt_save_LD=$LD
  12560. lt_save_GCC=$GCC
  12561. GCC=$GXX
  12562. lt_save_with_gnu_ld=$with_gnu_ld
  12563. lt_save_path_LD=$lt_cv_path_LD
  12564. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12565. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12566. else
  12567. $as_unset lt_cv_prog_gnu_ld
  12568. fi
  12569. if test -n "${lt_cv_path_LDCXX+set}"; then
  12570. lt_cv_path_LD=$lt_cv_path_LDCXX
  12571. else
  12572. $as_unset lt_cv_path_LD
  12573. fi
  12574. test -z "${LDCXX+set}" || LD=$LDCXX
  12575. CC=${CXX-"c++"}
  12576. CFLAGS=$CXXFLAGS
  12577. compiler=$CC
  12578. compiler_CXX=$CC
  12579. func_cc_basename $compiler
  12580. cc_basename=$func_cc_basename_result
  12581. if test -n "$compiler"; then
  12582. # We don't want -fno-exception when compiling C++ code, so set the
  12583. # no_builtin_flag separately
  12584. if test yes = "$GXX"; then
  12585. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12586. else
  12587. lt_prog_compiler_no_builtin_flag_CXX=
  12588. fi
  12589. if test yes = "$GXX"; then
  12590. # Set up default GNU C++ configuration
  12591. # Check whether --with-gnu-ld was given.
  12592. if test ${with_gnu_ld+y}
  12593. then :
  12594. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12595. else $as_nop
  12596. with_gnu_ld=no
  12597. fi
  12598. ac_prog=ld
  12599. if test yes = "$GCC"; then
  12600. # Check if gcc -print-prog-name=ld gives a path.
  12601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12602. printf %s "checking for ld used by $CC... " >&6; }
  12603. case $host in
  12604. *-*-mingw*)
  12605. # gcc leaves a trailing carriage return, which upsets mingw
  12606. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12607. *)
  12608. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12609. esac
  12610. case $ac_prog in
  12611. # Accept absolute paths.
  12612. [\\/]* | ?:[\\/]*)
  12613. re_direlt='/[^/][^/]*/\.\./'
  12614. # Canonicalize the pathname of ld
  12615. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12616. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12617. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12618. done
  12619. test -z "$LD" && LD=$ac_prog
  12620. ;;
  12621. "")
  12622. # If it fails, then pretend we aren't using GCC.
  12623. ac_prog=ld
  12624. ;;
  12625. *)
  12626. # If it is relative, then search for the first ld in PATH.
  12627. with_gnu_ld=unknown
  12628. ;;
  12629. esac
  12630. elif test yes = "$with_gnu_ld"; then
  12631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12632. printf %s "checking for GNU ld... " >&6; }
  12633. else
  12634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12635. printf %s "checking for non-GNU ld... " >&6; }
  12636. fi
  12637. if test ${lt_cv_path_LD+y}
  12638. then :
  12639. printf %s "(cached) " >&6
  12640. else $as_nop
  12641. if test -z "$LD"; then
  12642. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12643. for ac_dir in $PATH; do
  12644. IFS=$lt_save_ifs
  12645. test -z "$ac_dir" && ac_dir=.
  12646. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12647. lt_cv_path_LD=$ac_dir/$ac_prog
  12648. # Check to see if the program is GNU ld. I'd rather use --version,
  12649. # but apparently some variants of GNU ld only accept -v.
  12650. # Break only if it was the GNU/non-GNU ld that we prefer.
  12651. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12652. *GNU* | *'with BFD'*)
  12653. test no != "$with_gnu_ld" && break
  12654. ;;
  12655. *)
  12656. test yes != "$with_gnu_ld" && break
  12657. ;;
  12658. esac
  12659. fi
  12660. done
  12661. IFS=$lt_save_ifs
  12662. else
  12663. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12664. fi
  12665. fi
  12666. LD=$lt_cv_path_LD
  12667. if test -n "$LD"; then
  12668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12669. printf "%s\n" "$LD" >&6; }
  12670. else
  12671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12672. printf "%s\n" "no" >&6; }
  12673. fi
  12674. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12676. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12677. if test ${lt_cv_prog_gnu_ld+y}
  12678. then :
  12679. printf %s "(cached) " >&6
  12680. else $as_nop
  12681. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12682. case `$LD -v 2>&1 </dev/null` in
  12683. *GNU* | *'with BFD'*)
  12684. lt_cv_prog_gnu_ld=yes
  12685. ;;
  12686. *)
  12687. lt_cv_prog_gnu_ld=no
  12688. ;;
  12689. esac
  12690. fi
  12691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12692. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12693. with_gnu_ld=$lt_cv_prog_gnu_ld
  12694. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12695. # archiving commands below assume that GNU ld is being used.
  12696. if test yes = "$with_gnu_ld"; then
  12697. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12698. 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'
  12699. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12700. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12701. # If archive_cmds runs LD, not CC, wlarc should be empty
  12702. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12703. # investigate it a little bit more. (MM)
  12704. wlarc='$wl'
  12705. # ancient GNU ld didn't support --whole-archive et. al.
  12706. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12707. $GREP 'no-whole-archive' > /dev/null; then
  12708. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12709. else
  12710. whole_archive_flag_spec_CXX=
  12711. fi
  12712. else
  12713. with_gnu_ld=no
  12714. wlarc=
  12715. # A generic and very simple default shared library creation
  12716. # command for GNU C++ for the case where it uses the native
  12717. # linker, instead of GNU ld. If possible, this setting should
  12718. # overridden to take advantage of the native linker features on
  12719. # the platform it is being used on.
  12720. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12721. fi
  12722. # Commands to make compiler produce verbose output that lists
  12723. # what "hidden" libraries, object files and flags are used when
  12724. # linking a shared library.
  12725. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12726. else
  12727. GXX=no
  12728. with_gnu_ld=no
  12729. wlarc=
  12730. fi
  12731. # PORTME: fill in a description of your system's C++ link characteristics
  12732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12733. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12734. ld_shlibs_CXX=yes
  12735. case $host_os in
  12736. aix3*)
  12737. # FIXME: insert proper C++ library support
  12738. ld_shlibs_CXX=no
  12739. ;;
  12740. aix[4-9]*)
  12741. if test ia64 = "$host_cpu"; then
  12742. # On IA64, the linker does run time linking by default, so we don't
  12743. # have to do anything special.
  12744. aix_use_runtimelinking=no
  12745. exp_sym_flag='-Bexport'
  12746. no_entry_flag=
  12747. else
  12748. aix_use_runtimelinking=no
  12749. # Test if we are trying to use run time linking or normal
  12750. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12751. # have runtime linking enabled, and use it for executables.
  12752. # For shared libraries, we enable/disable runtime linking
  12753. # depending on the kind of the shared library created -
  12754. # when "with_aix_soname,aix_use_runtimelinking" is:
  12755. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12756. # "aix,yes" lib.so shared, rtl:yes, for executables
  12757. # lib.a static archive
  12758. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12759. # lib.a(lib.so.V) shared, rtl:no, for executables
  12760. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12761. # lib.a(lib.so.V) shared, rtl:no
  12762. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12763. # lib.a static archive
  12764. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12765. for ld_flag in $LDFLAGS; do
  12766. case $ld_flag in
  12767. *-brtl*)
  12768. aix_use_runtimelinking=yes
  12769. break
  12770. ;;
  12771. esac
  12772. done
  12773. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12774. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12775. # so we don't have lib.a shared libs to link our executables.
  12776. # We have to force runtime linking in this case.
  12777. aix_use_runtimelinking=yes
  12778. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12779. fi
  12780. ;;
  12781. esac
  12782. exp_sym_flag='-bexport'
  12783. no_entry_flag='-bnoentry'
  12784. fi
  12785. # When large executables or shared objects are built, AIX ld can
  12786. # have problems creating the table of contents. If linking a library
  12787. # or program results in "error TOC overflow" add -mminimal-toc to
  12788. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12789. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12790. archive_cmds_CXX=''
  12791. hardcode_direct_CXX=yes
  12792. hardcode_direct_absolute_CXX=yes
  12793. hardcode_libdir_separator_CXX=':'
  12794. link_all_deplibs_CXX=yes
  12795. file_list_spec_CXX='$wl-f,'
  12796. case $with_aix_soname,$aix_use_runtimelinking in
  12797. aix,*) ;; # no import file
  12798. svr4,* | *,yes) # use import file
  12799. # The Import File defines what to hardcode.
  12800. hardcode_direct_CXX=no
  12801. hardcode_direct_absolute_CXX=no
  12802. ;;
  12803. esac
  12804. if test yes = "$GXX"; then
  12805. case $host_os in aix4.[012]|aix4.[012].*)
  12806. # We only want to do this on AIX 4.2 and lower, the check
  12807. # below for broken collect2 doesn't work under 4.3+
  12808. collect2name=`$CC -print-prog-name=collect2`
  12809. if test -f "$collect2name" &&
  12810. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12811. then
  12812. # We have reworked collect2
  12813. :
  12814. else
  12815. # We have old collect2
  12816. hardcode_direct_CXX=unsupported
  12817. # It fails to find uninstalled libraries when the uninstalled
  12818. # path is not listed in the libpath. Setting hardcode_minus_L
  12819. # to unsupported forces relinking
  12820. hardcode_minus_L_CXX=yes
  12821. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12822. hardcode_libdir_separator_CXX=
  12823. fi
  12824. esac
  12825. shared_flag='-shared'
  12826. if test yes = "$aix_use_runtimelinking"; then
  12827. shared_flag=$shared_flag' $wl-G'
  12828. fi
  12829. # Need to ensure runtime linking is disabled for the traditional
  12830. # shared library, or the linker may eventually find shared libraries
  12831. # /with/ Import File - we do not want to mix them.
  12832. shared_flag_aix='-shared'
  12833. shared_flag_svr4='-shared $wl-G'
  12834. else
  12835. # not using gcc
  12836. if test ia64 = "$host_cpu"; then
  12837. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12838. # chokes on -Wl,-G. The following line is correct:
  12839. shared_flag='-G'
  12840. else
  12841. if test yes = "$aix_use_runtimelinking"; then
  12842. shared_flag='$wl-G'
  12843. else
  12844. shared_flag='$wl-bM:SRE'
  12845. fi
  12846. shared_flag_aix='$wl-bM:SRE'
  12847. shared_flag_svr4='$wl-G'
  12848. fi
  12849. fi
  12850. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12851. # It seems that -bexpall does not export symbols beginning with
  12852. # underscore (_), so it is better to generate a list of symbols to
  12853. # export.
  12854. always_export_symbols_CXX=yes
  12855. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12856. # Warning - without using the other runtime loading flags (-brtl),
  12857. # -berok will link without error, but may produce a broken library.
  12858. # The "-G" linker flag allows undefined symbols.
  12859. no_undefined_flag_CXX='-bernotok'
  12860. # Determine the default libpath from the value encoded in an empty
  12861. # executable.
  12862. if test set = "${lt_cv_aix_libpath+set}"; then
  12863. aix_libpath=$lt_cv_aix_libpath
  12864. else
  12865. if test ${lt_cv_aix_libpath__CXX+y}
  12866. then :
  12867. printf %s "(cached) " >&6
  12868. else $as_nop
  12869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12870. /* end confdefs.h. */
  12871. int
  12872. main (void)
  12873. {
  12874. ;
  12875. return 0;
  12876. }
  12877. _ACEOF
  12878. if ac_fn_cxx_try_link "$LINENO"
  12879. then :
  12880. lt_aix_libpath_sed='
  12881. /Import File Strings/,/^$/ {
  12882. /^0/ {
  12883. s/^0 *\([^ ]*\) *$/\1/
  12884. p
  12885. }
  12886. }'
  12887. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12888. # Check for a 64-bit object if we didn't find anything.
  12889. if test -z "$lt_cv_aix_libpath__CXX"; then
  12890. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12891. fi
  12892. fi
  12893. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12894. conftest$ac_exeext conftest.$ac_ext
  12895. if test -z "$lt_cv_aix_libpath__CXX"; then
  12896. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12897. fi
  12898. fi
  12899. aix_libpath=$lt_cv_aix_libpath__CXX
  12900. fi
  12901. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12902. 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
  12903. else
  12904. if test ia64 = "$host_cpu"; then
  12905. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12906. allow_undefined_flag_CXX="-z nodefs"
  12907. 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"
  12908. else
  12909. # Determine the default libpath from the value encoded in an
  12910. # empty executable.
  12911. if test set = "${lt_cv_aix_libpath+set}"; then
  12912. aix_libpath=$lt_cv_aix_libpath
  12913. else
  12914. if test ${lt_cv_aix_libpath__CXX+y}
  12915. then :
  12916. printf %s "(cached) " >&6
  12917. else $as_nop
  12918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12919. /* end confdefs.h. */
  12920. int
  12921. main (void)
  12922. {
  12923. ;
  12924. return 0;
  12925. }
  12926. _ACEOF
  12927. if ac_fn_cxx_try_link "$LINENO"
  12928. then :
  12929. lt_aix_libpath_sed='
  12930. /Import File Strings/,/^$/ {
  12931. /^0/ {
  12932. s/^0 *\([^ ]*\) *$/\1/
  12933. p
  12934. }
  12935. }'
  12936. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12937. # Check for a 64-bit object if we didn't find anything.
  12938. if test -z "$lt_cv_aix_libpath__CXX"; then
  12939. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12940. fi
  12941. fi
  12942. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12943. conftest$ac_exeext conftest.$ac_ext
  12944. if test -z "$lt_cv_aix_libpath__CXX"; then
  12945. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12946. fi
  12947. fi
  12948. aix_libpath=$lt_cv_aix_libpath__CXX
  12949. fi
  12950. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12951. # Warning - without using the other run time loading flags,
  12952. # -berok will link without error, but may produce a broken library.
  12953. no_undefined_flag_CXX=' $wl-bernotok'
  12954. allow_undefined_flag_CXX=' $wl-berok'
  12955. if test yes = "$with_gnu_ld"; then
  12956. # We only use this code for GNU lds that support --whole-archive.
  12957. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12958. else
  12959. # Exported symbols can be pulled into shared objects from archives
  12960. whole_archive_flag_spec_CXX='$convenience'
  12961. fi
  12962. archive_cmds_need_lc_CXX=yes
  12963. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12964. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12965. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12966. if test svr4 != "$with_aix_soname"; then
  12967. # This is similar to how AIX traditionally builds its shared
  12968. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12969. 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'
  12970. fi
  12971. if test aix != "$with_aix_soname"; then
  12972. 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'
  12973. else
  12974. # used by -dlpreopen to get the symbols
  12975. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12976. fi
  12977. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12978. fi
  12979. fi
  12980. ;;
  12981. beos*)
  12982. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12983. allow_undefined_flag_CXX=unsupported
  12984. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12985. # support --undefined. This deserves some investigation. FIXME
  12986. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12987. else
  12988. ld_shlibs_CXX=no
  12989. fi
  12990. ;;
  12991. chorus*)
  12992. case $cc_basename in
  12993. *)
  12994. # FIXME: insert proper C++ library support
  12995. ld_shlibs_CXX=no
  12996. ;;
  12997. esac
  12998. ;;
  12999. cygwin* | mingw* | pw32* | cegcc*)
  13000. case $GXX,$cc_basename in
  13001. ,cl* | no,cl*)
  13002. # Native MSVC
  13003. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13004. # no search path for DLLs.
  13005. hardcode_libdir_flag_spec_CXX=' '
  13006. allow_undefined_flag_CXX=unsupported
  13007. always_export_symbols_CXX=yes
  13008. file_list_spec_CXX='@'
  13009. # Tell ltmain to make .lib files, not .a files.
  13010. libext=lib
  13011. # Tell ltmain to make .dll files, not .so files.
  13012. shrext_cmds=.dll
  13013. # FIXME: Setting linknames here is a bad hack.
  13014. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13015. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13016. cp "$export_symbols" "$output_objdir/$soname.def";
  13017. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13018. else
  13019. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13020. fi~
  13021. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13022. linknames='
  13023. # The linker will not automatically build a static lib if we build a DLL.
  13024. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13025. enable_shared_with_static_runtimes_CXX=yes
  13026. # Don't use ranlib
  13027. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13028. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13029. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13030. case $lt_outputfile in
  13031. *.exe|*.EXE) ;;
  13032. *)
  13033. lt_outputfile=$lt_outputfile.exe
  13034. lt_tool_outputfile=$lt_tool_outputfile.exe
  13035. ;;
  13036. esac~
  13037. func_to_tool_file "$lt_outputfile"~
  13038. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13039. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13040. $RM "$lt_outputfile.manifest";
  13041. fi'
  13042. ;;
  13043. *)
  13044. # g++
  13045. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13046. # as there is no search path for DLLs.
  13047. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13048. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13049. allow_undefined_flag_CXX=unsupported
  13050. always_export_symbols_CXX=no
  13051. enable_shared_with_static_runtimes_CXX=yes
  13052. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13053. 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'
  13054. # If the export-symbols file already is a .def file, use it as
  13055. # is; otherwise, prepend EXPORTS...
  13056. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13057. cp $export_symbols $output_objdir/$soname.def;
  13058. else
  13059. echo EXPORTS > $output_objdir/$soname.def;
  13060. cat $export_symbols >> $output_objdir/$soname.def;
  13061. fi~
  13062. $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'
  13063. else
  13064. ld_shlibs_CXX=no
  13065. fi
  13066. ;;
  13067. esac
  13068. ;;
  13069. darwin* | rhapsody*)
  13070. archive_cmds_need_lc_CXX=no
  13071. hardcode_direct_CXX=no
  13072. hardcode_automatic_CXX=yes
  13073. hardcode_shlibpath_var_CXX=unsupported
  13074. if test yes = "$lt_cv_ld_force_load"; then
  13075. 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\"`'
  13076. else
  13077. whole_archive_flag_spec_CXX=''
  13078. fi
  13079. link_all_deplibs_CXX=yes
  13080. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13081. case $cc_basename in
  13082. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13083. *) _lt_dar_can_shared=$GCC ;;
  13084. esac
  13085. if test yes = "$_lt_dar_can_shared"; then
  13086. output_verbose_link_cmd=func_echo_all
  13087. 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"
  13088. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13089. 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"
  13090. 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"
  13091. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13092. 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"
  13093. 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"
  13094. fi
  13095. else
  13096. ld_shlibs_CXX=no
  13097. fi
  13098. ;;
  13099. os2*)
  13100. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13101. hardcode_minus_L_CXX=yes
  13102. allow_undefined_flag_CXX=unsupported
  13103. shrext_cmds=.dll
  13104. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13105. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13106. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13107. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13108. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13109. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13110. emximp -o $lib $output_objdir/$libname.def'
  13111. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13112. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13113. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13114. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13115. prefix_cmds="$SED"~
  13116. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13117. prefix_cmds="$prefix_cmds -e 1d";
  13118. fi~
  13119. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13120. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13121. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13122. emximp -o $lib $output_objdir/$libname.def'
  13123. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13124. enable_shared_with_static_runtimes_CXX=yes
  13125. file_list_spec_CXX='@'
  13126. ;;
  13127. dgux*)
  13128. case $cc_basename in
  13129. ec++*)
  13130. # FIXME: insert proper C++ library support
  13131. ld_shlibs_CXX=no
  13132. ;;
  13133. ghcx*)
  13134. # Green Hills C++ Compiler
  13135. # FIXME: insert proper C++ library support
  13136. ld_shlibs_CXX=no
  13137. ;;
  13138. *)
  13139. # FIXME: insert proper C++ library support
  13140. ld_shlibs_CXX=no
  13141. ;;
  13142. esac
  13143. ;;
  13144. freebsd2.*)
  13145. # C++ shared libraries reported to be fairly broken before
  13146. # switch to ELF
  13147. ld_shlibs_CXX=no
  13148. ;;
  13149. freebsd-elf*)
  13150. archive_cmds_need_lc_CXX=no
  13151. ;;
  13152. freebsd* | dragonfly* | midnightbsd*)
  13153. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13154. # conventions
  13155. ld_shlibs_CXX=yes
  13156. ;;
  13157. haiku*)
  13158. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13159. link_all_deplibs_CXX=yes
  13160. ;;
  13161. hpux9*)
  13162. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13163. hardcode_libdir_separator_CXX=:
  13164. export_dynamic_flag_spec_CXX='$wl-E'
  13165. hardcode_direct_CXX=yes
  13166. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13167. # but as the default
  13168. # location of the library.
  13169. case $cc_basename in
  13170. CC*)
  13171. # FIXME: insert proper C++ library support
  13172. ld_shlibs_CXX=no
  13173. ;;
  13174. aCC*)
  13175. 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'
  13176. # Commands to make compiler produce verbose output that lists
  13177. # what "hidden" libraries, object files and flags are used when
  13178. # linking a shared library.
  13179. #
  13180. # There doesn't appear to be a way to prevent this compiler from
  13181. # explicitly linking system object files so we need to strip them
  13182. # from the output so that they don't get included in the library
  13183. # dependencies.
  13184. 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"'
  13185. ;;
  13186. *)
  13187. if test yes = "$GXX"; then
  13188. 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'
  13189. else
  13190. # FIXME: insert proper C++ library support
  13191. ld_shlibs_CXX=no
  13192. fi
  13193. ;;
  13194. esac
  13195. ;;
  13196. hpux10*|hpux11*)
  13197. if test no = "$with_gnu_ld"; then
  13198. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13199. hardcode_libdir_separator_CXX=:
  13200. case $host_cpu in
  13201. hppa*64*|ia64*)
  13202. ;;
  13203. *)
  13204. export_dynamic_flag_spec_CXX='$wl-E'
  13205. ;;
  13206. esac
  13207. fi
  13208. case $host_cpu in
  13209. hppa*64*|ia64*)
  13210. hardcode_direct_CXX=no
  13211. hardcode_shlibpath_var_CXX=no
  13212. ;;
  13213. *)
  13214. hardcode_direct_CXX=yes
  13215. hardcode_direct_absolute_CXX=yes
  13216. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13217. # but as the default
  13218. # location of the library.
  13219. ;;
  13220. esac
  13221. case $cc_basename in
  13222. CC*)
  13223. # FIXME: insert proper C++ library support
  13224. ld_shlibs_CXX=no
  13225. ;;
  13226. aCC*)
  13227. case $host_cpu in
  13228. hppa*64*)
  13229. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13230. ;;
  13231. ia64*)
  13232. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13233. ;;
  13234. *)
  13235. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13236. ;;
  13237. esac
  13238. # Commands to make compiler produce verbose output that lists
  13239. # what "hidden" libraries, object files and flags are used when
  13240. # linking a shared library.
  13241. #
  13242. # There doesn't appear to be a way to prevent this compiler from
  13243. # explicitly linking system object files so we need to strip them
  13244. # from the output so that they don't get included in the library
  13245. # dependencies.
  13246. 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"'
  13247. ;;
  13248. *)
  13249. if test yes = "$GXX"; then
  13250. if test no = "$with_gnu_ld"; then
  13251. case $host_cpu in
  13252. hppa*64*)
  13253. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13254. ;;
  13255. ia64*)
  13256. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13257. ;;
  13258. *)
  13259. 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'
  13260. ;;
  13261. esac
  13262. fi
  13263. else
  13264. # FIXME: insert proper C++ library support
  13265. ld_shlibs_CXX=no
  13266. fi
  13267. ;;
  13268. esac
  13269. ;;
  13270. interix[3-9]*)
  13271. hardcode_direct_CXX=no
  13272. hardcode_shlibpath_var_CXX=no
  13273. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13274. export_dynamic_flag_spec_CXX='$wl-E'
  13275. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13276. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13277. # default) and relocated if they conflict, which is a slow very memory
  13278. # consuming and fragmenting process. To avoid this, we pick a random,
  13279. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13280. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13281. 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'
  13282. 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'
  13283. ;;
  13284. irix5* | irix6*)
  13285. case $cc_basename in
  13286. CC*)
  13287. # SGI C++
  13288. 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'
  13289. # Archives containing C++ object files must be created using
  13290. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13291. # necessary to make sure instantiated templates are included
  13292. # in the archive.
  13293. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13294. ;;
  13295. *)
  13296. if test yes = "$GXX"; then
  13297. if test no = "$with_gnu_ld"; then
  13298. 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'
  13299. else
  13300. 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'
  13301. fi
  13302. fi
  13303. link_all_deplibs_CXX=yes
  13304. ;;
  13305. esac
  13306. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13307. hardcode_libdir_separator_CXX=:
  13308. inherit_rpath_CXX=yes
  13309. ;;
  13310. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13311. case $cc_basename in
  13312. KCC*)
  13313. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13314. # KCC will only create a shared library if the output file
  13315. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13316. # to its proper name (with version) after linking.
  13317. 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'
  13318. 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'
  13319. # Commands to make compiler produce verbose output that lists
  13320. # what "hidden" libraries, object files and flags are used when
  13321. # linking a shared library.
  13322. #
  13323. # There doesn't appear to be a way to prevent this compiler from
  13324. # explicitly linking system object files so we need to strip them
  13325. # from the output so that they don't get included in the library
  13326. # dependencies.
  13327. 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"'
  13328. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13329. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13330. # Archives containing C++ object files must be created using
  13331. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13332. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13333. ;;
  13334. icpc* | ecpc* )
  13335. # Intel C++
  13336. with_gnu_ld=yes
  13337. # version 8.0 and above of icpc choke on multiply defined symbols
  13338. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13339. # earlier do not add the objects themselves.
  13340. case `$CC -V 2>&1` in
  13341. *"Version 7."*)
  13342. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13343. 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'
  13344. ;;
  13345. *) # Version 8.0 or newer
  13346. tmp_idyn=
  13347. case $host_cpu in
  13348. ia64*) tmp_idyn=' -i_dynamic';;
  13349. esac
  13350. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13351. 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'
  13352. ;;
  13353. esac
  13354. archive_cmds_need_lc_CXX=no
  13355. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13356. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13357. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13358. ;;
  13359. pgCC* | pgcpp*)
  13360. # Portland Group C++ compiler
  13361. case `$CC -V` in
  13362. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13363. prelink_cmds_CXX='tpldir=Template.dir~
  13364. rm -rf $tpldir~
  13365. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13366. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13367. old_archive_cmds_CXX='tpldir=Template.dir~
  13368. rm -rf $tpldir~
  13369. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13370. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13371. $RANLIB $oldlib'
  13372. archive_cmds_CXX='tpldir=Template.dir~
  13373. rm -rf $tpldir~
  13374. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13375. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13376. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13377. rm -rf $tpldir~
  13378. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13379. $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'
  13380. ;;
  13381. *) # Version 6 and above use weak symbols
  13382. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13383. 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'
  13384. ;;
  13385. esac
  13386. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13387. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13388. 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'
  13389. ;;
  13390. cxx*)
  13391. # Compaq C++
  13392. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13393. 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'
  13394. runpath_var=LD_RUN_PATH
  13395. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13396. hardcode_libdir_separator_CXX=:
  13397. # Commands to make compiler produce verbose output that lists
  13398. # what "hidden" libraries, object files and flags are used when
  13399. # linking a shared library.
  13400. #
  13401. # There doesn't appear to be a way to prevent this compiler from
  13402. # explicitly linking system object files so we need to strip them
  13403. # from the output so that they don't get included in the library
  13404. # dependencies.
  13405. 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'
  13406. ;;
  13407. xl* | mpixl* | bgxl*)
  13408. # IBM XL 8.0 on PPC, with GNU ld
  13409. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13410. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13411. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13412. if test yes = "$supports_anon_versioning"; then
  13413. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13414. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13415. echo "local: *; };" >> $output_objdir/$libname.ver~
  13416. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13417. fi
  13418. ;;
  13419. *)
  13420. case `$CC -V 2>&1 | sed 5q` in
  13421. *Sun\ C*)
  13422. # Sun C++ 5.9
  13423. no_undefined_flag_CXX=' -zdefs'
  13424. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13425. 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'
  13426. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13427. 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'
  13428. compiler_needs_object_CXX=yes
  13429. # Not sure whether something based on
  13430. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13431. # would be better.
  13432. output_verbose_link_cmd='func_echo_all'
  13433. # Archives containing C++ object files must be created using
  13434. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13435. # necessary to make sure instantiated templates are included
  13436. # in the archive.
  13437. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13438. ;;
  13439. esac
  13440. ;;
  13441. esac
  13442. ;;
  13443. lynxos*)
  13444. # FIXME: insert proper C++ library support
  13445. ld_shlibs_CXX=no
  13446. ;;
  13447. m88k*)
  13448. # FIXME: insert proper C++ library support
  13449. ld_shlibs_CXX=no
  13450. ;;
  13451. mvs*)
  13452. case $cc_basename in
  13453. cxx*)
  13454. # FIXME: insert proper C++ library support
  13455. ld_shlibs_CXX=no
  13456. ;;
  13457. *)
  13458. # FIXME: insert proper C++ library support
  13459. ld_shlibs_CXX=no
  13460. ;;
  13461. esac
  13462. ;;
  13463. netbsd*)
  13464. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13465. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13466. wlarc=
  13467. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13468. hardcode_direct_CXX=yes
  13469. hardcode_shlibpath_var_CXX=no
  13470. fi
  13471. # Workaround some broken pre-1.5 toolchains
  13472. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13473. ;;
  13474. *nto* | *qnx*)
  13475. ld_shlibs_CXX=yes
  13476. ;;
  13477. openbsd* | bitrig*)
  13478. if test -f /usr/libexec/ld.so; then
  13479. hardcode_direct_CXX=yes
  13480. hardcode_shlibpath_var_CXX=no
  13481. hardcode_direct_absolute_CXX=yes
  13482. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13483. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13484. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13485. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13486. export_dynamic_flag_spec_CXX='$wl-E'
  13487. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13488. fi
  13489. output_verbose_link_cmd=func_echo_all
  13490. else
  13491. ld_shlibs_CXX=no
  13492. fi
  13493. ;;
  13494. osf3* | osf4* | osf5*)
  13495. case $cc_basename in
  13496. KCC*)
  13497. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13498. # KCC will only create a shared library if the output file
  13499. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13500. # to its proper name (with version) after linking.
  13501. 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'
  13502. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13503. hardcode_libdir_separator_CXX=:
  13504. # Archives containing C++ object files must be created using
  13505. # the KAI C++ compiler.
  13506. case $host in
  13507. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13508. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13509. esac
  13510. ;;
  13511. RCC*)
  13512. # Rational C++ 2.4.1
  13513. # FIXME: insert proper C++ library support
  13514. ld_shlibs_CXX=no
  13515. ;;
  13516. cxx*)
  13517. case $host in
  13518. osf3*)
  13519. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13520. 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'
  13521. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13522. ;;
  13523. *)
  13524. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13525. 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'
  13526. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13527. echo "-hidden">> $lib.exp~
  13528. $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~
  13529. $RM $lib.exp'
  13530. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13531. ;;
  13532. esac
  13533. hardcode_libdir_separator_CXX=:
  13534. # Commands to make compiler produce verbose output that lists
  13535. # what "hidden" libraries, object files and flags are used when
  13536. # linking a shared library.
  13537. #
  13538. # There doesn't appear to be a way to prevent this compiler from
  13539. # explicitly linking system object files so we need to strip them
  13540. # from the output so that they don't get included in the library
  13541. # dependencies.
  13542. 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"'
  13543. ;;
  13544. *)
  13545. if test yes,no = "$GXX,$with_gnu_ld"; then
  13546. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13547. case $host in
  13548. osf3*)
  13549. 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'
  13550. ;;
  13551. *)
  13552. 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'
  13553. ;;
  13554. esac
  13555. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13556. hardcode_libdir_separator_CXX=:
  13557. # Commands to make compiler produce verbose output that lists
  13558. # what "hidden" libraries, object files and flags are used when
  13559. # linking a shared library.
  13560. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13561. else
  13562. # FIXME: insert proper C++ library support
  13563. ld_shlibs_CXX=no
  13564. fi
  13565. ;;
  13566. esac
  13567. ;;
  13568. psos*)
  13569. # FIXME: insert proper C++ library support
  13570. ld_shlibs_CXX=no
  13571. ;;
  13572. sunos4*)
  13573. case $cc_basename in
  13574. CC*)
  13575. # Sun C++ 4.x
  13576. # FIXME: insert proper C++ library support
  13577. ld_shlibs_CXX=no
  13578. ;;
  13579. lcc*)
  13580. # Lucid
  13581. # FIXME: insert proper C++ library support
  13582. ld_shlibs_CXX=no
  13583. ;;
  13584. *)
  13585. # FIXME: insert proper C++ library support
  13586. ld_shlibs_CXX=no
  13587. ;;
  13588. esac
  13589. ;;
  13590. solaris*)
  13591. case $cc_basename in
  13592. CC* | sunCC*)
  13593. # Sun C++ 4.2, 5.x and Centerline C++
  13594. archive_cmds_need_lc_CXX=yes
  13595. no_undefined_flag_CXX=' -zdefs'
  13596. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13597. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13598. $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'
  13599. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13600. hardcode_shlibpath_var_CXX=no
  13601. case $host_os in
  13602. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13603. *)
  13604. # The compiler driver will combine and reorder linker options,
  13605. # but understands '-z linker_flag'.
  13606. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13607. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13608. ;;
  13609. esac
  13610. link_all_deplibs_CXX=yes
  13611. output_verbose_link_cmd='func_echo_all'
  13612. # Archives containing C++ object files must be created using
  13613. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13614. # necessary to make sure instantiated templates are included
  13615. # in the archive.
  13616. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13617. ;;
  13618. gcx*)
  13619. # Green Hills C++ Compiler
  13620. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13621. # The C++ compiler must be used to create the archive.
  13622. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13623. ;;
  13624. *)
  13625. # GNU C++ compiler with Solaris linker
  13626. if test yes,no = "$GXX,$with_gnu_ld"; then
  13627. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13628. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13629. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13630. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13631. $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'
  13632. # Commands to make compiler produce verbose output that lists
  13633. # what "hidden" libraries, object files and flags are used when
  13634. # linking a shared library.
  13635. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13636. else
  13637. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13638. # platform.
  13639. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13640. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13641. $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'
  13642. # Commands to make compiler produce verbose output that lists
  13643. # what "hidden" libraries, object files and flags are used when
  13644. # linking a shared library.
  13645. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13646. fi
  13647. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13648. case $host_os in
  13649. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13650. *)
  13651. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13652. ;;
  13653. esac
  13654. fi
  13655. ;;
  13656. esac
  13657. ;;
  13658. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13659. no_undefined_flag_CXX='$wl-z,text'
  13660. archive_cmds_need_lc_CXX=no
  13661. hardcode_shlibpath_var_CXX=no
  13662. runpath_var='LD_RUN_PATH'
  13663. case $cc_basename in
  13664. CC*)
  13665. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13666. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13667. ;;
  13668. *)
  13669. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13670. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13671. ;;
  13672. esac
  13673. ;;
  13674. sysv5* | sco3.2v5* | sco5v6*)
  13675. # Note: We CANNOT use -z defs as we might desire, because we do not
  13676. # link with -lc, and that would cause any symbols used from libc to
  13677. # always be unresolved, which means just about no library would
  13678. # ever link correctly. If we're not using GNU ld we use -z text
  13679. # though, which does catch some bad symbols but isn't as heavy-handed
  13680. # as -z defs.
  13681. no_undefined_flag_CXX='$wl-z,text'
  13682. allow_undefined_flag_CXX='$wl-z,nodefs'
  13683. archive_cmds_need_lc_CXX=no
  13684. hardcode_shlibpath_var_CXX=no
  13685. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13686. hardcode_libdir_separator_CXX=':'
  13687. link_all_deplibs_CXX=yes
  13688. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13689. runpath_var='LD_RUN_PATH'
  13690. case $cc_basename in
  13691. CC*)
  13692. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13693. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13694. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13695. '"$old_archive_cmds_CXX"
  13696. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13697. '"$reload_cmds_CXX"
  13698. ;;
  13699. *)
  13700. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13701. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13702. ;;
  13703. esac
  13704. ;;
  13705. tandem*)
  13706. case $cc_basename in
  13707. NCC*)
  13708. # NonStop-UX NCC 3.20
  13709. # FIXME: insert proper C++ library support
  13710. ld_shlibs_CXX=no
  13711. ;;
  13712. *)
  13713. # FIXME: insert proper C++ library support
  13714. ld_shlibs_CXX=no
  13715. ;;
  13716. esac
  13717. ;;
  13718. vxworks*)
  13719. # FIXME: insert proper C++ library support
  13720. ld_shlibs_CXX=no
  13721. ;;
  13722. *)
  13723. # FIXME: insert proper C++ library support
  13724. ld_shlibs_CXX=no
  13725. ;;
  13726. esac
  13727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13728. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13729. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13730. GCC_CXX=$GXX
  13731. LD_CXX=$LD
  13732. ## CAVEAT EMPTOR:
  13733. ## There is no encapsulation within the following macros, do not change
  13734. ## the running order or otherwise move them around unless you know exactly
  13735. ## what you are doing...
  13736. # Dependencies to place before and after the object being linked:
  13737. predep_objects_CXX=
  13738. postdep_objects_CXX=
  13739. predeps_CXX=
  13740. postdeps_CXX=
  13741. compiler_lib_search_path_CXX=
  13742. cat > conftest.$ac_ext <<_LT_EOF
  13743. class Foo
  13744. {
  13745. public:
  13746. Foo (void) { a = 0; }
  13747. private:
  13748. int a;
  13749. };
  13750. _LT_EOF
  13751. _lt_libdeps_save_CFLAGS=$CFLAGS
  13752. case "$CC $CFLAGS " in #(
  13753. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13754. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13755. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13756. esac
  13757. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13758. (eval $ac_compile) 2>&5
  13759. ac_status=$?
  13760. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13761. test $ac_status = 0; }; then
  13762. # Parse the compiler output and extract the necessary
  13763. # objects, libraries and library flags.
  13764. # Sentinel used to keep track of whether or not we are before
  13765. # the conftest object file.
  13766. pre_test_object_deps_done=no
  13767. for p in `eval "$output_verbose_link_cmd"`; do
  13768. case $prev$p in
  13769. -L* | -R* | -l*)
  13770. # Some compilers place space between "-{L,R}" and the path.
  13771. # Remove the space.
  13772. if test x-L = "x$p" ||
  13773. test x-R = "x$p" ||
  13774. test x-l = "x$p"; then
  13775. prev=$p
  13776. continue
  13777. fi
  13778. # Expand the sysroot to ease extracting the directories later.
  13779. if test -z "$prev"; then
  13780. case $p in
  13781. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13782. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13783. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13784. esac
  13785. fi
  13786. case $p in
  13787. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13788. esac
  13789. if test no = "$pre_test_object_deps_done"; then
  13790. case $prev in
  13791. -L | -R)
  13792. # Internal compiler library paths should come after those
  13793. # provided the user. The postdeps already come after the
  13794. # user supplied libs so there is no need to process them.
  13795. if test -z "$compiler_lib_search_path_CXX"; then
  13796. compiler_lib_search_path_CXX=$prev$p
  13797. else
  13798. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13799. fi
  13800. ;;
  13801. # The "-l" case would never come before the object being
  13802. # linked, so don't bother handling this case.
  13803. esac
  13804. else
  13805. if test -z "$postdeps_CXX"; then
  13806. postdeps_CXX=$prev$p
  13807. else
  13808. postdeps_CXX="${postdeps_CXX} $prev$p"
  13809. fi
  13810. fi
  13811. prev=
  13812. ;;
  13813. *.lto.$objext) ;; # Ignore GCC LTO objects
  13814. *.$objext)
  13815. # This assumes that the test object file only shows up
  13816. # once in the compiler output.
  13817. if test "$p" = "conftest.$objext"; then
  13818. pre_test_object_deps_done=yes
  13819. continue
  13820. fi
  13821. if test no = "$pre_test_object_deps_done"; then
  13822. if test -z "$predep_objects_CXX"; then
  13823. predep_objects_CXX=$p
  13824. else
  13825. predep_objects_CXX="$predep_objects_CXX $p"
  13826. fi
  13827. else
  13828. if test -z "$postdep_objects_CXX"; then
  13829. postdep_objects_CXX=$p
  13830. else
  13831. postdep_objects_CXX="$postdep_objects_CXX $p"
  13832. fi
  13833. fi
  13834. ;;
  13835. *) ;; # Ignore the rest.
  13836. esac
  13837. done
  13838. # Clean up.
  13839. rm -f a.out a.exe
  13840. else
  13841. echo "libtool.m4: error: problem compiling CXX test program"
  13842. fi
  13843. $RM -f confest.$objext
  13844. CFLAGS=$_lt_libdeps_save_CFLAGS
  13845. # PORTME: override above test on systems where it is broken
  13846. case $host_os in
  13847. interix[3-9]*)
  13848. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13849. # hack all around it, let's just trust "g++" to DTRT.
  13850. predep_objects_CXX=
  13851. postdep_objects_CXX=
  13852. postdeps_CXX=
  13853. ;;
  13854. esac
  13855. case " $postdeps_CXX " in
  13856. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13857. esac
  13858. compiler_lib_search_dirs_CXX=
  13859. if test -n "${compiler_lib_search_path_CXX}"; then
  13860. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13861. fi
  13862. lt_prog_compiler_wl_CXX=
  13863. lt_prog_compiler_pic_CXX=
  13864. lt_prog_compiler_static_CXX=
  13865. # C++ specific cases for pic, static, wl, etc.
  13866. if test yes = "$GXX"; then
  13867. lt_prog_compiler_wl_CXX='-Wl,'
  13868. lt_prog_compiler_static_CXX='-static'
  13869. case $host_os in
  13870. aix*)
  13871. # All AIX code is PIC.
  13872. if test ia64 = "$host_cpu"; then
  13873. # AIX 5 now supports IA64 processor
  13874. lt_prog_compiler_static_CXX='-Bstatic'
  13875. fi
  13876. lt_prog_compiler_pic_CXX='-fPIC'
  13877. ;;
  13878. amigaos*)
  13879. case $host_cpu in
  13880. powerpc)
  13881. # see comment about AmigaOS4 .so support
  13882. lt_prog_compiler_pic_CXX='-fPIC'
  13883. ;;
  13884. m68k)
  13885. # FIXME: we need at least 68020 code to build shared libraries, but
  13886. # adding the '-m68020' flag to GCC prevents building anything better,
  13887. # like '-m68040'.
  13888. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13889. ;;
  13890. esac
  13891. ;;
  13892. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13893. # PIC is the default for these OSes.
  13894. ;;
  13895. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13896. # This hack is so that the source file can tell whether it is being
  13897. # built for inclusion in a dll (and should export symbols for example).
  13898. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13899. # (--disable-auto-import) libraries
  13900. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13901. case $host_os in
  13902. os2*)
  13903. lt_prog_compiler_static_CXX='$wl-static'
  13904. ;;
  13905. esac
  13906. ;;
  13907. darwin* | rhapsody*)
  13908. # PIC is the default on this platform
  13909. # Common symbols not allowed in MH_DYLIB files
  13910. lt_prog_compiler_pic_CXX='-fno-common'
  13911. ;;
  13912. *djgpp*)
  13913. # DJGPP does not support shared libraries at all
  13914. lt_prog_compiler_pic_CXX=
  13915. ;;
  13916. haiku*)
  13917. # PIC is the default for Haiku.
  13918. # The "-static" flag exists, but is broken.
  13919. lt_prog_compiler_static_CXX=
  13920. ;;
  13921. interix[3-9]*)
  13922. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13923. # Instead, we relocate shared libraries at runtime.
  13924. ;;
  13925. sysv4*MP*)
  13926. if test -d /usr/nec; then
  13927. lt_prog_compiler_pic_CXX=-Kconform_pic
  13928. fi
  13929. ;;
  13930. hpux*)
  13931. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13932. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13933. # sets the default TLS model and affects inlining.
  13934. case $host_cpu in
  13935. hppa*64*)
  13936. ;;
  13937. *)
  13938. lt_prog_compiler_pic_CXX='-fPIC'
  13939. ;;
  13940. esac
  13941. ;;
  13942. *qnx* | *nto*)
  13943. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13944. # it will coredump.
  13945. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13946. ;;
  13947. *)
  13948. lt_prog_compiler_pic_CXX='-fPIC'
  13949. ;;
  13950. esac
  13951. else
  13952. case $host_os in
  13953. aix[4-9]*)
  13954. # All AIX code is PIC.
  13955. if test ia64 = "$host_cpu"; then
  13956. # AIX 5 now supports IA64 processor
  13957. lt_prog_compiler_static_CXX='-Bstatic'
  13958. else
  13959. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13960. fi
  13961. ;;
  13962. chorus*)
  13963. case $cc_basename in
  13964. cxch68*)
  13965. # Green Hills C++ Compiler
  13966. # _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"
  13967. ;;
  13968. esac
  13969. ;;
  13970. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13971. # This hack is so that the source file can tell whether it is being
  13972. # built for inclusion in a dll (and should export symbols for example).
  13973. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13974. ;;
  13975. dgux*)
  13976. case $cc_basename in
  13977. ec++*)
  13978. lt_prog_compiler_pic_CXX='-KPIC'
  13979. ;;
  13980. ghcx*)
  13981. # Green Hills C++ Compiler
  13982. lt_prog_compiler_pic_CXX='-pic'
  13983. ;;
  13984. *)
  13985. ;;
  13986. esac
  13987. ;;
  13988. freebsd* | dragonfly* | midnightbsd*)
  13989. # FreeBSD uses GNU C++
  13990. ;;
  13991. hpux9* | hpux10* | hpux11*)
  13992. case $cc_basename in
  13993. CC*)
  13994. lt_prog_compiler_wl_CXX='-Wl,'
  13995. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13996. if test ia64 != "$host_cpu"; then
  13997. lt_prog_compiler_pic_CXX='+Z'
  13998. fi
  13999. ;;
  14000. aCC*)
  14001. lt_prog_compiler_wl_CXX='-Wl,'
  14002. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14003. case $host_cpu in
  14004. hppa*64*|ia64*)
  14005. # +Z the default
  14006. ;;
  14007. *)
  14008. lt_prog_compiler_pic_CXX='+Z'
  14009. ;;
  14010. esac
  14011. ;;
  14012. *)
  14013. ;;
  14014. esac
  14015. ;;
  14016. interix*)
  14017. # This is c89, which is MS Visual C++ (no shared libs)
  14018. # Anyone wants to do a port?
  14019. ;;
  14020. irix5* | irix6* | nonstopux*)
  14021. case $cc_basename in
  14022. CC*)
  14023. lt_prog_compiler_wl_CXX='-Wl,'
  14024. lt_prog_compiler_static_CXX='-non_shared'
  14025. # CC pic flag -KPIC is the default.
  14026. ;;
  14027. *)
  14028. ;;
  14029. esac
  14030. ;;
  14031. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14032. case $cc_basename in
  14033. KCC*)
  14034. # KAI C++ Compiler
  14035. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14036. lt_prog_compiler_pic_CXX='-fPIC'
  14037. ;;
  14038. ecpc* )
  14039. # old Intel C++ for x86_64, which still supported -KPIC.
  14040. lt_prog_compiler_wl_CXX='-Wl,'
  14041. lt_prog_compiler_pic_CXX='-KPIC'
  14042. lt_prog_compiler_static_CXX='-static'
  14043. ;;
  14044. icpc* )
  14045. # Intel C++, used to be incompatible with GCC.
  14046. # ICC 10 doesn't accept -KPIC any more.
  14047. lt_prog_compiler_wl_CXX='-Wl,'
  14048. lt_prog_compiler_pic_CXX='-fPIC'
  14049. lt_prog_compiler_static_CXX='-static'
  14050. ;;
  14051. pgCC* | pgcpp*)
  14052. # Portland Group C++ compiler
  14053. lt_prog_compiler_wl_CXX='-Wl,'
  14054. lt_prog_compiler_pic_CXX='-fpic'
  14055. lt_prog_compiler_static_CXX='-Bstatic'
  14056. ;;
  14057. cxx*)
  14058. # Compaq C++
  14059. # Make sure the PIC flag is empty. It appears that all Alpha
  14060. # Linux and Compaq Tru64 Unix objects are PIC.
  14061. lt_prog_compiler_pic_CXX=
  14062. lt_prog_compiler_static_CXX='-non_shared'
  14063. ;;
  14064. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14065. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14066. lt_prog_compiler_wl_CXX='-Wl,'
  14067. lt_prog_compiler_pic_CXX='-qpic'
  14068. lt_prog_compiler_static_CXX='-qstaticlink'
  14069. ;;
  14070. *)
  14071. case `$CC -V 2>&1 | sed 5q` in
  14072. *Sun\ C*)
  14073. # Sun C++ 5.9
  14074. lt_prog_compiler_pic_CXX='-KPIC'
  14075. lt_prog_compiler_static_CXX='-Bstatic'
  14076. lt_prog_compiler_wl_CXX='-Qoption ld '
  14077. ;;
  14078. esac
  14079. ;;
  14080. esac
  14081. ;;
  14082. lynxos*)
  14083. ;;
  14084. m88k*)
  14085. ;;
  14086. mvs*)
  14087. case $cc_basename in
  14088. cxx*)
  14089. lt_prog_compiler_pic_CXX='-W c,exportall'
  14090. ;;
  14091. *)
  14092. ;;
  14093. esac
  14094. ;;
  14095. netbsd*)
  14096. ;;
  14097. *qnx* | *nto*)
  14098. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14099. # it will coredump.
  14100. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14101. ;;
  14102. osf3* | osf4* | osf5*)
  14103. case $cc_basename in
  14104. KCC*)
  14105. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14106. ;;
  14107. RCC*)
  14108. # Rational C++ 2.4.1
  14109. lt_prog_compiler_pic_CXX='-pic'
  14110. ;;
  14111. cxx*)
  14112. # Digital/Compaq C++
  14113. lt_prog_compiler_wl_CXX='-Wl,'
  14114. # Make sure the PIC flag is empty. It appears that all Alpha
  14115. # Linux and Compaq Tru64 Unix objects are PIC.
  14116. lt_prog_compiler_pic_CXX=
  14117. lt_prog_compiler_static_CXX='-non_shared'
  14118. ;;
  14119. *)
  14120. ;;
  14121. esac
  14122. ;;
  14123. psos*)
  14124. ;;
  14125. solaris*)
  14126. case $cc_basename in
  14127. CC* | sunCC*)
  14128. # Sun C++ 4.2, 5.x and Centerline C++
  14129. lt_prog_compiler_pic_CXX='-KPIC'
  14130. lt_prog_compiler_static_CXX='-Bstatic'
  14131. lt_prog_compiler_wl_CXX='-Qoption ld '
  14132. ;;
  14133. gcx*)
  14134. # Green Hills C++ Compiler
  14135. lt_prog_compiler_pic_CXX='-PIC'
  14136. ;;
  14137. *)
  14138. ;;
  14139. esac
  14140. ;;
  14141. sunos4*)
  14142. case $cc_basename in
  14143. CC*)
  14144. # Sun C++ 4.x
  14145. lt_prog_compiler_pic_CXX='-pic'
  14146. lt_prog_compiler_static_CXX='-Bstatic'
  14147. ;;
  14148. lcc*)
  14149. # Lucid
  14150. lt_prog_compiler_pic_CXX='-pic'
  14151. ;;
  14152. *)
  14153. ;;
  14154. esac
  14155. ;;
  14156. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14157. case $cc_basename in
  14158. CC*)
  14159. lt_prog_compiler_wl_CXX='-Wl,'
  14160. lt_prog_compiler_pic_CXX='-KPIC'
  14161. lt_prog_compiler_static_CXX='-Bstatic'
  14162. ;;
  14163. esac
  14164. ;;
  14165. tandem*)
  14166. case $cc_basename in
  14167. NCC*)
  14168. # NonStop-UX NCC 3.20
  14169. lt_prog_compiler_pic_CXX='-KPIC'
  14170. ;;
  14171. *)
  14172. ;;
  14173. esac
  14174. ;;
  14175. vxworks*)
  14176. ;;
  14177. *)
  14178. lt_prog_compiler_can_build_shared_CXX=no
  14179. ;;
  14180. esac
  14181. fi
  14182. case $host_os in
  14183. # For platforms that do not support PIC, -DPIC is meaningless:
  14184. *djgpp*)
  14185. lt_prog_compiler_pic_CXX=
  14186. ;;
  14187. *)
  14188. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14189. ;;
  14190. esac
  14191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14192. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14193. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14194. then :
  14195. printf %s "(cached) " >&6
  14196. else $as_nop
  14197. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14198. fi
  14199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14200. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14201. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14202. #
  14203. # Check to make sure the PIC flag actually works.
  14204. #
  14205. if test -n "$lt_prog_compiler_pic_CXX"; then
  14206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14207. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14208. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14209. then :
  14210. printf %s "(cached) " >&6
  14211. else $as_nop
  14212. lt_cv_prog_compiler_pic_works_CXX=no
  14213. ac_outfile=conftest.$ac_objext
  14214. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14215. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14216. # Insert the option either (1) after the last *FLAGS variable, or
  14217. # (2) before a word containing "conftest.", or (3) at the end.
  14218. # Note that $ac_compile itself does not contain backslashes and begins
  14219. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14220. # The option is referenced via a variable to avoid confusing sed.
  14221. lt_compile=`echo "$ac_compile" | $SED \
  14222. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14223. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14224. -e 's:$: $lt_compiler_flag:'`
  14225. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14226. (eval "$lt_compile" 2>conftest.err)
  14227. ac_status=$?
  14228. cat conftest.err >&5
  14229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14230. if (exit $ac_status) && test -s "$ac_outfile"; then
  14231. # The compiler can only warn and ignore the option if not recognized
  14232. # So say no if there are warnings other than the usual output.
  14233. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14234. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14235. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14236. lt_cv_prog_compiler_pic_works_CXX=yes
  14237. fi
  14238. fi
  14239. $RM conftest*
  14240. fi
  14241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14242. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14243. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14244. case $lt_prog_compiler_pic_CXX in
  14245. "" | " "*) ;;
  14246. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14247. esac
  14248. else
  14249. lt_prog_compiler_pic_CXX=
  14250. lt_prog_compiler_can_build_shared_CXX=no
  14251. fi
  14252. fi
  14253. #
  14254. # Check to make sure the static flag actually works.
  14255. #
  14256. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14258. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14259. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14260. then :
  14261. printf %s "(cached) " >&6
  14262. else $as_nop
  14263. lt_cv_prog_compiler_static_works_CXX=no
  14264. save_LDFLAGS=$LDFLAGS
  14265. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14266. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14267. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14268. # The linker can only warn and ignore the option if not recognized
  14269. # So say no if there are warnings
  14270. if test -s conftest.err; then
  14271. # Append any errors to the config.log.
  14272. cat conftest.err 1>&5
  14273. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14274. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14275. if diff conftest.exp conftest.er2 >/dev/null; then
  14276. lt_cv_prog_compiler_static_works_CXX=yes
  14277. fi
  14278. else
  14279. lt_cv_prog_compiler_static_works_CXX=yes
  14280. fi
  14281. fi
  14282. $RM -r conftest*
  14283. LDFLAGS=$save_LDFLAGS
  14284. fi
  14285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14286. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14287. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14288. :
  14289. else
  14290. lt_prog_compiler_static_CXX=
  14291. fi
  14292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14293. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14294. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14295. then :
  14296. printf %s "(cached) " >&6
  14297. else $as_nop
  14298. lt_cv_prog_compiler_c_o_CXX=no
  14299. $RM -r conftest 2>/dev/null
  14300. mkdir conftest
  14301. cd conftest
  14302. mkdir out
  14303. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14304. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14305. # Insert the option either (1) after the last *FLAGS variable, or
  14306. # (2) before a word containing "conftest.", or (3) at the end.
  14307. # Note that $ac_compile itself does not contain backslashes and begins
  14308. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14309. lt_compile=`echo "$ac_compile" | $SED \
  14310. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14311. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14312. -e 's:$: $lt_compiler_flag:'`
  14313. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14314. (eval "$lt_compile" 2>out/conftest.err)
  14315. ac_status=$?
  14316. cat out/conftest.err >&5
  14317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14318. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14319. then
  14320. # The compiler can only warn and ignore the option if not recognized
  14321. # So say no if there are warnings
  14322. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14323. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14324. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14325. lt_cv_prog_compiler_c_o_CXX=yes
  14326. fi
  14327. fi
  14328. chmod u+w . 2>&5
  14329. $RM conftest*
  14330. # SGI C++ compiler will create directory out/ii_files/ for
  14331. # template instantiation
  14332. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14333. $RM out/* && rmdir out
  14334. cd ..
  14335. $RM -r conftest
  14336. $RM conftest*
  14337. fi
  14338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14339. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14341. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14342. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14343. then :
  14344. printf %s "(cached) " >&6
  14345. else $as_nop
  14346. lt_cv_prog_compiler_c_o_CXX=no
  14347. $RM -r conftest 2>/dev/null
  14348. mkdir conftest
  14349. cd conftest
  14350. mkdir out
  14351. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14352. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14353. # Insert the option either (1) after the last *FLAGS variable, or
  14354. # (2) before a word containing "conftest.", or (3) at the end.
  14355. # Note that $ac_compile itself does not contain backslashes and begins
  14356. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14357. lt_compile=`echo "$ac_compile" | $SED \
  14358. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14359. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14360. -e 's:$: $lt_compiler_flag:'`
  14361. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14362. (eval "$lt_compile" 2>out/conftest.err)
  14363. ac_status=$?
  14364. cat out/conftest.err >&5
  14365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14366. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14367. then
  14368. # The compiler can only warn and ignore the option if not recognized
  14369. # So say no if there are warnings
  14370. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14371. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14372. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14373. lt_cv_prog_compiler_c_o_CXX=yes
  14374. fi
  14375. fi
  14376. chmod u+w . 2>&5
  14377. $RM conftest*
  14378. # SGI C++ compiler will create directory out/ii_files/ for
  14379. # template instantiation
  14380. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14381. $RM out/* && rmdir out
  14382. cd ..
  14383. $RM -r conftest
  14384. $RM conftest*
  14385. fi
  14386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14387. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14388. hard_links=nottested
  14389. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14390. # do not overwrite the value of need_locks provided by the user
  14391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14392. printf %s "checking if we can lock with hard links... " >&6; }
  14393. hard_links=yes
  14394. $RM conftest*
  14395. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14396. touch conftest.a
  14397. ln conftest.a conftest.b 2>&5 || hard_links=no
  14398. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14400. printf "%s\n" "$hard_links" >&6; }
  14401. if test no = "$hard_links"; then
  14402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14403. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14404. need_locks=warn
  14405. fi
  14406. else
  14407. need_locks=no
  14408. fi
  14409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14410. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14411. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14412. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14413. case $host_os in
  14414. aix[4-9]*)
  14415. # If we're using GNU nm, then we don't want the "-C" option.
  14416. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14417. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14418. # weak defined symbols like other global defined symbols, whereas
  14419. # GNU nm marks them as "W".
  14420. # While the 'weak' keyword is ignored in the Export File, we need
  14421. # it in the Import File for the 'aix-soname' feature, so we have
  14422. # to replace the "-B" option with "-P" for AIX nm.
  14423. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14424. 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'
  14425. else
  14426. 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'
  14427. fi
  14428. ;;
  14429. pw32*)
  14430. export_symbols_cmds_CXX=$ltdll_cmds
  14431. ;;
  14432. cygwin* | mingw* | cegcc*)
  14433. case $cc_basename in
  14434. cl*)
  14435. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14436. ;;
  14437. *)
  14438. 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'
  14439. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14440. ;;
  14441. esac
  14442. ;;
  14443. *)
  14444. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14445. ;;
  14446. esac
  14447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14448. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14449. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14450. with_gnu_ld_CXX=$with_gnu_ld
  14451. #
  14452. # Do we need to explicitly link libc?
  14453. #
  14454. case "x$archive_cmds_need_lc_CXX" in
  14455. x|xyes)
  14456. # Assume -lc should be added
  14457. archive_cmds_need_lc_CXX=yes
  14458. if test yes,yes = "$GCC,$enable_shared"; then
  14459. case $archive_cmds_CXX in
  14460. *'~'*)
  14461. # FIXME: we may have to deal with multi-command sequences.
  14462. ;;
  14463. '$CC '*)
  14464. # Test whether the compiler implicitly links with -lc since on some
  14465. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14466. # to ld, don't add -lc before -lgcc.
  14467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14468. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14469. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14470. then :
  14471. printf %s "(cached) " >&6
  14472. else $as_nop
  14473. $RM conftest*
  14474. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14475. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14476. (eval $ac_compile) 2>&5
  14477. ac_status=$?
  14478. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14479. test $ac_status = 0; } 2>conftest.err; then
  14480. soname=conftest
  14481. lib=conftest
  14482. libobjs=conftest.$ac_objext
  14483. deplibs=
  14484. wl=$lt_prog_compiler_wl_CXX
  14485. pic_flag=$lt_prog_compiler_pic_CXX
  14486. compiler_flags=-v
  14487. linker_flags=-v
  14488. verstring=
  14489. output_objdir=.
  14490. libname=conftest
  14491. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14492. allow_undefined_flag_CXX=
  14493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14494. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14495. ac_status=$?
  14496. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14497. test $ac_status = 0; }
  14498. then
  14499. lt_cv_archive_cmds_need_lc_CXX=no
  14500. else
  14501. lt_cv_archive_cmds_need_lc_CXX=yes
  14502. fi
  14503. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14504. else
  14505. cat conftest.err 1>&5
  14506. fi
  14507. $RM conftest*
  14508. fi
  14509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14510. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14511. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14512. ;;
  14513. esac
  14514. fi
  14515. ;;
  14516. esac
  14517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14518. printf %s "checking dynamic linker characteristics... " >&6; }
  14519. library_names_spec=
  14520. libname_spec='lib$name'
  14521. soname_spec=
  14522. shrext_cmds=.so
  14523. postinstall_cmds=
  14524. postuninstall_cmds=
  14525. finish_cmds=
  14526. finish_eval=
  14527. shlibpath_var=
  14528. shlibpath_overrides_runpath=unknown
  14529. version_type=none
  14530. dynamic_linker="$host_os ld.so"
  14531. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14532. need_lib_prefix=unknown
  14533. hardcode_into_libs=no
  14534. # when you set need_version to no, make sure it does not cause -set_version
  14535. # flags to be left without arguments
  14536. need_version=unknown
  14537. case $host_os in
  14538. aix3*)
  14539. version_type=linux # correct to gnu/linux during the next big refactor
  14540. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14541. shlibpath_var=LIBPATH
  14542. # AIX 3 has no versioning support, so we append a major version to the name.
  14543. soname_spec='$libname$release$shared_ext$major'
  14544. ;;
  14545. aix[4-9]*)
  14546. version_type=linux # correct to gnu/linux during the next big refactor
  14547. need_lib_prefix=no
  14548. need_version=no
  14549. hardcode_into_libs=yes
  14550. if test ia64 = "$host_cpu"; then
  14551. # AIX 5 supports IA64
  14552. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14553. shlibpath_var=LD_LIBRARY_PATH
  14554. else
  14555. # With GCC up to 2.95.x, collect2 would create an import file
  14556. # for dependence libraries. The import file would start with
  14557. # the line '#! .'. This would cause the generated library to
  14558. # depend on '.', always an invalid library. This was fixed in
  14559. # development snapshots of GCC prior to 3.0.
  14560. case $host_os in
  14561. aix4 | aix4.[01] | aix4.[01].*)
  14562. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14563. echo ' yes '
  14564. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14565. :
  14566. else
  14567. can_build_shared=no
  14568. fi
  14569. ;;
  14570. esac
  14571. # Using Import Files as archive members, it is possible to support
  14572. # filename-based versioning of shared library archives on AIX. While
  14573. # this would work for both with and without runtime linking, it will
  14574. # prevent static linking of such archives. So we do filename-based
  14575. # shared library versioning with .so extension only, which is used
  14576. # when both runtime linking and shared linking is enabled.
  14577. # Unfortunately, runtime linking may impact performance, so we do
  14578. # not want this to be the default eventually. Also, we use the
  14579. # versioned .so libs for executables only if there is the -brtl
  14580. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14581. # To allow for filename-based versioning support, we need to create
  14582. # libNAME.so.V as an archive file, containing:
  14583. # *) an Import File, referring to the versioned filename of the
  14584. # archive as well as the shared archive member, telling the
  14585. # bitwidth (32 or 64) of that shared object, and providing the
  14586. # list of exported symbols of that shared object, eventually
  14587. # decorated with the 'weak' keyword
  14588. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14589. # it being seen by the linker.
  14590. # At run time we better use the real file rather than another symlink,
  14591. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14592. case $with_aix_soname,$aix_use_runtimelinking in
  14593. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14594. # soname into executable. Probably we can add versioning support to
  14595. # collect2, so additional links can be useful in future.
  14596. aix,yes) # traditional libtool
  14597. dynamic_linker='AIX unversionable lib.so'
  14598. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14599. # instead of lib<name>.a to let people know that these are not
  14600. # typical AIX shared libraries.
  14601. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14602. ;;
  14603. aix,no) # traditional AIX only
  14604. dynamic_linker='AIX lib.a(lib.so.V)'
  14605. # We preserve .a as extension for shared libraries through AIX4.2
  14606. # and later when we are not doing run time linking.
  14607. library_names_spec='$libname$release.a $libname.a'
  14608. soname_spec='$libname$release$shared_ext$major'
  14609. ;;
  14610. svr4,*) # full svr4 only
  14611. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14612. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14613. # We do not specify a path in Import Files, so LIBPATH fires.
  14614. shlibpath_overrides_runpath=yes
  14615. ;;
  14616. *,yes) # both, prefer svr4
  14617. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14618. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14619. # unpreferred sharedlib libNAME.a needs extra handling
  14620. 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"'
  14621. 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"'
  14622. # We do not specify a path in Import Files, so LIBPATH fires.
  14623. shlibpath_overrides_runpath=yes
  14624. ;;
  14625. *,no) # both, prefer aix
  14626. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14627. library_names_spec='$libname$release.a $libname.a'
  14628. soname_spec='$libname$release$shared_ext$major'
  14629. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14630. 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)'
  14631. 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"'
  14632. ;;
  14633. esac
  14634. shlibpath_var=LIBPATH
  14635. fi
  14636. ;;
  14637. amigaos*)
  14638. case $host_cpu in
  14639. powerpc)
  14640. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14641. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14642. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14643. ;;
  14644. m68k)
  14645. library_names_spec='$libname.ixlibrary $libname.a'
  14646. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14647. 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'
  14648. ;;
  14649. esac
  14650. ;;
  14651. beos*)
  14652. library_names_spec='$libname$shared_ext'
  14653. dynamic_linker="$host_os ld.so"
  14654. shlibpath_var=LIBRARY_PATH
  14655. ;;
  14656. bsdi[45]*)
  14657. version_type=linux # correct to gnu/linux during the next big refactor
  14658. need_version=no
  14659. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14660. soname_spec='$libname$release$shared_ext$major'
  14661. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14662. shlibpath_var=LD_LIBRARY_PATH
  14663. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14664. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14665. # the default ld.so.conf also contains /usr/contrib/lib and
  14666. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14667. # libtool to hard-code these into programs
  14668. ;;
  14669. cygwin* | mingw* | pw32* | cegcc*)
  14670. version_type=windows
  14671. shrext_cmds=.dll
  14672. need_version=no
  14673. need_lib_prefix=no
  14674. case $GCC,$cc_basename in
  14675. yes,*)
  14676. # gcc
  14677. library_names_spec='$libname.dll.a'
  14678. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14679. postinstall_cmds='base_file=`basename \$file`~
  14680. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14681. dldir=$destdir/`dirname \$dlpath`~
  14682. test -d \$dldir || mkdir -p \$dldir~
  14683. $install_prog $dir/$dlname \$dldir/$dlname~
  14684. chmod a+x \$dldir/$dlname~
  14685. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14686. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14687. fi'
  14688. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14689. dlpath=$dir/\$dldll~
  14690. $RM \$dlpath'
  14691. shlibpath_overrides_runpath=yes
  14692. case $host_os in
  14693. cygwin*)
  14694. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14695. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14696. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14697. ;;
  14698. mingw* | cegcc*)
  14699. # MinGW DLLs use traditional 'lib' prefix
  14700. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14701. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14702. ;;
  14703. pw32*)
  14704. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14705. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14706. ;;
  14707. esac
  14708. dynamic_linker='Win32 ld.exe'
  14709. ;;
  14710. *,cl*)
  14711. # Native MSVC
  14712. libname_spec='$name'
  14713. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14714. library_names_spec='$libname.dll.lib'
  14715. case $build_os in
  14716. mingw*)
  14717. sys_lib_search_path_spec=
  14718. lt_save_ifs=$IFS
  14719. IFS=';'
  14720. for lt_path in $LIB
  14721. do
  14722. IFS=$lt_save_ifs
  14723. # Let DOS variable expansion print the short 8.3 style file name.
  14724. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14725. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14726. done
  14727. IFS=$lt_save_ifs
  14728. # Convert to MSYS style.
  14729. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14730. ;;
  14731. cygwin*)
  14732. # Convert to unix form, then to dos form, then back to unix form
  14733. # but this time dos style (no spaces!) so that the unix form looks
  14734. # like /cygdrive/c/PROGRA~1:/cygdr...
  14735. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14736. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14737. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14738. ;;
  14739. *)
  14740. sys_lib_search_path_spec=$LIB
  14741. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14742. # It is most probably a Windows format PATH.
  14743. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14744. else
  14745. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14746. fi
  14747. # FIXME: find the short name or the path components, as spaces are
  14748. # common. (e.g. "Program Files" -> "PROGRA~1")
  14749. ;;
  14750. esac
  14751. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14752. postinstall_cmds='base_file=`basename \$file`~
  14753. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14754. dldir=$destdir/`dirname \$dlpath`~
  14755. test -d \$dldir || mkdir -p \$dldir~
  14756. $install_prog $dir/$dlname \$dldir/$dlname'
  14757. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14758. dlpath=$dir/\$dldll~
  14759. $RM \$dlpath'
  14760. shlibpath_overrides_runpath=yes
  14761. dynamic_linker='Win32 link.exe'
  14762. ;;
  14763. *)
  14764. # Assume MSVC wrapper
  14765. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14766. dynamic_linker='Win32 ld.exe'
  14767. ;;
  14768. esac
  14769. # FIXME: first we should search . and the directory the executable is in
  14770. shlibpath_var=PATH
  14771. ;;
  14772. darwin* | rhapsody*)
  14773. dynamic_linker="$host_os dyld"
  14774. version_type=darwin
  14775. need_lib_prefix=no
  14776. need_version=no
  14777. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14778. soname_spec='$libname$release$major$shared_ext'
  14779. shlibpath_overrides_runpath=yes
  14780. shlibpath_var=DYLD_LIBRARY_PATH
  14781. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14782. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14783. ;;
  14784. dgux*)
  14785. version_type=linux # correct to gnu/linux during the next big refactor
  14786. need_lib_prefix=no
  14787. need_version=no
  14788. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14789. soname_spec='$libname$release$shared_ext$major'
  14790. shlibpath_var=LD_LIBRARY_PATH
  14791. ;;
  14792. freebsd* | dragonfly* | midnightbsd*)
  14793. # DragonFly does not have aout. When/if they implement a new
  14794. # versioning mechanism, adjust this.
  14795. if test -x /usr/bin/objformat; then
  14796. objformat=`/usr/bin/objformat`
  14797. else
  14798. case $host_os in
  14799. freebsd[23].*) objformat=aout ;;
  14800. *) objformat=elf ;;
  14801. esac
  14802. fi
  14803. version_type=freebsd-$objformat
  14804. case $version_type in
  14805. freebsd-elf*)
  14806. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14807. soname_spec='$libname$release$shared_ext$major'
  14808. need_version=no
  14809. need_lib_prefix=no
  14810. ;;
  14811. freebsd-*)
  14812. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14813. need_version=yes
  14814. ;;
  14815. esac
  14816. shlibpath_var=LD_LIBRARY_PATH
  14817. case $host_os in
  14818. freebsd2.*)
  14819. shlibpath_overrides_runpath=yes
  14820. ;;
  14821. freebsd3.[01]* | freebsdelf3.[01]*)
  14822. shlibpath_overrides_runpath=yes
  14823. hardcode_into_libs=yes
  14824. ;;
  14825. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14826. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14827. shlibpath_overrides_runpath=no
  14828. hardcode_into_libs=yes
  14829. ;;
  14830. *) # from 4.6 on, and DragonFly
  14831. shlibpath_overrides_runpath=yes
  14832. hardcode_into_libs=yes
  14833. ;;
  14834. esac
  14835. ;;
  14836. haiku*)
  14837. version_type=linux # correct to gnu/linux during the next big refactor
  14838. need_lib_prefix=no
  14839. need_version=no
  14840. dynamic_linker="$host_os runtime_loader"
  14841. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14842. soname_spec='$libname$release$shared_ext$major'
  14843. shlibpath_var=LIBRARY_PATH
  14844. shlibpath_overrides_runpath=no
  14845. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14846. hardcode_into_libs=yes
  14847. ;;
  14848. hpux9* | hpux10* | hpux11*)
  14849. # Give a soname corresponding to the major version so that dld.sl refuses to
  14850. # link against other versions.
  14851. version_type=sunos
  14852. need_lib_prefix=no
  14853. need_version=no
  14854. case $host_cpu in
  14855. ia64*)
  14856. shrext_cmds='.so'
  14857. hardcode_into_libs=yes
  14858. dynamic_linker="$host_os dld.so"
  14859. shlibpath_var=LD_LIBRARY_PATH
  14860. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14861. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14862. soname_spec='$libname$release$shared_ext$major'
  14863. if test 32 = "$HPUX_IA64_MODE"; then
  14864. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14865. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14866. else
  14867. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14868. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14869. fi
  14870. ;;
  14871. hppa*64*)
  14872. shrext_cmds='.sl'
  14873. hardcode_into_libs=yes
  14874. dynamic_linker="$host_os dld.sl"
  14875. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14876. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14877. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14878. soname_spec='$libname$release$shared_ext$major'
  14879. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14880. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14881. ;;
  14882. *)
  14883. shrext_cmds='.sl'
  14884. dynamic_linker="$host_os dld.sl"
  14885. shlibpath_var=SHLIB_PATH
  14886. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14887. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14888. soname_spec='$libname$release$shared_ext$major'
  14889. ;;
  14890. esac
  14891. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14892. postinstall_cmds='chmod 555 $lib'
  14893. # or fails outright, so override atomically:
  14894. install_override_mode=555
  14895. ;;
  14896. interix[3-9]*)
  14897. version_type=linux # correct to gnu/linux during the next big refactor
  14898. need_lib_prefix=no
  14899. need_version=no
  14900. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14901. soname_spec='$libname$release$shared_ext$major'
  14902. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14903. shlibpath_var=LD_LIBRARY_PATH
  14904. shlibpath_overrides_runpath=no
  14905. hardcode_into_libs=yes
  14906. ;;
  14907. irix5* | irix6* | nonstopux*)
  14908. case $host_os in
  14909. nonstopux*) version_type=nonstopux ;;
  14910. *)
  14911. if test yes = "$lt_cv_prog_gnu_ld"; then
  14912. version_type=linux # correct to gnu/linux during the next big refactor
  14913. else
  14914. version_type=irix
  14915. fi ;;
  14916. esac
  14917. need_lib_prefix=no
  14918. need_version=no
  14919. soname_spec='$libname$release$shared_ext$major'
  14920. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14921. case $host_os in
  14922. irix5* | nonstopux*)
  14923. libsuff= shlibsuff=
  14924. ;;
  14925. *)
  14926. case $LD in # libtool.m4 will add one of these switches to LD
  14927. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14928. libsuff= shlibsuff= libmagic=32-bit;;
  14929. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14930. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14931. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14932. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14933. *) libsuff= shlibsuff= libmagic=never-match;;
  14934. esac
  14935. ;;
  14936. esac
  14937. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14938. shlibpath_overrides_runpath=no
  14939. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14940. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14941. hardcode_into_libs=yes
  14942. ;;
  14943. # No shared lib support for Linux oldld, aout, or coff.
  14944. linux*oldld* | linux*aout* | linux*coff*)
  14945. dynamic_linker=no
  14946. ;;
  14947. linux*android*)
  14948. version_type=none # Android doesn't support versioned libraries.
  14949. need_lib_prefix=no
  14950. need_version=no
  14951. library_names_spec='$libname$release$shared_ext'
  14952. soname_spec='$libname$release$shared_ext'
  14953. finish_cmds=
  14954. shlibpath_var=LD_LIBRARY_PATH
  14955. shlibpath_overrides_runpath=yes
  14956. # This implies no fast_install, which is unacceptable.
  14957. # Some rework will be needed to allow for fast_install
  14958. # before this can be enabled.
  14959. hardcode_into_libs=yes
  14960. dynamic_linker='Android linker'
  14961. # Don't embed -rpath directories since the linker doesn't support them.
  14962. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14963. ;;
  14964. # This must be glibc/ELF.
  14965. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14966. version_type=linux # correct to gnu/linux during the next big refactor
  14967. need_lib_prefix=no
  14968. need_version=no
  14969. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14970. soname_spec='$libname$release$shared_ext$major'
  14971. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14972. shlibpath_var=LD_LIBRARY_PATH
  14973. shlibpath_overrides_runpath=no
  14974. # Some binutils ld are patched to set DT_RUNPATH
  14975. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14976. then :
  14977. printf %s "(cached) " >&6
  14978. else $as_nop
  14979. lt_cv_shlibpath_overrides_runpath=no
  14980. save_LDFLAGS=$LDFLAGS
  14981. save_libdir=$libdir
  14982. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14983. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14985. /* end confdefs.h. */
  14986. int
  14987. main (void)
  14988. {
  14989. ;
  14990. return 0;
  14991. }
  14992. _ACEOF
  14993. if ac_fn_cxx_try_link "$LINENO"
  14994. then :
  14995. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14996. then :
  14997. lt_cv_shlibpath_overrides_runpath=yes
  14998. fi
  14999. fi
  15000. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15001. conftest$ac_exeext conftest.$ac_ext
  15002. LDFLAGS=$save_LDFLAGS
  15003. libdir=$save_libdir
  15004. fi
  15005. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15006. # This implies no fast_install, which is unacceptable.
  15007. # Some rework will be needed to allow for fast_install
  15008. # before this can be enabled.
  15009. hardcode_into_libs=yes
  15010. # Add ABI-specific directories to the system library path.
  15011. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15012. # Ideally, we could use ldconfig to report *all* directores which are
  15013. # searched for libraries, however this is still not possible. Aside from not
  15014. # being certain /sbin/ldconfig is available, command
  15015. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15016. # even though it is searched at run-time. Try to do the best guess by
  15017. # appending ld.so.conf contents (and includes) to the search path.
  15018. if test -f /etc/ld.so.conf; then
  15019. 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' ' '`
  15020. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15021. fi
  15022. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15023. # powerpc, because MkLinux only supported shared libraries with the
  15024. # GNU dynamic linker. Since this was broken with cross compilers,
  15025. # most powerpc-linux boxes support dynamic linking these days and
  15026. # people can always --disable-shared, the test was removed, and we
  15027. # assume the GNU/Linux dynamic linker is in use.
  15028. dynamic_linker='GNU/Linux ld.so'
  15029. ;;
  15030. netbsd*)
  15031. version_type=sunos
  15032. need_lib_prefix=no
  15033. need_version=no
  15034. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15035. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15036. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15037. dynamic_linker='NetBSD (a.out) ld.so'
  15038. else
  15039. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15040. soname_spec='$libname$release$shared_ext$major'
  15041. dynamic_linker='NetBSD ld.elf_so'
  15042. fi
  15043. shlibpath_var=LD_LIBRARY_PATH
  15044. shlibpath_overrides_runpath=yes
  15045. hardcode_into_libs=yes
  15046. ;;
  15047. newsos6)
  15048. version_type=linux # correct to gnu/linux during the next big refactor
  15049. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15050. shlibpath_var=LD_LIBRARY_PATH
  15051. shlibpath_overrides_runpath=yes
  15052. ;;
  15053. *nto* | *qnx*)
  15054. version_type=qnx
  15055. need_lib_prefix=no
  15056. need_version=no
  15057. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15058. soname_spec='$libname$release$shared_ext$major'
  15059. shlibpath_var=LD_LIBRARY_PATH
  15060. shlibpath_overrides_runpath=no
  15061. hardcode_into_libs=yes
  15062. dynamic_linker='ldqnx.so'
  15063. ;;
  15064. openbsd* | bitrig*)
  15065. version_type=sunos
  15066. sys_lib_dlsearch_path_spec=/usr/lib
  15067. need_lib_prefix=no
  15068. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15069. need_version=no
  15070. else
  15071. need_version=yes
  15072. fi
  15073. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15074. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15075. shlibpath_var=LD_LIBRARY_PATH
  15076. shlibpath_overrides_runpath=yes
  15077. ;;
  15078. os2*)
  15079. libname_spec='$name'
  15080. shrext_cmds=.dll
  15081. need_lib_prefix=no
  15082. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15083. # SDL customization: removed versioning support.
  15084. # version_type=windows
  15085. # need_version=no
  15086. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15087. # v=$($ECHO $release$versuffix | tr -d .-);
  15088. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15089. # $ECHO $n$v`$shared_ext'
  15090. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15091. library_names_spec='${libname}_dll.$libext'
  15092. dynamic_linker='OS/2 ld.exe'
  15093. shlibpath_var=BEGINLIBPATH
  15094. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15095. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15096. postinstall_cmds='base_file=`basename \$file`~
  15097. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15098. dldir=$destdir/`dirname \$dlpath`~
  15099. test -d \$dldir || mkdir -p \$dldir~
  15100. $install_prog $dir/$dlname \$dldir/$dlname~
  15101. chmod a+x \$dldir/$dlname~
  15102. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15103. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15104. fi'
  15105. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15106. dlpath=$dir/\$dldll~
  15107. $RM \$dlpath'
  15108. ;;
  15109. osf3* | osf4* | osf5*)
  15110. version_type=osf
  15111. need_lib_prefix=no
  15112. need_version=no
  15113. soname_spec='$libname$release$shared_ext$major'
  15114. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15115. shlibpath_var=LD_LIBRARY_PATH
  15116. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15117. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15118. ;;
  15119. rdos*)
  15120. dynamic_linker=no
  15121. ;;
  15122. solaris*)
  15123. version_type=linux # correct to gnu/linux during the next big refactor
  15124. need_lib_prefix=no
  15125. need_version=no
  15126. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15127. soname_spec='$libname$release$shared_ext$major'
  15128. shlibpath_var=LD_LIBRARY_PATH
  15129. shlibpath_overrides_runpath=yes
  15130. hardcode_into_libs=yes
  15131. # ldd complains unless libraries are executable
  15132. postinstall_cmds='chmod +x $lib'
  15133. ;;
  15134. sunos4*)
  15135. version_type=sunos
  15136. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15137. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15138. shlibpath_var=LD_LIBRARY_PATH
  15139. shlibpath_overrides_runpath=yes
  15140. if test yes = "$with_gnu_ld"; then
  15141. need_lib_prefix=no
  15142. fi
  15143. need_version=yes
  15144. ;;
  15145. sysv4 | sysv4.3*)
  15146. version_type=linux # correct to gnu/linux during the next big refactor
  15147. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15148. soname_spec='$libname$release$shared_ext$major'
  15149. shlibpath_var=LD_LIBRARY_PATH
  15150. case $host_vendor in
  15151. sni)
  15152. shlibpath_overrides_runpath=no
  15153. need_lib_prefix=no
  15154. runpath_var=LD_RUN_PATH
  15155. ;;
  15156. siemens)
  15157. need_lib_prefix=no
  15158. ;;
  15159. motorola)
  15160. need_lib_prefix=no
  15161. need_version=no
  15162. shlibpath_overrides_runpath=no
  15163. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15164. ;;
  15165. esac
  15166. ;;
  15167. sysv4*MP*)
  15168. if test -d /usr/nec; then
  15169. version_type=linux # correct to gnu/linux during the next big refactor
  15170. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15171. soname_spec='$libname$shared_ext.$major'
  15172. shlibpath_var=LD_LIBRARY_PATH
  15173. fi
  15174. ;;
  15175. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15176. version_type=sco
  15177. need_lib_prefix=no
  15178. need_version=no
  15179. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15180. soname_spec='$libname$release$shared_ext$major'
  15181. shlibpath_var=LD_LIBRARY_PATH
  15182. shlibpath_overrides_runpath=yes
  15183. hardcode_into_libs=yes
  15184. if test yes = "$with_gnu_ld"; then
  15185. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15186. else
  15187. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15188. case $host_os in
  15189. sco3.2v5*)
  15190. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15191. ;;
  15192. esac
  15193. fi
  15194. sys_lib_dlsearch_path_spec='/usr/lib'
  15195. ;;
  15196. tpf*)
  15197. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15198. version_type=linux # correct to gnu/linux during the next big refactor
  15199. need_lib_prefix=no
  15200. need_version=no
  15201. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15202. shlibpath_var=LD_LIBRARY_PATH
  15203. shlibpath_overrides_runpath=no
  15204. hardcode_into_libs=yes
  15205. ;;
  15206. uts4*)
  15207. version_type=linux # correct to gnu/linux during the next big refactor
  15208. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15209. soname_spec='$libname$release$shared_ext$major'
  15210. shlibpath_var=LD_LIBRARY_PATH
  15211. ;;
  15212. *)
  15213. dynamic_linker=no
  15214. ;;
  15215. esac
  15216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15217. printf "%s\n" "$dynamic_linker" >&6; }
  15218. test no = "$dynamic_linker" && can_build_shared=no
  15219. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15220. if test yes = "$GCC"; then
  15221. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15222. fi
  15223. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15224. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15225. fi
  15226. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15227. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15228. fi
  15229. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15230. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15231. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15232. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15233. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15234. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15236. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15237. hardcode_action_CXX=
  15238. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15239. test -n "$runpath_var_CXX" ||
  15240. test yes = "$hardcode_automatic_CXX"; then
  15241. # We can hardcode non-existent directories.
  15242. if test no != "$hardcode_direct_CXX" &&
  15243. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15244. # have to relink, otherwise we might link with an installed library
  15245. # when we should be linking with a yet-to-be-installed one
  15246. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15247. test no != "$hardcode_minus_L_CXX"; then
  15248. # Linking always hardcodes the temporary library directory.
  15249. hardcode_action_CXX=relink
  15250. else
  15251. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15252. hardcode_action_CXX=immediate
  15253. fi
  15254. else
  15255. # We cannot hardcode anything, or else we can only hardcode existing
  15256. # directories.
  15257. hardcode_action_CXX=unsupported
  15258. fi
  15259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15260. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15261. if test relink = "$hardcode_action_CXX" ||
  15262. test yes = "$inherit_rpath_CXX"; then
  15263. # Fast installation is not supported
  15264. enable_fast_install=no
  15265. elif test yes = "$shlibpath_overrides_runpath" ||
  15266. test no = "$enable_shared"; then
  15267. # Fast installation is not necessary
  15268. enable_fast_install=needless
  15269. fi
  15270. fi # test -n "$compiler"
  15271. CC=$lt_save_CC
  15272. CFLAGS=$lt_save_CFLAGS
  15273. LDCXX=$LD
  15274. LD=$lt_save_LD
  15275. GCC=$lt_save_GCC
  15276. with_gnu_ld=$lt_save_with_gnu_ld
  15277. lt_cv_path_LDCXX=$lt_cv_path_LD
  15278. lt_cv_path_LD=$lt_save_path_LD
  15279. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15280. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15281. fi # test yes != "$_lt_caught_CXX_error"
  15282. ac_ext=c
  15283. ac_cpp='$CPP $CPPFLAGS'
  15284. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15285. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15286. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15288. printf %s "checking for egrep... " >&6; }
  15289. if test ${ac_cv_path_EGREP+y}
  15290. then :
  15291. printf %s "(cached) " >&6
  15292. else $as_nop
  15293. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15294. then ac_cv_path_EGREP="$GREP -E"
  15295. else
  15296. if test -z "$EGREP"; then
  15297. ac_path_EGREP_found=false
  15298. # Loop through the user's path and test for each of PROGNAME-LIST
  15299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15300. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15301. do
  15302. IFS=$as_save_IFS
  15303. case $as_dir in #(((
  15304. '') as_dir=./ ;;
  15305. */) ;;
  15306. *) as_dir=$as_dir/ ;;
  15307. esac
  15308. for ac_prog in egrep
  15309. do
  15310. for ac_exec_ext in '' $ac_executable_extensions; do
  15311. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15312. as_fn_executable_p "$ac_path_EGREP" || continue
  15313. # Check for GNU ac_path_EGREP and select it if it is found.
  15314. # Check for GNU $ac_path_EGREP
  15315. case `"$ac_path_EGREP" --version 2>&1` in
  15316. *GNU*)
  15317. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15318. *)
  15319. ac_count=0
  15320. printf %s 0123456789 >"conftest.in"
  15321. while :
  15322. do
  15323. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15324. mv "conftest.tmp" "conftest.in"
  15325. cp "conftest.in" "conftest.nl"
  15326. printf "%s\n" 'EGREP' >> "conftest.nl"
  15327. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15328. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15329. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15330. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15331. # Best one so far, save it but keep looking for a better one
  15332. ac_cv_path_EGREP="$ac_path_EGREP"
  15333. ac_path_EGREP_max=$ac_count
  15334. fi
  15335. # 10*(2^10) chars as input seems more than enough
  15336. test $ac_count -gt 10 && break
  15337. done
  15338. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15339. esac
  15340. $ac_path_EGREP_found && break 3
  15341. done
  15342. done
  15343. done
  15344. IFS=$as_save_IFS
  15345. if test -z "$ac_cv_path_EGREP"; then
  15346. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15347. fi
  15348. else
  15349. ac_cv_path_EGREP=$EGREP
  15350. fi
  15351. fi
  15352. fi
  15353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15354. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15355. EGREP="$ac_cv_path_EGREP"
  15356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  15357. printf %s "checking for fgrep... " >&6; }
  15358. if test ${ac_cv_path_FGREP+y}
  15359. then :
  15360. printf %s "(cached) " >&6
  15361. else $as_nop
  15362. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  15363. then ac_cv_path_FGREP="$GREP -F"
  15364. else
  15365. if test -z "$FGREP"; then
  15366. ac_path_FGREP_found=false
  15367. # Loop through the user's path and test for each of PROGNAME-LIST
  15368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15369. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15370. do
  15371. IFS=$as_save_IFS
  15372. case $as_dir in #(((
  15373. '') as_dir=./ ;;
  15374. */) ;;
  15375. *) as_dir=$as_dir/ ;;
  15376. esac
  15377. for ac_prog in fgrep
  15378. do
  15379. for ac_exec_ext in '' $ac_executable_extensions; do
  15380. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  15381. as_fn_executable_p "$ac_path_FGREP" || continue
  15382. # Check for GNU ac_path_FGREP and select it if it is found.
  15383. # Check for GNU $ac_path_FGREP
  15384. case `"$ac_path_FGREP" --version 2>&1` in
  15385. *GNU*)
  15386. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  15387. *)
  15388. ac_count=0
  15389. printf %s 0123456789 >"conftest.in"
  15390. while :
  15391. do
  15392. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15393. mv "conftest.tmp" "conftest.in"
  15394. cp "conftest.in" "conftest.nl"
  15395. printf "%s\n" 'FGREP' >> "conftest.nl"
  15396. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15397. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15398. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15399. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  15400. # Best one so far, save it but keep looking for a better one
  15401. ac_cv_path_FGREP="$ac_path_FGREP"
  15402. ac_path_FGREP_max=$ac_count
  15403. fi
  15404. # 10*(2^10) chars as input seems more than enough
  15405. test $ac_count -gt 10 && break
  15406. done
  15407. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15408. esac
  15409. $ac_path_FGREP_found && break 3
  15410. done
  15411. done
  15412. done
  15413. IFS=$as_save_IFS
  15414. if test -z "$ac_cv_path_FGREP"; then
  15415. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15416. fi
  15417. else
  15418. ac_cv_path_FGREP=$FGREP
  15419. fi
  15420. fi
  15421. fi
  15422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  15423. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  15424. FGREP="$ac_cv_path_FGREP"
  15425. # Find a good install program. We prefer a C program (faster),
  15426. # so one script is as good as another. But avoid the broken or
  15427. # incompatible versions:
  15428. # SysV /etc/install, /usr/sbin/install
  15429. # SunOS /usr/etc/install
  15430. # IRIX /sbin/install
  15431. # AIX /bin/install
  15432. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15433. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15434. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15435. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15436. # OS/2's system install, which has a completely different semantic
  15437. # ./install, which can be erroneously created by make from ./install.sh.
  15438. # Reject install programs that cannot install multiple files.
  15439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15440. printf %s "checking for a BSD-compatible install... " >&6; }
  15441. if test -z "$INSTALL"; then
  15442. if test ${ac_cv_path_install+y}
  15443. then :
  15444. printf %s "(cached) " >&6
  15445. else $as_nop
  15446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15447. for as_dir in $PATH
  15448. do
  15449. IFS=$as_save_IFS
  15450. case $as_dir in #(((
  15451. '') as_dir=./ ;;
  15452. */) ;;
  15453. *) as_dir=$as_dir/ ;;
  15454. esac
  15455. # Account for fact that we put trailing slashes in our PATH walk.
  15456. case $as_dir in #((
  15457. ./ | /[cC]/* | \
  15458. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15459. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15460. /usr/ucb/* ) ;;
  15461. *)
  15462. # OSF1 and SCO ODT 3.0 have their own names for install.
  15463. # Don't use installbsd from OSF since it installs stuff as root
  15464. # by default.
  15465. for ac_prog in ginstall scoinst install; do
  15466. for ac_exec_ext in '' $ac_executable_extensions; do
  15467. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15468. if test $ac_prog = install &&
  15469. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15470. # AIX install. It has an incompatible calling convention.
  15471. :
  15472. elif test $ac_prog = install &&
  15473. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15474. # program-specific install script used by HP pwplus--don't use.
  15475. :
  15476. else
  15477. rm -rf conftest.one conftest.two conftest.dir
  15478. echo one > conftest.one
  15479. echo two > conftest.two
  15480. mkdir conftest.dir
  15481. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15482. test -s conftest.one && test -s conftest.two &&
  15483. test -s conftest.dir/conftest.one &&
  15484. test -s conftest.dir/conftest.two
  15485. then
  15486. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15487. break 3
  15488. fi
  15489. fi
  15490. fi
  15491. done
  15492. done
  15493. ;;
  15494. esac
  15495. done
  15496. IFS=$as_save_IFS
  15497. rm -rf conftest.one conftest.two conftest.dir
  15498. fi
  15499. if test ${ac_cv_path_install+y}; then
  15500. INSTALL=$ac_cv_path_install
  15501. else
  15502. # As a last resort, use the slow shell script. Don't cache a
  15503. # value for INSTALL within a source directory, because that will
  15504. # break other packages using the cache if that directory is
  15505. # removed, or if the value is a relative name.
  15506. INSTALL=$ac_install_sh
  15507. fi
  15508. fi
  15509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15510. printf "%s\n" "$INSTALL" >&6; }
  15511. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15512. # It thinks the first close brace ends the variable substitution.
  15513. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15514. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15515. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15517. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15518. set x ${MAKE-make}
  15519. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15520. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15521. then :
  15522. printf %s "(cached) " >&6
  15523. else $as_nop
  15524. cat >conftest.make <<\_ACEOF
  15525. SHELL = /bin/sh
  15526. all:
  15527. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15528. _ACEOF
  15529. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15530. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15531. *@@@%%%=?*=@@@%%%*)
  15532. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15533. *)
  15534. eval ac_cv_prog_make_${ac_make}_set=no;;
  15535. esac
  15536. rm -f conftest.make
  15537. fi
  15538. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15540. printf "%s\n" "yes" >&6; }
  15541. SET_MAKE=
  15542. else
  15543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15544. printf "%s\n" "no" >&6; }
  15545. SET_MAKE="MAKE=${MAKE-make}"
  15546. fi
  15547. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15548. if test -n "$ac_tool_prefix"; then
  15549. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15550. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15552. printf %s "checking for $ac_word... " >&6; }
  15553. if test ${ac_cv_path_PKG_CONFIG+y}
  15554. then :
  15555. printf %s "(cached) " >&6
  15556. else $as_nop
  15557. case $PKG_CONFIG in
  15558. [\\/]* | ?:[\\/]*)
  15559. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15560. ;;
  15561. *)
  15562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15563. for as_dir in $PATH
  15564. do
  15565. IFS=$as_save_IFS
  15566. case $as_dir in #(((
  15567. '') as_dir=./ ;;
  15568. */) ;;
  15569. *) as_dir=$as_dir/ ;;
  15570. esac
  15571. for ac_exec_ext in '' $ac_executable_extensions; do
  15572. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15573. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15574. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15575. break 2
  15576. fi
  15577. done
  15578. done
  15579. IFS=$as_save_IFS
  15580. ;;
  15581. esac
  15582. fi
  15583. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15584. if test -n "$PKG_CONFIG"; then
  15585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15586. printf "%s\n" "$PKG_CONFIG" >&6; }
  15587. else
  15588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15589. printf "%s\n" "no" >&6; }
  15590. fi
  15591. fi
  15592. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15593. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15594. # Extract the first word of "pkg-config", so it can be a program name with args.
  15595. set dummy pkg-config; ac_word=$2
  15596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15597. printf %s "checking for $ac_word... " >&6; }
  15598. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15599. then :
  15600. printf %s "(cached) " >&6
  15601. else $as_nop
  15602. case $ac_pt_PKG_CONFIG in
  15603. [\\/]* | ?:[\\/]*)
  15604. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15605. ;;
  15606. *)
  15607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15608. for as_dir in $PATH
  15609. do
  15610. IFS=$as_save_IFS
  15611. case $as_dir in #(((
  15612. '') as_dir=./ ;;
  15613. */) ;;
  15614. *) as_dir=$as_dir/ ;;
  15615. esac
  15616. for ac_exec_ext in '' $ac_executable_extensions; do
  15617. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15618. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15619. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15620. break 2
  15621. fi
  15622. done
  15623. done
  15624. IFS=$as_save_IFS
  15625. ;;
  15626. esac
  15627. fi
  15628. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15629. if test -n "$ac_pt_PKG_CONFIG"; then
  15630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15631. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15632. else
  15633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15634. printf "%s\n" "no" >&6; }
  15635. fi
  15636. if test "x$ac_pt_PKG_CONFIG" = x; then
  15637. PKG_CONFIG=""
  15638. else
  15639. case $cross_compiling:$ac_tool_warned in
  15640. yes:)
  15641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15642. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15643. ac_tool_warned=yes ;;
  15644. esac
  15645. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15646. fi
  15647. else
  15648. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15649. fi
  15650. fi
  15651. if test -n "$PKG_CONFIG"; then
  15652. _pkg_min_version=0.9.0
  15653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15654. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15655. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15657. printf "%s\n" "yes" >&6; }
  15658. else
  15659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15660. printf "%s\n" "no" >&6; }
  15661. PKG_CONFIG=""
  15662. fi
  15663. fi
  15664. if test -z "$AWK" ; then
  15665. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15666. fi
  15667. for ac_prog in gsort sort
  15668. do
  15669. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15670. set dummy $ac_prog; ac_word=$2
  15671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15672. printf %s "checking for $ac_word... " >&6; }
  15673. if test ${ac_cv_prog_SORT+y}
  15674. then :
  15675. printf %s "(cached) " >&6
  15676. else $as_nop
  15677. if test -n "$SORT"; then
  15678. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15679. else
  15680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15681. for as_dir in $PATH
  15682. do
  15683. IFS=$as_save_IFS
  15684. case $as_dir in #(((
  15685. '') as_dir=./ ;;
  15686. */) ;;
  15687. *) as_dir=$as_dir/ ;;
  15688. esac
  15689. for ac_exec_ext in '' $ac_executable_extensions; do
  15690. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15691. ac_cv_prog_SORT="$ac_prog"
  15692. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15693. break 2
  15694. fi
  15695. done
  15696. done
  15697. IFS=$as_save_IFS
  15698. fi
  15699. fi
  15700. SORT=$ac_cv_prog_SORT
  15701. if test -n "$SORT"; then
  15702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15703. printf "%s\n" "$SORT" >&6; }
  15704. else
  15705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15706. printf "%s\n" "no" >&6; }
  15707. fi
  15708. test -n "$SORT" && break
  15709. done
  15710. test -n "$SORT" || SORT="false"
  15711. if ! "$SORT" -V </dev/null >/dev/null
  15712. then :
  15713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15714. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15715. fi
  15716. # Check whether --enable-largefile was given.
  15717. if test ${enable_largefile+y}
  15718. then :
  15719. enableval=$enable_largefile;
  15720. fi
  15721. if test "$enable_largefile" != no; then
  15722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15723. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15724. if test ${ac_cv_sys_largefile_CC+y}
  15725. then :
  15726. printf %s "(cached) " >&6
  15727. else $as_nop
  15728. ac_cv_sys_largefile_CC=no
  15729. if test "$GCC" != yes; then
  15730. ac_save_CC=$CC
  15731. while :; do
  15732. # IRIX 6.2 and later do not support large files by default,
  15733. # so use the C compiler's -n32 option if that helps.
  15734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15735. /* end confdefs.h. */
  15736. #include <sys/types.h>
  15737. /* Check that off_t can represent 2**63 - 1 correctly.
  15738. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15739. since some C++ compilers masquerading as C compilers
  15740. incorrectly reject 9223372036854775807. */
  15741. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15742. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15743. && LARGE_OFF_T % 2147483647 == 1)
  15744. ? 1 : -1];
  15745. int
  15746. main (void)
  15747. {
  15748. ;
  15749. return 0;
  15750. }
  15751. _ACEOF
  15752. if ac_fn_c_try_compile "$LINENO"
  15753. then :
  15754. break
  15755. fi
  15756. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15757. CC="$CC -n32"
  15758. if ac_fn_c_try_compile "$LINENO"
  15759. then :
  15760. ac_cv_sys_largefile_CC=' -n32'; break
  15761. fi
  15762. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15763. break
  15764. done
  15765. CC=$ac_save_CC
  15766. rm -f conftest.$ac_ext
  15767. fi
  15768. fi
  15769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15770. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15771. if test "$ac_cv_sys_largefile_CC" != no; then
  15772. CC=$CC$ac_cv_sys_largefile_CC
  15773. fi
  15774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15775. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15776. if test ${ac_cv_sys_file_offset_bits+y}
  15777. then :
  15778. printf %s "(cached) " >&6
  15779. else $as_nop
  15780. while :; do
  15781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15782. /* end confdefs.h. */
  15783. #include <sys/types.h>
  15784. /* Check that off_t can represent 2**63 - 1 correctly.
  15785. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15786. since some C++ compilers masquerading as C compilers
  15787. incorrectly reject 9223372036854775807. */
  15788. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15789. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15790. && LARGE_OFF_T % 2147483647 == 1)
  15791. ? 1 : -1];
  15792. int
  15793. main (void)
  15794. {
  15795. ;
  15796. return 0;
  15797. }
  15798. _ACEOF
  15799. if ac_fn_c_try_compile "$LINENO"
  15800. then :
  15801. ac_cv_sys_file_offset_bits=no; break
  15802. fi
  15803. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15805. /* end confdefs.h. */
  15806. #define _FILE_OFFSET_BITS 64
  15807. #include <sys/types.h>
  15808. /* Check that off_t can represent 2**63 - 1 correctly.
  15809. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15810. since some C++ compilers masquerading as C compilers
  15811. incorrectly reject 9223372036854775807. */
  15812. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15813. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15814. && LARGE_OFF_T % 2147483647 == 1)
  15815. ? 1 : -1];
  15816. int
  15817. main (void)
  15818. {
  15819. ;
  15820. return 0;
  15821. }
  15822. _ACEOF
  15823. if ac_fn_c_try_compile "$LINENO"
  15824. then :
  15825. ac_cv_sys_file_offset_bits=64; break
  15826. fi
  15827. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15828. ac_cv_sys_file_offset_bits=unknown
  15829. break
  15830. done
  15831. fi
  15832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15833. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15834. case $ac_cv_sys_file_offset_bits in #(
  15835. no | unknown) ;;
  15836. *)
  15837. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15838. ;;
  15839. esac
  15840. rm -rf conftest*
  15841. if test $ac_cv_sys_file_offset_bits = unknown; then
  15842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15843. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15844. if test ${ac_cv_sys_large_files+y}
  15845. then :
  15846. printf %s "(cached) " >&6
  15847. else $as_nop
  15848. while :; do
  15849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15850. /* end confdefs.h. */
  15851. #include <sys/types.h>
  15852. /* Check that off_t can represent 2**63 - 1 correctly.
  15853. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15854. since some C++ compilers masquerading as C compilers
  15855. incorrectly reject 9223372036854775807. */
  15856. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15857. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15858. && LARGE_OFF_T % 2147483647 == 1)
  15859. ? 1 : -1];
  15860. int
  15861. main (void)
  15862. {
  15863. ;
  15864. return 0;
  15865. }
  15866. _ACEOF
  15867. if ac_fn_c_try_compile "$LINENO"
  15868. then :
  15869. ac_cv_sys_large_files=no; break
  15870. fi
  15871. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15873. /* end confdefs.h. */
  15874. #define _LARGE_FILES 1
  15875. #include <sys/types.h>
  15876. /* Check that off_t can represent 2**63 - 1 correctly.
  15877. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15878. since some C++ compilers masquerading as C compilers
  15879. incorrectly reject 9223372036854775807. */
  15880. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15881. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15882. && LARGE_OFF_T % 2147483647 == 1)
  15883. ? 1 : -1];
  15884. int
  15885. main (void)
  15886. {
  15887. ;
  15888. return 0;
  15889. }
  15890. _ACEOF
  15891. if ac_fn_c_try_compile "$LINENO"
  15892. then :
  15893. ac_cv_sys_large_files=1; break
  15894. fi
  15895. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15896. ac_cv_sys_large_files=unknown
  15897. break
  15898. done
  15899. fi
  15900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15901. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15902. case $ac_cv_sys_large_files in #(
  15903. no | unknown) ;;
  15904. *)
  15905. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15906. ;;
  15907. esac
  15908. rm -rf conftest*
  15909. fi
  15910. fi
  15911. case "$host" in
  15912. *-*-mingw*)
  15913. # Except on msys, where make can't handle full pathnames (bug 1972)
  15914. ;;
  15915. *)
  15916. srcdir=`cd $srcdir && pwd`
  15917. ;;
  15918. esac
  15919. INCLUDE="-I$srcdir/include"
  15920. case "$host" in
  15921. *-*-nto-qnx*)
  15922. ;;
  15923. *)
  15924. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15925. ;;
  15926. esac
  15927. case "$host" in
  15928. *-*-haiku*)
  15929. LINKER='$(CXX)'
  15930. LIBTOOLLINKERTAG='CXX'
  15931. ;;
  15932. *)
  15933. LINKER='$(CC)'
  15934. LIBTOOLLINKERTAG='CC'
  15935. ;;
  15936. esac
  15937. if test x$srcdir != x.; then
  15938. INCLUDE="-Iinclude $INCLUDE"
  15939. elif test -d .git; then
  15940. as_fn_error $? "
  15941. *** When building from a git clone you should configure and build in a
  15942. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15943. " "$LINENO" 5
  15944. fi
  15945. BASE_CFLAGS=""
  15946. BASE_LDFLAGS=""
  15947. case "$host" in
  15948. *-*-cygwin*)
  15949. # We build SDL on cygwin without the UNIX emulation layer
  15950. save_CFLAGS="$CFLAGS"
  15951. have_no_cygwin=no
  15952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15953. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15954. CFLAGS="$save_CFLAGS -mno-cygwin"
  15955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15956. /* end confdefs.h. */
  15957. int
  15958. main (void)
  15959. {
  15960. ;
  15961. return 0;
  15962. }
  15963. _ACEOF
  15964. if ac_fn_c_try_compile "$LINENO"
  15965. then :
  15966. have_no_cygwin=yes
  15967. fi
  15968. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15970. printf "%s\n" "$have_no_cygwin" >&6; }
  15971. CFLAGS="$save_CFLAGS"
  15972. if test x$have_no_cygwin = xyes; then
  15973. BASE_CFLAGS="-mno-cygwin"
  15974. BASE_LDFLAGS="-mno-cygwin"
  15975. fi
  15976. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15977. ;;
  15978. esac
  15979. # Uncomment the following line if you want to force SDL and applications
  15980. # built with it to be compiled for a particular architecture.
  15981. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15982. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15983. # The default optimization for SDL is -O3 (Bug #31)
  15984. if test "x$orig_CFLAGS" = x; then
  15985. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15986. fi
  15987. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15988. BUILD_LDFLAGS="$LDFLAGS"
  15989. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15990. ## These are common directories to find software packages
  15991. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15992. # if test -d $path/include; then
  15993. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15994. # fi
  15995. # if test -d $path/lib; then
  15996. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15997. # fi
  15998. #done
  15999. SDL_CFLAGS="$BASE_CFLAGS"
  16000. SDL_LIBS="-lSDL2"
  16001. if test "x$BASE_LDFLAGS" != x; then
  16002. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  16003. fi
  16004. if test "x$EXTRA_CFLAGS" != x; then
  16005. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  16006. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  16007. fi
  16008. if test "x$EXTRA_LDFLAGS" != x; then
  16009. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  16010. fi
  16011. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  16012. find_lib()
  16013. {
  16014. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16015. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16016. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  16017. if test "$cross_compiling" = yes; then
  16018. host_lib_path=""
  16019. else
  16020. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  16021. fi
  16022. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  16023. 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`
  16024. if test x$lib != x; then
  16025. echo $lib
  16026. return
  16027. fi
  16028. done
  16029. }
  16030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16031. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16032. if test ${ac_cv_c_const+y}
  16033. then :
  16034. printf %s "(cached) " >&6
  16035. else $as_nop
  16036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16037. /* end confdefs.h. */
  16038. int
  16039. main (void)
  16040. {
  16041. #ifndef __cplusplus
  16042. /* Ultrix mips cc rejects this sort of thing. */
  16043. typedef int charset[2];
  16044. const charset cs = { 0, 0 };
  16045. /* SunOS 4.1.1 cc rejects this. */
  16046. char const *const *pcpcc;
  16047. char **ppc;
  16048. /* NEC SVR4.0.2 mips cc rejects this. */
  16049. struct point {int x, y;};
  16050. static struct point const zero = {0,0};
  16051. /* IBM XL C 1.02.0.0 rejects this.
  16052. It does not let you subtract one const X* pointer from another in
  16053. an arm of an if-expression whose if-part is not a constant
  16054. expression */
  16055. const char *g = "string";
  16056. pcpcc = &g + (g ? g-g : 0);
  16057. /* HPUX 7.0 cc rejects these. */
  16058. ++pcpcc;
  16059. ppc = (char**) pcpcc;
  16060. pcpcc = (char const *const *) ppc;
  16061. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16062. char tx;
  16063. char *t = &tx;
  16064. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16065. *t++ = 0;
  16066. if (s) return 0;
  16067. }
  16068. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16069. int x[] = {25, 17};
  16070. const int *foo = &x[0];
  16071. ++foo;
  16072. }
  16073. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16074. typedef const int *iptr;
  16075. iptr p = 0;
  16076. ++p;
  16077. }
  16078. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16079. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16080. struct s { int j; const int *ap[3]; } bx;
  16081. struct s *b = &bx; b->j = 5;
  16082. }
  16083. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16084. const int foo = 10;
  16085. if (!foo) return 0;
  16086. }
  16087. return !cs[0] && !zero.x;
  16088. #endif
  16089. ;
  16090. return 0;
  16091. }
  16092. _ACEOF
  16093. if ac_fn_c_try_compile "$LINENO"
  16094. then :
  16095. ac_cv_c_const=yes
  16096. else $as_nop
  16097. ac_cv_c_const=no
  16098. fi
  16099. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16100. fi
  16101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16102. printf "%s\n" "$ac_cv_c_const" >&6; }
  16103. if test $ac_cv_c_const = no; then
  16104. printf "%s\n" "#define const /**/" >>confdefs.h
  16105. fi
  16106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16107. printf %s "checking for inline... " >&6; }
  16108. if test ${ac_cv_c_inline+y}
  16109. then :
  16110. printf %s "(cached) " >&6
  16111. else $as_nop
  16112. ac_cv_c_inline=no
  16113. for ac_kw in inline __inline__ __inline; do
  16114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16115. /* end confdefs.h. */
  16116. #ifndef __cplusplus
  16117. typedef int foo_t;
  16118. static $ac_kw foo_t static_foo (void) {return 0; }
  16119. $ac_kw foo_t foo (void) {return 0; }
  16120. #endif
  16121. _ACEOF
  16122. if ac_fn_c_try_compile "$LINENO"
  16123. then :
  16124. ac_cv_c_inline=$ac_kw
  16125. fi
  16126. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16127. test "$ac_cv_c_inline" != no && break
  16128. done
  16129. fi
  16130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16131. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16132. case $ac_cv_c_inline in
  16133. inline | yes) ;;
  16134. *)
  16135. case $ac_cv_c_inline in
  16136. no) ac_val=;;
  16137. *) ac_val=$ac_cv_c_inline;;
  16138. esac
  16139. cat >>confdefs.h <<_ACEOF
  16140. #ifndef __cplusplus
  16141. #define inline $ac_val
  16142. #endif
  16143. _ACEOF
  16144. ;;
  16145. esac
  16146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16147. printf %s "checking for working volatile... " >&6; }
  16148. if test ${ac_cv_c_volatile+y}
  16149. then :
  16150. printf %s "(cached) " >&6
  16151. else $as_nop
  16152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16153. /* end confdefs.h. */
  16154. int
  16155. main (void)
  16156. {
  16157. volatile int x;
  16158. int * volatile y = (int *) 0;
  16159. return !x && !y;
  16160. ;
  16161. return 0;
  16162. }
  16163. _ACEOF
  16164. if ac_fn_c_try_compile "$LINENO"
  16165. then :
  16166. ac_cv_c_volatile=yes
  16167. else $as_nop
  16168. ac_cv_c_volatile=no
  16169. fi
  16170. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16171. fi
  16172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16173. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16174. if test $ac_cv_c_volatile = no; then
  16175. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16176. fi
  16177. # Check whether --enable-assertions was given.
  16178. if test ${enable_assertions+y}
  16179. then :
  16180. enableval=$enable_assertions;
  16181. else $as_nop
  16182. enable_assertions=auto
  16183. fi
  16184. case "$enable_assertions" in
  16185. auto) # Use optimization settings to determine assertion level
  16186. ;;
  16187. disabled)
  16188. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16189. ;;
  16190. release)
  16191. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16192. ;;
  16193. enabled)
  16194. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16195. ;;
  16196. paranoid)
  16197. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16198. ;;
  16199. *)
  16200. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16201. ;;
  16202. esac
  16203. 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"
  16204. # Check whether --enable-dependency-tracking was given.
  16205. if test ${enable_dependency_tracking+y}
  16206. then :
  16207. enableval=$enable_dependency_tracking;
  16208. else $as_nop
  16209. enable_dependency_tracking=yes
  16210. fi
  16211. if test x$enable_dependency_tracking = xyes; then
  16212. have_gcc_mmd_mt=no
  16213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16214. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16216. /* end confdefs.h. */
  16217. #if !defined(__GNUC__) || __GNUC__ < 3
  16218. #error Dependency tracking requires GCC 3.0 or newer
  16219. #endif
  16220. int
  16221. main (void)
  16222. {
  16223. ;
  16224. return 0;
  16225. }
  16226. _ACEOF
  16227. if ac_fn_c_try_compile "$LINENO"
  16228. then :
  16229. have_gcc_mmd_mt=yes
  16230. fi
  16231. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16233. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16234. if test x$have_gcc_mmd_mt = xyes; then
  16235. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16236. fi
  16237. fi
  16238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16239. printf %s "checking for linker option --no-undefined... " >&6; }
  16240. have_no_undefined=no
  16241. case "$host" in
  16242. *-*-openbsd*)
  16243. ;;
  16244. *)
  16245. save_LDFLAGS="$LDFLAGS"
  16246. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16248. /* end confdefs.h. */
  16249. int
  16250. main (void)
  16251. {
  16252. ;
  16253. return 0;
  16254. }
  16255. _ACEOF
  16256. if ac_fn_c_try_link "$LINENO"
  16257. then :
  16258. have_no_undefined=yes
  16259. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16260. fi
  16261. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16262. conftest$ac_exeext conftest.$ac_ext
  16263. LDFLAGS="$save_LDFLAGS"
  16264. ;;
  16265. esac
  16266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16267. printf "%s\n" "$have_no_undefined" >&6; }
  16268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16269. printf %s "checking for linker option --dynamicbase... " >&6; }
  16270. have_dynamicbase=no
  16271. case "$host" in
  16272. *)
  16273. save_LDFLAGS="$LDFLAGS"
  16274. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16276. /* end confdefs.h. */
  16277. int
  16278. main (void)
  16279. {
  16280. ;
  16281. return 0;
  16282. }
  16283. _ACEOF
  16284. if ac_fn_c_try_link "$LINENO"
  16285. then :
  16286. have_dynamicbase=yes
  16287. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16288. fi
  16289. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16290. conftest$ac_exeext conftest.$ac_ext
  16291. LDFLAGS="$save_LDFLAGS"
  16292. ;;
  16293. esac
  16294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16295. printf "%s\n" "$have_dynamicbase" >&6; }
  16296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16297. printf %s "checking for linker option --nxcompat... " >&6; }
  16298. have_nxcompat=no
  16299. case "$host" in
  16300. *)
  16301. save_LDFLAGS="$LDFLAGS"
  16302. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16304. /* end confdefs.h. */
  16305. int
  16306. main (void)
  16307. {
  16308. ;
  16309. return 0;
  16310. }
  16311. _ACEOF
  16312. if ac_fn_c_try_link "$LINENO"
  16313. then :
  16314. have_nxcompat=yes
  16315. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16316. fi
  16317. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16318. conftest$ac_exeext conftest.$ac_ext
  16319. LDFLAGS="$save_LDFLAGS"
  16320. ;;
  16321. esac
  16322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16323. printf "%s\n" "$have_nxcompat" >&6; }
  16324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16325. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16326. have_high_entropy_va=no
  16327. case "$host" in
  16328. *)
  16329. save_LDFLAGS="$LDFLAGS"
  16330. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16332. /* end confdefs.h. */
  16333. int
  16334. main (void)
  16335. {
  16336. ;
  16337. return 0;
  16338. }
  16339. _ACEOF
  16340. if ac_fn_c_try_link "$LINENO"
  16341. then :
  16342. have_high_entropy_va=yes
  16343. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16344. fi
  16345. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16346. conftest$ac_exeext conftest.$ac_ext
  16347. LDFLAGS="$save_LDFLAGS"
  16348. ;;
  16349. esac
  16350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16351. printf "%s\n" "$have_high_entropy_va" >&6; }
  16352. # Check whether --enable-libc was given.
  16353. if test ${enable_libc+y}
  16354. then :
  16355. enableval=$enable_libc;
  16356. else $as_nop
  16357. enable_libc=yes
  16358. fi
  16359. # Check whether --enable-system-iconv was given.
  16360. if test ${enable_system_iconv+y}
  16361. then :
  16362. enableval=$enable_system_iconv;
  16363. else $as_nop
  16364. enable_system_iconv=yes
  16365. fi
  16366. if test x$enable_libc = xyes; then
  16367. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16368. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16369. if test "x$ac_cv_header_sys_types_h" = xyes
  16370. then :
  16371. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16372. fi
  16373. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16374. if test "x$ac_cv_header_stdio_h" = xyes
  16375. then :
  16376. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16377. fi
  16378. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16379. if test "x$ac_cv_header_stdlib_h" = xyes
  16380. then :
  16381. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16382. fi
  16383. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16384. if test "x$ac_cv_header_stddef_h" = xyes
  16385. then :
  16386. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16387. fi
  16388. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16389. if test "x$ac_cv_header_stdarg_h" = xyes
  16390. then :
  16391. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16392. fi
  16393. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16394. if test "x$ac_cv_header_malloc_h" = xyes
  16395. then :
  16396. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16397. fi
  16398. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16399. if test "x$ac_cv_header_memory_h" = xyes
  16400. then :
  16401. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16402. fi
  16403. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16404. if test "x$ac_cv_header_string_h" = xyes
  16405. then :
  16406. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16407. fi
  16408. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16409. if test "x$ac_cv_header_strings_h" = xyes
  16410. then :
  16411. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16412. fi
  16413. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16414. if test "x$ac_cv_header_wchar_h" = xyes
  16415. then :
  16416. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16417. fi
  16418. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16419. if test "x$ac_cv_header_inttypes_h" = xyes
  16420. then :
  16421. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16422. fi
  16423. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16424. if test "x$ac_cv_header_stdint_h" = xyes
  16425. then :
  16426. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16427. fi
  16428. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16429. if test "x$ac_cv_header_limits_h" = xyes
  16430. then :
  16431. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16432. fi
  16433. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16434. if test "x$ac_cv_header_ctype_h" = xyes
  16435. then :
  16436. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16437. fi
  16438. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16439. if test "x$ac_cv_header_math_h" = xyes
  16440. then :
  16441. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16442. fi
  16443. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16444. if test "x$ac_cv_header_float_h" = xyes
  16445. then :
  16446. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16447. fi
  16448. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16449. if test "x$ac_cv_header_iconv_h" = xyes
  16450. then :
  16451. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16452. fi
  16453. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16454. if test "x$ac_cv_header_signal_h" = xyes
  16455. then :
  16456. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16457. fi
  16458. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  16459. if test "x$ac_cv_header_linux_input_h" = xyes
  16460. then :
  16461. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  16462. fi
  16463. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16464. if test "x$ac_cv_type_size_t" = xyes
  16465. then :
  16466. else $as_nop
  16467. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16468. fi
  16469. ac_ext=c
  16470. ac_cpp='$CPP $CPPFLAGS'
  16471. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16472. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16473. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16475. printf %s "checking how to run the C preprocessor... " >&6; }
  16476. # On Suns, sometimes $CPP names a directory.
  16477. if test -n "$CPP" && test -d "$CPP"; then
  16478. CPP=
  16479. fi
  16480. if test -z "$CPP"; then
  16481. if test ${ac_cv_prog_CPP+y}
  16482. then :
  16483. printf %s "(cached) " >&6
  16484. else $as_nop
  16485. # Double quotes because $CC needs to be expanded
  16486. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16487. do
  16488. ac_preproc_ok=false
  16489. for ac_c_preproc_warn_flag in '' yes
  16490. do
  16491. # Use a header file that comes with gcc, so configuring glibc
  16492. # with a fresh cross-compiler works.
  16493. # On the NeXT, cc -E runs the code through the compiler's parser,
  16494. # not just through cpp. "Syntax error" is here to catch this case.
  16495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16496. /* end confdefs.h. */
  16497. #include <limits.h>
  16498. Syntax error
  16499. _ACEOF
  16500. if ac_fn_c_try_cpp "$LINENO"
  16501. then :
  16502. else $as_nop
  16503. # Broken: fails on valid input.
  16504. continue
  16505. fi
  16506. rm -f conftest.err conftest.i conftest.$ac_ext
  16507. # OK, works on sane cases. Now check whether nonexistent headers
  16508. # can be detected and how.
  16509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16510. /* end confdefs.h. */
  16511. #include <ac_nonexistent.h>
  16512. _ACEOF
  16513. if ac_fn_c_try_cpp "$LINENO"
  16514. then :
  16515. # Broken: success on invalid input.
  16516. continue
  16517. else $as_nop
  16518. # Passes both tests.
  16519. ac_preproc_ok=:
  16520. break
  16521. fi
  16522. rm -f conftest.err conftest.i conftest.$ac_ext
  16523. done
  16524. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16525. rm -f conftest.i conftest.err conftest.$ac_ext
  16526. if $ac_preproc_ok
  16527. then :
  16528. break
  16529. fi
  16530. done
  16531. ac_cv_prog_CPP=$CPP
  16532. fi
  16533. CPP=$ac_cv_prog_CPP
  16534. else
  16535. ac_cv_prog_CPP=$CPP
  16536. fi
  16537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16538. printf "%s\n" "$CPP" >&6; }
  16539. ac_preproc_ok=false
  16540. for ac_c_preproc_warn_flag in '' yes
  16541. do
  16542. # Use a header file that comes with gcc, so configuring glibc
  16543. # with a fresh cross-compiler works.
  16544. # On the NeXT, cc -E runs the code through the compiler's parser,
  16545. # not just through cpp. "Syntax error" is here to catch this case.
  16546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16547. /* end confdefs.h. */
  16548. #include <limits.h>
  16549. Syntax error
  16550. _ACEOF
  16551. if ac_fn_c_try_cpp "$LINENO"
  16552. then :
  16553. else $as_nop
  16554. # Broken: fails on valid input.
  16555. continue
  16556. fi
  16557. rm -f conftest.err conftest.i conftest.$ac_ext
  16558. # OK, works on sane cases. Now check whether nonexistent headers
  16559. # can be detected and how.
  16560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16561. /* end confdefs.h. */
  16562. #include <ac_nonexistent.h>
  16563. _ACEOF
  16564. if ac_fn_c_try_cpp "$LINENO"
  16565. then :
  16566. # Broken: success on invalid input.
  16567. continue
  16568. else $as_nop
  16569. # Passes both tests.
  16570. ac_preproc_ok=:
  16571. break
  16572. fi
  16573. rm -f conftest.err conftest.i conftest.$ac_ext
  16574. done
  16575. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16576. rm -f conftest.i conftest.err conftest.$ac_ext
  16577. if $ac_preproc_ok
  16578. then :
  16579. else $as_nop
  16580. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16581. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16582. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16583. See \`config.log' for more details" "$LINENO" 5; }
  16584. fi
  16585. ac_ext=c
  16586. ac_cpp='$CPP $CPPFLAGS'
  16587. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16588. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16589. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16591. printf %s "checking for M_PI in math.h... " >&6; }
  16592. if test ${ac_cv_define_M_PI+y}
  16593. then :
  16594. printf %s "(cached) " >&6
  16595. else $as_nop
  16596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16597. /* end confdefs.h. */
  16598. #include <math.h>
  16599. #ifdef M_PI
  16600. YES_IS_DEFINED
  16601. #endif
  16602. _ACEOF
  16603. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16604. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16605. then :
  16606. ac_cv_define_M_PI=yes
  16607. else $as_nop
  16608. ac_cv_define_M_PI=no
  16609. fi
  16610. rm -rf conftest*
  16611. fi
  16612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16613. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16614. if test "$ac_cv_define_M_PI" = "yes" ; then
  16615. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16616. fi
  16617. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16618. # for constant arguments. Useless!
  16619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16620. printf %s "checking for working alloca.h... " >&6; }
  16621. if test ${ac_cv_working_alloca_h+y}
  16622. then :
  16623. printf %s "(cached) " >&6
  16624. else $as_nop
  16625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16626. /* end confdefs.h. */
  16627. #include <alloca.h>
  16628. int
  16629. main (void)
  16630. {
  16631. char *p = (char *) alloca (2 * sizeof (int));
  16632. if (p) return 0;
  16633. ;
  16634. return 0;
  16635. }
  16636. _ACEOF
  16637. if ac_fn_c_try_link "$LINENO"
  16638. then :
  16639. ac_cv_working_alloca_h=yes
  16640. else $as_nop
  16641. ac_cv_working_alloca_h=no
  16642. fi
  16643. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16644. conftest$ac_exeext conftest.$ac_ext
  16645. fi
  16646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16647. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16648. if test $ac_cv_working_alloca_h = yes; then
  16649. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16650. fi
  16651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16652. printf %s "checking for alloca... " >&6; }
  16653. if test ${ac_cv_func_alloca_works+y}
  16654. then :
  16655. printf %s "(cached) " >&6
  16656. else $as_nop
  16657. if test $ac_cv_working_alloca_h = yes; then
  16658. ac_cv_func_alloca_works=yes
  16659. else
  16660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16661. /* end confdefs.h. */
  16662. #include <stdlib.h>
  16663. #include <stddef.h>
  16664. #ifndef alloca
  16665. # ifdef __GNUC__
  16666. # define alloca __builtin_alloca
  16667. # elif defined _MSC_VER
  16668. # include <malloc.h>
  16669. # define alloca _alloca
  16670. # else
  16671. # ifdef __cplusplus
  16672. extern "C"
  16673. # endif
  16674. void *alloca (size_t);
  16675. # endif
  16676. #endif
  16677. int
  16678. main (void)
  16679. {
  16680. char *p = (char *) alloca (1);
  16681. if (p) return 0;
  16682. ;
  16683. return 0;
  16684. }
  16685. _ACEOF
  16686. if ac_fn_c_try_link "$LINENO"
  16687. then :
  16688. ac_cv_func_alloca_works=yes
  16689. else $as_nop
  16690. ac_cv_func_alloca_works=no
  16691. fi
  16692. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16693. conftest$ac_exeext conftest.$ac_ext
  16694. fi
  16695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16696. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16697. fi
  16698. if test $ac_cv_func_alloca_works = yes; then
  16699. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16700. else
  16701. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16702. # that cause trouble. Some versions do not even contain alloca or
  16703. # contain a buggy version. If you still want to use their alloca,
  16704. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16705. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16706. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16708. printf %s "checking stack direction for C alloca... " >&6; }
  16709. if test ${ac_cv_c_stack_direction+y}
  16710. then :
  16711. printf %s "(cached) " >&6
  16712. else $as_nop
  16713. if test "$cross_compiling" = yes
  16714. then :
  16715. ac_cv_c_stack_direction=0
  16716. else $as_nop
  16717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16718. /* end confdefs.h. */
  16719. $ac_includes_default
  16720. int
  16721. find_stack_direction (int *addr, int depth)
  16722. {
  16723. int dir, dummy = 0;
  16724. if (! addr)
  16725. addr = &dummy;
  16726. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16727. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16728. return dir + dummy;
  16729. }
  16730. int
  16731. main (int argc, char **argv)
  16732. {
  16733. return find_stack_direction (0, argc + !argv + 20) < 0;
  16734. }
  16735. _ACEOF
  16736. if ac_fn_c_try_run "$LINENO"
  16737. then :
  16738. ac_cv_c_stack_direction=1
  16739. else $as_nop
  16740. ac_cv_c_stack_direction=-1
  16741. fi
  16742. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16743. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16744. fi
  16745. fi
  16746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16747. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16748. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16749. fi
  16750. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16751. if test "x$ac_cv_func_mprotect" = xyes
  16752. then :
  16753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16754. /* end confdefs.h. */
  16755. #include <sys/types.h>
  16756. #include <sys/mman.h>
  16757. int
  16758. main (void)
  16759. {
  16760. ;
  16761. return 0;
  16762. }
  16763. _ACEOF
  16764. if ac_fn_c_try_compile "$LINENO"
  16765. then :
  16766. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16767. fi
  16768. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16769. fi
  16770. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16771. if test "x$ac_cv_func_malloc" = xyes
  16772. then :
  16773. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16774. fi
  16775. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16776. if test "x$ac_cv_func_calloc" = xyes
  16777. then :
  16778. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16779. fi
  16780. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16781. if test "x$ac_cv_func_realloc" = xyes
  16782. then :
  16783. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16784. fi
  16785. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16786. if test "x$ac_cv_func_free" = xyes
  16787. then :
  16788. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16789. fi
  16790. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16791. if test "x$ac_cv_func_getenv" = xyes
  16792. then :
  16793. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16794. fi
  16795. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16796. if test "x$ac_cv_func_setenv" = xyes
  16797. then :
  16798. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16799. fi
  16800. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16801. if test "x$ac_cv_func_putenv" = xyes
  16802. then :
  16803. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16804. fi
  16805. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16806. if test "x$ac_cv_func_unsetenv" = xyes
  16807. then :
  16808. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16809. fi
  16810. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16811. if test "x$ac_cv_func_bsearch" = xyes
  16812. then :
  16813. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16814. fi
  16815. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16816. if test "x$ac_cv_func_qsort" = xyes
  16817. then :
  16818. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16819. fi
  16820. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16821. if test "x$ac_cv_func_abs" = xyes
  16822. then :
  16823. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16824. fi
  16825. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16826. if test "x$ac_cv_func_bcopy" = xyes
  16827. then :
  16828. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16829. fi
  16830. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16831. if test "x$ac_cv_func_memset" = xyes
  16832. then :
  16833. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16834. fi
  16835. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16836. if test "x$ac_cv_func_memcmp" = xyes
  16837. then :
  16838. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16839. fi
  16840. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16841. if test "x$ac_cv_func_memcpy" = xyes
  16842. then :
  16843. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16844. fi
  16845. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16846. if test "x$ac_cv_func_memmove" = xyes
  16847. then :
  16848. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16849. fi
  16850. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16851. if test "x$ac_cv_func_wcslen" = xyes
  16852. then :
  16853. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16854. fi
  16855. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16856. if test "x$ac_cv_func_wcslcpy" = xyes
  16857. then :
  16858. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16859. fi
  16860. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16861. if test "x$ac_cv_func_wcslcat" = xyes
  16862. then :
  16863. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16864. fi
  16865. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16866. if test "x$ac_cv_func__wcsdup" = xyes
  16867. then :
  16868. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16869. fi
  16870. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16871. if test "x$ac_cv_func_wcsdup" = xyes
  16872. then :
  16873. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16874. fi
  16875. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16876. if test "x$ac_cv_func_wcsstr" = xyes
  16877. then :
  16878. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16879. fi
  16880. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16881. if test "x$ac_cv_func_wcscmp" = xyes
  16882. then :
  16883. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16884. fi
  16885. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16886. if test "x$ac_cv_func_wcsncmp" = xyes
  16887. then :
  16888. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16889. fi
  16890. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16891. if test "x$ac_cv_func_wcscasecmp" = xyes
  16892. then :
  16893. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16894. fi
  16895. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16896. if test "x$ac_cv_func__wcsicmp" = xyes
  16897. then :
  16898. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16899. fi
  16900. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16901. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16902. then :
  16903. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16904. fi
  16905. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16906. if test "x$ac_cv_func__wcsnicmp" = xyes
  16907. then :
  16908. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16909. fi
  16910. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16911. if test "x$ac_cv_func_strlen" = xyes
  16912. then :
  16913. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16914. fi
  16915. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16916. if test "x$ac_cv_func_strlcpy" = xyes
  16917. then :
  16918. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16919. fi
  16920. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16921. if test "x$ac_cv_func_strlcat" = xyes
  16922. then :
  16923. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16924. fi
  16925. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16926. if test "x$ac_cv_func__strrev" = xyes
  16927. then :
  16928. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16929. fi
  16930. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16931. if test "x$ac_cv_func__strupr" = xyes
  16932. then :
  16933. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16934. fi
  16935. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16936. if test "x$ac_cv_func__strlwr" = xyes
  16937. then :
  16938. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16939. fi
  16940. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16941. if test "x$ac_cv_func_index" = xyes
  16942. then :
  16943. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16944. fi
  16945. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16946. if test "x$ac_cv_func_rindex" = xyes
  16947. then :
  16948. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16949. fi
  16950. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16951. if test "x$ac_cv_func_strchr" = xyes
  16952. then :
  16953. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16954. fi
  16955. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16956. if test "x$ac_cv_func_strrchr" = xyes
  16957. then :
  16958. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16959. fi
  16960. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16961. if test "x$ac_cv_func_strstr" = xyes
  16962. then :
  16963. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16964. fi
  16965. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16966. if test "x$ac_cv_func_strtok_r" = xyes
  16967. then :
  16968. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16969. fi
  16970. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16971. if test "x$ac_cv_func_itoa" = xyes
  16972. then :
  16973. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16974. fi
  16975. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16976. if test "x$ac_cv_func__ltoa" = xyes
  16977. then :
  16978. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16979. fi
  16980. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16981. if test "x$ac_cv_func__uitoa" = xyes
  16982. then :
  16983. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16984. fi
  16985. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16986. if test "x$ac_cv_func__ultoa" = xyes
  16987. then :
  16988. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16989. fi
  16990. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16991. if test "x$ac_cv_func_strtod" = xyes
  16992. then :
  16993. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16994. fi
  16995. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16996. if test "x$ac_cv_func_strtol" = xyes
  16997. then :
  16998. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16999. fi
  17000. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17001. if test "x$ac_cv_func_strtoul" = xyes
  17002. then :
  17003. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17004. fi
  17005. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17006. if test "x$ac_cv_func__i64toa" = xyes
  17007. then :
  17008. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17009. fi
  17010. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17011. if test "x$ac_cv_func__ui64toa" = xyes
  17012. then :
  17013. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17014. fi
  17015. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17016. if test "x$ac_cv_func_strtoll" = xyes
  17017. then :
  17018. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17019. fi
  17020. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17021. if test "x$ac_cv_func_strtoull" = xyes
  17022. then :
  17023. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17024. fi
  17025. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17026. if test "x$ac_cv_func_atoi" = xyes
  17027. then :
  17028. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17029. fi
  17030. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17031. if test "x$ac_cv_func_atof" = xyes
  17032. then :
  17033. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17034. fi
  17035. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17036. if test "x$ac_cv_func_strcmp" = xyes
  17037. then :
  17038. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17039. fi
  17040. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17041. if test "x$ac_cv_func_strncmp" = xyes
  17042. then :
  17043. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17044. fi
  17045. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17046. if test "x$ac_cv_func__stricmp" = xyes
  17047. then :
  17048. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17049. fi
  17050. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17051. if test "x$ac_cv_func_strcasecmp" = xyes
  17052. then :
  17053. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17054. fi
  17055. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17056. if test "x$ac_cv_func__strnicmp" = xyes
  17057. then :
  17058. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17059. fi
  17060. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17061. if test "x$ac_cv_func_strncasecmp" = xyes
  17062. then :
  17063. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17064. fi
  17065. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17066. if test "x$ac_cv_func_strcasestr" = xyes
  17067. then :
  17068. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17069. fi
  17070. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17071. if test "x$ac_cv_func_vsscanf" = xyes
  17072. then :
  17073. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17074. fi
  17075. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17076. if test "x$ac_cv_func_vsnprintf" = xyes
  17077. then :
  17078. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17079. fi
  17080. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17081. if test "x$ac_cv_func_fopen64" = xyes
  17082. then :
  17083. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17084. fi
  17085. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17086. if test "x$ac_cv_func_fseeko" = xyes
  17087. then :
  17088. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17089. fi
  17090. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17091. if test "x$ac_cv_func_fseeko64" = xyes
  17092. then :
  17093. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17094. fi
  17095. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17096. if test "x$ac_cv_func_sigaction" = xyes
  17097. then :
  17098. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17099. fi
  17100. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17101. if test "x$ac_cv_func_setjmp" = xyes
  17102. then :
  17103. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17104. fi
  17105. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17106. if test "x$ac_cv_func_nanosleep" = xyes
  17107. then :
  17108. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17109. fi
  17110. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17111. if test "x$ac_cv_func_sysconf" = xyes
  17112. then :
  17113. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17114. fi
  17115. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17116. if test "x$ac_cv_func_sysctlbyname" = xyes
  17117. then :
  17118. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17119. fi
  17120. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17121. if test "x$ac_cv_func_getauxval" = xyes
  17122. then :
  17123. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17124. fi
  17125. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17126. if test "x$ac_cv_func_elf_aux_info" = xyes
  17127. then :
  17128. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17129. fi
  17130. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17131. if test "x$ac_cv_func_poll" = xyes
  17132. then :
  17133. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17134. fi
  17135. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17136. if test "x$ac_cv_func__Exit" = xyes
  17137. then :
  17138. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17139. fi
  17140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17141. printf %s "checking for pow in -lm... " >&6; }
  17142. if test ${ac_cv_lib_m_pow+y}
  17143. then :
  17144. printf %s "(cached) " >&6
  17145. else $as_nop
  17146. ac_check_lib_save_LIBS=$LIBS
  17147. LIBS="-lm $LIBS"
  17148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17149. /* end confdefs.h. */
  17150. /* Override any GCC internal prototype to avoid an error.
  17151. Use char because int might match the return type of a GCC
  17152. builtin and then its argument prototype would still apply. */
  17153. char pow ();
  17154. int
  17155. main (void)
  17156. {
  17157. return pow ();
  17158. ;
  17159. return 0;
  17160. }
  17161. _ACEOF
  17162. if ac_fn_c_try_link "$LINENO"
  17163. then :
  17164. ac_cv_lib_m_pow=yes
  17165. else $as_nop
  17166. ac_cv_lib_m_pow=no
  17167. fi
  17168. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17169. conftest$ac_exeext conftest.$ac_ext
  17170. LIBS=$ac_check_lib_save_LIBS
  17171. fi
  17172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17173. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17174. if test "x$ac_cv_lib_m_pow" = xyes
  17175. then :
  17176. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17177. fi
  17178. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17179. if test "x$ac_cv_func_acos" = xyes
  17180. then :
  17181. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17182. fi
  17183. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17184. if test "x$ac_cv_func_acosf" = xyes
  17185. then :
  17186. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17187. fi
  17188. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17189. if test "x$ac_cv_func_asin" = xyes
  17190. then :
  17191. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17192. fi
  17193. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17194. if test "x$ac_cv_func_asinf" = xyes
  17195. then :
  17196. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17197. fi
  17198. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17199. if test "x$ac_cv_func_atan" = xyes
  17200. then :
  17201. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17202. fi
  17203. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17204. if test "x$ac_cv_func_atanf" = xyes
  17205. then :
  17206. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17207. fi
  17208. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17209. if test "x$ac_cv_func_atan2" = xyes
  17210. then :
  17211. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17212. fi
  17213. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17214. if test "x$ac_cv_func_atan2f" = xyes
  17215. then :
  17216. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17217. fi
  17218. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17219. if test "x$ac_cv_func_ceil" = xyes
  17220. then :
  17221. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17222. fi
  17223. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17224. if test "x$ac_cv_func_ceilf" = xyes
  17225. then :
  17226. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17227. fi
  17228. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17229. if test "x$ac_cv_func_copysign" = xyes
  17230. then :
  17231. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17232. fi
  17233. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17234. if test "x$ac_cv_func_copysignf" = xyes
  17235. then :
  17236. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17237. fi
  17238. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17239. if test "x$ac_cv_func_cos" = xyes
  17240. then :
  17241. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17242. fi
  17243. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17244. if test "x$ac_cv_func_cosf" = xyes
  17245. then :
  17246. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17247. fi
  17248. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17249. if test "x$ac_cv_func_exp" = xyes
  17250. then :
  17251. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17252. fi
  17253. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17254. if test "x$ac_cv_func_expf" = xyes
  17255. then :
  17256. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17257. fi
  17258. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17259. if test "x$ac_cv_func_fabs" = xyes
  17260. then :
  17261. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17262. fi
  17263. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17264. if test "x$ac_cv_func_fabsf" = xyes
  17265. then :
  17266. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17267. fi
  17268. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17269. if test "x$ac_cv_func_floor" = xyes
  17270. then :
  17271. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17272. fi
  17273. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17274. if test "x$ac_cv_func_floorf" = xyes
  17275. then :
  17276. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17277. fi
  17278. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17279. if test "x$ac_cv_func_trunc" = xyes
  17280. then :
  17281. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17282. fi
  17283. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17284. if test "x$ac_cv_func_truncf" = xyes
  17285. then :
  17286. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17287. fi
  17288. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17289. if test "x$ac_cv_func_fmod" = xyes
  17290. then :
  17291. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17292. fi
  17293. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17294. if test "x$ac_cv_func_fmodf" = xyes
  17295. then :
  17296. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17297. fi
  17298. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17299. if test "x$ac_cv_func_log" = xyes
  17300. then :
  17301. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17302. fi
  17303. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17304. if test "x$ac_cv_func_logf" = xyes
  17305. then :
  17306. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17307. fi
  17308. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17309. if test "x$ac_cv_func_log10" = xyes
  17310. then :
  17311. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17312. fi
  17313. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17314. if test "x$ac_cv_func_log10f" = xyes
  17315. then :
  17316. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17317. fi
  17318. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17319. if test "x$ac_cv_func_lround" = xyes
  17320. then :
  17321. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17322. fi
  17323. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17324. if test "x$ac_cv_func_lroundf" = xyes
  17325. then :
  17326. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17327. fi
  17328. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17329. if test "x$ac_cv_func_pow" = xyes
  17330. then :
  17331. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17332. fi
  17333. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17334. if test "x$ac_cv_func_powf" = xyes
  17335. then :
  17336. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17337. fi
  17338. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17339. if test "x$ac_cv_func_round" = xyes
  17340. then :
  17341. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17342. fi
  17343. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17344. if test "x$ac_cv_func_roundf" = xyes
  17345. then :
  17346. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17347. fi
  17348. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17349. if test "x$ac_cv_func_scalbn" = xyes
  17350. then :
  17351. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17352. fi
  17353. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17354. if test "x$ac_cv_func_scalbnf" = xyes
  17355. then :
  17356. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17357. fi
  17358. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17359. if test "x$ac_cv_func_sin" = xyes
  17360. then :
  17361. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17362. fi
  17363. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17364. if test "x$ac_cv_func_sinf" = xyes
  17365. then :
  17366. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17367. fi
  17368. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17369. if test "x$ac_cv_func_sqrt" = xyes
  17370. then :
  17371. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17372. fi
  17373. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17374. if test "x$ac_cv_func_sqrtf" = xyes
  17375. then :
  17376. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17377. fi
  17378. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17379. if test "x$ac_cv_func_tan" = xyes
  17380. then :
  17381. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17382. fi
  17383. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17384. if test "x$ac_cv_func_tanf" = xyes
  17385. then :
  17386. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17387. fi
  17388. if test x$enable_system_iconv = xyes; then
  17389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17390. printf %s "checking for iconv_open in -liconv... " >&6; }
  17391. if test ${ac_cv_lib_iconv_iconv_open+y}
  17392. then :
  17393. printf %s "(cached) " >&6
  17394. else $as_nop
  17395. ac_check_lib_save_LIBS=$LIBS
  17396. LIBS="-liconv $LIBS"
  17397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17398. /* end confdefs.h. */
  17399. /* Override any GCC internal prototype to avoid an error.
  17400. Use char because int might match the return type of a GCC
  17401. builtin and then its argument prototype would still apply. */
  17402. char iconv_open ();
  17403. int
  17404. main (void)
  17405. {
  17406. return iconv_open ();
  17407. ;
  17408. return 0;
  17409. }
  17410. _ACEOF
  17411. if ac_fn_c_try_link "$LINENO"
  17412. then :
  17413. ac_cv_lib_iconv_iconv_open=yes
  17414. else $as_nop
  17415. ac_cv_lib_iconv_iconv_open=no
  17416. fi
  17417. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17418. conftest$ac_exeext conftest.$ac_ext
  17419. LIBS=$ac_check_lib_save_LIBS
  17420. fi
  17421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17422. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17423. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17424. then :
  17425. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17426. fi
  17427. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17428. if test "x$ac_cv_func_iconv" = xyes
  17429. then :
  17430. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17431. fi
  17432. fi
  17433. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17434. "
  17435. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17436. then :
  17437. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17438. fi
  17439. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17440. if test "x$ac_cv_header_libunwind_h" = xyes
  17441. then :
  17442. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17443. fi
  17444. fi
  17445. # Check whether --enable-gcc-atomics was given.
  17446. if test ${enable_gcc_atomics+y}
  17447. then :
  17448. enableval=$enable_gcc_atomics;
  17449. else $as_nop
  17450. enable_gcc_atomics=yes
  17451. fi
  17452. if test x$enable_gcc_atomics = xyes; then
  17453. have_gcc_atomics=no
  17454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17455. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17457. /* end confdefs.h. */
  17458. int
  17459. main (void)
  17460. {
  17461. int a;
  17462. void *x, *y, *z;
  17463. __sync_lock_test_and_set(&a, 4);
  17464. __sync_lock_test_and_set(&x, y);
  17465. __sync_fetch_and_add(&a, 1);
  17466. __sync_bool_compare_and_swap(&a, 5, 10);
  17467. __sync_bool_compare_and_swap(&x, y, z);
  17468. ;
  17469. return 0;
  17470. }
  17471. _ACEOF
  17472. if ac_fn_c_try_link "$LINENO"
  17473. then :
  17474. have_gcc_atomics=yes
  17475. fi
  17476. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17477. conftest$ac_exeext conftest.$ac_ext
  17478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17479. printf "%s\n" "$have_gcc_atomics" >&6; }
  17480. if test x$have_gcc_atomics = xyes; then
  17481. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17482. else
  17483. # See if we have the minimum operation needed for GCC atomics
  17484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17485. /* end confdefs.h. */
  17486. int
  17487. main (void)
  17488. {
  17489. int a;
  17490. __sync_lock_test_and_set(&a, 1);
  17491. __sync_lock_release(&a);
  17492. ;
  17493. return 0;
  17494. }
  17495. _ACEOF
  17496. if ac_fn_c_try_link "$LINENO"
  17497. then :
  17498. have_gcc_sync_lock_test_and_set=yes
  17499. fi
  17500. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17501. conftest$ac_exeext conftest.$ac_ext
  17502. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17503. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17504. fi
  17505. fi
  17506. fi
  17507. # Standard C sources
  17508. SOURCES="$SOURCES $srcdir/src/*.c"
  17509. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17510. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17511. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17512. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17513. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17514. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17515. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17516. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17517. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17518. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17519. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17520. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17521. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17522. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17523. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17524. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17525. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17526. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17527. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17528. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17529. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17530. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17531. case "$host" in
  17532. *-*-emscripten*)
  17533. default_atomic=no
  17534. ;;
  17535. *)
  17536. default_atomic=yes
  17537. ;;
  17538. esac
  17539. # Check whether --enable-atomic was given.
  17540. if test ${enable_atomic+y}
  17541. then :
  17542. enableval=$enable_atomic;
  17543. else $as_nop
  17544. enable_atomic=$default_atomic
  17545. fi
  17546. if test x$enable_atomic != xyes; then
  17547. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17548. else
  17549. SUMMARY_modules="${SUMMARY_modules} atomic"
  17550. fi
  17551. # Check whether --enable-audio was given.
  17552. if test ${enable_audio+y}
  17553. then :
  17554. enableval=$enable_audio;
  17555. else $as_nop
  17556. enable_audio=yes
  17557. fi
  17558. if test x$enable_audio != xyes; then
  17559. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17560. else
  17561. SUMMARY_modules="${SUMMARY_modules} audio"
  17562. fi
  17563. # Check whether --enable-video was given.
  17564. if test ${enable_video+y}
  17565. then :
  17566. enableval=$enable_video;
  17567. else $as_nop
  17568. enable_video=yes
  17569. fi
  17570. if test x$enable_video != xyes; then
  17571. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17572. else
  17573. SUMMARY_modules="${SUMMARY_modules} video"
  17574. fi
  17575. # Check whether --enable-render was given.
  17576. if test ${enable_render+y}
  17577. then :
  17578. enableval=$enable_render;
  17579. else $as_nop
  17580. enable_render=yes
  17581. fi
  17582. if test x$enable_render != xyes; then
  17583. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17584. else
  17585. SUMMARY_modules="${SUMMARY_modules} render"
  17586. fi
  17587. # Check whether --enable-events was given.
  17588. if test ${enable_events+y}
  17589. then :
  17590. enableval=$enable_events;
  17591. else $as_nop
  17592. enable_events=yes
  17593. fi
  17594. if test x$enable_events != xyes; then
  17595. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17596. else
  17597. SUMMARY_modules="${SUMMARY_modules} events"
  17598. fi
  17599. # Check whether --enable-joystick was given.
  17600. if test ${enable_joystick+y}
  17601. then :
  17602. enableval=$enable_joystick;
  17603. else $as_nop
  17604. enable_joystick=yes
  17605. fi
  17606. if test x$enable_joystick != xyes; then
  17607. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17608. else
  17609. SUMMARY_modules="${SUMMARY_modules} joystick"
  17610. fi
  17611. # Check whether --enable-haptic was given.
  17612. if test ${enable_haptic+y}
  17613. then :
  17614. enableval=$enable_haptic;
  17615. else $as_nop
  17616. enable_haptic=yes
  17617. fi
  17618. if test x$enable_haptic != xyes; then
  17619. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17620. else
  17621. SUMMARY_modules="${SUMMARY_modules} haptic"
  17622. fi
  17623. # Check whether --enable-hidapi was given.
  17624. if test ${enable_hidapi+y}
  17625. then :
  17626. enableval=$enable_hidapi;
  17627. else $as_nop
  17628. enable_hidapi=yes
  17629. fi
  17630. if test x$enable_hidapi != xyes; then
  17631. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17632. else
  17633. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17634. fi
  17635. # Check whether --enable-sensor was given.
  17636. if test ${enable_sensor+y}
  17637. then :
  17638. enableval=$enable_sensor;
  17639. else $as_nop
  17640. enable_sensor=yes
  17641. fi
  17642. if test x$enable_sensor != xyes; then
  17643. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17644. else
  17645. SUMMARY_modules="${SUMMARY_modules} sensor"
  17646. fi
  17647. # Check whether --enable-power was given.
  17648. if test ${enable_power+y}
  17649. then :
  17650. enableval=$enable_power;
  17651. else $as_nop
  17652. enable_power=yes
  17653. fi
  17654. if test x$enable_power != xyes; then
  17655. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17656. else
  17657. SUMMARY_modules="${SUMMARY_modules} power"
  17658. fi
  17659. # Check whether --enable-filesystem was given.
  17660. if test ${enable_filesystem+y}
  17661. then :
  17662. enableval=$enable_filesystem;
  17663. else $as_nop
  17664. enable_filesystem=yes
  17665. fi
  17666. if test x$enable_filesystem != xyes; then
  17667. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17668. else
  17669. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17670. fi
  17671. # Many subsystems depend on threads, so leave them enabled by default
  17672. #AC_ARG_ENABLE(threads,
  17673. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17674. # , enable_threads=yes)
  17675. enable_threads=yes
  17676. if test x$enable_threads != xyes; then
  17677. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17678. else
  17679. SUMMARY_modules="${SUMMARY_modules} threads"
  17680. fi
  17681. # Check whether --enable-timers was given.
  17682. if test ${enable_timers+y}
  17683. then :
  17684. enableval=$enable_timers;
  17685. else $as_nop
  17686. enable_timers=yes
  17687. fi
  17688. if test x$enable_timers != xyes; then
  17689. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17690. else
  17691. SUMMARY_modules="${SUMMARY_modules} timers"
  17692. fi
  17693. # Check whether --enable-file was given.
  17694. if test ${enable_file+y}
  17695. then :
  17696. enableval=$enable_file;
  17697. else $as_nop
  17698. enable_file=yes
  17699. fi
  17700. if test x$enable_file != xyes; then
  17701. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17702. else
  17703. SUMMARY_modules="${SUMMARY_modules} file"
  17704. fi
  17705. # Check whether --enable-misc was given.
  17706. if test ${enable_misc+y}
  17707. then :
  17708. enableval=$enable_misc;
  17709. else $as_nop
  17710. enable_misc=yes
  17711. fi
  17712. if test x$enable_misc != xyes; then
  17713. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17714. else
  17715. SUMMARY_modules="${SUMMARY_modules} misc"
  17716. fi
  17717. # Check whether --enable-locale was given.
  17718. if test ${enable_locale+y}
  17719. then :
  17720. enableval=$enable_locale;
  17721. else $as_nop
  17722. enable_locale=yes
  17723. fi
  17724. if test x$enable_locale != xyes; then
  17725. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17726. else
  17727. SUMMARY_modules="${SUMMARY_modules} locale"
  17728. fi
  17729. # Check whether --enable-loadso was given.
  17730. if test ${enable_loadso+y}
  17731. then :
  17732. enableval=$enable_loadso;
  17733. else $as_nop
  17734. enable_loadso=yes
  17735. fi
  17736. if test x$enable_loadso != xyes; then
  17737. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17738. else
  17739. SUMMARY_modules="${SUMMARY_modules} loadso"
  17740. fi
  17741. # Check whether --enable-cpuinfo was given.
  17742. if test ${enable_cpuinfo+y}
  17743. then :
  17744. enableval=$enable_cpuinfo;
  17745. else $as_nop
  17746. enable_cpuinfo=yes
  17747. fi
  17748. if test x$enable_cpuinfo != xyes; then
  17749. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17750. else
  17751. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17752. fi
  17753. # Check whether --enable-assembly was given.
  17754. if test ${enable_assembly+y}
  17755. then :
  17756. enableval=$enable_assembly;
  17757. else $as_nop
  17758. enable_assembly=yes
  17759. fi
  17760. if test x$enable_assembly = xyes; then
  17761. SUMMARY_modules="${SUMMARY_modules} assembly"
  17762. # Make sure that we don't generate floating point code that would
  17763. # cause illegal instruction exceptions on older processors
  17764. case "$host" in
  17765. *-*-darwin*)
  17766. # Don't need to worry about Apple hardware, it's all SSE capable
  17767. default_ssemath=yes
  17768. ;;
  17769. *64-*-*)
  17770. # x86 64-bit architectures all have SSE instructions
  17771. default_ssemath=yes
  17772. ;;
  17773. *)
  17774. default_ssemath=no
  17775. ;;
  17776. esac
  17777. # Check whether --enable-ssemath was given.
  17778. if test ${enable_ssemath+y}
  17779. then :
  17780. enableval=$enable_ssemath;
  17781. else $as_nop
  17782. enable_ssemath=$default_ssemath
  17783. fi
  17784. if test x$enable_ssemath = xno; then
  17785. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17786. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17787. fi
  17788. fi
  17789. # Check whether --enable-mmx was given.
  17790. if test ${enable_mmx+y}
  17791. then :
  17792. enableval=$enable_mmx;
  17793. else $as_nop
  17794. enable_mmx=yes
  17795. fi
  17796. if test x$enable_mmx = xyes; then
  17797. save_CFLAGS="$CFLAGS"
  17798. have_gcc_mmx=no
  17799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17800. printf %s "checking for GCC -mmmx option... " >&6; }
  17801. mmx_CFLAGS="-mmmx"
  17802. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17804. /* end confdefs.h. */
  17805. #ifdef __MINGW32__
  17806. #include <_mingw.h>
  17807. #ifdef __MINGW64_VERSION_MAJOR
  17808. #include <intrin.h>
  17809. #else
  17810. #include <mmintrin.h>
  17811. #endif
  17812. #else
  17813. #include <mmintrin.h>
  17814. #endif
  17815. #ifndef __MMX__
  17816. #error Assembler CPP flag not enabled
  17817. #endif
  17818. int
  17819. main (void)
  17820. {
  17821. ;
  17822. return 0;
  17823. }
  17824. _ACEOF
  17825. if ac_fn_c_try_compile "$LINENO"
  17826. then :
  17827. have_gcc_mmx=yes
  17828. fi
  17829. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17831. printf "%s\n" "$have_gcc_mmx" >&6; }
  17832. CFLAGS="$save_CFLAGS"
  17833. if test x$have_gcc_mmx = xyes; then
  17834. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17835. SUMMARY_math="${SUMMARY_math} mmx"
  17836. fi
  17837. fi
  17838. # Check whether --enable-3dnow was given.
  17839. if test ${enable_3dnow+y}
  17840. then :
  17841. enableval=$enable_3dnow;
  17842. else $as_nop
  17843. enable_3dnow=yes
  17844. fi
  17845. if test x$enable_3dnow = xyes; then
  17846. save_CFLAGS="$CFLAGS"
  17847. have_gcc_3dnow=no
  17848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17849. printf %s "checking for GCC -m3dnow option... " >&6; }
  17850. amd3dnow_CFLAGS="-m3dnow"
  17851. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17853. /* end confdefs.h. */
  17854. #include <mm3dnow.h>
  17855. #ifndef __3dNOW__
  17856. #error Assembler CPP flag not enabled
  17857. #endif
  17858. int
  17859. main (void)
  17860. {
  17861. void *p = 0;
  17862. _m_prefetch(p);
  17863. ;
  17864. return 0;
  17865. }
  17866. _ACEOF
  17867. if ac_fn_c_try_link "$LINENO"
  17868. then :
  17869. have_gcc_3dnow=yes
  17870. fi
  17871. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17872. conftest$ac_exeext conftest.$ac_ext
  17873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17874. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17875. CFLAGS="$save_CFLAGS"
  17876. if test x$have_gcc_3dnow = xyes; then
  17877. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17878. SUMMARY_math="${SUMMARY_math} 3dnow"
  17879. fi
  17880. fi
  17881. # Check whether --enable-sse was given.
  17882. if test ${enable_sse+y}
  17883. then :
  17884. enableval=$enable_sse;
  17885. else $as_nop
  17886. enable_sse=yes
  17887. fi
  17888. if test x$enable_sse = xyes; then
  17889. save_CFLAGS="$CFLAGS"
  17890. have_gcc_sse=no
  17891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17892. printf %s "checking for GCC -msse option... " >&6; }
  17893. sse_CFLAGS="-msse"
  17894. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17896. /* end confdefs.h. */
  17897. #ifdef __MINGW32__
  17898. #include <_mingw.h>
  17899. #ifdef __MINGW64_VERSION_MAJOR
  17900. #include <intrin.h>
  17901. #else
  17902. #include <xmmintrin.h>
  17903. #endif
  17904. #else
  17905. #include <xmmintrin.h>
  17906. #endif
  17907. #ifndef __SSE__
  17908. #error Assembler CPP flag not enabled
  17909. #endif
  17910. int
  17911. main (void)
  17912. {
  17913. ;
  17914. return 0;
  17915. }
  17916. _ACEOF
  17917. if ac_fn_c_try_compile "$LINENO"
  17918. then :
  17919. have_gcc_sse=yes
  17920. fi
  17921. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17923. printf "%s\n" "$have_gcc_sse" >&6; }
  17924. CFLAGS="$save_CFLAGS"
  17925. if test x$have_gcc_sse = xyes; then
  17926. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17927. SUMMARY_math="${SUMMARY_math} sse"
  17928. fi
  17929. fi
  17930. # Check whether --enable-sse2 was given.
  17931. if test ${enable_sse2+y}
  17932. then :
  17933. enableval=$enable_sse2;
  17934. else $as_nop
  17935. enable_sse2=$default_ssemath
  17936. fi
  17937. if test x$enable_sse2 = xyes; then
  17938. save_CFLAGS="$CFLAGS"
  17939. have_gcc_sse2=no
  17940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17941. printf %s "checking for GCC -msse2 option... " >&6; }
  17942. sse2_CFLAGS="-msse2"
  17943. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17945. /* end confdefs.h. */
  17946. #ifdef __MINGW32__
  17947. #include <_mingw.h>
  17948. #ifdef __MINGW64_VERSION_MAJOR
  17949. #include <intrin.h>
  17950. #else
  17951. #include <emmintrin.h>
  17952. #endif
  17953. #else
  17954. #include <emmintrin.h>
  17955. #endif
  17956. #ifndef __SSE2__
  17957. #error Assembler CPP flag not enabled
  17958. #endif
  17959. int
  17960. main (void)
  17961. {
  17962. ;
  17963. return 0;
  17964. }
  17965. _ACEOF
  17966. if ac_fn_c_try_compile "$LINENO"
  17967. then :
  17968. have_gcc_sse2=yes
  17969. fi
  17970. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17972. printf "%s\n" "$have_gcc_sse2" >&6; }
  17973. CFLAGS="$save_CFLAGS"
  17974. if test x$have_gcc_sse2 = xyes; then
  17975. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17976. SUMMARY_math="${SUMMARY_math} sse2"
  17977. fi
  17978. fi
  17979. # Check whether --enable-sse3 was given.
  17980. if test ${enable_sse3+y}
  17981. then :
  17982. enableval=$enable_sse3;
  17983. else $as_nop
  17984. enable_sse3=$default_ssemath
  17985. fi
  17986. if test x$enable_sse3 = xyes; then
  17987. save_CFLAGS="$CFLAGS"
  17988. have_gcc_sse3=no
  17989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17990. printf %s "checking for GCC -msse3 option... " >&6; }
  17991. sse3_CFLAGS="-msse3"
  17992. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17994. /* end confdefs.h. */
  17995. #ifdef __MINGW32__
  17996. #include <_mingw.h>
  17997. #ifdef __MINGW64_VERSION_MAJOR
  17998. #include <intrin.h>
  17999. #else
  18000. #include <pmmintrin.h>
  18001. #endif
  18002. #else
  18003. #include <pmmintrin.h>
  18004. #endif
  18005. #ifndef __SSE2__
  18006. #error Assembler CPP flag not enabled
  18007. #endif
  18008. int
  18009. main (void)
  18010. {
  18011. ;
  18012. return 0;
  18013. }
  18014. _ACEOF
  18015. if ac_fn_c_try_compile "$LINENO"
  18016. then :
  18017. have_gcc_sse3=yes
  18018. fi
  18019. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18021. printf "%s\n" "$have_gcc_sse3" >&6; }
  18022. CFLAGS="$save_CFLAGS"
  18023. if test x$have_gcc_sse3 = xyes; then
  18024. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18025. SUMMARY_math="${SUMMARY_math} sse3"
  18026. fi
  18027. fi
  18028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18029. printf %s "checking for immintrin.h... " >&6; }
  18030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18031. /* end confdefs.h. */
  18032. #include <immintrin.h>
  18033. int
  18034. main (void)
  18035. {
  18036. ;
  18037. return 0;
  18038. }
  18039. _ACEOF
  18040. if ac_fn_c_try_compile "$LINENO"
  18041. then :
  18042. have_immintrin_h_hdr=yes
  18043. else $as_nop
  18044. have_immintrin_h_hdr=no
  18045. fi
  18046. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18048. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18049. if test x$have_immintrin_h_hdr = xyes; then
  18050. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18051. fi
  18052. # Check whether --enable-altivec was given.
  18053. if test ${enable_altivec+y}
  18054. then :
  18055. enableval=$enable_altivec;
  18056. else $as_nop
  18057. enable_altivec=yes
  18058. fi
  18059. if test x$enable_altivec = xyes; then
  18060. save_CFLAGS="$CFLAGS"
  18061. have_gcc_altivec=no
  18062. have_altivec_h_hdr=no
  18063. altivec_CFLAGS="-maltivec"
  18064. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18066. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18068. /* end confdefs.h. */
  18069. #include <altivec.h>
  18070. vector unsigned int vzero() {
  18071. return vec_splat_u32(0);
  18072. }
  18073. int
  18074. main (void)
  18075. {
  18076. ;
  18077. return 0;
  18078. }
  18079. _ACEOF
  18080. if ac_fn_c_try_compile "$LINENO"
  18081. then :
  18082. have_gcc_altivec=yes
  18083. have_altivec_h_hdr=yes
  18084. fi
  18085. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18087. printf "%s\n" "$have_gcc_altivec" >&6; }
  18088. if test x$have_gcc_altivec = xno; then
  18089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18090. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18092. /* end confdefs.h. */
  18093. vector unsigned int vzero() {
  18094. return vec_splat_u32(0);
  18095. }
  18096. int
  18097. main (void)
  18098. {
  18099. ;
  18100. return 0;
  18101. }
  18102. _ACEOF
  18103. if ac_fn_c_try_compile "$LINENO"
  18104. then :
  18105. have_gcc_altivec=yes
  18106. fi
  18107. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18109. printf "%s\n" "$have_gcc_altivec" >&6; }
  18110. fi
  18111. if test x$have_gcc_altivec = xno; then
  18112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18113. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18114. altivec_CFLAGS="-faltivec"
  18115. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18117. /* end confdefs.h. */
  18118. #include <altivec.h>
  18119. vector unsigned int vzero() {
  18120. return vec_splat_u32(0);
  18121. }
  18122. int
  18123. main (void)
  18124. {
  18125. ;
  18126. return 0;
  18127. }
  18128. _ACEOF
  18129. if ac_fn_c_try_compile "$LINENO"
  18130. then :
  18131. have_gcc_altivec=yes
  18132. have_altivec_h_hdr=yes
  18133. fi
  18134. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18136. printf "%s\n" "$have_gcc_altivec" >&6; }
  18137. fi
  18138. if test x$have_gcc_altivec = xno; then
  18139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18140. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18142. /* end confdefs.h. */
  18143. vector unsigned int vzero() {
  18144. return vec_splat_u32(0);
  18145. }
  18146. int
  18147. main (void)
  18148. {
  18149. ;
  18150. return 0;
  18151. }
  18152. _ACEOF
  18153. if ac_fn_c_try_compile "$LINENO"
  18154. then :
  18155. have_gcc_altivec=yes
  18156. fi
  18157. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18159. printf "%s\n" "$have_gcc_altivec" >&6; }
  18160. fi
  18161. CFLAGS="$save_CFLAGS"
  18162. if test x$have_gcc_altivec = xyes; then
  18163. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18164. if test x$have_altivec_h_hdr = xyes; then
  18165. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18166. fi
  18167. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18168. SUMMARY_math="${SUMMARY_math} altivec"
  18169. fi
  18170. fi
  18171. fi
  18172. # Check whether --enable-lsx was given.
  18173. if test ${enable_lsx+y}
  18174. then :
  18175. enableval=$enable_lsx;
  18176. else $as_nop
  18177. enable_lsx=yes
  18178. fi
  18179. if test x$enable_lsx = xyes; then
  18180. save_CFLAGS="$CFLAGS"
  18181. have_gcc_lsx=no
  18182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18183. printf %s "checking for GCC -mlsx option... " >&6; }
  18184. lsx_CFLAGS="-mlsx"
  18185. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18187. /* end confdefs.h. */
  18188. #ifndef __loongarch_sx
  18189. #error Assembler CPP flag not enabled
  18190. #endif
  18191. int
  18192. main (void)
  18193. {
  18194. ;
  18195. return 0;
  18196. }
  18197. _ACEOF
  18198. if ac_fn_c_try_compile "$LINENO"
  18199. then :
  18200. have_gcc_lsx=yes
  18201. fi
  18202. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18204. printf "%s\n" "$have_gcc_lsx" >&6; }
  18205. CFLAGS="$save_CFLAGS"
  18206. if test x$have_gcc_lsx = xyes; then
  18207. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18208. SUMMARY_math="${SUMMARY_math} lsx"
  18209. fi
  18210. fi
  18211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18212. printf %s "checking for lsxintrin.h... " >&6; }
  18213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18214. /* end confdefs.h. */
  18215. #include <lsxintrin.h>
  18216. int
  18217. main (void)
  18218. {
  18219. ;
  18220. return 0;
  18221. }
  18222. _ACEOF
  18223. if ac_fn_c_try_compile "$LINENO"
  18224. then :
  18225. have_lsxintrin_h_hdr=yes
  18226. else $as_nop
  18227. have_lsxintrin_h_hdr=no
  18228. fi
  18229. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18231. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18232. if test x$have_lsxintrin_h_hdr = xyes; then
  18233. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18234. fi
  18235. # Check whether --enable-lasx was given.
  18236. if test ${enable_lasx+y}
  18237. then :
  18238. enableval=$enable_lasx;
  18239. else $as_nop
  18240. enable_LASX=yes
  18241. fi
  18242. if test x$enable_LASX = xyes; then
  18243. save_CFLAGS="$CFLAGS"
  18244. have_gcc_lasx=no
  18245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18246. printf %s "checking for GCC -mlasx option... " >&6; }
  18247. lasx_CFLAGS="-mlasx"
  18248. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18250. /* end confdefs.h. */
  18251. #ifndef __loongarch_asx
  18252. #error Assembler CPP flag not enabled
  18253. #endif
  18254. int
  18255. main (void)
  18256. {
  18257. ;
  18258. return 0;
  18259. }
  18260. _ACEOF
  18261. if ac_fn_c_try_compile "$LINENO"
  18262. then :
  18263. have_gcc_lasx=yes
  18264. fi
  18265. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18267. printf "%s\n" "$have_gcc_lasx" >&6; }
  18268. CFLAGS="$save_CFLAGS"
  18269. if test x$have_gcc_lasx = xyes; then
  18270. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18271. SUMMARY_math="${SUMMARY_math} lasx"
  18272. fi
  18273. fi
  18274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18275. printf %s "checking for lasxintrin.h... " >&6; }
  18276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18277. /* end confdefs.h. */
  18278. #include <lasxintrin.h>
  18279. int
  18280. main (void)
  18281. {
  18282. ;
  18283. return 0;
  18284. }
  18285. _ACEOF
  18286. if ac_fn_c_try_compile "$LINENO"
  18287. then :
  18288. have_lasxintrin_h_hdr=yes
  18289. else $as_nop
  18290. have_lasxintrin_h_hdr=no
  18291. fi
  18292. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18294. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18295. if test x$have_lasxintrin_h_hdr = xyes; then
  18296. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18297. fi
  18298. CheckOSS()
  18299. {
  18300. # Check whether --enable-oss was given.
  18301. if test ${enable_oss+y}
  18302. then :
  18303. enableval=$enable_oss;
  18304. else $as_nop
  18305. enable_oss=maybe
  18306. fi
  18307. if test x$enable_oss = xmaybe; then
  18308. enable_oss=yes
  18309. fi
  18310. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18312. printf %s "checking for OSS audio support... " >&6; }
  18313. have_oss=no
  18314. if test x$have_oss != xyes; then
  18315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18316. /* end confdefs.h. */
  18317. #include <sys/soundcard.h>
  18318. int
  18319. main (void)
  18320. {
  18321. int arg = SNDCTL_DSP_SETFRAGMENT;
  18322. ;
  18323. return 0;
  18324. }
  18325. _ACEOF
  18326. if ac_fn_c_try_compile "$LINENO"
  18327. then :
  18328. have_oss=yes
  18329. fi
  18330. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18331. fi
  18332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18333. printf "%s\n" "$have_oss" >&6; }
  18334. if test x$have_oss = xyes; then
  18335. SUMMARY_audio="${SUMMARY_audio} oss"
  18336. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18337. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18338. have_audio=yes
  18339. # We may need to link with ossaudio emulation library
  18340. case "$host" in
  18341. *-*-netbsd*)
  18342. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18343. esac
  18344. fi
  18345. fi
  18346. }
  18347. CheckALSA()
  18348. {
  18349. # Check whether --enable-alsa was given.
  18350. if test ${enable_alsa+y}
  18351. then :
  18352. enableval=$enable_alsa;
  18353. else $as_nop
  18354. enable_alsa=yes
  18355. fi
  18356. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18357. alsa_save_CFLAGS="$CFLAGS"
  18358. alsa_save_LDFLAGS="$LDFLAGS"
  18359. alsa_save_LIBS="$LIBS"
  18360. alsa_found=yes
  18361. # Check whether --with-alsa-prefix was given.
  18362. if test ${with_alsa_prefix+y}
  18363. then :
  18364. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18365. else $as_nop
  18366. alsa_prefix=""
  18367. fi
  18368. # Check whether --with-alsa-inc-prefix was given.
  18369. if test ${with_alsa_inc_prefix+y}
  18370. then :
  18371. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18372. else $as_nop
  18373. alsa_inc_prefix=""
  18374. fi
  18375. # Check whether --enable-alsatest was given.
  18376. if test ${enable_alsatest+y}
  18377. then :
  18378. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18379. else $as_nop
  18380. enable_alsatest=yes
  18381. fi
  18382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18383. printf %s "checking for ALSA CFLAGS... " >&6; }
  18384. if test "$alsa_inc_prefix" != "" ; then
  18385. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18386. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18387. fi
  18388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18389. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18391. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18392. if test "$alsa_prefix" != "" ; then
  18393. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18394. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18395. fi
  18396. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18397. LIBS=`echo $LIBS | sed 's/-lm//'`
  18398. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18399. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18400. LIBS=`echo $LIBS | sed 's/ //'`
  18401. LIBS="$ALSA_LIBS $LIBS"
  18402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18403. printf "%s\n" "$ALSA_LIBS" >&6; }
  18404. min_alsa_version=1.0.11
  18405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18406. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18407. no_alsa=""
  18408. alsa_min_major_version=`echo $min_alsa_version | \
  18409. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18410. alsa_min_minor_version=`echo $min_alsa_version | \
  18411. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18412. alsa_min_micro_version=`echo $min_alsa_version | \
  18413. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18414. ac_ext=c
  18415. ac_cpp='$CPP $CPPFLAGS'
  18416. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18417. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18418. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18420. /* end confdefs.h. */
  18421. #include <alsa/asoundlib.h>
  18422. int
  18423. main (void)
  18424. {
  18425. /* ensure backward compatibility */
  18426. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18427. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18428. #endif
  18429. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18430. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18431. #endif
  18432. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18433. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18434. #endif
  18435. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18436. exit(0);
  18437. # else
  18438. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18439. # error not present
  18440. # endif
  18441. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18442. exit(0);
  18443. # else
  18444. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18445. # error not present
  18446. # endif
  18447. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18448. # error not present
  18449. # endif
  18450. # endif
  18451. # endif
  18452. exit(0);
  18453. ;
  18454. return 0;
  18455. }
  18456. _ACEOF
  18457. if ac_fn_c_try_compile "$LINENO"
  18458. then :
  18459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18460. printf "%s\n" "found." >&6; }
  18461. else $as_nop
  18462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18463. printf "%s\n" "not present." >&6; }
  18464. alsa_found=no
  18465. fi
  18466. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18467. ac_ext=c
  18468. ac_cpp='$CPP $CPPFLAGS'
  18469. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18470. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18471. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18472. if test "x$enable_alsatest" = "xyes"; then
  18473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18474. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18475. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18476. then :
  18477. printf %s "(cached) " >&6
  18478. else $as_nop
  18479. ac_check_lib_save_LIBS=$LIBS
  18480. LIBS="-lasound $LIBS"
  18481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18482. /* end confdefs.h. */
  18483. /* Override any GCC internal prototype to avoid an error.
  18484. Use char because int might match the return type of a GCC
  18485. builtin and then its argument prototype would still apply. */
  18486. char snd_ctl_open ();
  18487. int
  18488. main (void)
  18489. {
  18490. return snd_ctl_open ();
  18491. ;
  18492. return 0;
  18493. }
  18494. _ACEOF
  18495. if ac_fn_c_try_link "$LINENO"
  18496. then :
  18497. ac_cv_lib_asound_snd_ctl_open=yes
  18498. else $as_nop
  18499. ac_cv_lib_asound_snd_ctl_open=no
  18500. fi
  18501. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18502. conftest$ac_exeext conftest.$ac_ext
  18503. LIBS=$ac_check_lib_save_LIBS
  18504. fi
  18505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18506. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18507. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18508. then :
  18509. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18510. LIBS="-lasound $LIBS"
  18511. else $as_nop
  18512. alsa_found=no
  18513. fi
  18514. fi
  18515. if test "x$alsa_found" = "xyes" ; then
  18516. have_alsa=yes
  18517. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18518. LIBS=`echo $LIBS | sed 's/ //'`
  18519. LIBS="-lasound $LIBS"
  18520. fi
  18521. if test "x$alsa_found" = "xno" ; then
  18522. have_alsa=no
  18523. CFLAGS="$alsa_save_CFLAGS"
  18524. LDFLAGS="$alsa_save_LDFLAGS"
  18525. LIBS="$alsa_save_LIBS"
  18526. ALSA_CFLAGS=""
  18527. ALSA_LIBS=""
  18528. fi
  18529. # Restore all flags from before the ALSA detection runs
  18530. CFLAGS="$alsa_save_CFLAGS"
  18531. LDFLAGS="$alsa_save_LDFLAGS"
  18532. LIBS="$alsa_save_LIBS"
  18533. if test x$have_alsa = xyes; then
  18534. # Check whether --enable-alsa-shared was given.
  18535. if test ${enable_alsa_shared+y}
  18536. then :
  18537. enableval=$enable_alsa_shared;
  18538. else $as_nop
  18539. enable_alsa_shared=yes
  18540. fi
  18541. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18542. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18543. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18544. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18545. if test x$have_loadso != xyes && \
  18546. test x$enable_alsa_shared = xyes; then
  18547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18548. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18549. fi
  18550. if test x$have_loadso = xyes && \
  18551. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18552. echo "-- dynamic libasound -> $alsa_lib"
  18553. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18554. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18555. else
  18556. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18557. SUMMARY_audio="${SUMMARY_audio} alsa"
  18558. fi
  18559. have_audio=yes
  18560. fi
  18561. fi
  18562. }
  18563. CheckJACK()
  18564. {
  18565. # Check whether --enable-jack was given.
  18566. if test ${enable_jack+y}
  18567. then :
  18568. enableval=$enable_jack;
  18569. else $as_nop
  18570. enable_jack=yes
  18571. fi
  18572. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18573. pkg_failed=no
  18574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18575. printf %s "checking for jack >= 0.125... " >&6; }
  18576. if test -n "$JACK_CFLAGS"; then
  18577. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18578. elif test -n "$PKG_CONFIG"; then
  18579. if test -n "$PKG_CONFIG" && \
  18580. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18581. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18582. ac_status=$?
  18583. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18584. test $ac_status = 0; }; then
  18585. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18586. test "x$?" != "x0" && pkg_failed=yes
  18587. else
  18588. pkg_failed=yes
  18589. fi
  18590. else
  18591. pkg_failed=untried
  18592. fi
  18593. if test -n "$JACK_LIBS"; then
  18594. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18595. elif test -n "$PKG_CONFIG"; then
  18596. if test -n "$PKG_CONFIG" && \
  18597. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18598. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18599. ac_status=$?
  18600. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18601. test $ac_status = 0; }; then
  18602. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18603. test "x$?" != "x0" && pkg_failed=yes
  18604. else
  18605. pkg_failed=yes
  18606. fi
  18607. else
  18608. pkg_failed=untried
  18609. fi
  18610. if test $pkg_failed = yes; then
  18611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18612. printf "%s\n" "no" >&6; }
  18613. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18614. _pkg_short_errors_supported=yes
  18615. else
  18616. _pkg_short_errors_supported=no
  18617. fi
  18618. if test $_pkg_short_errors_supported = yes; then
  18619. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18620. else
  18621. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18622. fi
  18623. # Put the nasty error message in config.log where it belongs
  18624. echo "$JACK_PKG_ERRORS" >&5
  18625. audio_jack=no
  18626. elif test $pkg_failed = untried; then
  18627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18628. printf "%s\n" "no" >&6; }
  18629. audio_jack=no
  18630. else
  18631. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18632. JACK_LIBS=$pkg_cv_JACK_LIBS
  18633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18634. printf "%s\n" "yes" >&6; }
  18635. audio_jack=yes
  18636. fi
  18637. if test x$audio_jack = xyes; then
  18638. # Check whether --enable-jack-shared was given.
  18639. if test ${enable_jack_shared+y}
  18640. then :
  18641. enableval=$enable_jack_shared;
  18642. else $as_nop
  18643. enable_jack_shared=yes
  18644. fi
  18645. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18646. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18647. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18648. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18649. if test x$have_loadso != xyes && \
  18650. test x$enable_jack_shared = xyes; then
  18651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18652. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18653. fi
  18654. if test x$have_loadso = xyes && \
  18655. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18656. echo "-- dynamic libjack -> $jack_lib"
  18657. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18658. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18659. case "$host" in
  18660. # On Solaris, jack must be linked deferred explicitly
  18661. # to prevent undefined symbol failures.
  18662. *-*-solaris*)
  18663. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18664. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18665. esac
  18666. else
  18667. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18668. SUMMARY_audio="${SUMMARY_audio} jack"
  18669. fi
  18670. have_audio=yes
  18671. fi
  18672. fi
  18673. }
  18674. CheckESD()
  18675. {
  18676. # Check whether --enable-esd was given.
  18677. if test ${enable_esd+y}
  18678. then :
  18679. enableval=$enable_esd;
  18680. else $as_nop
  18681. enable_esd=yes
  18682. fi
  18683. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18684. pkg_failed=no
  18685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18686. printf %s "checking for esound >= 0.2.8... " >&6; }
  18687. if test -n "$ESD_CFLAGS"; then
  18688. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18689. elif test -n "$PKG_CONFIG"; then
  18690. if test -n "$PKG_CONFIG" && \
  18691. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18692. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18693. ac_status=$?
  18694. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18695. test $ac_status = 0; }; then
  18696. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18697. test "x$?" != "x0" && pkg_failed=yes
  18698. else
  18699. pkg_failed=yes
  18700. fi
  18701. else
  18702. pkg_failed=untried
  18703. fi
  18704. if test -n "$ESD_LIBS"; then
  18705. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18706. elif test -n "$PKG_CONFIG"; then
  18707. if test -n "$PKG_CONFIG" && \
  18708. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18709. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18710. ac_status=$?
  18711. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18712. test $ac_status = 0; }; then
  18713. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18714. test "x$?" != "x0" && pkg_failed=yes
  18715. else
  18716. pkg_failed=yes
  18717. fi
  18718. else
  18719. pkg_failed=untried
  18720. fi
  18721. if test $pkg_failed = yes; then
  18722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18723. printf "%s\n" "no" >&6; }
  18724. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18725. _pkg_short_errors_supported=yes
  18726. else
  18727. _pkg_short_errors_supported=no
  18728. fi
  18729. if test $_pkg_short_errors_supported = yes; then
  18730. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18731. else
  18732. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18733. fi
  18734. # Put the nasty error message in config.log where it belongs
  18735. echo "$ESD_PKG_ERRORS" >&5
  18736. have_esd=no
  18737. elif test $pkg_failed = untried; then
  18738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18739. printf "%s\n" "no" >&6; }
  18740. have_esd=no
  18741. else
  18742. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18743. ESD_LIBS=$pkg_cv_ESD_LIBS
  18744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18745. printf "%s\n" "yes" >&6; }
  18746. have_esd=yes
  18747. fi
  18748. if test x$have_esd = xno; then
  18749. # Check whether --with-esd-prefix was given.
  18750. if test ${with_esd_prefix+y}
  18751. then :
  18752. withval=$with_esd_prefix; esd_prefix="$withval"
  18753. else $as_nop
  18754. esd_prefix=""
  18755. fi
  18756. # Check whether --with-esd-exec-prefix was given.
  18757. if test ${with_esd_exec_prefix+y}
  18758. then :
  18759. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18760. else $as_nop
  18761. esd_exec_prefix=""
  18762. fi
  18763. # Check whether --enable-esdtest was given.
  18764. if test ${enable_esdtest+y}
  18765. then :
  18766. enableval=$enable_esdtest;
  18767. else $as_nop
  18768. enable_esdtest=yes
  18769. fi
  18770. if test x$esd_exec_prefix != x ; then
  18771. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18772. if test x${ESD_CONFIG+set} != xset ; then
  18773. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18774. fi
  18775. fi
  18776. if test x$esd_prefix != x ; then
  18777. esd_args="$esd_args --prefix=$esd_prefix"
  18778. if test x${ESD_CONFIG+set} != xset ; then
  18779. ESD_CONFIG=$esd_prefix/bin/esd-config
  18780. fi
  18781. fi
  18782. # Extract the first word of "esd-config", so it can be a program name with args.
  18783. set dummy esd-config; ac_word=$2
  18784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18785. printf %s "checking for $ac_word... " >&6; }
  18786. if test ${ac_cv_path_ESD_CONFIG+y}
  18787. then :
  18788. printf %s "(cached) " >&6
  18789. else $as_nop
  18790. case $ESD_CONFIG in
  18791. [\\/]* | ?:[\\/]*)
  18792. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18793. ;;
  18794. *)
  18795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18796. for as_dir in $PATH
  18797. do
  18798. IFS=$as_save_IFS
  18799. case $as_dir in #(((
  18800. '') as_dir=./ ;;
  18801. */) ;;
  18802. *) as_dir=$as_dir/ ;;
  18803. esac
  18804. for ac_exec_ext in '' $ac_executable_extensions; do
  18805. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18806. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18807. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18808. break 2
  18809. fi
  18810. done
  18811. done
  18812. IFS=$as_save_IFS
  18813. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18814. ;;
  18815. esac
  18816. fi
  18817. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18818. if test -n "$ESD_CONFIG"; then
  18819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18820. printf "%s\n" "$ESD_CONFIG" >&6; }
  18821. else
  18822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18823. printf "%s\n" "no" >&6; }
  18824. fi
  18825. min_esd_version=0.2.8
  18826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18827. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18828. no_esd=""
  18829. if test "$ESD_CONFIG" = "no" ; then
  18830. no_esd=yes
  18831. else
  18832. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18833. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18834. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18835. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18836. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18837. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18838. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18839. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18840. if test "x$enable_esdtest" = "xyes" ; then
  18841. ac_ext=c
  18842. ac_cpp='$CPP $CPPFLAGS'
  18843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18846. ac_save_CFLAGS="$CFLAGS"
  18847. ac_save_LIBS="$LIBS"
  18848. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18849. LIBS="$LIBS $ESD_LIBS"
  18850. rm -f conf.esdtest
  18851. if test "$cross_compiling" = yes
  18852. then :
  18853. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18854. else $as_nop
  18855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18856. /* end confdefs.h. */
  18857. #include <stdio.h>
  18858. #include <stdlib.h>
  18859. #include <esd.h>
  18860. int main (void)
  18861. {
  18862. int major, minor, micro;
  18863. FILE *fp = fopen("conf.esdtest", "w");
  18864. if (fp) fclose(fp);
  18865. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18866. printf("%s, bad version string\n", "$min_esd_version");
  18867. exit(1);
  18868. }
  18869. if (($esd_major_version > major) ||
  18870. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18871. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18872. {
  18873. return 0;
  18874. }
  18875. else
  18876. {
  18877. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18878. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18879. printf("*** best to upgrade to the required version.\n");
  18880. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18881. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18882. printf("*** config.cache before re-running configure\n");
  18883. return 1;
  18884. }
  18885. }
  18886. _ACEOF
  18887. if ac_fn_c_try_run "$LINENO"
  18888. then :
  18889. else $as_nop
  18890. no_esd=yes
  18891. fi
  18892. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18893. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18894. fi
  18895. CFLAGS="$ac_save_CFLAGS"
  18896. LIBS="$ac_save_LIBS"
  18897. ac_ext=c
  18898. ac_cpp='$CPP $CPPFLAGS'
  18899. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18900. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18902. fi
  18903. fi
  18904. if test "x$no_esd" = x ; then
  18905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18906. printf "%s\n" "yes" >&6; }
  18907. have_esd=yes
  18908. else
  18909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18910. printf "%s\n" "no" >&6; }
  18911. if test "$ESD_CONFIG" = "no" ; then
  18912. :
  18913. else
  18914. if test -f conf.esdtest ; then
  18915. :
  18916. else
  18917. echo "*** Could not run ESD test program, checking why..."
  18918. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18919. LIBS="$LIBS $ESD_LIBS"
  18920. ac_ext=c
  18921. ac_cpp='$CPP $CPPFLAGS'
  18922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18926. /* end confdefs.h. */
  18927. #include <stdio.h>
  18928. #include <esd.h>
  18929. int
  18930. main (void)
  18931. {
  18932. return 0;
  18933. ;
  18934. return 0;
  18935. }
  18936. _ACEOF
  18937. if ac_fn_c_try_link "$LINENO"
  18938. then :
  18939. echo "*** The test program compiled, but did not run. This usually means"
  18940. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18941. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18942. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18943. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18944. echo "*** is required on your system"
  18945. echo "***"
  18946. echo "*** If you have an old version installed, it is best to remove it, although"
  18947. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18948. else $as_nop
  18949. echo "*** The test program failed to compile or link. See the file config.log for the"
  18950. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18951. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18952. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18953. fi
  18954. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18955. conftest$ac_exeext conftest.$ac_ext
  18956. CFLAGS="$ac_save_CFLAGS"
  18957. LIBS="$ac_save_LIBS"
  18958. ac_ext=c
  18959. ac_cpp='$CPP $CPPFLAGS'
  18960. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18961. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18962. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18963. fi
  18964. fi
  18965. ESD_CFLAGS=""
  18966. ESD_LIBS=""
  18967. have_esd=no
  18968. fi
  18969. rm -f conf.esdtest
  18970. fi
  18971. if test x$have_esd = xyes; then
  18972. # Check whether --enable-esd-shared was given.
  18973. if test ${enable_esd_shared+y}
  18974. then :
  18975. enableval=$enable_esd_shared;
  18976. else $as_nop
  18977. enable_esd_shared=yes
  18978. fi
  18979. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18980. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18981. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18982. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18983. if test x$have_loadso != xyes && \
  18984. test x$enable_esd_shared = xyes; then
  18985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18986. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18987. fi
  18988. if test x$have_loadso = xyes && \
  18989. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18990. echo "-- dynamic libesd -> $esd_lib"
  18991. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18992. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18993. else
  18994. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18995. SUMMARY_audio="${SUMMARY_audio} esd"
  18996. fi
  18997. have_audio=yes
  18998. fi
  18999. fi
  19000. }
  19001. CheckPipewire()
  19002. {
  19003. # Check whether --enable-pipewire was given.
  19004. if test ${enable_pipewire+y}
  19005. then :
  19006. enableval=$enable_pipewire;
  19007. else $as_nop
  19008. enable_pipewire=yes
  19009. fi
  19010. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19011. pkg_failed=no
  19012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19013. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19014. if test -n "$PIPEWIRE_CFLAGS"; then
  19015. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19016. elif test -n "$PKG_CONFIG"; then
  19017. if test -n "$PKG_CONFIG" && \
  19018. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19019. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19020. ac_status=$?
  19021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19022. test $ac_status = 0; }; then
  19023. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19024. test "x$?" != "x0" && pkg_failed=yes
  19025. else
  19026. pkg_failed=yes
  19027. fi
  19028. else
  19029. pkg_failed=untried
  19030. fi
  19031. if test -n "$PIPEWIRE_LIBS"; then
  19032. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19033. elif test -n "$PKG_CONFIG"; then
  19034. if test -n "$PKG_CONFIG" && \
  19035. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19036. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19037. ac_status=$?
  19038. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19039. test $ac_status = 0; }; then
  19040. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19041. test "x$?" != "x0" && pkg_failed=yes
  19042. else
  19043. pkg_failed=yes
  19044. fi
  19045. else
  19046. pkg_failed=untried
  19047. fi
  19048. if test $pkg_failed = yes; then
  19049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19050. printf "%s\n" "no" >&6; }
  19051. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19052. _pkg_short_errors_supported=yes
  19053. else
  19054. _pkg_short_errors_supported=no
  19055. fi
  19056. if test $_pkg_short_errors_supported = yes; then
  19057. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19058. else
  19059. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19060. fi
  19061. # Put the nasty error message in config.log where it belongs
  19062. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19063. audio_pipewire=no
  19064. elif test $pkg_failed = untried; then
  19065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19066. printf "%s\n" "no" >&6; }
  19067. audio_pipewire=no
  19068. else
  19069. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19070. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19072. printf "%s\n" "yes" >&6; }
  19073. audio_pipewire=yes
  19074. fi
  19075. if test x$audio_pipewire = xyes; then
  19076. # Check whether --enable-pipewire-shared was given.
  19077. if test ${enable_pipewire_shared+y}
  19078. then :
  19079. enableval=$enable_pipewire_shared;
  19080. else $as_nop
  19081. enable_pipewire_shared=yes
  19082. fi
  19083. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19084. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19085. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19086. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19087. if test x$have_loadso != xyes && \
  19088. test x$enable_pipewire_shared = xyes; then
  19089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19090. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19091. fi
  19092. if test x$have_loadso = xyes && \
  19093. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19094. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19095. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19096. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19097. else
  19098. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19099. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19100. fi
  19101. have_audio=yes
  19102. fi
  19103. fi
  19104. }
  19105. CheckPulseAudio()
  19106. {
  19107. # Check whether --enable-pulseaudio was given.
  19108. if test ${enable_pulseaudio+y}
  19109. then :
  19110. enableval=$enable_pulseaudio;
  19111. else $as_nop
  19112. enable_pulseaudio=yes
  19113. fi
  19114. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19115. pkg_failed=no
  19116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19117. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19118. if test -n "$PULSEAUDIO_CFLAGS"; then
  19119. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19120. elif test -n "$PKG_CONFIG"; then
  19121. if test -n "$PKG_CONFIG" && \
  19122. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19123. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19124. ac_status=$?
  19125. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19126. test $ac_status = 0; }; then
  19127. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19128. test "x$?" != "x0" && pkg_failed=yes
  19129. else
  19130. pkg_failed=yes
  19131. fi
  19132. else
  19133. pkg_failed=untried
  19134. fi
  19135. if test -n "$PULSEAUDIO_LIBS"; then
  19136. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19137. elif test -n "$PKG_CONFIG"; then
  19138. if test -n "$PKG_CONFIG" && \
  19139. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19140. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19141. ac_status=$?
  19142. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19143. test $ac_status = 0; }; then
  19144. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19145. test "x$?" != "x0" && pkg_failed=yes
  19146. else
  19147. pkg_failed=yes
  19148. fi
  19149. else
  19150. pkg_failed=untried
  19151. fi
  19152. if test $pkg_failed = yes; then
  19153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19154. printf "%s\n" "no" >&6; }
  19155. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19156. _pkg_short_errors_supported=yes
  19157. else
  19158. _pkg_short_errors_supported=no
  19159. fi
  19160. if test $_pkg_short_errors_supported = yes; then
  19161. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19162. else
  19163. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19164. fi
  19165. # Put the nasty error message in config.log where it belongs
  19166. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19167. audio_pulseaudio=no
  19168. elif test $pkg_failed = untried; then
  19169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19170. printf "%s\n" "no" >&6; }
  19171. audio_pulseaudio=no
  19172. else
  19173. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19174. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19176. printf "%s\n" "yes" >&6; }
  19177. audio_pulseaudio=yes
  19178. fi
  19179. if test x$audio_pulseaudio = xyes; then
  19180. # Check whether --enable-pulseaudio-shared was given.
  19181. if test ${enable_pulseaudio_shared+y}
  19182. then :
  19183. enableval=$enable_pulseaudio_shared;
  19184. else $as_nop
  19185. enable_pulseaudio_shared=yes
  19186. fi
  19187. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19188. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19189. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19190. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19191. if test x$have_loadso != xyes && \
  19192. test x$enable_pulseaudio_shared = xyes; then
  19193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19194. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19195. fi
  19196. if test x$have_loadso = xyes && \
  19197. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19198. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19199. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19200. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19201. case "$host" in
  19202. # On Solaris, pulseaudio must be linked deferred explicitly
  19203. # to prevent undefined symbol failures.
  19204. *-*-solaris*)
  19205. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19207. esac
  19208. else
  19209. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19210. SUMMARY_audio="${SUMMARY_audio} pulse"
  19211. fi
  19212. have_audio=yes
  19213. fi
  19214. fi
  19215. }
  19216. CheckARTSC()
  19217. {
  19218. # Check whether --enable-arts was given.
  19219. if test ${enable_arts+y}
  19220. then :
  19221. enableval=$enable_arts;
  19222. else $as_nop
  19223. enable_arts=yes
  19224. fi
  19225. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19226. # Extract the first word of "artsc-config", so it can be a program name with args.
  19227. set dummy artsc-config; ac_word=$2
  19228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19229. printf %s "checking for $ac_word... " >&6; }
  19230. if test ${ac_cv_path_ARTSCONFIG+y}
  19231. then :
  19232. printf %s "(cached) " >&6
  19233. else $as_nop
  19234. case $ARTSCONFIG in
  19235. [\\/]* | ?:[\\/]*)
  19236. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19237. ;;
  19238. *)
  19239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19240. for as_dir in $PATH
  19241. do
  19242. IFS=$as_save_IFS
  19243. case $as_dir in #(((
  19244. '') as_dir=./ ;;
  19245. */) ;;
  19246. *) as_dir=$as_dir/ ;;
  19247. esac
  19248. for ac_exec_ext in '' $ac_executable_extensions; do
  19249. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19250. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19251. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19252. break 2
  19253. fi
  19254. done
  19255. done
  19256. IFS=$as_save_IFS
  19257. ;;
  19258. esac
  19259. fi
  19260. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19261. if test -n "$ARTSCONFIG"; then
  19262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19263. printf "%s\n" "$ARTSCONFIG" >&6; }
  19264. else
  19265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19266. printf "%s\n" "no" >&6; }
  19267. fi
  19268. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19269. : # arts isn't installed
  19270. else
  19271. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19272. ARTS_LIBS=`$ARTSCONFIG --libs`
  19273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19274. printf %s "checking for aRts development environment... " >&6; }
  19275. audio_arts=no
  19276. save_CFLAGS="$CFLAGS"
  19277. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19279. /* end confdefs.h. */
  19280. #include <artsc.h>
  19281. int
  19282. main (void)
  19283. {
  19284. arts_stream_t stream;
  19285. ;
  19286. return 0;
  19287. }
  19288. _ACEOF
  19289. if ac_fn_c_try_compile "$LINENO"
  19290. then :
  19291. audio_arts=yes
  19292. fi
  19293. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19294. CFLAGS="$save_CFLAGS"
  19295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19296. printf "%s\n" "$audio_arts" >&6; }
  19297. if test x$audio_arts = xyes; then
  19298. # Check whether --enable-arts-shared was given.
  19299. if test ${enable_arts_shared+y}
  19300. then :
  19301. enableval=$enable_arts_shared;
  19302. else $as_nop
  19303. enable_arts_shared=yes
  19304. fi
  19305. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19306. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19307. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19308. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19309. if test x$have_loadso != xyes && \
  19310. test x$enable_arts_shared = xyes; then
  19311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19312. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19313. fi
  19314. if test x$have_loadso = xyes && \
  19315. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19316. echo "-- dynamic libartsc -> $arts_lib"
  19317. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19318. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19319. else
  19320. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19321. SUMMARY_audio="${SUMMARY_audio} arts"
  19322. fi
  19323. have_audio=yes
  19324. fi
  19325. fi
  19326. fi
  19327. }
  19328. CheckNAS()
  19329. {
  19330. # Check whether --enable-nas was given.
  19331. if test ${enable_nas+y}
  19332. then :
  19333. enableval=$enable_nas;
  19334. else $as_nop
  19335. enable_nas=yes
  19336. fi
  19337. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19338. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19339. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19340. then :
  19341. have_nas_hdr=yes
  19342. fi
  19343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19344. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19345. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19346. then :
  19347. printf %s "(cached) " >&6
  19348. else $as_nop
  19349. ac_check_lib_save_LIBS=$LIBS
  19350. LIBS="-laudio $LIBS"
  19351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19352. /* end confdefs.h. */
  19353. /* Override any GCC internal prototype to avoid an error.
  19354. Use char because int might match the return type of a GCC
  19355. builtin and then its argument prototype would still apply. */
  19356. char AuOpenServer ();
  19357. int
  19358. main (void)
  19359. {
  19360. return AuOpenServer ();
  19361. ;
  19362. return 0;
  19363. }
  19364. _ACEOF
  19365. if ac_fn_c_try_link "$LINENO"
  19366. then :
  19367. ac_cv_lib_audio_AuOpenServer=yes
  19368. else $as_nop
  19369. ac_cv_lib_audio_AuOpenServer=no
  19370. fi
  19371. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19372. conftest$ac_exeext conftest.$ac_ext
  19373. LIBS=$ac_check_lib_save_LIBS
  19374. fi
  19375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19376. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19377. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19378. then :
  19379. have_nas_lib=yes
  19380. fi
  19381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19382. printf %s "checking for NAS audio support... " >&6; }
  19383. have_nas=no
  19384. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19385. have_nas=yes
  19386. NAS_LIBS="-laudio"
  19387. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19388. have_nas=yes
  19389. NAS_CFLAGS="-I/usr/X11R6/include/"
  19390. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19391. fi
  19392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19393. printf "%s\n" "$have_nas" >&6; }
  19394. if test x$have_nas = xyes; then
  19395. # Check whether --enable-nas-shared was given.
  19396. if test ${enable_nas_shared+y}
  19397. then :
  19398. enableval=$enable_nas_shared;
  19399. else $as_nop
  19400. enable_nas_shared=yes
  19401. fi
  19402. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19403. if test x$have_loadso != xyes && \
  19404. test x$enable_nas_shared = xyes; then
  19405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19406. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19407. fi
  19408. if test x$have_loadso = xyes && \
  19409. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19410. echo "-- dynamic libaudio -> $nas_lib"
  19411. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19412. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19413. else
  19414. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19415. SUMMARY_audio="${SUMMARY_audio} nas"
  19416. fi
  19417. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19418. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19419. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19420. have_audio=yes
  19421. fi
  19422. fi
  19423. }
  19424. CheckSNDIO()
  19425. {
  19426. # Check whether --enable-sndio was given.
  19427. if test ${enable_sndio+y}
  19428. then :
  19429. enableval=$enable_sndio;
  19430. else $as_nop
  19431. enable_sndio=yes
  19432. fi
  19433. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19434. pkg_failed=no
  19435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19436. printf %s "checking for sndio... " >&6; }
  19437. if test -n "$SNDIO_CFLAGS"; then
  19438. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19439. elif test -n "$PKG_CONFIG"; then
  19440. if test -n "$PKG_CONFIG" && \
  19441. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19442. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19443. ac_status=$?
  19444. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19445. test $ac_status = 0; }; then
  19446. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19447. test "x$?" != "x0" && pkg_failed=yes
  19448. else
  19449. pkg_failed=yes
  19450. fi
  19451. else
  19452. pkg_failed=untried
  19453. fi
  19454. if test -n "$SNDIO_LIBS"; then
  19455. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19456. elif test -n "$PKG_CONFIG"; then
  19457. if test -n "$PKG_CONFIG" && \
  19458. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19459. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19460. ac_status=$?
  19461. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19462. test $ac_status = 0; }; then
  19463. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19464. test "x$?" != "x0" && pkg_failed=yes
  19465. else
  19466. pkg_failed=yes
  19467. fi
  19468. else
  19469. pkg_failed=untried
  19470. fi
  19471. if test $pkg_failed = yes; then
  19472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19473. printf "%s\n" "no" >&6; }
  19474. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19475. _pkg_short_errors_supported=yes
  19476. else
  19477. _pkg_short_errors_supported=no
  19478. fi
  19479. if test $_pkg_short_errors_supported = yes; then
  19480. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19481. else
  19482. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19483. fi
  19484. # Put the nasty error message in config.log where it belongs
  19485. echo "$SNDIO_PKG_ERRORS" >&5
  19486. audio_sndio=no
  19487. elif test $pkg_failed = untried; then
  19488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19489. printf "%s\n" "no" >&6; }
  19490. audio_sndio=no
  19491. else
  19492. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19493. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19495. printf "%s\n" "yes" >&6; }
  19496. audio_sndio=yes
  19497. fi
  19498. if test x$audio_sndio = xyes; then
  19499. # Check whether --enable-sndio-shared was given.
  19500. if test ${enable_sndio_shared+y}
  19501. then :
  19502. enableval=$enable_sndio_shared;
  19503. else $as_nop
  19504. enable_sndio_shared=yes
  19505. fi
  19506. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19507. if test x$have_loadso != xyes && \
  19508. test x$enable_sndio_shared = xyes; then
  19509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19510. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19511. fi
  19512. if test x$have_loadso = xyes && \
  19513. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19514. echo "-- dynamic libsndio -> $sndio_lib"
  19515. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19516. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19517. else
  19518. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19519. SUMMARY_audio="${SUMMARY_audio} sndio"
  19520. fi
  19521. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19522. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19523. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19524. have_audio=yes
  19525. fi
  19526. fi
  19527. }
  19528. CheckFusionSound()
  19529. {
  19530. # Check whether --enable-fusionsound was given.
  19531. if test ${enable_fusionsound+y}
  19532. then :
  19533. enableval=$enable_fusionsound;
  19534. else $as_nop
  19535. enable_fusionsound=no
  19536. fi
  19537. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19538. pkg_failed=no
  19539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19540. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19541. if test -n "$FUSIONSOUND_CFLAGS"; then
  19542. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19543. elif test -n "$PKG_CONFIG"; then
  19544. if test -n "$PKG_CONFIG" && \
  19545. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19546. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19547. ac_status=$?
  19548. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19549. test $ac_status = 0; }; then
  19550. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19551. test "x$?" != "x0" && pkg_failed=yes
  19552. else
  19553. pkg_failed=yes
  19554. fi
  19555. else
  19556. pkg_failed=untried
  19557. fi
  19558. if test -n "$FUSIONSOUND_LIBS"; then
  19559. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19560. elif test -n "$PKG_CONFIG"; then
  19561. if test -n "$PKG_CONFIG" && \
  19562. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19563. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19564. ac_status=$?
  19565. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19566. test $ac_status = 0; }; then
  19567. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19568. test "x$?" != "x0" && pkg_failed=yes
  19569. else
  19570. pkg_failed=yes
  19571. fi
  19572. else
  19573. pkg_failed=untried
  19574. fi
  19575. if test $pkg_failed = yes; then
  19576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19577. printf "%s\n" "no" >&6; }
  19578. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19579. _pkg_short_errors_supported=yes
  19580. else
  19581. _pkg_short_errors_supported=no
  19582. fi
  19583. if test $_pkg_short_errors_supported = yes; then
  19584. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19585. else
  19586. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19587. fi
  19588. # Put the nasty error message in config.log where it belongs
  19589. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19590. fusionsound=no
  19591. elif test $pkg_failed = untried; then
  19592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19593. printf "%s\n" "no" >&6; }
  19594. fusionsound=no
  19595. else
  19596. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19597. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19599. printf "%s\n" "yes" >&6; }
  19600. fusionsound=yes
  19601. fi
  19602. if test x$fusionsound = xyes; then
  19603. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19604. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19605. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19606. # Check whether --enable-fusionsound-shared was given.
  19607. if test ${enable_fusionsound_shared+y}
  19608. then :
  19609. enableval=$enable_fusionsound_shared;
  19610. else $as_nop
  19611. enable_fusionsound_shared=yes
  19612. fi
  19613. fusionsound_shared=no
  19614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19615. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19616. if test x$have_loadso != xyes && \
  19617. test x$enable_fusionsound_shared = xyes; then
  19618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19619. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19620. fi
  19621. if test x$have_loadso = xyes && \
  19622. test x$enable_fusionsound_shared = xyes; then
  19623. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19624. fusionsound_shared=yes
  19625. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19626. else
  19627. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19628. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19629. fi
  19630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19631. printf "%s\n" "$fusionsound_shared" >&6; }
  19632. have_audio=yes
  19633. fi
  19634. fi
  19635. }
  19636. CheckDiskAudio()
  19637. {
  19638. # Check whether --enable-diskaudio was given.
  19639. if test ${enable_diskaudio+y}
  19640. then :
  19641. enableval=$enable_diskaudio;
  19642. else $as_nop
  19643. enable_diskaudio=yes
  19644. fi
  19645. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19646. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19647. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19648. SUMMARY_audio="${SUMMARY_audio} disk"
  19649. have_audio=yes
  19650. fi
  19651. }
  19652. CheckDummyAudio()
  19653. {
  19654. # Check whether --enable-dummyaudio was given.
  19655. if test ${enable_dummyaudio+y}
  19656. then :
  19657. enableval=$enable_dummyaudio;
  19658. else $as_nop
  19659. enable_dummyaudio=yes
  19660. fi
  19661. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19662. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19663. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19664. SUMMARY_audio="${SUMMARY_audio} dummy"
  19665. have_audio=yes
  19666. fi
  19667. }
  19668. CheckLibSampleRate()
  19669. {
  19670. # Check whether --enable-libsamplerate was given.
  19671. if test ${enable_libsamplerate+y}
  19672. then :
  19673. enableval=$enable_libsamplerate;
  19674. else $as_nop
  19675. enable_libsamplerate=yes
  19676. fi
  19677. if test x$enable_libsamplerate = xyes; then
  19678. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19679. if test "x$ac_cv_header_samplerate_h" = xyes
  19680. then :
  19681. have_samplerate_h_hdr=yes
  19682. else $as_nop
  19683. have_samplerate_h_hdr=no
  19684. fi
  19685. if test x$have_samplerate_h_hdr = xyes; then
  19686. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19687. # Check whether --enable-libsamplerate-shared was given.
  19688. if test ${enable_libsamplerate_shared+y}
  19689. then :
  19690. enableval=$enable_libsamplerate_shared;
  19691. else $as_nop
  19692. enable_libsamplerate_shared=yes
  19693. fi
  19694. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19695. if test x$have_loadso != xyes && \
  19696. test x$enable_libsamplerate_shared = xyes; then
  19697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19698. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19699. fi
  19700. if test x$have_loadso = xyes && \
  19701. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19702. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19703. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19704. else
  19705. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19706. fi
  19707. fi
  19708. fi
  19709. }
  19710. CheckARM()
  19711. {
  19712. # Check whether --enable-arm-simd was given.
  19713. if test ${enable_arm_simd+y}
  19714. then :
  19715. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19716. else $as_nop
  19717. enable_arm_simd=no
  19718. fi
  19719. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19720. save_CFLAGS="$CFLAGS"
  19721. have_arm_simd=no
  19722. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19724. printf %s "checking for ARM SIMD... " >&6; }
  19725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19726. /* end confdefs.h. */
  19727. .text
  19728. .arch armv6
  19729. .object_arch armv4
  19730. .arm
  19731. .altmacro
  19732. #ifndef __ARM_EABI__
  19733. #error EABI is required (to be sure that calling conventions are compatible)
  19734. #endif
  19735. pld [r0]
  19736. uqadd8 r0, r0, r0
  19737. _ACEOF
  19738. if ac_fn_c_try_compile "$LINENO"
  19739. then :
  19740. have_arm_simd=yes
  19741. fi
  19742. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19744. printf "%s\n" "$have_arm_simd" >&6; }
  19745. CFLAGS="$save_CFLAGS"
  19746. if test x$have_arm_simd = xyes; then
  19747. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19748. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19749. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19750. fi
  19751. fi
  19752. }
  19753. CheckNEON()
  19754. {
  19755. # Check whether --enable-arm-neon was given.
  19756. if test ${enable_arm_neon+y}
  19757. then :
  19758. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19759. else $as_nop
  19760. enable_arm_neon=no
  19761. fi
  19762. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19763. save_CFLAGS="$CFLAGS"
  19764. have_arm_neon=no
  19765. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19767. printf %s "checking for ARM NEON... " >&6; }
  19768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19769. /* end confdefs.h. */
  19770. .text
  19771. .fpu neon
  19772. .arch armv7a
  19773. .object_arch armv4
  19774. .eabi_attribute 10, 0
  19775. .arm
  19776. .altmacro
  19777. #ifndef __ARM_EABI__
  19778. #error EABI is required (to be sure that calling conventions are compatible)
  19779. #endif
  19780. pld [r0]
  19781. vmovn.u16 d0, q0
  19782. _ACEOF
  19783. if ac_fn_c_try_compile "$LINENO"
  19784. then :
  19785. have_arm_neon=yes
  19786. fi
  19787. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19789. printf "%s\n" "$have_arm_neon" >&6; }
  19790. CFLAGS="$save_CFLAGS"
  19791. if test x$have_arm_neon = xyes; then
  19792. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19793. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19794. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19795. fi
  19796. fi
  19797. }
  19798. CheckObjectiveCARC()
  19799. {
  19800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19801. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19802. have_clang_objc_arc=no
  19803. save_CFLAGS="$CFLAGS"
  19804. CFLAGS="$save_CFLAGS -fobjc-arc"
  19805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19806. /* end confdefs.h. */
  19807. int x = 0;
  19808. int
  19809. main (void)
  19810. {
  19811. ;
  19812. return 0;
  19813. }
  19814. _ACEOF
  19815. if ac_fn_c_try_compile "$LINENO"
  19816. then :
  19817. have_clang_objc_arc=yes
  19818. fi
  19819. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19821. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19822. CFLAGS="$save_CFLAGS"
  19823. if test x$have_clang_objc_arc = xyes; then
  19824. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19825. fi
  19826. }
  19827. CheckGDwarf4()
  19828. {
  19829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19830. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19831. have_gcc_gdwarf4=no
  19832. save_CFLAGS="$CFLAGS"
  19833. CFLAGS="$save_CFLAGS -gdwarf-4"
  19834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19835. /* end confdefs.h. */
  19836. int x = 0;
  19837. int
  19838. main (void)
  19839. {
  19840. ;
  19841. return 0;
  19842. }
  19843. _ACEOF
  19844. if ac_fn_c_try_compile "$LINENO"
  19845. then :
  19846. have_gcc_gdwarf4=yes
  19847. fi
  19848. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19850. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19851. CFLAGS="$save_CFLAGS"
  19852. if test x$have_gcc_gdwarf4 = xyes; then
  19853. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19854. fi
  19855. }
  19856. CheckVisibilityHidden()
  19857. {
  19858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19859. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19860. have_gcc_fvisibility=no
  19861. visibility_CFLAGS="-fvisibility=hidden"
  19862. save_CFLAGS="$CFLAGS"
  19863. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19865. /* end confdefs.h. */
  19866. #if !defined(__GNUC__) || __GNUC__ < 4
  19867. #error SDL only uses visibility attributes in GCC 4 or newer
  19868. #endif
  19869. int
  19870. main (void)
  19871. {
  19872. ;
  19873. return 0;
  19874. }
  19875. _ACEOF
  19876. if ac_fn_c_try_compile "$LINENO"
  19877. then :
  19878. have_gcc_fvisibility=yes
  19879. fi
  19880. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19882. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19883. CFLAGS="$save_CFLAGS"
  19884. if test x$have_gcc_fvisibility = xyes; then
  19885. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19886. fi
  19887. }
  19888. CheckNoStrictAliasing()
  19889. {
  19890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19891. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19892. have_gcc_no_strict_aliasing=no
  19893. save_CFLAGS="$CFLAGS"
  19894. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19896. /* end confdefs.h. */
  19897. int x = 0;
  19898. int
  19899. main (void)
  19900. {
  19901. ;
  19902. return 0;
  19903. }
  19904. _ACEOF
  19905. if ac_fn_c_try_compile "$LINENO"
  19906. then :
  19907. have_gcc_no_strict_aliasing=yes
  19908. fi
  19909. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19911. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19912. CFLAGS="$save_CFLAGS"
  19913. if test x$have_gcc_no_strict_aliasing = xyes; then
  19914. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19915. fi
  19916. }
  19917. CheckStackBoundary()
  19918. {
  19919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19920. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19921. have_gcc_preferred_stack_boundary=no
  19922. save_CFLAGS="$CFLAGS"
  19923. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19925. /* end confdefs.h. */
  19926. int x = 0;
  19927. int
  19928. main (void)
  19929. {
  19930. ;
  19931. return 0;
  19932. }
  19933. _ACEOF
  19934. if ac_fn_c_try_compile "$LINENO"
  19935. then :
  19936. have_gcc_preferred_stack_boundary=yes
  19937. fi
  19938. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19940. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19941. CFLAGS="$save_CFLAGS"
  19942. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19943. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19944. fi
  19945. }
  19946. CheckWerror()
  19947. {
  19948. # Check whether --enable-werror was given.
  19949. if test ${enable_werror+y}
  19950. then :
  19951. enableval=$enable_werror; enable_werror=$enableval
  19952. else $as_nop
  19953. enable_werror=no
  19954. fi
  19955. if test x$enable_werror = xyes; then
  19956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19957. printf %s "checking for GCC -Werror option... " >&6; }
  19958. have_gcc_werror=no
  19959. save_CFLAGS="$CFLAGS"
  19960. CFLAGS="$save_CFLAGS -Werror"
  19961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19962. /* end confdefs.h. */
  19963. int x = 0;
  19964. int
  19965. main (void)
  19966. {
  19967. ;
  19968. return 0;
  19969. }
  19970. _ACEOF
  19971. if ac_fn_c_try_compile "$LINENO"
  19972. then :
  19973. have_gcc_werror=yes
  19974. fi
  19975. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19977. printf "%s\n" "$have_gcc_werror" >&6; }
  19978. CFLAGS="$save_CFLAGS"
  19979. if test x$have_gcc_werror = xyes; then
  19980. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19981. fi
  19982. fi
  19983. }
  19984. CheckNoErrorDeprecatedDeclarationsWerror()
  19985. {
  19986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  19987. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  19988. have_gcc_no_werror_deprecated_declarations=no
  19989. save_CFLAGS="$CFLAGS"
  19990. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19992. /* end confdefs.h. */
  19993. int x = 0;
  19994. int
  19995. main (void)
  19996. {
  19997. ;
  19998. return 0;
  19999. }
  20000. _ACEOF
  20001. if ac_fn_c_try_compile "$LINENO"
  20002. then :
  20003. have_gcc_no_werror_deprecated_declarations=yes
  20004. fi
  20005. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20007. printf "%s\n" "$have_gcc_werror" >&6; }
  20008. CFLAGS="$save_CFLAGS"
  20009. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20010. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20011. fi
  20012. }
  20013. CheckDeclarationAfterStatement()
  20014. {
  20015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20016. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20017. have_gcc_declaration_after_statement=no
  20018. save_CFLAGS="$CFLAGS"
  20019. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20021. /* end confdefs.h. */
  20022. int x = 0;
  20023. int
  20024. main (void)
  20025. {
  20026. ;
  20027. return 0;
  20028. }
  20029. _ACEOF
  20030. if ac_fn_c_try_compile "$LINENO"
  20031. then :
  20032. have_gcc_declaration_after_statement=yes
  20033. fi
  20034. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20036. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20037. CFLAGS="$save_CFLAGS"
  20038. if test x$have_gcc_declaration_after_statement = xyes; then
  20039. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20040. fi
  20041. }
  20042. CheckWarnAll()
  20043. {
  20044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20045. printf %s "checking for GCC -Wall option... " >&6; }
  20046. have_gcc_Wall=no
  20047. save_CFLAGS="$CFLAGS"
  20048. CFLAGS="$save_CFLAGS -Wall"
  20049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20050. /* end confdefs.h. */
  20051. int x = 0;
  20052. int
  20053. main (void)
  20054. {
  20055. ;
  20056. return 0;
  20057. }
  20058. _ACEOF
  20059. if ac_fn_c_try_compile "$LINENO"
  20060. then :
  20061. have_gcc_Wall=yes
  20062. fi
  20063. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20065. printf "%s\n" "$have_gcc_Wall" >&6; }
  20066. CFLAGS="$save_CFLAGS"
  20067. if test x$have_gcc_Wall = xyes; then
  20068. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20070. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20071. need_gcc_Wno_multichar=no
  20072. case "$host" in
  20073. *-*-haiku*)
  20074. need_gcc_Wno_multichar=yes
  20075. ;;
  20076. esac
  20077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20078. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20079. if test x$need_gcc_Wno_multichar = xyes; then
  20080. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20081. fi
  20082. fi
  20083. }
  20084. CheckWayland()
  20085. {
  20086. # Check whether --enable-video-wayland was given.
  20087. if test ${enable_video_wayland+y}
  20088. then :
  20089. enableval=$enable_video_wayland;
  20090. else $as_nop
  20091. enable_video_wayland=yes
  20092. fi
  20093. # Check whether --enable-video-wayland-qt-touch was given.
  20094. if test ${enable_video_wayland_qt_touch+y}
  20095. then :
  20096. enableval=$enable_video_wayland_qt_touch;
  20097. else $as_nop
  20098. enable_video_wayland_qt_touch=yes
  20099. fi
  20100. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20102. printf %s "checking for Wayland support... " >&6; }
  20103. video_wayland=no
  20104. if test x$video_opengl_egl = xyes && \
  20105. test x$video_opengles_v2 = xyes; then
  20106. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20107. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20108. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20109. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20110. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20111. then :
  20112. WAYLAND_SCANNER_CODE_MODE=private-code
  20113. else $as_nop
  20114. WAYLAND_SCANNER_CODE_MODE=code
  20115. fi
  20116. video_wayland=yes
  20117. fi
  20118. fi
  20119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20120. printf "%s\n" "$video_wayland" >&6; }
  20121. if test x$video_wayland = xyes; then
  20122. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20123. if test x$enable_video_wayland_qt_touch = xyes; then
  20124. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20125. fi
  20126. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20127. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20128. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20129. # Check whether --enable-wayland-shared was given.
  20130. if test ${enable_wayland_shared+y}
  20131. then :
  20132. enableval=$enable_wayland_shared;
  20133. else $as_nop
  20134. enable_wayland_shared=maybe
  20135. fi
  20136. case "$host" in
  20137. *)
  20138. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20139. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20140. if test x$wayland_egl_lib = x; then
  20141. # This works in Ubuntu 13.10, maybe others
  20142. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20143. fi
  20144. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20145. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20146. ;;
  20147. esac
  20148. if test x$enable_wayland_shared = xmaybe; then
  20149. enable_wayland_shared=yes
  20150. fi
  20151. if test x$have_loadso != xyes && \
  20152. test x$enable_wayland_shared = xyes; then
  20153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20154. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20155. enable_wayland_shared=no
  20156. fi
  20157. if test x$have_loadso = xyes && \
  20158. test x$enable_wayland_shared = xyes && \
  20159. test x$wayland_client_lib != x && \
  20160. test x$wayland_egl_lib != x && \
  20161. test x$wayland_cursor_lib != x && \
  20162. test x$xkbcommon_lib != x; then
  20163. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20164. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20165. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20166. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20167. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20168. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20169. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20170. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20171. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20172. else
  20173. enable_wayland_shared=no
  20174. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20175. SUMMARY_video="${SUMMARY_video} wayland"
  20176. fi
  20177. have_video=yes
  20178. # Check whether --enable-libdecor was given.
  20179. if test ${enable_libdecor+y}
  20180. then :
  20181. enableval=$enable_libdecor;
  20182. else $as_nop
  20183. enable_libdecor=yes
  20184. fi
  20185. if test x$enable_libdecor = xyes; then
  20186. pkg_failed=no
  20187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20188. printf %s "checking for libdecor-0... " >&6; }
  20189. if test -n "$DECOR_CFLAGS"; then
  20190. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20191. elif test -n "$PKG_CONFIG"; then
  20192. if test -n "$PKG_CONFIG" && \
  20193. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20194. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20195. ac_status=$?
  20196. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20197. test $ac_status = 0; }; then
  20198. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20199. test "x$?" != "x0" && pkg_failed=yes
  20200. else
  20201. pkg_failed=yes
  20202. fi
  20203. else
  20204. pkg_failed=untried
  20205. fi
  20206. if test -n "$DECOR_LIBS"; then
  20207. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20208. elif test -n "$PKG_CONFIG"; then
  20209. if test -n "$PKG_CONFIG" && \
  20210. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20211. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20212. ac_status=$?
  20213. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20214. test $ac_status = 0; }; then
  20215. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20216. test "x$?" != "x0" && pkg_failed=yes
  20217. else
  20218. pkg_failed=yes
  20219. fi
  20220. else
  20221. pkg_failed=untried
  20222. fi
  20223. if test $pkg_failed = yes; then
  20224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20225. printf "%s\n" "no" >&6; }
  20226. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20227. _pkg_short_errors_supported=yes
  20228. else
  20229. _pkg_short_errors_supported=no
  20230. fi
  20231. if test $_pkg_short_errors_supported = yes; then
  20232. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20233. else
  20234. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20235. fi
  20236. # Put the nasty error message in config.log where it belongs
  20237. echo "$DECOR_PKG_ERRORS" >&5
  20238. video_libdecor=no
  20239. elif test $pkg_failed = untried; then
  20240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20241. printf "%s\n" "no" >&6; }
  20242. video_libdecor=no
  20243. else
  20244. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20245. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20247. printf "%s\n" "yes" >&6; }
  20248. video_libdecor=yes
  20249. fi
  20250. if test x$video_libdecor = xyes; then
  20251. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20252. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20253. # Check whether --enable-libdecor-shared was given.
  20254. if test ${enable_libdecor_shared+y}
  20255. then :
  20256. enableval=$enable_libdecor_shared;
  20257. else $as_nop
  20258. enable_libdecor_shared=yes
  20259. fi
  20260. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20261. if test x$enable_wayland_shared != xyes; then
  20262. enable_libdecor_shared=no
  20263. fi
  20264. if test x$have_loadso != xyes && \
  20265. test x$enable_libdecor_shared = xyes; then
  20266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20267. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20268. fi
  20269. if test x$have_loadso = xyes && \
  20270. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20271. echo "-- dynamic libdecor -> $decor_lib"
  20272. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20273. else
  20274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20275. fi
  20276. fi
  20277. fi
  20278. fi
  20279. fi
  20280. }
  20281. CheckNativeClient()
  20282. {
  20283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20284. /* end confdefs.h. */
  20285. #if !defined(__native_client__)
  20286. #error "NO NACL"
  20287. #endif
  20288. int
  20289. main (void)
  20290. {
  20291. ;
  20292. return 0;
  20293. }
  20294. _ACEOF
  20295. if ac_fn_c_try_compile "$LINENO"
  20296. then :
  20297. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20298. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20299. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20300. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20301. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20302. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20303. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20304. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20305. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20306. SUMMARY_audio="${SUMMARY_audio} nacl"
  20307. have_audio=yes
  20308. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20309. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20310. have_video=yes
  20311. fi
  20312. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20313. }
  20314. CheckRPI()
  20315. {
  20316. # Check whether --enable-video-rpi was given.
  20317. if test ${enable_video_rpi+y}
  20318. then :
  20319. enableval=$enable_video_rpi;
  20320. else $as_nop
  20321. enable_video_rpi=yes
  20322. fi
  20323. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20324. pkg_failed=no
  20325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20326. printf %s "checking for bcm_host brcmegl... " >&6; }
  20327. if test -n "$RPI_CFLAGS"; then
  20328. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20329. elif test -n "$PKG_CONFIG"; then
  20330. if test -n "$PKG_CONFIG" && \
  20331. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20332. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20333. ac_status=$?
  20334. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20335. test $ac_status = 0; }; then
  20336. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20337. test "x$?" != "x0" && pkg_failed=yes
  20338. else
  20339. pkg_failed=yes
  20340. fi
  20341. else
  20342. pkg_failed=untried
  20343. fi
  20344. if test -n "$RPI_LIBS"; then
  20345. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20346. elif test -n "$PKG_CONFIG"; then
  20347. if test -n "$PKG_CONFIG" && \
  20348. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20349. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20350. ac_status=$?
  20351. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20352. test $ac_status = 0; }; then
  20353. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20354. test "x$?" != "x0" && pkg_failed=yes
  20355. else
  20356. pkg_failed=yes
  20357. fi
  20358. else
  20359. pkg_failed=untried
  20360. fi
  20361. if test $pkg_failed = yes; then
  20362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20363. printf "%s\n" "no" >&6; }
  20364. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20365. _pkg_short_errors_supported=yes
  20366. else
  20367. _pkg_short_errors_supported=no
  20368. fi
  20369. if test $_pkg_short_errors_supported = yes; then
  20370. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20371. else
  20372. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20373. fi
  20374. # Put the nasty error message in config.log where it belongs
  20375. echo "$RPI_PKG_ERRORS" >&5
  20376. video_rpi=no
  20377. elif test $pkg_failed = untried; then
  20378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20379. printf "%s\n" "no" >&6; }
  20380. video_rpi=no
  20381. else
  20382. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20383. RPI_LIBS=$pkg_cv_RPI_LIBS
  20384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20385. printf "%s\n" "yes" >&6; }
  20386. video_rpi=yes
  20387. fi
  20388. if test x$video_rpi = xno; then
  20389. if test x$ARCH = xnetbsd; then
  20390. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20391. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20392. else
  20393. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20394. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20395. fi
  20396. fi
  20397. # Save the original compiler flags and libraries
  20398. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20399. # Add the Raspberry Pi compiler flags and libraries
  20400. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20402. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20403. have_video_rpi=no
  20404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20405. /* end confdefs.h. */
  20406. #include <bcm_host.h>
  20407. #include <EGL/eglplatform.h>
  20408. int
  20409. main (void)
  20410. {
  20411. EGL_DISPMANX_WINDOW_T window;
  20412. bcm_host_init();
  20413. ;
  20414. return 0;
  20415. }
  20416. _ACEOF
  20417. if ac_fn_c_try_link "$LINENO"
  20418. then :
  20419. have_video_rpi=yes
  20420. fi
  20421. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20422. conftest$ac_exeext conftest.$ac_ext
  20423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20424. printf "%s\n" "$have_video_rpi" >&6; }
  20425. # Restore the compiler flags and libraries
  20426. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20427. if test x$have_video_rpi = xyes; then
  20428. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20429. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20430. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20431. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20432. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20433. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20434. SUMMARY_video="${SUMMARY_video} rpi"
  20435. have_video=yes
  20436. fi
  20437. fi
  20438. }
  20439. CheckX11()
  20440. {
  20441. # Check whether --enable-video-x11 was given.
  20442. if test ${enable_video_x11+y}
  20443. then :
  20444. enableval=$enable_video_x11;
  20445. else $as_nop
  20446. enable_video_x11=yes
  20447. case "$host" in
  20448. *-*-darwin*|*-ios-*)
  20449. enable_video_x11=no
  20450. ;;
  20451. esac
  20452. fi
  20453. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20454. case "$host" in
  20455. *-*-darwin*)
  20456. # This isn't necessary for X11, but fixes GLX detection
  20457. if test "x$x_includes" = xNONE && \
  20458. test "x$x_libraries" = xNONE && \
  20459. test -d /opt/X11/include && \
  20460. test -d /opt/X11/lib; then
  20461. x_includes="/opt/X11/include"
  20462. x_libraries="/opt/X11/lib"
  20463. fi
  20464. ;;
  20465. esac
  20466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20467. printf %s "checking for X... " >&6; }
  20468. # Check whether --with-x was given.
  20469. if test ${with_x+y}
  20470. then :
  20471. withval=$with_x;
  20472. fi
  20473. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20474. if test "x$with_x" = xno; then
  20475. # The user explicitly disabled X.
  20476. have_x=disabled
  20477. else
  20478. case $x_includes,$x_libraries in #(
  20479. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20480. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20481. then :
  20482. printf %s "(cached) " >&6
  20483. else $as_nop
  20484. # One or both of the vars are not set, and there is no cached value.
  20485. ac_x_includes=no
  20486. ac_x_libraries=no
  20487. # Do we need to do anything special at all?
  20488. ac_save_LIBS=$LIBS
  20489. LIBS="-lX11 $LIBS"
  20490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20491. /* end confdefs.h. */
  20492. #include <X11/Xlib.h>
  20493. int
  20494. main (void)
  20495. {
  20496. XrmInitialize ()
  20497. ;
  20498. return 0;
  20499. }
  20500. _ACEOF
  20501. if ac_fn_c_try_link "$LINENO"
  20502. then :
  20503. # We can compile and link X programs with no special options.
  20504. ac_x_includes=
  20505. ac_x_libraries=
  20506. fi
  20507. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20508. conftest$ac_exeext conftest.$ac_ext
  20509. LIBS="$ac_save_LIBS"
  20510. # If that didn't work, only try xmkmf and file system searches
  20511. # for native compilation.
  20512. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20513. then :
  20514. rm -f -r conftest.dir
  20515. if mkdir conftest.dir; then
  20516. cd conftest.dir
  20517. cat >Imakefile <<'_ACEOF'
  20518. incroot:
  20519. @echo incroot='${INCROOT}'
  20520. usrlibdir:
  20521. @echo usrlibdir='${USRLIBDIR}'
  20522. libdir:
  20523. @echo libdir='${LIBDIR}'
  20524. _ACEOF
  20525. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20526. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20527. for ac_var in incroot usrlibdir libdir; do
  20528. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20529. done
  20530. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20531. for ac_extension in a so sl dylib la dll; do
  20532. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20533. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20534. ac_im_usrlibdir=$ac_im_libdir; break
  20535. fi
  20536. done
  20537. # Screen out bogus values from the imake configuration. They are
  20538. # bogus both because they are the default anyway, and because
  20539. # using them would break gcc on systems where it needs fixed includes.
  20540. case $ac_im_incroot in
  20541. /usr/include) ac_x_includes= ;;
  20542. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20543. esac
  20544. case $ac_im_usrlibdir in
  20545. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20546. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20547. esac
  20548. fi
  20549. cd ..
  20550. rm -f -r conftest.dir
  20551. fi
  20552. # Standard set of common directories for X headers.
  20553. # Check X11 before X11Rn because it is often a symlink to the current release.
  20554. ac_x_header_dirs='
  20555. /usr/X11/include
  20556. /usr/X11R7/include
  20557. /usr/X11R6/include
  20558. /usr/X11R5/include
  20559. /usr/X11R4/include
  20560. /usr/include/X11
  20561. /usr/include/X11R7
  20562. /usr/include/X11R6
  20563. /usr/include/X11R5
  20564. /usr/include/X11R4
  20565. /usr/local/X11/include
  20566. /usr/local/X11R7/include
  20567. /usr/local/X11R6/include
  20568. /usr/local/X11R5/include
  20569. /usr/local/X11R4/include
  20570. /usr/local/include/X11
  20571. /usr/local/include/X11R7
  20572. /usr/local/include/X11R6
  20573. /usr/local/include/X11R5
  20574. /usr/local/include/X11R4
  20575. /opt/X11/include
  20576. /usr/X386/include
  20577. /usr/x386/include
  20578. /usr/XFree86/include/X11
  20579. /usr/include
  20580. /usr/local/include
  20581. /usr/unsupported/include
  20582. /usr/athena/include
  20583. /usr/local/x11r5/include
  20584. /usr/lpp/Xamples/include
  20585. /usr/openwin/include
  20586. /usr/openwin/share/include'
  20587. if test "$ac_x_includes" = no; then
  20588. # Guess where to find include files, by looking for Xlib.h.
  20589. # First, try using that file with no special directory specified.
  20590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20591. /* end confdefs.h. */
  20592. #include <X11/Xlib.h>
  20593. _ACEOF
  20594. if ac_fn_c_try_cpp "$LINENO"
  20595. then :
  20596. # We can compile using X headers with no special include directory.
  20597. ac_x_includes=
  20598. else $as_nop
  20599. for ac_dir in $ac_x_header_dirs; do
  20600. if test -r "$ac_dir/X11/Xlib.h"; then
  20601. ac_x_includes=$ac_dir
  20602. break
  20603. fi
  20604. done
  20605. fi
  20606. rm -f conftest.err conftest.i conftest.$ac_ext
  20607. fi # $ac_x_includes = no
  20608. if test "$ac_x_libraries" = no; then
  20609. # Check for the libraries.
  20610. # See if we find them without any special options.
  20611. # Don't add to $LIBS permanently.
  20612. ac_save_LIBS=$LIBS
  20613. LIBS="-lX11 $LIBS"
  20614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20615. /* end confdefs.h. */
  20616. #include <X11/Xlib.h>
  20617. int
  20618. main (void)
  20619. {
  20620. XrmInitialize ()
  20621. ;
  20622. return 0;
  20623. }
  20624. _ACEOF
  20625. if ac_fn_c_try_link "$LINENO"
  20626. then :
  20627. LIBS=$ac_save_LIBS
  20628. # We can link X programs with no special library path.
  20629. ac_x_libraries=
  20630. else $as_nop
  20631. LIBS=$ac_save_LIBS
  20632. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20633. do
  20634. # Don't even attempt the hair of trying to link an X program!
  20635. for ac_extension in a so sl dylib la dll; do
  20636. if test -r "$ac_dir/libX11.$ac_extension"; then
  20637. ac_x_libraries=$ac_dir
  20638. break 2
  20639. fi
  20640. done
  20641. done
  20642. fi
  20643. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20644. conftest$ac_exeext conftest.$ac_ext
  20645. fi # $ac_x_libraries = no
  20646. fi
  20647. # Record the results.
  20648. case $ac_x_includes,$ac_x_libraries in #(
  20649. no,* | *,no | *\'*) :
  20650. # Didn't find X, or a directory has "'" in its name.
  20651. ac_cv_have_x="have_x=no" ;; #(
  20652. *) :
  20653. # Record where we found X for the cache.
  20654. ac_cv_have_x="have_x=yes\
  20655. ac_x_includes='$ac_x_includes'\
  20656. ac_x_libraries='$ac_x_libraries'" ;;
  20657. esac
  20658. fi
  20659. ;; #(
  20660. *) have_x=yes;;
  20661. esac
  20662. eval "$ac_cv_have_x"
  20663. fi # $with_x != no
  20664. if test "$have_x" != yes; then
  20665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20666. printf "%s\n" "$have_x" >&6; }
  20667. no_x=yes
  20668. else
  20669. # If each of the values was on the command line, it overrides each guess.
  20670. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20671. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20672. # Update the cache value to reflect the command line values.
  20673. ac_cv_have_x="have_x=yes\
  20674. ac_x_includes='$x_includes'\
  20675. ac_x_libraries='$x_libraries'"
  20676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20677. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20678. fi
  20679. if test "$no_x" = yes; then
  20680. # Not all programs may use this symbol, but it does not hurt to define it.
  20681. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20682. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20683. else
  20684. if test -n "$x_includes"; then
  20685. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20686. fi
  20687. # It would also be nice to do this for all -L options, not just this one.
  20688. if test -n "$x_libraries"; then
  20689. X_LIBS="$X_LIBS -L$x_libraries"
  20690. # For Solaris; some versions of Sun CC require a space after -R and
  20691. # others require no space. Words are not sufficient . . . .
  20692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20693. printf %s "checking whether -R must be followed by a space... " >&6; }
  20694. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20695. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20696. ac_c_werror_flag=yes
  20697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20698. /* end confdefs.h. */
  20699. int
  20700. main (void)
  20701. {
  20702. ;
  20703. return 0;
  20704. }
  20705. _ACEOF
  20706. if ac_fn_c_try_link "$LINENO"
  20707. then :
  20708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20709. printf "%s\n" "no" >&6; }
  20710. X_LIBS="$X_LIBS -R$x_libraries"
  20711. else $as_nop
  20712. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20714. /* end confdefs.h. */
  20715. int
  20716. main (void)
  20717. {
  20718. ;
  20719. return 0;
  20720. }
  20721. _ACEOF
  20722. if ac_fn_c_try_link "$LINENO"
  20723. then :
  20724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20725. printf "%s\n" "yes" >&6; }
  20726. X_LIBS="$X_LIBS -R $x_libraries"
  20727. else $as_nop
  20728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20729. printf "%s\n" "neither works" >&6; }
  20730. fi
  20731. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20732. conftest$ac_exeext conftest.$ac_ext
  20733. fi
  20734. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20735. conftest$ac_exeext conftest.$ac_ext
  20736. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20737. LIBS=$ac_xsave_LIBS
  20738. fi
  20739. # Check for system-dependent libraries X programs must link with.
  20740. # Do this before checking for the system-independent R6 libraries
  20741. # (-lICE), since we may need -lsocket or whatever for X linking.
  20742. if test "$ISC" = yes; then
  20743. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20744. else
  20745. # Martyn Johnson says this is needed for Ultrix, if the X
  20746. # libraries were built with DECnet support. And Karl Berry says
  20747. # the Alpha needs dnet_stub (dnet does not exist).
  20748. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20750. /* end confdefs.h. */
  20751. /* Override any GCC internal prototype to avoid an error.
  20752. Use char because int might match the return type of a GCC
  20753. builtin and then its argument prototype would still apply. */
  20754. char XOpenDisplay ();
  20755. int
  20756. main (void)
  20757. {
  20758. return XOpenDisplay ();
  20759. ;
  20760. return 0;
  20761. }
  20762. _ACEOF
  20763. if ac_fn_c_try_link "$LINENO"
  20764. then :
  20765. else $as_nop
  20766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20767. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20768. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20769. then :
  20770. printf %s "(cached) " >&6
  20771. else $as_nop
  20772. ac_check_lib_save_LIBS=$LIBS
  20773. LIBS="-ldnet $LIBS"
  20774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20775. /* end confdefs.h. */
  20776. /* Override any GCC internal prototype to avoid an error.
  20777. Use char because int might match the return type of a GCC
  20778. builtin and then its argument prototype would still apply. */
  20779. char dnet_ntoa ();
  20780. int
  20781. main (void)
  20782. {
  20783. return dnet_ntoa ();
  20784. ;
  20785. return 0;
  20786. }
  20787. _ACEOF
  20788. if ac_fn_c_try_link "$LINENO"
  20789. then :
  20790. ac_cv_lib_dnet_dnet_ntoa=yes
  20791. else $as_nop
  20792. ac_cv_lib_dnet_dnet_ntoa=no
  20793. fi
  20794. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20795. conftest$ac_exeext conftest.$ac_ext
  20796. LIBS=$ac_check_lib_save_LIBS
  20797. fi
  20798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20799. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20800. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20801. then :
  20802. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20803. fi
  20804. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20806. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20807. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20808. then :
  20809. printf %s "(cached) " >&6
  20810. else $as_nop
  20811. ac_check_lib_save_LIBS=$LIBS
  20812. LIBS="-ldnet_stub $LIBS"
  20813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20814. /* end confdefs.h. */
  20815. /* Override any GCC internal prototype to avoid an error.
  20816. Use char because int might match the return type of a GCC
  20817. builtin and then its argument prototype would still apply. */
  20818. char dnet_ntoa ();
  20819. int
  20820. main (void)
  20821. {
  20822. return dnet_ntoa ();
  20823. ;
  20824. return 0;
  20825. }
  20826. _ACEOF
  20827. if ac_fn_c_try_link "$LINENO"
  20828. then :
  20829. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20830. else $as_nop
  20831. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20832. fi
  20833. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20834. conftest$ac_exeext conftest.$ac_ext
  20835. LIBS=$ac_check_lib_save_LIBS
  20836. fi
  20837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20838. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20839. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20840. then :
  20841. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20842. fi
  20843. fi
  20844. fi
  20845. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20846. conftest$ac_exeext conftest.$ac_ext
  20847. LIBS="$ac_xsave_LIBS"
  20848. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20849. # to get the SysV transport functions.
  20850. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20851. # needs -lnsl.
  20852. # The nsl library prevents programs from opening the X display
  20853. # on Irix 5.2, according to T.E. Dickey.
  20854. # The functions gethostbyname, getservbyname, and inet_addr are
  20855. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20856. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20857. if test "x$ac_cv_func_gethostbyname" = xyes
  20858. then :
  20859. fi
  20860. if test $ac_cv_func_gethostbyname = no; then
  20861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20862. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20863. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20864. then :
  20865. printf %s "(cached) " >&6
  20866. else $as_nop
  20867. ac_check_lib_save_LIBS=$LIBS
  20868. LIBS="-lnsl $LIBS"
  20869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20870. /* end confdefs.h. */
  20871. /* Override any GCC internal prototype to avoid an error.
  20872. Use char because int might match the return type of a GCC
  20873. builtin and then its argument prototype would still apply. */
  20874. char gethostbyname ();
  20875. int
  20876. main (void)
  20877. {
  20878. return gethostbyname ();
  20879. ;
  20880. return 0;
  20881. }
  20882. _ACEOF
  20883. if ac_fn_c_try_link "$LINENO"
  20884. then :
  20885. ac_cv_lib_nsl_gethostbyname=yes
  20886. else $as_nop
  20887. ac_cv_lib_nsl_gethostbyname=no
  20888. fi
  20889. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20890. conftest$ac_exeext conftest.$ac_ext
  20891. LIBS=$ac_check_lib_save_LIBS
  20892. fi
  20893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20894. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20895. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20896. then :
  20897. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20898. fi
  20899. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20901. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20902. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20903. then :
  20904. printf %s "(cached) " >&6
  20905. else $as_nop
  20906. ac_check_lib_save_LIBS=$LIBS
  20907. LIBS="-lbsd $LIBS"
  20908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20909. /* end confdefs.h. */
  20910. /* Override any GCC internal prototype to avoid an error.
  20911. Use char because int might match the return type of a GCC
  20912. builtin and then its argument prototype would still apply. */
  20913. char gethostbyname ();
  20914. int
  20915. main (void)
  20916. {
  20917. return gethostbyname ();
  20918. ;
  20919. return 0;
  20920. }
  20921. _ACEOF
  20922. if ac_fn_c_try_link "$LINENO"
  20923. then :
  20924. ac_cv_lib_bsd_gethostbyname=yes
  20925. else $as_nop
  20926. ac_cv_lib_bsd_gethostbyname=no
  20927. fi
  20928. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20929. conftest$ac_exeext conftest.$ac_ext
  20930. LIBS=$ac_check_lib_save_LIBS
  20931. fi
  20932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20933. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20934. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20935. then :
  20936. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20937. fi
  20938. fi
  20939. fi
  20940. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20941. # socket/setsockopt and other routines are undefined under SCO ODT
  20942. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20943. # on later versions), says Simon Leinen: it contains gethostby*
  20944. # variants that don't use the name server (or something). -lsocket
  20945. # must be given before -lnsl if both are needed. We assume that
  20946. # if connect needs -lnsl, so does gethostbyname.
  20947. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20948. if test "x$ac_cv_func_connect" = xyes
  20949. then :
  20950. fi
  20951. if test $ac_cv_func_connect = no; then
  20952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20953. printf %s "checking for connect in -lsocket... " >&6; }
  20954. if test ${ac_cv_lib_socket_connect+y}
  20955. then :
  20956. printf %s "(cached) " >&6
  20957. else $as_nop
  20958. ac_check_lib_save_LIBS=$LIBS
  20959. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20961. /* end confdefs.h. */
  20962. /* Override any GCC internal prototype to avoid an error.
  20963. Use char because int might match the return type of a GCC
  20964. builtin and then its argument prototype would still apply. */
  20965. char connect ();
  20966. int
  20967. main (void)
  20968. {
  20969. return connect ();
  20970. ;
  20971. return 0;
  20972. }
  20973. _ACEOF
  20974. if ac_fn_c_try_link "$LINENO"
  20975. then :
  20976. ac_cv_lib_socket_connect=yes
  20977. else $as_nop
  20978. ac_cv_lib_socket_connect=no
  20979. fi
  20980. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20981. conftest$ac_exeext conftest.$ac_ext
  20982. LIBS=$ac_check_lib_save_LIBS
  20983. fi
  20984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20985. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20986. if test "x$ac_cv_lib_socket_connect" = xyes
  20987. then :
  20988. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20989. fi
  20990. fi
  20991. # Guillermo Gomez says -lposix is necessary on A/UX.
  20992. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20993. if test "x$ac_cv_func_remove" = xyes
  20994. then :
  20995. fi
  20996. if test $ac_cv_func_remove = no; then
  20997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20998. printf %s "checking for remove in -lposix... " >&6; }
  20999. if test ${ac_cv_lib_posix_remove+y}
  21000. then :
  21001. printf %s "(cached) " >&6
  21002. else $as_nop
  21003. ac_check_lib_save_LIBS=$LIBS
  21004. LIBS="-lposix $LIBS"
  21005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21006. /* end confdefs.h. */
  21007. /* Override any GCC internal prototype to avoid an error.
  21008. Use char because int might match the return type of a GCC
  21009. builtin and then its argument prototype would still apply. */
  21010. char remove ();
  21011. int
  21012. main (void)
  21013. {
  21014. return remove ();
  21015. ;
  21016. return 0;
  21017. }
  21018. _ACEOF
  21019. if ac_fn_c_try_link "$LINENO"
  21020. then :
  21021. ac_cv_lib_posix_remove=yes
  21022. else $as_nop
  21023. ac_cv_lib_posix_remove=no
  21024. fi
  21025. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21026. conftest$ac_exeext conftest.$ac_ext
  21027. LIBS=$ac_check_lib_save_LIBS
  21028. fi
  21029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21030. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21031. if test "x$ac_cv_lib_posix_remove" = xyes
  21032. then :
  21033. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21034. fi
  21035. fi
  21036. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21037. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21038. if test "x$ac_cv_func_shmat" = xyes
  21039. then :
  21040. fi
  21041. if test $ac_cv_func_shmat = no; then
  21042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21043. printf %s "checking for shmat in -lipc... " >&6; }
  21044. if test ${ac_cv_lib_ipc_shmat+y}
  21045. then :
  21046. printf %s "(cached) " >&6
  21047. else $as_nop
  21048. ac_check_lib_save_LIBS=$LIBS
  21049. LIBS="-lipc $LIBS"
  21050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21051. /* end confdefs.h. */
  21052. /* Override any GCC internal prototype to avoid an error.
  21053. Use char because int might match the return type of a GCC
  21054. builtin and then its argument prototype would still apply. */
  21055. char shmat ();
  21056. int
  21057. main (void)
  21058. {
  21059. return shmat ();
  21060. ;
  21061. return 0;
  21062. }
  21063. _ACEOF
  21064. if ac_fn_c_try_link "$LINENO"
  21065. then :
  21066. ac_cv_lib_ipc_shmat=yes
  21067. else $as_nop
  21068. ac_cv_lib_ipc_shmat=no
  21069. fi
  21070. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21071. conftest$ac_exeext conftest.$ac_ext
  21072. LIBS=$ac_check_lib_save_LIBS
  21073. fi
  21074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21075. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21076. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21077. then :
  21078. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21079. fi
  21080. fi
  21081. fi
  21082. # Check for libraries that X11R6 Xt/Xaw programs need.
  21083. ac_save_LDFLAGS=$LDFLAGS
  21084. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21085. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21086. # check for ICE first), but we must link in the order -lSM -lICE or
  21087. # we get undefined symbols. So assume we have SM if we have ICE.
  21088. # These have to be linked with before -lX11, unlike the other
  21089. # libraries we check for below, so use a different variable.
  21090. # John Interrante, Karl Berry
  21091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21092. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21093. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21094. then :
  21095. printf %s "(cached) " >&6
  21096. else $as_nop
  21097. ac_check_lib_save_LIBS=$LIBS
  21098. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21100. /* end confdefs.h. */
  21101. /* Override any GCC internal prototype to avoid an error.
  21102. Use char because int might match the return type of a GCC
  21103. builtin and then its argument prototype would still apply. */
  21104. char IceConnectionNumber ();
  21105. int
  21106. main (void)
  21107. {
  21108. return IceConnectionNumber ();
  21109. ;
  21110. return 0;
  21111. }
  21112. _ACEOF
  21113. if ac_fn_c_try_link "$LINENO"
  21114. then :
  21115. ac_cv_lib_ICE_IceConnectionNumber=yes
  21116. else $as_nop
  21117. ac_cv_lib_ICE_IceConnectionNumber=no
  21118. fi
  21119. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21120. conftest$ac_exeext conftest.$ac_ext
  21121. LIBS=$ac_check_lib_save_LIBS
  21122. fi
  21123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21124. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21125. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21126. then :
  21127. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21128. fi
  21129. LDFLAGS=$ac_save_LDFLAGS
  21130. fi
  21131. if test x$have_x = xyes; then
  21132. # Check whether --enable-x11-shared was given.
  21133. if test ${enable_x11_shared+y}
  21134. then :
  21135. enableval=$enable_x11_shared;
  21136. else $as_nop
  21137. enable_x11_shared=maybe
  21138. fi
  21139. case "$host" in
  21140. *-*-darwin*)
  21141. # Apple now puts this in /opt/X11
  21142. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21143. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21144. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21145. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21146. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21147. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21148. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21149. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21150. ;;
  21151. *-*-openbsd*)
  21152. x11_lib='libX11.so'
  21153. x11ext_lib='libXext.so'
  21154. xcursor_lib='libXcursor.so'
  21155. xinput_lib='libXi.so'
  21156. xfixes_lib='libXfixes.so'
  21157. xrandr_lib='libXrandr.so'
  21158. xrender_lib='libXrender.so'
  21159. xss_lib='libXss.so'
  21160. ;;
  21161. *)
  21162. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21163. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21164. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21165. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21166. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21167. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21168. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21169. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21170. ;;
  21171. esac
  21172. if test x$ac_cv_func_shmat != xyes; then
  21173. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21174. fi
  21175. CFLAGS="$CFLAGS $X_CFLAGS"
  21176. LDFLAGS="$LDFLAGS $X_LIBS"
  21177. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21178. #include <X11/Xproto.h>
  21179. "
  21180. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21181. then :
  21182. have_xext_h_hdr=yes
  21183. else $as_nop
  21184. have_xext_h_hdr=no
  21185. fi
  21186. if test x$have_xext_h_hdr != xyes; then
  21187. as_fn_error $? "
  21188. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21189. " "$LINENO" 5
  21190. fi
  21191. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21192. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21193. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21194. # Needed so SDL applications can include SDL_syswm.h
  21195. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21196. if test x$enable_x11_shared = xmaybe; then
  21197. enable_x11_shared=yes
  21198. fi
  21199. if test x$have_loadso != xyes && \
  21200. test x$enable_x11_shared = xyes; then
  21201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21202. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21203. enable_x11_shared=no
  21204. fi
  21205. if test x$have_loadso = xyes && \
  21206. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21207. echo "-- dynamic libX11 -> $x11_lib"
  21208. echo "-- dynamic libX11ext -> $x11ext_lib"
  21209. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21210. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21211. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21212. else
  21213. enable_x11_shared=no
  21214. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21215. SUMMARY_video="${SUMMARY_video} x11"
  21216. fi
  21217. have_video=yes
  21218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21219. printf %s "checking for XGenericEvent... " >&6; }
  21220. have_XGenericEvent=no
  21221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21222. /* end confdefs.h. */
  21223. #include <X11/Xlib.h>
  21224. int
  21225. main (void)
  21226. {
  21227. Display *display;
  21228. XEvent event;
  21229. XGenericEventCookie *cookie = &event.xcookie;
  21230. XNextEvent(display, &event);
  21231. XGetEventData(display, cookie);
  21232. XFreeEventData(display, cookie);
  21233. ;
  21234. return 0;
  21235. }
  21236. _ACEOF
  21237. if ac_fn_c_try_compile "$LINENO"
  21238. then :
  21239. have_XGenericEvent=yes
  21240. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21241. fi
  21242. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21244. printf "%s\n" "$have_XGenericEvent" >&6; }
  21245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21246. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21247. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21248. then :
  21249. printf %s "(cached) " >&6
  21250. else $as_nop
  21251. ac_check_lib_save_LIBS=$LIBS
  21252. LIBS="-lX11 $LIBS"
  21253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21254. /* end confdefs.h. */
  21255. /* Override any GCC internal prototype to avoid an error.
  21256. Use char because int might match the return type of a GCC
  21257. builtin and then its argument prototype would still apply. */
  21258. char XkbKeycodeToKeysym ();
  21259. int
  21260. main (void)
  21261. {
  21262. return XkbKeycodeToKeysym ();
  21263. ;
  21264. return 0;
  21265. }
  21266. _ACEOF
  21267. if ac_fn_c_try_link "$LINENO"
  21268. then :
  21269. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21270. else $as_nop
  21271. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21272. fi
  21273. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21274. conftest$ac_exeext conftest.$ac_ext
  21275. LIBS=$ac_check_lib_save_LIBS
  21276. fi
  21277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21278. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21279. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21280. then :
  21281. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21282. fi
  21283. # Check whether --enable-video-x11-xcursor was given.
  21284. if test ${enable_video_x11_xcursor+y}
  21285. then :
  21286. enableval=$enable_video_x11_xcursor;
  21287. else $as_nop
  21288. enable_video_x11_xcursor=yes
  21289. fi
  21290. if test x$enable_video_x11_xcursor = xyes; then
  21291. definitely_enable_video_x11_xcursor=no
  21292. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21293. "
  21294. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21295. then :
  21296. have_xcursor_h_hdr=yes
  21297. else $as_nop
  21298. have_xcursor_h_hdr=no
  21299. fi
  21300. if test x$have_xcursor_h_hdr = xyes; then
  21301. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21302. echo "-- dynamic libXcursor -> $xcursor_lib"
  21303. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21304. definitely_enable_video_x11_xcursor=yes
  21305. else
  21306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21307. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21308. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21309. then :
  21310. printf %s "(cached) " >&6
  21311. else $as_nop
  21312. ac_check_lib_save_LIBS=$LIBS
  21313. LIBS="-lXcursor $LIBS"
  21314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21315. /* end confdefs.h. */
  21316. /* Override any GCC internal prototype to avoid an error.
  21317. Use char because int might match the return type of a GCC
  21318. builtin and then its argument prototype would still apply. */
  21319. char XcursorImageCreate ();
  21320. int
  21321. main (void)
  21322. {
  21323. return XcursorImageCreate ();
  21324. ;
  21325. return 0;
  21326. }
  21327. _ACEOF
  21328. if ac_fn_c_try_link "$LINENO"
  21329. then :
  21330. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21331. else $as_nop
  21332. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21333. fi
  21334. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21335. conftest$ac_exeext conftest.$ac_ext
  21336. LIBS=$ac_check_lib_save_LIBS
  21337. fi
  21338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21339. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21340. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21341. then :
  21342. have_xcursor_lib=yes
  21343. fi
  21344. if test x$have_xcursor_lib = xyes ; then
  21345. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21346. definitely_enable_video_x11_xcursor=yes
  21347. fi
  21348. fi
  21349. fi
  21350. fi
  21351. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21352. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21353. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21354. fi
  21355. # Check whether --enable-video-x11-xdbe was given.
  21356. if test ${enable_video_x11_xdbe+y}
  21357. then :
  21358. enableval=$enable_video_x11_xdbe;
  21359. else $as_nop
  21360. enable_video_x11_xdbe=yes
  21361. fi
  21362. if test x$enable_video_x11_xdbe = xyes; then
  21363. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21364. "
  21365. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21366. then :
  21367. have_dbe_h_hdr=yes
  21368. else $as_nop
  21369. have_dbe_h_hdr=no
  21370. fi
  21371. if test x$have_dbe_h_hdr = xyes; then
  21372. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21373. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21374. fi
  21375. fi
  21376. # Check whether --enable-video-x11-xinput was given.
  21377. if test ${enable_video_x11_xinput+y}
  21378. then :
  21379. enableval=$enable_video_x11_xinput;
  21380. else $as_nop
  21381. enable_video_x11_xinput=yes
  21382. fi
  21383. if test x$enable_video_x11_xinput = xyes; then
  21384. definitely_enable_video_x11_xinput=no
  21385. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21386. "
  21387. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21388. then :
  21389. have_xinput_h_hdr=yes
  21390. else $as_nop
  21391. have_xinput_h_hdr=no
  21392. fi
  21393. if test x$have_xinput_h_hdr = xyes; then
  21394. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21395. echo "-- dynamic libXi -> $xinput_lib"
  21396. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21397. definitely_enable_video_x11_xinput=yes
  21398. else
  21399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21400. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21401. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21402. then :
  21403. printf %s "(cached) " >&6
  21404. else $as_nop
  21405. ac_check_lib_save_LIBS=$LIBS
  21406. LIBS="-lXi $LIBS"
  21407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21408. /* end confdefs.h. */
  21409. /* Override any GCC internal prototype to avoid an error.
  21410. Use char because int might match the return type of a GCC
  21411. builtin and then its argument prototype would still apply. */
  21412. char XOpenDevice ();
  21413. int
  21414. main (void)
  21415. {
  21416. return XOpenDevice ();
  21417. ;
  21418. return 0;
  21419. }
  21420. _ACEOF
  21421. if ac_fn_c_try_link "$LINENO"
  21422. then :
  21423. ac_cv_lib_Xi_XOpenDevice=yes
  21424. else $as_nop
  21425. ac_cv_lib_Xi_XOpenDevice=no
  21426. fi
  21427. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21428. conftest$ac_exeext conftest.$ac_ext
  21429. LIBS=$ac_check_lib_save_LIBS
  21430. fi
  21431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21432. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21433. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21434. then :
  21435. have_xinput_lib=yes
  21436. fi
  21437. if test x$have_xinput_lib = xyes ; then
  21438. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21439. definitely_enable_video_x11_xinput=yes
  21440. fi
  21441. fi
  21442. fi
  21443. fi
  21444. if test x$definitely_enable_video_x11_xinput = xyes; then
  21445. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21446. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21448. printf %s "checking for xinput2 multitouch... " >&6; }
  21449. have_xinput2_multitouch=no
  21450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21451. /* end confdefs.h. */
  21452. #include <X11/Xlib.h>
  21453. #include <X11/Xproto.h>
  21454. #include <X11/extensions/XInput2.h>
  21455. int
  21456. main (void)
  21457. {
  21458. int event_type = XI_TouchBegin;
  21459. XITouchClassInfo *t;
  21460. ;
  21461. return 0;
  21462. }
  21463. _ACEOF
  21464. if ac_fn_c_try_compile "$LINENO"
  21465. then :
  21466. have_xinput2_multitouch=yes
  21467. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21468. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21469. fi
  21470. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21472. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21473. fi
  21474. # Check whether --enable-video-x11-xfixes was given.
  21475. if test ${enable_video_x11_xfixes+y}
  21476. then :
  21477. enableval=$enable_video_x11_xfixes;
  21478. else $as_nop
  21479. enable_video_x11_xfixes=yes
  21480. fi
  21481. if test x$enable_video_x11_xfixes = xyes; then
  21482. definitely_enable_video_x11_xfixes=no
  21483. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21485. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21487. /* end confdefs.h. */
  21488. #include <X11/Xlib.h>
  21489. #include <X11/Xproto.h>
  21490. #include <X11/extensions/XInput2.h>
  21491. #include <X11/extensions/Xfixes.h>
  21492. int
  21493. main (void)
  21494. {
  21495. BarrierEventID b;
  21496. ;
  21497. return 0;
  21498. }
  21499. _ACEOF
  21500. if ac_fn_c_try_compile "$LINENO"
  21501. then :
  21502. have_xfixes_h_hdr=yes
  21503. else $as_nop
  21504. have_xfixes_h_hdr=no
  21505. fi
  21506. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21508. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21509. if test x$have_xfixes_h_hdr = xyes; then
  21510. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21511. echo "-- dynamic libXfixes -> $xfixes_lib"
  21512. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21513. definitely_enable_video_x11_xfixes=yes
  21514. else
  21515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21516. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21517. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21518. then :
  21519. printf %s "(cached) " >&6
  21520. else $as_nop
  21521. ac_check_lib_save_LIBS=$LIBS
  21522. LIBS="-lXfixes $LIBS"
  21523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21524. /* end confdefs.h. */
  21525. /* Override any GCC internal prototype to avoid an error.
  21526. Use char because int might match the return type of a GCC
  21527. builtin and then its argument prototype would still apply. */
  21528. char XFixesCreatePointerBarrier ();
  21529. int
  21530. main (void)
  21531. {
  21532. return XFixesCreatePointerBarrier ();
  21533. ;
  21534. return 0;
  21535. }
  21536. _ACEOF
  21537. if ac_fn_c_try_link "$LINENO"
  21538. then :
  21539. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21540. else $as_nop
  21541. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21542. fi
  21543. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21544. conftest$ac_exeext conftest.$ac_ext
  21545. LIBS=$ac_check_lib_save_LIBS
  21546. fi
  21547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21548. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21549. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21550. then :
  21551. have_xfixes_lib=yes
  21552. fi
  21553. if test x$have_xfixes_lib = xyes ; then
  21554. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21555. definitely_enable_video_x11_xfixes=yes
  21556. fi
  21557. fi
  21558. fi
  21559. fi
  21560. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21561. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21562. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21563. fi
  21564. # Check whether --enable-video-x11-xrandr was given.
  21565. if test ${enable_video_x11_xrandr+y}
  21566. then :
  21567. enableval=$enable_video_x11_xrandr;
  21568. else $as_nop
  21569. enable_video_x11_xrandr=yes
  21570. fi
  21571. if test x$enable_video_x11_xrandr = xyes; then
  21572. definitely_enable_video_x11_xrandr=no
  21573. have_xrandr_h_hdr=no
  21574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21575. /* end confdefs.h. */
  21576. #include <X11/Xlib.h>
  21577. #include <X11/extensions/Xrandr.h>
  21578. int
  21579. main (void)
  21580. {
  21581. XRRScreenResources *res = NULL;
  21582. ;
  21583. return 0;
  21584. }
  21585. _ACEOF
  21586. if ac_fn_c_try_compile "$LINENO"
  21587. then :
  21588. have_xrandr_h_hdr=yes
  21589. fi
  21590. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21591. if test x$have_xrandr_h_hdr = xyes; then
  21592. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21593. echo "-- dynamic libXrandr -> $xrandr_lib"
  21594. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21595. definitely_enable_video_x11_xrandr=yes
  21596. else
  21597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21598. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21599. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21600. then :
  21601. printf %s "(cached) " >&6
  21602. else $as_nop
  21603. ac_check_lib_save_LIBS=$LIBS
  21604. LIBS="-lXrandr $LIBS"
  21605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21606. /* end confdefs.h. */
  21607. /* Override any GCC internal prototype to avoid an error.
  21608. Use char because int might match the return type of a GCC
  21609. builtin and then its argument prototype would still apply. */
  21610. char XRRQueryExtension ();
  21611. int
  21612. main (void)
  21613. {
  21614. return XRRQueryExtension ();
  21615. ;
  21616. return 0;
  21617. }
  21618. _ACEOF
  21619. if ac_fn_c_try_link "$LINENO"
  21620. then :
  21621. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21622. else $as_nop
  21623. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21624. fi
  21625. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21626. conftest$ac_exeext conftest.$ac_ext
  21627. LIBS=$ac_check_lib_save_LIBS
  21628. fi
  21629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21630. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21631. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21632. then :
  21633. have_xrandr_lib=yes
  21634. fi
  21635. if test x$have_xrandr_lib = xyes ; then
  21636. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21637. definitely_enable_video_x11_xrandr=yes
  21638. fi
  21639. fi
  21640. fi
  21641. fi
  21642. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21643. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21644. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21645. fi
  21646. # Check whether --enable-video-x11-scrnsaver was given.
  21647. if test ${enable_video_x11_scrnsaver+y}
  21648. then :
  21649. enableval=$enable_video_x11_scrnsaver;
  21650. else $as_nop
  21651. enable_video_x11_scrnsaver=yes
  21652. fi
  21653. if test x$enable_video_x11_scrnsaver = xyes; then
  21654. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21655. "
  21656. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21657. then :
  21658. have_scrnsaver_h_hdr=yes
  21659. else $as_nop
  21660. have_scrnsaver_h_hdr=no
  21661. fi
  21662. if test x$have_scrnsaver_h_hdr = xyes; then
  21663. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21664. echo "-- dynamic libXss -> $xss_lib"
  21665. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21666. definitely_enable_video_x11_scrnsaver=yes
  21667. else
  21668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21669. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21670. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21671. then :
  21672. printf %s "(cached) " >&6
  21673. else $as_nop
  21674. ac_check_lib_save_LIBS=$LIBS
  21675. LIBS="-lXss $LIBS"
  21676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21677. /* end confdefs.h. */
  21678. /* Override any GCC internal prototype to avoid an error.
  21679. Use char because int might match the return type of a GCC
  21680. builtin and then its argument prototype would still apply. */
  21681. char XScreenSaverSuspend ();
  21682. int
  21683. main (void)
  21684. {
  21685. return XScreenSaverSuspend ();
  21686. ;
  21687. return 0;
  21688. }
  21689. _ACEOF
  21690. if ac_fn_c_try_link "$LINENO"
  21691. then :
  21692. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21693. else $as_nop
  21694. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21695. fi
  21696. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21697. conftest$ac_exeext conftest.$ac_ext
  21698. LIBS=$ac_check_lib_save_LIBS
  21699. fi
  21700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21701. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21702. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21703. then :
  21704. have_xss_lib=yes
  21705. fi
  21706. if test x$have_xss_lib = xyes ; then
  21707. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21708. definitely_enable_video_x11_scrnsaver=yes
  21709. fi
  21710. fi
  21711. fi
  21712. fi
  21713. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21714. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21715. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21716. fi
  21717. # Check whether --enable-video-x11-xshape was given.
  21718. if test ${enable_video_x11_xshape+y}
  21719. then :
  21720. enableval=$enable_video_x11_xshape;
  21721. else $as_nop
  21722. enable_video_x11_xshape=yes
  21723. fi
  21724. if test x$enable_video_x11_xshape = xyes; then
  21725. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21726. "
  21727. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21728. then :
  21729. have_shape_h_hdr=yes
  21730. else $as_nop
  21731. have_shape_h_hdr=no
  21732. fi
  21733. if test x$have_shape_h_hdr = xyes; then
  21734. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21735. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21736. fi
  21737. fi
  21738. fi
  21739. fi
  21740. if test x$have_x != xyes; then
  21741. # Prevent Mesa from including X11 headers
  21742. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21743. fi
  21744. }
  21745. CheckVivanteVideo()
  21746. {
  21747. # Check whether --enable-video-vivante was given.
  21748. if test ${enable_video_vivante+y}
  21749. then :
  21750. enableval=$enable_video_vivante;
  21751. else $as_nop
  21752. enable_video_vivante=yes
  21753. fi
  21754. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21756. printf %s "checking for Vivante VDK API... " >&6; }
  21757. have_vivante_vdk=no
  21758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21759. /* end confdefs.h. */
  21760. #define LINUX
  21761. #define EGL_API_FB
  21762. #include <gc_vdk.h>
  21763. int
  21764. main (void)
  21765. {
  21766. ;
  21767. return 0;
  21768. }
  21769. _ACEOF
  21770. if ac_fn_c_try_compile "$LINENO"
  21771. then :
  21772. have_vivante_vdk=yes
  21773. fi
  21774. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21776. printf "%s\n" "$have_vivante_vdk" >&6; }
  21777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21778. printf %s "checking for Vivante FB API... " >&6; }
  21779. have_vivante_egl=no
  21780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21781. /* end confdefs.h. */
  21782. #define LINUX
  21783. #define EGL_API_FB
  21784. #include <EGL/eglvivante.h>
  21785. int
  21786. main (void)
  21787. {
  21788. ;
  21789. return 0;
  21790. }
  21791. _ACEOF
  21792. if ac_fn_c_try_compile "$LINENO"
  21793. then :
  21794. have_vivante_egl=yes
  21795. fi
  21796. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21798. printf "%s\n" "$have_vivante_egl" >&6; }
  21799. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21800. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21801. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21802. if test x$have_vivante_vdk = xyes; then
  21803. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21804. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21805. fi
  21806. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21807. SUMMARY_video="${SUMMARY_video} vivante"
  21808. have_video=yes
  21809. fi
  21810. fi
  21811. }
  21812. CheckHaikuVideo()
  21813. {
  21814. if test x$enable_video = xyes; then
  21815. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21816. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21817. have_video=yes
  21818. SUMMARY_video="${SUMMARY_video} haiku"
  21819. fi
  21820. }
  21821. CheckCOCOA()
  21822. {
  21823. # Check whether --enable-video-cocoa was given.
  21824. if test ${enable_video_cocoa+y}
  21825. then :
  21826. enableval=$enable_video_cocoa;
  21827. else $as_nop
  21828. enable_video_cocoa=yes
  21829. fi
  21830. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21831. save_CFLAGS="$CFLAGS"
  21832. CFLAGS="$CFLAGS -x objective-c"
  21833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21834. printf %s "checking for Cocoa framework... " >&6; }
  21835. have_cocoa=no
  21836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21837. /* end confdefs.h. */
  21838. #import <Cocoa/Cocoa.h>
  21839. int
  21840. main (void)
  21841. {
  21842. ;
  21843. return 0;
  21844. }
  21845. _ACEOF
  21846. if ac_fn_c_try_compile "$LINENO"
  21847. then :
  21848. have_cocoa=yes
  21849. fi
  21850. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21852. printf "%s\n" "$have_cocoa" >&6; }
  21853. CFLAGS="$save_CFLAGS"
  21854. if test x$have_cocoa = xyes; then
  21855. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21856. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21857. SUMMARY_video="${SUMMARY_video} cocoa"
  21858. have_video=yes
  21859. fi
  21860. fi
  21861. }
  21862. CheckMETAL()
  21863. {
  21864. # Check whether --enable-video-metal was given.
  21865. if test ${enable_video_metal+y}
  21866. then :
  21867. enableval=$enable_video_metal;
  21868. else $as_nop
  21869. enable_video_metal=yes
  21870. fi
  21871. # Check whether --enable-render-metal was given.
  21872. if test ${enable_render_metal+y}
  21873. then :
  21874. enableval=$enable_render_metal;
  21875. else $as_nop
  21876. enable_render_metal=yes
  21877. fi
  21878. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21879. save_CFLAGS="$CFLAGS"
  21880. CFLAGS="$CFLAGS -x objective-c"
  21881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21882. printf %s "checking for Metal framework... " >&6; }
  21883. have_metal=no
  21884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21885. /* end confdefs.h. */
  21886. #import <Cocoa/Cocoa.h>
  21887. #import <Metal/Metal.h>
  21888. #import <QuartzCore/CAMetalLayer.h>
  21889. #if TARGET_CPU_X86
  21890. #error Metal doesn't work on this configuration
  21891. #endif
  21892. int
  21893. main (void)
  21894. {
  21895. ;
  21896. return 0;
  21897. }
  21898. _ACEOF
  21899. if ac_fn_c_try_compile "$LINENO"
  21900. then :
  21901. have_metal=yes
  21902. fi
  21903. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21904. CFLAGS="$save_CFLAGS"
  21905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21906. printf "%s\n" "$have_metal" >&6; }
  21907. if test x$have_metal = xyes; then
  21908. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21909. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21910. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21911. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21912. fi
  21913. SUMMARY_video="${SUMMARY_video} metal"
  21914. else
  21915. enable_video_metal=no
  21916. enable_render_metal=no
  21917. fi
  21918. fi
  21919. }
  21920. CheckDirectFB()
  21921. {
  21922. # Check whether --enable-video-directfb was given.
  21923. if test ${enable_video_directfb+y}
  21924. then :
  21925. enableval=$enable_video_directfb;
  21926. else $as_nop
  21927. enable_video_directfb=no
  21928. fi
  21929. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21930. pkg_failed=no
  21931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21932. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21933. if test -n "$DIRECTFB_CFLAGS"; then
  21934. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21935. elif test -n "$PKG_CONFIG"; then
  21936. if test -n "$PKG_CONFIG" && \
  21937. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21938. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21939. ac_status=$?
  21940. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21941. test $ac_status = 0; }; then
  21942. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21943. test "x$?" != "x0" && pkg_failed=yes
  21944. else
  21945. pkg_failed=yes
  21946. fi
  21947. else
  21948. pkg_failed=untried
  21949. fi
  21950. if test -n "$DIRECTFB_LIBS"; then
  21951. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21952. elif test -n "$PKG_CONFIG"; then
  21953. if test -n "$PKG_CONFIG" && \
  21954. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21955. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21956. ac_status=$?
  21957. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21958. test $ac_status = 0; }; then
  21959. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21960. test "x$?" != "x0" && pkg_failed=yes
  21961. else
  21962. pkg_failed=yes
  21963. fi
  21964. else
  21965. pkg_failed=untried
  21966. fi
  21967. if test $pkg_failed = yes; then
  21968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21969. printf "%s\n" "no" >&6; }
  21970. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21971. _pkg_short_errors_supported=yes
  21972. else
  21973. _pkg_short_errors_supported=no
  21974. fi
  21975. if test $_pkg_short_errors_supported = yes; then
  21976. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21977. else
  21978. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21979. fi
  21980. # Put the nasty error message in config.log where it belongs
  21981. echo "$DIRECTFB_PKG_ERRORS" >&5
  21982. video_directfb=no
  21983. elif test $pkg_failed = untried; then
  21984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21985. printf "%s\n" "no" >&6; }
  21986. video_directfb=no
  21987. else
  21988. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21989. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21991. printf "%s\n" "yes" >&6; }
  21992. video_directfb=yes
  21993. fi
  21994. if test x$video_directfb = xyes; then
  21995. # SuSE 11.1 installs directfb-config without directfb-devel
  21996. save_CPPFLAGS="$CPPFLAGS"
  21997. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21998. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21999. if test "x$ac_cv_header_directfb_h" = xyes
  22000. then :
  22001. have_directfb_hdr=yes
  22002. else $as_nop
  22003. have_directfb_hdr=no
  22004. fi
  22005. CPPFLAGS="$save_CPPFLAGS"
  22006. video_directfb=$have_directfb_hdr
  22007. fi
  22008. if test x$video_directfb = xyes; then
  22009. # Check whether --enable-directfb-shared was given.
  22010. if test ${enable_directfb_shared+y}
  22011. then :
  22012. enableval=$enable_directfb_shared;
  22013. else $as_nop
  22014. enable_directfb_shared=yes
  22015. fi
  22016. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22017. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22018. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22019. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22020. directfb_shared=no
  22021. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22022. if test x$have_loadso != xyes && \
  22023. test x$enable_directfb_shared = xyes; then
  22024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22025. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22026. fi
  22027. if test x$have_loadso = xyes && \
  22028. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22029. directfb_shared=yes
  22030. echo "-- dynamic libdirectfb -> $directfb_lib"
  22031. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22032. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22033. else
  22034. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22035. SUMMARY_video="${SUMMARY_video} directfb"
  22036. fi
  22037. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22038. have_video=yes
  22039. fi
  22040. fi
  22041. }
  22042. CheckKMSDRM()
  22043. {
  22044. # Check whether --enable-video-kmsdrm was given.
  22045. if test ${enable_video_kmsdrm+y}
  22046. then :
  22047. enableval=$enable_video_kmsdrm;
  22048. else $as_nop
  22049. enable_video_kmsdrm=yes
  22050. fi
  22051. if test x$enable_video = xyes && \
  22052. test x$enable_video_kmsdrm = xyes && \
  22053. test x$video_opengl_egl = xyes; then
  22054. video_kmsdrm=no
  22055. pkg_failed=no
  22056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22057. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22058. if test -n "$LIBDRM_CFLAGS"; then
  22059. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22060. elif test -n "$PKG_CONFIG"; then
  22061. if test -n "$PKG_CONFIG" && \
  22062. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22063. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22064. ac_status=$?
  22065. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22066. test $ac_status = 0; }; then
  22067. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22068. test "x$?" != "x0" && pkg_failed=yes
  22069. else
  22070. pkg_failed=yes
  22071. fi
  22072. else
  22073. pkg_failed=untried
  22074. fi
  22075. if test -n "$LIBDRM_LIBS"; then
  22076. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22077. elif test -n "$PKG_CONFIG"; then
  22078. if test -n "$PKG_CONFIG" && \
  22079. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22080. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22081. ac_status=$?
  22082. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22083. test $ac_status = 0; }; then
  22084. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22085. test "x$?" != "x0" && pkg_failed=yes
  22086. else
  22087. pkg_failed=yes
  22088. fi
  22089. else
  22090. pkg_failed=untried
  22091. fi
  22092. if test $pkg_failed = yes; then
  22093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22094. printf "%s\n" "no" >&6; }
  22095. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22096. _pkg_short_errors_supported=yes
  22097. else
  22098. _pkg_short_errors_supported=no
  22099. fi
  22100. if test $_pkg_short_errors_supported = yes; then
  22101. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22102. else
  22103. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22104. fi
  22105. # Put the nasty error message in config.log where it belongs
  22106. echo "$LIBDRM_PKG_ERRORS" >&5
  22107. libdrm_avail=no
  22108. elif test $pkg_failed = untried; then
  22109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22110. printf "%s\n" "no" >&6; }
  22111. libdrm_avail=no
  22112. else
  22113. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22114. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22116. printf "%s\n" "yes" >&6; }
  22117. libdrm_avail=yes
  22118. fi
  22119. pkg_failed=no
  22120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22121. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22122. if test -n "$LIBGBM_CFLAGS"; then
  22123. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22124. elif test -n "$PKG_CONFIG"; then
  22125. if test -n "$PKG_CONFIG" && \
  22126. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22127. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22128. ac_status=$?
  22129. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22130. test $ac_status = 0; }; then
  22131. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22132. test "x$?" != "x0" && pkg_failed=yes
  22133. else
  22134. pkg_failed=yes
  22135. fi
  22136. else
  22137. pkg_failed=untried
  22138. fi
  22139. if test -n "$LIBGBM_LIBS"; then
  22140. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22141. elif test -n "$PKG_CONFIG"; then
  22142. if test -n "$PKG_CONFIG" && \
  22143. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22144. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22145. ac_status=$?
  22146. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22147. test $ac_status = 0; }; then
  22148. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22149. test "x$?" != "x0" && pkg_failed=yes
  22150. else
  22151. pkg_failed=yes
  22152. fi
  22153. else
  22154. pkg_failed=untried
  22155. fi
  22156. if test $pkg_failed = yes; then
  22157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22158. printf "%s\n" "no" >&6; }
  22159. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22160. _pkg_short_errors_supported=yes
  22161. else
  22162. _pkg_short_errors_supported=no
  22163. fi
  22164. if test $_pkg_short_errors_supported = yes; then
  22165. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22166. else
  22167. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22168. fi
  22169. # Put the nasty error message in config.log where it belongs
  22170. echo "$LIBGBM_PKG_ERRORS" >&5
  22171. libgbm_avail=no
  22172. elif test $pkg_failed = untried; then
  22173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22174. printf "%s\n" "no" >&6; }
  22175. libgbm_avail=no
  22176. else
  22177. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22178. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22180. printf "%s\n" "yes" >&6; }
  22181. libgbm_avail=yes
  22182. fi
  22183. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22184. video_kmsdrm=yes
  22185. fi
  22186. if test x$video_kmsdrm = xyes; then
  22187. # Check whether --enable-kmsdrm-shared was given.
  22188. if test ${enable_kmsdrm_shared+y}
  22189. then :
  22190. enableval=$enable_kmsdrm_shared;
  22191. else $as_nop
  22192. enable_kmsdrm_shared=yes
  22193. fi
  22194. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22195. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22196. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22198. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22199. kmsdrm_shared=no
  22200. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22201. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22202. if test x$have_loadso != xyes && \
  22203. test x$enable_kmsdrm_shared = xyes; then
  22204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22205. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22206. fi
  22207. if test x$have_loadso = xyes && \
  22208. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22209. kmsdrm_shared=yes
  22210. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22211. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22212. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22213. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22214. else
  22215. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22216. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22217. fi
  22218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22219. printf "%s\n" "$kmsdrm_shared" >&6; }
  22220. if test x$kmsdrm_shared = xyes; then
  22221. echo "-- dynamic libdrm -> $drm_lib"
  22222. echo "-- dynamic libgbm -> $gbm_lib"
  22223. fi
  22224. have_video=yes
  22225. fi
  22226. fi
  22227. }
  22228. CheckDummyVideo()
  22229. {
  22230. # Check whether --enable-video-dummy was given.
  22231. if test ${enable_video_dummy+y}
  22232. then :
  22233. enableval=$enable_video_dummy;
  22234. else $as_nop
  22235. enable_video_dummy=yes
  22236. fi
  22237. if test x$enable_video_dummy = xyes; then
  22238. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22239. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22240. have_video=yes
  22241. SUMMARY_video="${SUMMARY_video} dummy"
  22242. fi
  22243. }
  22244. CheckOffscreenVideo()
  22245. {
  22246. # Check whether --enable-video-offscreen was given.
  22247. if test ${enable_video_offscreen+y}
  22248. then :
  22249. enableval=$enable_video_offscreen;
  22250. else $as_nop
  22251. enable_video_offscreen=yes
  22252. fi
  22253. if test x$enable_video_offscreen = xyes; then
  22254. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22255. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22256. have_video=yes
  22257. SUMMARY_video="${SUMMARY_video} offscreen"
  22258. fi
  22259. }
  22260. CheckQNXVideo()
  22261. {
  22262. if test x$enable_video = xyes; then
  22263. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22264. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22265. have_video=yes
  22266. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22267. SUMMARY_video="${SUMMARY_video} qnx"
  22268. fi
  22269. }
  22270. CheckQNXAudio()
  22271. {
  22272. if test x$enable_audio = xyes; then
  22273. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22274. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22275. have_audio=yes
  22276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22277. SUMMARY_audio="${SUMMARY_audio} qsa"
  22278. fi
  22279. }
  22280. # Check whether --enable-video-opengl was given.
  22281. if test ${enable_video_opengl+y}
  22282. then :
  22283. enableval=$enable_video_opengl;
  22284. else $as_nop
  22285. enable_video_opengl=yes
  22286. fi
  22287. CheckGLX()
  22288. {
  22289. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22291. printf %s "checking for GLX support... " >&6; }
  22292. video_opengl_glx=no
  22293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22294. /* end confdefs.h. */
  22295. #include <GL/glx.h>
  22296. int
  22297. main (void)
  22298. {
  22299. ;
  22300. return 0;
  22301. }
  22302. _ACEOF
  22303. if ac_fn_c_try_compile "$LINENO"
  22304. then :
  22305. video_opengl_glx=yes
  22306. fi
  22307. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22309. printf "%s\n" "$video_opengl_glx" >&6; }
  22310. if test x$video_opengl_glx = xyes; then
  22311. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22312. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22313. fi
  22314. fi
  22315. }
  22316. # Check whether --enable-video-opengles was given.
  22317. if test ${enable_video_opengles+y}
  22318. then :
  22319. enableval=$enable_video_opengles;
  22320. else $as_nop
  22321. enable_video_opengles=yes
  22322. fi
  22323. # Check whether --enable-video-opengles1 was given.
  22324. if test ${enable_video_opengles1+y}
  22325. then :
  22326. enableval=$enable_video_opengles1;
  22327. else $as_nop
  22328. enable_video_opengles1=yes
  22329. fi
  22330. # Check whether --enable-video-opengles2 was given.
  22331. if test ${enable_video_opengles2+y}
  22332. then :
  22333. enableval=$enable_video_opengles2;
  22334. else $as_nop
  22335. enable_video_opengles2=yes
  22336. fi
  22337. CheckEGL()
  22338. {
  22339. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22341. printf %s "checking for EGL support... " >&6; }
  22342. video_opengl_egl=no
  22343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22344. /* end confdefs.h. */
  22345. #define LINUX
  22346. #define EGL_API_FB
  22347. #define MESA_EGL_NO_X11_HEADERS
  22348. #define EGL_NO_X11
  22349. #include <EGL/egl.h>
  22350. #include <EGL/eglext.h>
  22351. int
  22352. main (void)
  22353. {
  22354. ;
  22355. return 0;
  22356. }
  22357. _ACEOF
  22358. if ac_fn_c_try_compile "$LINENO"
  22359. then :
  22360. video_opengl_egl=yes
  22361. fi
  22362. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22364. printf "%s\n" "$video_opengl_egl" >&6; }
  22365. if test x$video_opengl_egl = xyes; then
  22366. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22367. fi
  22368. fi
  22369. }
  22370. CheckOpenGL()
  22371. {
  22372. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22374. printf %s "checking for OpenGL headers... " >&6; }
  22375. video_opengl=no
  22376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22377. /* end confdefs.h. */
  22378. #include <GL/gl.h>
  22379. #include <GL/glext.h>
  22380. int
  22381. main (void)
  22382. {
  22383. ;
  22384. return 0;
  22385. }
  22386. _ACEOF
  22387. if ac_fn_c_try_compile "$LINENO"
  22388. then :
  22389. video_opengl=yes
  22390. fi
  22391. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22393. printf "%s\n" "$video_opengl" >&6; }
  22394. if test x$video_opengl = xyes; then
  22395. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22396. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22397. SUMMARY_video="${SUMMARY_video} opengl"
  22398. fi
  22399. fi
  22400. }
  22401. CheckOpenGLES()
  22402. {
  22403. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22404. if test x$enable_video_opengles1 = xyes; then
  22405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22406. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22407. video_opengles_v1=no
  22408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22409. /* end confdefs.h. */
  22410. #include <GLES/gl.h>
  22411. #include <GLES/glext.h>
  22412. int
  22413. main (void)
  22414. {
  22415. ;
  22416. return 0;
  22417. }
  22418. _ACEOF
  22419. if ac_fn_c_try_compile "$LINENO"
  22420. then :
  22421. video_opengles_v1=yes
  22422. fi
  22423. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22425. printf "%s\n" "$video_opengles_v1" >&6; }
  22426. if test x$video_opengles_v1 = xyes; then
  22427. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22428. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22429. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22430. fi
  22431. fi
  22432. if test x$enable_video_opengles2 = xyes; then
  22433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22434. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22435. video_opengles_v2=no
  22436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22437. /* end confdefs.h. */
  22438. #include <GLES2/gl2.h>
  22439. #include <GLES2/gl2ext.h>
  22440. int
  22441. main (void)
  22442. {
  22443. ;
  22444. return 0;
  22445. }
  22446. _ACEOF
  22447. if ac_fn_c_try_compile "$LINENO"
  22448. then :
  22449. video_opengles_v2=yes
  22450. fi
  22451. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22453. printf "%s\n" "$video_opengles_v2" >&6; }
  22454. if test x$video_opengles_v2 = xyes; then
  22455. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22456. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22457. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22458. fi
  22459. fi
  22460. fi
  22461. }
  22462. CheckWINDOWSGL()
  22463. {
  22464. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22465. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22466. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22467. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22468. SUMMARY_video="${SUMMARY_video} opengl"
  22469. fi
  22470. }
  22471. CheckWINDOWSGLES()
  22472. {
  22473. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22475. printf %s "checking for EGL support... " >&6; }
  22476. video_opengl_egl=no
  22477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22478. /* end confdefs.h. */
  22479. #include <EGL/egl.h>
  22480. int
  22481. main (void)
  22482. {
  22483. ;
  22484. return 0;
  22485. }
  22486. _ACEOF
  22487. if ac_fn_c_try_compile "$LINENO"
  22488. then :
  22489. video_opengl_egl=yes
  22490. fi
  22491. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22493. printf "%s\n" "$video_opengl_egl" >&6; }
  22494. if test x$video_opengl_egl = xyes; then
  22495. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22496. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22497. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22498. fi
  22499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22500. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22501. video_opengles_v2=no
  22502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22503. /* end confdefs.h. */
  22504. #include <GLES2/gl2.h>
  22505. #include <GLES2/gl2ext.h>
  22506. int
  22507. main (void)
  22508. {
  22509. ;
  22510. return 0;
  22511. }
  22512. _ACEOF
  22513. if ac_fn_c_try_compile "$LINENO"
  22514. then :
  22515. video_opengles_v2=yes
  22516. fi
  22517. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22519. printf "%s\n" "$video_opengles_v2" >&6; }
  22520. if test x$video_opengles_v2 = xyes; then
  22521. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22522. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22523. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22524. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22525. fi
  22526. fi
  22527. }
  22528. CheckHaikuGL()
  22529. {
  22530. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22531. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22532. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22533. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22534. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22535. SUMMARY_video="${SUMMARY_video} opengl"
  22536. fi
  22537. }
  22538. CheckMacGL()
  22539. {
  22540. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22541. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22542. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22543. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22544. SUMMARY_video="${SUMMARY_video} opengl"
  22545. fi
  22546. }
  22547. CheckMacGLES()
  22548. {
  22549. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22550. video_opengl_egl=yes
  22551. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22552. video_opengles_v2=yes
  22553. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22554. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22555. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22556. fi
  22557. }
  22558. CheckEmscriptenGLES()
  22559. {
  22560. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22562. printf %s "checking for EGL support... " >&6; }
  22563. video_opengl_egl=no
  22564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22565. /* end confdefs.h. */
  22566. #include <EGL/egl.h>
  22567. int
  22568. main (void)
  22569. {
  22570. ;
  22571. return 0;
  22572. }
  22573. _ACEOF
  22574. if ac_fn_c_try_compile "$LINENO"
  22575. then :
  22576. video_opengl_egl=yes
  22577. fi
  22578. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22580. printf "%s\n" "$video_opengl_egl" >&6; }
  22581. if test x$video_opengl_egl = xyes; then
  22582. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22583. fi
  22584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22585. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22586. video_opengles_v2=no
  22587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22588. /* end confdefs.h. */
  22589. #include <GLES2/gl2.h>
  22590. #include <GLES2/gl2ext.h>
  22591. int
  22592. main (void)
  22593. {
  22594. ;
  22595. return 0;
  22596. }
  22597. _ACEOF
  22598. if ac_fn_c_try_compile "$LINENO"
  22599. then :
  22600. video_opengles_v2=yes
  22601. fi
  22602. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22604. printf "%s\n" "$video_opengles_v2" >&6; }
  22605. if test x$video_opengles_v2 = xyes; then
  22606. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22607. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22608. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22609. fi
  22610. fi
  22611. }
  22612. # Check whether --enable-video-vulkan was given.
  22613. if test ${enable_video_vulkan+y}
  22614. then :
  22615. enableval=$enable_video_vulkan;
  22616. else $as_nop
  22617. enable_video_vulkan=yes
  22618. fi
  22619. CheckVulkan()
  22620. {
  22621. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22622. case "$host" in
  22623. *-*-android*)
  22624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22625. /* end confdefs.h. */
  22626. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22627. #error Vulkan doesn't work on this configuration
  22628. #endif
  22629. int
  22630. main (void)
  22631. {
  22632. ;
  22633. return 0;
  22634. }
  22635. _ACEOF
  22636. if ac_fn_c_try_compile "$LINENO"
  22637. then :
  22638. else $as_nop
  22639. enable_video_vulkan=no
  22640. fi
  22641. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22642. ;;
  22643. *-*-darwin*)
  22644. save_CFLAGS="$CFLAGS"
  22645. CFLAGS="$CFLAGS -x objective-c"
  22646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22647. /* end confdefs.h. */
  22648. #include <Cocoa/Cocoa.h>
  22649. #include <Metal/Metal.h>
  22650. #include <QuartzCore/CAMetalLayer.h>
  22651. #if TARGET_CPU_X86
  22652. #error Vulkan doesn't work on this configuration
  22653. #endif
  22654. int
  22655. main (void)
  22656. {
  22657. ;
  22658. return 0;
  22659. }
  22660. _ACEOF
  22661. if ac_fn_c_try_compile "$LINENO"
  22662. then :
  22663. else $as_nop
  22664. enable_video_vulkan=no
  22665. fi
  22666. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22667. CFLAGS="$save_CFLAGS"
  22668. ;;
  22669. *)
  22670. ;;
  22671. esac
  22672. if test x$enable_video_vulkan = xno; then
  22673. # For reasons I am totally unable to see, I get an undefined macro error if
  22674. # I put this in the AC_TRY_COMPILE.
  22675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22676. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22677. fi
  22678. fi
  22679. if test x$have_loadso != xyes; then
  22680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22681. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22682. enable_video_vulkan=no
  22683. fi
  22684. if test x$enable_video_vulkan = xyes; then
  22685. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22686. SUMMARY_video="${SUMMARY_video} vulkan"
  22687. fi
  22688. }
  22689. CheckInputEvents()
  22690. {
  22691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22692. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22693. use_input_events=no
  22694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22695. /* end confdefs.h. */
  22696. #include <linux/input.h>
  22697. int
  22698. main (void)
  22699. {
  22700. #ifndef EVIOCGNAME
  22701. #error EVIOCGNAME() ioctl not available
  22702. #endif
  22703. ;
  22704. return 0;
  22705. }
  22706. _ACEOF
  22707. if ac_fn_c_try_compile "$LINENO"
  22708. then :
  22709. use_input_events=yes
  22710. fi
  22711. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22713. printf "%s\n" "$use_input_events" >&6; }
  22714. if test x$use_input_events = xyes; then
  22715. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22716. SUMMARY_input="${SUMMARY_input} linuxev"
  22717. fi
  22718. }
  22719. CheckInputKD()
  22720. {
  22721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22722. printf %s "checking for Linux kd.h... " >&6; }
  22723. use_input_kd=no
  22724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22725. /* end confdefs.h. */
  22726. #include <linux/kd.h>
  22727. #include <linux/keyboard.h>
  22728. #include <sys/ioctl.h>
  22729. int
  22730. main (void)
  22731. {
  22732. struct kbentry kbe;
  22733. kbe.kb_table = KG_CTRL;
  22734. ioctl(0, KDGKBENT, &kbe);
  22735. ;
  22736. return 0;
  22737. }
  22738. _ACEOF
  22739. if ac_fn_c_try_compile "$LINENO"
  22740. then :
  22741. use_input_kd=yes
  22742. fi
  22743. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22745. printf "%s\n" "$use_input_kd" >&6; }
  22746. if test x$use_input_kd = xyes; then
  22747. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22748. SUMMARY_input="${SUMMARY_input} linuxkd"
  22749. fi
  22750. }
  22751. CheckInputKBIO()
  22752. {
  22753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22754. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22755. use_input_kbio=no
  22756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22757. /* end confdefs.h. */
  22758. #include <sys/kbio.h>
  22759. #include <sys/ioctl.h>
  22760. int
  22761. main (void)
  22762. {
  22763. accentmap_t accTable;
  22764. ioctl(0, KDENABIO, 1);
  22765. ;
  22766. return 0;
  22767. }
  22768. _ACEOF
  22769. if ac_fn_c_try_compile "$LINENO"
  22770. then :
  22771. use_input_kbio=yes
  22772. fi
  22773. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22775. printf "%s\n" "$use_input_kbio" >&6; }
  22776. if test x$use_input_kbio = xyes; then
  22777. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22778. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22779. fi
  22780. }
  22781. CheckInputWSCONS()
  22782. {
  22783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22784. printf %s "checking for OpenBSD wscons... " >&6; }
  22785. use_input_wscons=no
  22786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22787. /* end confdefs.h. */
  22788. #include <sys/time.h>
  22789. #include <dev/wscons/wsconsio.h>
  22790. #include <dev/wscons/wsksymdef.h>
  22791. #include <dev/wscons/wsksymvar.h>
  22792. #include <sys/ioctl.h>
  22793. int
  22794. main (void)
  22795. {
  22796. struct wskbd_map_data data;
  22797. ioctl(0, WSKBDIO_GETMAP, &data);
  22798. ;
  22799. return 0;
  22800. }
  22801. _ACEOF
  22802. if ac_fn_c_try_compile "$LINENO"
  22803. then :
  22804. use_input_wscons=yes
  22805. fi
  22806. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22808. printf "%s\n" "$use_input_wscons" >&6; }
  22809. if test x$use_input_wscons = xyes; then
  22810. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22811. SUMMARY_input="${SUMMARY_input} wscons"
  22812. fi
  22813. }
  22814. CheckLibUDev()
  22815. {
  22816. # Check whether --enable-libudev was given.
  22817. if test ${enable_libudev+y}
  22818. then :
  22819. enableval=$enable_libudev;
  22820. else $as_nop
  22821. enable_libudev=yes
  22822. fi
  22823. if test x$enable_libudev = xyes; then
  22824. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22825. if test "x$ac_cv_header_libudev_h" = xyes
  22826. then :
  22827. have_libudev_h_hdr=yes
  22828. else $as_nop
  22829. have_libudev_h_hdr=no
  22830. fi
  22831. if test x$have_libudev_h_hdr = xyes; then
  22832. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22833. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22834. if test x$udev_lib != x; then
  22835. echo "-- dynamic udev -> $udev_lib"
  22836. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22837. fi
  22838. fi
  22839. fi
  22840. }
  22841. CheckDBus()
  22842. {
  22843. # Check whether --enable-dbus was given.
  22844. if test ${enable_dbus+y}
  22845. then :
  22846. enableval=$enable_dbus;
  22847. else $as_nop
  22848. enable_dbus=yes
  22849. fi
  22850. if test x$enable_dbus = xyes; then
  22851. pkg_failed=no
  22852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22853. printf %s "checking for dbus-1... " >&6; }
  22854. if test -n "$DBUS_CFLAGS"; then
  22855. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22856. elif test -n "$PKG_CONFIG"; then
  22857. if test -n "$PKG_CONFIG" && \
  22858. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22859. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22860. ac_status=$?
  22861. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22862. test $ac_status = 0; }; then
  22863. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22864. test "x$?" != "x0" && pkg_failed=yes
  22865. else
  22866. pkg_failed=yes
  22867. fi
  22868. else
  22869. pkg_failed=untried
  22870. fi
  22871. if test -n "$DBUS_LIBS"; then
  22872. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22873. elif test -n "$PKG_CONFIG"; then
  22874. if test -n "$PKG_CONFIG" && \
  22875. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22876. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22877. ac_status=$?
  22878. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22879. test $ac_status = 0; }; then
  22880. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22881. test "x$?" != "x0" && pkg_failed=yes
  22882. else
  22883. pkg_failed=yes
  22884. fi
  22885. else
  22886. pkg_failed=untried
  22887. fi
  22888. if test $pkg_failed = yes; then
  22889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22890. printf "%s\n" "no" >&6; }
  22891. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22892. _pkg_short_errors_supported=yes
  22893. else
  22894. _pkg_short_errors_supported=no
  22895. fi
  22896. if test $_pkg_short_errors_supported = yes; then
  22897. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22898. else
  22899. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22900. fi
  22901. # Put the nasty error message in config.log where it belongs
  22902. echo "$DBUS_PKG_ERRORS" >&5
  22903. have_dbus=no
  22904. elif test $pkg_failed = untried; then
  22905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22906. printf "%s\n" "no" >&6; }
  22907. have_dbus=no
  22908. else
  22909. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22910. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22912. printf "%s\n" "yes" >&6; }
  22913. have_dbus=yes
  22914. fi
  22915. save_CPPFLAGS="$CPPFLAGS"
  22916. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22917. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22918. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22919. then :
  22920. have_dbus_dbus_h_hdr=yes
  22921. else $as_nop
  22922. have_dbus_dbus_h_hdr=no
  22923. fi
  22924. CPPFLAGS="$save_CPPFLAGS"
  22925. if test x$have_dbus_dbus_h_hdr = xyes; then
  22926. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22927. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22928. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22929. fi
  22930. fi
  22931. }
  22932. CheckIME()
  22933. {
  22934. # Check whether --enable-ime was given.
  22935. if test ${enable_ime+y}
  22936. then :
  22937. enableval=$enable_ime;
  22938. else $as_nop
  22939. enable_ime=yes
  22940. fi
  22941. if test x$enable_ime = xyes; then
  22942. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22943. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22944. fi
  22945. }
  22946. CheckInotify()
  22947. {
  22948. save_LIBS="$LIBS"
  22949. case "$host" in
  22950. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22951. ;;
  22952. esac
  22953. for ac_header in sys/inotify.h
  22954. do :
  22955. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22956. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22957. then :
  22958. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22959. have_inotify_inotify_h_hdr=yes
  22960. fi
  22961. done
  22962. for ac_func in inotify_init
  22963. do :
  22964. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22965. if test "x$ac_cv_func_inotify_init" = xyes
  22966. then :
  22967. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22968. have_inotify=yes
  22969. fi
  22970. done
  22971. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22972. if test "x$ac_cv_func_inotify_init1" = xyes
  22973. then :
  22974. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22975. fi
  22976. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22977. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22978. case "$host" in
  22979. *-*-freebsd*|*-*-dragonfly*)
  22980. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22981. ;;
  22982. esac
  22983. fi
  22984. LIBS="$save_LIBS"
  22985. }
  22986. CheckIBus()
  22987. {
  22988. # Check whether --enable-ibus was given.
  22989. if test ${enable_ibus+y}
  22990. then :
  22991. enableval=$enable_ibus;
  22992. else $as_nop
  22993. enable_ibus=yes
  22994. fi
  22995. if test x$enable_ibus = xyes; then
  22996. pkg_failed=no
  22997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22998. printf %s "checking for ibus-1.0... " >&6; }
  22999. if test -n "$IBUS_CFLAGS"; then
  23000. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23001. elif test -n "$PKG_CONFIG"; then
  23002. if test -n "$PKG_CONFIG" && \
  23003. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23004. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23005. ac_status=$?
  23006. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23007. test $ac_status = 0; }; then
  23008. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23009. test "x$?" != "x0" && pkg_failed=yes
  23010. else
  23011. pkg_failed=yes
  23012. fi
  23013. else
  23014. pkg_failed=untried
  23015. fi
  23016. if test -n "$IBUS_LIBS"; then
  23017. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23018. elif test -n "$PKG_CONFIG"; then
  23019. if test -n "$PKG_CONFIG" && \
  23020. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23021. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23022. ac_status=$?
  23023. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23024. test $ac_status = 0; }; then
  23025. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23026. test "x$?" != "x0" && pkg_failed=yes
  23027. else
  23028. pkg_failed=yes
  23029. fi
  23030. else
  23031. pkg_failed=untried
  23032. fi
  23033. if test $pkg_failed = yes; then
  23034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23035. printf "%s\n" "no" >&6; }
  23036. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23037. _pkg_short_errors_supported=yes
  23038. else
  23039. _pkg_short_errors_supported=no
  23040. fi
  23041. if test $_pkg_short_errors_supported = yes; then
  23042. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23043. else
  23044. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23045. fi
  23046. # Put the nasty error message in config.log where it belongs
  23047. echo "$IBUS_PKG_ERRORS" >&5
  23048. have_ibus=no
  23049. elif test $pkg_failed = untried; then
  23050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23051. printf "%s\n" "no" >&6; }
  23052. have_ibus=no
  23053. else
  23054. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23055. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23057. printf "%s\n" "yes" >&6; }
  23058. have_ibus=yes
  23059. fi
  23060. save_CPPFLAGS="$CPPFLAGS"
  23061. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23062. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23063. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23064. then :
  23065. have_ibus_ibus_h_hdr=yes
  23066. else $as_nop
  23067. have_ibus_ibus_h_hdr=no
  23068. fi
  23069. CPPFLAGS="$save_CPPFLAGS"
  23070. if test x$have_ibus_ibus_h_hdr = xyes; then
  23071. if test x$enable_ime != xyes; then
  23072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23073. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23074. have_ibus_ibus_h_hdr=no
  23075. elif test x$enable_dbus != xyes; then
  23076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23077. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23078. have_ibus_ibus_h_hdr=no
  23079. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23081. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23082. have_ibus_ibus_h_hdr=no
  23083. else
  23084. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23085. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23086. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23087. fi
  23088. fi
  23089. fi
  23090. }
  23091. CheckFcitx()
  23092. {
  23093. # Check whether --enable-fcitx was given.
  23094. if test ${enable_fcitx+y}
  23095. then :
  23096. enableval=$enable_fcitx;
  23097. else $as_nop
  23098. enable_fcitx=yes
  23099. fi
  23100. if test x$enable_fcitx = xyes; then
  23101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23102. printf %s "checking for fcitx support... " >&6; }
  23103. have_fcitx=no
  23104. if test x$enable_ime != xyes; then
  23105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23106. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23107. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23109. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23110. else
  23111. have_fcitx=yes
  23112. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23113. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23114. fi
  23115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23116. printf "%s\n" "$have_fcitx" >&6; }
  23117. fi
  23118. }
  23119. CheckJoystickMFI()
  23120. {
  23121. # Check whether --enable-joystick-mfi was given.
  23122. if test ${enable_joystick_mfi+y}
  23123. then :
  23124. enableval=$enable_joystick_mfi;
  23125. else $as_nop
  23126. enable_joystick_mfi=yes
  23127. fi
  23128. if test x$enable_joystick_mfi = xyes; then
  23129. save_CFLAGS="$CFLAGS"
  23130. save_LDFLAGS="$LDFLAGS"
  23131. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23132. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23134. printf %s "checking for GameController framework... " >&6; }
  23135. enable_joystick_mfi=no
  23136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23137. /* end confdefs.h. */
  23138. #include <AvailabilityMacros.h>
  23139. #include <TargetConditionals.h>
  23140. #import <GameController/GameController.h>
  23141. int
  23142. main (void)
  23143. {
  23144. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23145. #error GameController framework doesn't work on this configuration
  23146. #endif
  23147. #if TARGET_CPU_X86
  23148. #error GameController framework doesn't work on this configuration
  23149. #endif
  23150. ;
  23151. return 0;
  23152. }
  23153. _ACEOF
  23154. if ac_fn_c_try_link "$LINENO"
  23155. then :
  23156. enable_joystick_mfi=yes
  23157. fi
  23158. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23159. conftest$ac_exeext conftest.$ac_ext
  23160. CFLAGS="$save_CFLAGS"
  23161. LDFLAGS="$save_LDFLAGS"
  23162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23163. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23164. if test x$enable_joystick_mfi = xyes; then
  23165. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23166. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23167. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23168. fi
  23169. fi
  23170. }
  23171. CheckPTHREAD()
  23172. {
  23173. case "$host" in
  23174. *-*-emscripten*)
  23175. enable_pthreads_default=no
  23176. ;;
  23177. *)
  23178. enable_pthreads_default=yes
  23179. ;;
  23180. esac
  23181. # Check whether --enable-pthreads was given.
  23182. if test ${enable_pthreads+y}
  23183. then :
  23184. enableval=$enable_pthreads;
  23185. else $as_nop
  23186. enable_pthreads=maybe
  23187. fi
  23188. # Check whether --enable-pthread-sem was given.
  23189. if test ${enable_pthread_sem+y}
  23190. then :
  23191. enableval=$enable_pthread_sem;
  23192. else $as_nop
  23193. enable_pthread_sem=maybe
  23194. fi
  23195. if test x$enable_pthreads = xmaybe; then
  23196. enable_pthreads=$enable_pthreads_default
  23197. fi
  23198. if test x$enable_pthread_sem = xmaybe; then
  23199. enable_pthread_sem=$enable_pthreads
  23200. fi
  23201. case "$host" in
  23202. *-*-android*)
  23203. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23204. pthread_lib=""
  23205. ;;
  23206. *-*-linux*|*-*-uclinux*)
  23207. pthread_cflags="-D_REENTRANT"
  23208. pthread_lib="-lpthread"
  23209. ;;
  23210. *-*-bsdi*)
  23211. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23212. pthread_lib=""
  23213. ;;
  23214. *-*-darwin*)
  23215. pthread_cflags="-D_THREAD_SAFE"
  23216. # causes Carbon.p complaints?
  23217. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23218. ;;
  23219. *-*-freebsd*|*-*-dragonfly*)
  23220. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23221. pthread_lib="-pthread"
  23222. ;;
  23223. *-*-netbsd*)
  23224. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23225. pthread_lib="-lpthread"
  23226. ;;
  23227. *-*-openbsd*)
  23228. pthread_cflags="-D_REENTRANT"
  23229. pthread_lib="-lpthread"
  23230. ;;
  23231. *-*-solaris2.9)
  23232. # From Solaris 9+, posix4's preferred name is rt.
  23233. pthread_cflags="-D_REENTRANT"
  23234. pthread_lib="-lpthread -lrt"
  23235. ;;
  23236. *-*-solaris2.10)
  23237. # Solaris 10+ merged pthread into libc.
  23238. pthread_cflags="-D_REENTRANT"
  23239. pthread_lib="-lrt"
  23240. ;;
  23241. *-*-solaris*)
  23242. # Solaris 11+ merged rt into libc.
  23243. pthread_cflags="-D_REENTRANT"
  23244. pthread_lib=""
  23245. ;;
  23246. *-*-sysv5*)
  23247. pthread_cflags="-D_REENTRANT -Kthread"
  23248. pthread_lib=""
  23249. ;;
  23250. *-*-aix*)
  23251. pthread_cflags="-D_REENTRANT -mthreads"
  23252. pthread_lib="-lpthread"
  23253. ;;
  23254. *-*-hpux11*)
  23255. pthread_cflags="-D_REENTRANT"
  23256. pthread_lib="-L/usr/lib -lpthread"
  23257. ;;
  23258. *-*-haiku*)
  23259. pthread_cflags="-D_REENTRANT"
  23260. pthread_lib=""
  23261. ;;
  23262. *-*-nto*)
  23263. pthread_cflags="-D_REENTRANT"
  23264. pthread_lib=""
  23265. ;;
  23266. *-*-emscripten*)
  23267. pthread_cflags="-D_REENTRANT -pthread"
  23268. pthread_lib="-pthread"
  23269. ;;
  23270. *)
  23271. pthread_cflags="-D_REENTRANT"
  23272. pthread_lib="-lpthread"
  23273. ;;
  23274. esac
  23275. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23276. # Save the original compiler flags and libraries
  23277. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23278. # Add the pthread compiler flags and libraries
  23279. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23280. # Check to see if we have pthread support on this system
  23281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23282. printf %s "checking for pthreads... " >&6; }
  23283. use_pthreads=no
  23284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23285. /* end confdefs.h. */
  23286. #include <pthread.h>
  23287. int
  23288. main (void)
  23289. {
  23290. pthread_attr_t type;
  23291. pthread_attr_init(&type);
  23292. ;
  23293. return 0;
  23294. }
  23295. _ACEOF
  23296. if ac_fn_c_try_link "$LINENO"
  23297. then :
  23298. use_pthreads=yes
  23299. fi
  23300. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23301. conftest$ac_exeext conftest.$ac_ext
  23302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23303. printf "%s\n" "$use_pthreads" >&6; }
  23304. # Restore the compiler flags and libraries
  23305. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23306. # Do futher testing if we have pthread support...
  23307. if test x$use_pthreads = xyes; then
  23308. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23309. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23310. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23311. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23312. # Save the original compiler flags and libraries
  23313. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23314. # Add the pthread compiler flags and libraries
  23315. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23316. # Check to see if recursive mutexes are available
  23317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23318. printf %s "checking for recursive mutexes... " >&6; }
  23319. has_recursive_mutexes=no
  23320. if test x$has_recursive_mutexes = xno; then
  23321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23322. /* end confdefs.h. */
  23323. #define _GNU_SOURCE 1
  23324. #include <pthread.h>
  23325. int
  23326. main (void)
  23327. {
  23328. pthread_mutexattr_t attr;
  23329. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23330. ;
  23331. return 0;
  23332. }
  23333. _ACEOF
  23334. if ac_fn_c_try_link "$LINENO"
  23335. then :
  23336. has_recursive_mutexes=yes
  23337. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23338. fi
  23339. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23340. conftest$ac_exeext conftest.$ac_ext
  23341. fi
  23342. if test x$has_recursive_mutexes = xno; then
  23343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23344. /* end confdefs.h. */
  23345. #define _GNU_SOURCE 1
  23346. #include <pthread.h>
  23347. int
  23348. main (void)
  23349. {
  23350. pthread_mutexattr_t attr;
  23351. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23352. ;
  23353. return 0;
  23354. }
  23355. _ACEOF
  23356. if ac_fn_c_try_link "$LINENO"
  23357. then :
  23358. has_recursive_mutexes=yes
  23359. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23360. fi
  23361. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23362. conftest$ac_exeext conftest.$ac_ext
  23363. fi
  23364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23365. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23366. # Check to see if pthread semaphore support is missing
  23367. if test x$enable_pthread_sem = xyes; then
  23368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23369. printf %s "checking for pthread semaphores... " >&6; }
  23370. have_pthread_sem=no
  23371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23372. /* end confdefs.h. */
  23373. #include <pthread.h>
  23374. #include <semaphore.h>
  23375. int
  23376. main (void)
  23377. {
  23378. ;
  23379. return 0;
  23380. }
  23381. _ACEOF
  23382. if ac_fn_c_try_compile "$LINENO"
  23383. then :
  23384. have_pthread_sem=yes
  23385. fi
  23386. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23388. printf "%s\n" "$have_pthread_sem" >&6; }
  23389. fi
  23390. if test x$have_pthread_sem = xyes; then
  23391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23392. printf %s "checking for sem_timedwait... " >&6; }
  23393. have_sem_timedwait=no
  23394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23395. /* end confdefs.h. */
  23396. #include <pthread.h>
  23397. #include <semaphore.h>
  23398. int
  23399. main (void)
  23400. {
  23401. sem_timedwait(NULL, NULL);
  23402. ;
  23403. return 0;
  23404. }
  23405. _ACEOF
  23406. if ac_fn_c_try_link "$LINENO"
  23407. then :
  23408. have_sem_timedwait=yes
  23409. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23410. fi
  23411. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23412. conftest$ac_exeext conftest.$ac_ext
  23413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23414. printf "%s\n" "$have_sem_timedwait" >&6; }
  23415. fi
  23416. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23417. "
  23418. if test "x$ac_cv_header_pthread_np_h" = xyes
  23419. then :
  23420. have_pthread_np_h=yes
  23421. else $as_nop
  23422. have_pthread_np_h=no
  23423. fi
  23424. if test x$have_pthread_np_h = xyes; then
  23425. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23426. fi
  23427. # Check to see if pthread naming is available
  23428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23429. printf %s "checking for pthread_setname_np... " >&6; }
  23430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23431. /* end confdefs.h. */
  23432. /* Override any GCC internal prototype to avoid an error.
  23433. Use char because int might match the return type of a GCC
  23434. builtin and then its argument prototype would still apply. */
  23435. char pthread_setname_np ();
  23436. int
  23437. main (void)
  23438. {
  23439. return pthread_setname_np ();
  23440. ;
  23441. return 0;
  23442. }
  23443. _ACEOF
  23444. if ac_fn_c_try_link "$LINENO"
  23445. then :
  23446. has_pthread_setname_np=yes
  23447. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23448. else $as_nop
  23449. has_pthread_setname_np=no
  23450. fi
  23451. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23452. conftest$ac_exeext conftest.$ac_ext
  23453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23454. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23456. printf %s "checking for pthread_set_name_np... " >&6; }
  23457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23458. /* end confdefs.h. */
  23459. /* Override any GCC internal prototype to avoid an error.
  23460. Use char because int might match the return type of a GCC
  23461. builtin and then its argument prototype would still apply. */
  23462. char pthread_set_name_np ();
  23463. int
  23464. main (void)
  23465. {
  23466. return pthread_set_name_np ();
  23467. ;
  23468. return 0;
  23469. }
  23470. _ACEOF
  23471. if ac_fn_c_try_link "$LINENO"
  23472. then :
  23473. has_pthread_set_name_np=yes
  23474. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23475. else $as_nop
  23476. has_pthread_set_name_np=no
  23477. fi
  23478. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23479. conftest$ac_exeext conftest.$ac_ext
  23480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23481. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23482. # Restore the compiler flags and libraries
  23483. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23484. # Basic thread creation functions
  23485. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23486. # Semaphores
  23487. # We can fake these with mutexes and condition variables if necessary
  23488. if test x$have_pthread_sem = xyes; then
  23489. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23490. else
  23491. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23492. fi
  23493. # Mutexes
  23494. # We can fake these with semaphores if necessary
  23495. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23496. # Condition variables
  23497. # We can fake these with semaphores and mutexes if necessary
  23498. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23499. # Thread local storage
  23500. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23501. have_threads=yes
  23502. fi
  23503. fi
  23504. }
  23505. CheckWINDOWS()
  23506. {
  23507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23508. printf %s "checking Windows compiler... " >&6; }
  23509. have_win32_gcc=no
  23510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23511. /* end confdefs.h. */
  23512. #include <windows.h>
  23513. int
  23514. main (void)
  23515. {
  23516. ;
  23517. return 0;
  23518. }
  23519. _ACEOF
  23520. if ac_fn_c_try_compile "$LINENO"
  23521. then :
  23522. have_win32_gcc=yes
  23523. fi
  23524. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23526. printf "%s\n" "$have_win32_gcc" >&6; }
  23527. if test x$have_win32_gcc != xyes; then
  23528. as_fn_error $? "
  23529. *** Your compiler ($CC) does not produce Windows executables!
  23530. " "$LINENO" 5
  23531. fi
  23532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23533. printf %s "checking Windows CE... " >&6; }
  23534. have_wince=no
  23535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23536. /* end confdefs.h. */
  23537. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23538. #error This is not Windows CE
  23539. #endif
  23540. int
  23541. main (void)
  23542. {
  23543. ;
  23544. return 0;
  23545. }
  23546. _ACEOF
  23547. if ac_fn_c_try_compile "$LINENO"
  23548. then :
  23549. have_wince=yes
  23550. as_fn_error $? "
  23551. *** Sorry, Windows CE is no longer supported.
  23552. " "$LINENO" 5
  23553. fi
  23554. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23556. printf "%s\n" "$have_wince" >&6; }
  23557. # This fixes Windows stack alignment with newer GCC
  23558. CheckStackBoundary
  23559. # headers needed elsewhere
  23560. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23561. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23562. then :
  23563. have_tpcshrd_h=yes
  23564. fi
  23565. if test x$have_tpcshrd_h = xyes; then
  23566. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23567. fi
  23568. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23569. if test "x$ac_cv_header_roapi_h" = xyes
  23570. then :
  23571. have_roapi_h=yes
  23572. fi
  23573. if test x$have_roapi_h = xyes; then
  23574. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23575. fi
  23576. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23577. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23578. then :
  23579. have_shellscalingapi_h=yes
  23580. fi
  23581. if test x$shellscalingapi_h = xyes; then
  23582. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23583. fi
  23584. }
  23585. CheckOS2()
  23586. {
  23587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23588. printf %s "checking OS/2 compiler... " >&6; }
  23589. have_os2_gcc=no
  23590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23591. /* end confdefs.h. */
  23592. #include <os2.h>
  23593. int
  23594. main (void)
  23595. {
  23596. ;
  23597. return 0;
  23598. }
  23599. _ACEOF
  23600. if ac_fn_c_try_compile "$LINENO"
  23601. then :
  23602. have_os2_gcc=yes
  23603. fi
  23604. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23606. printf "%s\n" "$have_os2_gcc" >&6; }
  23607. if test x$have_os2_gcc != xyes; then
  23608. as_fn_error $? "
  23609. *** Your compiler ($CC) does not produce OS/2 executables!
  23610. " "$LINENO" 5
  23611. fi
  23612. }
  23613. CheckDIRECTX()
  23614. {
  23615. # Check whether --enable-directx was given.
  23616. if test ${enable_directx+y}
  23617. then :
  23618. enableval=$enable_directx;
  23619. else $as_nop
  23620. enable_directx=yes
  23621. fi
  23622. if test x$enable_directx = xyes; then
  23623. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23624. if test "x$ac_cv_header_d3d9_h" = xyes
  23625. then :
  23626. have_d3d=yes
  23627. fi
  23628. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23629. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23630. then :
  23631. have_d3d11=yes
  23632. fi
  23633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23634. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23636. /* end confdefs.h. */
  23637. #include <winsdkver.h>
  23638. #include <sdkddkver.h>
  23639. #include <d3d12.h>
  23640. ID3D12Device1 *device;
  23641. #if WDK_NTDDI_VERSION <= 0x0A000008
  23642. asdf
  23643. #endif
  23644. int
  23645. main (void)
  23646. {
  23647. ;
  23648. return 0;
  23649. }
  23650. _ACEOF
  23651. if ac_fn_c_try_compile "$LINENO"
  23652. then :
  23653. have_d3d12=yes
  23654. else $as_nop
  23655. have_d3d12=no
  23656. fi
  23657. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23659. printf "%s\n" "$have_d3d12" >&6; }
  23660. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23661. if test "x$ac_cv_header_ddraw_h" = xyes
  23662. then :
  23663. have_ddraw=yes
  23664. fi
  23665. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23666. if test "x$ac_cv_header_dsound_h" = xyes
  23667. then :
  23668. have_dsound=yes
  23669. fi
  23670. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23671. if test "x$ac_cv_header_dinput_h" = xyes
  23672. then :
  23673. have_dinput=yes
  23674. fi
  23675. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23676. if test "x$ac_cv_header_dxgi_h" = xyes
  23677. then :
  23678. have_dxgi=yes
  23679. fi
  23680. if test x$have_ddraw = xyes; then
  23681. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23682. fi
  23683. if test x$have_dinput = xyes; then
  23684. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23685. fi
  23686. if test x$have_dsound = xyes; then
  23687. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23688. fi
  23689. if test x$have_dxgi = xyes; then
  23690. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23691. fi
  23692. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23693. # FIXME: ...so force it off for now.
  23694. case "$host" in
  23695. *-*-cygwin*)
  23696. have_dinput=false
  23697. ;;
  23698. esac
  23699. fi
  23700. # Check whether --enable-xinput was given.
  23701. if test ${enable_xinput+y}
  23702. then :
  23703. enableval=$enable_xinput;
  23704. else $as_nop
  23705. enable_xinput=yes
  23706. fi
  23707. if test x$enable_xinput = xyes; then
  23708. have_xinput_gamepadex=no
  23709. have_xinput_stateex=no
  23710. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23711. if test "x$ac_cv_header_xinput_h" = xyes
  23712. then :
  23713. have_xinput=yes
  23714. fi
  23715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23716. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23718. /* end confdefs.h. */
  23719. #include <windows.h>
  23720. #include <xinput.h>
  23721. XINPUT_GAMEPAD_EX x1;
  23722. int
  23723. main (void)
  23724. {
  23725. ;
  23726. return 0;
  23727. }
  23728. _ACEOF
  23729. if ac_fn_c_try_compile "$LINENO"
  23730. then :
  23731. have_xinput_gamepadex=yes
  23732. fi
  23733. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23735. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23737. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23739. /* end confdefs.h. */
  23740. #include <windows.h>
  23741. #include <xinput.h>
  23742. XINPUT_STATE_EX s1;
  23743. int
  23744. main (void)
  23745. {
  23746. ;
  23747. return 0;
  23748. }
  23749. _ACEOF
  23750. if ac_fn_c_try_compile "$LINENO"
  23751. then :
  23752. have_xinput_stateex=yes
  23753. fi
  23754. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23756. printf "%s\n" "$have_xinput_stateex" >&6; }
  23757. if test x$have_xinput = xyes; then
  23758. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23759. fi
  23760. if test x$have_xinput_gamepadex = xyes; then
  23761. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23762. fi
  23763. if test x$have_xinput_stateex = xyes; then
  23764. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23765. fi
  23766. fi
  23767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23768. printf %s "checking for windows.gaming.input.h... " >&6; }
  23769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23770. /* end confdefs.h. */
  23771. #define COBJMACROS
  23772. #include <windows.gaming.input.h>
  23773. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23774. int
  23775. main (void)
  23776. {
  23777. ;
  23778. return 0;
  23779. }
  23780. _ACEOF
  23781. if ac_fn_c_try_compile "$LINENO"
  23782. then :
  23783. have_wgi=yes
  23784. else $as_nop
  23785. have_wgi=no
  23786. fi
  23787. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23789. printf "%s\n" "$have_wgi" >&6; }
  23790. if test x$have_wgi = xyes; then
  23791. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23792. fi
  23793. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23794. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23795. then :
  23796. have_wasapi=yes
  23797. fi
  23798. if test x$have_wasapi = xyes; then
  23799. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23800. fi
  23801. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23802. if test "x$ac_cv_header_audioclient_h" = xyes
  23803. then :
  23804. else $as_nop
  23805. have_wasapi=no
  23806. fi
  23807. if test x$have_wasapi = xyes; then
  23808. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23809. fi
  23810. # Check whether --enable-wasapi was given.
  23811. if test ${enable_wasapi+y}
  23812. then :
  23813. enableval=$enable_wasapi;
  23814. else $as_nop
  23815. enable_wasapi=yes
  23816. fi
  23817. }
  23818. CheckDLOPEN()
  23819. {
  23820. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23821. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23822. if test "x$ac_cv_header_dlfcn_h" = xyes
  23823. then :
  23824. have_dlfcn_h=yes
  23825. else $as_nop
  23826. have_dlfcn_h=no
  23827. fi
  23828. have_dlopen=no
  23829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23830. printf %s "checking for dlopen in -lc... " >&6; }
  23831. if test ${ac_cv_lib_c_dlopen+y}
  23832. then :
  23833. printf %s "(cached) " >&6
  23834. else $as_nop
  23835. ac_check_lib_save_LIBS=$LIBS
  23836. LIBS="-lc $LIBS"
  23837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23838. /* end confdefs.h. */
  23839. /* Override any GCC internal prototype to avoid an error.
  23840. Use char because int might match the return type of a GCC
  23841. builtin and then its argument prototype would still apply. */
  23842. char dlopen ();
  23843. int
  23844. main (void)
  23845. {
  23846. return dlopen ();
  23847. ;
  23848. return 0;
  23849. }
  23850. _ACEOF
  23851. if ac_fn_c_try_link "$LINENO"
  23852. then :
  23853. ac_cv_lib_c_dlopen=yes
  23854. else $as_nop
  23855. ac_cv_lib_c_dlopen=no
  23856. fi
  23857. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23858. conftest$ac_exeext conftest.$ac_ext
  23859. LIBS=$ac_check_lib_save_LIBS
  23860. fi
  23861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23862. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23863. if test "x$ac_cv_lib_c_dlopen" = xyes
  23864. then :
  23865. have_dlopen=yes
  23866. else $as_nop
  23867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23868. printf %s "checking for dlopen in -ldl... " >&6; }
  23869. if test ${ac_cv_lib_dl_dlopen+y}
  23870. then :
  23871. printf %s "(cached) " >&6
  23872. else $as_nop
  23873. ac_check_lib_save_LIBS=$LIBS
  23874. LIBS="-ldl $LIBS"
  23875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23876. /* end confdefs.h. */
  23877. /* Override any GCC internal prototype to avoid an error.
  23878. Use char because int might match the return type of a GCC
  23879. builtin and then its argument prototype would still apply. */
  23880. char dlopen ();
  23881. int
  23882. main (void)
  23883. {
  23884. return dlopen ();
  23885. ;
  23886. return 0;
  23887. }
  23888. _ACEOF
  23889. if ac_fn_c_try_link "$LINENO"
  23890. then :
  23891. ac_cv_lib_dl_dlopen=yes
  23892. else $as_nop
  23893. ac_cv_lib_dl_dlopen=no
  23894. fi
  23895. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23896. conftest$ac_exeext conftest.$ac_ext
  23897. LIBS=$ac_check_lib_save_LIBS
  23898. fi
  23899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23900. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23901. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23902. then :
  23903. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23904. fi
  23905. fi
  23906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23907. printf %s "checking for dlopen... " >&6; }
  23908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23909. printf "%s\n" "$have_dlopen" >&6; }
  23910. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23911. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23912. if test x$enable_loadso = xyes; then
  23913. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23914. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23915. have_loadso=yes
  23916. fi
  23917. fi
  23918. }
  23919. CheckO_CLOEXEC()
  23920. {
  23921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23922. printf %s "checking for O_CLOEXEC... " >&6; }
  23923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23924. /* end confdefs.h. */
  23925. #include <fcntl.h>
  23926. int flag = O_CLOEXEC;
  23927. int
  23928. main (void)
  23929. {
  23930. ;
  23931. return 0;
  23932. }
  23933. _ACEOF
  23934. if ac_fn_c_try_compile "$LINENO"
  23935. then :
  23936. have_o_cloexec=yes
  23937. else $as_nop
  23938. have_o_cloexec=no
  23939. fi
  23940. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23942. printf "%s\n" "$have_o_cloexec" >&6; }
  23943. if test $have_o_cloexec = yes; then
  23944. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23945. fi
  23946. }
  23947. CheckUSBHID()
  23948. {
  23949. case "$host" in
  23950. *-*-*bsd*|*-*-dragonfly*)
  23951. if test x$enable_joystick = xyes; then
  23952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23953. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23954. if test ${ac_cv_lib_usbhid_hid_init+y}
  23955. then :
  23956. printf %s "(cached) " >&6
  23957. else $as_nop
  23958. ac_check_lib_save_LIBS=$LIBS
  23959. LIBS="-lusbhid $LIBS"
  23960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23961. /* end confdefs.h. */
  23962. /* Override any GCC internal prototype to avoid an error.
  23963. Use char because int might match the return type of a GCC
  23964. builtin and then its argument prototype would still apply. */
  23965. char hid_init ();
  23966. int
  23967. main (void)
  23968. {
  23969. return hid_init ();
  23970. ;
  23971. return 0;
  23972. }
  23973. _ACEOF
  23974. if ac_fn_c_try_link "$LINENO"
  23975. then :
  23976. ac_cv_lib_usbhid_hid_init=yes
  23977. else $as_nop
  23978. ac_cv_lib_usbhid_hid_init=no
  23979. fi
  23980. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23981. conftest$ac_exeext conftest.$ac_ext
  23982. LIBS=$ac_check_lib_save_LIBS
  23983. fi
  23984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23985. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23986. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23987. then :
  23988. have_libusbhid=yes
  23989. fi
  23990. if test x$have_libusbhid = xyes; then
  23991. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23992. if test "x$ac_cv_header_usbhid_h" = xyes
  23993. then :
  23994. USB_CFLAGS="-DHAVE_USBHID_H"
  23995. fi
  23996. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23997. if test "x$ac_cv_header_libusbhid_h" = xyes
  23998. then :
  23999. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  24000. fi
  24001. USB_LIBS="$USB_LIBS -lusbhid"
  24002. else
  24003. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24004. if test "x$ac_cv_header_usb_h" = xyes
  24005. then :
  24006. USB_CFLAGS="-DHAVE_USB_H"
  24007. fi
  24008. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24009. if test "x$ac_cv_header_libusb_h" = xyes
  24010. then :
  24011. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24012. fi
  24013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24014. printf %s "checking for hid_init in -lusb... " >&6; }
  24015. if test ${ac_cv_lib_usb_hid_init+y}
  24016. then :
  24017. printf %s "(cached) " >&6
  24018. else $as_nop
  24019. ac_check_lib_save_LIBS=$LIBS
  24020. LIBS="-lusb $LIBS"
  24021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24022. /* end confdefs.h. */
  24023. /* Override any GCC internal prototype to avoid an error.
  24024. Use char because int might match the return type of a GCC
  24025. builtin and then its argument prototype would still apply. */
  24026. char hid_init ();
  24027. int
  24028. main (void)
  24029. {
  24030. return hid_init ();
  24031. ;
  24032. return 0;
  24033. }
  24034. _ACEOF
  24035. if ac_fn_c_try_link "$LINENO"
  24036. then :
  24037. ac_cv_lib_usb_hid_init=yes
  24038. else $as_nop
  24039. ac_cv_lib_usb_hid_init=no
  24040. fi
  24041. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24042. conftest$ac_exeext conftest.$ac_ext
  24043. LIBS=$ac_check_lib_save_LIBS
  24044. fi
  24045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24046. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24047. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24048. then :
  24049. USB_LIBS="$USB_LIBS -lusb"
  24050. fi
  24051. fi
  24052. save_CFLAGS="$CFLAGS"
  24053. CFLAGS="$CFLAGS $USB_CFLAGS"
  24054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24055. printf %s "checking for usbhid... " >&6; }
  24056. have_usbhid=no
  24057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24058. /* end confdefs.h. */
  24059. #include <sys/types.h>
  24060. #if defined(HAVE_USB_H)
  24061. #include <usb.h>
  24062. #endif
  24063. #ifdef __DragonFly__
  24064. # include <bus/u4b/usb.h>
  24065. # include <bus/u4b/usbhid.h>
  24066. #else
  24067. # include <dev/usb/usb.h>
  24068. # include <dev/usb/usbhid.h>
  24069. #endif
  24070. #if defined(HAVE_USBHID_H)
  24071. #include <usbhid.h>
  24072. #elif defined(HAVE_LIBUSB_H)
  24073. #include <libusb.h>
  24074. #elif defined(HAVE_LIBUSBHID_H)
  24075. #include <libusbhid.h>
  24076. #endif
  24077. int
  24078. main (void)
  24079. {
  24080. struct report_desc *repdesc;
  24081. struct usb_ctl_report *repbuf;
  24082. hid_kind_t hidkind;
  24083. ;
  24084. return 0;
  24085. }
  24086. _ACEOF
  24087. if ac_fn_c_try_compile "$LINENO"
  24088. then :
  24089. have_usbhid=yes
  24090. fi
  24091. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24093. printf "%s\n" "$have_usbhid" >&6; }
  24094. if test x$have_usbhid = xyes; then
  24095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24096. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24097. have_usbhid_ucr_data=no
  24098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24099. /* end confdefs.h. */
  24100. #include <sys/types.h>
  24101. #if defined(HAVE_USB_H)
  24102. #include <usb.h>
  24103. #endif
  24104. #ifdef __DragonFly__
  24105. # include <bus/u4b/usb.h>
  24106. # include <bus/u4b/usbhid.h>
  24107. #else
  24108. # include <dev/usb/usb.h>
  24109. # include <dev/usb/usbhid.h>
  24110. #endif
  24111. #if defined(HAVE_USBHID_H)
  24112. #include <usbhid.h>
  24113. #elif defined(HAVE_LIBUSB_H)
  24114. #include <libusb.h>
  24115. #elif defined(HAVE_LIBUSBHID_H)
  24116. #include <libusbhid.h>
  24117. #endif
  24118. int
  24119. main (void)
  24120. {
  24121. struct usb_ctl_report buf;
  24122. if (buf.ucr_data) { }
  24123. ;
  24124. return 0;
  24125. }
  24126. _ACEOF
  24127. if ac_fn_c_try_compile "$LINENO"
  24128. then :
  24129. have_usbhid_ucr_data=yes
  24130. fi
  24131. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24132. if test x$have_usbhid_ucr_data = xyes; then
  24133. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24134. fi
  24135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24136. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24138. printf %s "checking for new usbhid API... " >&6; }
  24139. have_usbhid_new=no
  24140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24141. /* end confdefs.h. */
  24142. #include <sys/types.h>
  24143. #if defined(HAVE_USB_H)
  24144. #include <usb.h>
  24145. #endif
  24146. #ifdef __DragonFly__
  24147. #include <bus/u4b/usb.h>
  24148. #include <bus/u4b/usbhid.h>
  24149. #else
  24150. #include <dev/usb/usb.h>
  24151. #include <dev/usb/usbhid.h>
  24152. #endif
  24153. #if defined(HAVE_USBHID_H)
  24154. #include <usbhid.h>
  24155. #elif defined(HAVE_LIBUSB_H)
  24156. #include <libusb.h>
  24157. #elif defined(HAVE_LIBUSBHID_H)
  24158. #include <libusbhid.h>
  24159. #endif
  24160. int
  24161. main (void)
  24162. {
  24163. report_desc_t d;
  24164. hid_start_parse(d, 1, 1);
  24165. ;
  24166. return 0;
  24167. }
  24168. _ACEOF
  24169. if ac_fn_c_try_compile "$LINENO"
  24170. then :
  24171. have_usbhid_new=yes
  24172. fi
  24173. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24174. if test x$have_usbhid_new = xyes; then
  24175. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24176. fi
  24177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24178. printf "%s\n" "$have_usbhid_new" >&6; }
  24179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24180. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24181. have_machine_joystick=no
  24182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24183. /* end confdefs.h. */
  24184. #include <machine/joystick.h>
  24185. int
  24186. main (void)
  24187. {
  24188. struct joystick t;
  24189. ;
  24190. return 0;
  24191. }
  24192. _ACEOF
  24193. if ac_fn_c_try_compile "$LINENO"
  24194. then :
  24195. have_machine_joystick=yes
  24196. fi
  24197. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24198. if test x$have_machine_joystick = xyes; then
  24199. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24200. fi
  24201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24202. printf "%s\n" "$have_machine_joystick" >&6; }
  24203. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24204. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24205. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24207. have_joystick=yes
  24208. fi
  24209. CFLAGS="$save_CFLAGS"
  24210. fi
  24211. ;;
  24212. esac
  24213. }
  24214. CheckHIDAPI()
  24215. {
  24216. # Check whether --enable-hidapi-joystick was given.
  24217. if test ${enable_hidapi_joystick+y}
  24218. then :
  24219. enableval=$enable_hidapi_joystick;
  24220. else $as_nop
  24221. enable_hidapi_joystick=yes
  24222. fi
  24223. # Check whether --enable-hidapi-libusb was given.
  24224. if test ${enable_hidapi_libusb+y}
  24225. then :
  24226. enableval=$enable_hidapi_libusb;
  24227. else $as_nop
  24228. enable_hidapi_libusb=maybe
  24229. fi
  24230. if test x$enable_hidapi = xyes; then
  24231. case "$host" in
  24232. # libusb does not support iOS
  24233. *-ios-* )
  24234. enable_hidapi_libusb=no
  24235. ;;
  24236. # On the other hand, *BSD specifically uses libusb only
  24237. *-*-*bsd* )
  24238. enable_hidapi_libusb=yes
  24239. require_hidapi_libusb=yes
  24240. ;;
  24241. *-*-os2* )
  24242. enable_hidapi_libusb=yes
  24243. ;;
  24244. esac
  24245. hidapi_support=yes
  24246. if test x$enable_hidapi_libusb = xyes; then
  24247. pkg_failed=no
  24248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24249. printf %s "checking for libusb-1.0... " >&6; }
  24250. if test -n "$LIBUSB_CFLAGS"; then
  24251. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24252. elif test -n "$PKG_CONFIG"; then
  24253. if test -n "$PKG_CONFIG" && \
  24254. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24255. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24256. ac_status=$?
  24257. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24258. test $ac_status = 0; }; then
  24259. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24260. test "x$?" != "x0" && pkg_failed=yes
  24261. else
  24262. pkg_failed=yes
  24263. fi
  24264. else
  24265. pkg_failed=untried
  24266. fi
  24267. if test -n "$LIBUSB_LIBS"; then
  24268. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24269. elif test -n "$PKG_CONFIG"; then
  24270. if test -n "$PKG_CONFIG" && \
  24271. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24272. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24273. ac_status=$?
  24274. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24275. test $ac_status = 0; }; then
  24276. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24277. test "x$?" != "x0" && pkg_failed=yes
  24278. else
  24279. pkg_failed=yes
  24280. fi
  24281. else
  24282. pkg_failed=untried
  24283. fi
  24284. if test $pkg_failed = yes; then
  24285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24286. printf "%s\n" "no" >&6; }
  24287. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24288. _pkg_short_errors_supported=yes
  24289. else
  24290. _pkg_short_errors_supported=no
  24291. fi
  24292. if test $_pkg_short_errors_supported = yes; then
  24293. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24294. else
  24295. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24296. fi
  24297. # Put the nasty error message in config.log where it belongs
  24298. echo "$LIBUSB_PKG_ERRORS" >&5
  24299. have_libusb=no
  24300. elif test $pkg_failed = untried; then
  24301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24302. printf "%s\n" "no" >&6; }
  24303. have_libusb=no
  24304. else
  24305. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24306. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24308. printf "%s\n" "yes" >&6; }
  24309. have_libusb=yes
  24310. fi
  24311. save_CPPFLAGS="$CPPFLAGS"
  24312. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24313. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24314. if test "x$ac_cv_header_libusb_h" = xyes
  24315. then :
  24316. have_libusb_h=yes
  24317. else $as_nop
  24318. have_libusb_h=no
  24319. fi
  24320. CPPFLAGS="$save_CPPFLAGS"
  24321. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24322. hidapi_support=no
  24323. fi
  24324. fi
  24325. if test x$hidapi_support = xyes; then
  24326. if test x$have_libusb_h = xyes; then
  24327. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24328. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24329. if test x$require_hidapi_libusb = xyes; then
  24330. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24331. else
  24332. if test x$have_loadso != xyes; then
  24333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24334. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24335. fi
  24336. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24337. libusb_lib=""
  24338. case "$host" in
  24339. *-*-darwin* )
  24340. libusb_lib="libusb-1.0.0.dylib"
  24341. ;;
  24342. *-*-cygwin* | *-*-mingw* )
  24343. libusb_lib="libusb-1.0.dll"
  24344. ;;
  24345. *-*-os2* )
  24346. libusb_lib="usb100.dll"
  24347. ;;
  24348. esac
  24349. if test x$libusb_lib = x; then
  24350. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24351. fi
  24352. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24353. fi
  24354. fi
  24355. fi
  24356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24357. printf %s "checking for hidapi joystick support... " >&6; }
  24358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24359. printf "%s\n" "$hidapi_support" >&6; }
  24360. fi
  24361. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24362. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24363. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24364. fi
  24365. }
  24366. CheckClockGettime()
  24367. {
  24368. # Check whether --enable-clock_gettime was given.
  24369. if test ${enable_clock_gettime+y}
  24370. then :
  24371. enableval=$enable_clock_gettime;
  24372. else $as_nop
  24373. enable_clock_gettime=yes
  24374. fi
  24375. if test x$enable_clock_gettime = xyes; then
  24376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24377. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24378. if test ${ac_cv_lib_rt_clock_gettime+y}
  24379. then :
  24380. printf %s "(cached) " >&6
  24381. else $as_nop
  24382. ac_check_lib_save_LIBS=$LIBS
  24383. LIBS="-lrt $LIBS"
  24384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24385. /* end confdefs.h. */
  24386. /* Override any GCC internal prototype to avoid an error.
  24387. Use char because int might match the return type of a GCC
  24388. builtin and then its argument prototype would still apply. */
  24389. char clock_gettime ();
  24390. int
  24391. main (void)
  24392. {
  24393. return clock_gettime ();
  24394. ;
  24395. return 0;
  24396. }
  24397. _ACEOF
  24398. if ac_fn_c_try_link "$LINENO"
  24399. then :
  24400. ac_cv_lib_rt_clock_gettime=yes
  24401. else $as_nop
  24402. ac_cv_lib_rt_clock_gettime=no
  24403. fi
  24404. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24405. conftest$ac_exeext conftest.$ac_ext
  24406. LIBS=$ac_check_lib_save_LIBS
  24407. fi
  24408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24409. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24410. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24411. then :
  24412. have_clock_gettime=yes
  24413. fi
  24414. if test x$have_clock_gettime = xyes; then
  24415. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24416. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24417. else
  24418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24419. printf %s "checking for clock_gettime in -lc... " >&6; }
  24420. if test ${ac_cv_lib_c_clock_gettime+y}
  24421. then :
  24422. printf %s "(cached) " >&6
  24423. else $as_nop
  24424. ac_check_lib_save_LIBS=$LIBS
  24425. LIBS="-lc $LIBS"
  24426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24427. /* end confdefs.h. */
  24428. /* Override any GCC internal prototype to avoid an error.
  24429. Use char because int might match the return type of a GCC
  24430. builtin and then its argument prototype would still apply. */
  24431. char clock_gettime ();
  24432. int
  24433. main (void)
  24434. {
  24435. return clock_gettime ();
  24436. ;
  24437. return 0;
  24438. }
  24439. _ACEOF
  24440. if ac_fn_c_try_link "$LINENO"
  24441. then :
  24442. ac_cv_lib_c_clock_gettime=yes
  24443. else $as_nop
  24444. ac_cv_lib_c_clock_gettime=no
  24445. fi
  24446. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24447. conftest$ac_exeext conftest.$ac_ext
  24448. LIBS=$ac_check_lib_save_LIBS
  24449. fi
  24450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24451. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24452. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24453. then :
  24454. have_clock_gettime=yes
  24455. fi
  24456. if test x$have_clock_gettime = xyes; then
  24457. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24458. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24459. fi
  24460. fi
  24461. fi
  24462. }
  24463. CheckLinuxVersion()
  24464. {
  24465. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24466. if test "x$ac_cv_header_linux_version_h" = xyes
  24467. then :
  24468. have_linux_version_h=yes
  24469. fi
  24470. if test x$have_linux_version_h = xyes; then
  24471. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24472. fi
  24473. }
  24474. CheckRPATH()
  24475. {
  24476. # Check whether --enable-rpath was given.
  24477. if test ${enable_rpath+y}
  24478. then :
  24479. enableval=$enable_rpath;
  24480. else $as_nop
  24481. enable_rpath=yes
  24482. fi
  24483. }
  24484. CheckEventSignals()
  24485. {
  24486. # Check whether --enable-backgrounding-signal was given.
  24487. if test ${enable_backgrounding_signal+y}
  24488. then :
  24489. enableval=$enable_backgrounding_signal;
  24490. else $as_nop
  24491. enable_backgrounding_signal=no
  24492. fi
  24493. if test x$enable_backgrounding_signal != xno; then
  24494. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24495. fi
  24496. # Check whether --enable-foregrounding-signal was given.
  24497. if test ${enable_foregrounding_signal+y}
  24498. then :
  24499. enableval=$enable_foregrounding_signal;
  24500. else $as_nop
  24501. enable_foregrounding_signal=no
  24502. fi
  24503. if test x$enable_foregrounding_signal != xno; then
  24504. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24505. fi
  24506. }
  24507. CheckVirtualJoystick()
  24508. {
  24509. # Check whether --enable-joystick-virtual was given.
  24510. if test ${enable_joystick_virtual+y}
  24511. then :
  24512. enableval=$enable_joystick_virtual;
  24513. else $as_nop
  24514. enable_joystick_virtual=yes
  24515. fi
  24516. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24517. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24518. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24519. have_joystick_virtual=yes
  24520. fi
  24521. }
  24522. CheckWarnAll
  24523. CheckNoStrictAliasing
  24524. CheckEventSignals
  24525. have_locale=no
  24526. case "$host" in
  24527. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24528. case "$host" in
  24529. *-*-android*)
  24530. # Android
  24531. ARCH=android
  24532. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24533. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24534. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24535. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24536. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24537. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24538. if test x$enable_video = xyes; then
  24539. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24540. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24541. SUMMARY_video="${SUMMARY_video} android"
  24542. have_video=yes
  24543. fi
  24544. ;;
  24545. *-*-linux*) ARCH=linux ;;
  24546. *-*-uclinux*) ARCH=linux ;;
  24547. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24548. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24549. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24550. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24551. *-*-bsdi*) ARCH=bsdi ;;
  24552. *-*-freebsd*) ARCH=freebsd ;;
  24553. *-*-dragonfly*) ARCH=freebsd ;;
  24554. *-*-netbsd*) ARCH=netbsd ;;
  24555. *-*-openbsd*) ARCH=openbsd ;;
  24556. *-*-sysv5*) ARCH=sysv5 ;;
  24557. *-*-solaris*) ARCH=solaris ;;
  24558. *-*-hpux*) ARCH=hpux ;;
  24559. *-*-aix*) ARCH=aix ;;
  24560. *-*-minix*) ARCH=minix ;;
  24561. *-*-nto*) ARCH=nto
  24562. CheckQNXVideo
  24563. ;;
  24564. esac
  24565. CheckVisibilityHidden
  24566. CheckWerror
  24567. CheckDeclarationAfterStatement
  24568. CheckDummyVideo
  24569. CheckOffscreenVideo
  24570. CheckDiskAudio
  24571. CheckDummyAudio
  24572. CheckDLOPEN
  24573. CheckARM
  24574. CheckNEON
  24575. CheckO_CLOEXEC
  24576. CheckOSS
  24577. CheckALSA
  24578. CheckPipewire
  24579. CheckPulseAudio
  24580. CheckJACK
  24581. CheckARTSC
  24582. CheckESD
  24583. CheckNAS
  24584. CheckSNDIO
  24585. CheckFusionSound
  24586. CheckLibSampleRate
  24587. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24588. CheckRPI
  24589. CheckX11
  24590. CheckDirectFB
  24591. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24592. CheckEGL
  24593. CheckKMSDRM
  24594. CheckGLX
  24595. CheckOpenGL
  24596. CheckOpenGLES
  24597. CheckVulkan
  24598. CheckWayland
  24599. CheckInputEvents
  24600. CheckLibUDev
  24601. CheckDBus
  24602. CheckIME
  24603. CheckInotify
  24604. CheckIBus
  24605. CheckFcitx
  24606. case $ARCH in
  24607. linux)
  24608. CheckInputKD
  24609. ;;
  24610. freebsd)
  24611. CheckInputKBIO
  24612. ;;
  24613. openbsd|netbsd)
  24614. CheckInputWSCONS
  24615. ;;
  24616. esac
  24617. CheckUSBHID
  24618. CheckHIDAPI
  24619. CheckPTHREAD
  24620. CheckClockGettime
  24621. CheckLinuxVersion
  24622. CheckRPATH
  24623. CheckVivanteVideo
  24624. # Set up files for the misc library
  24625. if test x$enable_misc = xyes; then
  24626. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24627. have_misc=yes
  24628. fi
  24629. # Set up files for the locale library
  24630. if test x$enable_locale = xyes; then
  24631. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24632. have_locale=yes
  24633. fi
  24634. # Set up files for the audio library
  24635. if test x$enable_audio = xyes; then
  24636. case $ARCH in
  24637. sysv5|solaris|hpux)
  24638. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24639. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24640. SUMMARY_audio="${SUMMARY_audio} sun"
  24641. have_audio=yes
  24642. ;;
  24643. netbsd) # Don't use this on OpenBSD, it's busted.
  24644. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24645. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24646. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24647. have_audio=yes
  24648. ;;
  24649. aix)
  24650. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24651. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24652. SUMMARY_audio="${SUMMARY_audio} paudio"
  24653. have_audio=yes
  24654. ;;
  24655. android)
  24656. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24657. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24658. SUMMARY_audio="${SUMMARY_audio} android"
  24659. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24660. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24661. SUMMARY_audio="${SUMMARY_audio} openslES"
  24662. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24663. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24664. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24665. have_audio=yes
  24666. ;;
  24667. nto)
  24668. CheckQNXAudio
  24669. ;;
  24670. esac
  24671. fi
  24672. # Set up files for the joystick library
  24673. if test x$enable_joystick = xyes; then
  24674. case $ARCH in
  24675. linux)
  24676. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24677. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24678. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24679. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24680. have_joystick=yes
  24681. fi
  24682. ;;
  24683. freebsd)
  24684. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24685. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24686. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24687. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24688. have_joystick=yes
  24689. fi
  24690. ;;
  24691. android)
  24692. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24693. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24694. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24695. have_joystick=yes
  24696. ;;
  24697. esac
  24698. fi
  24699. # Set up files for the haptic library
  24700. if test x$enable_haptic = xyes; then
  24701. case $ARCH in
  24702. linux|freebsd)
  24703. if test x$use_input_events = xyes; then
  24704. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24705. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24706. have_haptic=yes
  24707. fi
  24708. ;;
  24709. android)
  24710. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24711. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24712. have_haptic=yes
  24713. ;;
  24714. esac
  24715. fi
  24716. # Set up files for the sensor library
  24717. if test x$enable_sensor = xyes; then
  24718. case $ARCH in
  24719. android)
  24720. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24721. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24722. have_sensor=yes
  24723. ;;
  24724. esac
  24725. fi
  24726. # Set up files for the power library
  24727. if test x$enable_power = xyes; then
  24728. case $ARCH in
  24729. linux)
  24730. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24731. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24732. have_power=yes
  24733. ;;
  24734. android)
  24735. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24736. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24737. have_power=yes
  24738. ;;
  24739. esac
  24740. fi
  24741. # Set up files for the filesystem library
  24742. if test x$enable_filesystem = xyes; then
  24743. case $ARCH in
  24744. android)
  24745. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24746. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24747. have_filesystem=yes
  24748. ;;
  24749. *)
  24750. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24751. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24752. have_filesystem=yes
  24753. ;;
  24754. esac
  24755. fi
  24756. # Set up files for the timer library
  24757. if test x$enable_timers = xyes; then
  24758. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24759. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24760. have_timers=yes
  24761. fi
  24762. # Set up files for udev hotplugging support
  24763. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24764. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24765. fi
  24766. # Set up files for evdev input
  24767. if test x$use_input_events = xyes; then
  24768. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24769. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24770. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24771. fi
  24772. # Set up files for wscons input
  24773. if test x$use_input_wscons = xyes; then
  24774. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24775. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24776. fi
  24777. # Set up other core UNIX files
  24778. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24779. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24780. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24781. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24782. ;;
  24783. *-*-cygwin* | *-*-mingw*)
  24784. ARCH=win32
  24785. if test "$build" != "$host"; then # cross-compiling
  24786. # Default cross-compile location
  24787. ac_default_prefix=/usr/local/cross-tools/$host
  24788. else
  24789. # Look for the location of the tools and install there
  24790. if test "$BUILD_PREFIX" != ""; then
  24791. ac_default_prefix=$BUILD_PREFIX
  24792. fi
  24793. fi
  24794. if test x$enable_loadso = xyes; then
  24795. have_loadso=yes
  24796. fi
  24797. CheckGDwarf4
  24798. CheckWerror
  24799. CheckDeclarationAfterStatement
  24800. CheckDummyVideo
  24801. CheckOffscreenVideo
  24802. CheckDiskAudio
  24803. CheckDummyAudio
  24804. CheckWINDOWS
  24805. CheckWINDOWSGL
  24806. CheckWINDOWSGLES
  24807. CheckVulkan
  24808. CheckDIRECTX
  24809. CheckHIDAPI
  24810. # Set up the core platform files
  24811. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24812. # Set up files for the misc library
  24813. if test x$enable_misc = xyes; then
  24814. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24815. have_misc=yes
  24816. fi
  24817. # Use the Windows locale APIs.
  24818. if test x$enable_locale = xyes; then
  24819. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24820. have_locale=yes
  24821. fi
  24822. # Set up files for the video library
  24823. if test x$enable_video = xyes; then
  24824. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24825. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24826. have_video=yes
  24827. # Check whether --enable-render-d3d was given.
  24828. if test ${enable_render_d3d+y}
  24829. then :
  24830. enableval=$enable_render_d3d;
  24831. else $as_nop
  24832. enable_render_d3d=yes
  24833. fi
  24834. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24835. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24836. SUMMARY_video="${SUMMARY_video} d3d9"
  24837. fi
  24838. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24839. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24840. SUMMARY_video="${SUMMARY_video} d3d11"
  24841. fi
  24842. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24843. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24844. SUMMARY_video="${SUMMARY_video} d3d12"
  24845. fi
  24846. fi
  24847. # Set up files for the audio library
  24848. if test x$enable_audio = xyes; then
  24849. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24850. SUMMARY_audio="${SUMMARY_audio} winmm"
  24851. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24852. if test x$have_dsound = xyes; then
  24853. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24854. SUMMARY_audio="${SUMMARY_audio} directsound"
  24855. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24856. fi
  24857. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24858. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24859. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24860. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24861. fi
  24862. have_audio=yes
  24863. fi
  24864. # Set up files for the joystick library
  24865. if test x$enable_joystick = xyes; then
  24866. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24867. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24868. if test x$have_xinput = xyes; then
  24869. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24870. fi
  24871. if test x$have_wgi = xyes; then
  24872. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24873. fi
  24874. if test x$have_dinput = xyes; then
  24875. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24876. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24877. fi
  24878. fi
  24879. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24880. have_joystick=yes
  24881. fi
  24882. if test x$enable_haptic = xyes; then
  24883. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24884. if test x$have_xinput = xyes; then
  24885. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24886. fi
  24887. if test x$have_dinput = xyes; then
  24888. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24889. fi
  24890. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24891. have_haptic=yes
  24892. fi
  24893. fi
  24894. # Set up files for the sensor library
  24895. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24896. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24897. then :
  24898. have_winsensors=yes
  24899. else $as_nop
  24900. have_winsensors=no
  24901. fi
  24902. if test x$have_winsensors = xyes; then
  24903. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24904. fi
  24905. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24906. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24907. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24908. have_sensor=yes
  24909. fi
  24910. # Set up files for the power library
  24911. if test x$enable_power = xyes; then
  24912. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24913. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24914. have_power=yes
  24915. fi
  24916. # Set up files for the filesystem library
  24917. if test x$enable_filesystem = xyes; then
  24918. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24919. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24920. have_filesystem=yes
  24921. fi
  24922. # Set up files for the thread library
  24923. if test x$enable_threads = xyes; then
  24924. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24925. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24926. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24927. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24928. have_threads=yes
  24929. fi
  24930. # Set up files for the timer library
  24931. if test x$enable_timers = xyes; then
  24932. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24933. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24934. have_timers=yes
  24935. fi
  24936. # Set up files for the shared object loading library
  24937. if test x$enable_loadso = xyes; then
  24938. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24939. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24940. fi
  24941. # Set up the system libraries we need
  24942. if test -f /lib/w32api/libuuid.a; then
  24943. LIBUUID=/lib/w32api/libuuid.a
  24944. else
  24945. LIBUUID=-luuid
  24946. fi
  24947. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24948. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24949. # The Windows platform requires special setup
  24950. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24951. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24952. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24953. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24954. # Check to see if this is a mingw or cygwin build
  24955. have_mingw32=
  24956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24957. printf %s "checking for main in -lmingw32... " >&6; }
  24958. if test ${ac_cv_lib_mingw32_main+y}
  24959. then :
  24960. printf %s "(cached) " >&6
  24961. else $as_nop
  24962. ac_check_lib_save_LIBS=$LIBS
  24963. LIBS="-lmingw32 $LIBS"
  24964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24965. /* end confdefs.h. */
  24966. int
  24967. main (void)
  24968. {
  24969. return main ();
  24970. ;
  24971. return 0;
  24972. }
  24973. _ACEOF
  24974. if ac_fn_c_try_link "$LINENO"
  24975. then :
  24976. ac_cv_lib_mingw32_main=yes
  24977. else $as_nop
  24978. ac_cv_lib_mingw32_main=no
  24979. fi
  24980. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24981. conftest$ac_exeext conftest.$ac_ext
  24982. LIBS=$ac_check_lib_save_LIBS
  24983. fi
  24984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24985. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24986. if test "x$ac_cv_lib_mingw32_main" = xyes
  24987. then :
  24988. have_mingw32=yes
  24989. fi
  24990. if test x$have_mingw32 = xyes; then
  24991. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24992. else
  24993. SDL_LIBS="-lcygwin $SDL_LIBS"
  24994. fi
  24995. ;;
  24996. *-*-beos*)
  24997. as_fn_error $? "
  24998. *** BeOS support has been removed as of SDL 2.0.2.
  24999. " "$LINENO" 5
  25000. ;;
  25001. *-*-haiku*)
  25002. ARCH=haiku
  25003. ac_default_prefix=/boot/system
  25004. CheckDummyVideo
  25005. CheckOffscreenVideo
  25006. CheckDiskAudio
  25007. CheckDummyAudio
  25008. CheckDLOPEN
  25009. CheckO_CLOEXEC
  25010. CheckHaikuVideo
  25011. CheckHaikuGL
  25012. CheckPTHREAD
  25013. # Set up files for the audio library
  25014. if test x$enable_audio = xyes; then
  25015. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25016. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25017. SUMMARY_audio="${SUMMARY_audio} haiku"
  25018. have_audio=yes
  25019. fi
  25020. # Set up files for the joystick library
  25021. if test x$enable_joystick = xyes; then
  25022. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25023. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25024. have_joystick=yes
  25025. fi
  25026. # Set up files for the timer library
  25027. if test x$enable_timers = xyes; then
  25028. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25029. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25030. have_timers=yes
  25031. fi
  25032. # Set up files for the system power library
  25033. if test x$enable_power = xyes; then
  25034. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25035. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25036. have_power=yes
  25037. fi
  25038. # Set up files for the system filesystem library
  25039. if test x$enable_filesystem = xyes; then
  25040. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25041. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25042. have_filesystem=yes
  25043. fi
  25044. # Set up files for the misc library
  25045. if test x$enable_misc = xyes; then
  25046. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25047. have_misc=yes
  25048. fi
  25049. # Set up files for the locale library
  25050. if test x$enable_locale = xyes; then
  25051. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25052. have_locale=yes
  25053. fi
  25054. # The Haiku platform requires special setup.
  25055. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25056. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25057. ;;
  25058. *-ios-*)
  25059. ARCH=ios
  25060. CheckVisibilityHidden
  25061. CheckWerror
  25062. CheckNoErrorDeprecatedDeclarationsWerror
  25063. CheckDeclarationAfterStatement
  25064. CheckDummyVideo
  25065. CheckOffscreenVideo
  25066. CheckDiskAudio
  25067. CheckDummyAudio
  25068. CheckDLOPEN
  25069. CheckO_CLOEXEC
  25070. CheckMETAL
  25071. CheckVulkan
  25072. CheckPTHREAD
  25073. # Set up files for the misc library
  25074. if test x$enable_misc = xyes; then
  25075. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25076. have_misc=yes
  25077. fi
  25078. # Set up files for the locale library
  25079. if test x$enable_locale = xyes; then
  25080. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25081. have_locale=yes
  25082. fi
  25083. # Set up files for the audio library
  25084. if test x$enable_audio = xyes; then
  25085. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25086. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25087. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25088. have_audio=yes
  25089. fi
  25090. # Set up files for the joystick library
  25091. if test x$enable_joystick = xyes; then
  25092. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25093. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25094. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25095. have_joystick=yes
  25096. else
  25097. # Need this code for accelerometer as joystick support
  25098. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25099. fi
  25100. # Set up files for the haptic library
  25101. #if test x$enable_haptic = xyes; then
  25102. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25103. # have_haptic=yes
  25104. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25105. #fi
  25106. # Set up files for the sensor library
  25107. if test x$enable_sensor = xyes; then
  25108. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25109. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25110. have_sensor=yes
  25111. fi
  25112. # Set up files for the power library
  25113. if test x$enable_power = xyes; then
  25114. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25115. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25116. have_power=yes
  25117. fi
  25118. # Set up files for the filesystem library
  25119. if test x$enable_filesystem = xyes; then
  25120. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25121. have_filesystem=yes
  25122. fi
  25123. # Set up additional files for the file library
  25124. if test x$enable_file = xyes; then
  25125. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25126. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25127. fi
  25128. # Set up files for the timer library
  25129. if test x$enable_timers = xyes; then
  25130. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25131. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25132. have_timers=yes
  25133. fi
  25134. # Set up other core UNIX files
  25135. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25136. # The iOS platform requires special setup.
  25137. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25138. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25139. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25140. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25141. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25142. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25143. SUMMARY_video="${SUMMARY_video} uikit"
  25144. have_video=yes
  25145. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25146. if test x$enable_system_iconv = xyes; then
  25147. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25148. fi
  25149. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25150. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25151. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25152. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25153. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25154. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25155. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25156. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25157. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25158. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25159. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25160. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25161. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25162. fi
  25163. ;;
  25164. *-*-darwin* )
  25165. # This could be either full "Mac OS X", or plain "Darwin" which is
  25166. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25167. # Next line is broken, and a few files below require Mac OS X (full)
  25168. ARCH=macosx
  25169. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25170. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25171. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25172. CheckObjectiveCARC
  25173. CheckVisibilityHidden
  25174. CheckWerror
  25175. CheckNoErrorDeprecatedDeclarationsWerror
  25176. CheckDeclarationAfterStatement
  25177. CheckDummyVideo
  25178. CheckOffscreenVideo
  25179. CheckDiskAudio
  25180. CheckDummyAudio
  25181. CheckDLOPEN
  25182. CheckO_CLOEXEC
  25183. CheckCOCOA
  25184. CheckMETAL
  25185. CheckX11
  25186. CheckMacGL
  25187. CheckMacGLES
  25188. CheckGLX
  25189. CheckOpenGL
  25190. CheckVulkan
  25191. CheckPTHREAD
  25192. CheckHIDAPI
  25193. # Set up files for the misc library
  25194. if test x$enable_misc = xyes; then
  25195. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25196. have_misc=yes
  25197. fi
  25198. # Set up files for the locale library
  25199. if test x$enable_locale = xyes; then
  25200. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25201. have_locale=yes
  25202. fi
  25203. # Set up files for the audio library
  25204. if test x$enable_audio = xyes; then
  25205. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25206. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25207. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25208. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25209. have_audio=yes
  25210. fi
  25211. # Set up files for the joystick library
  25212. if test x$enable_joystick = xyes; then
  25213. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25214. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25215. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25216. CheckJoystickMFI
  25217. have_joystick=yes
  25218. fi
  25219. # Set up files for the haptic library
  25220. if test x$enable_haptic = xyes; then
  25221. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25222. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25223. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25224. have_haptic=yes
  25225. fi
  25226. # Set up files for the power library
  25227. if test x$enable_power = xyes; then
  25228. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25229. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25230. have_power=yes
  25231. fi
  25232. # Set up files for the filesystem library
  25233. if test x$enable_filesystem = xyes; then
  25234. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25235. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25236. have_filesystem=yes
  25237. fi
  25238. # Set up files for the timer library
  25239. if test x$enable_timers = xyes; then
  25240. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25241. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25242. have_timers=yes
  25243. fi
  25244. # Set up additional files for the file library
  25245. if test x$enable_file = xyes; then
  25246. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25247. fi
  25248. # Set up other core UNIX files
  25249. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25250. # The Mac OS X platform requires special setup.
  25251. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25252. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25253. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25254. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25255. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25256. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25257. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25258. fi
  25259. ;;
  25260. *-nacl|*-pnacl)
  25261. ARCH=nacl
  25262. CheckNativeClient
  25263. CheckDummyAudio
  25264. CheckDummyVideo
  25265. CheckOffscreenVideo
  25266. CheckInputEvents
  25267. CheckPTHREAD
  25268. CheckO_CLOEXEC
  25269. # Set up files for the timer library
  25270. if test x$enable_timers = xyes; then
  25271. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25272. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25273. have_timers=yes
  25274. fi
  25275. if test x$enable_filesystem = xyes; then
  25276. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25277. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25278. have_filesystem=yes
  25279. fi
  25280. ;;
  25281. *-*-emscripten* )
  25282. if test x$enable_video = xyes; then
  25283. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25284. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25285. have_video=yes
  25286. SUMMARY_video="${SUMMARY_video} emscripten"
  25287. fi
  25288. if test x$enable_audio = xyes; then
  25289. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25290. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25291. have_audio=yes
  25292. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25293. fi
  25294. CheckVisibilityHidden
  25295. CheckWerror
  25296. CheckDeclarationAfterStatement
  25297. CheckDummyVideo
  25298. CheckOffscreenVideo
  25299. CheckDiskAudio
  25300. CheckDummyAudio
  25301. CheckPTHREAD
  25302. CheckDLOPEN
  25303. CheckClockGettime
  25304. CheckEmscriptenGLES
  25305. # Set up files for the misc library
  25306. if test x$enable_misc = xyes; then
  25307. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25308. have_misc=yes
  25309. fi
  25310. # Set up files for the power library
  25311. if test x$enable_power = xyes; then
  25312. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25313. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25314. have_power=yes
  25315. fi
  25316. # Set up files for the joystick library
  25317. if test x$enable_joystick = xyes; then
  25318. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25319. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25320. have_joystick=yes
  25321. fi
  25322. # Set up files for the filesystem library
  25323. if test x$enable_filesystem = xyes; then
  25324. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25325. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25326. have_filesystem=yes
  25327. fi
  25328. # Set up files for the timer library
  25329. if test x$enable_timers = xyes; then
  25330. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25331. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25332. have_timers=yes
  25333. fi
  25334. # Set up files for the locale library
  25335. if test x$enable_locale = xyes; then
  25336. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25337. have_locale=yes
  25338. fi
  25339. ;;
  25340. *-*-riscos*)
  25341. ARCH=riscos
  25342. CheckVisibilityHidden
  25343. CheckWerror
  25344. CheckDeclarationAfterStatement
  25345. CheckDummyVideo
  25346. CheckOffscreenVideo
  25347. CheckDiskAudio
  25348. CheckDummyAudio
  25349. CheckDLOPEN
  25350. CheckO_CLOEXEC
  25351. CheckOSS
  25352. CheckPTHREAD
  25353. CheckClockGettime
  25354. # Set up files for the misc library
  25355. if test x$enable_misc = xyes; then
  25356. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25357. have_misc=yes
  25358. fi
  25359. # Set up files for the video library
  25360. if test x$enable_video = xyes; then
  25361. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25362. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25363. have_video=yes
  25364. SUMMARY_video="${SUMMARY_video} riscos"
  25365. fi
  25366. # Set up files for the filesystem library
  25367. if test x$enable_filesystem = xyes; then
  25368. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25369. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25370. have_filesystem=yes
  25371. fi
  25372. # Set up files for the timer library
  25373. if test x$enable_timers = xyes; then
  25374. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25375. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25376. have_timers=yes
  25377. fi
  25378. ;;
  25379. *-*-os2*)
  25380. ARCH=os2
  25381. if test "$build" != "$host"; then # cross-compiling
  25382. # Default cross-compile location
  25383. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25384. else
  25385. # Look for the location of the tools and install there
  25386. if test "$BUILD_PREFIX" != ""; then
  25387. ac_default_prefix=$BUILD_PREFIX
  25388. fi
  25389. fi
  25390. enable_static=no # disable static builds
  25391. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25392. CheckOS2
  25393. CheckWerror
  25394. CheckDeclarationAfterStatement
  25395. CheckDummyVideo
  25396. CheckDiskAudio
  25397. CheckDummyAudio
  25398. CheckHIDAPI
  25399. # Set up the core platform files
  25400. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25401. if test x$enable_system_iconv = xyes; then
  25402. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25403. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25404. fi
  25405. fi
  25406. # Use the Unix locale APIs.
  25407. if test x$enable_locale = xyes; then
  25408. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25409. have_locale=yes
  25410. fi
  25411. # Set up files for the video library
  25412. if test x$enable_video = xyes; then
  25413. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25414. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25415. have_video=yes
  25416. SUMMARY_video="${SUMMARY_video} os/2"
  25417. fi
  25418. # Set up files for the audio library
  25419. if test x$enable_audio = xyes; then
  25420. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25421. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25422. have_audio=yes
  25423. SUMMARY_audio="${SUMMARY_audio} os/2"
  25424. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25425. fi
  25426. # Set up files for the thread library
  25427. if test x$enable_threads = xyes; then
  25428. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25429. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25430. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25431. have_threads=yes
  25432. fi
  25433. # Set up files for the timer library
  25434. if test x$enable_timers = xyes; then
  25435. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25436. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25437. have_timers=yes
  25438. fi
  25439. # Set up files for the shared object loading library
  25440. if test x$enable_loadso = xyes; then
  25441. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25442. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25443. have_loadso=yes
  25444. fi
  25445. # Set up files for the filesystem library
  25446. if test x$enable_filesystem = xyes; then
  25447. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25448. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25449. have_filesystem=yes
  25450. fi
  25451. # Set up files for the joystick library
  25452. if test x$enable_joystick = xyes; then
  25453. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25454. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25455. have_joystick=yes
  25456. fi
  25457. ;;
  25458. *)
  25459. as_fn_error $? "
  25460. *** Unsupported host: Please add to configure.ac
  25461. " "$LINENO" 5
  25462. ;;
  25463. esac
  25464. CheckVirtualJoystick
  25465. # Check whether to install sdl2-config
  25466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25467. printf %s "checking whether to install sdl2-config... " >&6; }
  25468. # Check whether --enable-sdl2-config was given.
  25469. if test ${enable_sdl2_config+y}
  25470. then :
  25471. enableval=$enable_sdl2_config; case "${enableval}" in
  25472. yes) enable_sdl2_config="TRUE" ;;
  25473. no) enable_sdl2_config="FALSE" ;;
  25474. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25475. esac
  25476. else $as_nop
  25477. enable_sdl2_config="TRUE"
  25478. fi
  25479. if test "$enable_sdl2_config" = "TRUE"; then
  25480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25481. printf "%s\n" "yes" >&6; }
  25482. else
  25483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25484. printf "%s\n" "no" >&6; }
  25485. fi
  25486. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25487. # Check whether --enable-vendor-info was given.
  25488. if test ${enable_vendor_info+y}
  25489. then :
  25490. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25491. else $as_nop
  25492. enable_vendor_info=
  25493. fi
  25494. if test "$enable_vendor_info" = no
  25495. then :
  25496. enable_vendor_info=
  25497. fi
  25498. SDL_VENDOR_INFO=$enable_vendor_info
  25499. # Verify that we have all the platform specific files we need
  25500. if test x$have_audio != xyes; then
  25501. if test x$enable_audio = xyes; then
  25502. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25503. fi
  25504. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25505. fi
  25506. if test x$have_video != xyes; then
  25507. if test x$enable_video = xyes; then
  25508. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25509. fi
  25510. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25511. fi
  25512. if test x$have_misc != xyes; then
  25513. if test x$enable_misc = xyes; then
  25514. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25515. fi
  25516. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25517. fi
  25518. if test x$have_locale != xyes; then
  25519. if test x$enable_locale = xyes; then
  25520. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25521. fi
  25522. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25523. fi
  25524. if test x$have_joystick != xyes; then
  25525. if test x$enable_joystick = xyes; then
  25526. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25527. fi
  25528. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25529. fi
  25530. if test x$have_haptic != xyes; then
  25531. if test x$enable_haptic = xyes; then
  25532. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25533. fi
  25534. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25535. fi
  25536. if test x$have_sensor != xyes; then
  25537. if test x$enable_sensor = xyes; then
  25538. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25539. fi
  25540. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25541. fi
  25542. if test x$have_threads != xyes; then
  25543. if test x$enable_threads = xyes; then
  25544. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25545. fi
  25546. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25547. fi
  25548. if test x$have_timers != xyes; then
  25549. if test x$enable_timers = xyes; then
  25550. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25551. fi
  25552. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25553. fi
  25554. if test x$have_filesystem != xyes; then
  25555. if test x$enable_filesystem = xyes; then
  25556. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25557. fi
  25558. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25559. fi
  25560. if test x$have_loadso != xyes; then
  25561. if test x$enable_loadso = xyes; then
  25562. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25563. fi
  25564. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25565. fi
  25566. if test x$SDLMAIN_SOURCES = x; then
  25567. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25568. fi
  25569. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25570. if test x$video_wayland = xyes; then
  25571. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25572. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25573. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25574. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25575. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25576. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25577. echo ;\
  25578. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25579. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25580. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25581. echo ;\
  25582. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25583. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25584. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25585. echo ;\
  25586. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25587. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25588. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25589. done ;\
  25590. echo ;\
  25591. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25592. fi
  25593. OBJECTS=`echo $SOURCES`
  25594. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25595. for EXT in asm cc m c S; do
  25596. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25597. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25598. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25599. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25600. done
  25601. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25602. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25603. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25604. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25605. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25606. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25607. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25608. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25609. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25610. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25611. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25612. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25613. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25614. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25615. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25616. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25617. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25618. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25619. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25620. # Set runtime shared library paths as needed
  25621. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25622. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25623. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25625. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25626. have_enable_new_dtags=no
  25627. save_LDFLAGS="$LDFLAGS"
  25628. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25630. /* end confdefs.h. */
  25631. int
  25632. main (void)
  25633. {
  25634. ;
  25635. return 0;
  25636. }
  25637. _ACEOF
  25638. if ac_fn_c_try_link "$LINENO"
  25639. then :
  25640. have_enable_new_dtags=yes
  25641. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25642. fi
  25643. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25644. conftest$ac_exeext conftest.$ac_ext
  25645. LDFLAGS="$save_LDFLAGS"
  25646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25647. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25648. fi
  25649. if test $ARCH = solaris; then
  25650. SDL_RLD_FLAGS="-R\${libdir}"
  25651. fi
  25652. else
  25653. SDL_RLD_FLAGS=""
  25654. fi
  25655. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25656. pkg_cmakedir='$libdir/cmake/SDL2'
  25657. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25658. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25659. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25660. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25661. _lcl_receval="$_lcl_from"
  25662. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25663. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25664. _lcl_receval_old=''
  25665. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25666. _lcl_receval_old="$_lcl_receval"
  25667. eval _lcl_receval="\"$_lcl_receval\""
  25668. done
  25669. echo "$_lcl_receval")`
  25670. _lcl_receval="$_lcl_to"
  25671. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25672. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25673. _lcl_receval_old=''
  25674. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25675. _lcl_receval_old="$_lcl_receval"
  25676. eval _lcl_receval="\"$_lcl_receval\""
  25677. done
  25678. echo "$_lcl_receval")`
  25679. _lcl_notation="$_lcl_from$_lcl_to"
  25680. case ":$_lcl_from:" in
  25681. # change empty paths to '.'
  25682. ::) _lcl_from='.' ;;
  25683. # strip trailing slashes
  25684. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25685. :*:) ;;
  25686. esac
  25687. # squeeze repeated slashes
  25688. case '/' in
  25689. # if the path contains any backslashes, turn slashes into backslashes
  25690. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25691. # if the path contains slashes, also turn backslashes into slashes
  25692. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25693. esac
  25694. case ":$_lcl_to:" in
  25695. # change empty paths to '.'
  25696. ::) _lcl_to='.' ;;
  25697. # strip trailing slashes
  25698. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25699. :*:) ;;
  25700. esac
  25701. # squeeze repeated slashes
  25702. case '/' in
  25703. # if the path contains any backslashes, turn slashes into backslashes
  25704. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25705. # if the path contains slashes, also turn backslashes into slashes
  25706. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25707. esac
  25708. _lcl_common_prefix=''
  25709. _lcl_second_prefix_match=''
  25710. while test "$_lcl_second_prefix_match" != 0; do
  25711. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25712. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25713. if test "$_lcl_second_prefix_match" != 0; then
  25714. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25715. _lcl_common_prefix="$_lcl_first_prefix"
  25716. else
  25717. _lcl_second_prefix_match=0
  25718. fi
  25719. fi
  25720. done
  25721. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25722. _lcl_first_rel=''
  25723. _lcl_tmp='xxx'
  25724. while test "$_lcl_tmp" != ''; do
  25725. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25726. if test "$_lcl_first_suffix" != ''; then
  25727. _lcl_first_suffix="$_lcl_tmp"
  25728. _lcl_first_rel="../$_lcl_first_rel"
  25729. fi
  25730. done
  25731. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25732. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25733. case ":$_lcl_result_tmp:" in
  25734. # change empty paths to '.'
  25735. ::) _lcl_result_tmp='.' ;;
  25736. # strip trailing slashes
  25737. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25738. :*:) ;;
  25739. esac
  25740. # squeeze repeated slashes
  25741. case "$_lcl_notation" in
  25742. # if the path contains any backslashes, turn slashes into backslashes
  25743. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25744. # if the path contains slashes, also turn backslashes into slashes
  25745. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25746. esac
  25747. eval $_lcl_result_var='$_lcl_result_tmp'
  25748. done
  25749. PKGCONFIG_DEPENDS=""
  25750. if test x$enable_shared = xyes; then
  25751. PKGCONFIG_LIBS_PRIV="
  25752. Libs.private:"
  25753. ENABLE_SHARED_TRUE=
  25754. ENABLE_SHARED_FALSE="#"
  25755. else
  25756. PKGCONFIG_LIBS_PRIV=
  25757. ENABLE_SHARED_TRUE="#"
  25758. ENABLE_SHARED_FALSE=
  25759. fi
  25760. if test x$enable_static = xyes; then
  25761. ENABLE_STATIC_TRUE=
  25762. ENABLE_STATIC_FALSE="#"
  25763. else
  25764. ENABLE_STATIC_TRUE="#"
  25765. ENABLE_STATIC_FALSE=
  25766. fi
  25767. cat >Makefile.rules <<__EOF__
  25768. # Build rules for objects
  25769. -include \$(OBJECTS:.lo=.d)
  25770. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25771. $srcdir/src/SDL.c: update-revision
  25772. $DEPENDS
  25773. $VERSION_DEPENDS
  25774. $SDLMAIN_DEPENDS
  25775. $SDLTEST_DEPENDS
  25776. $WAYLAND_PROTOCOLS_DEPENDS
  25777. __EOF__
  25778. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25779. ac_config_commands="$ac_config_commands sdl2_config"
  25780. SUMMARY="SDL2 Configure Summary:\n"
  25781. if test x$enable_shared = xyes; then
  25782. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25783. fi
  25784. if test x$enable_static = xyes; then
  25785. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25786. fi
  25787. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25788. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25789. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25790. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25791. if test x$have_x = xyes; then
  25792. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25793. fi
  25794. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25795. if test x$have_joystick_virtual = xyes; then
  25796. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25797. else
  25798. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25799. fi
  25800. if test x$have_samplerate_h_hdr = xyes; then
  25801. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25802. else
  25803. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25804. fi
  25805. if test x$have_libudev_h_hdr = xyes; then
  25806. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25807. else
  25808. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25809. fi
  25810. if test x$have_dbus_dbus_h_hdr = xyes; then
  25811. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25812. else
  25813. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25814. fi
  25815. if test x$enable_ime = xyes; then
  25816. SUMMARY="${SUMMARY}Using ime : YES\n"
  25817. else
  25818. SUMMARY="${SUMMARY}Using ime : NO\n"
  25819. fi
  25820. if test x$have_ibus_ibus_h_hdr = xyes; then
  25821. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25822. else
  25823. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25824. fi
  25825. if test x$have_fcitx = xyes; then
  25826. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25827. else
  25828. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25829. fi
  25830. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25831. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25832. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25833. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25834. SUMMARY="${SUMMARY}configure script with:\n"
  25835. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25836. fi
  25837. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25838. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25839. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25840. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25841. SUMMARY="${SUMMARY}configure script with:\n"
  25842. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25843. fi
  25844. ac_config_commands="$ac_config_commands summary"
  25845. cat >confcache <<\_ACEOF
  25846. # This file is a shell script that caches the results of configure
  25847. # tests run on this system so they can be shared between configure
  25848. # scripts and configure runs, see configure's option --config-cache.
  25849. # It is not useful on other systems. If it contains results you don't
  25850. # want to keep, you may remove or edit it.
  25851. #
  25852. # config.status only pays attention to the cache file if you give it
  25853. # the --recheck option to rerun configure.
  25854. #
  25855. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25856. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25857. # following values.
  25858. _ACEOF
  25859. # The following way of writing the cache mishandles newlines in values,
  25860. # but we know of no workaround that is simple, portable, and efficient.
  25861. # So, we kill variables containing newlines.
  25862. # Ultrix sh set writes to stderr and can't be redirected directly,
  25863. # and sets the high bit in the cache file unless we assign to the vars.
  25864. (
  25865. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25866. eval ac_val=\$$ac_var
  25867. case $ac_val in #(
  25868. *${as_nl}*)
  25869. case $ac_var in #(
  25870. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25871. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25872. esac
  25873. case $ac_var in #(
  25874. _ | IFS | as_nl) ;; #(
  25875. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25876. *) { eval $ac_var=; unset $ac_var;} ;;
  25877. esac ;;
  25878. esac
  25879. done
  25880. (set) 2>&1 |
  25881. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25882. *${as_nl}ac_space=\ *)
  25883. # `set' does not quote correctly, so add quotes: double-quote
  25884. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25885. sed -n \
  25886. "s/'/'\\\\''/g;
  25887. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25888. ;; #(
  25889. *)
  25890. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25891. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25892. ;;
  25893. esac |
  25894. sort
  25895. ) |
  25896. sed '
  25897. /^ac_cv_env_/b end
  25898. t clear
  25899. :clear
  25900. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25901. t end
  25902. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25903. :end' >>confcache
  25904. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25905. if test -w "$cache_file"; then
  25906. if test "x$cache_file" != "x/dev/null"; then
  25907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25908. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25909. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25910. cat confcache >"$cache_file"
  25911. else
  25912. case $cache_file in #(
  25913. */* | ?:*)
  25914. mv -f confcache "$cache_file"$$ &&
  25915. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25916. *)
  25917. mv -f confcache "$cache_file" ;;
  25918. esac
  25919. fi
  25920. fi
  25921. else
  25922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25923. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25924. fi
  25925. fi
  25926. rm -f confcache
  25927. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25928. # Let make expand exec_prefix.
  25929. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25930. DEFS=-DHAVE_CONFIG_H
  25931. ac_libobjs=
  25932. ac_ltlibobjs=
  25933. U=
  25934. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25935. # 1. Remove the extension, and $U if already installed.
  25936. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25937. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25938. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25939. # will be set to the directory where LIBOBJS objects are built.
  25940. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25941. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25942. done
  25943. LIBOBJS=$ac_libobjs
  25944. LTLIBOBJS=$ac_ltlibobjs
  25945. : "${CONFIG_STATUS=./config.status}"
  25946. ac_write_fail=0
  25947. ac_clean_files_save=$ac_clean_files
  25948. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25950. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25951. as_write_fail=0
  25952. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25953. #! $SHELL
  25954. # Generated by $as_me.
  25955. # Run this file to recreate the current configuration.
  25956. # Compiler output produced by configure, useful for debugging
  25957. # configure, is in config.log if it exists.
  25958. debug=false
  25959. ac_cs_recheck=false
  25960. ac_cs_silent=false
  25961. SHELL=\${CONFIG_SHELL-$SHELL}
  25962. export SHELL
  25963. _ASEOF
  25964. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25965. ## -------------------- ##
  25966. ## M4sh Initialization. ##
  25967. ## -------------------- ##
  25968. # Be more Bourne compatible
  25969. DUALCASE=1; export DUALCASE # for MKS sh
  25970. as_nop=:
  25971. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25972. then :
  25973. emulate sh
  25974. NULLCMD=:
  25975. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25976. # is contrary to our usage. Disable this feature.
  25977. alias -g '${1+"$@"}'='"$@"'
  25978. setopt NO_GLOB_SUBST
  25979. else $as_nop
  25980. case `(set -o) 2>/dev/null` in #(
  25981. *posix*) :
  25982. set -o posix ;; #(
  25983. *) :
  25984. ;;
  25985. esac
  25986. fi
  25987. # Reset variables that may have inherited troublesome values from
  25988. # the environment.
  25989. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25990. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25991. # side effect of setting IFS to empty, thus disabling word splitting.)
  25992. # Quoting is to prevent editors from complaining about space-tab.
  25993. as_nl='
  25994. '
  25995. export as_nl
  25996. IFS=" "" $as_nl"
  25997. PS1='$ '
  25998. PS2='> '
  25999. PS4='+ '
  26000. # Ensure predictable behavior from utilities with locale-dependent output.
  26001. LC_ALL=C
  26002. export LC_ALL
  26003. LANGUAGE=C
  26004. export LANGUAGE
  26005. # We cannot yet rely on "unset" to work, but we need these variables
  26006. # to be unset--not just set to an empty or harmless value--now, to
  26007. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26008. # also avoids known problems related to "unset" and subshell syntax
  26009. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26010. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26011. do eval test \${$as_var+y} \
  26012. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26013. done
  26014. # Ensure that fds 0, 1, and 2 are open.
  26015. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26016. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26017. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26018. # The user is always right.
  26019. if ${PATH_SEPARATOR+false} :; then
  26020. PATH_SEPARATOR=:
  26021. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26022. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26023. PATH_SEPARATOR=';'
  26024. }
  26025. fi
  26026. # Find who we are. Look in the path if we contain no directory separator.
  26027. as_myself=
  26028. case $0 in #((
  26029. *[\\/]* ) as_myself=$0 ;;
  26030. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26031. for as_dir in $PATH
  26032. do
  26033. IFS=$as_save_IFS
  26034. case $as_dir in #(((
  26035. '') as_dir=./ ;;
  26036. */) ;;
  26037. *) as_dir=$as_dir/ ;;
  26038. esac
  26039. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26040. done
  26041. IFS=$as_save_IFS
  26042. ;;
  26043. esac
  26044. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26045. # in which case we are not to be found in the path.
  26046. if test "x$as_myself" = x; then
  26047. as_myself=$0
  26048. fi
  26049. if test ! -f "$as_myself"; then
  26050. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26051. exit 1
  26052. fi
  26053. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26054. # ----------------------------------------
  26055. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26056. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26057. # script with STATUS, using 1 if that was 0.
  26058. as_fn_error ()
  26059. {
  26060. as_status=$1; test $as_status -eq 0 && as_status=1
  26061. if test "$4"; then
  26062. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26063. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26064. fi
  26065. printf "%s\n" "$as_me: error: $2" >&2
  26066. as_fn_exit $as_status
  26067. } # as_fn_error
  26068. # as_fn_set_status STATUS
  26069. # -----------------------
  26070. # Set $? to STATUS, without forking.
  26071. as_fn_set_status ()
  26072. {
  26073. return $1
  26074. } # as_fn_set_status
  26075. # as_fn_exit STATUS
  26076. # -----------------
  26077. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26078. as_fn_exit ()
  26079. {
  26080. set +e
  26081. as_fn_set_status $1
  26082. exit $1
  26083. } # as_fn_exit
  26084. # as_fn_unset VAR
  26085. # ---------------
  26086. # Portably unset VAR.
  26087. as_fn_unset ()
  26088. {
  26089. { eval $1=; unset $1;}
  26090. }
  26091. as_unset=as_fn_unset
  26092. # as_fn_append VAR VALUE
  26093. # ----------------------
  26094. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26095. # advantage of any shell optimizations that allow amortized linear growth over
  26096. # repeated appends, instead of the typical quadratic growth present in naive
  26097. # implementations.
  26098. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26099. then :
  26100. eval 'as_fn_append ()
  26101. {
  26102. eval $1+=\$2
  26103. }'
  26104. else $as_nop
  26105. as_fn_append ()
  26106. {
  26107. eval $1=\$$1\$2
  26108. }
  26109. fi # as_fn_append
  26110. # as_fn_arith ARG...
  26111. # ------------------
  26112. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26113. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26114. # must be portable across $(()) and expr.
  26115. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26116. then :
  26117. eval 'as_fn_arith ()
  26118. {
  26119. as_val=$(( $* ))
  26120. }'
  26121. else $as_nop
  26122. as_fn_arith ()
  26123. {
  26124. as_val=`expr "$@" || test $? -eq 1`
  26125. }
  26126. fi # as_fn_arith
  26127. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26128. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26129. as_expr=expr
  26130. else
  26131. as_expr=false
  26132. fi
  26133. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26134. as_basename=basename
  26135. else
  26136. as_basename=false
  26137. fi
  26138. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26139. as_dirname=dirname
  26140. else
  26141. as_dirname=false
  26142. fi
  26143. as_me=`$as_basename -- "$0" ||
  26144. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26145. X"$0" : 'X\(//\)$' \| \
  26146. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26147. printf "%s\n" X/"$0" |
  26148. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26149. s//\1/
  26150. q
  26151. }
  26152. /^X\/\(\/\/\)$/{
  26153. s//\1/
  26154. q
  26155. }
  26156. /^X\/\(\/\).*/{
  26157. s//\1/
  26158. q
  26159. }
  26160. s/.*/./; q'`
  26161. # Avoid depending upon Character Ranges.
  26162. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26163. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26164. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26165. as_cr_digits='0123456789'
  26166. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26167. # Determine whether it's possible to make 'echo' print without a newline.
  26168. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26169. # for compatibility with existing Makefiles.
  26170. ECHO_C= ECHO_N= ECHO_T=
  26171. case `echo -n x` in #(((((
  26172. -n*)
  26173. case `echo 'xy\c'` in
  26174. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26175. xy) ECHO_C='\c';;
  26176. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26177. ECHO_T=' ';;
  26178. esac;;
  26179. *)
  26180. ECHO_N='-n';;
  26181. esac
  26182. # For backward compatibility with old third-party macros, we provide
  26183. # the shell variables $as_echo and $as_echo_n. New code should use
  26184. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26185. as_echo='printf %s\n'
  26186. as_echo_n='printf %s'
  26187. rm -f conf$$ conf$$.exe conf$$.file
  26188. if test -d conf$$.dir; then
  26189. rm -f conf$$.dir/conf$$.file
  26190. else
  26191. rm -f conf$$.dir
  26192. mkdir conf$$.dir 2>/dev/null
  26193. fi
  26194. if (echo >conf$$.file) 2>/dev/null; then
  26195. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26196. as_ln_s='ln -s'
  26197. # ... but there are two gotchas:
  26198. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26199. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26200. # In both cases, we have to default to `cp -pR'.
  26201. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26202. as_ln_s='cp -pR'
  26203. elif ln conf$$.file conf$$ 2>/dev/null; then
  26204. as_ln_s=ln
  26205. else
  26206. as_ln_s='cp -pR'
  26207. fi
  26208. else
  26209. as_ln_s='cp -pR'
  26210. fi
  26211. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26212. rmdir conf$$.dir 2>/dev/null
  26213. # as_fn_mkdir_p
  26214. # -------------
  26215. # Create "$as_dir" as a directory, including parents if necessary.
  26216. as_fn_mkdir_p ()
  26217. {
  26218. case $as_dir in #(
  26219. -*) as_dir=./$as_dir;;
  26220. esac
  26221. test -d "$as_dir" || eval $as_mkdir_p || {
  26222. as_dirs=
  26223. while :; do
  26224. case $as_dir in #(
  26225. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26226. *) as_qdir=$as_dir;;
  26227. esac
  26228. as_dirs="'$as_qdir' $as_dirs"
  26229. as_dir=`$as_dirname -- "$as_dir" ||
  26230. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26231. X"$as_dir" : 'X\(//\)[^/]' \| \
  26232. X"$as_dir" : 'X\(//\)$' \| \
  26233. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26234. printf "%s\n" X"$as_dir" |
  26235. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26236. s//\1/
  26237. q
  26238. }
  26239. /^X\(\/\/\)[^/].*/{
  26240. s//\1/
  26241. q
  26242. }
  26243. /^X\(\/\/\)$/{
  26244. s//\1/
  26245. q
  26246. }
  26247. /^X\(\/\).*/{
  26248. s//\1/
  26249. q
  26250. }
  26251. s/.*/./; q'`
  26252. test -d "$as_dir" && break
  26253. done
  26254. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26255. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26256. } # as_fn_mkdir_p
  26257. if mkdir -p . 2>/dev/null; then
  26258. as_mkdir_p='mkdir -p "$as_dir"'
  26259. else
  26260. test -d ./-p && rmdir ./-p
  26261. as_mkdir_p=false
  26262. fi
  26263. # as_fn_executable_p FILE
  26264. # -----------------------
  26265. # Test if FILE is an executable regular file.
  26266. as_fn_executable_p ()
  26267. {
  26268. test -f "$1" && test -x "$1"
  26269. } # as_fn_executable_p
  26270. as_test_x='test -x'
  26271. as_executable_p=as_fn_executable_p
  26272. # Sed expression to map a string onto a valid CPP name.
  26273. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26274. # Sed expression to map a string onto a valid variable name.
  26275. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26276. exec 6>&1
  26277. ## ----------------------------------- ##
  26278. ## Main body of $CONFIG_STATUS script. ##
  26279. ## ----------------------------------- ##
  26280. _ASEOF
  26281. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26282. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26283. # Save the log message, to keep $0 and so on meaningful, and to
  26284. # report actual input values of CONFIG_FILES etc. instead of their
  26285. # values after options handling.
  26286. ac_log="
  26287. This file was extended by $as_me, which was
  26288. generated by GNU Autoconf 2.71. Invocation command line was
  26289. CONFIG_FILES = $CONFIG_FILES
  26290. CONFIG_HEADERS = $CONFIG_HEADERS
  26291. CONFIG_LINKS = $CONFIG_LINKS
  26292. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26293. $ $0 $@
  26294. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26295. "
  26296. _ACEOF
  26297. case $ac_config_files in *"
  26298. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26299. esac
  26300. case $ac_config_headers in *"
  26301. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26302. esac
  26303. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26304. # Files that config.status was made for.
  26305. config_files="$ac_config_files"
  26306. config_headers="$ac_config_headers"
  26307. config_commands="$ac_config_commands"
  26308. _ACEOF
  26309. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26310. ac_cs_usage="\
  26311. \`$as_me' instantiates files and other configuration actions
  26312. from templates according to the current configuration. Unless the files
  26313. and actions are specified as TAGs, all are instantiated by default.
  26314. Usage: $0 [OPTION]... [TAG]...
  26315. -h, --help print this help, then exit
  26316. -V, --version print version number and configuration settings, then exit
  26317. --config print configuration, then exit
  26318. -q, --quiet, --silent
  26319. do not print progress messages
  26320. -d, --debug don't remove temporary files
  26321. --recheck update $as_me by reconfiguring in the same conditions
  26322. --file=FILE[:TEMPLATE]
  26323. instantiate the configuration file FILE
  26324. --header=FILE[:TEMPLATE]
  26325. instantiate the configuration header FILE
  26326. Configuration files:
  26327. $config_files
  26328. Configuration headers:
  26329. $config_headers
  26330. Configuration commands:
  26331. $config_commands
  26332. Report bugs to the package provider."
  26333. _ACEOF
  26334. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26335. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26336. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26337. ac_cs_config='$ac_cs_config_escaped'
  26338. ac_cs_version="\\
  26339. config.status
  26340. configured by $0, generated by GNU Autoconf 2.71,
  26341. with options \\"\$ac_cs_config\\"
  26342. Copyright (C) 2021 Free Software Foundation, Inc.
  26343. This config.status script is free software; the Free Software Foundation
  26344. gives unlimited permission to copy, distribute and modify it."
  26345. ac_pwd='$ac_pwd'
  26346. srcdir='$srcdir'
  26347. INSTALL='$INSTALL'
  26348. AWK='$AWK'
  26349. test -n "\$AWK" || AWK=awk
  26350. _ACEOF
  26351. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26352. # The default lists apply if the user does not specify any file.
  26353. ac_need_defaults=:
  26354. while test $# != 0
  26355. do
  26356. case $1 in
  26357. --*=?*)
  26358. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26359. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26360. ac_shift=:
  26361. ;;
  26362. --*=)
  26363. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26364. ac_optarg=
  26365. ac_shift=:
  26366. ;;
  26367. *)
  26368. ac_option=$1
  26369. ac_optarg=$2
  26370. ac_shift=shift
  26371. ;;
  26372. esac
  26373. case $ac_option in
  26374. # Handling of the options.
  26375. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26376. ac_cs_recheck=: ;;
  26377. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26378. printf "%s\n" "$ac_cs_version"; exit ;;
  26379. --config | --confi | --conf | --con | --co | --c )
  26380. printf "%s\n" "$ac_cs_config"; exit ;;
  26381. --debug | --debu | --deb | --de | --d | -d )
  26382. debug=: ;;
  26383. --file | --fil | --fi | --f )
  26384. $ac_shift
  26385. case $ac_optarg in
  26386. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26387. '') as_fn_error $? "missing file argument" ;;
  26388. esac
  26389. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26390. ac_need_defaults=false;;
  26391. --header | --heade | --head | --hea )
  26392. $ac_shift
  26393. case $ac_optarg in
  26394. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26395. esac
  26396. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26397. ac_need_defaults=false;;
  26398. --he | --h)
  26399. # Conflict between --help and --header
  26400. as_fn_error $? "ambiguous option: \`$1'
  26401. Try \`$0 --help' for more information.";;
  26402. --help | --hel | -h )
  26403. printf "%s\n" "$ac_cs_usage"; exit ;;
  26404. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26405. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26406. ac_cs_silent=: ;;
  26407. # This is an error.
  26408. -*) as_fn_error $? "unrecognized option: \`$1'
  26409. Try \`$0 --help' for more information." ;;
  26410. *) as_fn_append ac_config_targets " $1"
  26411. ac_need_defaults=false ;;
  26412. esac
  26413. shift
  26414. done
  26415. ac_configure_extra_args=
  26416. if $ac_cs_silent; then
  26417. exec 6>/dev/null
  26418. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26419. fi
  26420. _ACEOF
  26421. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26422. if \$ac_cs_recheck; then
  26423. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26424. shift
  26425. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26426. CONFIG_SHELL='$SHELL'
  26427. export CONFIG_SHELL
  26428. exec "\$@"
  26429. fi
  26430. _ACEOF
  26431. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26432. exec 5>>config.log
  26433. {
  26434. echo
  26435. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26436. ## Running $as_me. ##
  26437. _ASBOX
  26438. printf "%s\n" "$ac_log"
  26439. } >&5
  26440. _ACEOF
  26441. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26442. #
  26443. # INIT-COMMANDS
  26444. #
  26445. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26446. # if CDPATH is set.
  26447. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26448. sed_quote_subst='$sed_quote_subst'
  26449. double_quote_subst='$double_quote_subst'
  26450. delay_variable_subst='$delay_variable_subst'
  26451. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26452. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26453. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26454. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26455. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26456. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26457. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26458. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26459. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26460. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26461. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26462. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26463. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26464. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26465. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26466. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26467. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26468. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26469. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26470. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26471. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26472. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26473. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26474. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26475. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26476. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26477. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26478. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26479. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26480. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26481. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26482. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26483. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26484. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26485. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26486. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26487. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26488. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26489. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26490. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26491. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26492. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26493. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26494. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26495. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26496. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26497. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26498. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26499. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26500. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26501. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26502. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26503. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26504. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26505. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26506. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26507. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26508. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26509. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26510. 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"`'
  26511. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26512. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26513. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26514. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26515. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26516. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26517. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26518. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26519. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26520. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26521. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26522. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26523. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26524. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26525. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26526. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26527. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26528. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26529. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26530. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26531. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26532. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26533. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26534. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26535. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26536. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26537. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26538. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26539. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26540. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26541. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26542. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26543. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26544. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26545. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26546. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26547. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26548. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26549. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26550. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26551. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26552. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26553. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26554. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26555. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26556. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26557. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26558. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26559. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26560. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26561. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26562. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26563. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26564. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26565. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26566. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26567. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26568. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26569. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26570. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26571. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26572. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26573. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26574. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26575. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26576. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26577. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26578. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26579. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26580. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26581. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26582. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26583. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26584. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26585. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26586. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26587. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26588. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26589. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26590. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26591. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26592. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26593. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26594. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26595. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26596. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26597. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26598. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26599. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26600. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26601. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26602. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26603. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26604. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26605. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26606. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26607. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26608. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26609. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26610. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26611. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26612. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26613. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26614. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26615. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26616. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26617. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26618. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26619. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26620. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26621. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26622. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26623. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26624. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26625. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26626. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26627. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26628. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26629. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26630. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26631. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26632. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26633. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26634. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26635. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26636. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26637. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26638. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26639. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26640. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26641. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26642. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26643. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26644. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26645. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26646. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26647. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26648. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26649. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26650. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26651. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26652. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26653. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26654. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26655. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26656. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26657. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26658. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26659. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26660. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26661. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26662. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26663. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26664. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26665. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26666. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26667. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26668. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26669. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26670. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26671. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26672. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26673. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26674. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26675. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26676. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26677. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26678. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26679. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26680. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26681. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26682. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26683. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26684. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26685. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26686. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26687. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26688. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26689. LTCC='$LTCC'
  26690. LTCFLAGS='$LTCFLAGS'
  26691. compiler='$compiler_DEFAULT'
  26692. # A function that is used when there is no print builtin or printf.
  26693. func_fallback_echo ()
  26694. {
  26695. eval 'cat <<_LTECHO_EOF
  26696. \$1
  26697. _LTECHO_EOF'
  26698. }
  26699. # Quote evaled strings.
  26700. for var in AS \
  26701. DLLTOOL \
  26702. OBJDUMP \
  26703. SHELL \
  26704. ECHO \
  26705. PATH_SEPARATOR \
  26706. SED \
  26707. GREP \
  26708. EGREP \
  26709. FGREP \
  26710. LD \
  26711. NM \
  26712. LN_S \
  26713. lt_SP2NL \
  26714. lt_NL2SP \
  26715. reload_flag \
  26716. deplibs_check_method \
  26717. file_magic_cmd \
  26718. file_magic_glob \
  26719. want_nocaseglob \
  26720. sharedlib_from_linklib_cmd \
  26721. AR \
  26722. AR_FLAGS \
  26723. archiver_list_spec \
  26724. STRIP \
  26725. RANLIB \
  26726. CC \
  26727. CFLAGS \
  26728. compiler \
  26729. lt_cv_sys_global_symbol_pipe \
  26730. lt_cv_sys_global_symbol_to_cdecl \
  26731. lt_cv_sys_global_symbol_to_import \
  26732. lt_cv_sys_global_symbol_to_c_name_address \
  26733. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26734. lt_cv_nm_interface \
  26735. nm_file_list_spec \
  26736. lt_cv_truncate_bin \
  26737. lt_prog_compiler_no_builtin_flag \
  26738. lt_prog_compiler_pic \
  26739. lt_prog_compiler_wl \
  26740. lt_prog_compiler_static \
  26741. lt_cv_prog_compiler_c_o \
  26742. need_locks \
  26743. MANIFEST_TOOL \
  26744. DSYMUTIL \
  26745. NMEDIT \
  26746. LIPO \
  26747. OTOOL \
  26748. OTOOL64 \
  26749. shrext_cmds \
  26750. export_dynamic_flag_spec \
  26751. whole_archive_flag_spec \
  26752. compiler_needs_object \
  26753. with_gnu_ld \
  26754. allow_undefined_flag \
  26755. no_undefined_flag \
  26756. hardcode_libdir_flag_spec \
  26757. hardcode_libdir_separator \
  26758. exclude_expsyms \
  26759. include_expsyms \
  26760. file_list_spec \
  26761. variables_saved_for_relink \
  26762. libname_spec \
  26763. library_names_spec \
  26764. soname_spec \
  26765. install_override_mode \
  26766. finish_eval \
  26767. old_striplib \
  26768. striplib \
  26769. compiler_lib_search_dirs \
  26770. predep_objects \
  26771. postdep_objects \
  26772. predeps \
  26773. postdeps \
  26774. compiler_lib_search_path \
  26775. LD_RC \
  26776. LD_CXX \
  26777. reload_flag_RC \
  26778. reload_flag_CXX \
  26779. compiler_RC \
  26780. compiler_CXX \
  26781. lt_prog_compiler_no_builtin_flag_RC \
  26782. lt_prog_compiler_no_builtin_flag_CXX \
  26783. lt_prog_compiler_pic_RC \
  26784. lt_prog_compiler_pic_CXX \
  26785. lt_prog_compiler_wl_RC \
  26786. lt_prog_compiler_wl_CXX \
  26787. lt_prog_compiler_static_RC \
  26788. lt_prog_compiler_static_CXX \
  26789. lt_cv_prog_compiler_c_o_RC \
  26790. lt_cv_prog_compiler_c_o_CXX \
  26791. export_dynamic_flag_spec_RC \
  26792. export_dynamic_flag_spec_CXX \
  26793. whole_archive_flag_spec_RC \
  26794. whole_archive_flag_spec_CXX \
  26795. compiler_needs_object_RC \
  26796. compiler_needs_object_CXX \
  26797. with_gnu_ld_RC \
  26798. with_gnu_ld_CXX \
  26799. allow_undefined_flag_RC \
  26800. allow_undefined_flag_CXX \
  26801. no_undefined_flag_RC \
  26802. no_undefined_flag_CXX \
  26803. hardcode_libdir_flag_spec_RC \
  26804. hardcode_libdir_flag_spec_CXX \
  26805. hardcode_libdir_separator_RC \
  26806. hardcode_libdir_separator_CXX \
  26807. exclude_expsyms_RC \
  26808. exclude_expsyms_CXX \
  26809. include_expsyms_RC \
  26810. include_expsyms_CXX \
  26811. file_list_spec_RC \
  26812. file_list_spec_CXX \
  26813. compiler_lib_search_dirs_RC \
  26814. compiler_lib_search_dirs_CXX \
  26815. predep_objects_RC \
  26816. predep_objects_CXX \
  26817. postdep_objects_RC \
  26818. postdep_objects_CXX \
  26819. predeps_RC \
  26820. predeps_CXX \
  26821. postdeps_RC \
  26822. postdeps_CXX \
  26823. compiler_lib_search_path_RC \
  26824. compiler_lib_search_path_CXX; do
  26825. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26826. *[\\\\\\\`\\"\\\$]*)
  26827. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26828. ;;
  26829. *)
  26830. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26831. ;;
  26832. esac
  26833. done
  26834. # Double-quote double-evaled strings.
  26835. for var in reload_cmds \
  26836. old_postinstall_cmds \
  26837. old_postuninstall_cmds \
  26838. old_archive_cmds \
  26839. extract_expsyms_cmds \
  26840. old_archive_from_new_cmds \
  26841. old_archive_from_expsyms_cmds \
  26842. archive_cmds \
  26843. archive_expsym_cmds \
  26844. module_cmds \
  26845. module_expsym_cmds \
  26846. export_symbols_cmds \
  26847. prelink_cmds \
  26848. postlink_cmds \
  26849. postinstall_cmds \
  26850. postuninstall_cmds \
  26851. finish_cmds \
  26852. sys_lib_search_path_spec \
  26853. configure_time_dlsearch_path \
  26854. configure_time_lt_sys_library_path \
  26855. reload_cmds_RC \
  26856. reload_cmds_CXX \
  26857. old_archive_cmds_RC \
  26858. old_archive_cmds_CXX \
  26859. old_archive_from_new_cmds_RC \
  26860. old_archive_from_new_cmds_CXX \
  26861. old_archive_from_expsyms_cmds_RC \
  26862. old_archive_from_expsyms_cmds_CXX \
  26863. archive_cmds_RC \
  26864. archive_cmds_CXX \
  26865. archive_expsym_cmds_RC \
  26866. archive_expsym_cmds_CXX \
  26867. module_cmds_RC \
  26868. module_cmds_CXX \
  26869. module_expsym_cmds_RC \
  26870. module_expsym_cmds_CXX \
  26871. export_symbols_cmds_RC \
  26872. export_symbols_cmds_CXX \
  26873. prelink_cmds_RC \
  26874. prelink_cmds_CXX \
  26875. postlink_cmds_RC \
  26876. postlink_cmds_CXX; do
  26877. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26878. *[\\\\\\\`\\"\\\$]*)
  26879. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26880. ;;
  26881. *)
  26882. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26883. ;;
  26884. esac
  26885. done
  26886. ac_aux_dir='$ac_aux_dir'
  26887. # See if we are running on zsh, and set the options that allow our
  26888. # commands through without removal of \ escapes INIT.
  26889. if test -n "\${ZSH_VERSION+set}"; then
  26890. setopt NO_GLOB_SUBST
  26891. fi
  26892. PACKAGE='$PACKAGE'
  26893. VERSION='$VERSION'
  26894. RM='$RM'
  26895. ofile='$ofile'
  26896. SUMMARY="$SUMMARY"
  26897. _ACEOF
  26898. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26899. # Handling of arguments.
  26900. for ac_config_target in $ac_config_targets
  26901. do
  26902. case $ac_config_target in
  26903. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26904. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26905. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26906. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26907. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26908. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26909. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26910. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26911. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26912. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26913. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26914. esac
  26915. done
  26916. # If the user did not use the arguments to specify the items to instantiate,
  26917. # then the envvar interface is used. Set only those that are not.
  26918. # We use the long form for the default assignment because of an extremely
  26919. # bizarre bug on SunOS 4.1.3.
  26920. if $ac_need_defaults; then
  26921. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26922. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26923. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26924. fi
  26925. # Have a temporary directory for convenience. Make it in the build tree
  26926. # simply because there is no reason against having it here, and in addition,
  26927. # creating and moving files from /tmp can sometimes cause problems.
  26928. # Hook for its removal unless debugging.
  26929. # Note that there is a small window in which the directory will not be cleaned:
  26930. # after its creation but before its name has been assigned to `$tmp'.
  26931. $debug ||
  26932. {
  26933. tmp= ac_tmp=
  26934. trap 'exit_status=$?
  26935. : "${ac_tmp:=$tmp}"
  26936. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26937. ' 0
  26938. trap 'as_fn_exit 1' 1 2 13 15
  26939. }
  26940. # Create a (secure) tmp directory for tmp files.
  26941. {
  26942. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26943. test -d "$tmp"
  26944. } ||
  26945. {
  26946. tmp=./conf$$-$RANDOM
  26947. (umask 077 && mkdir "$tmp")
  26948. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26949. ac_tmp=$tmp
  26950. # Set up the scripts for CONFIG_FILES section.
  26951. # No need to generate them if there are no CONFIG_FILES.
  26952. # This happens for instance with `./config.status config.h'.
  26953. if test -n "$CONFIG_FILES"; then
  26954. ac_cr=`echo X | tr X '\015'`
  26955. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26956. # But we know of no other shell where ac_cr would be empty at this
  26957. # point, so we can use a bashism as a fallback.
  26958. if test "x$ac_cr" = x; then
  26959. eval ac_cr=\$\'\\r\'
  26960. fi
  26961. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26962. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26963. ac_cs_awk_cr='\\r'
  26964. else
  26965. ac_cs_awk_cr=$ac_cr
  26966. fi
  26967. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26968. _ACEOF
  26969. {
  26970. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26971. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26972. echo "_ACEOF"
  26973. } >conf$$subs.sh ||
  26974. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26975. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26976. ac_delim='%!_!# '
  26977. for ac_last_try in false false false false false :; do
  26978. . ./conf$$subs.sh ||
  26979. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26980. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26981. if test $ac_delim_n = $ac_delim_num; then
  26982. break
  26983. elif $ac_last_try; then
  26984. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26985. else
  26986. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26987. fi
  26988. done
  26989. rm -f conf$$subs.sh
  26990. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26991. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26992. _ACEOF
  26993. sed -n '
  26994. h
  26995. s/^/S["/; s/!.*/"]=/
  26996. p
  26997. g
  26998. s/^[^!]*!//
  26999. :repl
  27000. t repl
  27001. s/'"$ac_delim"'$//
  27002. t delim
  27003. :nl
  27004. h
  27005. s/\(.\{148\}\)..*/\1/
  27006. t more1
  27007. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27008. p
  27009. n
  27010. b repl
  27011. :more1
  27012. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27013. p
  27014. g
  27015. s/.\{148\}//
  27016. t nl
  27017. :delim
  27018. h
  27019. s/\(.\{148\}\)..*/\1/
  27020. t more2
  27021. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27022. p
  27023. b
  27024. :more2
  27025. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27026. p
  27027. g
  27028. s/.\{148\}//
  27029. t delim
  27030. ' <conf$$subs.awk | sed '
  27031. /^[^""]/{
  27032. N
  27033. s/\n//
  27034. }
  27035. ' >>$CONFIG_STATUS || ac_write_fail=1
  27036. rm -f conf$$subs.awk
  27037. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27038. _ACAWK
  27039. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27040. for (key in S) S_is_set[key] = 1
  27041. FS = ""
  27042. }
  27043. {
  27044. line = $ 0
  27045. nfields = split(line, field, "@")
  27046. substed = 0
  27047. len = length(field[1])
  27048. for (i = 2; i < nfields; i++) {
  27049. key = field[i]
  27050. keylen = length(key)
  27051. if (S_is_set[key]) {
  27052. value = S[key]
  27053. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27054. len += length(value) + length(field[++i])
  27055. substed = 1
  27056. } else
  27057. len += 1 + keylen
  27058. }
  27059. print line
  27060. }
  27061. _ACAWK
  27062. _ACEOF
  27063. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27064. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27065. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27066. else
  27067. cat
  27068. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27069. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27070. _ACEOF
  27071. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27072. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27073. # trailing colons and then remove the whole line if VPATH becomes empty
  27074. # (actually we leave an empty line to preserve line numbers).
  27075. if test "x$srcdir" = x.; then
  27076. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27077. h
  27078. s///
  27079. s/^/:/
  27080. s/[ ]*$/:/
  27081. s/:\$(srcdir):/:/g
  27082. s/:\${srcdir}:/:/g
  27083. s/:@srcdir@:/:/g
  27084. s/^:*//
  27085. s/:*$//
  27086. x
  27087. s/\(=[ ]*\).*/\1/
  27088. G
  27089. s/\n//
  27090. s/^[^=]*=[ ]*$//
  27091. }'
  27092. fi
  27093. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27094. fi # test -n "$CONFIG_FILES"
  27095. # Set up the scripts for CONFIG_HEADERS section.
  27096. # No need to generate them if there are no CONFIG_HEADERS.
  27097. # This happens for instance with `./config.status Makefile'.
  27098. if test -n "$CONFIG_HEADERS"; then
  27099. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27100. BEGIN {
  27101. _ACEOF
  27102. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27103. # here-document in config.status, that substitutes the proper values into
  27104. # config.h.in to produce config.h.
  27105. # Create a delimiter string that does not exist in confdefs.h, to ease
  27106. # handling of long lines.
  27107. ac_delim='%!_!# '
  27108. for ac_last_try in false false :; do
  27109. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27110. if test -z "$ac_tt"; then
  27111. break
  27112. elif $ac_last_try; then
  27113. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27114. else
  27115. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27116. fi
  27117. done
  27118. # For the awk script, D is an array of macro values keyed by name,
  27119. # likewise P contains macro parameters if any. Preserve backslash
  27120. # newline sequences.
  27121. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27122. sed -n '
  27123. s/.\{148\}/&'"$ac_delim"'/g
  27124. t rset
  27125. :rset
  27126. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27127. t def
  27128. d
  27129. :def
  27130. s/\\$//
  27131. t bsnl
  27132. s/["\\]/\\&/g
  27133. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27134. D["\1"]=" \3"/p
  27135. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27136. d
  27137. :bsnl
  27138. s/["\\]/\\&/g
  27139. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27140. D["\1"]=" \3\\\\\\n"\\/p
  27141. t cont
  27142. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27143. t cont
  27144. d
  27145. :cont
  27146. n
  27147. s/.\{148\}/&'"$ac_delim"'/g
  27148. t clear
  27149. :clear
  27150. s/\\$//
  27151. t bsnlc
  27152. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27153. d
  27154. :bsnlc
  27155. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27156. b cont
  27157. ' <confdefs.h | sed '
  27158. s/'"$ac_delim"'/"\\\
  27159. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27160. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27161. for (key in D) D_is_set[key] = 1
  27162. FS = ""
  27163. }
  27164. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27165. line = \$ 0
  27166. split(line, arg, " ")
  27167. if (arg[1] == "#") {
  27168. defundef = arg[2]
  27169. mac1 = arg[3]
  27170. } else {
  27171. defundef = substr(arg[1], 2)
  27172. mac1 = arg[2]
  27173. }
  27174. split(mac1, mac2, "(") #)
  27175. macro = mac2[1]
  27176. prefix = substr(line, 1, index(line, defundef) - 1)
  27177. if (D_is_set[macro]) {
  27178. # Preserve the white space surrounding the "#".
  27179. print prefix "define", macro P[macro] D[macro]
  27180. next
  27181. } else {
  27182. # Replace #undef with comments. This is necessary, for example,
  27183. # in the case of _POSIX_SOURCE, which is predefined and required
  27184. # on some systems where configure will not decide to define it.
  27185. if (defundef == "undef") {
  27186. print "/*", prefix defundef, macro, "*/"
  27187. next
  27188. }
  27189. }
  27190. }
  27191. { print }
  27192. _ACAWK
  27193. _ACEOF
  27194. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27195. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27196. fi # test -n "$CONFIG_HEADERS"
  27197. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27198. shift
  27199. for ac_tag
  27200. do
  27201. case $ac_tag in
  27202. :[FHLC]) ac_mode=$ac_tag; continue;;
  27203. esac
  27204. case $ac_mode$ac_tag in
  27205. :[FHL]*:*);;
  27206. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27207. :[FH]-) ac_tag=-:-;;
  27208. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27209. esac
  27210. ac_save_IFS=$IFS
  27211. IFS=:
  27212. set x $ac_tag
  27213. IFS=$ac_save_IFS
  27214. shift
  27215. ac_file=$1
  27216. shift
  27217. case $ac_mode in
  27218. :L) ac_source=$1;;
  27219. :[FH])
  27220. ac_file_inputs=
  27221. for ac_f
  27222. do
  27223. case $ac_f in
  27224. -) ac_f="$ac_tmp/stdin";;
  27225. *) # Look for the file first in the build tree, then in the source tree
  27226. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27227. # because $ac_f cannot contain `:'.
  27228. test -f "$ac_f" ||
  27229. case $ac_f in
  27230. [\\/$]*) false;;
  27231. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27232. esac ||
  27233. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27234. esac
  27235. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27236. as_fn_append ac_file_inputs " '$ac_f'"
  27237. done
  27238. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27239. # use $as_me), people would be surprised to read:
  27240. # /* config.h. Generated by config.status. */
  27241. configure_input='Generated from '`
  27242. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27243. `' by configure.'
  27244. if test x"$ac_file" != x-; then
  27245. configure_input="$ac_file. $configure_input"
  27246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27247. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27248. fi
  27249. # Neutralize special characters interpreted by sed in replacement strings.
  27250. case $configure_input in #(
  27251. *\&* | *\|* | *\\* )
  27252. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27253. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27254. *) ac_sed_conf_input=$configure_input;;
  27255. esac
  27256. case $ac_tag in
  27257. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27258. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27259. esac
  27260. ;;
  27261. esac
  27262. ac_dir=`$as_dirname -- "$ac_file" ||
  27263. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27264. X"$ac_file" : 'X\(//\)[^/]' \| \
  27265. X"$ac_file" : 'X\(//\)$' \| \
  27266. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27267. printf "%s\n" X"$ac_file" |
  27268. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27269. s//\1/
  27270. q
  27271. }
  27272. /^X\(\/\/\)[^/].*/{
  27273. s//\1/
  27274. q
  27275. }
  27276. /^X\(\/\/\)$/{
  27277. s//\1/
  27278. q
  27279. }
  27280. /^X\(\/\).*/{
  27281. s//\1/
  27282. q
  27283. }
  27284. s/.*/./; q'`
  27285. as_dir="$ac_dir"; as_fn_mkdir_p
  27286. ac_builddir=.
  27287. case "$ac_dir" in
  27288. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27289. *)
  27290. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27291. # A ".." for each directory in $ac_dir_suffix.
  27292. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27293. case $ac_top_builddir_sub in
  27294. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27295. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27296. esac ;;
  27297. esac
  27298. ac_abs_top_builddir=$ac_pwd
  27299. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27300. # for backward compatibility:
  27301. ac_top_builddir=$ac_top_build_prefix
  27302. case $srcdir in
  27303. .) # We are building in place.
  27304. ac_srcdir=.
  27305. ac_top_srcdir=$ac_top_builddir_sub
  27306. ac_abs_top_srcdir=$ac_pwd ;;
  27307. [\\/]* | ?:[\\/]* ) # Absolute name.
  27308. ac_srcdir=$srcdir$ac_dir_suffix;
  27309. ac_top_srcdir=$srcdir
  27310. ac_abs_top_srcdir=$srcdir ;;
  27311. *) # Relative name.
  27312. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27313. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27314. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27315. esac
  27316. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27317. case $ac_mode in
  27318. :F)
  27319. #
  27320. # CONFIG_FILE
  27321. #
  27322. case $INSTALL in
  27323. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27324. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27325. esac
  27326. _ACEOF
  27327. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27328. # If the template does not know about datarootdir, expand it.
  27329. # FIXME: This hack should be removed a few years after 2.60.
  27330. ac_datarootdir_hack=; ac_datarootdir_seen=
  27331. ac_sed_dataroot='
  27332. /datarootdir/ {
  27333. p
  27334. q
  27335. }
  27336. /@datadir@/p
  27337. /@docdir@/p
  27338. /@infodir@/p
  27339. /@localedir@/p
  27340. /@mandir@/p'
  27341. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27342. *datarootdir*) ac_datarootdir_seen=yes;;
  27343. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27345. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27346. _ACEOF
  27347. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27348. ac_datarootdir_hack='
  27349. s&@datadir@&$datadir&g
  27350. s&@docdir@&$docdir&g
  27351. s&@infodir@&$infodir&g
  27352. s&@localedir@&$localedir&g
  27353. s&@mandir@&$mandir&g
  27354. s&\\\${datarootdir}&$datarootdir&g' ;;
  27355. esac
  27356. _ACEOF
  27357. # Neutralize VPATH when `$srcdir' = `.'.
  27358. # Shell code in configure.ac might set extrasub.
  27359. # FIXME: do we really want to maintain this feature?
  27360. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27361. ac_sed_extra="$ac_vpsub
  27362. $extrasub
  27363. _ACEOF
  27364. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27365. :t
  27366. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27367. s|@configure_input@|$ac_sed_conf_input|;t t
  27368. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27369. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27370. s&@srcdir@&$ac_srcdir&;t t
  27371. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27372. s&@top_srcdir@&$ac_top_srcdir&;t t
  27373. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27374. s&@builddir@&$ac_builddir&;t t
  27375. s&@abs_builddir@&$ac_abs_builddir&;t t
  27376. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27377. s&@INSTALL@&$ac_INSTALL&;t t
  27378. $ac_datarootdir_hack
  27379. "
  27380. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27381. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27382. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27383. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27384. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27385. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27387. which seems to be undefined. Please make sure it is defined" >&5
  27388. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27389. which seems to be undefined. Please make sure it is defined" >&2;}
  27390. rm -f "$ac_tmp/stdin"
  27391. case $ac_file in
  27392. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27393. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27394. esac \
  27395. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27396. ;;
  27397. :H)
  27398. #
  27399. # CONFIG_HEADER
  27400. #
  27401. if test x"$ac_file" != x-; then
  27402. {
  27403. printf "%s\n" "/* $configure_input */" >&1 \
  27404. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27405. } >"$ac_tmp/config.h" \
  27406. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27407. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27409. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27410. else
  27411. rm -f "$ac_file"
  27412. mv "$ac_tmp/config.h" "$ac_file" \
  27413. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27414. fi
  27415. else
  27416. printf "%s\n" "/* $configure_input */" >&1 \
  27417. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27418. || as_fn_error $? "could not create -" "$LINENO" 5
  27419. fi
  27420. ;;
  27421. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27422. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27423. ;;
  27424. esac
  27425. case $ac_file$ac_mode in
  27426. "libtool":C)
  27427. # See if we are running on zsh, and set the options that allow our
  27428. # commands through without removal of \ escapes.
  27429. if test -n "${ZSH_VERSION+set}"; then
  27430. setopt NO_GLOB_SUBST
  27431. fi
  27432. cfgfile=${ofile}T
  27433. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27434. $RM "$cfgfile"
  27435. cat <<_LT_EOF >> "$cfgfile"
  27436. #! $SHELL
  27437. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27438. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27439. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27440. # Provide generalized library-building support services.
  27441. # Written by Gordon Matzigkeit, 1996
  27442. # Copyright (C) 2014 Free Software Foundation, Inc.
  27443. # This is free software; see the source for copying conditions. There is NO
  27444. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27445. # GNU Libtool is free software; you can redistribute it and/or modify
  27446. # it under the terms of the GNU General Public License as published by
  27447. # the Free Software Foundation; either version 2 of of the License, or
  27448. # (at your option) any later version.
  27449. #
  27450. # As a special exception to the GNU General Public License, if you
  27451. # distribute this file as part of a program or library that is built
  27452. # using GNU Libtool, you may include this file under the same
  27453. # distribution terms that you use for the rest of that program.
  27454. #
  27455. # GNU Libtool is distributed in the hope that it will be useful, but
  27456. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27457. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27458. # GNU General Public License for more details.
  27459. #
  27460. # You should have received a copy of the GNU General Public License
  27461. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27462. # The names of the tagged configurations supported by this script.
  27463. available_tags='RC CXX '
  27464. # Configured defaults for sys_lib_dlsearch_path munging.
  27465. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27466. # ### BEGIN LIBTOOL CONFIG
  27467. # Which release of libtool.m4 was used?
  27468. macro_version=$macro_version
  27469. macro_revision=$macro_revision
  27470. # Assembler program.
  27471. AS=$lt_AS
  27472. # DLL creation program.
  27473. DLLTOOL=$lt_DLLTOOL
  27474. # Object dumper program.
  27475. OBJDUMP=$lt_OBJDUMP
  27476. # Whether or not to build shared libraries.
  27477. build_libtool_libs=$enable_shared
  27478. # Whether or not to build static libraries.
  27479. build_old_libs=$enable_static
  27480. # What type of objects to build.
  27481. pic_mode=$pic_mode
  27482. # Whether or not to optimize for fast installation.
  27483. fast_install=$enable_fast_install
  27484. # Shared archive member basename,for filename based shared library versioning on AIX.
  27485. shared_archive_member_spec=$shared_archive_member_spec
  27486. # Shell to use when invoking shell scripts.
  27487. SHELL=$lt_SHELL
  27488. # An echo program that protects backslashes.
  27489. ECHO=$lt_ECHO
  27490. # The PATH separator for the build system.
  27491. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27492. # The host system.
  27493. host_alias=$host_alias
  27494. host=$host
  27495. host_os=$host_os
  27496. # The build system.
  27497. build_alias=$build_alias
  27498. build=$build
  27499. build_os=$build_os
  27500. # A sed program that does not truncate output.
  27501. SED=$lt_SED
  27502. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27503. Xsed="\$SED -e 1s/^X//"
  27504. # A grep program that handles long lines.
  27505. GREP=$lt_GREP
  27506. # An ERE matcher.
  27507. EGREP=$lt_EGREP
  27508. # A literal string matcher.
  27509. FGREP=$lt_FGREP
  27510. # A BSD- or MS-compatible name lister.
  27511. NM=$lt_NM
  27512. # Whether we need soft or hard links.
  27513. LN_S=$lt_LN_S
  27514. # What is the maximum length of a command?
  27515. max_cmd_len=$max_cmd_len
  27516. # Object file suffix (normally "o").
  27517. objext=$ac_objext
  27518. # Executable file suffix (normally "").
  27519. exeext=$exeext
  27520. # whether the shell understands "unset".
  27521. lt_unset=$lt_unset
  27522. # turn spaces into newlines.
  27523. SP2NL=$lt_lt_SP2NL
  27524. # turn newlines into spaces.
  27525. NL2SP=$lt_lt_NL2SP
  27526. # convert \$build file names to \$host format.
  27527. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27528. # convert \$build files to toolchain format.
  27529. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27530. # Method to check whether dependent libraries are shared objects.
  27531. deplibs_check_method=$lt_deplibs_check_method
  27532. # Command to use when deplibs_check_method = "file_magic".
  27533. file_magic_cmd=$lt_file_magic_cmd
  27534. # How to find potential files when deplibs_check_method = "file_magic".
  27535. file_magic_glob=$lt_file_magic_glob
  27536. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27537. want_nocaseglob=$lt_want_nocaseglob
  27538. # Command to associate shared and link libraries.
  27539. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27540. # The archiver.
  27541. AR=$lt_AR
  27542. # Flags to create an archive.
  27543. AR_FLAGS=$lt_AR_FLAGS
  27544. # How to feed a file listing to the archiver.
  27545. archiver_list_spec=$lt_archiver_list_spec
  27546. # A symbol stripping program.
  27547. STRIP=$lt_STRIP
  27548. # Commands used to install an old-style archive.
  27549. RANLIB=$lt_RANLIB
  27550. old_postinstall_cmds=$lt_old_postinstall_cmds
  27551. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27552. # Whether to use a lock for old archive extraction.
  27553. lock_old_archive_extraction=$lock_old_archive_extraction
  27554. # A C compiler.
  27555. LTCC=$lt_CC
  27556. # LTCC compiler flags.
  27557. LTCFLAGS=$lt_CFLAGS
  27558. # Take the output of nm and produce a listing of raw symbols and C names.
  27559. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27560. # Transform the output of nm in a proper C declaration.
  27561. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27562. # Transform the output of nm into a list of symbols to manually relocate.
  27563. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27564. # Transform the output of nm in a C name address pair.
  27565. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27566. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27567. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27568. # The name lister interface.
  27569. nm_interface=$lt_lt_cv_nm_interface
  27570. # Specify filename containing input files for \$NM.
  27571. nm_file_list_spec=$lt_nm_file_list_spec
  27572. # The root where to search for dependent libraries,and where our libraries should be installed.
  27573. lt_sysroot=$lt_sysroot
  27574. # Command to truncate a binary pipe.
  27575. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27576. # The name of the directory that contains temporary libtool files.
  27577. objdir=$objdir
  27578. # Used to examine libraries when file_magic_cmd begins with "file".
  27579. MAGIC_CMD=$MAGIC_CMD
  27580. # Must we lock files when doing compilation?
  27581. need_locks=$lt_need_locks
  27582. # Manifest tool.
  27583. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27584. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27585. DSYMUTIL=$lt_DSYMUTIL
  27586. # Tool to change global to local symbols on Mac OS X.
  27587. NMEDIT=$lt_NMEDIT
  27588. # Tool to manipulate fat objects and archives on Mac OS X.
  27589. LIPO=$lt_LIPO
  27590. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27591. OTOOL=$lt_OTOOL
  27592. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27593. OTOOL64=$lt_OTOOL64
  27594. # Old archive suffix (normally "a").
  27595. libext=$libext
  27596. # Shared library suffix (normally ".so").
  27597. shrext_cmds=$lt_shrext_cmds
  27598. # The commands to extract the exported symbol list from a shared archive.
  27599. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27600. # Variables whose values should be saved in libtool wrapper scripts and
  27601. # restored at link time.
  27602. variables_saved_for_relink=$lt_variables_saved_for_relink
  27603. # Do we need the "lib" prefix for modules?
  27604. need_lib_prefix=$need_lib_prefix
  27605. # Do we need a version for libraries?
  27606. need_version=$need_version
  27607. # Library versioning type.
  27608. version_type=$version_type
  27609. # Shared library runtime path variable.
  27610. runpath_var=$runpath_var
  27611. # Shared library path variable.
  27612. shlibpath_var=$shlibpath_var
  27613. # Is shlibpath searched before the hard-coded library search path?
  27614. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27615. # Format of library name prefix.
  27616. libname_spec=$lt_libname_spec
  27617. # List of archive names. First name is the real one, the rest are links.
  27618. # The last name is the one that the linker finds with -lNAME
  27619. library_names_spec=$lt_library_names_spec
  27620. # The coded name of the library, if different from the real name.
  27621. soname_spec=$lt_soname_spec
  27622. # Permission mode override for installation of shared libraries.
  27623. install_override_mode=$lt_install_override_mode
  27624. # Command to use after installation of a shared archive.
  27625. postinstall_cmds=$lt_postinstall_cmds
  27626. # Command to use after uninstallation of a shared archive.
  27627. postuninstall_cmds=$lt_postuninstall_cmds
  27628. # Commands used to finish a libtool library installation in a directory.
  27629. finish_cmds=$lt_finish_cmds
  27630. # As "finish_cmds", except a single script fragment to be evaled but
  27631. # not shown.
  27632. finish_eval=$lt_finish_eval
  27633. # Whether we should hardcode library paths into libraries.
  27634. hardcode_into_libs=$hardcode_into_libs
  27635. # Compile-time system search path for libraries.
  27636. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27637. # Detected run-time system search path for libraries.
  27638. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27639. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27640. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27641. # Whether dlopen is supported.
  27642. dlopen_support=$enable_dlopen
  27643. # Whether dlopen of programs is supported.
  27644. dlopen_self=$enable_dlopen_self
  27645. # Whether dlopen of statically linked programs is supported.
  27646. dlopen_self_static=$enable_dlopen_self_static
  27647. # Commands to strip libraries.
  27648. old_striplib=$lt_old_striplib
  27649. striplib=$lt_striplib
  27650. # The linker used to build libraries.
  27651. LD=$lt_LD
  27652. # How to create reloadable object files.
  27653. reload_flag=$lt_reload_flag
  27654. reload_cmds=$lt_reload_cmds
  27655. # Commands used to build an old-style archive.
  27656. old_archive_cmds=$lt_old_archive_cmds
  27657. # A language specific compiler.
  27658. CC=$lt_compiler
  27659. # Is the compiler the GNU compiler?
  27660. with_gcc=$GCC
  27661. # Compiler flag to turn off builtin functions.
  27662. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27663. # Additional compiler flags for building library objects.
  27664. pic_flag=$lt_lt_prog_compiler_pic
  27665. # How to pass a linker flag through the compiler.
  27666. wl=$lt_lt_prog_compiler_wl
  27667. # Compiler flag to prevent dynamic linking.
  27668. link_static_flag=$lt_lt_prog_compiler_static
  27669. # Does compiler simultaneously support -c and -o options?
  27670. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27671. # Whether or not to add -lc for building shared libraries.
  27672. build_libtool_need_lc=$archive_cmds_need_lc
  27673. # Whether or not to disallow shared libs when runtime libs are static.
  27674. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27675. # Compiler flag to allow reflexive dlopens.
  27676. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27677. # Compiler flag to generate shared objects directly from archives.
  27678. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27679. # Whether the compiler copes with passing no objects directly.
  27680. compiler_needs_object=$lt_compiler_needs_object
  27681. # Create an old-style archive from a shared archive.
  27682. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27683. # Create a temporary old-style archive to link instead of a shared archive.
  27684. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27685. # Commands used to build a shared archive.
  27686. archive_cmds=$lt_archive_cmds
  27687. archive_expsym_cmds=$lt_archive_expsym_cmds
  27688. # Commands used to build a loadable module if different from building
  27689. # a shared archive.
  27690. module_cmds=$lt_module_cmds
  27691. module_expsym_cmds=$lt_module_expsym_cmds
  27692. # Whether we are building with GNU ld or not.
  27693. with_gnu_ld=$lt_with_gnu_ld
  27694. # Flag that allows shared libraries with undefined symbols to be built.
  27695. allow_undefined_flag=$lt_allow_undefined_flag
  27696. # Flag that enforces no undefined symbols.
  27697. no_undefined_flag=$lt_no_undefined_flag
  27698. # Flag to hardcode \$libdir into a binary during linking.
  27699. # This must work even if \$libdir does not exist
  27700. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27701. # Whether we need a single "-rpath" flag with a separated argument.
  27702. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27703. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27704. # DIR into the resulting binary.
  27705. hardcode_direct=$hardcode_direct
  27706. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27707. # DIR into the resulting binary and the resulting library dependency is
  27708. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27709. # library is relocated.
  27710. hardcode_direct_absolute=$hardcode_direct_absolute
  27711. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27712. # into the resulting binary.
  27713. hardcode_minus_L=$hardcode_minus_L
  27714. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27715. # into the resulting binary.
  27716. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27717. # Set to "yes" if building a shared library automatically hardcodes DIR
  27718. # into the library and all subsequent libraries and executables linked
  27719. # against it.
  27720. hardcode_automatic=$hardcode_automatic
  27721. # Set to yes if linker adds runtime paths of dependent libraries
  27722. # to runtime path list.
  27723. inherit_rpath=$inherit_rpath
  27724. # Whether libtool must link a program against all its dependency libraries.
  27725. link_all_deplibs=$link_all_deplibs
  27726. # Set to "yes" if exported symbols are required.
  27727. always_export_symbols=$always_export_symbols
  27728. # The commands to list exported symbols.
  27729. export_symbols_cmds=$lt_export_symbols_cmds
  27730. # Symbols that should not be listed in the preloaded symbols.
  27731. exclude_expsyms=$lt_exclude_expsyms
  27732. # Symbols that must always be exported.
  27733. include_expsyms=$lt_include_expsyms
  27734. # Commands necessary for linking programs (against libraries) with templates.
  27735. prelink_cmds=$lt_prelink_cmds
  27736. # Commands necessary for finishing linking programs.
  27737. postlink_cmds=$lt_postlink_cmds
  27738. # Specify filename containing input files.
  27739. file_list_spec=$lt_file_list_spec
  27740. # How to hardcode a shared library path into an executable.
  27741. hardcode_action=$hardcode_action
  27742. # The directories searched by this compiler when creating a shared library.
  27743. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27744. # Dependencies to place before and after the objects being linked to
  27745. # create a shared library.
  27746. predep_objects=$lt_predep_objects
  27747. postdep_objects=$lt_postdep_objects
  27748. predeps=$lt_predeps
  27749. postdeps=$lt_postdeps
  27750. # The library search path used internally by the compiler when linking
  27751. # a shared library.
  27752. compiler_lib_search_path=$lt_compiler_lib_search_path
  27753. # ### END LIBTOOL CONFIG
  27754. _LT_EOF
  27755. cat <<'_LT_EOF' >> "$cfgfile"
  27756. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27757. # func_munge_path_list VARIABLE PATH
  27758. # -----------------------------------
  27759. # VARIABLE is name of variable containing _space_ separated list of
  27760. # directories to be munged by the contents of PATH, which is string
  27761. # having a format:
  27762. # "DIR[:DIR]:"
  27763. # string "DIR[ DIR]" will be prepended to VARIABLE
  27764. # ":DIR[:DIR]"
  27765. # string "DIR[ DIR]" will be appended to VARIABLE
  27766. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27767. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27768. # "DIRA[ DIRA]" will be appended to VARIABLE
  27769. # "DIR[:DIR]"
  27770. # VARIABLE will be replaced by "DIR[ DIR]"
  27771. func_munge_path_list ()
  27772. {
  27773. case x$2 in
  27774. x)
  27775. ;;
  27776. *:)
  27777. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27778. ;;
  27779. x:*)
  27780. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27781. ;;
  27782. *::*)
  27783. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27784. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27785. ;;
  27786. *)
  27787. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27788. ;;
  27789. esac
  27790. }
  27791. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27792. func_cc_basename ()
  27793. {
  27794. for cc_temp in $*""; do
  27795. case $cc_temp in
  27796. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27797. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27798. \-*) ;;
  27799. *) break;;
  27800. esac
  27801. done
  27802. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27803. }
  27804. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27805. _LT_EOF
  27806. case $host_os in
  27807. aix3*)
  27808. cat <<\_LT_EOF >> "$cfgfile"
  27809. # AIX sometimes has problems with the GCC collect2 program. For some
  27810. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27811. # vanish in a puff of smoke.
  27812. if test set != "${COLLECT_NAMES+set}"; then
  27813. COLLECT_NAMES=
  27814. export COLLECT_NAMES
  27815. fi
  27816. _LT_EOF
  27817. ;;
  27818. esac
  27819. ltmain=$ac_aux_dir/ltmain.sh
  27820. # We use sed instead of cat because bash on DJGPP gets confused if
  27821. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27822. # text mode, it properly converts lines to CR/LF. This bash problem
  27823. # is reportedly fixed, but why not run on old versions too?
  27824. sed '$q' "$ltmain" >> "$cfgfile" \
  27825. || (rm -f "$cfgfile"; exit 1)
  27826. mv -f "$cfgfile" "$ofile" ||
  27827. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27828. chmod +x "$ofile"
  27829. cat <<_LT_EOF >> "$ofile"
  27830. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27831. # The linker used to build libraries.
  27832. LD=$lt_LD_RC
  27833. # How to create reloadable object files.
  27834. reload_flag=$lt_reload_flag_RC
  27835. reload_cmds=$lt_reload_cmds_RC
  27836. # Commands used to build an old-style archive.
  27837. old_archive_cmds=$lt_old_archive_cmds_RC
  27838. # A language specific compiler.
  27839. CC=$lt_compiler_RC
  27840. # Is the compiler the GNU compiler?
  27841. with_gcc=$GCC_RC
  27842. # Compiler flag to turn off builtin functions.
  27843. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27844. # Additional compiler flags for building library objects.
  27845. pic_flag=$lt_lt_prog_compiler_pic_RC
  27846. # How to pass a linker flag through the compiler.
  27847. wl=$lt_lt_prog_compiler_wl_RC
  27848. # Compiler flag to prevent dynamic linking.
  27849. link_static_flag=$lt_lt_prog_compiler_static_RC
  27850. # Does compiler simultaneously support -c and -o options?
  27851. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27852. # Whether or not to add -lc for building shared libraries.
  27853. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27854. # Whether or not to disallow shared libs when runtime libs are static.
  27855. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27856. # Compiler flag to allow reflexive dlopens.
  27857. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27858. # Compiler flag to generate shared objects directly from archives.
  27859. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27860. # Whether the compiler copes with passing no objects directly.
  27861. compiler_needs_object=$lt_compiler_needs_object_RC
  27862. # Create an old-style archive from a shared archive.
  27863. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27864. # Create a temporary old-style archive to link instead of a shared archive.
  27865. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27866. # Commands used to build a shared archive.
  27867. archive_cmds=$lt_archive_cmds_RC
  27868. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27869. # Commands used to build a loadable module if different from building
  27870. # a shared archive.
  27871. module_cmds=$lt_module_cmds_RC
  27872. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27873. # Whether we are building with GNU ld or not.
  27874. with_gnu_ld=$lt_with_gnu_ld_RC
  27875. # Flag that allows shared libraries with undefined symbols to be built.
  27876. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27877. # Flag that enforces no undefined symbols.
  27878. no_undefined_flag=$lt_no_undefined_flag_RC
  27879. # Flag to hardcode \$libdir into a binary during linking.
  27880. # This must work even if \$libdir does not exist
  27881. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27882. # Whether we need a single "-rpath" flag with a separated argument.
  27883. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27884. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27885. # DIR into the resulting binary.
  27886. hardcode_direct=$hardcode_direct_RC
  27887. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27888. # DIR into the resulting binary and the resulting library dependency is
  27889. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27890. # library is relocated.
  27891. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27892. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27893. # into the resulting binary.
  27894. hardcode_minus_L=$hardcode_minus_L_RC
  27895. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27896. # into the resulting binary.
  27897. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27898. # Set to "yes" if building a shared library automatically hardcodes DIR
  27899. # into the library and all subsequent libraries and executables linked
  27900. # against it.
  27901. hardcode_automatic=$hardcode_automatic_RC
  27902. # Set to yes if linker adds runtime paths of dependent libraries
  27903. # to runtime path list.
  27904. inherit_rpath=$inherit_rpath_RC
  27905. # Whether libtool must link a program against all its dependency libraries.
  27906. link_all_deplibs=$link_all_deplibs_RC
  27907. # Set to "yes" if exported symbols are required.
  27908. always_export_symbols=$always_export_symbols_RC
  27909. # The commands to list exported symbols.
  27910. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27911. # Symbols that should not be listed in the preloaded symbols.
  27912. exclude_expsyms=$lt_exclude_expsyms_RC
  27913. # Symbols that must always be exported.
  27914. include_expsyms=$lt_include_expsyms_RC
  27915. # Commands necessary for linking programs (against libraries) with templates.
  27916. prelink_cmds=$lt_prelink_cmds_RC
  27917. # Commands necessary for finishing linking programs.
  27918. postlink_cmds=$lt_postlink_cmds_RC
  27919. # Specify filename containing input files.
  27920. file_list_spec=$lt_file_list_spec_RC
  27921. # How to hardcode a shared library path into an executable.
  27922. hardcode_action=$hardcode_action_RC
  27923. # The directories searched by this compiler when creating a shared library.
  27924. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27925. # Dependencies to place before and after the objects being linked to
  27926. # create a shared library.
  27927. predep_objects=$lt_predep_objects_RC
  27928. postdep_objects=$lt_postdep_objects_RC
  27929. predeps=$lt_predeps_RC
  27930. postdeps=$lt_postdeps_RC
  27931. # The library search path used internally by the compiler when linking
  27932. # a shared library.
  27933. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27934. # ### END LIBTOOL TAG CONFIG: RC
  27935. _LT_EOF
  27936. cat <<_LT_EOF >> "$ofile"
  27937. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27938. # The linker used to build libraries.
  27939. LD=$lt_LD_CXX
  27940. # How to create reloadable object files.
  27941. reload_flag=$lt_reload_flag_CXX
  27942. reload_cmds=$lt_reload_cmds_CXX
  27943. # Commands used to build an old-style archive.
  27944. old_archive_cmds=$lt_old_archive_cmds_CXX
  27945. # A language specific compiler.
  27946. CC=$lt_compiler_CXX
  27947. # Is the compiler the GNU compiler?
  27948. with_gcc=$GCC_CXX
  27949. # Compiler flag to turn off builtin functions.
  27950. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27951. # Additional compiler flags for building library objects.
  27952. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27953. # How to pass a linker flag through the compiler.
  27954. wl=$lt_lt_prog_compiler_wl_CXX
  27955. # Compiler flag to prevent dynamic linking.
  27956. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27957. # Does compiler simultaneously support -c and -o options?
  27958. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27959. # Whether or not to add -lc for building shared libraries.
  27960. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27961. # Whether or not to disallow shared libs when runtime libs are static.
  27962. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27963. # Compiler flag to allow reflexive dlopens.
  27964. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27965. # Compiler flag to generate shared objects directly from archives.
  27966. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27967. # Whether the compiler copes with passing no objects directly.
  27968. compiler_needs_object=$lt_compiler_needs_object_CXX
  27969. # Create an old-style archive from a shared archive.
  27970. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27971. # Create a temporary old-style archive to link instead of a shared archive.
  27972. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27973. # Commands used to build a shared archive.
  27974. archive_cmds=$lt_archive_cmds_CXX
  27975. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27976. # Commands used to build a loadable module if different from building
  27977. # a shared archive.
  27978. module_cmds=$lt_module_cmds_CXX
  27979. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27980. # Whether we are building with GNU ld or not.
  27981. with_gnu_ld=$lt_with_gnu_ld_CXX
  27982. # Flag that allows shared libraries with undefined symbols to be built.
  27983. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27984. # Flag that enforces no undefined symbols.
  27985. no_undefined_flag=$lt_no_undefined_flag_CXX
  27986. # Flag to hardcode \$libdir into a binary during linking.
  27987. # This must work even if \$libdir does not exist
  27988. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27989. # Whether we need a single "-rpath" flag with a separated argument.
  27990. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27991. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27992. # DIR into the resulting binary.
  27993. hardcode_direct=$hardcode_direct_CXX
  27994. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27995. # DIR into the resulting binary and the resulting library dependency is
  27996. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27997. # library is relocated.
  27998. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27999. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28000. # into the resulting binary.
  28001. hardcode_minus_L=$hardcode_minus_L_CXX
  28002. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28003. # into the resulting binary.
  28004. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28005. # Set to "yes" if building a shared library automatically hardcodes DIR
  28006. # into the library and all subsequent libraries and executables linked
  28007. # against it.
  28008. hardcode_automatic=$hardcode_automatic_CXX
  28009. # Set to yes if linker adds runtime paths of dependent libraries
  28010. # to runtime path list.
  28011. inherit_rpath=$inherit_rpath_CXX
  28012. # Whether libtool must link a program against all its dependency libraries.
  28013. link_all_deplibs=$link_all_deplibs_CXX
  28014. # Set to "yes" if exported symbols are required.
  28015. always_export_symbols=$always_export_symbols_CXX
  28016. # The commands to list exported symbols.
  28017. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28018. # Symbols that should not be listed in the preloaded symbols.
  28019. exclude_expsyms=$lt_exclude_expsyms_CXX
  28020. # Symbols that must always be exported.
  28021. include_expsyms=$lt_include_expsyms_CXX
  28022. # Commands necessary for linking programs (against libraries) with templates.
  28023. prelink_cmds=$lt_prelink_cmds_CXX
  28024. # Commands necessary for finishing linking programs.
  28025. postlink_cmds=$lt_postlink_cmds_CXX
  28026. # Specify filename containing input files.
  28027. file_list_spec=$lt_file_list_spec_CXX
  28028. # How to hardcode a shared library path into an executable.
  28029. hardcode_action=$hardcode_action_CXX
  28030. # The directories searched by this compiler when creating a shared library.
  28031. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28032. # Dependencies to place before and after the objects being linked to
  28033. # create a shared library.
  28034. predep_objects=$lt_predep_objects_CXX
  28035. postdep_objects=$lt_postdep_objects_CXX
  28036. predeps=$lt_predeps_CXX
  28037. postdeps=$lt_postdeps_CXX
  28038. # The library search path used internally by the compiler when linking
  28039. # a shared library.
  28040. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28041. # ### END LIBTOOL TAG CONFIG: CXX
  28042. _LT_EOF
  28043. ;;
  28044. "sdl2_config":C) chmod a+x sdl2-config ;;
  28045. "summary":C) printf "$SUMMARY" ;;
  28046. esac
  28047. done # for ac_tag
  28048. as_fn_exit 0
  28049. _ACEOF
  28050. ac_clean_files=$ac_clean_files_save
  28051. test $ac_write_fail = 0 ||
  28052. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28053. # configure is writing to config.log, and then calls config.status.
  28054. # config.status does its own redirection, appending to config.log.
  28055. # Unfortunately, on DOS this fails, as config.log is still kept open
  28056. # by configure, so config.status won't be able to write to it; its
  28057. # output is simply discarded. So we exec the FD to /dev/null,
  28058. # effectively closing config.log, so it can be properly (re)opened and
  28059. # appended to by config.status. When coming back to configure, we
  28060. # need to make the FD available again.
  28061. if test "$no_create" != yes; then
  28062. ac_cs_success=:
  28063. ac_config_status_args=
  28064. test "$silent" = yes &&
  28065. ac_config_status_args="$ac_config_status_args --quiet"
  28066. exec 5>/dev/null
  28067. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28068. exec 5>>config.log
  28069. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28070. # would make configure fail if this is the last instruction.
  28071. $ac_cs_success || as_fn_exit 1
  28072. fi
  28073. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28075. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28076. fi