configure 948 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. SDL_RLD_FLAGS
  621. SDL_STATIC_LIBS
  622. SDL_LIBS
  623. SDL_CFLAGS
  624. bin_prefix_relpath
  625. cmake_prefix_relpath
  626. INSTALL_SDL2_CONFIG
  627. LIBUSB_LIBS
  628. LIBUSB_CFLAGS
  629. IBUS_LIBS
  630. IBUS_CFLAGS
  631. DBUS_LIBS
  632. DBUS_CFLAGS
  633. LIBGBM_LIBS
  634. LIBGBM_CFLAGS
  635. LIBDRM_LIBS
  636. LIBDRM_CFLAGS
  637. DIRECTFB_LIBS
  638. DIRECTFB_CFLAGS
  639. X_EXTRA_LIBS
  640. X_LIBS
  641. X_PRE_LIBS
  642. X_CFLAGS
  643. XMKMF
  644. RPI_LIBS
  645. RPI_CFLAGS
  646. DECOR_LIBS
  647. DECOR_CFLAGS
  648. FUSIONSOUND_LIBS
  649. FUSIONSOUND_CFLAGS
  650. ARTSCONFIG
  651. PULSEAUDIO_LIBS
  652. PULSEAUDIO_CFLAGS
  653. PIPEWIRE_LIBS
  654. PIPEWIRE_CFLAGS
  655. ESD_LIBS
  656. ESD_CFLAGS
  657. ESD_CONFIG
  658. JACK_LIBS
  659. JACK_CFLAGS
  660. ALSA_LIBS
  661. ALSA_CFLAGS
  662. ALLOCA
  663. CPP
  664. LIBTOOLLINKERTAG
  665. LINKER
  666. SORT
  667. PKG_CONFIG_LIBDIR
  668. PKG_CONFIG_PATH
  669. PKG_CONFIG
  670. SET_MAKE
  671. INSTALL_DATA
  672. INSTALL_SCRIPT
  673. INSTALL_PROGRAM
  674. CXXCPP
  675. ac_ct_CXX
  676. CXXFLAGS
  677. CXX
  678. LT_AGE
  679. LT_REVISION
  680. LT_CURRENT
  681. LT_RELEASE
  682. RC
  683. LT_SYS_LIBRARY_PATH
  684. OTOOL64
  685. OTOOL
  686. LIPO
  687. NMEDIT
  688. DSYMUTIL
  689. MANIFEST_TOOL
  690. AWK
  691. RANLIB
  692. STRIP
  693. ac_ct_AR
  694. AR
  695. LN_S
  696. NM
  697. ac_ct_DUMPBIN
  698. DUMPBIN
  699. LD
  700. FGREP
  701. EGREP
  702. GREP
  703. SED
  704. OBJEXT
  705. EXEEXT
  706. ac_ct_CC
  707. CPPFLAGS
  708. LDFLAGS
  709. CFLAGS
  710. CC
  711. host_os
  712. host_vendor
  713. host_cpu
  714. host
  715. build_os
  716. build_vendor
  717. build_cpu
  718. build
  719. LIBTOOL
  720. OBJDUMP
  721. DLLTOOL
  722. AS
  723. SDL_VERSION
  724. SDL_BINARY_AGE
  725. SDL_INTERFACE_AGE
  726. SDL_MICRO_VERSION
  727. SDL_MINOR_VERSION
  728. SDL_MAJOR_VERSION
  729. target_alias
  730. host_alias
  731. build_alias
  732. LIBS
  733. ECHO_T
  734. ECHO_N
  735. ECHO_C
  736. DEFS
  737. mandir
  738. localedir
  739. libdir
  740. psdir
  741. pdfdir
  742. dvidir
  743. htmldir
  744. infodir
  745. docdir
  746. oldincludedir
  747. includedir
  748. runstatedir
  749. localstatedir
  750. sharedstatedir
  751. sysconfdir
  752. datadir
  753. datarootdir
  754. libexecdir
  755. sbindir
  756. bindir
  757. program_transform_name
  758. prefix
  759. exec_prefix
  760. PACKAGE_URL
  761. PACKAGE_BUGREPORT
  762. PACKAGE_STRING
  763. PACKAGE_VERSION
  764. PACKAGE_TARNAME
  765. PACKAGE_NAME
  766. PATH_SEPARATOR
  767. SHELL'
  768. ac_subst_files=''
  769. ac_user_opts='
  770. enable_option_checking
  771. enable_shared
  772. enable_static
  773. with_pic
  774. enable_fast_install
  775. with_aix_soname
  776. with_gnu_ld
  777. with_sysroot
  778. enable_libtool_lock
  779. enable_largefile
  780. enable_assertions
  781. enable_dependency_tracking
  782. enable_libc
  783. enable_gcc_atomics
  784. enable_atomic
  785. enable_audio
  786. enable_video
  787. enable_render
  788. enable_events
  789. enable_joystick
  790. enable_haptic
  791. enable_hidapi
  792. enable_sensor
  793. enable_power
  794. enable_filesystem
  795. enable_timers
  796. enable_file
  797. enable_misc
  798. enable_locale
  799. enable_loadso
  800. enable_cpuinfo
  801. enable_assembly
  802. enable_ssemath
  803. enable_mmx
  804. enable_3dnow
  805. enable_sse
  806. enable_sse2
  807. enable_sse3
  808. enable_altivec
  809. enable_lsx
  810. enable_lasx
  811. enable_oss
  812. enable_alsa
  813. with_alsa_prefix
  814. with_alsa_inc_prefix
  815. enable_alsatest
  816. enable_alsa_shared
  817. enable_jack
  818. enable_jack_shared
  819. enable_esd
  820. with_esd_prefix
  821. with_esd_exec_prefix
  822. enable_esdtest
  823. enable_esd_shared
  824. enable_pipewire
  825. enable_pipewire_shared
  826. enable_pulseaudio
  827. enable_pulseaudio_shared
  828. enable_arts
  829. enable_arts_shared
  830. enable_nas
  831. enable_nas_shared
  832. enable_sndio
  833. enable_sndio_shared
  834. enable_fusionsound
  835. enable_fusionsound_shared
  836. enable_diskaudio
  837. enable_dummyaudio
  838. enable_libsamplerate
  839. enable_libsamplerate_shared
  840. enable_arm_simd
  841. enable_arm_neon
  842. enable_video_wayland
  843. enable_video_wayland_qt_touch
  844. enable_wayland_shared
  845. enable_libdecor
  846. enable_libdecor_shared
  847. enable_video_rpi
  848. enable_video_x11
  849. with_x
  850. enable_x11_shared
  851. enable_video_x11_xcursor
  852. enable_video_x11_xdbe
  853. enable_video_x11_xinput
  854. enable_video_x11_xfixes
  855. enable_video_x11_xrandr
  856. enable_video_x11_scrnsaver
  857. enable_video_x11_xshape
  858. enable_video_vivante
  859. enable_video_cocoa
  860. enable_video_metal
  861. enable_render_metal
  862. enable_video_directfb
  863. enable_directfb_shared
  864. enable_video_kmsdrm
  865. enable_kmsdrm_shared
  866. enable_video_dummy
  867. enable_video_offscreen
  868. enable_video_opengl
  869. enable_video_opengles
  870. enable_video_opengles1
  871. enable_video_opengles2
  872. enable_video_vulkan
  873. enable_libudev
  874. enable_dbus
  875. enable_ime
  876. enable_ibus
  877. enable_fcitx
  878. enable_joystick_mfi
  879. enable_pthreads
  880. enable_pthread_sem
  881. enable_directx
  882. enable_xinput
  883. enable_wasapi
  884. enable_hidapi_joystick
  885. enable_hidapi_libusb
  886. enable_clock_gettime
  887. enable_rpath
  888. enable_backgrounding_signal
  889. enable_foregrounding_signal
  890. enable_joystick_virtual
  891. enable_render_d3d
  892. enable_sdl2_config
  893. '
  894. ac_precious_vars='build_alias
  895. host_alias
  896. target_alias
  897. CC
  898. CFLAGS
  899. LDFLAGS
  900. LIBS
  901. CPPFLAGS
  902. LT_SYS_LIBRARY_PATH
  903. CXX
  904. CXXFLAGS
  905. CCC
  906. CXXCPP
  907. PKG_CONFIG
  908. PKG_CONFIG_PATH
  909. PKG_CONFIG_LIBDIR
  910. CPP
  911. JACK_CFLAGS
  912. JACK_LIBS
  913. PIPEWIRE_CFLAGS
  914. PIPEWIRE_LIBS
  915. PULSEAUDIO_CFLAGS
  916. PULSEAUDIO_LIBS
  917. FUSIONSOUND_CFLAGS
  918. FUSIONSOUND_LIBS
  919. DECOR_CFLAGS
  920. DECOR_LIBS
  921. RPI_CFLAGS
  922. RPI_LIBS
  923. XMKMF
  924. DIRECTFB_CFLAGS
  925. DIRECTFB_LIBS
  926. LIBDRM_CFLAGS
  927. LIBDRM_LIBS
  928. LIBGBM_CFLAGS
  929. LIBGBM_LIBS
  930. DBUS_CFLAGS
  931. DBUS_LIBS
  932. IBUS_CFLAGS
  933. IBUS_LIBS
  934. LIBUSB_CFLAGS
  935. LIBUSB_LIBS'
  936. # Initialize some variables set by options.
  937. ac_init_help=
  938. ac_init_version=false
  939. ac_unrecognized_opts=
  940. ac_unrecognized_sep=
  941. # The variables have the same names as the options, with
  942. # dashes changed to underlines.
  943. cache_file=/dev/null
  944. exec_prefix=NONE
  945. no_create=
  946. no_recursion=
  947. prefix=NONE
  948. program_prefix=NONE
  949. program_suffix=NONE
  950. program_transform_name=s,x,x,
  951. silent=
  952. site=
  953. srcdir=
  954. verbose=
  955. x_includes=NONE
  956. x_libraries=NONE
  957. # Installation directory options.
  958. # These are left unexpanded so users can "make install exec_prefix=/foo"
  959. # and all the variables that are supposed to be based on exec_prefix
  960. # by default will actually change.
  961. # Use braces instead of parens because sh, perl, etc. also accept them.
  962. # (The list follows the same order as the GNU Coding Standards.)
  963. bindir='${exec_prefix}/bin'
  964. sbindir='${exec_prefix}/sbin'
  965. libexecdir='${exec_prefix}/libexec'
  966. datarootdir='${prefix}/share'
  967. datadir='${datarootdir}'
  968. sysconfdir='${prefix}/etc'
  969. sharedstatedir='${prefix}/com'
  970. localstatedir='${prefix}/var'
  971. runstatedir='${localstatedir}/run'
  972. includedir='${prefix}/include'
  973. oldincludedir='/usr/include'
  974. docdir='${datarootdir}/doc/${PACKAGE}'
  975. infodir='${datarootdir}/info'
  976. htmldir='${docdir}'
  977. dvidir='${docdir}'
  978. pdfdir='${docdir}'
  979. psdir='${docdir}'
  980. libdir='${exec_prefix}/lib'
  981. localedir='${datarootdir}/locale'
  982. mandir='${datarootdir}/man'
  983. ac_prev=
  984. ac_dashdash=
  985. for ac_option
  986. do
  987. # If the previous option needs an argument, assign it.
  988. if test -n "$ac_prev"; then
  989. eval $ac_prev=\$ac_option
  990. ac_prev=
  991. continue
  992. fi
  993. case $ac_option in
  994. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  995. *=) ac_optarg= ;;
  996. *) ac_optarg=yes ;;
  997. esac
  998. case $ac_dashdash$ac_option in
  999. --)
  1000. ac_dashdash=yes ;;
  1001. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1002. ac_prev=bindir ;;
  1003. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1004. bindir=$ac_optarg ;;
  1005. -build | --build | --buil | --bui | --bu)
  1006. ac_prev=build_alias ;;
  1007. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1008. build_alias=$ac_optarg ;;
  1009. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1010. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1011. ac_prev=cache_file ;;
  1012. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1013. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1014. cache_file=$ac_optarg ;;
  1015. --config-cache | -C)
  1016. cache_file=config.cache ;;
  1017. -datadir | --datadir | --datadi | --datad)
  1018. ac_prev=datadir ;;
  1019. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1020. datadir=$ac_optarg ;;
  1021. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1022. | --dataroo | --dataro | --datar)
  1023. ac_prev=datarootdir ;;
  1024. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1025. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1026. datarootdir=$ac_optarg ;;
  1027. -disable-* | --disable-*)
  1028. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1029. # Reject names that are not valid shell variable names.
  1030. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1031. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1032. ac_useropt_orig=$ac_useropt
  1033. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1034. case $ac_user_opts in
  1035. *"
  1036. "enable_$ac_useropt"
  1037. "*) ;;
  1038. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1039. ac_unrecognized_sep=', ';;
  1040. esac
  1041. eval enable_$ac_useropt=no ;;
  1042. -docdir | --docdir | --docdi | --doc | --do)
  1043. ac_prev=docdir ;;
  1044. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1045. docdir=$ac_optarg ;;
  1046. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1047. ac_prev=dvidir ;;
  1048. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1049. dvidir=$ac_optarg ;;
  1050. -enable-* | --enable-*)
  1051. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1052. # Reject names that are not valid shell variable names.
  1053. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1054. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1055. ac_useropt_orig=$ac_useropt
  1056. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1057. case $ac_user_opts in
  1058. *"
  1059. "enable_$ac_useropt"
  1060. "*) ;;
  1061. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1062. ac_unrecognized_sep=', ';;
  1063. esac
  1064. eval enable_$ac_useropt=\$ac_optarg ;;
  1065. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1066. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1067. | --exec | --exe | --ex)
  1068. ac_prev=exec_prefix ;;
  1069. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1070. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1071. | --exec=* | --exe=* | --ex=*)
  1072. exec_prefix=$ac_optarg ;;
  1073. -gas | --gas | --ga | --g)
  1074. # Obsolete; use --with-gas.
  1075. with_gas=yes ;;
  1076. -help | --help | --hel | --he | -h)
  1077. ac_init_help=long ;;
  1078. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1079. ac_init_help=recursive ;;
  1080. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1081. ac_init_help=short ;;
  1082. -host | --host | --hos | --ho)
  1083. ac_prev=host_alias ;;
  1084. -host=* | --host=* | --hos=* | --ho=*)
  1085. host_alias=$ac_optarg ;;
  1086. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1087. ac_prev=htmldir ;;
  1088. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1089. | --ht=*)
  1090. htmldir=$ac_optarg ;;
  1091. -includedir | --includedir | --includedi | --included | --include \
  1092. | --includ | --inclu | --incl | --inc)
  1093. ac_prev=includedir ;;
  1094. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1095. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1096. includedir=$ac_optarg ;;
  1097. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1098. ac_prev=infodir ;;
  1099. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1100. infodir=$ac_optarg ;;
  1101. -libdir | --libdir | --libdi | --libd)
  1102. ac_prev=libdir ;;
  1103. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1104. libdir=$ac_optarg ;;
  1105. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1106. | --libexe | --libex | --libe)
  1107. ac_prev=libexecdir ;;
  1108. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1109. | --libexe=* | --libex=* | --libe=*)
  1110. libexecdir=$ac_optarg ;;
  1111. -localedir | --localedir | --localedi | --localed | --locale)
  1112. ac_prev=localedir ;;
  1113. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1114. localedir=$ac_optarg ;;
  1115. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1116. | --localstate | --localstat | --localsta | --localst | --locals)
  1117. ac_prev=localstatedir ;;
  1118. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1119. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1120. localstatedir=$ac_optarg ;;
  1121. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1122. ac_prev=mandir ;;
  1123. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1124. mandir=$ac_optarg ;;
  1125. -nfp | --nfp | --nf)
  1126. # Obsolete; use --without-fp.
  1127. with_fp=no ;;
  1128. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1129. | --no-cr | --no-c | -n)
  1130. no_create=yes ;;
  1131. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1132. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1133. no_recursion=yes ;;
  1134. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1135. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1136. | --oldin | --oldi | --old | --ol | --o)
  1137. ac_prev=oldincludedir ;;
  1138. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1139. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1140. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1141. oldincludedir=$ac_optarg ;;
  1142. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1143. ac_prev=prefix ;;
  1144. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1145. prefix=$ac_optarg ;;
  1146. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1147. | --program-pre | --program-pr | --program-p)
  1148. ac_prev=program_prefix ;;
  1149. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1150. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1151. program_prefix=$ac_optarg ;;
  1152. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1153. | --program-suf | --program-su | --program-s)
  1154. ac_prev=program_suffix ;;
  1155. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1156. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1157. program_suffix=$ac_optarg ;;
  1158. -program-transform-name | --program-transform-name \
  1159. | --program-transform-nam | --program-transform-na \
  1160. | --program-transform-n | --program-transform- \
  1161. | --program-transform | --program-transfor \
  1162. | --program-transfo | --program-transf \
  1163. | --program-trans | --program-tran \
  1164. | --progr-tra | --program-tr | --program-t)
  1165. ac_prev=program_transform_name ;;
  1166. -program-transform-name=* | --program-transform-name=* \
  1167. | --program-transform-nam=* | --program-transform-na=* \
  1168. | --program-transform-n=* | --program-transform-=* \
  1169. | --program-transform=* | --program-transfor=* \
  1170. | --program-transfo=* | --program-transf=* \
  1171. | --program-trans=* | --program-tran=* \
  1172. | --progr-tra=* | --program-tr=* | --program-t=*)
  1173. program_transform_name=$ac_optarg ;;
  1174. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1175. ac_prev=pdfdir ;;
  1176. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1177. pdfdir=$ac_optarg ;;
  1178. -psdir | --psdir | --psdi | --psd | --ps)
  1179. ac_prev=psdir ;;
  1180. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1181. psdir=$ac_optarg ;;
  1182. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1183. | -silent | --silent | --silen | --sile | --sil)
  1184. silent=yes ;;
  1185. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1186. | --runstate | --runstat | --runsta | --runst | --runs \
  1187. | --run | --ru | --r)
  1188. ac_prev=runstatedir ;;
  1189. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1190. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1191. | --run=* | --ru=* | --r=*)
  1192. runstatedir=$ac_optarg ;;
  1193. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1194. ac_prev=sbindir ;;
  1195. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1196. | --sbi=* | --sb=*)
  1197. sbindir=$ac_optarg ;;
  1198. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1199. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1200. | --sharedst | --shareds | --shared | --share | --shar \
  1201. | --sha | --sh)
  1202. ac_prev=sharedstatedir ;;
  1203. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1204. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1205. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1206. | --sha=* | --sh=*)
  1207. sharedstatedir=$ac_optarg ;;
  1208. -site | --site | --sit)
  1209. ac_prev=site ;;
  1210. -site=* | --site=* | --sit=*)
  1211. site=$ac_optarg ;;
  1212. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1213. ac_prev=srcdir ;;
  1214. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1215. srcdir=$ac_optarg ;;
  1216. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1217. | --syscon | --sysco | --sysc | --sys | --sy)
  1218. ac_prev=sysconfdir ;;
  1219. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1220. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1221. sysconfdir=$ac_optarg ;;
  1222. -target | --target | --targe | --targ | --tar | --ta | --t)
  1223. ac_prev=target_alias ;;
  1224. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1225. target_alias=$ac_optarg ;;
  1226. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1227. verbose=yes ;;
  1228. -version | --version | --versio | --versi | --vers | -V)
  1229. ac_init_version=: ;;
  1230. -with-* | --with-*)
  1231. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1232. # Reject names that are not valid shell variable names.
  1233. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1234. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1235. ac_useropt_orig=$ac_useropt
  1236. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1237. case $ac_user_opts in
  1238. *"
  1239. "with_$ac_useropt"
  1240. "*) ;;
  1241. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1242. ac_unrecognized_sep=', ';;
  1243. esac
  1244. eval with_$ac_useropt=\$ac_optarg ;;
  1245. -without-* | --without-*)
  1246. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1247. # Reject names that are not valid shell variable names.
  1248. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1249. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1250. ac_useropt_orig=$ac_useropt
  1251. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1252. case $ac_user_opts in
  1253. *"
  1254. "with_$ac_useropt"
  1255. "*) ;;
  1256. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1257. ac_unrecognized_sep=', ';;
  1258. esac
  1259. eval with_$ac_useropt=no ;;
  1260. --x)
  1261. # Obsolete; use --with-x.
  1262. with_x=yes ;;
  1263. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1264. | --x-incl | --x-inc | --x-in | --x-i)
  1265. ac_prev=x_includes ;;
  1266. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1267. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1268. x_includes=$ac_optarg ;;
  1269. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1270. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1271. ac_prev=x_libraries ;;
  1272. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1273. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1274. x_libraries=$ac_optarg ;;
  1275. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1276. Try \`$0 --help' for more information"
  1277. ;;
  1278. *=*)
  1279. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1280. # Reject names that are not valid shell variable names.
  1281. case $ac_envvar in #(
  1282. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1283. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1284. esac
  1285. eval $ac_envvar=\$ac_optarg
  1286. export $ac_envvar ;;
  1287. *)
  1288. # FIXME: should be removed in autoconf 3.0.
  1289. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1290. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1291. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1292. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1293. ;;
  1294. esac
  1295. done
  1296. if test -n "$ac_prev"; then
  1297. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1298. as_fn_error $? "missing argument to $ac_option"
  1299. fi
  1300. if test -n "$ac_unrecognized_opts"; then
  1301. case $enable_option_checking in
  1302. no) ;;
  1303. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1304. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1305. esac
  1306. fi
  1307. # Check all directory arguments for consistency.
  1308. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1309. datadir sysconfdir sharedstatedir localstatedir includedir \
  1310. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1311. libdir localedir mandir runstatedir
  1312. do
  1313. eval ac_val=\$$ac_var
  1314. # Remove trailing slashes.
  1315. case $ac_val in
  1316. */ )
  1317. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1318. eval $ac_var=\$ac_val;;
  1319. esac
  1320. # Be sure to have absolute directory names.
  1321. case $ac_val in
  1322. [\\/$]* | ?:[\\/]* ) continue;;
  1323. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1324. esac
  1325. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1326. done
  1327. # There might be people who depend on the old broken behavior: `$host'
  1328. # used to hold the argument of --host etc.
  1329. # FIXME: To remove some day.
  1330. build=$build_alias
  1331. host=$host_alias
  1332. target=$target_alias
  1333. # FIXME: To remove some day.
  1334. if test "x$host_alias" != x; then
  1335. if test "x$build_alias" = x; then
  1336. cross_compiling=maybe
  1337. elif test "x$build_alias" != "x$host_alias"; then
  1338. cross_compiling=yes
  1339. fi
  1340. fi
  1341. ac_tool_prefix=
  1342. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1343. test "$silent" = yes && exec 6>/dev/null
  1344. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1345. ac_ls_di=`ls -di .` &&
  1346. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1347. as_fn_error $? "working directory cannot be determined"
  1348. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1349. as_fn_error $? "pwd does not report name of working directory"
  1350. # Find the source files, if location was not specified.
  1351. if test -z "$srcdir"; then
  1352. ac_srcdir_defaulted=yes
  1353. # Try the directory containing this script, then the parent directory.
  1354. ac_confdir=`$as_dirname -- "$as_myself" ||
  1355. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1356. X"$as_myself" : 'X\(//\)[^/]' \| \
  1357. X"$as_myself" : 'X\(//\)$' \| \
  1358. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1359. printf "%s\n" X"$as_myself" |
  1360. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1361. s//\1/
  1362. q
  1363. }
  1364. /^X\(\/\/\)[^/].*/{
  1365. s//\1/
  1366. q
  1367. }
  1368. /^X\(\/\/\)$/{
  1369. s//\1/
  1370. q
  1371. }
  1372. /^X\(\/\).*/{
  1373. s//\1/
  1374. q
  1375. }
  1376. s/.*/./; q'`
  1377. srcdir=$ac_confdir
  1378. if test ! -r "$srcdir/$ac_unique_file"; then
  1379. srcdir=..
  1380. fi
  1381. else
  1382. ac_srcdir_defaulted=no
  1383. fi
  1384. if test ! -r "$srcdir/$ac_unique_file"; then
  1385. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1386. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1387. fi
  1388. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1389. ac_abs_confdir=`(
  1390. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1391. pwd)`
  1392. # When building in place, set srcdir=.
  1393. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1394. srcdir=.
  1395. fi
  1396. # Remove unnecessary trailing slashes from srcdir.
  1397. # Double slashes in file names in object file debugging info
  1398. # mess up M-x gdb in Emacs.
  1399. case $srcdir in
  1400. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1401. esac
  1402. for ac_var in $ac_precious_vars; do
  1403. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1404. eval ac_env_${ac_var}_value=\$${ac_var}
  1405. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1406. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1407. done
  1408. #
  1409. # Report the --help message.
  1410. #
  1411. if test "$ac_init_help" = "long"; then
  1412. # Omit some internal or obsolete options to make the list less imposing.
  1413. # This message is too long to be a string in the A/UX 3.1 sh.
  1414. cat <<_ACEOF
  1415. \`configure' configures this package to adapt to many kinds of systems.
  1416. Usage: $0 [OPTION]... [VAR=VALUE]...
  1417. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1418. VAR=VALUE. See below for descriptions of some of the useful variables.
  1419. Defaults for the options are specified in brackets.
  1420. Configuration:
  1421. -h, --help display this help and exit
  1422. --help=short display options specific to this package
  1423. --help=recursive display the short help of all the included packages
  1424. -V, --version display version information and exit
  1425. -q, --quiet, --silent do not print \`checking ...' messages
  1426. --cache-file=FILE cache test results in FILE [disabled]
  1427. -C, --config-cache alias for \`--cache-file=config.cache'
  1428. -n, --no-create do not create output files
  1429. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1430. Installation directories:
  1431. --prefix=PREFIX install architecture-independent files in PREFIX
  1432. [$ac_default_prefix]
  1433. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1434. [PREFIX]
  1435. By default, \`make install' will install all the files in
  1436. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1437. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1438. for instance \`--prefix=\$HOME'.
  1439. For better control, use the options below.
  1440. Fine tuning of the installation directories:
  1441. --bindir=DIR user executables [EPREFIX/bin]
  1442. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1443. --libexecdir=DIR program executables [EPREFIX/libexec]
  1444. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1445. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1446. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1447. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1448. --libdir=DIR object code libraries [EPREFIX/lib]
  1449. --includedir=DIR C header files [PREFIX/include]
  1450. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1451. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1452. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1453. --infodir=DIR info documentation [DATAROOTDIR/info]
  1454. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1455. --mandir=DIR man documentation [DATAROOTDIR/man]
  1456. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1457. --htmldir=DIR html documentation [DOCDIR]
  1458. --dvidir=DIR dvi documentation [DOCDIR]
  1459. --pdfdir=DIR pdf documentation [DOCDIR]
  1460. --psdir=DIR ps documentation [DOCDIR]
  1461. _ACEOF
  1462. cat <<\_ACEOF
  1463. X features:
  1464. --x-includes=DIR X include files are in DIR
  1465. --x-libraries=DIR X library files are in DIR
  1466. System types:
  1467. --build=BUILD configure for building on BUILD [guessed]
  1468. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1469. _ACEOF
  1470. fi
  1471. if test -n "$ac_init_help"; then
  1472. cat <<\_ACEOF
  1473. Optional Features:
  1474. --disable-option-checking ignore unrecognized --enable/--with options
  1475. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1476. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1477. --enable-shared[=PKGS] build shared libraries [default=yes]
  1478. --enable-static[=PKGS] build static libraries [default=yes]
  1479. --enable-fast-install[=PKGS]
  1480. optimize for fast installation [default=yes]
  1481. --disable-libtool-lock avoid locking (might break parallel builds)
  1482. --disable-largefile omit support for large files
  1483. --enable-assertions Enable internal sanity checks
  1484. (auto/disabled/release/enabled/paranoid)
  1485. [default=auto]
  1486. --enable-dependency-tracking
  1487. Use gcc -MMD -MT dependency tracking [default=yes]
  1488. --enable-libc Use the system C library [default=yes]
  1489. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1490. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1491. --enable-audio Enable the audio subsystem [default=yes]
  1492. --enable-video Enable the video subsystem [default=yes]
  1493. --enable-render Enable the render subsystem [default=yes]
  1494. --enable-events Enable the events subsystem [default=yes]
  1495. --enable-joystick Enable the joystick subsystem [default=yes]
  1496. --enable-haptic Enable the haptic (force feedback) subsystem
  1497. [default=yes]
  1498. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1499. --enable-sensor Enable the sensor subsystem [default=yes]
  1500. --enable-power Enable the power subsystem [default=yes]
  1501. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1502. --enable-timers Enable the timer subsystem [default=yes]
  1503. --enable-file Enable the file subsystem [default=yes]
  1504. --enable-misc Enable the misc subsystem [default=yes]
  1505. --enable-locale Enable the locale subsystem [default=yes]
  1506. --enable-loadso Enable the shared object loading subsystem
  1507. [default=yes]
  1508. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1509. --enable-assembly Enable assembly routines [default=yes]
  1510. --enable-ssemath Allow GCC to use SSE floating point math
  1511. [default=maybe]
  1512. --enable-mmx use MMX assembly routines [default=yes]
  1513. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1514. --enable-sse use SSE assembly routines [default=yes]
  1515. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1516. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1517. --enable-altivec use Altivec assembly routines [default=yes]
  1518. --enable-lsx use LSX assembly routines [default=yes]
  1519. --enable-lasx use LASX assembly routines [default=yes]
  1520. --enable-oss support the OSS audio API [default=maybe]
  1521. --enable-alsa support the ALSA audio API [default=yes]
  1522. --disable-alsatest Do not try to compile and run a test Alsa program
  1523. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1524. --enable-jack use JACK audio [default=yes]
  1525. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1526. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1527. --disable-esdtest Do not try to compile and run a test ESD program
  1528. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1529. --enable-pipewire use Pipewire audio [default=yes]
  1530. --enable-pipewire-shared
  1531. dynamically load Pipewire support [default=yes]
  1532. --enable-pulseaudio use PulseAudio [default=yes]
  1533. --enable-pulseaudio-shared
  1534. dynamically load PulseAudio support [default=yes]
  1535. --enable-arts support the Analog Real Time Synthesizer
  1536. [default=yes]
  1537. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1538. --enable-nas support the NAS audio API [default=yes]
  1539. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1540. --enable-sndio support the sndio audio API [default=yes]
  1541. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1542. --enable-fusionsound use FusionSound audio driver [default=no]
  1543. --enable-fusionsound-shared
  1544. dynamically load fusionsound audio support
  1545. [default=yes]
  1546. --enable-diskaudio support the disk writer audio driver [default=yes]
  1547. --enable-dummyaudio support the dummy audio driver [default=yes]
  1548. --enable-libsamplerate use libsamplerate for audio rate conversion
  1549. [default=yes]
  1550. --enable-libsamplerate-shared
  1551. dynamically load libsamplerate [default=yes]
  1552. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1553. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1554. --enable-video-wayland use Wayland video driver [default=yes]
  1555. --enable-video-wayland-qt-touch
  1556. QtWayland server support for Wayland video driver
  1557. [default=yes]
  1558. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1559. --enable-libdecor use libdecor for Wayland client-side decorations
  1560. [default=yes]
  1561. --enable-libdecor-shared
  1562. dynamically load libdecor [default=yes]
  1563. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1564. --enable-video-x11 use X11 video driver [default=yes]
  1565. --enable-x11-shared dynamically load X11 support [default=maybe]
  1566. --enable-video-x11-xcursor
  1567. enable X11 Xcursor support [default=yes]
  1568. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1569. --enable-video-x11-xinput
  1570. enable X11 XInput extension for manymouse, tablets,
  1571. etc [default=yes]
  1572. --enable-video-x11-xfixes
  1573. enable X11 Xfixes support [default=yes]
  1574. --enable-video-x11-xrandr
  1575. enable X11 Xrandr extension for fullscreen
  1576. [default=yes]
  1577. --enable-video-x11-scrnsaver
  1578. enable X11 screensaver extension [default=yes]
  1579. --enable-video-x11-xshape
  1580. enable X11 XShape support [default=yes]
  1581. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1582. --enable-video-cocoa use Cocoa video driver [default=yes]
  1583. --enable-video-metal include Metal support [default=yes]
  1584. --enable-render-metal enable the Metal render driver [default=yes]
  1585. --enable-video-directfb use DirectFB video driver [default=no]
  1586. --enable-directfb-shared
  1587. dynamically load directfb support [default=yes]
  1588. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1589. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1590. --enable-video-dummy use dummy video driver [default=yes]
  1591. --enable-video-offscreen
  1592. use offscreen video driver [default=yes]
  1593. --enable-video-opengl include OpenGL support [default=yes]
  1594. --enable-video-opengles include OpenGL ES support [default=yes]
  1595. --enable-video-opengles1
  1596. include OpenGL ES 1.1 support [default=yes]
  1597. --enable-video-opengles2
  1598. include OpenGL ES 2.0 support [default=yes]
  1599. --enable-video-vulkan include Vulkan support [default=yes]
  1600. --enable-libudev enable libudev support [default=yes]
  1601. --enable-dbus enable D-Bus support [default=yes]
  1602. --enable-ime enable IME support [default=yes]
  1603. --enable-ibus enable IBus support [default=yes]
  1604. --enable-fcitx enable fcitx support [default=yes]
  1605. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1606. --enable-pthreads use POSIX threads for multi-threading
  1607. [default=maybe]
  1608. --enable-pthread-sem use pthread semaphores [default=maybe]
  1609. --enable-directx use DirectX for Windows audio/video [default=yes]
  1610. --enable-xinput use Xinput for Windows [default=yes]
  1611. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1612. --enable-hidapi-joystick
  1613. use HIDAPI for low level joystick drivers
  1614. [default=yes]
  1615. --enable-hidapi-libusb use libusb for low level joystick drivers
  1616. [default=maybe]
  1617. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1618. UNIX [default=yes]
  1619. --enable-rpath use an rpath when linking SDL [default=yes]
  1620. --enable-backgrounding-signal
  1621. number to use for magic backgrounding signal or 'no'
  1622. [default=no]
  1623. --enable-foregrounding-signal
  1624. number to use for magic foregrounding signal or 'no'
  1625. [default=no]
  1626. --enable-joystick-virtual
  1627. enable virtual joystick APIs [default=yes]
  1628. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1629. --enable-sdl2-config Install sdl2-config [default=yes]
  1630. Optional Packages:
  1631. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1632. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1633. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1634. both]
  1635. --with-aix-soname=aix|svr4|both
  1636. shared library versioning (aka "SONAME") variant to
  1637. provide on AIX, [default=aix].
  1638. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1639. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1640. compiler's sysroot if not specified).
  1641. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1642. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1643. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1644. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1645. --with-x use the X Window System
  1646. Some influential environment variables:
  1647. CC C compiler command
  1648. CFLAGS C compiler flags
  1649. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1650. nonstandard directory <lib dir>
  1651. LIBS libraries to pass to the linker, e.g. -l<library>
  1652. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1653. you have headers in a nonstandard directory <include dir>
  1654. LT_SYS_LIBRARY_PATH
  1655. User-defined run-time library search path.
  1656. CXX C++ compiler command
  1657. CXXFLAGS C++ compiler flags
  1658. CXXCPP C++ preprocessor
  1659. PKG_CONFIG path to pkg-config utility
  1660. PKG_CONFIG_PATH
  1661. directories to add to pkg-config's search path
  1662. PKG_CONFIG_LIBDIR
  1663. path overriding pkg-config's built-in search path
  1664. CPP C preprocessor
  1665. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1666. JACK_LIBS linker flags for JACK, overriding pkg-config
  1667. PIPEWIRE_CFLAGS
  1668. C compiler flags for PIPEWIRE, overriding pkg-config
  1669. PIPEWIRE_LIBS
  1670. linker flags for PIPEWIRE, overriding pkg-config
  1671. PULSEAUDIO_CFLAGS
  1672. C compiler flags for PULSEAUDIO, overriding pkg-config
  1673. PULSEAUDIO_LIBS
  1674. linker flags for PULSEAUDIO, overriding pkg-config
  1675. FUSIONSOUND_CFLAGS
  1676. C compiler flags for FUSIONSOUND, overriding pkg-config
  1677. FUSIONSOUND_LIBS
  1678. linker flags for FUSIONSOUND, overriding pkg-config
  1679. DECOR_CFLAGS
  1680. C compiler flags for DECOR, overriding pkg-config
  1681. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1682. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1683. RPI_LIBS linker flags for RPI, overriding pkg-config
  1684. XMKMF Path to xmkmf, Makefile generator for X Window System
  1685. DIRECTFB_CFLAGS
  1686. C compiler flags for DIRECTFB, overriding pkg-config
  1687. DIRECTFB_LIBS
  1688. linker flags for DIRECTFB, overriding pkg-config
  1689. LIBDRM_CFLAGS
  1690. C compiler flags for LIBDRM, overriding pkg-config
  1691. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1692. LIBGBM_CFLAGS
  1693. C compiler flags for LIBGBM, overriding pkg-config
  1694. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1695. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1696. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1697. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1698. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1699. LIBUSB_CFLAGS
  1700. C compiler flags for LIBUSB, overriding pkg-config
  1701. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1702. Use these variables to override the choices made by `configure' or to help
  1703. it to find libraries and programs with nonstandard names/locations.
  1704. Report bugs to the package provider.
  1705. _ACEOF
  1706. ac_status=$?
  1707. fi
  1708. if test "$ac_init_help" = "recursive"; then
  1709. # If there are subdirs, report their specific --help.
  1710. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1711. test -d "$ac_dir" ||
  1712. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1713. continue
  1714. ac_builddir=.
  1715. case "$ac_dir" in
  1716. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1717. *)
  1718. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1719. # A ".." for each directory in $ac_dir_suffix.
  1720. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1721. case $ac_top_builddir_sub in
  1722. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1723. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1724. esac ;;
  1725. esac
  1726. ac_abs_top_builddir=$ac_pwd
  1727. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1728. # for backward compatibility:
  1729. ac_top_builddir=$ac_top_build_prefix
  1730. case $srcdir in
  1731. .) # We are building in place.
  1732. ac_srcdir=.
  1733. ac_top_srcdir=$ac_top_builddir_sub
  1734. ac_abs_top_srcdir=$ac_pwd ;;
  1735. [\\/]* | ?:[\\/]* ) # Absolute name.
  1736. ac_srcdir=$srcdir$ac_dir_suffix;
  1737. ac_top_srcdir=$srcdir
  1738. ac_abs_top_srcdir=$srcdir ;;
  1739. *) # Relative name.
  1740. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1741. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1742. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1743. esac
  1744. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1745. cd "$ac_dir" || { ac_status=$?; continue; }
  1746. # Check for configure.gnu first; this name is used for a wrapper for
  1747. # Metaconfig's "Configure" on case-insensitive file systems.
  1748. if test -f "$ac_srcdir/configure.gnu"; then
  1749. echo &&
  1750. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1751. elif test -f "$ac_srcdir/configure"; then
  1752. echo &&
  1753. $SHELL "$ac_srcdir/configure" --help=recursive
  1754. else
  1755. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1756. fi || ac_status=$?
  1757. cd "$ac_pwd" || { ac_status=$?; break; }
  1758. done
  1759. fi
  1760. test -n "$ac_init_help" && exit $ac_status
  1761. if $ac_init_version; then
  1762. cat <<\_ACEOF
  1763. configure
  1764. generated by GNU Autoconf 2.71
  1765. Copyright (C) 2021 Free Software Foundation, Inc.
  1766. This configure script is free software; the Free Software Foundation
  1767. gives unlimited permission to copy, distribute and modify it.
  1768. _ACEOF
  1769. exit
  1770. fi
  1771. ## ------------------------ ##
  1772. ## Autoconf initialization. ##
  1773. ## ------------------------ ##
  1774. # ac_fn_c_try_compile LINENO
  1775. # --------------------------
  1776. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1777. ac_fn_c_try_compile ()
  1778. {
  1779. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1780. rm -f conftest.$ac_objext conftest.beam
  1781. if { { ac_try="$ac_compile"
  1782. case "(($ac_try" in
  1783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1784. *) ac_try_echo=$ac_try;;
  1785. esac
  1786. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1787. printf "%s\n" "$ac_try_echo"; } >&5
  1788. (eval "$ac_compile") 2>conftest.err
  1789. ac_status=$?
  1790. if test -s conftest.err; then
  1791. grep -v '^ *+' conftest.err >conftest.er1
  1792. cat conftest.er1 >&5
  1793. mv -f conftest.er1 conftest.err
  1794. fi
  1795. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1796. test $ac_status = 0; } && {
  1797. test -z "$ac_c_werror_flag" ||
  1798. test ! -s conftest.err
  1799. } && test -s conftest.$ac_objext
  1800. then :
  1801. ac_retval=0
  1802. else $as_nop
  1803. printf "%s\n" "$as_me: failed program was:" >&5
  1804. sed 's/^/| /' conftest.$ac_ext >&5
  1805. ac_retval=1
  1806. fi
  1807. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1808. as_fn_set_status $ac_retval
  1809. } # ac_fn_c_try_compile
  1810. # ac_fn_c_try_link LINENO
  1811. # -----------------------
  1812. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1813. ac_fn_c_try_link ()
  1814. {
  1815. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1816. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1817. if { { ac_try="$ac_link"
  1818. case "(($ac_try" in
  1819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1820. *) ac_try_echo=$ac_try;;
  1821. esac
  1822. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1823. printf "%s\n" "$ac_try_echo"; } >&5
  1824. (eval "$ac_link") 2>conftest.err
  1825. ac_status=$?
  1826. if test -s conftest.err; then
  1827. grep -v '^ *+' conftest.err >conftest.er1
  1828. cat conftest.er1 >&5
  1829. mv -f conftest.er1 conftest.err
  1830. fi
  1831. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1832. test $ac_status = 0; } && {
  1833. test -z "$ac_c_werror_flag" ||
  1834. test ! -s conftest.err
  1835. } && test -s conftest$ac_exeext && {
  1836. test "$cross_compiling" = yes ||
  1837. test -x conftest$ac_exeext
  1838. }
  1839. then :
  1840. ac_retval=0
  1841. else $as_nop
  1842. printf "%s\n" "$as_me: failed program was:" >&5
  1843. sed 's/^/| /' conftest.$ac_ext >&5
  1844. ac_retval=1
  1845. fi
  1846. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1847. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1848. # interfere with the next link command; also delete a directory that is
  1849. # left behind by Apple's compiler. We do this before executing the actions.
  1850. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1851. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1852. as_fn_set_status $ac_retval
  1853. } # ac_fn_c_try_link
  1854. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1855. # -------------------------------------------------------
  1856. # Tests whether HEADER exists and can be compiled using the include files in
  1857. # INCLUDES, setting the cache variable VAR accordingly.
  1858. ac_fn_c_check_header_compile ()
  1859. {
  1860. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1862. printf %s "checking for $2... " >&6; }
  1863. if eval test \${$3+y}
  1864. then :
  1865. printf %s "(cached) " >&6
  1866. else $as_nop
  1867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1868. /* end confdefs.h. */
  1869. $4
  1870. #include <$2>
  1871. _ACEOF
  1872. if ac_fn_c_try_compile "$LINENO"
  1873. then :
  1874. eval "$3=yes"
  1875. else $as_nop
  1876. eval "$3=no"
  1877. fi
  1878. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1879. fi
  1880. eval ac_res=\$$3
  1881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1882. printf "%s\n" "$ac_res" >&6; }
  1883. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1884. } # ac_fn_c_check_header_compile
  1885. # ac_fn_c_check_func LINENO FUNC VAR
  1886. # ----------------------------------
  1887. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1888. ac_fn_c_check_func ()
  1889. {
  1890. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1892. printf %s "checking for $2... " >&6; }
  1893. if eval test \${$3+y}
  1894. then :
  1895. printf %s "(cached) " >&6
  1896. else $as_nop
  1897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1898. /* end confdefs.h. */
  1899. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1900. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1901. #define $2 innocuous_$2
  1902. /* System header to define __stub macros and hopefully few prototypes,
  1903. which can conflict with char $2 (); below. */
  1904. #include <limits.h>
  1905. #undef $2
  1906. /* Override any GCC internal prototype to avoid an error.
  1907. Use char because int might match the return type of a GCC
  1908. builtin and then its argument prototype would still apply. */
  1909. #ifdef __cplusplus
  1910. extern "C"
  1911. #endif
  1912. char $2 ();
  1913. /* The GNU C library defines this for functions which it implements
  1914. to always fail with ENOSYS. Some functions are actually named
  1915. something starting with __ and the normal name is an alias. */
  1916. #if defined __stub_$2 || defined __stub___$2
  1917. choke me
  1918. #endif
  1919. int
  1920. main (void)
  1921. {
  1922. return $2 ();
  1923. ;
  1924. return 0;
  1925. }
  1926. _ACEOF
  1927. if ac_fn_c_try_link "$LINENO"
  1928. then :
  1929. eval "$3=yes"
  1930. else $as_nop
  1931. eval "$3=no"
  1932. fi
  1933. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1934. conftest$ac_exeext conftest.$ac_ext
  1935. fi
  1936. eval ac_res=\$$3
  1937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1938. printf "%s\n" "$ac_res" >&6; }
  1939. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1940. } # ac_fn_c_check_func
  1941. # ac_fn_cxx_try_compile LINENO
  1942. # ----------------------------
  1943. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1944. ac_fn_cxx_try_compile ()
  1945. {
  1946. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1947. rm -f conftest.$ac_objext conftest.beam
  1948. if { { ac_try="$ac_compile"
  1949. case "(($ac_try" in
  1950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1951. *) ac_try_echo=$ac_try;;
  1952. esac
  1953. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1954. printf "%s\n" "$ac_try_echo"; } >&5
  1955. (eval "$ac_compile") 2>conftest.err
  1956. ac_status=$?
  1957. if test -s conftest.err; then
  1958. grep -v '^ *+' conftest.err >conftest.er1
  1959. cat conftest.er1 >&5
  1960. mv -f conftest.er1 conftest.err
  1961. fi
  1962. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1963. test $ac_status = 0; } && {
  1964. test -z "$ac_cxx_werror_flag" ||
  1965. test ! -s conftest.err
  1966. } && test -s conftest.$ac_objext
  1967. then :
  1968. ac_retval=0
  1969. else $as_nop
  1970. printf "%s\n" "$as_me: failed program was:" >&5
  1971. sed 's/^/| /' conftest.$ac_ext >&5
  1972. ac_retval=1
  1973. fi
  1974. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1975. as_fn_set_status $ac_retval
  1976. } # ac_fn_cxx_try_compile
  1977. # ac_fn_cxx_try_cpp LINENO
  1978. # ------------------------
  1979. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1980. ac_fn_cxx_try_cpp ()
  1981. {
  1982. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1983. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1984. case "(($ac_try" in
  1985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1986. *) ac_try_echo=$ac_try;;
  1987. esac
  1988. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1989. printf "%s\n" "$ac_try_echo"; } >&5
  1990. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1991. ac_status=$?
  1992. if test -s conftest.err; then
  1993. grep -v '^ *+' conftest.err >conftest.er1
  1994. cat conftest.er1 >&5
  1995. mv -f conftest.er1 conftest.err
  1996. fi
  1997. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1998. test $ac_status = 0; } > conftest.i && {
  1999. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2000. test ! -s conftest.err
  2001. }
  2002. then :
  2003. ac_retval=0
  2004. else $as_nop
  2005. printf "%s\n" "$as_me: failed program was:" >&5
  2006. sed 's/^/| /' conftest.$ac_ext >&5
  2007. ac_retval=1
  2008. fi
  2009. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2010. as_fn_set_status $ac_retval
  2011. } # ac_fn_cxx_try_cpp
  2012. # ac_fn_cxx_try_link LINENO
  2013. # -------------------------
  2014. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2015. ac_fn_cxx_try_link ()
  2016. {
  2017. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2018. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2019. if { { ac_try="$ac_link"
  2020. case "(($ac_try" in
  2021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2022. *) ac_try_echo=$ac_try;;
  2023. esac
  2024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2025. printf "%s\n" "$ac_try_echo"; } >&5
  2026. (eval "$ac_link") 2>conftest.err
  2027. ac_status=$?
  2028. if test -s conftest.err; then
  2029. grep -v '^ *+' conftest.err >conftest.er1
  2030. cat conftest.er1 >&5
  2031. mv -f conftest.er1 conftest.err
  2032. fi
  2033. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2034. test $ac_status = 0; } && {
  2035. test -z "$ac_cxx_werror_flag" ||
  2036. test ! -s conftest.err
  2037. } && test -s conftest$ac_exeext && {
  2038. test "$cross_compiling" = yes ||
  2039. test -x conftest$ac_exeext
  2040. }
  2041. then :
  2042. ac_retval=0
  2043. else $as_nop
  2044. printf "%s\n" "$as_me: failed program was:" >&5
  2045. sed 's/^/| /' conftest.$ac_ext >&5
  2046. ac_retval=1
  2047. fi
  2048. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2049. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2050. # interfere with the next link command; also delete a directory that is
  2051. # left behind by Apple's compiler. We do this before executing the actions.
  2052. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2053. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2054. as_fn_set_status $ac_retval
  2055. } # ac_fn_cxx_try_link
  2056. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2057. # -------------------------------------------
  2058. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2059. # variable VAR accordingly.
  2060. ac_fn_c_check_type ()
  2061. {
  2062. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2064. printf %s "checking for $2... " >&6; }
  2065. if eval test \${$3+y}
  2066. then :
  2067. printf %s "(cached) " >&6
  2068. else $as_nop
  2069. eval "$3=no"
  2070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2071. /* end confdefs.h. */
  2072. $4
  2073. int
  2074. main (void)
  2075. {
  2076. if (sizeof ($2))
  2077. return 0;
  2078. ;
  2079. return 0;
  2080. }
  2081. _ACEOF
  2082. if ac_fn_c_try_compile "$LINENO"
  2083. then :
  2084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2085. /* end confdefs.h. */
  2086. $4
  2087. int
  2088. main (void)
  2089. {
  2090. if (sizeof (($2)))
  2091. return 0;
  2092. ;
  2093. return 0;
  2094. }
  2095. _ACEOF
  2096. if ac_fn_c_try_compile "$LINENO"
  2097. then :
  2098. else $as_nop
  2099. eval "$3=yes"
  2100. fi
  2101. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2102. fi
  2103. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2104. fi
  2105. eval ac_res=\$$3
  2106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2107. printf "%s\n" "$ac_res" >&6; }
  2108. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2109. } # ac_fn_c_check_type
  2110. # ac_fn_c_try_cpp LINENO
  2111. # ----------------------
  2112. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2113. ac_fn_c_try_cpp ()
  2114. {
  2115. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2116. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2117. case "(($ac_try" in
  2118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2119. *) ac_try_echo=$ac_try;;
  2120. esac
  2121. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2122. printf "%s\n" "$ac_try_echo"; } >&5
  2123. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2124. ac_status=$?
  2125. if test -s conftest.err; then
  2126. grep -v '^ *+' conftest.err >conftest.er1
  2127. cat conftest.er1 >&5
  2128. mv -f conftest.er1 conftest.err
  2129. fi
  2130. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2131. test $ac_status = 0; } > conftest.i && {
  2132. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2133. test ! -s conftest.err
  2134. }
  2135. then :
  2136. ac_retval=0
  2137. else $as_nop
  2138. printf "%s\n" "$as_me: failed program was:" >&5
  2139. sed 's/^/| /' conftest.$ac_ext >&5
  2140. ac_retval=1
  2141. fi
  2142. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2143. as_fn_set_status $ac_retval
  2144. } # ac_fn_c_try_cpp
  2145. # ac_fn_c_try_run LINENO
  2146. # ----------------------
  2147. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2148. # executables *can* be run.
  2149. ac_fn_c_try_run ()
  2150. {
  2151. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2152. if { { ac_try="$ac_link"
  2153. case "(($ac_try" in
  2154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2155. *) ac_try_echo=$ac_try;;
  2156. esac
  2157. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2158. printf "%s\n" "$ac_try_echo"; } >&5
  2159. (eval "$ac_link") 2>&5
  2160. ac_status=$?
  2161. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2162. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2163. { { case "(($ac_try" in
  2164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2165. *) ac_try_echo=$ac_try;;
  2166. esac
  2167. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2168. printf "%s\n" "$ac_try_echo"; } >&5
  2169. (eval "$ac_try") 2>&5
  2170. ac_status=$?
  2171. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2172. test $ac_status = 0; }; }
  2173. then :
  2174. ac_retval=0
  2175. else $as_nop
  2176. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2177. printf "%s\n" "$as_me: failed program was:" >&5
  2178. sed 's/^/| /' conftest.$ac_ext >&5
  2179. ac_retval=$ac_status
  2180. fi
  2181. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2182. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2183. as_fn_set_status $ac_retval
  2184. } # ac_fn_c_try_run
  2185. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2186. # ----------------------------------------------------
  2187. # Tries to find if the field MEMBER exists in type AGGR, after including
  2188. # INCLUDES, setting cache variable VAR accordingly.
  2189. ac_fn_c_check_member ()
  2190. {
  2191. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2193. printf %s "checking for $2.$3... " >&6; }
  2194. if eval test \${$4+y}
  2195. then :
  2196. printf %s "(cached) " >&6
  2197. else $as_nop
  2198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2199. /* end confdefs.h. */
  2200. $5
  2201. int
  2202. main (void)
  2203. {
  2204. static $2 ac_aggr;
  2205. if (ac_aggr.$3)
  2206. return 0;
  2207. ;
  2208. return 0;
  2209. }
  2210. _ACEOF
  2211. if ac_fn_c_try_compile "$LINENO"
  2212. then :
  2213. eval "$4=yes"
  2214. else $as_nop
  2215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2216. /* end confdefs.h. */
  2217. $5
  2218. int
  2219. main (void)
  2220. {
  2221. static $2 ac_aggr;
  2222. if (sizeof ac_aggr.$3)
  2223. return 0;
  2224. ;
  2225. return 0;
  2226. }
  2227. _ACEOF
  2228. if ac_fn_c_try_compile "$LINENO"
  2229. then :
  2230. eval "$4=yes"
  2231. else $as_nop
  2232. eval "$4=no"
  2233. fi
  2234. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2235. fi
  2236. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2237. fi
  2238. eval ac_res=\$$4
  2239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2240. printf "%s\n" "$ac_res" >&6; }
  2241. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2242. } # ac_fn_c_check_member
  2243. ac_configure_args_raw=
  2244. for ac_arg
  2245. do
  2246. case $ac_arg in
  2247. *\'*)
  2248. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2249. esac
  2250. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2251. done
  2252. case $ac_configure_args_raw in
  2253. *$as_nl*)
  2254. ac_safe_unquote= ;;
  2255. *)
  2256. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2257. ac_unsafe_a="$ac_unsafe_z#~"
  2258. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2259. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2260. esac
  2261. cat >config.log <<_ACEOF
  2262. This file contains any messages produced by compilers while
  2263. running configure, to aid debugging if configure makes a mistake.
  2264. It was created by $as_me, which was
  2265. generated by GNU Autoconf 2.71. Invocation command line was
  2266. $ $0$ac_configure_args_raw
  2267. _ACEOF
  2268. exec 5>>config.log
  2269. {
  2270. cat <<_ASUNAME
  2271. ## --------- ##
  2272. ## Platform. ##
  2273. ## --------- ##
  2274. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2275. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2276. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2277. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2278. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2279. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2280. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2281. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2282. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2283. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2284. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2285. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2286. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2287. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2288. _ASUNAME
  2289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2290. for as_dir in $PATH
  2291. do
  2292. IFS=$as_save_IFS
  2293. case $as_dir in #(((
  2294. '') as_dir=./ ;;
  2295. */) ;;
  2296. *) as_dir=$as_dir/ ;;
  2297. esac
  2298. printf "%s\n" "PATH: $as_dir"
  2299. done
  2300. IFS=$as_save_IFS
  2301. } >&5
  2302. cat >&5 <<_ACEOF
  2303. ## ----------- ##
  2304. ## Core tests. ##
  2305. ## ----------- ##
  2306. _ACEOF
  2307. # Keep a trace of the command line.
  2308. # Strip out --no-create and --no-recursion so they do not pile up.
  2309. # Strip out --silent because we don't want to record it for future runs.
  2310. # Also quote any args containing shell meta-characters.
  2311. # Make two passes to allow for proper duplicate-argument suppression.
  2312. ac_configure_args=
  2313. ac_configure_args0=
  2314. ac_configure_args1=
  2315. ac_must_keep_next=false
  2316. for ac_pass in 1 2
  2317. do
  2318. for ac_arg
  2319. do
  2320. case $ac_arg in
  2321. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2322. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2323. | -silent | --silent | --silen | --sile | --sil)
  2324. continue ;;
  2325. *\'*)
  2326. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2327. esac
  2328. case $ac_pass in
  2329. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2330. 2)
  2331. as_fn_append ac_configure_args1 " '$ac_arg'"
  2332. if test $ac_must_keep_next = true; then
  2333. ac_must_keep_next=false # Got value, back to normal.
  2334. else
  2335. case $ac_arg in
  2336. *=* | --config-cache | -C | -disable-* | --disable-* \
  2337. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2338. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2339. | -with-* | --with-* | -without-* | --without-* | --x)
  2340. case "$ac_configure_args0 " in
  2341. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2342. esac
  2343. ;;
  2344. -* ) ac_must_keep_next=true ;;
  2345. esac
  2346. fi
  2347. as_fn_append ac_configure_args " '$ac_arg'"
  2348. ;;
  2349. esac
  2350. done
  2351. done
  2352. { ac_configure_args0=; unset ac_configure_args0;}
  2353. { ac_configure_args1=; unset ac_configure_args1;}
  2354. # When interrupted or exit'd, cleanup temporary files, and complete
  2355. # config.log. We remove comments because anyway the quotes in there
  2356. # would cause problems or look ugly.
  2357. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2358. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2359. trap 'exit_status=$?
  2360. # Sanitize IFS.
  2361. IFS=" "" $as_nl"
  2362. # Save into config.log some information that might help in debugging.
  2363. {
  2364. echo
  2365. printf "%s\n" "## ---------------- ##
  2366. ## Cache variables. ##
  2367. ## ---------------- ##"
  2368. echo
  2369. # The following way of writing the cache mishandles newlines in values,
  2370. (
  2371. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2372. eval ac_val=\$$ac_var
  2373. case $ac_val in #(
  2374. *${as_nl}*)
  2375. case $ac_var in #(
  2376. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2377. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2378. esac
  2379. case $ac_var in #(
  2380. _ | IFS | as_nl) ;; #(
  2381. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2382. *) { eval $ac_var=; unset $ac_var;} ;;
  2383. esac ;;
  2384. esac
  2385. done
  2386. (set) 2>&1 |
  2387. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2388. *${as_nl}ac_space=\ *)
  2389. sed -n \
  2390. "s/'\''/'\''\\\\'\'''\''/g;
  2391. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2392. ;; #(
  2393. *)
  2394. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2395. ;;
  2396. esac |
  2397. sort
  2398. )
  2399. echo
  2400. printf "%s\n" "## ----------------- ##
  2401. ## Output variables. ##
  2402. ## ----------------- ##"
  2403. echo
  2404. for ac_var in $ac_subst_vars
  2405. do
  2406. eval ac_val=\$$ac_var
  2407. case $ac_val in
  2408. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2409. esac
  2410. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2411. done | sort
  2412. echo
  2413. if test -n "$ac_subst_files"; then
  2414. printf "%s\n" "## ------------------- ##
  2415. ## File substitutions. ##
  2416. ## ------------------- ##"
  2417. echo
  2418. for ac_var in $ac_subst_files
  2419. do
  2420. eval ac_val=\$$ac_var
  2421. case $ac_val in
  2422. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2423. esac
  2424. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2425. done | sort
  2426. echo
  2427. fi
  2428. if test -s confdefs.h; then
  2429. printf "%s\n" "## ----------- ##
  2430. ## confdefs.h. ##
  2431. ## ----------- ##"
  2432. echo
  2433. cat confdefs.h
  2434. echo
  2435. fi
  2436. test "$ac_signal" != 0 &&
  2437. printf "%s\n" "$as_me: caught signal $ac_signal"
  2438. printf "%s\n" "$as_me: exit $exit_status"
  2439. } >&5
  2440. rm -f core *.core core.conftest.* &&
  2441. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2442. exit $exit_status
  2443. ' 0
  2444. for ac_signal in 1 2 13 15; do
  2445. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2446. done
  2447. ac_signal=0
  2448. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2449. rm -f -r conftest* confdefs.h
  2450. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2451. # Predefined preprocessor variables.
  2452. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2453. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2454. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2455. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2456. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2457. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2458. # Let the site file select an alternate cache file if it wants to.
  2459. # Prefer an explicitly selected file to automatically selected ones.
  2460. if test -n "$CONFIG_SITE"; then
  2461. ac_site_files="$CONFIG_SITE"
  2462. elif test "x$prefix" != xNONE; then
  2463. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2464. else
  2465. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2466. fi
  2467. for ac_site_file in $ac_site_files
  2468. do
  2469. case $ac_site_file in #(
  2470. */*) :
  2471. ;; #(
  2472. *) :
  2473. ac_site_file=./$ac_site_file ;;
  2474. esac
  2475. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2477. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2478. sed 's/^/| /' "$ac_site_file" >&5
  2479. . "$ac_site_file" \
  2480. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2481. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2482. as_fn_error $? "failed to load site script $ac_site_file
  2483. See \`config.log' for more details" "$LINENO" 5; }
  2484. fi
  2485. done
  2486. if test -r "$cache_file"; then
  2487. # Some versions of bash will fail to source /dev/null (special files
  2488. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2489. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2491. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2492. case $cache_file in
  2493. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2494. *) . "./$cache_file";;
  2495. esac
  2496. fi
  2497. else
  2498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2499. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2500. >$cache_file
  2501. fi
  2502. # Test code for whether the C compiler supports C89 (global declarations)
  2503. ac_c_conftest_c89_globals='
  2504. /* Does the compiler advertise C89 conformance?
  2505. Do not test the value of __STDC__, because some compilers set it to 0
  2506. while being otherwise adequately conformant. */
  2507. #if !defined __STDC__
  2508. # error "Compiler does not advertise C89 conformance"
  2509. #endif
  2510. #include <stddef.h>
  2511. #include <stdarg.h>
  2512. struct stat;
  2513. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2514. struct buf { int x; };
  2515. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2516. static char *e (p, i)
  2517. char **p;
  2518. int i;
  2519. {
  2520. return p[i];
  2521. }
  2522. static char *f (char * (*g) (char **, int), char **p, ...)
  2523. {
  2524. char *s;
  2525. va_list v;
  2526. va_start (v,p);
  2527. s = g (p, va_arg (v,int));
  2528. va_end (v);
  2529. return s;
  2530. }
  2531. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2532. function prototypes and stuff, but not \xHH hex character constants.
  2533. These do not provoke an error unfortunately, instead are silently treated
  2534. as an "x". The following induces an error, until -std is added to get
  2535. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2536. array size at least. It is necessary to write \x00 == 0 to get something
  2537. that is true only with -std. */
  2538. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2539. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2540. inside strings and character constants. */
  2541. #define FOO(x) '\''x'\''
  2542. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2543. int test (int i, double x);
  2544. struct s1 {int (*f) (int a);};
  2545. struct s2 {int (*f) (double a);};
  2546. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2547. int, int);'
  2548. # Test code for whether the C compiler supports C89 (body of main).
  2549. ac_c_conftest_c89_main='
  2550. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2551. '
  2552. # Test code for whether the C compiler supports C99 (global declarations)
  2553. ac_c_conftest_c99_globals='
  2554. // Does the compiler advertise C99 conformance?
  2555. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2556. # error "Compiler does not advertise C99 conformance"
  2557. #endif
  2558. #include <stdbool.h>
  2559. extern int puts (const char *);
  2560. extern int printf (const char *, ...);
  2561. extern int dprintf (int, const char *, ...);
  2562. extern void *malloc (size_t);
  2563. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2564. // dprintf is used instead of fprintf to avoid needing to declare
  2565. // FILE and stderr.
  2566. #define debug(...) dprintf (2, __VA_ARGS__)
  2567. #define showlist(...) puts (#__VA_ARGS__)
  2568. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2569. static void
  2570. test_varargs_macros (void)
  2571. {
  2572. int x = 1234;
  2573. int y = 5678;
  2574. debug ("Flag");
  2575. debug ("X = %d\n", x);
  2576. showlist (The first, second, and third items.);
  2577. report (x>y, "x is %d but y is %d", x, y);
  2578. }
  2579. // Check long long types.
  2580. #define BIG64 18446744073709551615ull
  2581. #define BIG32 4294967295ul
  2582. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2583. #if !BIG_OK
  2584. #error "your preprocessor is broken"
  2585. #endif
  2586. #if BIG_OK
  2587. #else
  2588. #error "your preprocessor is broken"
  2589. #endif
  2590. static long long int bignum = -9223372036854775807LL;
  2591. static unsigned long long int ubignum = BIG64;
  2592. struct incomplete_array
  2593. {
  2594. int datasize;
  2595. double data[];
  2596. };
  2597. struct named_init {
  2598. int number;
  2599. const wchar_t *name;
  2600. double average;
  2601. };
  2602. typedef const char *ccp;
  2603. static inline int
  2604. test_restrict (ccp restrict text)
  2605. {
  2606. // See if C++-style comments work.
  2607. // Iterate through items via the restricted pointer.
  2608. // Also check for declarations in for loops.
  2609. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2610. continue;
  2611. return 0;
  2612. }
  2613. // Check varargs and va_copy.
  2614. static bool
  2615. test_varargs (const char *format, ...)
  2616. {
  2617. va_list args;
  2618. va_start (args, format);
  2619. va_list args_copy;
  2620. va_copy (args_copy, args);
  2621. const char *str = "";
  2622. int number = 0;
  2623. float fnumber = 0;
  2624. while (*format)
  2625. {
  2626. switch (*format++)
  2627. {
  2628. case '\''s'\'': // string
  2629. str = va_arg (args_copy, const char *);
  2630. break;
  2631. case '\''d'\'': // int
  2632. number = va_arg (args_copy, int);
  2633. break;
  2634. case '\''f'\'': // float
  2635. fnumber = va_arg (args_copy, double);
  2636. break;
  2637. default:
  2638. break;
  2639. }
  2640. }
  2641. va_end (args_copy);
  2642. va_end (args);
  2643. return *str && number && fnumber;
  2644. }
  2645. '
  2646. # Test code for whether the C compiler supports C99 (body of main).
  2647. ac_c_conftest_c99_main='
  2648. // Check bool.
  2649. _Bool success = false;
  2650. success |= (argc != 0);
  2651. // Check restrict.
  2652. if (test_restrict ("String literal") == 0)
  2653. success = true;
  2654. char *restrict newvar = "Another string";
  2655. // Check varargs.
  2656. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2657. test_varargs_macros ();
  2658. // Check flexible array members.
  2659. struct incomplete_array *ia =
  2660. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2661. ia->datasize = 10;
  2662. for (int i = 0; i < ia->datasize; ++i)
  2663. ia->data[i] = i * 1.234;
  2664. // Check named initializers.
  2665. struct named_init ni = {
  2666. .number = 34,
  2667. .name = L"Test wide string",
  2668. .average = 543.34343,
  2669. };
  2670. ni.number = 58;
  2671. int dynamic_array[ni.number];
  2672. dynamic_array[0] = argv[0][0];
  2673. dynamic_array[ni.number - 1] = 543;
  2674. // work around unused variable warnings
  2675. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2676. || dynamic_array[ni.number - 1] != 543);
  2677. '
  2678. # Test code for whether the C compiler supports C11 (global declarations)
  2679. ac_c_conftest_c11_globals='
  2680. // Does the compiler advertise C11 conformance?
  2681. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2682. # error "Compiler does not advertise C11 conformance"
  2683. #endif
  2684. // Check _Alignas.
  2685. char _Alignas (double) aligned_as_double;
  2686. char _Alignas (0) no_special_alignment;
  2687. extern char aligned_as_int;
  2688. char _Alignas (0) _Alignas (int) aligned_as_int;
  2689. // Check _Alignof.
  2690. enum
  2691. {
  2692. int_alignment = _Alignof (int),
  2693. int_array_alignment = _Alignof (int[100]),
  2694. char_alignment = _Alignof (char)
  2695. };
  2696. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2697. // Check _Noreturn.
  2698. int _Noreturn does_not_return (void) { for (;;) continue; }
  2699. // Check _Static_assert.
  2700. struct test_static_assert
  2701. {
  2702. int x;
  2703. _Static_assert (sizeof (int) <= sizeof (long int),
  2704. "_Static_assert does not work in struct");
  2705. long int y;
  2706. };
  2707. // Check UTF-8 literals.
  2708. #define u8 syntax error!
  2709. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2710. // Check duplicate typedefs.
  2711. typedef long *long_ptr;
  2712. typedef long int *long_ptr;
  2713. typedef long_ptr long_ptr;
  2714. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2715. struct anonymous
  2716. {
  2717. union {
  2718. struct { int i; int j; };
  2719. struct { int k; long int l; } w;
  2720. };
  2721. int m;
  2722. } v1;
  2723. '
  2724. # Test code for whether the C compiler supports C11 (body of main).
  2725. ac_c_conftest_c11_main='
  2726. _Static_assert ((offsetof (struct anonymous, i)
  2727. == offsetof (struct anonymous, w.k)),
  2728. "Anonymous union alignment botch");
  2729. v1.i = 2;
  2730. v1.w.k = 5;
  2731. ok |= v1.i != 5;
  2732. '
  2733. # Test code for whether the C compiler supports C11 (complete).
  2734. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2735. ${ac_c_conftest_c99_globals}
  2736. ${ac_c_conftest_c11_globals}
  2737. int
  2738. main (int argc, char **argv)
  2739. {
  2740. int ok = 0;
  2741. ${ac_c_conftest_c89_main}
  2742. ${ac_c_conftest_c99_main}
  2743. ${ac_c_conftest_c11_main}
  2744. return ok;
  2745. }
  2746. "
  2747. # Test code for whether the C compiler supports C99 (complete).
  2748. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2749. ${ac_c_conftest_c99_globals}
  2750. int
  2751. main (int argc, char **argv)
  2752. {
  2753. int ok = 0;
  2754. ${ac_c_conftest_c89_main}
  2755. ${ac_c_conftest_c99_main}
  2756. return ok;
  2757. }
  2758. "
  2759. # Test code for whether the C compiler supports C89 (complete).
  2760. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2761. int
  2762. main (int argc, char **argv)
  2763. {
  2764. int ok = 0;
  2765. ${ac_c_conftest_c89_main}
  2766. return ok;
  2767. }
  2768. "
  2769. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2770. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2771. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2772. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2773. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2774. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2775. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2776. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2777. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2778. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2779. ac_cxx_conftest_cxx98_globals='
  2780. // Does the compiler advertise C++98 conformance?
  2781. #if !defined __cplusplus || __cplusplus < 199711L
  2782. # error "Compiler does not advertise C++98 conformance"
  2783. #endif
  2784. // These inclusions are to reject old compilers that
  2785. // lack the unsuffixed header files.
  2786. #include <cstdlib>
  2787. #include <exception>
  2788. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2789. extern void assert (int);
  2790. namespace std {
  2791. extern int strcmp (const char *, const char *);
  2792. }
  2793. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2794. using std::exception;
  2795. using std::strcmp;
  2796. namespace {
  2797. void test_exception_syntax()
  2798. {
  2799. try {
  2800. throw "test";
  2801. } catch (const char *s) {
  2802. // Extra parentheses suppress a warning when building autoconf itself,
  2803. // due to lint rules shared with more typical C programs.
  2804. assert (!(strcmp) (s, "test"));
  2805. }
  2806. }
  2807. template <typename T> struct test_template
  2808. {
  2809. T const val;
  2810. explicit test_template(T t) : val(t) {}
  2811. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2812. };
  2813. } // anonymous namespace
  2814. '
  2815. # Test code for whether the C++ compiler supports C++98 (body of main)
  2816. ac_cxx_conftest_cxx98_main='
  2817. assert (argc);
  2818. assert (! argv[0]);
  2819. {
  2820. test_exception_syntax ();
  2821. test_template<double> tt (2.0);
  2822. assert (tt.add (4) == 6.0);
  2823. assert (true && !false);
  2824. }
  2825. '
  2826. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2827. ac_cxx_conftest_cxx11_globals='
  2828. // Does the compiler advertise C++ 2011 conformance?
  2829. #if !defined __cplusplus || __cplusplus < 201103L
  2830. # error "Compiler does not advertise C++11 conformance"
  2831. #endif
  2832. namespace cxx11test
  2833. {
  2834. constexpr int get_val() { return 20; }
  2835. struct testinit
  2836. {
  2837. int i;
  2838. double d;
  2839. };
  2840. class delegate
  2841. {
  2842. public:
  2843. delegate(int n) : n(n) {}
  2844. delegate(): delegate(2354) {}
  2845. virtual int getval() { return this->n; };
  2846. protected:
  2847. int n;
  2848. };
  2849. class overridden : public delegate
  2850. {
  2851. public:
  2852. overridden(int n): delegate(n) {}
  2853. virtual int getval() override final { return this->n * 2; }
  2854. };
  2855. class nocopy
  2856. {
  2857. public:
  2858. nocopy(int i): i(i) {}
  2859. nocopy() = default;
  2860. nocopy(const nocopy&) = delete;
  2861. nocopy & operator=(const nocopy&) = delete;
  2862. private:
  2863. int i;
  2864. };
  2865. // for testing lambda expressions
  2866. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2867. {
  2868. return f(v);
  2869. }
  2870. // for testing variadic templates and trailing return types
  2871. template <typename V> auto sum(V first) -> V
  2872. {
  2873. return first;
  2874. }
  2875. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2876. {
  2877. return first + sum(rest...);
  2878. }
  2879. }
  2880. '
  2881. # Test code for whether the C++ compiler supports C++11 (body of main)
  2882. ac_cxx_conftest_cxx11_main='
  2883. {
  2884. // Test auto and decltype
  2885. auto a1 = 6538;
  2886. auto a2 = 48573953.4;
  2887. auto a3 = "String literal";
  2888. int total = 0;
  2889. for (auto i = a3; *i; ++i) { total += *i; }
  2890. decltype(a2) a4 = 34895.034;
  2891. }
  2892. {
  2893. // Test constexpr
  2894. short sa[cxx11test::get_val()] = { 0 };
  2895. }
  2896. {
  2897. // Test initializer lists
  2898. cxx11test::testinit il = { 4323, 435234.23544 };
  2899. }
  2900. {
  2901. // Test range-based for
  2902. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2903. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2904. for (auto &x : array) { x += 23; }
  2905. }
  2906. {
  2907. // Test lambda expressions
  2908. using cxx11test::eval;
  2909. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2910. double d = 2.0;
  2911. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2912. assert (d == 5.0);
  2913. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2914. assert (d == 5.0);
  2915. }
  2916. {
  2917. // Test use of variadic templates
  2918. using cxx11test::sum;
  2919. auto a = sum(1);
  2920. auto b = sum(1, 2);
  2921. auto c = sum(1.0, 2.0, 3.0);
  2922. }
  2923. {
  2924. // Test constructor delegation
  2925. cxx11test::delegate d1;
  2926. cxx11test::delegate d2();
  2927. cxx11test::delegate d3(45);
  2928. }
  2929. {
  2930. // Test override and final
  2931. cxx11test::overridden o1(55464);
  2932. }
  2933. {
  2934. // Test nullptr
  2935. char *c = nullptr;
  2936. }
  2937. {
  2938. // Test template brackets
  2939. test_template<::test_template<int>> v(test_template<int>(12));
  2940. }
  2941. {
  2942. // Unicode literals
  2943. char const *utf8 = u8"UTF-8 string \u2500";
  2944. char16_t const *utf16 = u"UTF-8 string \u2500";
  2945. char32_t const *utf32 = U"UTF-32 string \u2500";
  2946. }
  2947. '
  2948. # Test code for whether the C compiler supports C++11 (complete).
  2949. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2950. ${ac_cxx_conftest_cxx11_globals}
  2951. int
  2952. main (int argc, char **argv)
  2953. {
  2954. int ok = 0;
  2955. ${ac_cxx_conftest_cxx98_main}
  2956. ${ac_cxx_conftest_cxx11_main}
  2957. return ok;
  2958. }
  2959. "
  2960. # Test code for whether the C compiler supports C++98 (complete).
  2961. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2962. int
  2963. main (int argc, char **argv)
  2964. {
  2965. int ok = 0;
  2966. ${ac_cxx_conftest_cxx98_main}
  2967. return ok;
  2968. }
  2969. "
  2970. # Auxiliary files required by this configure script.
  2971. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2972. # Locations in which to look for auxiliary files.
  2973. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2974. # Search for a directory containing all of the required auxiliary files,
  2975. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2976. # If we don't find one directory that contains all the files we need,
  2977. # we report the set of missing files from the *first* directory in
  2978. # $ac_aux_dir_candidates and give up.
  2979. ac_missing_aux_files=""
  2980. ac_first_candidate=:
  2981. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2983. as_found=false
  2984. for as_dir in $ac_aux_dir_candidates
  2985. do
  2986. IFS=$as_save_IFS
  2987. case $as_dir in #(((
  2988. '') as_dir=./ ;;
  2989. */) ;;
  2990. *) as_dir=$as_dir/ ;;
  2991. esac
  2992. as_found=:
  2993. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2994. ac_aux_dir_found=yes
  2995. ac_install_sh=
  2996. for ac_aux in $ac_aux_files
  2997. do
  2998. # As a special case, if "install-sh" is required, that requirement
  2999. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3000. # and $ac_install_sh is set appropriately for whichever one is found.
  3001. if test x"$ac_aux" = x"install-sh"
  3002. then
  3003. if test -f "${as_dir}install-sh"; then
  3004. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3005. ac_install_sh="${as_dir}install-sh -c"
  3006. elif test -f "${as_dir}install.sh"; then
  3007. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3008. ac_install_sh="${as_dir}install.sh -c"
  3009. elif test -f "${as_dir}shtool"; then
  3010. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3011. ac_install_sh="${as_dir}shtool install -c"
  3012. else
  3013. ac_aux_dir_found=no
  3014. if $ac_first_candidate; then
  3015. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3016. else
  3017. break
  3018. fi
  3019. fi
  3020. else
  3021. if test -f "${as_dir}${ac_aux}"; then
  3022. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3023. else
  3024. ac_aux_dir_found=no
  3025. if $ac_first_candidate; then
  3026. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3027. else
  3028. break
  3029. fi
  3030. fi
  3031. fi
  3032. done
  3033. if test "$ac_aux_dir_found" = yes; then
  3034. ac_aux_dir="$as_dir"
  3035. break
  3036. fi
  3037. ac_first_candidate=false
  3038. as_found=false
  3039. done
  3040. IFS=$as_save_IFS
  3041. if $as_found
  3042. then :
  3043. else $as_nop
  3044. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3045. fi
  3046. # These three variables are undocumented and unsupported,
  3047. # and are intended to be withdrawn in a future Autoconf release.
  3048. # They can cause serious problems if a builder's source tree is in a directory
  3049. # whose full name contains unusual characters.
  3050. if test -f "${ac_aux_dir}config.guess"; then
  3051. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3052. fi
  3053. if test -f "${ac_aux_dir}config.sub"; then
  3054. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3055. fi
  3056. if test -f "$ac_aux_dir/configure"; then
  3057. ac_configure="$SHELL ${ac_aux_dir}configure"
  3058. fi
  3059. # Check that the precious variables saved in the cache have kept the same
  3060. # value.
  3061. ac_cache_corrupted=false
  3062. for ac_var in $ac_precious_vars; do
  3063. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3064. eval ac_new_set=\$ac_env_${ac_var}_set
  3065. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3066. eval ac_new_val=\$ac_env_${ac_var}_value
  3067. case $ac_old_set,$ac_new_set in
  3068. set,)
  3069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3070. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3071. ac_cache_corrupted=: ;;
  3072. ,set)
  3073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3074. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3075. ac_cache_corrupted=: ;;
  3076. ,);;
  3077. *)
  3078. if test "x$ac_old_val" != "x$ac_new_val"; then
  3079. # differences in whitespace do not lead to failure.
  3080. ac_old_val_w=`echo x $ac_old_val`
  3081. ac_new_val_w=`echo x $ac_new_val`
  3082. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3084. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3085. ac_cache_corrupted=:
  3086. else
  3087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3088. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3089. eval $ac_var=\$ac_old_val
  3090. fi
  3091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3092. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3094. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3095. fi;;
  3096. esac
  3097. # Pass precious variables to config.status.
  3098. if test "$ac_new_set" = set; then
  3099. case $ac_new_val in
  3100. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3101. *) ac_arg=$ac_var=$ac_new_val ;;
  3102. esac
  3103. case " $ac_configure_args " in
  3104. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3105. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3106. esac
  3107. fi
  3108. done
  3109. if $ac_cache_corrupted; then
  3110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3111. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3113. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3114. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3115. and start over" "$LINENO" 5
  3116. fi
  3117. ## -------------------- ##
  3118. ## Main body of script. ##
  3119. ## -------------------- ##
  3120. ac_ext=c
  3121. ac_cpp='$CPP $CPPFLAGS'
  3122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3125. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3126. orig_CFLAGS="$CFLAGS"
  3127. # See docs/release_checklist.md
  3128. SDL_MAJOR_VERSION=2
  3129. SDL_MINOR_VERSION=25
  3130. SDL_MICRO_VERSION=0
  3131. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3132. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3133. case "$SDL_MINOR_VERSION" in #(
  3134. *[02468]) :
  3135. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3136. *) :
  3137. SDL_INTERFACE_AGE=0 ;; #(
  3138. *) :
  3139. ;;
  3140. esac
  3141. # libtool versioning
  3142. case `pwd` in
  3143. *\ * | *\ *)
  3144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3145. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3146. esac
  3147. macro_version='2.4.6'
  3148. macro_revision='2.4.6'
  3149. ltmain=$ac_aux_dir/ltmain.sh
  3150. # Make sure we can run config.sub.
  3151. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3152. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3154. printf %s "checking build system type... " >&6; }
  3155. if test ${ac_cv_build+y}
  3156. then :
  3157. printf %s "(cached) " >&6
  3158. else $as_nop
  3159. ac_build_alias=$build_alias
  3160. test "x$ac_build_alias" = x &&
  3161. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3162. test "x$ac_build_alias" = x &&
  3163. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3164. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3165. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3166. fi
  3167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3168. printf "%s\n" "$ac_cv_build" >&6; }
  3169. case $ac_cv_build in
  3170. *-*-*) ;;
  3171. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3172. esac
  3173. build=$ac_cv_build
  3174. ac_save_IFS=$IFS; IFS='-'
  3175. set x $ac_cv_build
  3176. shift
  3177. build_cpu=$1
  3178. build_vendor=$2
  3179. shift; shift
  3180. # Remember, the first character of IFS is used to create $*,
  3181. # except with old shells:
  3182. build_os=$*
  3183. IFS=$ac_save_IFS
  3184. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3186. printf %s "checking host system type... " >&6; }
  3187. if test ${ac_cv_host+y}
  3188. then :
  3189. printf %s "(cached) " >&6
  3190. else $as_nop
  3191. if test "x$host_alias" = x; then
  3192. ac_cv_host=$ac_cv_build
  3193. else
  3194. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3195. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3196. fi
  3197. fi
  3198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3199. printf "%s\n" "$ac_cv_host" >&6; }
  3200. case $ac_cv_host in
  3201. *-*-*) ;;
  3202. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3203. esac
  3204. host=$ac_cv_host
  3205. ac_save_IFS=$IFS; IFS='-'
  3206. set x $ac_cv_host
  3207. shift
  3208. host_cpu=$1
  3209. host_vendor=$2
  3210. shift; shift
  3211. # Remember, the first character of IFS is used to create $*,
  3212. # except with old shells:
  3213. host_os=$*
  3214. IFS=$ac_save_IFS
  3215. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3216. # Backslashify metacharacters that are still active within
  3217. # double-quoted strings.
  3218. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3219. # Same as above, but do not quote variable references.
  3220. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3221. # Sed substitution to delay expansion of an escaped shell variable in a
  3222. # double_quote_subst'ed string.
  3223. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3224. # Sed substitution to delay expansion of an escaped single quote.
  3225. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3226. # Sed substitution to avoid accidental globbing in evaled expressions
  3227. no_glob_subst='s/\*/\\\*/g'
  3228. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3229. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3230. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3232. printf %s "checking how to print strings... " >&6; }
  3233. # Test print first, because it will be a builtin if present.
  3234. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3235. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3236. ECHO='print -r --'
  3237. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3238. ECHO='printf %s\n'
  3239. else
  3240. # Use this function as a fallback that always works.
  3241. func_fallback_echo ()
  3242. {
  3243. eval 'cat <<_LTECHO_EOF
  3244. $1
  3245. _LTECHO_EOF'
  3246. }
  3247. ECHO='func_fallback_echo'
  3248. fi
  3249. # func_echo_all arg...
  3250. # Invoke $ECHO with all args, space-separated.
  3251. func_echo_all ()
  3252. {
  3253. $ECHO ""
  3254. }
  3255. case $ECHO in
  3256. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3257. printf "%s\n" "printf" >&6; } ;;
  3258. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3259. printf "%s\n" "print -r" >&6; } ;;
  3260. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3261. printf "%s\n" "cat" >&6; } ;;
  3262. esac
  3263. ac_ext=c
  3264. ac_cpp='$CPP $CPPFLAGS'
  3265. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3266. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3267. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3268. if test -n "$ac_tool_prefix"; then
  3269. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3270. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3272. printf %s "checking for $ac_word... " >&6; }
  3273. if test ${ac_cv_prog_CC+y}
  3274. then :
  3275. printf %s "(cached) " >&6
  3276. else $as_nop
  3277. if test -n "$CC"; then
  3278. ac_cv_prog_CC="$CC" # Let the user override the test.
  3279. else
  3280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3281. for as_dir in $PATH
  3282. do
  3283. IFS=$as_save_IFS
  3284. case $as_dir in #(((
  3285. '') as_dir=./ ;;
  3286. */) ;;
  3287. *) as_dir=$as_dir/ ;;
  3288. esac
  3289. for ac_exec_ext in '' $ac_executable_extensions; do
  3290. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3291. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3292. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3293. break 2
  3294. fi
  3295. done
  3296. done
  3297. IFS=$as_save_IFS
  3298. fi
  3299. fi
  3300. CC=$ac_cv_prog_CC
  3301. if test -n "$CC"; then
  3302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3303. printf "%s\n" "$CC" >&6; }
  3304. else
  3305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3306. printf "%s\n" "no" >&6; }
  3307. fi
  3308. fi
  3309. if test -z "$ac_cv_prog_CC"; then
  3310. ac_ct_CC=$CC
  3311. # Extract the first word of "gcc", so it can be a program name with args.
  3312. set dummy gcc; ac_word=$2
  3313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3314. printf %s "checking for $ac_word... " >&6; }
  3315. if test ${ac_cv_prog_ac_ct_CC+y}
  3316. then :
  3317. printf %s "(cached) " >&6
  3318. else $as_nop
  3319. if test -n "$ac_ct_CC"; then
  3320. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3321. else
  3322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3323. for as_dir in $PATH
  3324. do
  3325. IFS=$as_save_IFS
  3326. case $as_dir in #(((
  3327. '') as_dir=./ ;;
  3328. */) ;;
  3329. *) as_dir=$as_dir/ ;;
  3330. esac
  3331. for ac_exec_ext in '' $ac_executable_extensions; do
  3332. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3333. ac_cv_prog_ac_ct_CC="gcc"
  3334. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3335. break 2
  3336. fi
  3337. done
  3338. done
  3339. IFS=$as_save_IFS
  3340. fi
  3341. fi
  3342. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3343. if test -n "$ac_ct_CC"; then
  3344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3345. printf "%s\n" "$ac_ct_CC" >&6; }
  3346. else
  3347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3348. printf "%s\n" "no" >&6; }
  3349. fi
  3350. if test "x$ac_ct_CC" = x; then
  3351. CC=""
  3352. else
  3353. case $cross_compiling:$ac_tool_warned in
  3354. yes:)
  3355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3356. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3357. ac_tool_warned=yes ;;
  3358. esac
  3359. CC=$ac_ct_CC
  3360. fi
  3361. else
  3362. CC="$ac_cv_prog_CC"
  3363. fi
  3364. if test -z "$CC"; then
  3365. if test -n "$ac_tool_prefix"; then
  3366. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3367. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3369. printf %s "checking for $ac_word... " >&6; }
  3370. if test ${ac_cv_prog_CC+y}
  3371. then :
  3372. printf %s "(cached) " >&6
  3373. else $as_nop
  3374. if test -n "$CC"; then
  3375. ac_cv_prog_CC="$CC" # Let the user override the test.
  3376. else
  3377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3378. for as_dir in $PATH
  3379. do
  3380. IFS=$as_save_IFS
  3381. case $as_dir in #(((
  3382. '') as_dir=./ ;;
  3383. */) ;;
  3384. *) as_dir=$as_dir/ ;;
  3385. esac
  3386. for ac_exec_ext in '' $ac_executable_extensions; do
  3387. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3388. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3389. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3390. break 2
  3391. fi
  3392. done
  3393. done
  3394. IFS=$as_save_IFS
  3395. fi
  3396. fi
  3397. CC=$ac_cv_prog_CC
  3398. if test -n "$CC"; then
  3399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3400. printf "%s\n" "$CC" >&6; }
  3401. else
  3402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3403. printf "%s\n" "no" >&6; }
  3404. fi
  3405. fi
  3406. fi
  3407. if test -z "$CC"; then
  3408. # Extract the first word of "cc", so it can be a program name with args.
  3409. set dummy cc; ac_word=$2
  3410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3411. printf %s "checking for $ac_word... " >&6; }
  3412. if test ${ac_cv_prog_CC+y}
  3413. then :
  3414. printf %s "(cached) " >&6
  3415. else $as_nop
  3416. if test -n "$CC"; then
  3417. ac_cv_prog_CC="$CC" # Let the user override the test.
  3418. else
  3419. ac_prog_rejected=no
  3420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3421. for as_dir in $PATH
  3422. do
  3423. IFS=$as_save_IFS
  3424. case $as_dir in #(((
  3425. '') as_dir=./ ;;
  3426. */) ;;
  3427. *) as_dir=$as_dir/ ;;
  3428. esac
  3429. for ac_exec_ext in '' $ac_executable_extensions; do
  3430. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3431. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3432. ac_prog_rejected=yes
  3433. continue
  3434. fi
  3435. ac_cv_prog_CC="cc"
  3436. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3437. break 2
  3438. fi
  3439. done
  3440. done
  3441. IFS=$as_save_IFS
  3442. if test $ac_prog_rejected = yes; then
  3443. # We found a bogon in the path, so make sure we never use it.
  3444. set dummy $ac_cv_prog_CC
  3445. shift
  3446. if test $# != 0; then
  3447. # We chose a different compiler from the bogus one.
  3448. # However, it has the same basename, so the bogon will be chosen
  3449. # first if we set CC to just the basename; use the full file name.
  3450. shift
  3451. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3452. fi
  3453. fi
  3454. fi
  3455. fi
  3456. CC=$ac_cv_prog_CC
  3457. if test -n "$CC"; then
  3458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3459. printf "%s\n" "$CC" >&6; }
  3460. else
  3461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3462. printf "%s\n" "no" >&6; }
  3463. fi
  3464. fi
  3465. if test -z "$CC"; then
  3466. if test -n "$ac_tool_prefix"; then
  3467. for ac_prog in cl.exe
  3468. do
  3469. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3470. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3472. printf %s "checking for $ac_word... " >&6; }
  3473. if test ${ac_cv_prog_CC+y}
  3474. then :
  3475. printf %s "(cached) " >&6
  3476. else $as_nop
  3477. if test -n "$CC"; then
  3478. ac_cv_prog_CC="$CC" # Let the user override the test.
  3479. else
  3480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3481. for as_dir in $PATH
  3482. do
  3483. IFS=$as_save_IFS
  3484. case $as_dir in #(((
  3485. '') as_dir=./ ;;
  3486. */) ;;
  3487. *) as_dir=$as_dir/ ;;
  3488. esac
  3489. for ac_exec_ext in '' $ac_executable_extensions; do
  3490. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3491. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3492. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3493. break 2
  3494. fi
  3495. done
  3496. done
  3497. IFS=$as_save_IFS
  3498. fi
  3499. fi
  3500. CC=$ac_cv_prog_CC
  3501. if test -n "$CC"; then
  3502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3503. printf "%s\n" "$CC" >&6; }
  3504. else
  3505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3506. printf "%s\n" "no" >&6; }
  3507. fi
  3508. test -n "$CC" && break
  3509. done
  3510. fi
  3511. if test -z "$CC"; then
  3512. ac_ct_CC=$CC
  3513. for ac_prog in cl.exe
  3514. do
  3515. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3516. set dummy $ac_prog; ac_word=$2
  3517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3518. printf %s "checking for $ac_word... " >&6; }
  3519. if test ${ac_cv_prog_ac_ct_CC+y}
  3520. then :
  3521. printf %s "(cached) " >&6
  3522. else $as_nop
  3523. if test -n "$ac_ct_CC"; then
  3524. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3525. else
  3526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3527. for as_dir in $PATH
  3528. do
  3529. IFS=$as_save_IFS
  3530. case $as_dir in #(((
  3531. '') as_dir=./ ;;
  3532. */) ;;
  3533. *) as_dir=$as_dir/ ;;
  3534. esac
  3535. for ac_exec_ext in '' $ac_executable_extensions; do
  3536. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3537. ac_cv_prog_ac_ct_CC="$ac_prog"
  3538. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3539. break 2
  3540. fi
  3541. done
  3542. done
  3543. IFS=$as_save_IFS
  3544. fi
  3545. fi
  3546. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3547. if test -n "$ac_ct_CC"; then
  3548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3549. printf "%s\n" "$ac_ct_CC" >&6; }
  3550. else
  3551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3552. printf "%s\n" "no" >&6; }
  3553. fi
  3554. test -n "$ac_ct_CC" && break
  3555. done
  3556. if test "x$ac_ct_CC" = x; then
  3557. CC=""
  3558. else
  3559. case $cross_compiling:$ac_tool_warned in
  3560. yes:)
  3561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3562. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3563. ac_tool_warned=yes ;;
  3564. esac
  3565. CC=$ac_ct_CC
  3566. fi
  3567. fi
  3568. fi
  3569. if test -z "$CC"; then
  3570. if test -n "$ac_tool_prefix"; then
  3571. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3572. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3574. printf %s "checking for $ac_word... " >&6; }
  3575. if test ${ac_cv_prog_CC+y}
  3576. then :
  3577. printf %s "(cached) " >&6
  3578. else $as_nop
  3579. if test -n "$CC"; then
  3580. ac_cv_prog_CC="$CC" # Let the user override the test.
  3581. else
  3582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3583. for as_dir in $PATH
  3584. do
  3585. IFS=$as_save_IFS
  3586. case $as_dir in #(((
  3587. '') as_dir=./ ;;
  3588. */) ;;
  3589. *) as_dir=$as_dir/ ;;
  3590. esac
  3591. for ac_exec_ext in '' $ac_executable_extensions; do
  3592. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3593. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3594. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3595. break 2
  3596. fi
  3597. done
  3598. done
  3599. IFS=$as_save_IFS
  3600. fi
  3601. fi
  3602. CC=$ac_cv_prog_CC
  3603. if test -n "$CC"; then
  3604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3605. printf "%s\n" "$CC" >&6; }
  3606. else
  3607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3608. printf "%s\n" "no" >&6; }
  3609. fi
  3610. fi
  3611. if test -z "$ac_cv_prog_CC"; then
  3612. ac_ct_CC=$CC
  3613. # Extract the first word of "clang", so it can be a program name with args.
  3614. set dummy clang; ac_word=$2
  3615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3616. printf %s "checking for $ac_word... " >&6; }
  3617. if test ${ac_cv_prog_ac_ct_CC+y}
  3618. then :
  3619. printf %s "(cached) " >&6
  3620. else $as_nop
  3621. if test -n "$ac_ct_CC"; then
  3622. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3623. else
  3624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3625. for as_dir in $PATH
  3626. do
  3627. IFS=$as_save_IFS
  3628. case $as_dir in #(((
  3629. '') as_dir=./ ;;
  3630. */) ;;
  3631. *) as_dir=$as_dir/ ;;
  3632. esac
  3633. for ac_exec_ext in '' $ac_executable_extensions; do
  3634. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3635. ac_cv_prog_ac_ct_CC="clang"
  3636. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3637. break 2
  3638. fi
  3639. done
  3640. done
  3641. IFS=$as_save_IFS
  3642. fi
  3643. fi
  3644. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3645. if test -n "$ac_ct_CC"; then
  3646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3647. printf "%s\n" "$ac_ct_CC" >&6; }
  3648. else
  3649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3650. printf "%s\n" "no" >&6; }
  3651. fi
  3652. if test "x$ac_ct_CC" = x; then
  3653. CC=""
  3654. else
  3655. case $cross_compiling:$ac_tool_warned in
  3656. yes:)
  3657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3658. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3659. ac_tool_warned=yes ;;
  3660. esac
  3661. CC=$ac_ct_CC
  3662. fi
  3663. else
  3664. CC="$ac_cv_prog_CC"
  3665. fi
  3666. fi
  3667. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3668. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3669. as_fn_error $? "no acceptable C compiler found in \$PATH
  3670. See \`config.log' for more details" "$LINENO" 5; }
  3671. # Provide some information about the compiler.
  3672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3673. set X $ac_compile
  3674. ac_compiler=$2
  3675. for ac_option in --version -v -V -qversion -version; do
  3676. { { ac_try="$ac_compiler $ac_option >&5"
  3677. case "(($ac_try" in
  3678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3679. *) ac_try_echo=$ac_try;;
  3680. esac
  3681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3682. printf "%s\n" "$ac_try_echo"; } >&5
  3683. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3684. ac_status=$?
  3685. if test -s conftest.err; then
  3686. sed '10a\
  3687. ... rest of stderr output deleted ...
  3688. 10q' conftest.err >conftest.er1
  3689. cat conftest.er1 >&5
  3690. fi
  3691. rm -f conftest.er1 conftest.err
  3692. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3693. test $ac_status = 0; }
  3694. done
  3695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3696. /* end confdefs.h. */
  3697. int
  3698. main (void)
  3699. {
  3700. ;
  3701. return 0;
  3702. }
  3703. _ACEOF
  3704. ac_clean_files_save=$ac_clean_files
  3705. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3706. # Try to create an executable without -o first, disregard a.out.
  3707. # It will help us diagnose broken compilers, and finding out an intuition
  3708. # of exeext.
  3709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3710. printf %s "checking whether the C compiler works... " >&6; }
  3711. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3712. # The possible output files:
  3713. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3714. ac_rmfiles=
  3715. for ac_file in $ac_files
  3716. do
  3717. case $ac_file in
  3718. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3719. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3720. esac
  3721. done
  3722. rm -f $ac_rmfiles
  3723. if { { ac_try="$ac_link_default"
  3724. case "(($ac_try" in
  3725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3726. *) ac_try_echo=$ac_try;;
  3727. esac
  3728. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3729. printf "%s\n" "$ac_try_echo"; } >&5
  3730. (eval "$ac_link_default") 2>&5
  3731. ac_status=$?
  3732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3733. test $ac_status = 0; }
  3734. then :
  3735. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3736. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3737. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3738. # so that the user can short-circuit this test for compilers unknown to
  3739. # Autoconf.
  3740. for ac_file in $ac_files ''
  3741. do
  3742. test -f "$ac_file" || continue
  3743. case $ac_file in
  3744. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3745. ;;
  3746. [ab].out )
  3747. # We found the default executable, but exeext='' is most
  3748. # certainly right.
  3749. break;;
  3750. *.* )
  3751. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3752. then :; else
  3753. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3754. fi
  3755. # We set ac_cv_exeext here because the later test for it is not
  3756. # safe: cross compilers may not add the suffix if given an `-o'
  3757. # argument, so we may need to know it at that point already.
  3758. # Even if this section looks crufty: it has the advantage of
  3759. # actually working.
  3760. break;;
  3761. * )
  3762. break;;
  3763. esac
  3764. done
  3765. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3766. else $as_nop
  3767. ac_file=''
  3768. fi
  3769. if test -z "$ac_file"
  3770. then :
  3771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3772. printf "%s\n" "no" >&6; }
  3773. printf "%s\n" "$as_me: failed program was:" >&5
  3774. sed 's/^/| /' conftest.$ac_ext >&5
  3775. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3776. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3777. as_fn_error 77 "C compiler cannot create executables
  3778. See \`config.log' for more details" "$LINENO" 5; }
  3779. else $as_nop
  3780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3781. printf "%s\n" "yes" >&6; }
  3782. fi
  3783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3784. printf %s "checking for C compiler default output file name... " >&6; }
  3785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3786. printf "%s\n" "$ac_file" >&6; }
  3787. ac_exeext=$ac_cv_exeext
  3788. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3789. ac_clean_files=$ac_clean_files_save
  3790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3791. printf %s "checking for suffix of executables... " >&6; }
  3792. if { { ac_try="$ac_link"
  3793. case "(($ac_try" in
  3794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3795. *) ac_try_echo=$ac_try;;
  3796. esac
  3797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3798. printf "%s\n" "$ac_try_echo"; } >&5
  3799. (eval "$ac_link") 2>&5
  3800. ac_status=$?
  3801. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3802. test $ac_status = 0; }
  3803. then :
  3804. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3805. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3806. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3807. # `rm'.
  3808. for ac_file in conftest.exe conftest conftest.*; do
  3809. test -f "$ac_file" || continue
  3810. case $ac_file in
  3811. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3812. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3813. break;;
  3814. * ) break;;
  3815. esac
  3816. done
  3817. else $as_nop
  3818. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3819. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3820. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3821. See \`config.log' for more details" "$LINENO" 5; }
  3822. fi
  3823. rm -f conftest conftest$ac_cv_exeext
  3824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3825. printf "%s\n" "$ac_cv_exeext" >&6; }
  3826. rm -f conftest.$ac_ext
  3827. EXEEXT=$ac_cv_exeext
  3828. ac_exeext=$EXEEXT
  3829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3830. /* end confdefs.h. */
  3831. #include <stdio.h>
  3832. int
  3833. main (void)
  3834. {
  3835. FILE *f = fopen ("conftest.out", "w");
  3836. return ferror (f) || fclose (f) != 0;
  3837. ;
  3838. return 0;
  3839. }
  3840. _ACEOF
  3841. ac_clean_files="$ac_clean_files conftest.out"
  3842. # Check that the compiler produces executables we can run. If not, either
  3843. # the compiler is broken, or we cross compile.
  3844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3845. printf %s "checking whether we are cross compiling... " >&6; }
  3846. if test "$cross_compiling" != yes; then
  3847. { { ac_try="$ac_link"
  3848. case "(($ac_try" in
  3849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3850. *) ac_try_echo=$ac_try;;
  3851. esac
  3852. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3853. printf "%s\n" "$ac_try_echo"; } >&5
  3854. (eval "$ac_link") 2>&5
  3855. ac_status=$?
  3856. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3857. test $ac_status = 0; }
  3858. if { ac_try='./conftest$ac_cv_exeext'
  3859. { { case "(($ac_try" in
  3860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3861. *) ac_try_echo=$ac_try;;
  3862. esac
  3863. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3864. printf "%s\n" "$ac_try_echo"; } >&5
  3865. (eval "$ac_try") 2>&5
  3866. ac_status=$?
  3867. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3868. test $ac_status = 0; }; }; then
  3869. cross_compiling=no
  3870. else
  3871. if test "$cross_compiling" = maybe; then
  3872. cross_compiling=yes
  3873. else
  3874. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3875. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3876. as_fn_error 77 "cannot run C compiled programs.
  3877. If you meant to cross compile, use \`--host'.
  3878. See \`config.log' for more details" "$LINENO" 5; }
  3879. fi
  3880. fi
  3881. fi
  3882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3883. printf "%s\n" "$cross_compiling" >&6; }
  3884. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3885. ac_clean_files=$ac_clean_files_save
  3886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3887. printf %s "checking for suffix of object files... " >&6; }
  3888. if test ${ac_cv_objext+y}
  3889. then :
  3890. printf %s "(cached) " >&6
  3891. else $as_nop
  3892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3893. /* end confdefs.h. */
  3894. int
  3895. main (void)
  3896. {
  3897. ;
  3898. return 0;
  3899. }
  3900. _ACEOF
  3901. rm -f conftest.o conftest.obj
  3902. if { { ac_try="$ac_compile"
  3903. case "(($ac_try" in
  3904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3905. *) ac_try_echo=$ac_try;;
  3906. esac
  3907. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3908. printf "%s\n" "$ac_try_echo"; } >&5
  3909. (eval "$ac_compile") 2>&5
  3910. ac_status=$?
  3911. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3912. test $ac_status = 0; }
  3913. then :
  3914. for ac_file in conftest.o conftest.obj conftest.*; do
  3915. test -f "$ac_file" || continue;
  3916. case $ac_file in
  3917. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3918. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3919. break;;
  3920. esac
  3921. done
  3922. else $as_nop
  3923. printf "%s\n" "$as_me: failed program was:" >&5
  3924. sed 's/^/| /' conftest.$ac_ext >&5
  3925. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3926. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3927. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3928. See \`config.log' for more details" "$LINENO" 5; }
  3929. fi
  3930. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3931. fi
  3932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3933. printf "%s\n" "$ac_cv_objext" >&6; }
  3934. OBJEXT=$ac_cv_objext
  3935. ac_objext=$OBJEXT
  3936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3937. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3938. if test ${ac_cv_c_compiler_gnu+y}
  3939. then :
  3940. printf %s "(cached) " >&6
  3941. else $as_nop
  3942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3943. /* end confdefs.h. */
  3944. int
  3945. main (void)
  3946. {
  3947. #ifndef __GNUC__
  3948. choke me
  3949. #endif
  3950. ;
  3951. return 0;
  3952. }
  3953. _ACEOF
  3954. if ac_fn_c_try_compile "$LINENO"
  3955. then :
  3956. ac_compiler_gnu=yes
  3957. else $as_nop
  3958. ac_compiler_gnu=no
  3959. fi
  3960. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3961. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3962. fi
  3963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3964. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3966. if test $ac_compiler_gnu = yes; then
  3967. GCC=yes
  3968. else
  3969. GCC=
  3970. fi
  3971. ac_test_CFLAGS=${CFLAGS+y}
  3972. ac_save_CFLAGS=$CFLAGS
  3973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3974. printf %s "checking whether $CC accepts -g... " >&6; }
  3975. if test ${ac_cv_prog_cc_g+y}
  3976. then :
  3977. printf %s "(cached) " >&6
  3978. else $as_nop
  3979. ac_save_c_werror_flag=$ac_c_werror_flag
  3980. ac_c_werror_flag=yes
  3981. ac_cv_prog_cc_g=no
  3982. CFLAGS="-g"
  3983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3984. /* end confdefs.h. */
  3985. int
  3986. main (void)
  3987. {
  3988. ;
  3989. return 0;
  3990. }
  3991. _ACEOF
  3992. if ac_fn_c_try_compile "$LINENO"
  3993. then :
  3994. ac_cv_prog_cc_g=yes
  3995. else $as_nop
  3996. CFLAGS=""
  3997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3998. /* end confdefs.h. */
  3999. int
  4000. main (void)
  4001. {
  4002. ;
  4003. return 0;
  4004. }
  4005. _ACEOF
  4006. if ac_fn_c_try_compile "$LINENO"
  4007. then :
  4008. else $as_nop
  4009. ac_c_werror_flag=$ac_save_c_werror_flag
  4010. CFLAGS="-g"
  4011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4012. /* end confdefs.h. */
  4013. int
  4014. main (void)
  4015. {
  4016. ;
  4017. return 0;
  4018. }
  4019. _ACEOF
  4020. if ac_fn_c_try_compile "$LINENO"
  4021. then :
  4022. ac_cv_prog_cc_g=yes
  4023. fi
  4024. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4025. fi
  4026. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4027. fi
  4028. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4029. ac_c_werror_flag=$ac_save_c_werror_flag
  4030. fi
  4031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4032. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4033. if test $ac_test_CFLAGS; then
  4034. CFLAGS=$ac_save_CFLAGS
  4035. elif test $ac_cv_prog_cc_g = yes; then
  4036. if test "$GCC" = yes; then
  4037. CFLAGS="-g -O2"
  4038. else
  4039. CFLAGS="-g"
  4040. fi
  4041. else
  4042. if test "$GCC" = yes; then
  4043. CFLAGS="-O2"
  4044. else
  4045. CFLAGS=
  4046. fi
  4047. fi
  4048. ac_prog_cc_stdc=no
  4049. if test x$ac_prog_cc_stdc = xno
  4050. then :
  4051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4052. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4053. if test ${ac_cv_prog_cc_c11+y}
  4054. then :
  4055. printf %s "(cached) " >&6
  4056. else $as_nop
  4057. ac_cv_prog_cc_c11=no
  4058. ac_save_CC=$CC
  4059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4060. /* end confdefs.h. */
  4061. $ac_c_conftest_c11_program
  4062. _ACEOF
  4063. for ac_arg in '' -std=gnu11
  4064. do
  4065. CC="$ac_save_CC $ac_arg"
  4066. if ac_fn_c_try_compile "$LINENO"
  4067. then :
  4068. ac_cv_prog_cc_c11=$ac_arg
  4069. fi
  4070. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4071. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4072. done
  4073. rm -f conftest.$ac_ext
  4074. CC=$ac_save_CC
  4075. fi
  4076. if test "x$ac_cv_prog_cc_c11" = xno
  4077. then :
  4078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4079. printf "%s\n" "unsupported" >&6; }
  4080. else $as_nop
  4081. if test "x$ac_cv_prog_cc_c11" = x
  4082. then :
  4083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4084. printf "%s\n" "none needed" >&6; }
  4085. else $as_nop
  4086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4087. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4088. CC="$CC $ac_cv_prog_cc_c11"
  4089. fi
  4090. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4091. ac_prog_cc_stdc=c11
  4092. fi
  4093. fi
  4094. if test x$ac_prog_cc_stdc = xno
  4095. then :
  4096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4097. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4098. if test ${ac_cv_prog_cc_c99+y}
  4099. then :
  4100. printf %s "(cached) " >&6
  4101. else $as_nop
  4102. ac_cv_prog_cc_c99=no
  4103. ac_save_CC=$CC
  4104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4105. /* end confdefs.h. */
  4106. $ac_c_conftest_c99_program
  4107. _ACEOF
  4108. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4109. do
  4110. CC="$ac_save_CC $ac_arg"
  4111. if ac_fn_c_try_compile "$LINENO"
  4112. then :
  4113. ac_cv_prog_cc_c99=$ac_arg
  4114. fi
  4115. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4116. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4117. done
  4118. rm -f conftest.$ac_ext
  4119. CC=$ac_save_CC
  4120. fi
  4121. if test "x$ac_cv_prog_cc_c99" = xno
  4122. then :
  4123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4124. printf "%s\n" "unsupported" >&6; }
  4125. else $as_nop
  4126. if test "x$ac_cv_prog_cc_c99" = x
  4127. then :
  4128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4129. printf "%s\n" "none needed" >&6; }
  4130. else $as_nop
  4131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4132. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4133. CC="$CC $ac_cv_prog_cc_c99"
  4134. fi
  4135. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4136. ac_prog_cc_stdc=c99
  4137. fi
  4138. fi
  4139. if test x$ac_prog_cc_stdc = xno
  4140. then :
  4141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4142. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4143. if test ${ac_cv_prog_cc_c89+y}
  4144. then :
  4145. printf %s "(cached) " >&6
  4146. else $as_nop
  4147. ac_cv_prog_cc_c89=no
  4148. ac_save_CC=$CC
  4149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4150. /* end confdefs.h. */
  4151. $ac_c_conftest_c89_program
  4152. _ACEOF
  4153. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4154. do
  4155. CC="$ac_save_CC $ac_arg"
  4156. if ac_fn_c_try_compile "$LINENO"
  4157. then :
  4158. ac_cv_prog_cc_c89=$ac_arg
  4159. fi
  4160. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4161. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4162. done
  4163. rm -f conftest.$ac_ext
  4164. CC=$ac_save_CC
  4165. fi
  4166. if test "x$ac_cv_prog_cc_c89" = xno
  4167. then :
  4168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4169. printf "%s\n" "unsupported" >&6; }
  4170. else $as_nop
  4171. if test "x$ac_cv_prog_cc_c89" = x
  4172. then :
  4173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4174. printf "%s\n" "none needed" >&6; }
  4175. else $as_nop
  4176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4177. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4178. CC="$CC $ac_cv_prog_cc_c89"
  4179. fi
  4180. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4181. ac_prog_cc_stdc=c89
  4182. fi
  4183. fi
  4184. ac_ext=c
  4185. ac_cpp='$CPP $CPPFLAGS'
  4186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4190. printf %s "checking for a sed that does not truncate output... " >&6; }
  4191. if test ${ac_cv_path_SED+y}
  4192. then :
  4193. printf %s "(cached) " >&6
  4194. else $as_nop
  4195. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4196. for ac_i in 1 2 3 4 5 6 7; do
  4197. ac_script="$ac_script$as_nl$ac_script"
  4198. done
  4199. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4200. { ac_script=; unset ac_script;}
  4201. if test -z "$SED"; then
  4202. ac_path_SED_found=false
  4203. # Loop through the user's path and test for each of PROGNAME-LIST
  4204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4205. for as_dir in $PATH
  4206. do
  4207. IFS=$as_save_IFS
  4208. case $as_dir in #(((
  4209. '') as_dir=./ ;;
  4210. */) ;;
  4211. *) as_dir=$as_dir/ ;;
  4212. esac
  4213. for ac_prog in sed gsed
  4214. do
  4215. for ac_exec_ext in '' $ac_executable_extensions; do
  4216. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4217. as_fn_executable_p "$ac_path_SED" || continue
  4218. # Check for GNU ac_path_SED and select it if it is found.
  4219. # Check for GNU $ac_path_SED
  4220. case `"$ac_path_SED" --version 2>&1` in
  4221. *GNU*)
  4222. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4223. *)
  4224. ac_count=0
  4225. printf %s 0123456789 >"conftest.in"
  4226. while :
  4227. do
  4228. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4229. mv "conftest.tmp" "conftest.in"
  4230. cp "conftest.in" "conftest.nl"
  4231. printf "%s\n" '' >> "conftest.nl"
  4232. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4233. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4234. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4235. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4236. # Best one so far, save it but keep looking for a better one
  4237. ac_cv_path_SED="$ac_path_SED"
  4238. ac_path_SED_max=$ac_count
  4239. fi
  4240. # 10*(2^10) chars as input seems more than enough
  4241. test $ac_count -gt 10 && break
  4242. done
  4243. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4244. esac
  4245. $ac_path_SED_found && break 3
  4246. done
  4247. done
  4248. done
  4249. IFS=$as_save_IFS
  4250. if test -z "$ac_cv_path_SED"; then
  4251. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4252. fi
  4253. else
  4254. ac_cv_path_SED=$SED
  4255. fi
  4256. fi
  4257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4258. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4259. SED="$ac_cv_path_SED"
  4260. rm -f conftest.sed
  4261. test -z "$SED" && SED=sed
  4262. Xsed="$SED -e 1s/^X//"
  4263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4264. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4265. if test ${ac_cv_path_GREP+y}
  4266. then :
  4267. printf %s "(cached) " >&6
  4268. else $as_nop
  4269. if test -z "$GREP"; then
  4270. ac_path_GREP_found=false
  4271. # Loop through the user's path and test for each of PROGNAME-LIST
  4272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4273. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4274. do
  4275. IFS=$as_save_IFS
  4276. case $as_dir in #(((
  4277. '') as_dir=./ ;;
  4278. */) ;;
  4279. *) as_dir=$as_dir/ ;;
  4280. esac
  4281. for ac_prog in grep ggrep
  4282. do
  4283. for ac_exec_ext in '' $ac_executable_extensions; do
  4284. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4285. as_fn_executable_p "$ac_path_GREP" || continue
  4286. # Check for GNU ac_path_GREP and select it if it is found.
  4287. # Check for GNU $ac_path_GREP
  4288. case `"$ac_path_GREP" --version 2>&1` in
  4289. *GNU*)
  4290. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4291. *)
  4292. ac_count=0
  4293. printf %s 0123456789 >"conftest.in"
  4294. while :
  4295. do
  4296. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4297. mv "conftest.tmp" "conftest.in"
  4298. cp "conftest.in" "conftest.nl"
  4299. printf "%s\n" 'GREP' >> "conftest.nl"
  4300. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4301. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4302. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4303. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4304. # Best one so far, save it but keep looking for a better one
  4305. ac_cv_path_GREP="$ac_path_GREP"
  4306. ac_path_GREP_max=$ac_count
  4307. fi
  4308. # 10*(2^10) chars as input seems more than enough
  4309. test $ac_count -gt 10 && break
  4310. done
  4311. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4312. esac
  4313. $ac_path_GREP_found && break 3
  4314. done
  4315. done
  4316. done
  4317. IFS=$as_save_IFS
  4318. if test -z "$ac_cv_path_GREP"; then
  4319. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4320. fi
  4321. else
  4322. ac_cv_path_GREP=$GREP
  4323. fi
  4324. fi
  4325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4326. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4327. GREP="$ac_cv_path_GREP"
  4328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4329. printf %s "checking for egrep... " >&6; }
  4330. if test ${ac_cv_path_EGREP+y}
  4331. then :
  4332. printf %s "(cached) " >&6
  4333. else $as_nop
  4334. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4335. then ac_cv_path_EGREP="$GREP -E"
  4336. else
  4337. if test -z "$EGREP"; then
  4338. ac_path_EGREP_found=false
  4339. # Loop through the user's path and test for each of PROGNAME-LIST
  4340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4341. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4342. do
  4343. IFS=$as_save_IFS
  4344. case $as_dir in #(((
  4345. '') as_dir=./ ;;
  4346. */) ;;
  4347. *) as_dir=$as_dir/ ;;
  4348. esac
  4349. for ac_prog in egrep
  4350. do
  4351. for ac_exec_ext in '' $ac_executable_extensions; do
  4352. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4353. as_fn_executable_p "$ac_path_EGREP" || continue
  4354. # Check for GNU ac_path_EGREP and select it if it is found.
  4355. # Check for GNU $ac_path_EGREP
  4356. case `"$ac_path_EGREP" --version 2>&1` in
  4357. *GNU*)
  4358. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4359. *)
  4360. ac_count=0
  4361. printf %s 0123456789 >"conftest.in"
  4362. while :
  4363. do
  4364. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4365. mv "conftest.tmp" "conftest.in"
  4366. cp "conftest.in" "conftest.nl"
  4367. printf "%s\n" 'EGREP' >> "conftest.nl"
  4368. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4369. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4370. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4371. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4372. # Best one so far, save it but keep looking for a better one
  4373. ac_cv_path_EGREP="$ac_path_EGREP"
  4374. ac_path_EGREP_max=$ac_count
  4375. fi
  4376. # 10*(2^10) chars as input seems more than enough
  4377. test $ac_count -gt 10 && break
  4378. done
  4379. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4380. esac
  4381. $ac_path_EGREP_found && break 3
  4382. done
  4383. done
  4384. done
  4385. IFS=$as_save_IFS
  4386. if test -z "$ac_cv_path_EGREP"; then
  4387. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4388. fi
  4389. else
  4390. ac_cv_path_EGREP=$EGREP
  4391. fi
  4392. fi
  4393. fi
  4394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4395. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4396. EGREP="$ac_cv_path_EGREP"
  4397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4398. printf %s "checking for fgrep... " >&6; }
  4399. if test ${ac_cv_path_FGREP+y}
  4400. then :
  4401. printf %s "(cached) " >&6
  4402. else $as_nop
  4403. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4404. then ac_cv_path_FGREP="$GREP -F"
  4405. else
  4406. if test -z "$FGREP"; then
  4407. ac_path_FGREP_found=false
  4408. # Loop through the user's path and test for each of PROGNAME-LIST
  4409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4410. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4411. do
  4412. IFS=$as_save_IFS
  4413. case $as_dir in #(((
  4414. '') as_dir=./ ;;
  4415. */) ;;
  4416. *) as_dir=$as_dir/ ;;
  4417. esac
  4418. for ac_prog in fgrep
  4419. do
  4420. for ac_exec_ext in '' $ac_executable_extensions; do
  4421. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4422. as_fn_executable_p "$ac_path_FGREP" || continue
  4423. # Check for GNU ac_path_FGREP and select it if it is found.
  4424. # Check for GNU $ac_path_FGREP
  4425. case `"$ac_path_FGREP" --version 2>&1` in
  4426. *GNU*)
  4427. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4428. *)
  4429. ac_count=0
  4430. printf %s 0123456789 >"conftest.in"
  4431. while :
  4432. do
  4433. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4434. mv "conftest.tmp" "conftest.in"
  4435. cp "conftest.in" "conftest.nl"
  4436. printf "%s\n" 'FGREP' >> "conftest.nl"
  4437. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4438. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4439. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4440. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4441. # Best one so far, save it but keep looking for a better one
  4442. ac_cv_path_FGREP="$ac_path_FGREP"
  4443. ac_path_FGREP_max=$ac_count
  4444. fi
  4445. # 10*(2^10) chars as input seems more than enough
  4446. test $ac_count -gt 10 && break
  4447. done
  4448. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4449. esac
  4450. $ac_path_FGREP_found && break 3
  4451. done
  4452. done
  4453. done
  4454. IFS=$as_save_IFS
  4455. if test -z "$ac_cv_path_FGREP"; then
  4456. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4457. fi
  4458. else
  4459. ac_cv_path_FGREP=$FGREP
  4460. fi
  4461. fi
  4462. fi
  4463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4464. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4465. FGREP="$ac_cv_path_FGREP"
  4466. test -z "$GREP" && GREP=grep
  4467. # Check whether --with-gnu-ld was given.
  4468. if test ${with_gnu_ld+y}
  4469. then :
  4470. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4471. else $as_nop
  4472. with_gnu_ld=no
  4473. fi
  4474. ac_prog=ld
  4475. if test yes = "$GCC"; then
  4476. # Check if gcc -print-prog-name=ld gives a path.
  4477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4478. printf %s "checking for ld used by $CC... " >&6; }
  4479. case $host in
  4480. *-*-mingw*)
  4481. # gcc leaves a trailing carriage return, which upsets mingw
  4482. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4483. *)
  4484. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4485. esac
  4486. case $ac_prog in
  4487. # Accept absolute paths.
  4488. [\\/]* | ?:[\\/]*)
  4489. re_direlt='/[^/][^/]*/\.\./'
  4490. # Canonicalize the pathname of ld
  4491. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4492. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4493. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4494. done
  4495. test -z "$LD" && LD=$ac_prog
  4496. ;;
  4497. "")
  4498. # If it fails, then pretend we aren't using GCC.
  4499. ac_prog=ld
  4500. ;;
  4501. *)
  4502. # If it is relative, then search for the first ld in PATH.
  4503. with_gnu_ld=unknown
  4504. ;;
  4505. esac
  4506. elif test yes = "$with_gnu_ld"; then
  4507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4508. printf %s "checking for GNU ld... " >&6; }
  4509. else
  4510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4511. printf %s "checking for non-GNU ld... " >&6; }
  4512. fi
  4513. if test ${lt_cv_path_LD+y}
  4514. then :
  4515. printf %s "(cached) " >&6
  4516. else $as_nop
  4517. if test -z "$LD"; then
  4518. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4519. for ac_dir in $PATH; do
  4520. IFS=$lt_save_ifs
  4521. test -z "$ac_dir" && ac_dir=.
  4522. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4523. lt_cv_path_LD=$ac_dir/$ac_prog
  4524. # Check to see if the program is GNU ld. I'd rather use --version,
  4525. # but apparently some variants of GNU ld only accept -v.
  4526. # Break only if it was the GNU/non-GNU ld that we prefer.
  4527. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4528. *GNU* | *'with BFD'*)
  4529. test no != "$with_gnu_ld" && break
  4530. ;;
  4531. *)
  4532. test yes != "$with_gnu_ld" && break
  4533. ;;
  4534. esac
  4535. fi
  4536. done
  4537. IFS=$lt_save_ifs
  4538. else
  4539. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4540. fi
  4541. fi
  4542. LD=$lt_cv_path_LD
  4543. if test -n "$LD"; then
  4544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4545. printf "%s\n" "$LD" >&6; }
  4546. else
  4547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4548. printf "%s\n" "no" >&6; }
  4549. fi
  4550. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4552. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4553. if test ${lt_cv_prog_gnu_ld+y}
  4554. then :
  4555. printf %s "(cached) " >&6
  4556. else $as_nop
  4557. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4558. case `$LD -v 2>&1 </dev/null` in
  4559. *GNU* | *'with BFD'*)
  4560. lt_cv_prog_gnu_ld=yes
  4561. ;;
  4562. *)
  4563. lt_cv_prog_gnu_ld=no
  4564. ;;
  4565. esac
  4566. fi
  4567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4568. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4569. with_gnu_ld=$lt_cv_prog_gnu_ld
  4570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4571. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4572. if test ${lt_cv_path_NM+y}
  4573. then :
  4574. printf %s "(cached) " >&6
  4575. else $as_nop
  4576. if test -n "$NM"; then
  4577. # Let the user override the test.
  4578. lt_cv_path_NM=$NM
  4579. else
  4580. lt_nm_to_check=${ac_tool_prefix}nm
  4581. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4582. lt_nm_to_check="$lt_nm_to_check nm"
  4583. fi
  4584. for lt_tmp_nm in $lt_nm_to_check; do
  4585. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4586. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4587. IFS=$lt_save_ifs
  4588. test -z "$ac_dir" && ac_dir=.
  4589. tmp_nm=$ac_dir/$lt_tmp_nm
  4590. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4591. # Check to see if the nm accepts a BSD-compat flag.
  4592. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4593. # nm: unknown option "B" ignored
  4594. # Tru64's nm complains that /dev/null is an invalid object file
  4595. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4596. case $build_os in
  4597. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4598. *) lt_bad_file=/dev/null ;;
  4599. esac
  4600. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4601. *$lt_bad_file* | *'Invalid file or object type'*)
  4602. lt_cv_path_NM="$tmp_nm -B"
  4603. break 2
  4604. ;;
  4605. *)
  4606. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4607. */dev/null*)
  4608. lt_cv_path_NM="$tmp_nm -p"
  4609. break 2
  4610. ;;
  4611. *)
  4612. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4613. continue # so that we can try to find one that supports BSD flags
  4614. ;;
  4615. esac
  4616. ;;
  4617. esac
  4618. fi
  4619. done
  4620. IFS=$lt_save_ifs
  4621. done
  4622. : ${lt_cv_path_NM=no}
  4623. fi
  4624. fi
  4625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4626. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4627. if test no != "$lt_cv_path_NM"; then
  4628. NM=$lt_cv_path_NM
  4629. else
  4630. # Didn't find any BSD compatible name lister, look for dumpbin.
  4631. if test -n "$DUMPBIN"; then :
  4632. # Let the user override the test.
  4633. else
  4634. if test -n "$ac_tool_prefix"; then
  4635. for ac_prog in dumpbin "link -dump"
  4636. do
  4637. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4638. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4640. printf %s "checking for $ac_word... " >&6; }
  4641. if test ${ac_cv_prog_DUMPBIN+y}
  4642. then :
  4643. printf %s "(cached) " >&6
  4644. else $as_nop
  4645. if test -n "$DUMPBIN"; then
  4646. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4647. else
  4648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4649. for as_dir in $PATH
  4650. do
  4651. IFS=$as_save_IFS
  4652. case $as_dir in #(((
  4653. '') as_dir=./ ;;
  4654. */) ;;
  4655. *) as_dir=$as_dir/ ;;
  4656. esac
  4657. for ac_exec_ext in '' $ac_executable_extensions; do
  4658. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4659. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4660. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4661. break 2
  4662. fi
  4663. done
  4664. done
  4665. IFS=$as_save_IFS
  4666. fi
  4667. fi
  4668. DUMPBIN=$ac_cv_prog_DUMPBIN
  4669. if test -n "$DUMPBIN"; then
  4670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4671. printf "%s\n" "$DUMPBIN" >&6; }
  4672. else
  4673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4674. printf "%s\n" "no" >&6; }
  4675. fi
  4676. test -n "$DUMPBIN" && break
  4677. done
  4678. fi
  4679. if test -z "$DUMPBIN"; then
  4680. ac_ct_DUMPBIN=$DUMPBIN
  4681. for ac_prog in dumpbin "link -dump"
  4682. do
  4683. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4684. set dummy $ac_prog; ac_word=$2
  4685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4686. printf %s "checking for $ac_word... " >&6; }
  4687. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4688. then :
  4689. printf %s "(cached) " >&6
  4690. else $as_nop
  4691. if test -n "$ac_ct_DUMPBIN"; then
  4692. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4693. else
  4694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4695. for as_dir in $PATH
  4696. do
  4697. IFS=$as_save_IFS
  4698. case $as_dir in #(((
  4699. '') as_dir=./ ;;
  4700. */) ;;
  4701. *) as_dir=$as_dir/ ;;
  4702. esac
  4703. for ac_exec_ext in '' $ac_executable_extensions; do
  4704. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4705. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4706. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4707. break 2
  4708. fi
  4709. done
  4710. done
  4711. IFS=$as_save_IFS
  4712. fi
  4713. fi
  4714. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4715. if test -n "$ac_ct_DUMPBIN"; then
  4716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4717. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4718. else
  4719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4720. printf "%s\n" "no" >&6; }
  4721. fi
  4722. test -n "$ac_ct_DUMPBIN" && break
  4723. done
  4724. if test "x$ac_ct_DUMPBIN" = x; then
  4725. DUMPBIN=":"
  4726. else
  4727. case $cross_compiling:$ac_tool_warned in
  4728. yes:)
  4729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4730. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4731. ac_tool_warned=yes ;;
  4732. esac
  4733. DUMPBIN=$ac_ct_DUMPBIN
  4734. fi
  4735. fi
  4736. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4737. *COFF*)
  4738. DUMPBIN="$DUMPBIN -symbols -headers"
  4739. ;;
  4740. *)
  4741. DUMPBIN=:
  4742. ;;
  4743. esac
  4744. fi
  4745. if test : != "$DUMPBIN"; then
  4746. NM=$DUMPBIN
  4747. fi
  4748. fi
  4749. test -z "$NM" && NM=nm
  4750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4751. printf %s "checking the name lister ($NM) interface... " >&6; }
  4752. if test ${lt_cv_nm_interface+y}
  4753. then :
  4754. printf %s "(cached) " >&6
  4755. else $as_nop
  4756. lt_cv_nm_interface="BSD nm"
  4757. echo "int some_variable = 0;" > conftest.$ac_ext
  4758. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4759. (eval "$ac_compile" 2>conftest.err)
  4760. cat conftest.err >&5
  4761. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4762. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4763. cat conftest.err >&5
  4764. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4765. cat conftest.out >&5
  4766. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4767. lt_cv_nm_interface="MS dumpbin"
  4768. fi
  4769. rm -f conftest*
  4770. fi
  4771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4772. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4774. printf %s "checking whether ln -s works... " >&6; }
  4775. LN_S=$as_ln_s
  4776. if test "$LN_S" = "ln -s"; then
  4777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4778. printf "%s\n" "yes" >&6; }
  4779. else
  4780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4781. printf "%s\n" "no, using $LN_S" >&6; }
  4782. fi
  4783. # find the maximum length of command line arguments
  4784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4785. printf %s "checking the maximum length of command line arguments... " >&6; }
  4786. if test ${lt_cv_sys_max_cmd_len+y}
  4787. then :
  4788. printf %s "(cached) " >&6
  4789. else $as_nop
  4790. i=0
  4791. teststring=ABCD
  4792. case $build_os in
  4793. msdosdjgpp*)
  4794. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4795. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4796. # during glob expansion). Even if it were fixed, the result of this
  4797. # check would be larger than it should be.
  4798. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4799. ;;
  4800. gnu*)
  4801. # Under GNU Hurd, this test is not required because there is
  4802. # no limit to the length of command line arguments.
  4803. # Libtool will interpret -1 as no limit whatsoever
  4804. lt_cv_sys_max_cmd_len=-1;
  4805. ;;
  4806. cygwin* | mingw* | cegcc*)
  4807. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4808. # about 5 minutes as the teststring grows exponentially.
  4809. # Worse, since 9x/ME are not pre-emptively multitasking,
  4810. # you end up with a "frozen" computer, even though with patience
  4811. # the test eventually succeeds (with a max line length of 256k).
  4812. # Instead, let's just punt: use the minimum linelength reported by
  4813. # all of the supported platforms: 8192 (on NT/2K/XP).
  4814. lt_cv_sys_max_cmd_len=8192;
  4815. ;;
  4816. mint*)
  4817. # On MiNT this can take a long time and run out of memory.
  4818. lt_cv_sys_max_cmd_len=8192;
  4819. ;;
  4820. amigaos*)
  4821. # On AmigaOS with pdksh, this test takes hours, literally.
  4822. # So we just punt and use a minimum line length of 8192.
  4823. lt_cv_sys_max_cmd_len=8192;
  4824. ;;
  4825. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4826. # This has been around since 386BSD, at least. Likely further.
  4827. if test -x /sbin/sysctl; then
  4828. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4829. elif test -x /usr/sbin/sysctl; then
  4830. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4831. else
  4832. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4833. fi
  4834. # And add a safety zone
  4835. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4836. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4837. ;;
  4838. interix*)
  4839. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4840. lt_cv_sys_max_cmd_len=196608
  4841. ;;
  4842. os2*)
  4843. # The test takes a long time on OS/2.
  4844. lt_cv_sys_max_cmd_len=8192
  4845. ;;
  4846. osf*)
  4847. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4848. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4849. # nice to cause kernel panics so lets avoid the loop below.
  4850. # First set a reasonable default.
  4851. lt_cv_sys_max_cmd_len=16384
  4852. #
  4853. if test -x /sbin/sysconfig; then
  4854. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4855. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4856. esac
  4857. fi
  4858. ;;
  4859. sco3.2v5*)
  4860. lt_cv_sys_max_cmd_len=102400
  4861. ;;
  4862. sysv5* | sco5v6* | sysv4.2uw2*)
  4863. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4864. if test -n "$kargmax"; then
  4865. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4866. else
  4867. lt_cv_sys_max_cmd_len=32768
  4868. fi
  4869. ;;
  4870. *)
  4871. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4872. if test -n "$lt_cv_sys_max_cmd_len" && \
  4873. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4874. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4875. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4876. else
  4877. # Make teststring a little bigger before we do anything with it.
  4878. # a 1K string should be a reasonable start.
  4879. for i in 1 2 3 4 5 6 7 8; do
  4880. teststring=$teststring$teststring
  4881. done
  4882. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4883. # If test is not a shell built-in, we'll probably end up computing a
  4884. # maximum length that is only half of the actual maximum length, but
  4885. # we can't tell.
  4886. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4887. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4888. test 17 != "$i" # 1/2 MB should be enough
  4889. do
  4890. i=`expr $i + 1`
  4891. teststring=$teststring$teststring
  4892. done
  4893. # Only check the string length outside the loop.
  4894. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4895. teststring=
  4896. # Add a significant safety factor because C++ compilers can tack on
  4897. # massive amounts of additional arguments before passing them to the
  4898. # linker. It appears as though 1/2 is a usable value.
  4899. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4900. fi
  4901. ;;
  4902. esac
  4903. fi
  4904. if test -n "$lt_cv_sys_max_cmd_len"; then
  4905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4906. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4907. else
  4908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4909. printf "%s\n" "none" >&6; }
  4910. fi
  4911. max_cmd_len=$lt_cv_sys_max_cmd_len
  4912. : ${CP="cp -f"}
  4913. : ${MV="mv -f"}
  4914. : ${RM="rm -f"}
  4915. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4916. lt_unset=unset
  4917. else
  4918. lt_unset=false
  4919. fi
  4920. # test EBCDIC or ASCII
  4921. case `echo X|tr X '\101'` in
  4922. A) # ASCII based system
  4923. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4924. lt_SP2NL='tr \040 \012'
  4925. lt_NL2SP='tr \015\012 \040\040'
  4926. ;;
  4927. *) # EBCDIC based system
  4928. lt_SP2NL='tr \100 \n'
  4929. lt_NL2SP='tr \r\n \100\100'
  4930. ;;
  4931. esac
  4932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4933. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4934. if test ${lt_cv_to_host_file_cmd+y}
  4935. then :
  4936. printf %s "(cached) " >&6
  4937. else $as_nop
  4938. case $host in
  4939. *-*-mingw* )
  4940. case $build in
  4941. *-*-mingw* ) # actually msys
  4942. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4943. ;;
  4944. *-*-cygwin* )
  4945. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4946. ;;
  4947. * ) # otherwise, assume *nix
  4948. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4949. ;;
  4950. esac
  4951. ;;
  4952. *-*-cygwin* )
  4953. case $build in
  4954. *-*-mingw* ) # actually msys
  4955. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4956. ;;
  4957. *-*-cygwin* )
  4958. lt_cv_to_host_file_cmd=func_convert_file_noop
  4959. ;;
  4960. * ) # otherwise, assume *nix
  4961. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4962. ;;
  4963. esac
  4964. ;;
  4965. * ) # unhandled hosts (and "normal" native builds)
  4966. lt_cv_to_host_file_cmd=func_convert_file_noop
  4967. ;;
  4968. esac
  4969. fi
  4970. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4972. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4974. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4975. if test ${lt_cv_to_tool_file_cmd+y}
  4976. then :
  4977. printf %s "(cached) " >&6
  4978. else $as_nop
  4979. #assume ordinary cross tools, or native build.
  4980. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4981. case $host in
  4982. *-*-mingw* )
  4983. case $build in
  4984. *-*-mingw* ) # actually msys
  4985. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4986. ;;
  4987. esac
  4988. ;;
  4989. esac
  4990. fi
  4991. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4993. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4995. printf %s "checking for $LD option to reload object files... " >&6; }
  4996. if test ${lt_cv_ld_reload_flag+y}
  4997. then :
  4998. printf %s "(cached) " >&6
  4999. else $as_nop
  5000. lt_cv_ld_reload_flag='-r'
  5001. fi
  5002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5003. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5004. reload_flag=$lt_cv_ld_reload_flag
  5005. case $reload_flag in
  5006. "" | " "*) ;;
  5007. *) reload_flag=" $reload_flag" ;;
  5008. esac
  5009. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5010. case $host_os in
  5011. cygwin* | mingw* | pw32* | cegcc*)
  5012. if test yes != "$GCC"; then
  5013. reload_cmds=false
  5014. fi
  5015. ;;
  5016. darwin*)
  5017. if test yes = "$GCC"; then
  5018. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5019. else
  5020. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5021. fi
  5022. ;;
  5023. esac
  5024. if test -n "$ac_tool_prefix"; then
  5025. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5026. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5028. printf %s "checking for $ac_word... " >&6; }
  5029. if test ${ac_cv_prog_OBJDUMP+y}
  5030. then :
  5031. printf %s "(cached) " >&6
  5032. else $as_nop
  5033. if test -n "$OBJDUMP"; then
  5034. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5035. else
  5036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5037. for as_dir in $PATH
  5038. do
  5039. IFS=$as_save_IFS
  5040. case $as_dir in #(((
  5041. '') as_dir=./ ;;
  5042. */) ;;
  5043. *) as_dir=$as_dir/ ;;
  5044. esac
  5045. for ac_exec_ext in '' $ac_executable_extensions; do
  5046. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5047. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5048. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5049. break 2
  5050. fi
  5051. done
  5052. done
  5053. IFS=$as_save_IFS
  5054. fi
  5055. fi
  5056. OBJDUMP=$ac_cv_prog_OBJDUMP
  5057. if test -n "$OBJDUMP"; then
  5058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5059. printf "%s\n" "$OBJDUMP" >&6; }
  5060. else
  5061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5062. printf "%s\n" "no" >&6; }
  5063. fi
  5064. fi
  5065. if test -z "$ac_cv_prog_OBJDUMP"; then
  5066. ac_ct_OBJDUMP=$OBJDUMP
  5067. # Extract the first word of "objdump", so it can be a program name with args.
  5068. set dummy objdump; ac_word=$2
  5069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5070. printf %s "checking for $ac_word... " >&6; }
  5071. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5072. then :
  5073. printf %s "(cached) " >&6
  5074. else $as_nop
  5075. if test -n "$ac_ct_OBJDUMP"; then
  5076. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5077. else
  5078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5079. for as_dir in $PATH
  5080. do
  5081. IFS=$as_save_IFS
  5082. case $as_dir in #(((
  5083. '') as_dir=./ ;;
  5084. */) ;;
  5085. *) as_dir=$as_dir/ ;;
  5086. esac
  5087. for ac_exec_ext in '' $ac_executable_extensions; do
  5088. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5089. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5090. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5091. break 2
  5092. fi
  5093. done
  5094. done
  5095. IFS=$as_save_IFS
  5096. fi
  5097. fi
  5098. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5099. if test -n "$ac_ct_OBJDUMP"; then
  5100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5101. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5102. else
  5103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5104. printf "%s\n" "no" >&6; }
  5105. fi
  5106. if test "x$ac_ct_OBJDUMP" = x; then
  5107. OBJDUMP="false"
  5108. else
  5109. case $cross_compiling:$ac_tool_warned in
  5110. yes:)
  5111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5112. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5113. ac_tool_warned=yes ;;
  5114. esac
  5115. OBJDUMP=$ac_ct_OBJDUMP
  5116. fi
  5117. else
  5118. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5119. fi
  5120. test -z "$OBJDUMP" && OBJDUMP=objdump
  5121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5122. printf %s "checking how to recognize dependent libraries... " >&6; }
  5123. if test ${lt_cv_deplibs_check_method+y}
  5124. then :
  5125. printf %s "(cached) " >&6
  5126. else $as_nop
  5127. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5128. lt_cv_file_magic_test_file=
  5129. lt_cv_deplibs_check_method='unknown'
  5130. # Need to set the preceding variable on all platforms that support
  5131. # interlibrary dependencies.
  5132. # 'none' -- dependencies not supported.
  5133. # 'unknown' -- same as none, but documents that we really don't know.
  5134. # 'pass_all' -- all dependencies passed with no checks.
  5135. # 'test_compile' -- check by making test program.
  5136. # 'file_magic [[regex]]' -- check by looking for files in library path
  5137. # that responds to the $file_magic_cmd with a given extended regex.
  5138. # If you have 'file' or equivalent on your system and you're not sure
  5139. # whether 'pass_all' will *always* work, you probably want this one.
  5140. case $host_os in
  5141. aix[4-9]*)
  5142. lt_cv_deplibs_check_method=pass_all
  5143. ;;
  5144. beos*)
  5145. lt_cv_deplibs_check_method=pass_all
  5146. ;;
  5147. bsdi[45]*)
  5148. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5149. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5150. lt_cv_file_magic_test_file=/shlib/libc.so
  5151. ;;
  5152. cygwin*)
  5153. # func_win32_libid is a shell function defined in ltmain.sh
  5154. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5155. lt_cv_file_magic_cmd='func_win32_libid'
  5156. lt_cv_deplibs_check_method=pass_all # SDL customization
  5157. ;;
  5158. mingw* | pw32*)
  5159. # Base MSYS/MinGW do not provide the 'file' command needed by
  5160. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5161. # unless we find 'file', for example because we are cross-compiling.
  5162. if ( file / ) >/dev/null 2>&1; then
  5163. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5164. lt_cv_file_magic_cmd='func_win32_libid'
  5165. else
  5166. # Keep this pattern in sync with the one in func_win32_libid.
  5167. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5168. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5169. fi
  5170. lt_cv_deplibs_check_method=pass_all # SDL customization
  5171. ;;
  5172. cegcc*)
  5173. # use the weaker test based on 'objdump'. See mingw*.
  5174. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5175. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5176. ;;
  5177. darwin* | rhapsody*)
  5178. lt_cv_deplibs_check_method=pass_all
  5179. ;;
  5180. freebsd* | dragonfly* | midnightbsd*)
  5181. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5182. case $host_cpu in
  5183. i*86 )
  5184. # Not sure whether the presence of OpenBSD here was a mistake.
  5185. # Let's accept both of them until this is cleared up.
  5186. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5187. lt_cv_file_magic_cmd=/usr/bin/file
  5188. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5189. ;;
  5190. esac
  5191. else
  5192. lt_cv_deplibs_check_method=pass_all
  5193. fi
  5194. ;;
  5195. haiku*)
  5196. lt_cv_deplibs_check_method=pass_all
  5197. ;;
  5198. hpux10.20* | hpux11*)
  5199. lt_cv_file_magic_cmd=/usr/bin/file
  5200. case $host_cpu in
  5201. ia64*)
  5202. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5203. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5204. ;;
  5205. hppa*64*)
  5206. 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]'
  5207. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5208. ;;
  5209. *)
  5210. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5211. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5212. ;;
  5213. esac
  5214. ;;
  5215. interix[3-9]*)
  5216. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5217. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5218. ;;
  5219. irix5* | irix6* | nonstopux*)
  5220. case $LD in
  5221. *-32|*"-32 ") libmagic=32-bit;;
  5222. *-n32|*"-n32 ") libmagic=N32;;
  5223. *-64|*"-64 ") libmagic=64-bit;;
  5224. *) libmagic=never-match;;
  5225. esac
  5226. lt_cv_deplibs_check_method=pass_all
  5227. ;;
  5228. # This must be glibc/ELF.
  5229. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5230. lt_cv_deplibs_check_method=pass_all
  5231. ;;
  5232. netbsd*)
  5233. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5234. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5235. else
  5236. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5237. fi
  5238. ;;
  5239. newos6*)
  5240. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5241. lt_cv_file_magic_cmd=/usr/bin/file
  5242. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5243. ;;
  5244. *nto* | *qnx*)
  5245. lt_cv_deplibs_check_method=pass_all
  5246. ;;
  5247. openbsd* | bitrig*)
  5248. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5249. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5250. else
  5251. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5252. fi
  5253. ;;
  5254. osf3* | osf4* | osf5*)
  5255. lt_cv_deplibs_check_method=pass_all
  5256. ;;
  5257. rdos*)
  5258. lt_cv_deplibs_check_method=pass_all
  5259. ;;
  5260. solaris*)
  5261. lt_cv_deplibs_check_method=pass_all
  5262. ;;
  5263. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5264. lt_cv_deplibs_check_method=pass_all
  5265. ;;
  5266. sysv4 | sysv4.3*)
  5267. case $host_vendor in
  5268. motorola)
  5269. 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]'
  5270. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5271. ;;
  5272. ncr)
  5273. lt_cv_deplibs_check_method=pass_all
  5274. ;;
  5275. sequent)
  5276. lt_cv_file_magic_cmd='/bin/file'
  5277. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5278. ;;
  5279. sni)
  5280. lt_cv_file_magic_cmd='/bin/file'
  5281. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5282. lt_cv_file_magic_test_file=/lib/libc.so
  5283. ;;
  5284. siemens)
  5285. lt_cv_deplibs_check_method=pass_all
  5286. ;;
  5287. pc)
  5288. lt_cv_deplibs_check_method=pass_all
  5289. ;;
  5290. esac
  5291. ;;
  5292. tpf*)
  5293. lt_cv_deplibs_check_method=pass_all
  5294. ;;
  5295. os2*)
  5296. lt_cv_deplibs_check_method=pass_all
  5297. ;;
  5298. esac
  5299. fi
  5300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5301. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5302. file_magic_glob=
  5303. want_nocaseglob=no
  5304. if test "$build" = "$host"; then
  5305. case $host_os in
  5306. mingw* | pw32*)
  5307. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5308. want_nocaseglob=yes
  5309. else
  5310. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5311. fi
  5312. ;;
  5313. esac
  5314. fi
  5315. file_magic_cmd=$lt_cv_file_magic_cmd
  5316. deplibs_check_method=$lt_cv_deplibs_check_method
  5317. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5318. if test -n "$ac_tool_prefix"; then
  5319. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5320. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5322. printf %s "checking for $ac_word... " >&6; }
  5323. if test ${ac_cv_prog_DLLTOOL+y}
  5324. then :
  5325. printf %s "(cached) " >&6
  5326. else $as_nop
  5327. if test -n "$DLLTOOL"; then
  5328. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5329. else
  5330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5331. for as_dir in $PATH
  5332. do
  5333. IFS=$as_save_IFS
  5334. case $as_dir in #(((
  5335. '') as_dir=./ ;;
  5336. */) ;;
  5337. *) as_dir=$as_dir/ ;;
  5338. esac
  5339. for ac_exec_ext in '' $ac_executable_extensions; do
  5340. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5341. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5342. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5343. break 2
  5344. fi
  5345. done
  5346. done
  5347. IFS=$as_save_IFS
  5348. fi
  5349. fi
  5350. DLLTOOL=$ac_cv_prog_DLLTOOL
  5351. if test -n "$DLLTOOL"; then
  5352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5353. printf "%s\n" "$DLLTOOL" >&6; }
  5354. else
  5355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5356. printf "%s\n" "no" >&6; }
  5357. fi
  5358. fi
  5359. if test -z "$ac_cv_prog_DLLTOOL"; then
  5360. ac_ct_DLLTOOL=$DLLTOOL
  5361. # Extract the first word of "dlltool", so it can be a program name with args.
  5362. set dummy dlltool; ac_word=$2
  5363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5364. printf %s "checking for $ac_word... " >&6; }
  5365. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5366. then :
  5367. printf %s "(cached) " >&6
  5368. else $as_nop
  5369. if test -n "$ac_ct_DLLTOOL"; then
  5370. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5371. else
  5372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5373. for as_dir in $PATH
  5374. do
  5375. IFS=$as_save_IFS
  5376. case $as_dir in #(((
  5377. '') as_dir=./ ;;
  5378. */) ;;
  5379. *) as_dir=$as_dir/ ;;
  5380. esac
  5381. for ac_exec_ext in '' $ac_executable_extensions; do
  5382. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5383. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5384. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5385. break 2
  5386. fi
  5387. done
  5388. done
  5389. IFS=$as_save_IFS
  5390. fi
  5391. fi
  5392. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5393. if test -n "$ac_ct_DLLTOOL"; then
  5394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5395. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5396. else
  5397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5398. printf "%s\n" "no" >&6; }
  5399. fi
  5400. if test "x$ac_ct_DLLTOOL" = x; then
  5401. DLLTOOL="false"
  5402. else
  5403. case $cross_compiling:$ac_tool_warned in
  5404. yes:)
  5405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5406. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5407. ac_tool_warned=yes ;;
  5408. esac
  5409. DLLTOOL=$ac_ct_DLLTOOL
  5410. fi
  5411. else
  5412. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5413. fi
  5414. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5416. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5417. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5418. then :
  5419. printf %s "(cached) " >&6
  5420. else $as_nop
  5421. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5422. case $host_os in
  5423. cygwin* | mingw* | pw32* | cegcc*)
  5424. # two different shell functions defined in ltmain.sh;
  5425. # decide which one to use based on capabilities of $DLLTOOL
  5426. case `$DLLTOOL --help 2>&1` in
  5427. *--identify-strict*)
  5428. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5429. ;;
  5430. *)
  5431. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5432. ;;
  5433. esac
  5434. ;;
  5435. *)
  5436. # fallback: assume linklib IS sharedlib
  5437. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5438. ;;
  5439. esac
  5440. fi
  5441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5442. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5443. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5444. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5445. if test -n "$ac_tool_prefix"; then
  5446. for ac_prog in ar
  5447. do
  5448. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5449. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5451. printf %s "checking for $ac_word... " >&6; }
  5452. if test ${ac_cv_prog_AR+y}
  5453. then :
  5454. printf %s "(cached) " >&6
  5455. else $as_nop
  5456. if test -n "$AR"; then
  5457. ac_cv_prog_AR="$AR" # Let the user override the test.
  5458. else
  5459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5460. for as_dir in $PATH
  5461. do
  5462. IFS=$as_save_IFS
  5463. case $as_dir in #(((
  5464. '') as_dir=./ ;;
  5465. */) ;;
  5466. *) as_dir=$as_dir/ ;;
  5467. esac
  5468. for ac_exec_ext in '' $ac_executable_extensions; do
  5469. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5470. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5471. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5472. break 2
  5473. fi
  5474. done
  5475. done
  5476. IFS=$as_save_IFS
  5477. fi
  5478. fi
  5479. AR=$ac_cv_prog_AR
  5480. if test -n "$AR"; then
  5481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5482. printf "%s\n" "$AR" >&6; }
  5483. else
  5484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5485. printf "%s\n" "no" >&6; }
  5486. fi
  5487. test -n "$AR" && break
  5488. done
  5489. fi
  5490. if test -z "$AR"; then
  5491. ac_ct_AR=$AR
  5492. for ac_prog in ar
  5493. do
  5494. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5495. set dummy $ac_prog; ac_word=$2
  5496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5497. printf %s "checking for $ac_word... " >&6; }
  5498. if test ${ac_cv_prog_ac_ct_AR+y}
  5499. then :
  5500. printf %s "(cached) " >&6
  5501. else $as_nop
  5502. if test -n "$ac_ct_AR"; then
  5503. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5504. else
  5505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5506. for as_dir in $PATH
  5507. do
  5508. IFS=$as_save_IFS
  5509. case $as_dir in #(((
  5510. '') as_dir=./ ;;
  5511. */) ;;
  5512. *) as_dir=$as_dir/ ;;
  5513. esac
  5514. for ac_exec_ext in '' $ac_executable_extensions; do
  5515. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5516. ac_cv_prog_ac_ct_AR="$ac_prog"
  5517. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5518. break 2
  5519. fi
  5520. done
  5521. done
  5522. IFS=$as_save_IFS
  5523. fi
  5524. fi
  5525. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5526. if test -n "$ac_ct_AR"; then
  5527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5528. printf "%s\n" "$ac_ct_AR" >&6; }
  5529. else
  5530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5531. printf "%s\n" "no" >&6; }
  5532. fi
  5533. test -n "$ac_ct_AR" && break
  5534. done
  5535. if test "x$ac_ct_AR" = x; then
  5536. AR="false"
  5537. else
  5538. case $cross_compiling:$ac_tool_warned in
  5539. yes:)
  5540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5541. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5542. ac_tool_warned=yes ;;
  5543. esac
  5544. AR=$ac_ct_AR
  5545. fi
  5546. fi
  5547. : ${AR=ar}
  5548. : ${AR_FLAGS=cru}
  5549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5550. printf %s "checking for archiver @FILE support... " >&6; }
  5551. if test ${lt_cv_ar_at_file+y}
  5552. then :
  5553. printf %s "(cached) " >&6
  5554. else $as_nop
  5555. lt_cv_ar_at_file=no
  5556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5557. /* end confdefs.h. */
  5558. int
  5559. main (void)
  5560. {
  5561. ;
  5562. return 0;
  5563. }
  5564. _ACEOF
  5565. if ac_fn_c_try_compile "$LINENO"
  5566. then :
  5567. echo conftest.$ac_objext > conftest.lst
  5568. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5569. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5570. (eval $lt_ar_try) 2>&5
  5571. ac_status=$?
  5572. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5573. test $ac_status = 0; }
  5574. if test 0 -eq "$ac_status"; then
  5575. # Ensure the archiver fails upon bogus file names.
  5576. rm -f conftest.$ac_objext libconftest.a
  5577. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5578. (eval $lt_ar_try) 2>&5
  5579. ac_status=$?
  5580. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5581. test $ac_status = 0; }
  5582. if test 0 -ne "$ac_status"; then
  5583. lt_cv_ar_at_file=@
  5584. fi
  5585. fi
  5586. rm -f conftest.* libconftest.a
  5587. fi
  5588. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5589. fi
  5590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5591. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5592. if test no = "$lt_cv_ar_at_file"; then
  5593. archiver_list_spec=
  5594. else
  5595. archiver_list_spec=$lt_cv_ar_at_file
  5596. fi
  5597. if test -n "$ac_tool_prefix"; then
  5598. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5599. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5601. printf %s "checking for $ac_word... " >&6; }
  5602. if test ${ac_cv_prog_STRIP+y}
  5603. then :
  5604. printf %s "(cached) " >&6
  5605. else $as_nop
  5606. if test -n "$STRIP"; then
  5607. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5608. else
  5609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5610. for as_dir in $PATH
  5611. do
  5612. IFS=$as_save_IFS
  5613. case $as_dir in #(((
  5614. '') as_dir=./ ;;
  5615. */) ;;
  5616. *) as_dir=$as_dir/ ;;
  5617. esac
  5618. for ac_exec_ext in '' $ac_executable_extensions; do
  5619. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5620. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5621. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5622. break 2
  5623. fi
  5624. done
  5625. done
  5626. IFS=$as_save_IFS
  5627. fi
  5628. fi
  5629. STRIP=$ac_cv_prog_STRIP
  5630. if test -n "$STRIP"; then
  5631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5632. printf "%s\n" "$STRIP" >&6; }
  5633. else
  5634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5635. printf "%s\n" "no" >&6; }
  5636. fi
  5637. fi
  5638. if test -z "$ac_cv_prog_STRIP"; then
  5639. ac_ct_STRIP=$STRIP
  5640. # Extract the first word of "strip", so it can be a program name with args.
  5641. set dummy strip; ac_word=$2
  5642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5643. printf %s "checking for $ac_word... " >&6; }
  5644. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5645. then :
  5646. printf %s "(cached) " >&6
  5647. else $as_nop
  5648. if test -n "$ac_ct_STRIP"; then
  5649. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5650. else
  5651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5652. for as_dir in $PATH
  5653. do
  5654. IFS=$as_save_IFS
  5655. case $as_dir in #(((
  5656. '') as_dir=./ ;;
  5657. */) ;;
  5658. *) as_dir=$as_dir/ ;;
  5659. esac
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5662. ac_cv_prog_ac_ct_STRIP="strip"
  5663. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5672. if test -n "$ac_ct_STRIP"; then
  5673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5674. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5675. else
  5676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5677. printf "%s\n" "no" >&6; }
  5678. fi
  5679. if test "x$ac_ct_STRIP" = x; then
  5680. STRIP=":"
  5681. else
  5682. case $cross_compiling:$ac_tool_warned in
  5683. yes:)
  5684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5685. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5686. ac_tool_warned=yes ;;
  5687. esac
  5688. STRIP=$ac_ct_STRIP
  5689. fi
  5690. else
  5691. STRIP="$ac_cv_prog_STRIP"
  5692. fi
  5693. test -z "$STRIP" && STRIP=:
  5694. if test -n "$ac_tool_prefix"; then
  5695. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5696. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5698. printf %s "checking for $ac_word... " >&6; }
  5699. if test ${ac_cv_prog_RANLIB+y}
  5700. then :
  5701. printf %s "(cached) " >&6
  5702. else $as_nop
  5703. if test -n "$RANLIB"; then
  5704. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5705. else
  5706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5707. for as_dir in $PATH
  5708. do
  5709. IFS=$as_save_IFS
  5710. case $as_dir in #(((
  5711. '') as_dir=./ ;;
  5712. */) ;;
  5713. *) as_dir=$as_dir/ ;;
  5714. esac
  5715. for ac_exec_ext in '' $ac_executable_extensions; do
  5716. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5717. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5718. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5719. break 2
  5720. fi
  5721. done
  5722. done
  5723. IFS=$as_save_IFS
  5724. fi
  5725. fi
  5726. RANLIB=$ac_cv_prog_RANLIB
  5727. if test -n "$RANLIB"; then
  5728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5729. printf "%s\n" "$RANLIB" >&6; }
  5730. else
  5731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5732. printf "%s\n" "no" >&6; }
  5733. fi
  5734. fi
  5735. if test -z "$ac_cv_prog_RANLIB"; then
  5736. ac_ct_RANLIB=$RANLIB
  5737. # Extract the first word of "ranlib", so it can be a program name with args.
  5738. set dummy ranlib; ac_word=$2
  5739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5740. printf %s "checking for $ac_word... " >&6; }
  5741. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5742. then :
  5743. printf %s "(cached) " >&6
  5744. else $as_nop
  5745. if test -n "$ac_ct_RANLIB"; then
  5746. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5747. else
  5748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5749. for as_dir in $PATH
  5750. do
  5751. IFS=$as_save_IFS
  5752. case $as_dir in #(((
  5753. '') as_dir=./ ;;
  5754. */) ;;
  5755. *) as_dir=$as_dir/ ;;
  5756. esac
  5757. for ac_exec_ext in '' $ac_executable_extensions; do
  5758. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5759. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5760. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5761. break 2
  5762. fi
  5763. done
  5764. done
  5765. IFS=$as_save_IFS
  5766. fi
  5767. fi
  5768. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5769. if test -n "$ac_ct_RANLIB"; then
  5770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5771. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5772. else
  5773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5774. printf "%s\n" "no" >&6; }
  5775. fi
  5776. if test "x$ac_ct_RANLIB" = x; then
  5777. RANLIB=":"
  5778. else
  5779. case $cross_compiling:$ac_tool_warned in
  5780. yes:)
  5781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5782. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5783. ac_tool_warned=yes ;;
  5784. esac
  5785. RANLIB=$ac_ct_RANLIB
  5786. fi
  5787. else
  5788. RANLIB="$ac_cv_prog_RANLIB"
  5789. fi
  5790. test -z "$RANLIB" && RANLIB=:
  5791. # Determine commands to create old-style static archives.
  5792. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5793. old_postinstall_cmds='chmod 644 $oldlib'
  5794. old_postuninstall_cmds=
  5795. if test -n "$RANLIB"; then
  5796. case $host_os in
  5797. bitrig* | openbsd*)
  5798. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5799. ;;
  5800. *)
  5801. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5802. ;;
  5803. esac
  5804. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5805. fi
  5806. case $host_os in
  5807. darwin*)
  5808. lock_old_archive_extraction=yes ;;
  5809. *)
  5810. lock_old_archive_extraction=no ;;
  5811. esac
  5812. for ac_prog in gawk mawk nawk awk
  5813. do
  5814. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5815. set dummy $ac_prog; ac_word=$2
  5816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5817. printf %s "checking for $ac_word... " >&6; }
  5818. if test ${ac_cv_prog_AWK+y}
  5819. then :
  5820. printf %s "(cached) " >&6
  5821. else $as_nop
  5822. if test -n "$AWK"; then
  5823. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5824. else
  5825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5826. for as_dir in $PATH
  5827. do
  5828. IFS=$as_save_IFS
  5829. case $as_dir in #(((
  5830. '') as_dir=./ ;;
  5831. */) ;;
  5832. *) as_dir=$as_dir/ ;;
  5833. esac
  5834. for ac_exec_ext in '' $ac_executable_extensions; do
  5835. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5836. ac_cv_prog_AWK="$ac_prog"
  5837. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5838. break 2
  5839. fi
  5840. done
  5841. done
  5842. IFS=$as_save_IFS
  5843. fi
  5844. fi
  5845. AWK=$ac_cv_prog_AWK
  5846. if test -n "$AWK"; then
  5847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5848. printf "%s\n" "$AWK" >&6; }
  5849. else
  5850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5851. printf "%s\n" "no" >&6; }
  5852. fi
  5853. test -n "$AWK" && break
  5854. done
  5855. # If no C compiler was specified, use CC.
  5856. LTCC=${LTCC-"$CC"}
  5857. # If no C compiler flags were specified, use CFLAGS.
  5858. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5859. # Allow CC to be a program name with arguments.
  5860. compiler=$CC
  5861. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5863. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5864. if test ${lt_cv_sys_global_symbol_pipe+y}
  5865. then :
  5866. printf %s "(cached) " >&6
  5867. else $as_nop
  5868. # These are sane defaults that work on at least a few old systems.
  5869. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5870. # Character class describing NM global symbol codes.
  5871. symcode='[BCDEGRST]'
  5872. # Regexp to match symbols that can be accessed directly from C.
  5873. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5874. # Define system-specific variables.
  5875. case $host_os in
  5876. aix*)
  5877. symcode='[BCDT]'
  5878. ;;
  5879. cygwin* | mingw* | pw32* | cegcc*)
  5880. symcode='[ABCDGISTW]'
  5881. ;;
  5882. hpux*)
  5883. if test ia64 = "$host_cpu"; then
  5884. symcode='[ABCDEGRST]'
  5885. fi
  5886. ;;
  5887. irix* | nonstopux*)
  5888. symcode='[BCDEGRST]'
  5889. ;;
  5890. osf*)
  5891. symcode='[BCDEGQRST]'
  5892. ;;
  5893. solaris*)
  5894. symcode='[BCDRT]'
  5895. ;;
  5896. sco3.2v5*)
  5897. symcode='[DT]'
  5898. ;;
  5899. sysv4.2uw2*)
  5900. symcode='[DT]'
  5901. ;;
  5902. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5903. symcode='[ABDT]'
  5904. ;;
  5905. sysv4)
  5906. symcode='[DFNSTU]'
  5907. ;;
  5908. esac
  5909. # If we're using GNU nm, then use its standard symbol codes.
  5910. case `$NM -V 2>&1` in
  5911. *GNU* | *'with BFD'*)
  5912. symcode='[ABCDGIRSTW]' ;;
  5913. esac
  5914. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5915. # Gets list of data symbols to import.
  5916. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5917. # Adjust the below global symbol transforms to fixup imported variables.
  5918. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5919. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5920. lt_c_name_lib_hook="\
  5921. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5922. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5923. else
  5924. # Disable hooks by default.
  5925. lt_cv_sys_global_symbol_to_import=
  5926. lt_cdecl_hook=
  5927. lt_c_name_hook=
  5928. lt_c_name_lib_hook=
  5929. fi
  5930. # Transform an extracted symbol line into a proper C declaration.
  5931. # Some systems (esp. on ia64) link data and code symbols differently,
  5932. # so use this general approach.
  5933. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5934. $lt_cdecl_hook\
  5935. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5936. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5937. # Transform an extracted symbol line into symbol name and symbol address
  5938. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5939. $lt_c_name_hook\
  5940. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5941. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5942. # Transform an extracted symbol line into symbol name with lib prefix and
  5943. # symbol address.
  5944. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5945. $lt_c_name_lib_hook\
  5946. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5947. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5948. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5949. # Handle CRLF in mingw tool chain
  5950. opt_cr=
  5951. case $build_os in
  5952. mingw*)
  5953. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5954. ;;
  5955. esac
  5956. # Try without a prefix underscore, then with it.
  5957. for ac_symprfx in "" "_"; do
  5958. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5959. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5960. # Write the raw and C identifiers.
  5961. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5962. # Fake it for dumpbin and say T for any non-static function,
  5963. # D for any global variable and I for any imported variable.
  5964. # Also find C++ and __fastcall symbols from MSVC++,
  5965. # which start with @ or ?.
  5966. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5967. " {last_section=section; section=\$ 3};"\
  5968. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5969. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5970. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5971. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5972. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5973. " \$ 0!~/External *\|/{next};"\
  5974. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5975. " {if(hide[section]) next};"\
  5976. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5977. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5978. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5979. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5980. " ' prfx=^$ac_symprfx"
  5981. else
  5982. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5983. fi
  5984. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5985. # Check to see that the pipe works correctly.
  5986. pipe_works=no
  5987. rm -f conftest*
  5988. cat > conftest.$ac_ext <<_LT_EOF
  5989. #ifdef __cplusplus
  5990. extern "C" {
  5991. #endif
  5992. char nm_test_var;
  5993. void nm_test_func(void);
  5994. void nm_test_func(void){}
  5995. #ifdef __cplusplus
  5996. }
  5997. #endif
  5998. int main(){nm_test_var='a';nm_test_func();return(0);}
  5999. _LT_EOF
  6000. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6001. (eval $ac_compile) 2>&5
  6002. ac_status=$?
  6003. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6004. test $ac_status = 0; }; then
  6005. # Now try to grab the symbols.
  6006. nlist=conftest.nm
  6007. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6008. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6009. ac_status=$?
  6010. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6011. test $ac_status = 0; } && test -s "$nlist"; then
  6012. # Try sorting and uniquifying the output.
  6013. if sort "$nlist" | uniq > "$nlist"T; then
  6014. mv -f "$nlist"T "$nlist"
  6015. else
  6016. rm -f "$nlist"T
  6017. fi
  6018. # Make sure that we snagged all the symbols we need.
  6019. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6020. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6021. cat <<_LT_EOF > conftest.$ac_ext
  6022. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6023. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6024. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6025. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6026. # define LT_DLSYM_CONST
  6027. #elif defined __osf__
  6028. /* This system does not cope well with relocations in const data. */
  6029. # define LT_DLSYM_CONST
  6030. #else
  6031. # define LT_DLSYM_CONST const
  6032. #endif
  6033. #ifdef __cplusplus
  6034. extern "C" {
  6035. #endif
  6036. _LT_EOF
  6037. # Now generate the symbol file.
  6038. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6039. cat <<_LT_EOF >> conftest.$ac_ext
  6040. /* The mapping between symbol names and symbols. */
  6041. LT_DLSYM_CONST struct {
  6042. const char *name;
  6043. void *address;
  6044. }
  6045. lt__PROGRAM__LTX_preloaded_symbols[] =
  6046. {
  6047. { "@PROGRAM@", (void *) 0 },
  6048. _LT_EOF
  6049. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6050. cat <<\_LT_EOF >> conftest.$ac_ext
  6051. {0, (void *) 0}
  6052. };
  6053. /* This works around a problem in FreeBSD linker */
  6054. #ifdef FREEBSD_WORKAROUND
  6055. static const void *lt_preloaded_setup() {
  6056. return lt__PROGRAM__LTX_preloaded_symbols;
  6057. }
  6058. #endif
  6059. #ifdef __cplusplus
  6060. }
  6061. #endif
  6062. _LT_EOF
  6063. # Now try linking the two files.
  6064. mv conftest.$ac_objext conftstm.$ac_objext
  6065. lt_globsym_save_LIBS=$LIBS
  6066. lt_globsym_save_CFLAGS=$CFLAGS
  6067. LIBS=conftstm.$ac_objext
  6068. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6069. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6070. (eval $ac_link) 2>&5
  6071. ac_status=$?
  6072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6073. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6074. pipe_works=yes
  6075. fi
  6076. LIBS=$lt_globsym_save_LIBS
  6077. CFLAGS=$lt_globsym_save_CFLAGS
  6078. else
  6079. echo "cannot find nm_test_func in $nlist" >&5
  6080. fi
  6081. else
  6082. echo "cannot find nm_test_var in $nlist" >&5
  6083. fi
  6084. else
  6085. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6086. fi
  6087. else
  6088. echo "$progname: failed program was:" >&5
  6089. cat conftest.$ac_ext >&5
  6090. fi
  6091. rm -rf conftest* conftst*
  6092. # Do not use the global_symbol_pipe unless it works.
  6093. if test yes = "$pipe_works"; then
  6094. break
  6095. else
  6096. lt_cv_sys_global_symbol_pipe=
  6097. fi
  6098. done
  6099. fi
  6100. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6101. lt_cv_sys_global_symbol_to_cdecl=
  6102. fi
  6103. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6105. printf "%s\n" "failed" >&6; }
  6106. else
  6107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6108. printf "%s\n" "ok" >&6; }
  6109. fi
  6110. # Response file support.
  6111. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6112. nm_file_list_spec='@'
  6113. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6114. nm_file_list_spec='@'
  6115. fi
  6116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6117. printf %s "checking for sysroot... " >&6; }
  6118. # Check whether --with-sysroot was given.
  6119. if test ${with_sysroot+y}
  6120. then :
  6121. withval=$with_sysroot;
  6122. else $as_nop
  6123. with_sysroot=no
  6124. fi
  6125. lt_sysroot=
  6126. case $with_sysroot in #(
  6127. yes)
  6128. if test yes = "$GCC"; then
  6129. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6130. fi
  6131. ;; #(
  6132. /*)
  6133. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6134. ;; #(
  6135. no|'')
  6136. ;; #(
  6137. *)
  6138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6139. printf "%s\n" "$with_sysroot" >&6; }
  6140. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6141. ;;
  6142. esac
  6143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6144. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6146. printf %s "checking for a working dd... " >&6; }
  6147. if test ${ac_cv_path_lt_DD+y}
  6148. then :
  6149. printf %s "(cached) " >&6
  6150. else $as_nop
  6151. printf 0123456789abcdef0123456789abcdef >conftest.i
  6152. cat conftest.i conftest.i >conftest2.i
  6153. : ${lt_DD:=$DD}
  6154. if test -z "$lt_DD"; then
  6155. ac_path_lt_DD_found=false
  6156. # Loop through the user's path and test for each of PROGNAME-LIST
  6157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6158. for as_dir in $PATH
  6159. do
  6160. IFS=$as_save_IFS
  6161. case $as_dir in #(((
  6162. '') as_dir=./ ;;
  6163. */) ;;
  6164. *) as_dir=$as_dir/ ;;
  6165. esac
  6166. for ac_prog in dd
  6167. do
  6168. for ac_exec_ext in '' $ac_executable_extensions; do
  6169. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6170. as_fn_executable_p "$ac_path_lt_DD" || continue
  6171. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6172. cmp -s conftest.i conftest.out \
  6173. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6174. fi
  6175. $ac_path_lt_DD_found && break 3
  6176. done
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. if test -z "$ac_cv_path_lt_DD"; then
  6181. :
  6182. fi
  6183. else
  6184. ac_cv_path_lt_DD=$lt_DD
  6185. fi
  6186. rm -f conftest.i conftest2.i conftest.out
  6187. fi
  6188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6189. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6191. printf %s "checking how to truncate binary pipes... " >&6; }
  6192. if test ${lt_cv_truncate_bin+y}
  6193. then :
  6194. printf %s "(cached) " >&6
  6195. else $as_nop
  6196. printf 0123456789abcdef0123456789abcdef >conftest.i
  6197. cat conftest.i conftest.i >conftest2.i
  6198. lt_cv_truncate_bin=
  6199. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6200. cmp -s conftest.i conftest.out \
  6201. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6202. fi
  6203. rm -f conftest.i conftest2.i conftest.out
  6204. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6205. fi
  6206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6207. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6208. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6209. func_cc_basename ()
  6210. {
  6211. for cc_temp in $*""; do
  6212. case $cc_temp in
  6213. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6214. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6215. \-*) ;;
  6216. *) break;;
  6217. esac
  6218. done
  6219. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6220. }
  6221. # Check whether --enable-libtool-lock was given.
  6222. if test ${enable_libtool_lock+y}
  6223. then :
  6224. enableval=$enable_libtool_lock;
  6225. fi
  6226. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6227. # Some flags need to be propagated to the compiler or linker for good
  6228. # libtool support.
  6229. case $host in
  6230. ia64-*-hpux*)
  6231. # Find out what ABI is being produced by ac_compile, and set mode
  6232. # options accordingly.
  6233. echo 'int i;' > conftest.$ac_ext
  6234. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6235. (eval $ac_compile) 2>&5
  6236. ac_status=$?
  6237. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6238. test $ac_status = 0; }; then
  6239. case `/usr/bin/file conftest.$ac_objext` in
  6240. *ELF-32*)
  6241. HPUX_IA64_MODE=32
  6242. ;;
  6243. *ELF-64*)
  6244. HPUX_IA64_MODE=64
  6245. ;;
  6246. esac
  6247. fi
  6248. rm -rf conftest*
  6249. ;;
  6250. *-*-irix6*)
  6251. # Find out what ABI is being produced by ac_compile, and set linker
  6252. # options accordingly.
  6253. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6254. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6255. (eval $ac_compile) 2>&5
  6256. ac_status=$?
  6257. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6258. test $ac_status = 0; }; then
  6259. if test yes = "$lt_cv_prog_gnu_ld"; then
  6260. case `/usr/bin/file conftest.$ac_objext` in
  6261. *32-bit*)
  6262. LD="${LD-ld} -melf32bsmip"
  6263. ;;
  6264. *N32*)
  6265. LD="${LD-ld} -melf32bmipn32"
  6266. ;;
  6267. *64-bit*)
  6268. LD="${LD-ld} -melf64bmip"
  6269. ;;
  6270. esac
  6271. else
  6272. case `/usr/bin/file conftest.$ac_objext` in
  6273. *32-bit*)
  6274. LD="${LD-ld} -32"
  6275. ;;
  6276. *N32*)
  6277. LD="${LD-ld} -n32"
  6278. ;;
  6279. *64-bit*)
  6280. LD="${LD-ld} -64"
  6281. ;;
  6282. esac
  6283. fi
  6284. fi
  6285. rm -rf conftest*
  6286. ;;
  6287. mips64*-*linux*)
  6288. # Find out what ABI is being produced by ac_compile, and set linker
  6289. # options accordingly.
  6290. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6291. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6292. (eval $ac_compile) 2>&5
  6293. ac_status=$?
  6294. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6295. test $ac_status = 0; }; then
  6296. emul=elf
  6297. case `/usr/bin/file conftest.$ac_objext` in
  6298. *32-bit*)
  6299. emul="${emul}32"
  6300. ;;
  6301. *64-bit*)
  6302. emul="${emul}64"
  6303. ;;
  6304. esac
  6305. case `/usr/bin/file conftest.$ac_objext` in
  6306. *MSB*)
  6307. emul="${emul}btsmip"
  6308. ;;
  6309. *LSB*)
  6310. emul="${emul}ltsmip"
  6311. ;;
  6312. esac
  6313. case `/usr/bin/file conftest.$ac_objext` in
  6314. *N32*)
  6315. emul="${emul}n32"
  6316. ;;
  6317. esac
  6318. LD="${LD-ld} -m $emul"
  6319. fi
  6320. rm -rf conftest*
  6321. ;;
  6322. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6323. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6324. # Find out what ABI is being produced by ac_compile, and set linker
  6325. # options accordingly. Note that the listed cases only cover the
  6326. # situations where additional linker options are needed (such as when
  6327. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6328. # vice versa); the common cases where no linker options are needed do
  6329. # not appear in the list.
  6330. echo 'int i;' > conftest.$ac_ext
  6331. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6332. (eval $ac_compile) 2>&5
  6333. ac_status=$?
  6334. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6335. test $ac_status = 0; }; then
  6336. case `/usr/bin/file conftest.o` in
  6337. *32-bit*)
  6338. case $host in
  6339. x86_64-*kfreebsd*-gnu)
  6340. LD="${LD-ld} -m elf_i386_fbsd"
  6341. ;;
  6342. x86_64-*linux*)
  6343. case `/usr/bin/file conftest.o` in
  6344. *x86-64*)
  6345. LD="${LD-ld} -m elf32_x86_64"
  6346. ;;
  6347. *)
  6348. LD="${LD-ld} -m elf_i386"
  6349. ;;
  6350. esac
  6351. ;;
  6352. powerpc64le-*linux*)
  6353. LD="${LD-ld} -m elf32lppclinux"
  6354. ;;
  6355. powerpc64-*linux*)
  6356. LD="${LD-ld} -m elf32ppclinux"
  6357. ;;
  6358. s390x-*linux*)
  6359. LD="${LD-ld} -m elf_s390"
  6360. ;;
  6361. sparc64-*linux*)
  6362. LD="${LD-ld} -m elf32_sparc"
  6363. ;;
  6364. esac
  6365. ;;
  6366. *64-bit*)
  6367. case $host in
  6368. x86_64-*kfreebsd*-gnu)
  6369. LD="${LD-ld} -m elf_x86_64_fbsd"
  6370. ;;
  6371. x86_64-*linux*)
  6372. LD="${LD-ld} -m elf_x86_64"
  6373. ;;
  6374. powerpcle-*linux*|powerpc64le-*linux*)
  6375. LD="${LD-ld} -m elf64lppc"
  6376. ;;
  6377. powerpc-*linux*|powerpc64-*linux*)
  6378. LD="${LD-ld} -m elf64ppc"
  6379. ;;
  6380. s390*-*linux*|s390*-*tpf*)
  6381. LD="${LD-ld} -m elf64_s390"
  6382. ;;
  6383. sparc*-*linux*)
  6384. LD="${LD-ld} -m elf64_sparc"
  6385. ;;
  6386. esac
  6387. ;;
  6388. esac
  6389. fi
  6390. rm -rf conftest*
  6391. ;;
  6392. *-*-sco3.2v5*)
  6393. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6394. SAVE_CFLAGS=$CFLAGS
  6395. CFLAGS="$CFLAGS -belf"
  6396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6397. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6398. if test ${lt_cv_cc_needs_belf+y}
  6399. then :
  6400. printf %s "(cached) " >&6
  6401. else $as_nop
  6402. ac_ext=c
  6403. ac_cpp='$CPP $CPPFLAGS'
  6404. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6405. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6406. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6408. /* end confdefs.h. */
  6409. int
  6410. main (void)
  6411. {
  6412. ;
  6413. return 0;
  6414. }
  6415. _ACEOF
  6416. if ac_fn_c_try_link "$LINENO"
  6417. then :
  6418. lt_cv_cc_needs_belf=yes
  6419. else $as_nop
  6420. lt_cv_cc_needs_belf=no
  6421. fi
  6422. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6423. conftest$ac_exeext conftest.$ac_ext
  6424. ac_ext=c
  6425. ac_cpp='$CPP $CPPFLAGS'
  6426. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6427. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6428. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6429. fi
  6430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6431. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6432. if test yes != "$lt_cv_cc_needs_belf"; then
  6433. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6434. CFLAGS=$SAVE_CFLAGS
  6435. fi
  6436. ;;
  6437. *-*solaris*)
  6438. # Find out what ABI is being produced by ac_compile, and set linker
  6439. # options accordingly.
  6440. echo 'int i;' > conftest.$ac_ext
  6441. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6442. (eval $ac_compile) 2>&5
  6443. ac_status=$?
  6444. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6445. test $ac_status = 0; }; then
  6446. case `/usr/bin/file conftest.o` in
  6447. *64-bit*)
  6448. case $lt_cv_prog_gnu_ld in
  6449. yes*)
  6450. case $host in
  6451. i?86-*-solaris*|x86_64-*-solaris*)
  6452. LD="${LD-ld} -m elf_x86_64"
  6453. ;;
  6454. sparc*-*-solaris*)
  6455. LD="${LD-ld} -m elf64_sparc"
  6456. ;;
  6457. esac
  6458. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6459. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6460. LD=${LD-ld}_sol2
  6461. fi
  6462. ;;
  6463. *)
  6464. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6465. LD="${LD-ld} -64"
  6466. fi
  6467. ;;
  6468. esac
  6469. ;;
  6470. esac
  6471. fi
  6472. rm -rf conftest*
  6473. ;;
  6474. esac
  6475. need_locks=$enable_libtool_lock
  6476. if test -n "$ac_tool_prefix"; then
  6477. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6478. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6480. printf %s "checking for $ac_word... " >&6; }
  6481. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6482. then :
  6483. printf %s "(cached) " >&6
  6484. else $as_nop
  6485. if test -n "$MANIFEST_TOOL"; then
  6486. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6487. else
  6488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6489. for as_dir in $PATH
  6490. do
  6491. IFS=$as_save_IFS
  6492. case $as_dir in #(((
  6493. '') as_dir=./ ;;
  6494. */) ;;
  6495. *) as_dir=$as_dir/ ;;
  6496. esac
  6497. for ac_exec_ext in '' $ac_executable_extensions; do
  6498. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6499. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6500. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6501. break 2
  6502. fi
  6503. done
  6504. done
  6505. IFS=$as_save_IFS
  6506. fi
  6507. fi
  6508. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6509. if test -n "$MANIFEST_TOOL"; then
  6510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6511. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6512. else
  6513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6514. printf "%s\n" "no" >&6; }
  6515. fi
  6516. fi
  6517. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6518. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6519. # Extract the first word of "mt", so it can be a program name with args.
  6520. set dummy mt; ac_word=$2
  6521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6522. printf %s "checking for $ac_word... " >&6; }
  6523. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6524. then :
  6525. printf %s "(cached) " >&6
  6526. else $as_nop
  6527. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6528. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6529. else
  6530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6531. for as_dir in $PATH
  6532. do
  6533. IFS=$as_save_IFS
  6534. case $as_dir in #(((
  6535. '') as_dir=./ ;;
  6536. */) ;;
  6537. *) as_dir=$as_dir/ ;;
  6538. esac
  6539. for ac_exec_ext in '' $ac_executable_extensions; do
  6540. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6541. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6542. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6543. break 2
  6544. fi
  6545. done
  6546. done
  6547. IFS=$as_save_IFS
  6548. fi
  6549. fi
  6550. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6551. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6553. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6554. else
  6555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6556. printf "%s\n" "no" >&6; }
  6557. fi
  6558. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6559. MANIFEST_TOOL=":"
  6560. else
  6561. case $cross_compiling:$ac_tool_warned in
  6562. yes:)
  6563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6564. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6565. ac_tool_warned=yes ;;
  6566. esac
  6567. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6568. fi
  6569. else
  6570. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6571. fi
  6572. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6574. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6575. if test ${lt_cv_path_mainfest_tool+y}
  6576. then :
  6577. printf %s "(cached) " >&6
  6578. else $as_nop
  6579. lt_cv_path_mainfest_tool=no
  6580. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6581. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6582. cat conftest.err >&5
  6583. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6584. lt_cv_path_mainfest_tool=yes
  6585. fi
  6586. rm -f conftest*
  6587. fi
  6588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6589. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6590. if test yes != "$lt_cv_path_mainfest_tool"; then
  6591. MANIFEST_TOOL=:
  6592. fi
  6593. case $host_os in
  6594. rhapsody* | darwin*)
  6595. if test -n "$ac_tool_prefix"; then
  6596. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6597. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6599. printf %s "checking for $ac_word... " >&6; }
  6600. if test ${ac_cv_prog_DSYMUTIL+y}
  6601. then :
  6602. printf %s "(cached) " >&6
  6603. else $as_nop
  6604. if test -n "$DSYMUTIL"; then
  6605. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6606. else
  6607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6608. for as_dir in $PATH
  6609. do
  6610. IFS=$as_save_IFS
  6611. case $as_dir in #(((
  6612. '') as_dir=./ ;;
  6613. */) ;;
  6614. *) as_dir=$as_dir/ ;;
  6615. esac
  6616. for ac_exec_ext in '' $ac_executable_extensions; do
  6617. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6618. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6619. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6620. break 2
  6621. fi
  6622. done
  6623. done
  6624. IFS=$as_save_IFS
  6625. fi
  6626. fi
  6627. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6628. if test -n "$DSYMUTIL"; then
  6629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6630. printf "%s\n" "$DSYMUTIL" >&6; }
  6631. else
  6632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6633. printf "%s\n" "no" >&6; }
  6634. fi
  6635. fi
  6636. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6637. ac_ct_DSYMUTIL=$DSYMUTIL
  6638. # Extract the first word of "dsymutil", so it can be a program name with args.
  6639. set dummy dsymutil; ac_word=$2
  6640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6641. printf %s "checking for $ac_word... " >&6; }
  6642. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6643. then :
  6644. printf %s "(cached) " >&6
  6645. else $as_nop
  6646. if test -n "$ac_ct_DSYMUTIL"; then
  6647. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6648. else
  6649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6650. for as_dir in $PATH
  6651. do
  6652. IFS=$as_save_IFS
  6653. case $as_dir in #(((
  6654. '') as_dir=./ ;;
  6655. */) ;;
  6656. *) as_dir=$as_dir/ ;;
  6657. esac
  6658. for ac_exec_ext in '' $ac_executable_extensions; do
  6659. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6660. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6661. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6662. break 2
  6663. fi
  6664. done
  6665. done
  6666. IFS=$as_save_IFS
  6667. fi
  6668. fi
  6669. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6670. if test -n "$ac_ct_DSYMUTIL"; then
  6671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6672. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6673. else
  6674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6675. printf "%s\n" "no" >&6; }
  6676. fi
  6677. if test "x$ac_ct_DSYMUTIL" = x; then
  6678. DSYMUTIL=":"
  6679. else
  6680. case $cross_compiling:$ac_tool_warned in
  6681. yes:)
  6682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6683. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6684. ac_tool_warned=yes ;;
  6685. esac
  6686. DSYMUTIL=$ac_ct_DSYMUTIL
  6687. fi
  6688. else
  6689. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6690. fi
  6691. if test -n "$ac_tool_prefix"; then
  6692. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6693. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6695. printf %s "checking for $ac_word... " >&6; }
  6696. if test ${ac_cv_prog_NMEDIT+y}
  6697. then :
  6698. printf %s "(cached) " >&6
  6699. else $as_nop
  6700. if test -n "$NMEDIT"; then
  6701. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6702. else
  6703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6704. for as_dir in $PATH
  6705. do
  6706. IFS=$as_save_IFS
  6707. case $as_dir in #(((
  6708. '') as_dir=./ ;;
  6709. */) ;;
  6710. *) as_dir=$as_dir/ ;;
  6711. esac
  6712. for ac_exec_ext in '' $ac_executable_extensions; do
  6713. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6714. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6715. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6716. break 2
  6717. fi
  6718. done
  6719. done
  6720. IFS=$as_save_IFS
  6721. fi
  6722. fi
  6723. NMEDIT=$ac_cv_prog_NMEDIT
  6724. if test -n "$NMEDIT"; then
  6725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6726. printf "%s\n" "$NMEDIT" >&6; }
  6727. else
  6728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6729. printf "%s\n" "no" >&6; }
  6730. fi
  6731. fi
  6732. if test -z "$ac_cv_prog_NMEDIT"; then
  6733. ac_ct_NMEDIT=$NMEDIT
  6734. # Extract the first word of "nmedit", so it can be a program name with args.
  6735. set dummy nmedit; ac_word=$2
  6736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6737. printf %s "checking for $ac_word... " >&6; }
  6738. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6739. then :
  6740. printf %s "(cached) " >&6
  6741. else $as_nop
  6742. if test -n "$ac_ct_NMEDIT"; then
  6743. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6744. else
  6745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6746. for as_dir in $PATH
  6747. do
  6748. IFS=$as_save_IFS
  6749. case $as_dir in #(((
  6750. '') as_dir=./ ;;
  6751. */) ;;
  6752. *) as_dir=$as_dir/ ;;
  6753. esac
  6754. for ac_exec_ext in '' $ac_executable_extensions; do
  6755. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6756. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6757. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6758. break 2
  6759. fi
  6760. done
  6761. done
  6762. IFS=$as_save_IFS
  6763. fi
  6764. fi
  6765. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6766. if test -n "$ac_ct_NMEDIT"; then
  6767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6768. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6769. else
  6770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6771. printf "%s\n" "no" >&6; }
  6772. fi
  6773. if test "x$ac_ct_NMEDIT" = x; then
  6774. NMEDIT=":"
  6775. else
  6776. case $cross_compiling:$ac_tool_warned in
  6777. yes:)
  6778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6779. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6780. ac_tool_warned=yes ;;
  6781. esac
  6782. NMEDIT=$ac_ct_NMEDIT
  6783. fi
  6784. else
  6785. NMEDIT="$ac_cv_prog_NMEDIT"
  6786. fi
  6787. if test -n "$ac_tool_prefix"; then
  6788. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6789. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6791. printf %s "checking for $ac_word... " >&6; }
  6792. if test ${ac_cv_prog_LIPO+y}
  6793. then :
  6794. printf %s "(cached) " >&6
  6795. else $as_nop
  6796. if test -n "$LIPO"; then
  6797. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6798. else
  6799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6800. for as_dir in $PATH
  6801. do
  6802. IFS=$as_save_IFS
  6803. case $as_dir in #(((
  6804. '') as_dir=./ ;;
  6805. */) ;;
  6806. *) as_dir=$as_dir/ ;;
  6807. esac
  6808. for ac_exec_ext in '' $ac_executable_extensions; do
  6809. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6810. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6812. break 2
  6813. fi
  6814. done
  6815. done
  6816. IFS=$as_save_IFS
  6817. fi
  6818. fi
  6819. LIPO=$ac_cv_prog_LIPO
  6820. if test -n "$LIPO"; then
  6821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6822. printf "%s\n" "$LIPO" >&6; }
  6823. else
  6824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6825. printf "%s\n" "no" >&6; }
  6826. fi
  6827. fi
  6828. if test -z "$ac_cv_prog_LIPO"; then
  6829. ac_ct_LIPO=$LIPO
  6830. # Extract the first word of "lipo", so it can be a program name with args.
  6831. set dummy lipo; ac_word=$2
  6832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6833. printf %s "checking for $ac_word... " >&6; }
  6834. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6835. then :
  6836. printf %s "(cached) " >&6
  6837. else $as_nop
  6838. if test -n "$ac_ct_LIPO"; then
  6839. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6840. else
  6841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6842. for as_dir in $PATH
  6843. do
  6844. IFS=$as_save_IFS
  6845. case $as_dir in #(((
  6846. '') as_dir=./ ;;
  6847. */) ;;
  6848. *) as_dir=$as_dir/ ;;
  6849. esac
  6850. for ac_exec_ext in '' $ac_executable_extensions; do
  6851. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6852. ac_cv_prog_ac_ct_LIPO="lipo"
  6853. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6854. break 2
  6855. fi
  6856. done
  6857. done
  6858. IFS=$as_save_IFS
  6859. fi
  6860. fi
  6861. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6862. if test -n "$ac_ct_LIPO"; then
  6863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6864. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6865. else
  6866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6867. printf "%s\n" "no" >&6; }
  6868. fi
  6869. if test "x$ac_ct_LIPO" = x; then
  6870. LIPO=":"
  6871. else
  6872. case $cross_compiling:$ac_tool_warned in
  6873. yes:)
  6874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6875. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6876. ac_tool_warned=yes ;;
  6877. esac
  6878. LIPO=$ac_ct_LIPO
  6879. fi
  6880. else
  6881. LIPO="$ac_cv_prog_LIPO"
  6882. fi
  6883. if test -n "$ac_tool_prefix"; then
  6884. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6885. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6887. printf %s "checking for $ac_word... " >&6; }
  6888. if test ${ac_cv_prog_OTOOL+y}
  6889. then :
  6890. printf %s "(cached) " >&6
  6891. else $as_nop
  6892. if test -n "$OTOOL"; then
  6893. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6894. else
  6895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6896. for as_dir in $PATH
  6897. do
  6898. IFS=$as_save_IFS
  6899. case $as_dir in #(((
  6900. '') as_dir=./ ;;
  6901. */) ;;
  6902. *) as_dir=$as_dir/ ;;
  6903. esac
  6904. for ac_exec_ext in '' $ac_executable_extensions; do
  6905. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6906. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6907. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6908. break 2
  6909. fi
  6910. done
  6911. done
  6912. IFS=$as_save_IFS
  6913. fi
  6914. fi
  6915. OTOOL=$ac_cv_prog_OTOOL
  6916. if test -n "$OTOOL"; then
  6917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6918. printf "%s\n" "$OTOOL" >&6; }
  6919. else
  6920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6921. printf "%s\n" "no" >&6; }
  6922. fi
  6923. fi
  6924. if test -z "$ac_cv_prog_OTOOL"; then
  6925. ac_ct_OTOOL=$OTOOL
  6926. # Extract the first word of "otool", so it can be a program name with args.
  6927. set dummy otool; ac_word=$2
  6928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6929. printf %s "checking for $ac_word... " >&6; }
  6930. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6931. then :
  6932. printf %s "(cached) " >&6
  6933. else $as_nop
  6934. if test -n "$ac_ct_OTOOL"; then
  6935. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6936. else
  6937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6938. for as_dir in $PATH
  6939. do
  6940. IFS=$as_save_IFS
  6941. case $as_dir in #(((
  6942. '') as_dir=./ ;;
  6943. */) ;;
  6944. *) as_dir=$as_dir/ ;;
  6945. esac
  6946. for ac_exec_ext in '' $ac_executable_extensions; do
  6947. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6948. ac_cv_prog_ac_ct_OTOOL="otool"
  6949. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6950. break 2
  6951. fi
  6952. done
  6953. done
  6954. IFS=$as_save_IFS
  6955. fi
  6956. fi
  6957. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6958. if test -n "$ac_ct_OTOOL"; then
  6959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6960. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6961. else
  6962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6963. printf "%s\n" "no" >&6; }
  6964. fi
  6965. if test "x$ac_ct_OTOOL" = x; then
  6966. OTOOL=":"
  6967. else
  6968. case $cross_compiling:$ac_tool_warned in
  6969. yes:)
  6970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6971. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6972. ac_tool_warned=yes ;;
  6973. esac
  6974. OTOOL=$ac_ct_OTOOL
  6975. fi
  6976. else
  6977. OTOOL="$ac_cv_prog_OTOOL"
  6978. fi
  6979. if test -n "$ac_tool_prefix"; then
  6980. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6981. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6983. printf %s "checking for $ac_word... " >&6; }
  6984. if test ${ac_cv_prog_OTOOL64+y}
  6985. then :
  6986. printf %s "(cached) " >&6
  6987. else $as_nop
  6988. if test -n "$OTOOL64"; then
  6989. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6990. else
  6991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6992. for as_dir in $PATH
  6993. do
  6994. IFS=$as_save_IFS
  6995. case $as_dir in #(((
  6996. '') as_dir=./ ;;
  6997. */) ;;
  6998. *) as_dir=$as_dir/ ;;
  6999. esac
  7000. for ac_exec_ext in '' $ac_executable_extensions; do
  7001. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7002. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7003. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7004. break 2
  7005. fi
  7006. done
  7007. done
  7008. IFS=$as_save_IFS
  7009. fi
  7010. fi
  7011. OTOOL64=$ac_cv_prog_OTOOL64
  7012. if test -n "$OTOOL64"; then
  7013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7014. printf "%s\n" "$OTOOL64" >&6; }
  7015. else
  7016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7017. printf "%s\n" "no" >&6; }
  7018. fi
  7019. fi
  7020. if test -z "$ac_cv_prog_OTOOL64"; then
  7021. ac_ct_OTOOL64=$OTOOL64
  7022. # Extract the first word of "otool64", so it can be a program name with args.
  7023. set dummy otool64; ac_word=$2
  7024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7025. printf %s "checking for $ac_word... " >&6; }
  7026. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7027. then :
  7028. printf %s "(cached) " >&6
  7029. else $as_nop
  7030. if test -n "$ac_ct_OTOOL64"; then
  7031. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7032. else
  7033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7034. for as_dir in $PATH
  7035. do
  7036. IFS=$as_save_IFS
  7037. case $as_dir in #(((
  7038. '') as_dir=./ ;;
  7039. */) ;;
  7040. *) as_dir=$as_dir/ ;;
  7041. esac
  7042. for ac_exec_ext in '' $ac_executable_extensions; do
  7043. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7044. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7045. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7046. break 2
  7047. fi
  7048. done
  7049. done
  7050. IFS=$as_save_IFS
  7051. fi
  7052. fi
  7053. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7054. if test -n "$ac_ct_OTOOL64"; then
  7055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7056. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7057. else
  7058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7059. printf "%s\n" "no" >&6; }
  7060. fi
  7061. if test "x$ac_ct_OTOOL64" = x; then
  7062. OTOOL64=":"
  7063. else
  7064. case $cross_compiling:$ac_tool_warned in
  7065. yes:)
  7066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7067. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7068. ac_tool_warned=yes ;;
  7069. esac
  7070. OTOOL64=$ac_ct_OTOOL64
  7071. fi
  7072. else
  7073. OTOOL64="$ac_cv_prog_OTOOL64"
  7074. fi
  7075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7076. printf %s "checking for -single_module linker flag... " >&6; }
  7077. if test ${lt_cv_apple_cc_single_mod+y}
  7078. then :
  7079. printf %s "(cached) " >&6
  7080. else $as_nop
  7081. lt_cv_apple_cc_single_mod=no
  7082. if test -z "$LT_MULTI_MODULE"; then
  7083. # By default we will add the -single_module flag. You can override
  7084. # by either setting the environment variable LT_MULTI_MODULE
  7085. # non-empty at configure time, or by adding -multi_module to the
  7086. # link flags.
  7087. rm -rf libconftest.dylib*
  7088. echo "int foo(void){return 1;}" > conftest.c
  7089. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7090. -dynamiclib -Wl,-single_module conftest.c" >&5
  7091. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7092. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7093. _lt_result=$?
  7094. # If there is a non-empty error log, and "single_module"
  7095. # appears in it, assume the flag caused a linker warning
  7096. if test -s conftest.err && $GREP single_module conftest.err; then
  7097. cat conftest.err >&5
  7098. # Otherwise, if the output was created with a 0 exit code from
  7099. # the compiler, it worked.
  7100. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7101. lt_cv_apple_cc_single_mod=yes
  7102. else
  7103. cat conftest.err >&5
  7104. fi
  7105. rm -rf libconftest.dylib*
  7106. rm -f conftest.*
  7107. fi
  7108. fi
  7109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7110. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7112. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7113. if test ${lt_cv_ld_exported_symbols_list+y}
  7114. then :
  7115. printf %s "(cached) " >&6
  7116. else $as_nop
  7117. lt_cv_ld_exported_symbols_list=no
  7118. save_LDFLAGS=$LDFLAGS
  7119. echo "_main" > conftest.sym
  7120. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7122. /* end confdefs.h. */
  7123. int
  7124. main (void)
  7125. {
  7126. ;
  7127. return 0;
  7128. }
  7129. _ACEOF
  7130. if ac_fn_c_try_link "$LINENO"
  7131. then :
  7132. lt_cv_ld_exported_symbols_list=yes
  7133. else $as_nop
  7134. lt_cv_ld_exported_symbols_list=no
  7135. fi
  7136. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7137. conftest$ac_exeext conftest.$ac_ext
  7138. LDFLAGS=$save_LDFLAGS
  7139. fi
  7140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7141. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7143. printf %s "checking for -force_load linker flag... " >&6; }
  7144. if test ${lt_cv_ld_force_load+y}
  7145. then :
  7146. printf %s "(cached) " >&6
  7147. else $as_nop
  7148. lt_cv_ld_force_load=no
  7149. cat > conftest.c << _LT_EOF
  7150. int forced_loaded() { return 2;}
  7151. _LT_EOF
  7152. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7153. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7154. echo "$AR cru libconftest.a conftest.o" >&5
  7155. $AR cru libconftest.a conftest.o 2>&5
  7156. echo "$RANLIB libconftest.a" >&5
  7157. $RANLIB libconftest.a 2>&5
  7158. cat > conftest.c << _LT_EOF
  7159. int main() { return 0;}
  7160. _LT_EOF
  7161. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7162. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7163. _lt_result=$?
  7164. if test -s conftest.err && $GREP force_load conftest.err; then
  7165. cat conftest.err >&5
  7166. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7167. lt_cv_ld_force_load=yes
  7168. else
  7169. cat conftest.err >&5
  7170. fi
  7171. rm -f conftest.err libconftest.a conftest conftest.c
  7172. rm -rf conftest.dSYM
  7173. fi
  7174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7175. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7176. case $host_os in
  7177. rhapsody* | darwin1.[012])
  7178. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7179. darwin1.*)
  7180. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7181. darwin*)
  7182. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7183. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7184. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7185. *)
  7186. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7187. esac
  7188. ;;
  7189. esac
  7190. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7191. _lt_dar_single_mod='$single_module'
  7192. fi
  7193. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7194. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7195. else
  7196. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7197. fi
  7198. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7199. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7200. else
  7201. _lt_dsymutil=
  7202. fi
  7203. ;;
  7204. esac
  7205. # func_munge_path_list VARIABLE PATH
  7206. # -----------------------------------
  7207. # VARIABLE is name of variable containing _space_ separated list of
  7208. # directories to be munged by the contents of PATH, which is string
  7209. # having a format:
  7210. # "DIR[:DIR]:"
  7211. # string "DIR[ DIR]" will be prepended to VARIABLE
  7212. # ":DIR[:DIR]"
  7213. # string "DIR[ DIR]" will be appended to VARIABLE
  7214. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7215. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7216. # "DIRA[ DIRA]" will be appended to VARIABLE
  7217. # "DIR[:DIR]"
  7218. # VARIABLE will be replaced by "DIR[ DIR]"
  7219. func_munge_path_list ()
  7220. {
  7221. case x$2 in
  7222. x)
  7223. ;;
  7224. *:)
  7225. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7226. ;;
  7227. x:*)
  7228. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7229. ;;
  7230. *::*)
  7231. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7232. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7233. ;;
  7234. *)
  7235. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7236. ;;
  7237. esac
  7238. }
  7239. ac_header= ac_cache=
  7240. for ac_item in $ac_header_c_list
  7241. do
  7242. if test $ac_cache; then
  7243. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7244. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7245. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7246. fi
  7247. ac_header= ac_cache=
  7248. elif test $ac_header; then
  7249. ac_cache=$ac_item
  7250. else
  7251. ac_header=$ac_item
  7252. fi
  7253. done
  7254. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7255. then :
  7256. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7257. fi
  7258. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7259. "
  7260. if test "x$ac_cv_header_dlfcn_h" = xyes
  7261. then :
  7262. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7263. fi
  7264. # Set options
  7265. enable_win32_dll=yes
  7266. case $host in
  7267. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7268. if test -n "$ac_tool_prefix"; then
  7269. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7270. set dummy ${ac_tool_prefix}as; ac_word=$2
  7271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7272. printf %s "checking for $ac_word... " >&6; }
  7273. if test ${ac_cv_prog_AS+y}
  7274. then :
  7275. printf %s "(cached) " >&6
  7276. else $as_nop
  7277. if test -n "$AS"; then
  7278. ac_cv_prog_AS="$AS" # Let the user override the test.
  7279. else
  7280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7281. for as_dir in $PATH
  7282. do
  7283. IFS=$as_save_IFS
  7284. case $as_dir in #(((
  7285. '') as_dir=./ ;;
  7286. */) ;;
  7287. *) as_dir=$as_dir/ ;;
  7288. esac
  7289. for ac_exec_ext in '' $ac_executable_extensions; do
  7290. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7291. ac_cv_prog_AS="${ac_tool_prefix}as"
  7292. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7293. break 2
  7294. fi
  7295. done
  7296. done
  7297. IFS=$as_save_IFS
  7298. fi
  7299. fi
  7300. AS=$ac_cv_prog_AS
  7301. if test -n "$AS"; then
  7302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7303. printf "%s\n" "$AS" >&6; }
  7304. else
  7305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7306. printf "%s\n" "no" >&6; }
  7307. fi
  7308. fi
  7309. if test -z "$ac_cv_prog_AS"; then
  7310. ac_ct_AS=$AS
  7311. # Extract the first word of "as", so it can be a program name with args.
  7312. set dummy as; ac_word=$2
  7313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7314. printf %s "checking for $ac_word... " >&6; }
  7315. if test ${ac_cv_prog_ac_ct_AS+y}
  7316. then :
  7317. printf %s "(cached) " >&6
  7318. else $as_nop
  7319. if test -n "$ac_ct_AS"; then
  7320. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7321. else
  7322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7323. for as_dir in $PATH
  7324. do
  7325. IFS=$as_save_IFS
  7326. case $as_dir in #(((
  7327. '') as_dir=./ ;;
  7328. */) ;;
  7329. *) as_dir=$as_dir/ ;;
  7330. esac
  7331. for ac_exec_ext in '' $ac_executable_extensions; do
  7332. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7333. ac_cv_prog_ac_ct_AS="as"
  7334. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7335. break 2
  7336. fi
  7337. done
  7338. done
  7339. IFS=$as_save_IFS
  7340. fi
  7341. fi
  7342. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7343. if test -n "$ac_ct_AS"; then
  7344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7345. printf "%s\n" "$ac_ct_AS" >&6; }
  7346. else
  7347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7348. printf "%s\n" "no" >&6; }
  7349. fi
  7350. if test "x$ac_ct_AS" = x; then
  7351. AS="false"
  7352. else
  7353. case $cross_compiling:$ac_tool_warned in
  7354. yes:)
  7355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7356. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7357. ac_tool_warned=yes ;;
  7358. esac
  7359. AS=$ac_ct_AS
  7360. fi
  7361. else
  7362. AS="$ac_cv_prog_AS"
  7363. fi
  7364. if test -n "$ac_tool_prefix"; then
  7365. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7366. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7368. printf %s "checking for $ac_word... " >&6; }
  7369. if test ${ac_cv_prog_DLLTOOL+y}
  7370. then :
  7371. printf %s "(cached) " >&6
  7372. else $as_nop
  7373. if test -n "$DLLTOOL"; then
  7374. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7375. else
  7376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7377. for as_dir in $PATH
  7378. do
  7379. IFS=$as_save_IFS
  7380. case $as_dir in #(((
  7381. '') as_dir=./ ;;
  7382. */) ;;
  7383. *) as_dir=$as_dir/ ;;
  7384. esac
  7385. for ac_exec_ext in '' $ac_executable_extensions; do
  7386. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7387. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7388. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7389. break 2
  7390. fi
  7391. done
  7392. done
  7393. IFS=$as_save_IFS
  7394. fi
  7395. fi
  7396. DLLTOOL=$ac_cv_prog_DLLTOOL
  7397. if test -n "$DLLTOOL"; then
  7398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7399. printf "%s\n" "$DLLTOOL" >&6; }
  7400. else
  7401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7402. printf "%s\n" "no" >&6; }
  7403. fi
  7404. fi
  7405. if test -z "$ac_cv_prog_DLLTOOL"; then
  7406. ac_ct_DLLTOOL=$DLLTOOL
  7407. # Extract the first word of "dlltool", so it can be a program name with args.
  7408. set dummy dlltool; ac_word=$2
  7409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7410. printf %s "checking for $ac_word... " >&6; }
  7411. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7412. then :
  7413. printf %s "(cached) " >&6
  7414. else $as_nop
  7415. if test -n "$ac_ct_DLLTOOL"; then
  7416. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7417. else
  7418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7419. for as_dir in $PATH
  7420. do
  7421. IFS=$as_save_IFS
  7422. case $as_dir in #(((
  7423. '') as_dir=./ ;;
  7424. */) ;;
  7425. *) as_dir=$as_dir/ ;;
  7426. esac
  7427. for ac_exec_ext in '' $ac_executable_extensions; do
  7428. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7429. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7430. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7431. break 2
  7432. fi
  7433. done
  7434. done
  7435. IFS=$as_save_IFS
  7436. fi
  7437. fi
  7438. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7439. if test -n "$ac_ct_DLLTOOL"; then
  7440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7441. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7442. else
  7443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7444. printf "%s\n" "no" >&6; }
  7445. fi
  7446. if test "x$ac_ct_DLLTOOL" = x; then
  7447. DLLTOOL="false"
  7448. else
  7449. case $cross_compiling:$ac_tool_warned in
  7450. yes:)
  7451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7452. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7453. ac_tool_warned=yes ;;
  7454. esac
  7455. DLLTOOL=$ac_ct_DLLTOOL
  7456. fi
  7457. else
  7458. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7459. fi
  7460. if test -n "$ac_tool_prefix"; then
  7461. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7462. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7464. printf %s "checking for $ac_word... " >&6; }
  7465. if test ${ac_cv_prog_OBJDUMP+y}
  7466. then :
  7467. printf %s "(cached) " >&6
  7468. else $as_nop
  7469. if test -n "$OBJDUMP"; then
  7470. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7471. else
  7472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7473. for as_dir in $PATH
  7474. do
  7475. IFS=$as_save_IFS
  7476. case $as_dir in #(((
  7477. '') as_dir=./ ;;
  7478. */) ;;
  7479. *) as_dir=$as_dir/ ;;
  7480. esac
  7481. for ac_exec_ext in '' $ac_executable_extensions; do
  7482. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7483. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7484. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7485. break 2
  7486. fi
  7487. done
  7488. done
  7489. IFS=$as_save_IFS
  7490. fi
  7491. fi
  7492. OBJDUMP=$ac_cv_prog_OBJDUMP
  7493. if test -n "$OBJDUMP"; then
  7494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7495. printf "%s\n" "$OBJDUMP" >&6; }
  7496. else
  7497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7498. printf "%s\n" "no" >&6; }
  7499. fi
  7500. fi
  7501. if test -z "$ac_cv_prog_OBJDUMP"; then
  7502. ac_ct_OBJDUMP=$OBJDUMP
  7503. # Extract the first word of "objdump", so it can be a program name with args.
  7504. set dummy objdump; ac_word=$2
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7506. printf %s "checking for $ac_word... " >&6; }
  7507. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7508. then :
  7509. printf %s "(cached) " >&6
  7510. else $as_nop
  7511. if test -n "$ac_ct_OBJDUMP"; then
  7512. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7513. else
  7514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7515. for as_dir in $PATH
  7516. do
  7517. IFS=$as_save_IFS
  7518. case $as_dir in #(((
  7519. '') as_dir=./ ;;
  7520. */) ;;
  7521. *) as_dir=$as_dir/ ;;
  7522. esac
  7523. for ac_exec_ext in '' $ac_executable_extensions; do
  7524. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7525. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7526. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7527. break 2
  7528. fi
  7529. done
  7530. done
  7531. IFS=$as_save_IFS
  7532. fi
  7533. fi
  7534. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7535. if test -n "$ac_ct_OBJDUMP"; then
  7536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7537. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7538. else
  7539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7540. printf "%s\n" "no" >&6; }
  7541. fi
  7542. if test "x$ac_ct_OBJDUMP" = x; then
  7543. OBJDUMP="false"
  7544. else
  7545. case $cross_compiling:$ac_tool_warned in
  7546. yes:)
  7547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7548. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7549. ac_tool_warned=yes ;;
  7550. esac
  7551. OBJDUMP=$ac_ct_OBJDUMP
  7552. fi
  7553. else
  7554. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7555. fi
  7556. ;;
  7557. esac
  7558. test -z "$AS" && AS=as
  7559. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7560. test -z "$OBJDUMP" && OBJDUMP=objdump
  7561. enable_dlopen=no
  7562. # Check whether --enable-shared was given.
  7563. if test ${enable_shared+y}
  7564. then :
  7565. enableval=$enable_shared; p=${PACKAGE-default}
  7566. case $enableval in
  7567. yes) enable_shared=yes ;;
  7568. no) enable_shared=no ;;
  7569. *)
  7570. enable_shared=no
  7571. # Look at the argument we got. We use all the common list separators.
  7572. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7573. for pkg in $enableval; do
  7574. IFS=$lt_save_ifs
  7575. if test "X$pkg" = "X$p"; then
  7576. enable_shared=yes
  7577. fi
  7578. done
  7579. IFS=$lt_save_ifs
  7580. ;;
  7581. esac
  7582. else $as_nop
  7583. enable_shared=yes
  7584. fi
  7585. # Check whether --enable-static was given.
  7586. if test ${enable_static+y}
  7587. then :
  7588. enableval=$enable_static; p=${PACKAGE-default}
  7589. case $enableval in
  7590. yes) enable_static=yes ;;
  7591. no) enable_static=no ;;
  7592. *)
  7593. enable_static=no
  7594. # Look at the argument we got. We use all the common list separators.
  7595. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7596. for pkg in $enableval; do
  7597. IFS=$lt_save_ifs
  7598. if test "X$pkg" = "X$p"; then
  7599. enable_static=yes
  7600. fi
  7601. done
  7602. IFS=$lt_save_ifs
  7603. ;;
  7604. esac
  7605. else $as_nop
  7606. enable_static=yes
  7607. fi
  7608. # Check whether --with-pic was given.
  7609. if test ${with_pic+y}
  7610. then :
  7611. withval=$with_pic; lt_p=${PACKAGE-default}
  7612. case $withval in
  7613. yes|no) pic_mode=$withval ;;
  7614. *)
  7615. pic_mode=default
  7616. # Look at the argument we got. We use all the common list separators.
  7617. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7618. for lt_pkg in $withval; do
  7619. IFS=$lt_save_ifs
  7620. if test "X$lt_pkg" = "X$lt_p"; then
  7621. pic_mode=yes
  7622. fi
  7623. done
  7624. IFS=$lt_save_ifs
  7625. ;;
  7626. esac
  7627. else $as_nop
  7628. pic_mode=default
  7629. fi
  7630. # Check whether --enable-fast-install was given.
  7631. if test ${enable_fast_install+y}
  7632. then :
  7633. enableval=$enable_fast_install; p=${PACKAGE-default}
  7634. case $enableval in
  7635. yes) enable_fast_install=yes ;;
  7636. no) enable_fast_install=no ;;
  7637. *)
  7638. enable_fast_install=no
  7639. # Look at the argument we got. We use all the common list separators.
  7640. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7641. for pkg in $enableval; do
  7642. IFS=$lt_save_ifs
  7643. if test "X$pkg" = "X$p"; then
  7644. enable_fast_install=yes
  7645. fi
  7646. done
  7647. IFS=$lt_save_ifs
  7648. ;;
  7649. esac
  7650. else $as_nop
  7651. enable_fast_install=yes
  7652. fi
  7653. shared_archive_member_spec=
  7654. case $host,$enable_shared in
  7655. power*-*-aix[5-9]*,yes)
  7656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7657. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7658. # Check whether --with-aix-soname was given.
  7659. if test ${with_aix_soname+y}
  7660. then :
  7661. withval=$with_aix_soname; case $withval in
  7662. aix|svr4|both)
  7663. ;;
  7664. *)
  7665. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7666. ;;
  7667. esac
  7668. lt_cv_with_aix_soname=$with_aix_soname
  7669. else $as_nop
  7670. if test ${lt_cv_with_aix_soname+y}
  7671. then :
  7672. printf %s "(cached) " >&6
  7673. else $as_nop
  7674. lt_cv_with_aix_soname=aix
  7675. fi
  7676. with_aix_soname=$lt_cv_with_aix_soname
  7677. fi
  7678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7679. printf "%s\n" "$with_aix_soname" >&6; }
  7680. if test aix != "$with_aix_soname"; then
  7681. # For the AIX way of multilib, we name the shared archive member
  7682. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7683. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7684. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7685. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7686. if test 64 = "${OBJECT_MODE-32}"; then
  7687. shared_archive_member_spec=shr_64
  7688. else
  7689. shared_archive_member_spec=shr
  7690. fi
  7691. fi
  7692. ;;
  7693. *)
  7694. with_aix_soname=aix
  7695. ;;
  7696. esac
  7697. # This can be used to rebuild libtool when needed
  7698. LIBTOOL_DEPS=$ltmain
  7699. # Always use our own libtool.
  7700. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7701. test -z "$LN_S" && LN_S="ln -s"
  7702. if test -n "${ZSH_VERSION+set}"; then
  7703. setopt NO_GLOB_SUBST
  7704. fi
  7705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7706. printf %s "checking for objdir... " >&6; }
  7707. if test ${lt_cv_objdir+y}
  7708. then :
  7709. printf %s "(cached) " >&6
  7710. else $as_nop
  7711. rm -f .libs 2>/dev/null
  7712. mkdir .libs 2>/dev/null
  7713. if test -d .libs; then
  7714. lt_cv_objdir=.libs
  7715. else
  7716. # MS-DOS does not allow filenames that begin with a dot.
  7717. lt_cv_objdir=_libs
  7718. fi
  7719. rmdir .libs 2>/dev/null
  7720. fi
  7721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7722. printf "%s\n" "$lt_cv_objdir" >&6; }
  7723. objdir=$lt_cv_objdir
  7724. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7725. case $host_os in
  7726. aix3*)
  7727. # AIX sometimes has problems with the GCC collect2 program. For some
  7728. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7729. # vanish in a puff of smoke.
  7730. if test set != "${COLLECT_NAMES+set}"; then
  7731. COLLECT_NAMES=
  7732. export COLLECT_NAMES
  7733. fi
  7734. ;;
  7735. esac
  7736. # Global variables:
  7737. ofile=libtool
  7738. can_build_shared=yes
  7739. # All known linkers require a '.a' archive for static linking (except MSVC,
  7740. # which needs '.lib').
  7741. libext=a
  7742. with_gnu_ld=$lt_cv_prog_gnu_ld
  7743. old_CC=$CC
  7744. old_CFLAGS=$CFLAGS
  7745. # Set sane defaults for various variables
  7746. test -z "$CC" && CC=cc
  7747. test -z "$LTCC" && LTCC=$CC
  7748. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7749. test -z "$LD" && LD=ld
  7750. test -z "$ac_objext" && ac_objext=o
  7751. func_cc_basename $compiler
  7752. cc_basename=$func_cc_basename_result
  7753. # Only perform the check for file, if the check method requires it
  7754. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7755. case $deplibs_check_method in
  7756. file_magic*)
  7757. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7759. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7760. if test ${lt_cv_path_MAGIC_CMD+y}
  7761. then :
  7762. printf %s "(cached) " >&6
  7763. else $as_nop
  7764. case $MAGIC_CMD in
  7765. [\\/*] | ?:[\\/]*)
  7766. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7767. ;;
  7768. *)
  7769. lt_save_MAGIC_CMD=$MAGIC_CMD
  7770. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7771. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7772. for ac_dir in $ac_dummy; do
  7773. IFS=$lt_save_ifs
  7774. test -z "$ac_dir" && ac_dir=.
  7775. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7776. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7777. if test -n "$file_magic_test_file"; then
  7778. case $deplibs_check_method in
  7779. "file_magic "*)
  7780. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7781. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7782. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7783. $EGREP "$file_magic_regex" > /dev/null; then
  7784. :
  7785. else
  7786. cat <<_LT_EOF 1>&2
  7787. *** Warning: the command libtool uses to detect shared libraries,
  7788. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7789. *** The result is that libtool may fail to recognize shared libraries
  7790. *** as such. This will affect the creation of libtool libraries that
  7791. *** depend on shared libraries, but programs linked with such libtool
  7792. *** libraries will work regardless of this problem. Nevertheless, you
  7793. *** may want to report the problem to your system manager and/or to
  7794. *** bug-libtool@gnu.org
  7795. _LT_EOF
  7796. fi ;;
  7797. esac
  7798. fi
  7799. break
  7800. fi
  7801. done
  7802. IFS=$lt_save_ifs
  7803. MAGIC_CMD=$lt_save_MAGIC_CMD
  7804. ;;
  7805. esac
  7806. fi
  7807. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7808. if test -n "$MAGIC_CMD"; then
  7809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7810. printf "%s\n" "$MAGIC_CMD" >&6; }
  7811. else
  7812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7813. printf "%s\n" "no" >&6; }
  7814. fi
  7815. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7816. if test -n "$ac_tool_prefix"; then
  7817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7818. printf %s "checking for file... " >&6; }
  7819. if test ${lt_cv_path_MAGIC_CMD+y}
  7820. then :
  7821. printf %s "(cached) " >&6
  7822. else $as_nop
  7823. case $MAGIC_CMD in
  7824. [\\/*] | ?:[\\/]*)
  7825. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7826. ;;
  7827. *)
  7828. lt_save_MAGIC_CMD=$MAGIC_CMD
  7829. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7830. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7831. for ac_dir in $ac_dummy; do
  7832. IFS=$lt_save_ifs
  7833. test -z "$ac_dir" && ac_dir=.
  7834. if test -f "$ac_dir/file"; then
  7835. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7836. if test -n "$file_magic_test_file"; then
  7837. case $deplibs_check_method in
  7838. "file_magic "*)
  7839. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7840. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7841. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7842. $EGREP "$file_magic_regex" > /dev/null; then
  7843. :
  7844. else
  7845. cat <<_LT_EOF 1>&2
  7846. *** Warning: the command libtool uses to detect shared libraries,
  7847. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7848. *** The result is that libtool may fail to recognize shared libraries
  7849. *** as such. This will affect the creation of libtool libraries that
  7850. *** depend on shared libraries, but programs linked with such libtool
  7851. *** libraries will work regardless of this problem. Nevertheless, you
  7852. *** may want to report the problem to your system manager and/or to
  7853. *** bug-libtool@gnu.org
  7854. _LT_EOF
  7855. fi ;;
  7856. esac
  7857. fi
  7858. break
  7859. fi
  7860. done
  7861. IFS=$lt_save_ifs
  7862. MAGIC_CMD=$lt_save_MAGIC_CMD
  7863. ;;
  7864. esac
  7865. fi
  7866. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7867. if test -n "$MAGIC_CMD"; then
  7868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7869. printf "%s\n" "$MAGIC_CMD" >&6; }
  7870. else
  7871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7872. printf "%s\n" "no" >&6; }
  7873. fi
  7874. else
  7875. MAGIC_CMD=:
  7876. fi
  7877. fi
  7878. fi
  7879. ;;
  7880. esac
  7881. # Use C for the default configuration in the libtool script
  7882. lt_save_CC=$CC
  7883. ac_ext=c
  7884. ac_cpp='$CPP $CPPFLAGS'
  7885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7888. # Source file extension for C test sources.
  7889. ac_ext=c
  7890. # Object file extension for compiled C test sources.
  7891. objext=o
  7892. objext=$objext
  7893. # Code to be used in simple compile tests
  7894. lt_simple_compile_test_code="int some_variable = 0;"
  7895. # Code to be used in simple link tests
  7896. lt_simple_link_test_code='int main(){return(0);}'
  7897. # If no C compiler was specified, use CC.
  7898. LTCC=${LTCC-"$CC"}
  7899. # If no C compiler flags were specified, use CFLAGS.
  7900. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7901. # Allow CC to be a program name with arguments.
  7902. compiler=$CC
  7903. # Save the default compiler, since it gets overwritten when the other
  7904. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7905. compiler_DEFAULT=$CC
  7906. # save warnings/boilerplate of simple test code
  7907. ac_outfile=conftest.$ac_objext
  7908. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7909. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7910. _lt_compiler_boilerplate=`cat conftest.err`
  7911. $RM conftest*
  7912. ac_outfile=conftest.$ac_objext
  7913. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7914. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7915. _lt_linker_boilerplate=`cat conftest.err`
  7916. $RM -r conftest*
  7917. ## CAVEAT EMPTOR:
  7918. ## There is no encapsulation within the following macros, do not change
  7919. ## the running order or otherwise move them around unless you know exactly
  7920. ## what you are doing...
  7921. if test -n "$compiler"; then
  7922. lt_prog_compiler_no_builtin_flag=
  7923. if test yes = "$GCC"; then
  7924. case $cc_basename in
  7925. nvcc*)
  7926. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7927. *)
  7928. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7929. esac
  7930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7931. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7932. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7933. then :
  7934. printf %s "(cached) " >&6
  7935. else $as_nop
  7936. lt_cv_prog_compiler_rtti_exceptions=no
  7937. ac_outfile=conftest.$ac_objext
  7938. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7939. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7940. # Insert the option either (1) after the last *FLAGS variable, or
  7941. # (2) before a word containing "conftest.", or (3) at the end.
  7942. # Note that $ac_compile itself does not contain backslashes and begins
  7943. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7944. # The option is referenced via a variable to avoid confusing sed.
  7945. lt_compile=`echo "$ac_compile" | $SED \
  7946. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7947. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7948. -e 's:$: $lt_compiler_flag:'`
  7949. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7950. (eval "$lt_compile" 2>conftest.err)
  7951. ac_status=$?
  7952. cat conftest.err >&5
  7953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7954. if (exit $ac_status) && test -s "$ac_outfile"; then
  7955. # The compiler can only warn and ignore the option if not recognized
  7956. # So say no if there are warnings other than the usual output.
  7957. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7958. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7959. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7960. lt_cv_prog_compiler_rtti_exceptions=yes
  7961. fi
  7962. fi
  7963. $RM conftest*
  7964. fi
  7965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7966. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7967. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7968. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7969. else
  7970. :
  7971. fi
  7972. fi
  7973. lt_prog_compiler_wl=
  7974. lt_prog_compiler_pic=
  7975. lt_prog_compiler_static=
  7976. if test yes = "$GCC"; then
  7977. lt_prog_compiler_wl='-Wl,'
  7978. lt_prog_compiler_static='-static'
  7979. case $host_os in
  7980. aix*)
  7981. # All AIX code is PIC.
  7982. if test ia64 = "$host_cpu"; then
  7983. # AIX 5 now supports IA64 processor
  7984. lt_prog_compiler_static='-Bstatic'
  7985. fi
  7986. lt_prog_compiler_pic='-fPIC'
  7987. ;;
  7988. amigaos*)
  7989. case $host_cpu in
  7990. powerpc)
  7991. # see comment about AmigaOS4 .so support
  7992. lt_prog_compiler_pic='-fPIC'
  7993. ;;
  7994. m68k)
  7995. # FIXME: we need at least 68020 code to build shared libraries, but
  7996. # adding the '-m68020' flag to GCC prevents building anything better,
  7997. # like '-m68040'.
  7998. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7999. ;;
  8000. esac
  8001. ;;
  8002. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8003. # PIC is the default for these OSes.
  8004. ;;
  8005. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8006. # This hack is so that the source file can tell whether it is being
  8007. # built for inclusion in a dll (and should export symbols for example).
  8008. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8009. # (--disable-auto-import) libraries
  8010. lt_prog_compiler_pic='-DDLL_EXPORT'
  8011. case $host_os in
  8012. os2*)
  8013. lt_prog_compiler_static='$wl-static'
  8014. ;;
  8015. esac
  8016. ;;
  8017. darwin* | rhapsody*)
  8018. # PIC is the default on this platform
  8019. # Common symbols not allowed in MH_DYLIB files
  8020. lt_prog_compiler_pic='-fno-common'
  8021. ;;
  8022. haiku*)
  8023. # PIC is the default for Haiku.
  8024. # The "-static" flag exists, but is broken.
  8025. lt_prog_compiler_static=
  8026. ;;
  8027. hpux*)
  8028. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8029. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8030. # sets the default TLS model and affects inlining.
  8031. case $host_cpu in
  8032. hppa*64*)
  8033. # +Z the default
  8034. ;;
  8035. *)
  8036. lt_prog_compiler_pic='-fPIC'
  8037. ;;
  8038. esac
  8039. ;;
  8040. interix[3-9]*)
  8041. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8042. # Instead, we relocate shared libraries at runtime.
  8043. ;;
  8044. msdosdjgpp*)
  8045. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8046. # on systems that don't support them.
  8047. lt_prog_compiler_can_build_shared=no
  8048. enable_shared=no
  8049. ;;
  8050. *nto* | *qnx*)
  8051. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8052. # it will coredump.
  8053. lt_prog_compiler_pic='-fPIC -shared'
  8054. ;;
  8055. sysv4*MP*)
  8056. if test -d /usr/nec; then
  8057. lt_prog_compiler_pic=-Kconform_pic
  8058. fi
  8059. ;;
  8060. *)
  8061. lt_prog_compiler_pic='-fPIC'
  8062. ;;
  8063. esac
  8064. case $cc_basename in
  8065. nvcc*) # Cuda Compiler Driver 2.2
  8066. lt_prog_compiler_wl='-Xlinker '
  8067. if test -n "$lt_prog_compiler_pic"; then
  8068. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8069. fi
  8070. ;;
  8071. esac
  8072. else
  8073. # PORTME Check for flag to pass linker flags through the system compiler.
  8074. case $host_os in
  8075. aix*)
  8076. lt_prog_compiler_wl='-Wl,'
  8077. if test ia64 = "$host_cpu"; then
  8078. # AIX 5 now supports IA64 processor
  8079. lt_prog_compiler_static='-Bstatic'
  8080. else
  8081. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8082. fi
  8083. ;;
  8084. darwin* | rhapsody*)
  8085. # PIC is the default on this platform
  8086. # Common symbols not allowed in MH_DYLIB files
  8087. lt_prog_compiler_pic='-fno-common'
  8088. case $cc_basename in
  8089. nagfor*)
  8090. # NAG Fortran compiler
  8091. lt_prog_compiler_wl='-Wl,-Wl,,'
  8092. lt_prog_compiler_pic='-PIC'
  8093. lt_prog_compiler_static='-Bstatic'
  8094. ;;
  8095. esac
  8096. ;;
  8097. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8098. # This hack is so that the source file can tell whether it is being
  8099. # built for inclusion in a dll (and should export symbols for example).
  8100. lt_prog_compiler_pic='-DDLL_EXPORT'
  8101. case $host_os in
  8102. os2*)
  8103. lt_prog_compiler_static='$wl-static'
  8104. ;;
  8105. esac
  8106. ;;
  8107. hpux9* | hpux10* | hpux11*)
  8108. lt_prog_compiler_wl='-Wl,'
  8109. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8110. # not for PA HP-UX.
  8111. case $host_cpu in
  8112. hppa*64*|ia64*)
  8113. # +Z the default
  8114. ;;
  8115. *)
  8116. lt_prog_compiler_pic='+Z'
  8117. ;;
  8118. esac
  8119. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8120. lt_prog_compiler_static='$wl-a ${wl}archive'
  8121. ;;
  8122. irix5* | irix6* | nonstopux*)
  8123. lt_prog_compiler_wl='-Wl,'
  8124. # PIC (with -KPIC) is the default.
  8125. lt_prog_compiler_static='-non_shared'
  8126. ;;
  8127. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8128. case $cc_basename in
  8129. # old Intel for x86_64, which still supported -KPIC.
  8130. ecc*)
  8131. lt_prog_compiler_wl='-Wl,'
  8132. lt_prog_compiler_pic='-KPIC'
  8133. lt_prog_compiler_static='-static'
  8134. ;;
  8135. # icc used to be incompatible with GCC.
  8136. # ICC 10 doesn't accept -KPIC any more.
  8137. icc* | ifort*)
  8138. lt_prog_compiler_wl='-Wl,'
  8139. lt_prog_compiler_pic='-fPIC'
  8140. lt_prog_compiler_static='-static'
  8141. ;;
  8142. # Lahey Fortran 8.1.
  8143. lf95*)
  8144. lt_prog_compiler_wl='-Wl,'
  8145. lt_prog_compiler_pic='--shared'
  8146. lt_prog_compiler_static='--static'
  8147. ;;
  8148. nagfor*)
  8149. # NAG Fortran compiler
  8150. lt_prog_compiler_wl='-Wl,-Wl,,'
  8151. lt_prog_compiler_pic='-PIC'
  8152. lt_prog_compiler_static='-Bstatic'
  8153. ;;
  8154. tcc*)
  8155. # Fabrice Bellard et al's Tiny C Compiler
  8156. lt_prog_compiler_wl='-Wl,'
  8157. lt_prog_compiler_pic='-fPIC'
  8158. lt_prog_compiler_static='-static'
  8159. ;;
  8160. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8161. # Portland Group compilers (*not* the Pentium gcc compiler,
  8162. # which looks to be a dead project)
  8163. lt_prog_compiler_wl='-Wl,'
  8164. lt_prog_compiler_pic='-fpic'
  8165. lt_prog_compiler_static='-Bstatic'
  8166. ;;
  8167. ccc*)
  8168. lt_prog_compiler_wl='-Wl,'
  8169. # All Alpha code is PIC.
  8170. lt_prog_compiler_static='-non_shared'
  8171. ;;
  8172. xl* | bgxl* | bgf* | mpixl*)
  8173. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8174. lt_prog_compiler_wl='-Wl,'
  8175. lt_prog_compiler_pic='-qpic'
  8176. lt_prog_compiler_static='-qstaticlink'
  8177. ;;
  8178. *)
  8179. case `$CC -V 2>&1 | sed 5q` in
  8180. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8181. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8182. lt_prog_compiler_pic='-KPIC'
  8183. lt_prog_compiler_static='-Bstatic'
  8184. lt_prog_compiler_wl=''
  8185. ;;
  8186. *Sun\ F* | *Sun*Fortran*)
  8187. lt_prog_compiler_pic='-KPIC'
  8188. lt_prog_compiler_static='-Bstatic'
  8189. lt_prog_compiler_wl='-Qoption ld '
  8190. ;;
  8191. *Sun\ C*)
  8192. # Sun C 5.9
  8193. lt_prog_compiler_pic='-KPIC'
  8194. lt_prog_compiler_static='-Bstatic'
  8195. lt_prog_compiler_wl='-Wl,'
  8196. ;;
  8197. *Intel*\ [CF]*Compiler*)
  8198. lt_prog_compiler_wl='-Wl,'
  8199. lt_prog_compiler_pic='-fPIC'
  8200. lt_prog_compiler_static='-static'
  8201. ;;
  8202. *Portland\ Group*)
  8203. lt_prog_compiler_wl='-Wl,'
  8204. lt_prog_compiler_pic='-fpic'
  8205. lt_prog_compiler_static='-Bstatic'
  8206. ;;
  8207. esac
  8208. ;;
  8209. esac
  8210. ;;
  8211. newsos6)
  8212. lt_prog_compiler_pic='-KPIC'
  8213. lt_prog_compiler_static='-Bstatic'
  8214. ;;
  8215. *nto* | *qnx*)
  8216. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8217. # it will coredump.
  8218. lt_prog_compiler_pic='-fPIC -shared'
  8219. ;;
  8220. osf3* | osf4* | osf5*)
  8221. lt_prog_compiler_wl='-Wl,'
  8222. # All OSF/1 code is PIC.
  8223. lt_prog_compiler_static='-non_shared'
  8224. ;;
  8225. rdos*)
  8226. lt_prog_compiler_static='-non_shared'
  8227. ;;
  8228. solaris*)
  8229. lt_prog_compiler_pic='-KPIC'
  8230. lt_prog_compiler_static='-Bstatic'
  8231. case $cc_basename in
  8232. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8233. lt_prog_compiler_wl='-Qoption ld ';;
  8234. *)
  8235. lt_prog_compiler_wl='-Wl,';;
  8236. esac
  8237. ;;
  8238. sunos4*)
  8239. lt_prog_compiler_wl='-Qoption ld '
  8240. lt_prog_compiler_pic='-PIC'
  8241. lt_prog_compiler_static='-Bstatic'
  8242. ;;
  8243. sysv4 | sysv4.2uw2* | sysv4.3*)
  8244. lt_prog_compiler_wl='-Wl,'
  8245. lt_prog_compiler_pic='-KPIC'
  8246. lt_prog_compiler_static='-Bstatic'
  8247. ;;
  8248. sysv4*MP*)
  8249. if test -d /usr/nec; then
  8250. lt_prog_compiler_pic='-Kconform_pic'
  8251. lt_prog_compiler_static='-Bstatic'
  8252. fi
  8253. ;;
  8254. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8255. lt_prog_compiler_wl='-Wl,'
  8256. lt_prog_compiler_pic='-KPIC'
  8257. lt_prog_compiler_static='-Bstatic'
  8258. ;;
  8259. unicos*)
  8260. lt_prog_compiler_wl='-Wl,'
  8261. lt_prog_compiler_can_build_shared=no
  8262. ;;
  8263. uts4*)
  8264. lt_prog_compiler_pic='-pic'
  8265. lt_prog_compiler_static='-Bstatic'
  8266. ;;
  8267. *)
  8268. lt_prog_compiler_can_build_shared=no
  8269. ;;
  8270. esac
  8271. fi
  8272. case $host_os in
  8273. # For platforms that do not support PIC, -DPIC is meaningless:
  8274. *djgpp*)
  8275. lt_prog_compiler_pic=
  8276. ;;
  8277. *)
  8278. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8279. ;;
  8280. esac
  8281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8282. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8283. if test ${lt_cv_prog_compiler_pic+y}
  8284. then :
  8285. printf %s "(cached) " >&6
  8286. else $as_nop
  8287. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8288. fi
  8289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8290. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8291. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8292. #
  8293. # Check to make sure the PIC flag actually works.
  8294. #
  8295. if test -n "$lt_prog_compiler_pic"; then
  8296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8297. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8298. if test ${lt_cv_prog_compiler_pic_works+y}
  8299. then :
  8300. printf %s "(cached) " >&6
  8301. else $as_nop
  8302. lt_cv_prog_compiler_pic_works=no
  8303. ac_outfile=conftest.$ac_objext
  8304. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8305. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8306. # Insert the option either (1) after the last *FLAGS variable, or
  8307. # (2) before a word containing "conftest.", or (3) at the end.
  8308. # Note that $ac_compile itself does not contain backslashes and begins
  8309. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8310. # The option is referenced via a variable to avoid confusing sed.
  8311. lt_compile=`echo "$ac_compile" | $SED \
  8312. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8313. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8314. -e 's:$: $lt_compiler_flag:'`
  8315. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8316. (eval "$lt_compile" 2>conftest.err)
  8317. ac_status=$?
  8318. cat conftest.err >&5
  8319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8320. if (exit $ac_status) && test -s "$ac_outfile"; then
  8321. # The compiler can only warn and ignore the option if not recognized
  8322. # So say no if there are warnings other than the usual output.
  8323. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8324. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8325. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8326. lt_cv_prog_compiler_pic_works=yes
  8327. fi
  8328. fi
  8329. $RM conftest*
  8330. fi
  8331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8332. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8333. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8334. case $lt_prog_compiler_pic in
  8335. "" | " "*) ;;
  8336. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8337. esac
  8338. else
  8339. lt_prog_compiler_pic=
  8340. lt_prog_compiler_can_build_shared=no
  8341. fi
  8342. fi
  8343. #
  8344. # Check to make sure the static flag actually works.
  8345. #
  8346. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8348. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8349. if test ${lt_cv_prog_compiler_static_works+y}
  8350. then :
  8351. printf %s "(cached) " >&6
  8352. else $as_nop
  8353. lt_cv_prog_compiler_static_works=no
  8354. save_LDFLAGS=$LDFLAGS
  8355. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8356. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8357. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8358. # The linker can only warn and ignore the option if not recognized
  8359. # So say no if there are warnings
  8360. if test -s conftest.err; then
  8361. # Append any errors to the config.log.
  8362. cat conftest.err 1>&5
  8363. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8364. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8365. if diff conftest.exp conftest.er2 >/dev/null; then
  8366. lt_cv_prog_compiler_static_works=yes
  8367. fi
  8368. else
  8369. lt_cv_prog_compiler_static_works=yes
  8370. fi
  8371. fi
  8372. $RM -r conftest*
  8373. LDFLAGS=$save_LDFLAGS
  8374. fi
  8375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8376. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8377. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8378. :
  8379. else
  8380. lt_prog_compiler_static=
  8381. fi
  8382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8383. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8384. if test ${lt_cv_prog_compiler_c_o+y}
  8385. then :
  8386. printf %s "(cached) " >&6
  8387. else $as_nop
  8388. lt_cv_prog_compiler_c_o=no
  8389. $RM -r conftest 2>/dev/null
  8390. mkdir conftest
  8391. cd conftest
  8392. mkdir out
  8393. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8394. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8395. # Insert the option either (1) after the last *FLAGS variable, or
  8396. # (2) before a word containing "conftest.", or (3) at the end.
  8397. # Note that $ac_compile itself does not contain backslashes and begins
  8398. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8399. lt_compile=`echo "$ac_compile" | $SED \
  8400. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8401. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8402. -e 's:$: $lt_compiler_flag:'`
  8403. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8404. (eval "$lt_compile" 2>out/conftest.err)
  8405. ac_status=$?
  8406. cat out/conftest.err >&5
  8407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8408. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8409. then
  8410. # The compiler can only warn and ignore the option if not recognized
  8411. # So say no if there are warnings
  8412. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8413. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8414. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8415. lt_cv_prog_compiler_c_o=yes
  8416. fi
  8417. fi
  8418. chmod u+w . 2>&5
  8419. $RM conftest*
  8420. # SGI C++ compiler will create directory out/ii_files/ for
  8421. # template instantiation
  8422. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8423. $RM out/* && rmdir out
  8424. cd ..
  8425. $RM -r conftest
  8426. $RM conftest*
  8427. fi
  8428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8429. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8431. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8432. if test ${lt_cv_prog_compiler_c_o+y}
  8433. then :
  8434. printf %s "(cached) " >&6
  8435. else $as_nop
  8436. lt_cv_prog_compiler_c_o=no
  8437. $RM -r conftest 2>/dev/null
  8438. mkdir conftest
  8439. cd conftest
  8440. mkdir out
  8441. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8442. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8443. # Insert the option either (1) after the last *FLAGS variable, or
  8444. # (2) before a word containing "conftest.", or (3) at the end.
  8445. # Note that $ac_compile itself does not contain backslashes and begins
  8446. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8447. lt_compile=`echo "$ac_compile" | $SED \
  8448. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8449. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8450. -e 's:$: $lt_compiler_flag:'`
  8451. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8452. (eval "$lt_compile" 2>out/conftest.err)
  8453. ac_status=$?
  8454. cat out/conftest.err >&5
  8455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8456. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8457. then
  8458. # The compiler can only warn and ignore the option if not recognized
  8459. # So say no if there are warnings
  8460. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8461. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8462. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8463. lt_cv_prog_compiler_c_o=yes
  8464. fi
  8465. fi
  8466. chmod u+w . 2>&5
  8467. $RM conftest*
  8468. # SGI C++ compiler will create directory out/ii_files/ for
  8469. # template instantiation
  8470. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8471. $RM out/* && rmdir out
  8472. cd ..
  8473. $RM -r conftest
  8474. $RM conftest*
  8475. fi
  8476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8477. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8478. hard_links=nottested
  8479. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8480. # do not overwrite the value of need_locks provided by the user
  8481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8482. printf %s "checking if we can lock with hard links... " >&6; }
  8483. hard_links=yes
  8484. $RM conftest*
  8485. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8486. touch conftest.a
  8487. ln conftest.a conftest.b 2>&5 || hard_links=no
  8488. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8490. printf "%s\n" "$hard_links" >&6; }
  8491. if test no = "$hard_links"; then
  8492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8493. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8494. need_locks=warn
  8495. fi
  8496. else
  8497. need_locks=no
  8498. fi
  8499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8500. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8501. runpath_var=
  8502. allow_undefined_flag=
  8503. always_export_symbols=no
  8504. archive_cmds=
  8505. archive_expsym_cmds=
  8506. compiler_needs_object=no
  8507. enable_shared_with_static_runtimes=no
  8508. export_dynamic_flag_spec=
  8509. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8510. hardcode_automatic=no
  8511. hardcode_direct=no
  8512. hardcode_direct_absolute=no
  8513. hardcode_libdir_flag_spec=
  8514. hardcode_libdir_separator=
  8515. hardcode_minus_L=no
  8516. hardcode_shlibpath_var=unsupported
  8517. inherit_rpath=no
  8518. link_all_deplibs=unknown
  8519. module_cmds=
  8520. module_expsym_cmds=
  8521. old_archive_from_new_cmds=
  8522. old_archive_from_expsyms_cmds=
  8523. thread_safe_flag_spec=
  8524. whole_archive_flag_spec=
  8525. # include_expsyms should be a list of space-separated symbols to be *always*
  8526. # included in the symbol list
  8527. include_expsyms=
  8528. # exclude_expsyms can be an extended regexp of symbols to exclude
  8529. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8530. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8531. # as well as any symbol that contains 'd'.
  8532. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8533. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8534. # platforms (ab)use it in PIC code, but their linkers get confused if
  8535. # the symbol is explicitly referenced. Since portable code cannot
  8536. # rely on this symbol name, it's probably fine to never include it in
  8537. # preloaded symbol tables.
  8538. # Exclude shared library initialization/finalization symbols.
  8539. extract_expsyms_cmds=
  8540. case $host_os in
  8541. cygwin* | mingw* | pw32* | cegcc*)
  8542. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8543. # When not using gcc, we currently assume that we are using
  8544. # Microsoft Visual C++.
  8545. if test yes != "$GCC"; then
  8546. with_gnu_ld=no
  8547. fi
  8548. ;;
  8549. interix*)
  8550. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8551. with_gnu_ld=yes
  8552. ;;
  8553. openbsd* | bitrig*)
  8554. with_gnu_ld=no
  8555. ;;
  8556. esac
  8557. ld_shlibs=yes
  8558. # On some targets, GNU ld is compatible enough with the native linker
  8559. # that we're better off using the native interface for both.
  8560. lt_use_gnu_ld_interface=no
  8561. if test yes = "$with_gnu_ld"; then
  8562. case $host_os in
  8563. aix*)
  8564. # The AIX port of GNU ld has always aspired to compatibility
  8565. # with the native linker. However, as the warning in the GNU ld
  8566. # block says, versions before 2.19.5* couldn't really create working
  8567. # shared libraries, regardless of the interface used.
  8568. case `$LD -v 2>&1` in
  8569. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8570. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8571. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8572. *)
  8573. lt_use_gnu_ld_interface=yes
  8574. ;;
  8575. esac
  8576. ;;
  8577. *)
  8578. lt_use_gnu_ld_interface=yes
  8579. ;;
  8580. esac
  8581. fi
  8582. if test yes = "$lt_use_gnu_ld_interface"; then
  8583. # If archive_cmds runs LD, not CC, wlarc should be empty
  8584. wlarc='$wl'
  8585. # Set some defaults for GNU ld with shared library support. These
  8586. # are reset later if shared libraries are not supported. Putting them
  8587. # here allows them to be overridden if necessary.
  8588. runpath_var=LD_RUN_PATH
  8589. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8590. export_dynamic_flag_spec='$wl--export-dynamic'
  8591. # ancient GNU ld didn't support --whole-archive et. al.
  8592. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8593. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8594. else
  8595. whole_archive_flag_spec=
  8596. fi
  8597. supports_anon_versioning=no
  8598. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8599. *GNU\ gold*) supports_anon_versioning=yes ;;
  8600. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8601. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8602. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8603. *\ 2.11.*) ;; # other 2.11 versions
  8604. *) supports_anon_versioning=yes ;;
  8605. esac
  8606. # See if GNU ld supports shared libraries.
  8607. case $host_os in
  8608. aix[3-9]*)
  8609. # On AIX/PPC, the GNU linker is very broken
  8610. if test ia64 != "$host_cpu"; then
  8611. ld_shlibs=no
  8612. cat <<_LT_EOF 1>&2
  8613. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8614. *** to be unable to reliably create shared libraries on AIX.
  8615. *** Therefore, libtool is disabling shared libraries support. If you
  8616. *** really care for shared libraries, you may want to install binutils
  8617. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8618. *** You will then need to restart the configuration process.
  8619. _LT_EOF
  8620. fi
  8621. ;;
  8622. amigaos*)
  8623. case $host_cpu in
  8624. powerpc)
  8625. # see comment about AmigaOS4 .so support
  8626. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8627. archive_expsym_cmds=''
  8628. ;;
  8629. m68k)
  8630. 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)'
  8631. hardcode_libdir_flag_spec='-L$libdir'
  8632. hardcode_minus_L=yes
  8633. ;;
  8634. esac
  8635. ;;
  8636. beos*)
  8637. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8638. allow_undefined_flag=unsupported
  8639. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8640. # support --undefined. This deserves some investigation. FIXME
  8641. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8642. else
  8643. ld_shlibs=no
  8644. fi
  8645. ;;
  8646. cygwin* | mingw* | pw32* | cegcc*)
  8647. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8648. # as there is no search path for DLLs.
  8649. hardcode_libdir_flag_spec='-L$libdir'
  8650. export_dynamic_flag_spec='$wl--export-all-symbols'
  8651. allow_undefined_flag=unsupported
  8652. always_export_symbols=no
  8653. enable_shared_with_static_runtimes=yes
  8654. 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'
  8655. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8656. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8657. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8658. # If the export-symbols file already is a .def file, use it as
  8659. # is; otherwise, prepend EXPORTS...
  8660. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8661. cp $export_symbols $output_objdir/$soname.def;
  8662. else
  8663. echo EXPORTS > $output_objdir/$soname.def;
  8664. cat $export_symbols >> $output_objdir/$soname.def;
  8665. fi~
  8666. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8667. else
  8668. ld_shlibs=no
  8669. fi
  8670. ;;
  8671. haiku*)
  8672. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8673. link_all_deplibs=yes
  8674. ;;
  8675. os2*)
  8676. hardcode_libdir_flag_spec='-L$libdir'
  8677. hardcode_minus_L=yes
  8678. allow_undefined_flag=unsupported
  8679. shrext_cmds=.dll
  8680. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8681. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8682. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8683. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8684. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8685. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8686. emximp -o $lib $output_objdir/$libname.def'
  8687. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8688. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8689. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8690. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8691. prefix_cmds="$SED"~
  8692. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8693. prefix_cmds="$prefix_cmds -e 1d";
  8694. fi~
  8695. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8696. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8697. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8698. emximp -o $lib $output_objdir/$libname.def'
  8699. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8700. enable_shared_with_static_runtimes=yes
  8701. file_list_spec='@'
  8702. ;;
  8703. interix[3-9]*)
  8704. hardcode_direct=no
  8705. hardcode_shlibpath_var=no
  8706. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8707. export_dynamic_flag_spec='$wl-E'
  8708. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8709. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8710. # default) and relocated if they conflict, which is a slow very memory
  8711. # consuming and fragmenting process. To avoid this, we pick a random,
  8712. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8713. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8714. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8715. 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'
  8716. ;;
  8717. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8718. tmp_diet=no
  8719. if test linux-dietlibc = "$host_os"; then
  8720. case $cc_basename in
  8721. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8722. esac
  8723. fi
  8724. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8725. && test no = "$tmp_diet"
  8726. then
  8727. tmp_addflag=' $pic_flag'
  8728. tmp_sharedflag='-shared'
  8729. case $cc_basename,$host_cpu in
  8730. pgcc*) # Portland Group C compiler
  8731. 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'
  8732. tmp_addflag=' $pic_flag'
  8733. ;;
  8734. pgf77* | pgf90* | pgf95* | pgfortran*)
  8735. # Portland Group f77 and f90 compilers
  8736. 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'
  8737. tmp_addflag=' $pic_flag -Mnomain' ;;
  8738. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8739. tmp_addflag=' -i_dynamic' ;;
  8740. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8741. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8742. ifc* | ifort*) # Intel Fortran compiler
  8743. tmp_addflag=' -nofor_main' ;;
  8744. lf95*) # Lahey Fortran 8.1
  8745. whole_archive_flag_spec=
  8746. tmp_sharedflag='--shared' ;;
  8747. nagfor*) # NAGFOR 5.3
  8748. tmp_sharedflag='-Wl,-shared' ;;
  8749. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8750. tmp_sharedflag='-qmkshrobj'
  8751. tmp_addflag= ;;
  8752. nvcc*) # Cuda Compiler Driver 2.2
  8753. 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'
  8754. compiler_needs_object=yes
  8755. ;;
  8756. esac
  8757. case `$CC -V 2>&1 | sed 5q` in
  8758. *Sun\ C*) # Sun C 5.9
  8759. 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'
  8760. compiler_needs_object=yes
  8761. tmp_sharedflag='-G' ;;
  8762. *Sun\ F*) # Sun Fortran 8.3
  8763. tmp_sharedflag='-G' ;;
  8764. esac
  8765. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8766. if test yes = "$supports_anon_versioning"; then
  8767. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8768. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8769. echo "local: *; };" >> $output_objdir/$libname.ver~
  8770. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8771. fi
  8772. case $cc_basename in
  8773. tcc*)
  8774. export_dynamic_flag_spec='-rdynamic'
  8775. ;;
  8776. xlf* | bgf* | bgxlf* | mpixlf*)
  8777. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8778. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8779. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8780. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8781. if test yes = "$supports_anon_versioning"; then
  8782. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8783. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8784. echo "local: *; };" >> $output_objdir/$libname.ver~
  8785. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8786. fi
  8787. ;;
  8788. esac
  8789. else
  8790. ld_shlibs=no
  8791. fi
  8792. ;;
  8793. netbsd*)
  8794. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8795. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8796. wlarc=
  8797. else
  8798. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8799. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8800. fi
  8801. ;;
  8802. solaris*)
  8803. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8804. ld_shlibs=no
  8805. cat <<_LT_EOF 1>&2
  8806. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8807. *** create shared libraries on Solaris systems. Therefore, libtool
  8808. *** is disabling shared libraries support. We urge you to upgrade GNU
  8809. *** binutils to release 2.9.1 or newer. Another option is to modify
  8810. *** your PATH or compiler configuration so that the native linker is
  8811. *** used, and then restart.
  8812. _LT_EOF
  8813. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8814. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8815. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8816. else
  8817. ld_shlibs=no
  8818. fi
  8819. ;;
  8820. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8821. case `$LD -v 2>&1` in
  8822. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8823. ld_shlibs=no
  8824. cat <<_LT_EOF 1>&2
  8825. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8826. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8827. *** is disabling shared libraries support. We urge you to upgrade GNU
  8828. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8829. *** your PATH or compiler configuration so that the native linker is
  8830. *** used, and then restart.
  8831. _LT_EOF
  8832. ;;
  8833. *)
  8834. # For security reasons, it is highly recommended that you always
  8835. # use absolute paths for naming shared libraries, and exclude the
  8836. # DT_RUNPATH tag from executables and libraries. But doing so
  8837. # requires that you compile everything twice, which is a pain.
  8838. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8839. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8840. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8841. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8842. else
  8843. ld_shlibs=no
  8844. fi
  8845. ;;
  8846. esac
  8847. ;;
  8848. sunos4*)
  8849. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8850. wlarc=
  8851. hardcode_direct=yes
  8852. hardcode_shlibpath_var=no
  8853. ;;
  8854. *)
  8855. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8856. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8857. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8858. else
  8859. ld_shlibs=no
  8860. fi
  8861. ;;
  8862. esac
  8863. if test no = "$ld_shlibs"; then
  8864. runpath_var=
  8865. hardcode_libdir_flag_spec=
  8866. export_dynamic_flag_spec=
  8867. whole_archive_flag_spec=
  8868. fi
  8869. else
  8870. # PORTME fill in a description of your system's linker (not GNU ld)
  8871. case $host_os in
  8872. aix3*)
  8873. allow_undefined_flag=unsupported
  8874. always_export_symbols=yes
  8875. 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'
  8876. # Note: this linker hardcodes the directories in LIBPATH if there
  8877. # are no directories specified by -L.
  8878. hardcode_minus_L=yes
  8879. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8880. # Neither direct hardcoding nor static linking is supported with a
  8881. # broken collect2.
  8882. hardcode_direct=unsupported
  8883. fi
  8884. ;;
  8885. aix[4-9]*)
  8886. if test ia64 = "$host_cpu"; then
  8887. # On IA64, the linker does run time linking by default, so we don't
  8888. # have to do anything special.
  8889. aix_use_runtimelinking=no
  8890. exp_sym_flag='-Bexport'
  8891. no_entry_flag=
  8892. else
  8893. # If we're using GNU nm, then we don't want the "-C" option.
  8894. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8895. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8896. # weak defined symbols like other global defined symbols, whereas
  8897. # GNU nm marks them as "W".
  8898. # While the 'weak' keyword is ignored in the Export File, we need
  8899. # it in the Import File for the 'aix-soname' feature, so we have
  8900. # to replace the "-B" option with "-P" for AIX nm.
  8901. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8902. 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'
  8903. else
  8904. 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'
  8905. fi
  8906. aix_use_runtimelinking=no
  8907. # Test if we are trying to use run time linking or normal
  8908. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8909. # have runtime linking enabled, and use it for executables.
  8910. # For shared libraries, we enable/disable runtime linking
  8911. # depending on the kind of the shared library created -
  8912. # when "with_aix_soname,aix_use_runtimelinking" is:
  8913. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8914. # "aix,yes" lib.so shared, rtl:yes, for executables
  8915. # lib.a static archive
  8916. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8917. # lib.a(lib.so.V) shared, rtl:no, for executables
  8918. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8919. # lib.a(lib.so.V) shared, rtl:no
  8920. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8921. # lib.a static archive
  8922. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8923. for ld_flag in $LDFLAGS; do
  8924. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8925. aix_use_runtimelinking=yes
  8926. break
  8927. fi
  8928. done
  8929. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8930. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8931. # so we don't have lib.a shared libs to link our executables.
  8932. # We have to force runtime linking in this case.
  8933. aix_use_runtimelinking=yes
  8934. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8935. fi
  8936. ;;
  8937. esac
  8938. exp_sym_flag='-bexport'
  8939. no_entry_flag='-bnoentry'
  8940. fi
  8941. # When large executables or shared objects are built, AIX ld can
  8942. # have problems creating the table of contents. If linking a library
  8943. # or program results in "error TOC overflow" add -mminimal-toc to
  8944. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8945. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8946. archive_cmds=''
  8947. hardcode_direct=yes
  8948. hardcode_direct_absolute=yes
  8949. hardcode_libdir_separator=':'
  8950. link_all_deplibs=yes
  8951. file_list_spec='$wl-f,'
  8952. case $with_aix_soname,$aix_use_runtimelinking in
  8953. aix,*) ;; # traditional, no import file
  8954. svr4,* | *,yes) # use import file
  8955. # The Import File defines what to hardcode.
  8956. hardcode_direct=no
  8957. hardcode_direct_absolute=no
  8958. ;;
  8959. esac
  8960. if test yes = "$GCC"; then
  8961. case $host_os in aix4.[012]|aix4.[012].*)
  8962. # We only want to do this on AIX 4.2 and lower, the check
  8963. # below for broken collect2 doesn't work under 4.3+
  8964. collect2name=`$CC -print-prog-name=collect2`
  8965. if test -f "$collect2name" &&
  8966. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8967. then
  8968. # We have reworked collect2
  8969. :
  8970. else
  8971. # We have old collect2
  8972. hardcode_direct=unsupported
  8973. # It fails to find uninstalled libraries when the uninstalled
  8974. # path is not listed in the libpath. Setting hardcode_minus_L
  8975. # to unsupported forces relinking
  8976. hardcode_minus_L=yes
  8977. hardcode_libdir_flag_spec='-L$libdir'
  8978. hardcode_libdir_separator=
  8979. fi
  8980. ;;
  8981. esac
  8982. shared_flag='-shared'
  8983. if test yes = "$aix_use_runtimelinking"; then
  8984. shared_flag="$shared_flag "'$wl-G'
  8985. fi
  8986. # Need to ensure runtime linking is disabled for the traditional
  8987. # shared library, or the linker may eventually find shared libraries
  8988. # /with/ Import File - we do not want to mix them.
  8989. shared_flag_aix='-shared'
  8990. shared_flag_svr4='-shared $wl-G'
  8991. else
  8992. # not using gcc
  8993. if test ia64 = "$host_cpu"; then
  8994. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8995. # chokes on -Wl,-G. The following line is correct:
  8996. shared_flag='-G'
  8997. else
  8998. if test yes = "$aix_use_runtimelinking"; then
  8999. shared_flag='$wl-G'
  9000. else
  9001. shared_flag='$wl-bM:SRE'
  9002. fi
  9003. shared_flag_aix='$wl-bM:SRE'
  9004. shared_flag_svr4='$wl-G'
  9005. fi
  9006. fi
  9007. export_dynamic_flag_spec='$wl-bexpall'
  9008. # It seems that -bexpall does not export symbols beginning with
  9009. # underscore (_), so it is better to generate a list of symbols to export.
  9010. always_export_symbols=yes
  9011. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9012. # Warning - without using the other runtime loading flags (-brtl),
  9013. # -berok will link without error, but may produce a broken library.
  9014. allow_undefined_flag='-berok'
  9015. # Determine the default libpath from the value encoded in an
  9016. # empty executable.
  9017. if test set = "${lt_cv_aix_libpath+set}"; then
  9018. aix_libpath=$lt_cv_aix_libpath
  9019. else
  9020. if test ${lt_cv_aix_libpath_+y}
  9021. then :
  9022. printf %s "(cached) " >&6
  9023. else $as_nop
  9024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9025. /* end confdefs.h. */
  9026. int
  9027. main (void)
  9028. {
  9029. ;
  9030. return 0;
  9031. }
  9032. _ACEOF
  9033. if ac_fn_c_try_link "$LINENO"
  9034. then :
  9035. lt_aix_libpath_sed='
  9036. /Import File Strings/,/^$/ {
  9037. /^0/ {
  9038. s/^0 *\([^ ]*\) *$/\1/
  9039. p
  9040. }
  9041. }'
  9042. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9043. # Check for a 64-bit object if we didn't find anything.
  9044. if test -z "$lt_cv_aix_libpath_"; then
  9045. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9046. fi
  9047. fi
  9048. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9049. conftest$ac_exeext conftest.$ac_ext
  9050. if test -z "$lt_cv_aix_libpath_"; then
  9051. lt_cv_aix_libpath_=/usr/lib:/lib
  9052. fi
  9053. fi
  9054. aix_libpath=$lt_cv_aix_libpath_
  9055. fi
  9056. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9057. 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
  9058. else
  9059. if test ia64 = "$host_cpu"; then
  9060. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9061. allow_undefined_flag="-z nodefs"
  9062. 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"
  9063. else
  9064. # Determine the default libpath from the value encoded in an
  9065. # empty executable.
  9066. if test set = "${lt_cv_aix_libpath+set}"; then
  9067. aix_libpath=$lt_cv_aix_libpath
  9068. else
  9069. if test ${lt_cv_aix_libpath_+y}
  9070. then :
  9071. printf %s "(cached) " >&6
  9072. else $as_nop
  9073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9074. /* end confdefs.h. */
  9075. int
  9076. main (void)
  9077. {
  9078. ;
  9079. return 0;
  9080. }
  9081. _ACEOF
  9082. if ac_fn_c_try_link "$LINENO"
  9083. then :
  9084. lt_aix_libpath_sed='
  9085. /Import File Strings/,/^$/ {
  9086. /^0/ {
  9087. s/^0 *\([^ ]*\) *$/\1/
  9088. p
  9089. }
  9090. }'
  9091. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9092. # Check for a 64-bit object if we didn't find anything.
  9093. if test -z "$lt_cv_aix_libpath_"; then
  9094. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9095. fi
  9096. fi
  9097. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9098. conftest$ac_exeext conftest.$ac_ext
  9099. if test -z "$lt_cv_aix_libpath_"; then
  9100. lt_cv_aix_libpath_=/usr/lib:/lib
  9101. fi
  9102. fi
  9103. aix_libpath=$lt_cv_aix_libpath_
  9104. fi
  9105. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9106. # Warning - without using the other run time loading flags,
  9107. # -berok will link without error, but may produce a broken library.
  9108. no_undefined_flag=' $wl-bernotok'
  9109. allow_undefined_flag=' $wl-berok'
  9110. if test yes = "$with_gnu_ld"; then
  9111. # We only use this code for GNU lds that support --whole-archive.
  9112. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9113. else
  9114. # Exported symbols can be pulled into shared objects from archives
  9115. whole_archive_flag_spec='$convenience'
  9116. fi
  9117. archive_cmds_need_lc=yes
  9118. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9119. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9120. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9121. if test svr4 != "$with_aix_soname"; then
  9122. # This is similar to how AIX traditionally builds its shared libraries.
  9123. 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'
  9124. fi
  9125. if test aix != "$with_aix_soname"; then
  9126. 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'
  9127. else
  9128. # used by -dlpreopen to get the symbols
  9129. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9130. fi
  9131. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9132. fi
  9133. fi
  9134. ;;
  9135. amigaos*)
  9136. case $host_cpu in
  9137. powerpc)
  9138. # see comment about AmigaOS4 .so support
  9139. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9140. archive_expsym_cmds=''
  9141. ;;
  9142. m68k)
  9143. 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)'
  9144. hardcode_libdir_flag_spec='-L$libdir'
  9145. hardcode_minus_L=yes
  9146. ;;
  9147. esac
  9148. ;;
  9149. bsdi[45]*)
  9150. export_dynamic_flag_spec=-rdynamic
  9151. ;;
  9152. cygwin* | mingw* | pw32* | cegcc*)
  9153. # When not using gcc, we currently assume that we are using
  9154. # Microsoft Visual C++.
  9155. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9156. # no search path for DLLs.
  9157. case $cc_basename in
  9158. cl*)
  9159. # Native MSVC
  9160. hardcode_libdir_flag_spec=' '
  9161. allow_undefined_flag=unsupported
  9162. always_export_symbols=yes
  9163. file_list_spec='@'
  9164. # Tell ltmain to make .lib files, not .a files.
  9165. libext=lib
  9166. # Tell ltmain to make .dll files, not .so files.
  9167. shrext_cmds=.dll
  9168. # FIXME: Setting linknames here is a bad hack.
  9169. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9170. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9171. cp "$export_symbols" "$output_objdir/$soname.def";
  9172. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9173. else
  9174. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9175. fi~
  9176. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9177. linknames='
  9178. # The linker will not automatically build a static lib if we build a DLL.
  9179. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9180. enable_shared_with_static_runtimes=yes
  9181. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9182. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9183. # Don't use ranlib
  9184. old_postinstall_cmds='chmod 644 $oldlib'
  9185. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9186. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9187. case $lt_outputfile in
  9188. *.exe|*.EXE) ;;
  9189. *)
  9190. lt_outputfile=$lt_outputfile.exe
  9191. lt_tool_outputfile=$lt_tool_outputfile.exe
  9192. ;;
  9193. esac~
  9194. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9195. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9196. $RM "$lt_outputfile.manifest";
  9197. fi'
  9198. ;;
  9199. *)
  9200. # Assume MSVC wrapper
  9201. hardcode_libdir_flag_spec=' '
  9202. allow_undefined_flag=unsupported
  9203. # Tell ltmain to make .lib files, not .a files.
  9204. libext=lib
  9205. # Tell ltmain to make .dll files, not .so files.
  9206. shrext_cmds=.dll
  9207. # FIXME: Setting linknames here is a bad hack.
  9208. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9209. # The linker will automatically build a .lib file if we build a DLL.
  9210. old_archive_from_new_cmds='true'
  9211. # FIXME: Should let the user specify the lib program.
  9212. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9213. enable_shared_with_static_runtimes=yes
  9214. ;;
  9215. esac
  9216. ;;
  9217. darwin* | rhapsody*)
  9218. archive_cmds_need_lc=no
  9219. hardcode_direct=no
  9220. hardcode_automatic=yes
  9221. hardcode_shlibpath_var=unsupported
  9222. if test yes = "$lt_cv_ld_force_load"; then
  9223. 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\"`'
  9224. else
  9225. whole_archive_flag_spec=''
  9226. fi
  9227. link_all_deplibs=yes
  9228. allow_undefined_flag=$_lt_dar_allow_undefined
  9229. case $cc_basename in
  9230. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9231. *) _lt_dar_can_shared=$GCC ;;
  9232. esac
  9233. if test yes = "$_lt_dar_can_shared"; then
  9234. output_verbose_link_cmd=func_echo_all
  9235. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9236. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9237. 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"
  9238. 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"
  9239. else
  9240. ld_shlibs=no
  9241. fi
  9242. ;;
  9243. dgux*)
  9244. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9245. hardcode_libdir_flag_spec='-L$libdir'
  9246. hardcode_shlibpath_var=no
  9247. ;;
  9248. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9249. # support. Future versions do this automatically, but an explicit c++rt0.o
  9250. # does not break anything, and helps significantly (at the cost of a little
  9251. # extra space).
  9252. freebsd2.2*)
  9253. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9254. hardcode_libdir_flag_spec='-R$libdir'
  9255. hardcode_direct=yes
  9256. hardcode_shlibpath_var=no
  9257. ;;
  9258. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9259. freebsd2.*)
  9260. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9261. hardcode_direct=yes
  9262. hardcode_minus_L=yes
  9263. hardcode_shlibpath_var=no
  9264. ;;
  9265. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9266. freebsd* | dragonfly* | midnightbsd*)
  9267. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9268. hardcode_libdir_flag_spec='-R$libdir'
  9269. hardcode_direct=yes
  9270. hardcode_shlibpath_var=no
  9271. ;;
  9272. hpux9*)
  9273. if test yes = "$GCC"; then
  9274. 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'
  9275. else
  9276. 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'
  9277. fi
  9278. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9279. hardcode_libdir_separator=:
  9280. hardcode_direct=yes
  9281. # hardcode_minus_L: Not really in the search PATH,
  9282. # but as the default location of the library.
  9283. hardcode_minus_L=yes
  9284. export_dynamic_flag_spec='$wl-E'
  9285. ;;
  9286. hpux10*)
  9287. if test yes,no = "$GCC,$with_gnu_ld"; then
  9288. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9289. else
  9290. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9291. fi
  9292. if test no = "$with_gnu_ld"; then
  9293. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9294. hardcode_libdir_separator=:
  9295. hardcode_direct=yes
  9296. hardcode_direct_absolute=yes
  9297. export_dynamic_flag_spec='$wl-E'
  9298. # hardcode_minus_L: Not really in the search PATH,
  9299. # but as the default location of the library.
  9300. hardcode_minus_L=yes
  9301. fi
  9302. ;;
  9303. hpux11*)
  9304. if test yes,no = "$GCC,$with_gnu_ld"; then
  9305. case $host_cpu in
  9306. hppa*64*)
  9307. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9308. ;;
  9309. ia64*)
  9310. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9311. ;;
  9312. *)
  9313. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9314. ;;
  9315. esac
  9316. else
  9317. case $host_cpu in
  9318. hppa*64*)
  9319. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9320. ;;
  9321. ia64*)
  9322. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9323. ;;
  9324. *)
  9325. # Older versions of the 11.00 compiler do not understand -b yet
  9326. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9328. printf %s "checking if $CC understands -b... " >&6; }
  9329. if test ${lt_cv_prog_compiler__b+y}
  9330. then :
  9331. printf %s "(cached) " >&6
  9332. else $as_nop
  9333. lt_cv_prog_compiler__b=no
  9334. save_LDFLAGS=$LDFLAGS
  9335. LDFLAGS="$LDFLAGS -b"
  9336. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9337. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9338. # The linker can only warn and ignore the option if not recognized
  9339. # So say no if there are warnings
  9340. if test -s conftest.err; then
  9341. # Append any errors to the config.log.
  9342. cat conftest.err 1>&5
  9343. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9344. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9345. if diff conftest.exp conftest.er2 >/dev/null; then
  9346. lt_cv_prog_compiler__b=yes
  9347. fi
  9348. else
  9349. lt_cv_prog_compiler__b=yes
  9350. fi
  9351. fi
  9352. $RM -r conftest*
  9353. LDFLAGS=$save_LDFLAGS
  9354. fi
  9355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9356. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9357. if test yes = "$lt_cv_prog_compiler__b"; then
  9358. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9359. else
  9360. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9361. fi
  9362. ;;
  9363. esac
  9364. fi
  9365. if test no = "$with_gnu_ld"; then
  9366. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9367. hardcode_libdir_separator=:
  9368. case $host_cpu in
  9369. hppa*64*|ia64*)
  9370. hardcode_direct=no
  9371. hardcode_shlibpath_var=no
  9372. ;;
  9373. *)
  9374. hardcode_direct=yes
  9375. hardcode_direct_absolute=yes
  9376. export_dynamic_flag_spec='$wl-E'
  9377. # hardcode_minus_L: Not really in the search PATH,
  9378. # but as the default location of the library.
  9379. hardcode_minus_L=yes
  9380. ;;
  9381. esac
  9382. fi
  9383. ;;
  9384. irix5* | irix6* | nonstopux*)
  9385. if test yes = "$GCC"; then
  9386. 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'
  9387. # Try to use the -exported_symbol ld option, if it does not
  9388. # work, assume that -exports_file does not work either and
  9389. # implicitly export all symbols.
  9390. # This should be the same for all languages, so no per-tag cache variable.
  9391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9392. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9393. if test ${lt_cv_irix_exported_symbol+y}
  9394. then :
  9395. printf %s "(cached) " >&6
  9396. else $as_nop
  9397. save_LDFLAGS=$LDFLAGS
  9398. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9400. /* end confdefs.h. */
  9401. int foo (void) { return 0; }
  9402. _ACEOF
  9403. if ac_fn_c_try_link "$LINENO"
  9404. then :
  9405. lt_cv_irix_exported_symbol=yes
  9406. else $as_nop
  9407. lt_cv_irix_exported_symbol=no
  9408. fi
  9409. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9410. conftest$ac_exeext conftest.$ac_ext
  9411. LDFLAGS=$save_LDFLAGS
  9412. fi
  9413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9414. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9415. if test yes = "$lt_cv_irix_exported_symbol"; then
  9416. 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'
  9417. fi
  9418. else
  9419. 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'
  9420. 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'
  9421. fi
  9422. archive_cmds_need_lc='no'
  9423. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9424. hardcode_libdir_separator=:
  9425. inherit_rpath=yes
  9426. link_all_deplibs=yes
  9427. ;;
  9428. linux*)
  9429. case $cc_basename in
  9430. tcc*)
  9431. # Fabrice Bellard et al's Tiny C Compiler
  9432. ld_shlibs=yes
  9433. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9434. ;;
  9435. esac
  9436. ;;
  9437. netbsd*)
  9438. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9439. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9440. else
  9441. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9442. fi
  9443. hardcode_libdir_flag_spec='-R$libdir'
  9444. hardcode_direct=yes
  9445. hardcode_shlibpath_var=no
  9446. ;;
  9447. newsos6)
  9448. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9449. hardcode_direct=yes
  9450. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9451. hardcode_libdir_separator=:
  9452. hardcode_shlibpath_var=no
  9453. ;;
  9454. *nto* | *qnx*)
  9455. ;;
  9456. openbsd* | bitrig*)
  9457. if test -f /usr/libexec/ld.so; then
  9458. hardcode_direct=yes
  9459. hardcode_shlibpath_var=no
  9460. hardcode_direct_absolute=yes
  9461. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9462. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9463. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9464. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9465. export_dynamic_flag_spec='$wl-E'
  9466. else
  9467. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9468. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9469. fi
  9470. else
  9471. ld_shlibs=no
  9472. fi
  9473. ;;
  9474. os2*)
  9475. hardcode_libdir_flag_spec='-L$libdir'
  9476. hardcode_minus_L=yes
  9477. allow_undefined_flag=unsupported
  9478. shrext_cmds=.dll
  9479. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9480. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9481. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9482. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9483. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9484. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9485. emximp -o $lib $output_objdir/$libname.def'
  9486. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9487. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9488. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9489. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9490. prefix_cmds="$SED"~
  9491. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9492. prefix_cmds="$prefix_cmds -e 1d";
  9493. fi~
  9494. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9495. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9496. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9497. emximp -o $lib $output_objdir/$libname.def'
  9498. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9499. enable_shared_with_static_runtimes=yes
  9500. file_list_spec='@'
  9501. ;;
  9502. osf3*)
  9503. if test yes = "$GCC"; then
  9504. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9505. 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'
  9506. else
  9507. allow_undefined_flag=' -expect_unresolved \*'
  9508. 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'
  9509. fi
  9510. archive_cmds_need_lc='no'
  9511. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9512. hardcode_libdir_separator=:
  9513. ;;
  9514. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9515. if test yes = "$GCC"; then
  9516. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9517. 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'
  9518. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9519. else
  9520. allow_undefined_flag=' -expect_unresolved \*'
  9521. 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'
  9522. 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~
  9523. $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'
  9524. # Both c and cxx compiler support -rpath directly
  9525. hardcode_libdir_flag_spec='-rpath $libdir'
  9526. fi
  9527. archive_cmds_need_lc='no'
  9528. hardcode_libdir_separator=:
  9529. ;;
  9530. solaris*)
  9531. no_undefined_flag=' -z defs'
  9532. if test yes = "$GCC"; then
  9533. wlarc='$wl'
  9534. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9535. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9536. $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'
  9537. else
  9538. case `$CC -V 2>&1` in
  9539. *"Compilers 5.0"*)
  9540. wlarc=''
  9541. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9542. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9543. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9544. ;;
  9545. *)
  9546. wlarc='$wl'
  9547. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9548. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9549. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9550. ;;
  9551. esac
  9552. fi
  9553. hardcode_libdir_flag_spec='-R$libdir'
  9554. hardcode_shlibpath_var=no
  9555. case $host_os in
  9556. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9557. *)
  9558. # The compiler driver will combine and reorder linker options,
  9559. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9560. # but is careful enough not to reorder.
  9561. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9562. if test yes = "$GCC"; then
  9563. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9564. else
  9565. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9566. fi
  9567. ;;
  9568. esac
  9569. link_all_deplibs=yes
  9570. ;;
  9571. sunos4*)
  9572. if test sequent = "$host_vendor"; then
  9573. # Use $CC to link under sequent, because it throws in some extra .o
  9574. # files that make .init and .fini sections work.
  9575. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9576. else
  9577. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9578. fi
  9579. hardcode_libdir_flag_spec='-L$libdir'
  9580. hardcode_direct=yes
  9581. hardcode_minus_L=yes
  9582. hardcode_shlibpath_var=no
  9583. ;;
  9584. sysv4)
  9585. case $host_vendor in
  9586. sni)
  9587. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9588. hardcode_direct=yes # is this really true???
  9589. ;;
  9590. siemens)
  9591. ## LD is ld it makes a PLAMLIB
  9592. ## CC just makes a GrossModule.
  9593. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9594. reload_cmds='$CC -r -o $output$reload_objs'
  9595. hardcode_direct=no
  9596. ;;
  9597. motorola)
  9598. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9599. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9600. ;;
  9601. esac
  9602. runpath_var='LD_RUN_PATH'
  9603. hardcode_shlibpath_var=no
  9604. ;;
  9605. sysv4.3*)
  9606. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9607. hardcode_shlibpath_var=no
  9608. export_dynamic_flag_spec='-Bexport'
  9609. ;;
  9610. sysv4*MP*)
  9611. if test -d /usr/nec; then
  9612. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9613. hardcode_shlibpath_var=no
  9614. runpath_var=LD_RUN_PATH
  9615. hardcode_runpath_var=yes
  9616. ld_shlibs=yes
  9617. fi
  9618. ;;
  9619. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9620. no_undefined_flag='$wl-z,text'
  9621. archive_cmds_need_lc=no
  9622. hardcode_shlibpath_var=no
  9623. runpath_var='LD_RUN_PATH'
  9624. if test yes = "$GCC"; then
  9625. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9626. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9627. else
  9628. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9629. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9630. fi
  9631. ;;
  9632. sysv5* | sco3.2v5* | sco5v6*)
  9633. # Note: We CANNOT use -z defs as we might desire, because we do not
  9634. # link with -lc, and that would cause any symbols used from libc to
  9635. # always be unresolved, which means just about no library would
  9636. # ever link correctly. If we're not using GNU ld we use -z text
  9637. # though, which does catch some bad symbols but isn't as heavy-handed
  9638. # as -z defs.
  9639. no_undefined_flag='$wl-z,text'
  9640. allow_undefined_flag='$wl-z,nodefs'
  9641. archive_cmds_need_lc=no
  9642. hardcode_shlibpath_var=no
  9643. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9644. hardcode_libdir_separator=':'
  9645. link_all_deplibs=yes
  9646. export_dynamic_flag_spec='$wl-Bexport'
  9647. runpath_var='LD_RUN_PATH'
  9648. if test yes = "$GCC"; then
  9649. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9650. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9651. else
  9652. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9653. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9654. fi
  9655. ;;
  9656. uts4*)
  9657. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9658. hardcode_libdir_flag_spec='-L$libdir'
  9659. hardcode_shlibpath_var=no
  9660. ;;
  9661. *)
  9662. ld_shlibs=no
  9663. ;;
  9664. esac
  9665. if test sni = "$host_vendor"; then
  9666. case $host in
  9667. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9668. export_dynamic_flag_spec='$wl-Blargedynsym'
  9669. ;;
  9670. esac
  9671. fi
  9672. fi
  9673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9674. printf "%s\n" "$ld_shlibs" >&6; }
  9675. test no = "$ld_shlibs" && can_build_shared=no
  9676. with_gnu_ld=$with_gnu_ld
  9677. #
  9678. # Do we need to explicitly link libc?
  9679. #
  9680. case "x$archive_cmds_need_lc" in
  9681. x|xyes)
  9682. # Assume -lc should be added
  9683. archive_cmds_need_lc=yes
  9684. if test yes,yes = "$GCC,$enable_shared"; then
  9685. case $archive_cmds in
  9686. *'~'*)
  9687. # FIXME: we may have to deal with multi-command sequences.
  9688. ;;
  9689. '$CC '*)
  9690. # Test whether the compiler implicitly links with -lc since on some
  9691. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9692. # to ld, don't add -lc before -lgcc.
  9693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9694. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9695. if test ${lt_cv_archive_cmds_need_lc+y}
  9696. then :
  9697. printf %s "(cached) " >&6
  9698. else $as_nop
  9699. $RM conftest*
  9700. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9701. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9702. (eval $ac_compile) 2>&5
  9703. ac_status=$?
  9704. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9705. test $ac_status = 0; } 2>conftest.err; then
  9706. soname=conftest
  9707. lib=conftest
  9708. libobjs=conftest.$ac_objext
  9709. deplibs=
  9710. wl=$lt_prog_compiler_wl
  9711. pic_flag=$lt_prog_compiler_pic
  9712. compiler_flags=-v
  9713. linker_flags=-v
  9714. verstring=
  9715. output_objdir=.
  9716. libname=conftest
  9717. lt_save_allow_undefined_flag=$allow_undefined_flag
  9718. allow_undefined_flag=
  9719. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9720. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9721. ac_status=$?
  9722. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9723. test $ac_status = 0; }
  9724. then
  9725. lt_cv_archive_cmds_need_lc=no
  9726. else
  9727. lt_cv_archive_cmds_need_lc=yes
  9728. fi
  9729. allow_undefined_flag=$lt_save_allow_undefined_flag
  9730. else
  9731. cat conftest.err 1>&5
  9732. fi
  9733. $RM conftest*
  9734. fi
  9735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9736. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9737. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9738. ;;
  9739. esac
  9740. fi
  9741. ;;
  9742. esac
  9743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9744. printf %s "checking dynamic linker characteristics... " >&6; }
  9745. if test yes = "$GCC"; then
  9746. case $host_os in
  9747. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9748. *) lt_awk_arg='/^libraries:/' ;;
  9749. esac
  9750. case $host_os in
  9751. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9752. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9753. esac
  9754. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9755. case $lt_search_path_spec in
  9756. *\;*)
  9757. # if the path contains ";" then we assume it to be the separator
  9758. # otherwise default to the standard path separator (i.e. ":") - it is
  9759. # assumed that no part of a normal pathname contains ";" but that should
  9760. # okay in the real world where ";" in dirpaths is itself problematic.
  9761. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9762. ;;
  9763. *)
  9764. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9765. ;;
  9766. esac
  9767. # Ok, now we have the path, separated by spaces, we can step through it
  9768. # and add multilib dir if necessary...
  9769. lt_tmp_lt_search_path_spec=
  9770. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9771. # ...but if some path component already ends with the multilib dir we assume
  9772. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9773. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9774. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9775. lt_multi_os_dir=
  9776. ;;
  9777. esac
  9778. for lt_sys_path in $lt_search_path_spec; do
  9779. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9780. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9781. elif test -n "$lt_multi_os_dir"; then
  9782. test -d "$lt_sys_path" && \
  9783. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9784. fi
  9785. done
  9786. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9787. BEGIN {RS = " "; FS = "/|\n";} {
  9788. lt_foo = "";
  9789. lt_count = 0;
  9790. for (lt_i = NF; lt_i > 0; lt_i--) {
  9791. if ($lt_i != "" && $lt_i != ".") {
  9792. if ($lt_i == "..") {
  9793. lt_count++;
  9794. } else {
  9795. if (lt_count == 0) {
  9796. lt_foo = "/" $lt_i lt_foo;
  9797. } else {
  9798. lt_count--;
  9799. }
  9800. }
  9801. }
  9802. }
  9803. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9804. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9805. }'`
  9806. # AWK program above erroneously prepends '/' to C:/dos/paths
  9807. # for these hosts.
  9808. case $host_os in
  9809. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9810. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9811. esac
  9812. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9813. else
  9814. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9815. fi
  9816. library_names_spec=
  9817. libname_spec='lib$name'
  9818. soname_spec=
  9819. shrext_cmds=.so
  9820. postinstall_cmds=
  9821. postuninstall_cmds=
  9822. finish_cmds=
  9823. finish_eval=
  9824. shlibpath_var=
  9825. shlibpath_overrides_runpath=unknown
  9826. version_type=none
  9827. dynamic_linker="$host_os ld.so"
  9828. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9829. need_lib_prefix=unknown
  9830. hardcode_into_libs=no
  9831. # when you set need_version to no, make sure it does not cause -set_version
  9832. # flags to be left without arguments
  9833. need_version=unknown
  9834. case $host_os in
  9835. aix3*)
  9836. version_type=linux # correct to gnu/linux during the next big refactor
  9837. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9838. shlibpath_var=LIBPATH
  9839. # AIX 3 has no versioning support, so we append a major version to the name.
  9840. soname_spec='$libname$release$shared_ext$major'
  9841. ;;
  9842. aix[4-9]*)
  9843. version_type=linux # correct to gnu/linux during the next big refactor
  9844. need_lib_prefix=no
  9845. need_version=no
  9846. hardcode_into_libs=yes
  9847. if test ia64 = "$host_cpu"; then
  9848. # AIX 5 supports IA64
  9849. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9850. shlibpath_var=LD_LIBRARY_PATH
  9851. else
  9852. # With GCC up to 2.95.x, collect2 would create an import file
  9853. # for dependence libraries. The import file would start with
  9854. # the line '#! .'. This would cause the generated library to
  9855. # depend on '.', always an invalid library. This was fixed in
  9856. # development snapshots of GCC prior to 3.0.
  9857. case $host_os in
  9858. aix4 | aix4.[01] | aix4.[01].*)
  9859. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9860. echo ' yes '
  9861. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9862. :
  9863. else
  9864. can_build_shared=no
  9865. fi
  9866. ;;
  9867. esac
  9868. # Using Import Files as archive members, it is possible to support
  9869. # filename-based versioning of shared library archives on AIX. While
  9870. # this would work for both with and without runtime linking, it will
  9871. # prevent static linking of such archives. So we do filename-based
  9872. # shared library versioning with .so extension only, which is used
  9873. # when both runtime linking and shared linking is enabled.
  9874. # Unfortunately, runtime linking may impact performance, so we do
  9875. # not want this to be the default eventually. Also, we use the
  9876. # versioned .so libs for executables only if there is the -brtl
  9877. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9878. # To allow for filename-based versioning support, we need to create
  9879. # libNAME.so.V as an archive file, containing:
  9880. # *) an Import File, referring to the versioned filename of the
  9881. # archive as well as the shared archive member, telling the
  9882. # bitwidth (32 or 64) of that shared object, and providing the
  9883. # list of exported symbols of that shared object, eventually
  9884. # decorated with the 'weak' keyword
  9885. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9886. # it being seen by the linker.
  9887. # At run time we better use the real file rather than another symlink,
  9888. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9889. case $with_aix_soname,$aix_use_runtimelinking in
  9890. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9891. # soname into executable. Probably we can add versioning support to
  9892. # collect2, so additional links can be useful in future.
  9893. aix,yes) # traditional libtool
  9894. dynamic_linker='AIX unversionable lib.so'
  9895. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9896. # instead of lib<name>.a to let people know that these are not
  9897. # typical AIX shared libraries.
  9898. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9899. ;;
  9900. aix,no) # traditional AIX only
  9901. dynamic_linker='AIX lib.a(lib.so.V)'
  9902. # We preserve .a as extension for shared libraries through AIX4.2
  9903. # and later when we are not doing run time linking.
  9904. library_names_spec='$libname$release.a $libname.a'
  9905. soname_spec='$libname$release$shared_ext$major'
  9906. ;;
  9907. svr4,*) # full svr4 only
  9908. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9909. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9910. # We do not specify a path in Import Files, so LIBPATH fires.
  9911. shlibpath_overrides_runpath=yes
  9912. ;;
  9913. *,yes) # both, prefer svr4
  9914. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9915. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9916. # unpreferred sharedlib libNAME.a needs extra handling
  9917. 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"'
  9918. 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"'
  9919. # We do not specify a path in Import Files, so LIBPATH fires.
  9920. shlibpath_overrides_runpath=yes
  9921. ;;
  9922. *,no) # both, prefer aix
  9923. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9924. library_names_spec='$libname$release.a $libname.a'
  9925. soname_spec='$libname$release$shared_ext$major'
  9926. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9927. 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)'
  9928. 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"'
  9929. ;;
  9930. esac
  9931. shlibpath_var=LIBPATH
  9932. fi
  9933. ;;
  9934. amigaos*)
  9935. case $host_cpu in
  9936. powerpc)
  9937. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9938. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9939. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9940. ;;
  9941. m68k)
  9942. library_names_spec='$libname.ixlibrary $libname.a'
  9943. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9944. 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'
  9945. ;;
  9946. esac
  9947. ;;
  9948. beos*)
  9949. library_names_spec='$libname$shared_ext'
  9950. dynamic_linker="$host_os ld.so"
  9951. shlibpath_var=LIBRARY_PATH
  9952. ;;
  9953. bsdi[45]*)
  9954. version_type=linux # correct to gnu/linux during the next big refactor
  9955. need_version=no
  9956. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9957. soname_spec='$libname$release$shared_ext$major'
  9958. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9959. shlibpath_var=LD_LIBRARY_PATH
  9960. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9961. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9962. # the default ld.so.conf also contains /usr/contrib/lib and
  9963. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9964. # libtool to hard-code these into programs
  9965. ;;
  9966. cygwin* | mingw* | pw32* | cegcc*)
  9967. version_type=windows
  9968. shrext_cmds=.dll
  9969. need_version=no
  9970. need_lib_prefix=no
  9971. case $GCC,$cc_basename in
  9972. yes,*)
  9973. # gcc
  9974. library_names_spec='$libname.dll.a'
  9975. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9976. postinstall_cmds='base_file=`basename \$file`~
  9977. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9978. dldir=$destdir/`dirname \$dlpath`~
  9979. test -d \$dldir || mkdir -p \$dldir~
  9980. $install_prog $dir/$dlname \$dldir/$dlname~
  9981. chmod a+x \$dldir/$dlname~
  9982. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9983. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9984. fi'
  9985. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9986. dlpath=$dir/\$dldll~
  9987. $RM \$dlpath'
  9988. shlibpath_overrides_runpath=yes
  9989. case $host_os in
  9990. cygwin*)
  9991. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9992. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9993. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9994. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9995. ;;
  9996. mingw* | cegcc*)
  9997. # MinGW DLLs use traditional 'lib' prefix
  9998. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9999. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10000. ;;
  10001. pw32*)
  10002. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10003. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10004. ;;
  10005. esac
  10006. dynamic_linker='Win32 ld.exe'
  10007. ;;
  10008. *,cl*)
  10009. # Native MSVC
  10010. libname_spec='$name'
  10011. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10012. library_names_spec='$libname.dll.lib'
  10013. case $build_os in
  10014. mingw*)
  10015. sys_lib_search_path_spec=
  10016. lt_save_ifs=$IFS
  10017. IFS=';'
  10018. for lt_path in $LIB
  10019. do
  10020. IFS=$lt_save_ifs
  10021. # Let DOS variable expansion print the short 8.3 style file name.
  10022. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10023. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10024. done
  10025. IFS=$lt_save_ifs
  10026. # Convert to MSYS style.
  10027. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10028. ;;
  10029. cygwin*)
  10030. # Convert to unix form, then to dos form, then back to unix form
  10031. # but this time dos style (no spaces!) so that the unix form looks
  10032. # like /cygdrive/c/PROGRA~1:/cygdr...
  10033. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10034. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10035. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10036. ;;
  10037. *)
  10038. sys_lib_search_path_spec=$LIB
  10039. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10040. # It is most probably a Windows format PATH.
  10041. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10042. else
  10043. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10044. fi
  10045. # FIXME: find the short name or the path components, as spaces are
  10046. # common. (e.g. "Program Files" -> "PROGRA~1")
  10047. ;;
  10048. esac
  10049. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10050. postinstall_cmds='base_file=`basename \$file`~
  10051. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10052. dldir=$destdir/`dirname \$dlpath`~
  10053. test -d \$dldir || mkdir -p \$dldir~
  10054. $install_prog $dir/$dlname \$dldir/$dlname'
  10055. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10056. dlpath=$dir/\$dldll~
  10057. $RM \$dlpath'
  10058. shlibpath_overrides_runpath=yes
  10059. dynamic_linker='Win32 link.exe'
  10060. ;;
  10061. *)
  10062. # Assume MSVC wrapper
  10063. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10064. dynamic_linker='Win32 ld.exe'
  10065. ;;
  10066. esac
  10067. # FIXME: first we should search . and the directory the executable is in
  10068. shlibpath_var=PATH
  10069. ;;
  10070. darwin* | rhapsody*)
  10071. dynamic_linker="$host_os dyld"
  10072. version_type=darwin
  10073. need_lib_prefix=no
  10074. need_version=no
  10075. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10076. soname_spec='$libname$release$major$shared_ext'
  10077. shlibpath_overrides_runpath=yes
  10078. shlibpath_var=DYLD_LIBRARY_PATH
  10079. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10080. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10081. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10082. ;;
  10083. dgux*)
  10084. version_type=linux # correct to gnu/linux during the next big refactor
  10085. need_lib_prefix=no
  10086. need_version=no
  10087. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10088. soname_spec='$libname$release$shared_ext$major'
  10089. shlibpath_var=LD_LIBRARY_PATH
  10090. ;;
  10091. freebsd* | dragonfly* | midnightbsd*)
  10092. # DragonFly does not have aout. When/if they implement a new
  10093. # versioning mechanism, adjust this.
  10094. if test -x /usr/bin/objformat; then
  10095. objformat=`/usr/bin/objformat`
  10096. else
  10097. case $host_os in
  10098. freebsd[23].*) objformat=aout ;;
  10099. *) objformat=elf ;;
  10100. esac
  10101. fi
  10102. version_type=freebsd-$objformat
  10103. case $version_type in
  10104. freebsd-elf*)
  10105. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10106. soname_spec='$libname$release$shared_ext$major'
  10107. need_version=no
  10108. need_lib_prefix=no
  10109. ;;
  10110. freebsd-*)
  10111. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10112. need_version=yes
  10113. ;;
  10114. esac
  10115. shlibpath_var=LD_LIBRARY_PATH
  10116. case $host_os in
  10117. freebsd2.*)
  10118. shlibpath_overrides_runpath=yes
  10119. ;;
  10120. freebsd3.[01]* | freebsdelf3.[01]*)
  10121. shlibpath_overrides_runpath=yes
  10122. hardcode_into_libs=yes
  10123. ;;
  10124. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10125. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10126. shlibpath_overrides_runpath=no
  10127. hardcode_into_libs=yes
  10128. ;;
  10129. *) # from 4.6 on, and DragonFly
  10130. shlibpath_overrides_runpath=yes
  10131. hardcode_into_libs=yes
  10132. ;;
  10133. esac
  10134. ;;
  10135. haiku*)
  10136. version_type=linux # correct to gnu/linux during the next big refactor
  10137. need_lib_prefix=no
  10138. need_version=no
  10139. dynamic_linker="$host_os runtime_loader"
  10140. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10141. soname_spec='$libname$release$shared_ext$major'
  10142. shlibpath_var=LIBRARY_PATH
  10143. shlibpath_overrides_runpath=no
  10144. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10145. hardcode_into_libs=yes
  10146. ;;
  10147. hpux9* | hpux10* | hpux11*)
  10148. # Give a soname corresponding to the major version so that dld.sl refuses to
  10149. # link against other versions.
  10150. version_type=sunos
  10151. need_lib_prefix=no
  10152. need_version=no
  10153. case $host_cpu in
  10154. ia64*)
  10155. shrext_cmds='.so'
  10156. hardcode_into_libs=yes
  10157. dynamic_linker="$host_os dld.so"
  10158. shlibpath_var=LD_LIBRARY_PATH
  10159. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10160. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10161. soname_spec='$libname$release$shared_ext$major'
  10162. if test 32 = "$HPUX_IA64_MODE"; then
  10163. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10164. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10165. else
  10166. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10167. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10168. fi
  10169. ;;
  10170. hppa*64*)
  10171. shrext_cmds='.sl'
  10172. hardcode_into_libs=yes
  10173. dynamic_linker="$host_os dld.sl"
  10174. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10175. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10176. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10177. soname_spec='$libname$release$shared_ext$major'
  10178. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10179. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10180. ;;
  10181. *)
  10182. shrext_cmds='.sl'
  10183. dynamic_linker="$host_os dld.sl"
  10184. shlibpath_var=SHLIB_PATH
  10185. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10186. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10187. soname_spec='$libname$release$shared_ext$major'
  10188. ;;
  10189. esac
  10190. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10191. postinstall_cmds='chmod 555 $lib'
  10192. # or fails outright, so override atomically:
  10193. install_override_mode=555
  10194. ;;
  10195. interix[3-9]*)
  10196. version_type=linux # correct to gnu/linux during the next big refactor
  10197. need_lib_prefix=no
  10198. need_version=no
  10199. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10200. soname_spec='$libname$release$shared_ext$major'
  10201. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10202. shlibpath_var=LD_LIBRARY_PATH
  10203. shlibpath_overrides_runpath=no
  10204. hardcode_into_libs=yes
  10205. ;;
  10206. irix5* | irix6* | nonstopux*)
  10207. case $host_os in
  10208. nonstopux*) version_type=nonstopux ;;
  10209. *)
  10210. if test yes = "$lt_cv_prog_gnu_ld"; then
  10211. version_type=linux # correct to gnu/linux during the next big refactor
  10212. else
  10213. version_type=irix
  10214. fi ;;
  10215. esac
  10216. need_lib_prefix=no
  10217. need_version=no
  10218. soname_spec='$libname$release$shared_ext$major'
  10219. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10220. case $host_os in
  10221. irix5* | nonstopux*)
  10222. libsuff= shlibsuff=
  10223. ;;
  10224. *)
  10225. case $LD in # libtool.m4 will add one of these switches to LD
  10226. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10227. libsuff= shlibsuff= libmagic=32-bit;;
  10228. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10229. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10230. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10231. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10232. *) libsuff= shlibsuff= libmagic=never-match;;
  10233. esac
  10234. ;;
  10235. esac
  10236. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10237. shlibpath_overrides_runpath=no
  10238. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10239. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10240. hardcode_into_libs=yes
  10241. ;;
  10242. # No shared lib support for Linux oldld, aout, or coff.
  10243. linux*oldld* | linux*aout* | linux*coff*)
  10244. dynamic_linker=no
  10245. ;;
  10246. linux*android*)
  10247. version_type=none # Android doesn't support versioned libraries.
  10248. need_lib_prefix=no
  10249. need_version=no
  10250. library_names_spec='$libname$release$shared_ext'
  10251. soname_spec='$libname$release$shared_ext'
  10252. finish_cmds=
  10253. shlibpath_var=LD_LIBRARY_PATH
  10254. shlibpath_overrides_runpath=yes
  10255. # This implies no fast_install, which is unacceptable.
  10256. # Some rework will be needed to allow for fast_install
  10257. # before this can be enabled.
  10258. hardcode_into_libs=yes
  10259. dynamic_linker='Android linker'
  10260. # Don't embed -rpath directories since the linker doesn't support them.
  10261. hardcode_libdir_flag_spec='-L$libdir'
  10262. ;;
  10263. # This must be glibc/ELF.
  10264. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10265. version_type=linux # correct to gnu/linux during the next big refactor
  10266. need_lib_prefix=no
  10267. need_version=no
  10268. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10269. soname_spec='$libname$release$shared_ext$major'
  10270. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10271. shlibpath_var=LD_LIBRARY_PATH
  10272. shlibpath_overrides_runpath=no
  10273. # Some binutils ld are patched to set DT_RUNPATH
  10274. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10275. then :
  10276. printf %s "(cached) " >&6
  10277. else $as_nop
  10278. lt_cv_shlibpath_overrides_runpath=no
  10279. save_LDFLAGS=$LDFLAGS
  10280. save_libdir=$libdir
  10281. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10282. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10284. /* end confdefs.h. */
  10285. int
  10286. main (void)
  10287. {
  10288. ;
  10289. return 0;
  10290. }
  10291. _ACEOF
  10292. if ac_fn_c_try_link "$LINENO"
  10293. then :
  10294. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10295. then :
  10296. lt_cv_shlibpath_overrides_runpath=yes
  10297. fi
  10298. fi
  10299. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10300. conftest$ac_exeext conftest.$ac_ext
  10301. LDFLAGS=$save_LDFLAGS
  10302. libdir=$save_libdir
  10303. fi
  10304. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10305. # This implies no fast_install, which is unacceptable.
  10306. # Some rework will be needed to allow for fast_install
  10307. # before this can be enabled.
  10308. hardcode_into_libs=yes
  10309. # Add ABI-specific directories to the system library path.
  10310. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10311. # Ideally, we could use ldconfig to report *all* directores which are
  10312. # searched for libraries, however this is still not possible. Aside from not
  10313. # being certain /sbin/ldconfig is available, command
  10314. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10315. # even though it is searched at run-time. Try to do the best guess by
  10316. # appending ld.so.conf contents (and includes) to the search path.
  10317. if test -f /etc/ld.so.conf; then
  10318. 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' ' '`
  10319. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10320. fi
  10321. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10322. # powerpc, because MkLinux only supported shared libraries with the
  10323. # GNU dynamic linker. Since this was broken with cross compilers,
  10324. # most powerpc-linux boxes support dynamic linking these days and
  10325. # people can always --disable-shared, the test was removed, and we
  10326. # assume the GNU/Linux dynamic linker is in use.
  10327. dynamic_linker='GNU/Linux ld.so'
  10328. ;;
  10329. netbsd*)
  10330. version_type=sunos
  10331. need_lib_prefix=no
  10332. need_version=no
  10333. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10334. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10335. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10336. dynamic_linker='NetBSD (a.out) ld.so'
  10337. else
  10338. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10339. soname_spec='$libname$release$shared_ext$major'
  10340. dynamic_linker='NetBSD ld.elf_so'
  10341. fi
  10342. shlibpath_var=LD_LIBRARY_PATH
  10343. shlibpath_overrides_runpath=yes
  10344. hardcode_into_libs=yes
  10345. ;;
  10346. newsos6)
  10347. version_type=linux # correct to gnu/linux during the next big refactor
  10348. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10349. shlibpath_var=LD_LIBRARY_PATH
  10350. shlibpath_overrides_runpath=yes
  10351. ;;
  10352. *nto* | *qnx*)
  10353. version_type=qnx
  10354. need_lib_prefix=no
  10355. need_version=no
  10356. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10357. soname_spec='$libname$release$shared_ext$major'
  10358. shlibpath_var=LD_LIBRARY_PATH
  10359. shlibpath_overrides_runpath=no
  10360. hardcode_into_libs=yes
  10361. dynamic_linker='ldqnx.so'
  10362. ;;
  10363. openbsd* | bitrig*)
  10364. version_type=sunos
  10365. sys_lib_dlsearch_path_spec=/usr/lib
  10366. need_lib_prefix=no
  10367. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10368. need_version=no
  10369. else
  10370. need_version=yes
  10371. fi
  10372. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10373. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10374. shlibpath_var=LD_LIBRARY_PATH
  10375. shlibpath_overrides_runpath=yes
  10376. ;;
  10377. os2*)
  10378. libname_spec='$name'
  10379. shrext_cmds=.dll
  10380. need_lib_prefix=no
  10381. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10382. # SDL customization: removed versioning support.
  10383. # version_type=windows
  10384. # need_version=no
  10385. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10386. # v=$($ECHO $release$versuffix | tr -d .-);
  10387. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10388. # $ECHO $n$v`$shared_ext'
  10389. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10390. library_names_spec='${libname}_dll.$libext'
  10391. dynamic_linker='OS/2 ld.exe'
  10392. shlibpath_var=BEGINLIBPATH
  10393. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10394. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10395. postinstall_cmds='base_file=`basename \$file`~
  10396. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10397. dldir=$destdir/`dirname \$dlpath`~
  10398. test -d \$dldir || mkdir -p \$dldir~
  10399. $install_prog $dir/$dlname \$dldir/$dlname~
  10400. chmod a+x \$dldir/$dlname~
  10401. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10402. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10403. fi'
  10404. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10405. dlpath=$dir/\$dldll~
  10406. $RM \$dlpath'
  10407. ;;
  10408. osf3* | osf4* | osf5*)
  10409. version_type=osf
  10410. need_lib_prefix=no
  10411. need_version=no
  10412. soname_spec='$libname$release$shared_ext$major'
  10413. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10414. shlibpath_var=LD_LIBRARY_PATH
  10415. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10416. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10417. ;;
  10418. rdos*)
  10419. dynamic_linker=no
  10420. ;;
  10421. solaris*)
  10422. version_type=linux # correct to gnu/linux during the next big refactor
  10423. need_lib_prefix=no
  10424. need_version=no
  10425. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10426. soname_spec='$libname$release$shared_ext$major'
  10427. shlibpath_var=LD_LIBRARY_PATH
  10428. shlibpath_overrides_runpath=yes
  10429. hardcode_into_libs=yes
  10430. # ldd complains unless libraries are executable
  10431. postinstall_cmds='chmod +x $lib'
  10432. ;;
  10433. sunos4*)
  10434. version_type=sunos
  10435. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10436. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10437. shlibpath_var=LD_LIBRARY_PATH
  10438. shlibpath_overrides_runpath=yes
  10439. if test yes = "$with_gnu_ld"; then
  10440. need_lib_prefix=no
  10441. fi
  10442. need_version=yes
  10443. ;;
  10444. sysv4 | sysv4.3*)
  10445. version_type=linux # correct to gnu/linux during the next big refactor
  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. case $host_vendor in
  10450. sni)
  10451. shlibpath_overrides_runpath=no
  10452. need_lib_prefix=no
  10453. runpath_var=LD_RUN_PATH
  10454. ;;
  10455. siemens)
  10456. need_lib_prefix=no
  10457. ;;
  10458. motorola)
  10459. need_lib_prefix=no
  10460. need_version=no
  10461. shlibpath_overrides_runpath=no
  10462. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10463. ;;
  10464. esac
  10465. ;;
  10466. sysv4*MP*)
  10467. if test -d /usr/nec; then
  10468. version_type=linux # correct to gnu/linux during the next big refactor
  10469. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10470. soname_spec='$libname$shared_ext.$major'
  10471. shlibpath_var=LD_LIBRARY_PATH
  10472. fi
  10473. ;;
  10474. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10475. version_type=sco
  10476. need_lib_prefix=no
  10477. need_version=no
  10478. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10479. soname_spec='$libname$release$shared_ext$major'
  10480. shlibpath_var=LD_LIBRARY_PATH
  10481. shlibpath_overrides_runpath=yes
  10482. hardcode_into_libs=yes
  10483. if test yes = "$with_gnu_ld"; then
  10484. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10485. else
  10486. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10487. case $host_os in
  10488. sco3.2v5*)
  10489. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10490. ;;
  10491. esac
  10492. fi
  10493. sys_lib_dlsearch_path_spec='/usr/lib'
  10494. ;;
  10495. tpf*)
  10496. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10497. version_type=linux # correct to gnu/linux during the next big refactor
  10498. need_lib_prefix=no
  10499. need_version=no
  10500. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10501. shlibpath_var=LD_LIBRARY_PATH
  10502. shlibpath_overrides_runpath=no
  10503. hardcode_into_libs=yes
  10504. ;;
  10505. uts4*)
  10506. version_type=linux # correct to gnu/linux during the next big refactor
  10507. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10508. soname_spec='$libname$release$shared_ext$major'
  10509. shlibpath_var=LD_LIBRARY_PATH
  10510. ;;
  10511. *)
  10512. dynamic_linker=no
  10513. ;;
  10514. esac
  10515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10516. printf "%s\n" "$dynamic_linker" >&6; }
  10517. test no = "$dynamic_linker" && can_build_shared=no
  10518. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10519. if test yes = "$GCC"; then
  10520. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10521. fi
  10522. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10523. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10524. fi
  10525. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10526. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10527. fi
  10528. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10529. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10530. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10531. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10532. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10533. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10535. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10536. hardcode_action=
  10537. if test -n "$hardcode_libdir_flag_spec" ||
  10538. test -n "$runpath_var" ||
  10539. test yes = "$hardcode_automatic"; then
  10540. # We can hardcode non-existent directories.
  10541. if test no != "$hardcode_direct" &&
  10542. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10543. # have to relink, otherwise we might link with an installed library
  10544. # when we should be linking with a yet-to-be-installed one
  10545. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10546. test no != "$hardcode_minus_L"; then
  10547. # Linking always hardcodes the temporary library directory.
  10548. hardcode_action=relink
  10549. else
  10550. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10551. hardcode_action=immediate
  10552. fi
  10553. else
  10554. # We cannot hardcode anything, or else we can only hardcode existing
  10555. # directories.
  10556. hardcode_action=unsupported
  10557. fi
  10558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10559. printf "%s\n" "$hardcode_action" >&6; }
  10560. if test relink = "$hardcode_action" ||
  10561. test yes = "$inherit_rpath"; then
  10562. # Fast installation is not supported
  10563. enable_fast_install=no
  10564. elif test yes = "$shlibpath_overrides_runpath" ||
  10565. test no = "$enable_shared"; then
  10566. # Fast installation is not necessary
  10567. enable_fast_install=needless
  10568. fi
  10569. if test yes != "$enable_dlopen"; then
  10570. enable_dlopen=unknown
  10571. enable_dlopen_self=unknown
  10572. enable_dlopen_self_static=unknown
  10573. else
  10574. lt_cv_dlopen=no
  10575. lt_cv_dlopen_libs=
  10576. case $host_os in
  10577. beos*)
  10578. lt_cv_dlopen=load_add_on
  10579. lt_cv_dlopen_libs=
  10580. lt_cv_dlopen_self=yes
  10581. ;;
  10582. mingw* | pw32* | cegcc*)
  10583. lt_cv_dlopen=LoadLibrary
  10584. lt_cv_dlopen_libs=
  10585. ;;
  10586. cygwin*)
  10587. lt_cv_dlopen=dlopen
  10588. lt_cv_dlopen_libs=
  10589. ;;
  10590. darwin*)
  10591. # if libdl is installed we need to link against it
  10592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10593. printf %s "checking for dlopen in -ldl... " >&6; }
  10594. if test ${ac_cv_lib_dl_dlopen+y}
  10595. then :
  10596. printf %s "(cached) " >&6
  10597. else $as_nop
  10598. ac_check_lib_save_LIBS=$LIBS
  10599. LIBS="-ldl $LIBS"
  10600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10601. /* end confdefs.h. */
  10602. /* Override any GCC internal prototype to avoid an error.
  10603. Use char because int might match the return type of a GCC
  10604. builtin and then its argument prototype would still apply. */
  10605. char dlopen ();
  10606. int
  10607. main (void)
  10608. {
  10609. return dlopen ();
  10610. ;
  10611. return 0;
  10612. }
  10613. _ACEOF
  10614. if ac_fn_c_try_link "$LINENO"
  10615. then :
  10616. ac_cv_lib_dl_dlopen=yes
  10617. else $as_nop
  10618. ac_cv_lib_dl_dlopen=no
  10619. fi
  10620. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10621. conftest$ac_exeext conftest.$ac_ext
  10622. LIBS=$ac_check_lib_save_LIBS
  10623. fi
  10624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10625. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10626. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10627. then :
  10628. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10629. else $as_nop
  10630. lt_cv_dlopen=dyld
  10631. lt_cv_dlopen_libs=
  10632. lt_cv_dlopen_self=yes
  10633. fi
  10634. ;;
  10635. tpf*)
  10636. # Don't try to run any link tests for TPF. We know it's impossible
  10637. # because TPF is a cross-compiler, and we know how we open DSOs.
  10638. lt_cv_dlopen=dlopen
  10639. lt_cv_dlopen_libs=
  10640. lt_cv_dlopen_self=no
  10641. ;;
  10642. *)
  10643. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10644. if test "x$ac_cv_func_shl_load" = xyes
  10645. then :
  10646. lt_cv_dlopen=shl_load
  10647. else $as_nop
  10648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10649. printf %s "checking for shl_load in -ldld... " >&6; }
  10650. if test ${ac_cv_lib_dld_shl_load+y}
  10651. then :
  10652. printf %s "(cached) " >&6
  10653. else $as_nop
  10654. ac_check_lib_save_LIBS=$LIBS
  10655. LIBS="-ldld $LIBS"
  10656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10657. /* end confdefs.h. */
  10658. /* Override any GCC internal prototype to avoid an error.
  10659. Use char because int might match the return type of a GCC
  10660. builtin and then its argument prototype would still apply. */
  10661. char shl_load ();
  10662. int
  10663. main (void)
  10664. {
  10665. return shl_load ();
  10666. ;
  10667. return 0;
  10668. }
  10669. _ACEOF
  10670. if ac_fn_c_try_link "$LINENO"
  10671. then :
  10672. ac_cv_lib_dld_shl_load=yes
  10673. else $as_nop
  10674. ac_cv_lib_dld_shl_load=no
  10675. fi
  10676. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10677. conftest$ac_exeext conftest.$ac_ext
  10678. LIBS=$ac_check_lib_save_LIBS
  10679. fi
  10680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10681. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10682. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10683. then :
  10684. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10685. else $as_nop
  10686. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10687. if test "x$ac_cv_func_dlopen" = xyes
  10688. then :
  10689. lt_cv_dlopen=dlopen
  10690. else $as_nop
  10691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10692. printf %s "checking for dlopen in -ldl... " >&6; }
  10693. if test ${ac_cv_lib_dl_dlopen+y}
  10694. then :
  10695. printf %s "(cached) " >&6
  10696. else $as_nop
  10697. ac_check_lib_save_LIBS=$LIBS
  10698. LIBS="-ldl $LIBS"
  10699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10700. /* end confdefs.h. */
  10701. /* Override any GCC internal prototype to avoid an error.
  10702. Use char because int might match the return type of a GCC
  10703. builtin and then its argument prototype would still apply. */
  10704. char dlopen ();
  10705. int
  10706. main (void)
  10707. {
  10708. return dlopen ();
  10709. ;
  10710. return 0;
  10711. }
  10712. _ACEOF
  10713. if ac_fn_c_try_link "$LINENO"
  10714. then :
  10715. ac_cv_lib_dl_dlopen=yes
  10716. else $as_nop
  10717. ac_cv_lib_dl_dlopen=no
  10718. fi
  10719. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10720. conftest$ac_exeext conftest.$ac_ext
  10721. LIBS=$ac_check_lib_save_LIBS
  10722. fi
  10723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10724. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10725. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10726. then :
  10727. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10728. else $as_nop
  10729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10730. printf %s "checking for dlopen in -lsvld... " >&6; }
  10731. if test ${ac_cv_lib_svld_dlopen+y}
  10732. then :
  10733. printf %s "(cached) " >&6
  10734. else $as_nop
  10735. ac_check_lib_save_LIBS=$LIBS
  10736. LIBS="-lsvld $LIBS"
  10737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10738. /* end confdefs.h. */
  10739. /* Override any GCC internal prototype to avoid an error.
  10740. Use char because int might match the return type of a GCC
  10741. builtin and then its argument prototype would still apply. */
  10742. char dlopen ();
  10743. int
  10744. main (void)
  10745. {
  10746. return dlopen ();
  10747. ;
  10748. return 0;
  10749. }
  10750. _ACEOF
  10751. if ac_fn_c_try_link "$LINENO"
  10752. then :
  10753. ac_cv_lib_svld_dlopen=yes
  10754. else $as_nop
  10755. ac_cv_lib_svld_dlopen=no
  10756. fi
  10757. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10758. conftest$ac_exeext conftest.$ac_ext
  10759. LIBS=$ac_check_lib_save_LIBS
  10760. fi
  10761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10762. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10763. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10764. then :
  10765. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10766. else $as_nop
  10767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10768. printf %s "checking for dld_link in -ldld... " >&6; }
  10769. if test ${ac_cv_lib_dld_dld_link+y}
  10770. then :
  10771. printf %s "(cached) " >&6
  10772. else $as_nop
  10773. ac_check_lib_save_LIBS=$LIBS
  10774. LIBS="-ldld $LIBS"
  10775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10776. /* end confdefs.h. */
  10777. /* Override any GCC internal prototype to avoid an error.
  10778. Use char because int might match the return type of a GCC
  10779. builtin and then its argument prototype would still apply. */
  10780. char dld_link ();
  10781. int
  10782. main (void)
  10783. {
  10784. return dld_link ();
  10785. ;
  10786. return 0;
  10787. }
  10788. _ACEOF
  10789. if ac_fn_c_try_link "$LINENO"
  10790. then :
  10791. ac_cv_lib_dld_dld_link=yes
  10792. else $as_nop
  10793. ac_cv_lib_dld_dld_link=no
  10794. fi
  10795. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10796. conftest$ac_exeext conftest.$ac_ext
  10797. LIBS=$ac_check_lib_save_LIBS
  10798. fi
  10799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10800. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10801. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10802. then :
  10803. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10804. fi
  10805. fi
  10806. fi
  10807. fi
  10808. fi
  10809. fi
  10810. ;;
  10811. esac
  10812. if test no = "$lt_cv_dlopen"; then
  10813. enable_dlopen=no
  10814. else
  10815. enable_dlopen=yes
  10816. fi
  10817. case $lt_cv_dlopen in
  10818. dlopen)
  10819. save_CPPFLAGS=$CPPFLAGS
  10820. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10821. save_LDFLAGS=$LDFLAGS
  10822. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10823. save_LIBS=$LIBS
  10824. LIBS="$lt_cv_dlopen_libs $LIBS"
  10825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10826. printf %s "checking whether a program can dlopen itself... " >&6; }
  10827. if test ${lt_cv_dlopen_self+y}
  10828. then :
  10829. printf %s "(cached) " >&6
  10830. else $as_nop
  10831. if test yes = "$cross_compiling"; then :
  10832. lt_cv_dlopen_self=cross
  10833. else
  10834. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10835. lt_status=$lt_dlunknown
  10836. cat > conftest.$ac_ext <<_LT_EOF
  10837. #line $LINENO "configure"
  10838. #include "confdefs.h"
  10839. #if HAVE_DLFCN_H
  10840. #include <dlfcn.h>
  10841. #endif
  10842. #include <stdio.h>
  10843. #ifdef RTLD_GLOBAL
  10844. # define LT_DLGLOBAL RTLD_GLOBAL
  10845. #else
  10846. # ifdef DL_GLOBAL
  10847. # define LT_DLGLOBAL DL_GLOBAL
  10848. # else
  10849. # define LT_DLGLOBAL 0
  10850. # endif
  10851. #endif
  10852. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10853. find out it does not work in some platform. */
  10854. #ifndef LT_DLLAZY_OR_NOW
  10855. # ifdef RTLD_LAZY
  10856. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10857. # else
  10858. # ifdef DL_LAZY
  10859. # define LT_DLLAZY_OR_NOW DL_LAZY
  10860. # else
  10861. # ifdef RTLD_NOW
  10862. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10863. # else
  10864. # ifdef DL_NOW
  10865. # define LT_DLLAZY_OR_NOW DL_NOW
  10866. # else
  10867. # define LT_DLLAZY_OR_NOW 0
  10868. # endif
  10869. # endif
  10870. # endif
  10871. # endif
  10872. #endif
  10873. /* When -fvisibility=hidden is used, assume the code has been annotated
  10874. correspondingly for the symbols needed. */
  10875. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10876. int fnord () __attribute__((visibility("default")));
  10877. #endif
  10878. int fnord () { return 42; }
  10879. int main ()
  10880. {
  10881. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10882. int status = $lt_dlunknown;
  10883. if (self)
  10884. {
  10885. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10886. else
  10887. {
  10888. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10889. else puts (dlerror ());
  10890. }
  10891. /* dlclose (self); */
  10892. }
  10893. else
  10894. puts (dlerror ());
  10895. return status;
  10896. }
  10897. _LT_EOF
  10898. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10899. (eval $ac_link) 2>&5
  10900. ac_status=$?
  10901. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10902. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10903. (./conftest; exit; ) >&5 2>/dev/null
  10904. lt_status=$?
  10905. case x$lt_status in
  10906. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10907. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10908. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10909. esac
  10910. else :
  10911. # compilation failed
  10912. lt_cv_dlopen_self=no
  10913. fi
  10914. fi
  10915. rm -fr conftest*
  10916. fi
  10917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10918. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10919. if test yes = "$lt_cv_dlopen_self"; then
  10920. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10922. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10923. if test ${lt_cv_dlopen_self_static+y}
  10924. then :
  10925. printf %s "(cached) " >&6
  10926. else $as_nop
  10927. if test yes = "$cross_compiling"; then :
  10928. lt_cv_dlopen_self_static=cross
  10929. else
  10930. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10931. lt_status=$lt_dlunknown
  10932. cat > conftest.$ac_ext <<_LT_EOF
  10933. #line $LINENO "configure"
  10934. #include "confdefs.h"
  10935. #if HAVE_DLFCN_H
  10936. #include <dlfcn.h>
  10937. #endif
  10938. #include <stdio.h>
  10939. #ifdef RTLD_GLOBAL
  10940. # define LT_DLGLOBAL RTLD_GLOBAL
  10941. #else
  10942. # ifdef DL_GLOBAL
  10943. # define LT_DLGLOBAL DL_GLOBAL
  10944. # else
  10945. # define LT_DLGLOBAL 0
  10946. # endif
  10947. #endif
  10948. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10949. find out it does not work in some platform. */
  10950. #ifndef LT_DLLAZY_OR_NOW
  10951. # ifdef RTLD_LAZY
  10952. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10953. # else
  10954. # ifdef DL_LAZY
  10955. # define LT_DLLAZY_OR_NOW DL_LAZY
  10956. # else
  10957. # ifdef RTLD_NOW
  10958. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10959. # else
  10960. # ifdef DL_NOW
  10961. # define LT_DLLAZY_OR_NOW DL_NOW
  10962. # else
  10963. # define LT_DLLAZY_OR_NOW 0
  10964. # endif
  10965. # endif
  10966. # endif
  10967. # endif
  10968. #endif
  10969. /* When -fvisibility=hidden is used, assume the code has been annotated
  10970. correspondingly for the symbols needed. */
  10971. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10972. int fnord () __attribute__((visibility("default")));
  10973. #endif
  10974. int fnord () { return 42; }
  10975. int main ()
  10976. {
  10977. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10978. int status = $lt_dlunknown;
  10979. if (self)
  10980. {
  10981. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10982. else
  10983. {
  10984. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10985. else puts (dlerror ());
  10986. }
  10987. /* dlclose (self); */
  10988. }
  10989. else
  10990. puts (dlerror ());
  10991. return status;
  10992. }
  10993. _LT_EOF
  10994. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10995. (eval $ac_link) 2>&5
  10996. ac_status=$?
  10997. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10998. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10999. (./conftest; exit; ) >&5 2>/dev/null
  11000. lt_status=$?
  11001. case x$lt_status in
  11002. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11003. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11004. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11005. esac
  11006. else :
  11007. # compilation failed
  11008. lt_cv_dlopen_self_static=no
  11009. fi
  11010. fi
  11011. rm -fr conftest*
  11012. fi
  11013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11014. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11015. fi
  11016. CPPFLAGS=$save_CPPFLAGS
  11017. LDFLAGS=$save_LDFLAGS
  11018. LIBS=$save_LIBS
  11019. ;;
  11020. esac
  11021. case $lt_cv_dlopen_self in
  11022. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11023. *) enable_dlopen_self=unknown ;;
  11024. esac
  11025. case $lt_cv_dlopen_self_static in
  11026. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11027. *) enable_dlopen_self_static=unknown ;;
  11028. esac
  11029. fi
  11030. striplib=
  11031. old_striplib=
  11032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11033. printf %s "checking whether stripping libraries is possible... " >&6; }
  11034. if test -z "$STRIP"; then
  11035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11036. printf "%s\n" "no" >&6; }
  11037. else
  11038. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11039. old_striplib="$STRIP --strip-debug"
  11040. striplib="$STRIP --strip-unneeded"
  11041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11042. printf "%s\n" "yes" >&6; }
  11043. else
  11044. case $host_os in
  11045. darwin*)
  11046. # FIXME - insert some real tests, host_os isn't really good enough
  11047. striplib="$STRIP -x"
  11048. old_striplib="$STRIP -S"
  11049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11050. printf "%s\n" "yes" >&6; }
  11051. ;;
  11052. freebsd*)
  11053. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11054. old_striplib="$STRIP --strip-debug"
  11055. striplib="$STRIP --strip-unneeded"
  11056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11057. printf "%s\n" "yes" >&6; }
  11058. else
  11059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11060. printf "%s\n" "no" >&6; }
  11061. fi
  11062. ;;
  11063. *)
  11064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11065. printf "%s\n" "no" >&6; }
  11066. ;;
  11067. esac
  11068. fi
  11069. fi
  11070. # Report what library types will actually be built
  11071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11072. printf %s "checking if libtool supports shared libraries... " >&6; }
  11073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11074. printf "%s\n" "$can_build_shared" >&6; }
  11075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11076. printf %s "checking whether to build shared libraries... " >&6; }
  11077. test no = "$can_build_shared" && enable_shared=no
  11078. # On AIX, shared libraries and static libraries use the same namespace, and
  11079. # are all built from PIC.
  11080. case $host_os in
  11081. aix3*)
  11082. test yes = "$enable_shared" && enable_static=no
  11083. if test -n "$RANLIB"; then
  11084. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11085. postinstall_cmds='$RANLIB $lib'
  11086. fi
  11087. ;;
  11088. aix[4-9]*)
  11089. if test ia64 != "$host_cpu"; then
  11090. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11091. yes,aix,yes) ;; # shared object as lib.so file only
  11092. yes,svr4,*) ;; # shared object as lib.so archive member only
  11093. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11094. esac
  11095. fi
  11096. ;;
  11097. esac
  11098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11099. printf "%s\n" "$enable_shared" >&6; }
  11100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11101. printf %s "checking whether to build static libraries... " >&6; }
  11102. # Make sure either enable_shared or enable_static is yes.
  11103. test yes = "$enable_shared" || enable_static=yes
  11104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11105. printf "%s\n" "$enable_static" >&6; }
  11106. fi
  11107. ac_ext=c
  11108. ac_cpp='$CPP $CPPFLAGS'
  11109. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11110. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11111. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11112. CC=$lt_save_CC
  11113. ac_config_commands="$ac_config_commands libtool"
  11114. # Only expand once:
  11115. if test -n "$ac_tool_prefix"; then
  11116. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11117. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11119. printf %s "checking for $ac_word... " >&6; }
  11120. if test ${ac_cv_prog_RC+y}
  11121. then :
  11122. printf %s "(cached) " >&6
  11123. else $as_nop
  11124. if test -n "$RC"; then
  11125. ac_cv_prog_RC="$RC" # Let the user override the test.
  11126. else
  11127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11128. for as_dir in $PATH
  11129. do
  11130. IFS=$as_save_IFS
  11131. case $as_dir in #(((
  11132. '') as_dir=./ ;;
  11133. */) ;;
  11134. *) as_dir=$as_dir/ ;;
  11135. esac
  11136. for ac_exec_ext in '' $ac_executable_extensions; do
  11137. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11138. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11139. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11140. break 2
  11141. fi
  11142. done
  11143. done
  11144. IFS=$as_save_IFS
  11145. fi
  11146. fi
  11147. RC=$ac_cv_prog_RC
  11148. if test -n "$RC"; then
  11149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11150. printf "%s\n" "$RC" >&6; }
  11151. else
  11152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11153. printf "%s\n" "no" >&6; }
  11154. fi
  11155. fi
  11156. if test -z "$ac_cv_prog_RC"; then
  11157. ac_ct_RC=$RC
  11158. # Extract the first word of "windres", so it can be a program name with args.
  11159. set dummy windres; ac_word=$2
  11160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11161. printf %s "checking for $ac_word... " >&6; }
  11162. if test ${ac_cv_prog_ac_ct_RC+y}
  11163. then :
  11164. printf %s "(cached) " >&6
  11165. else $as_nop
  11166. if test -n "$ac_ct_RC"; then
  11167. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11168. else
  11169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11170. for as_dir in $PATH
  11171. do
  11172. IFS=$as_save_IFS
  11173. case $as_dir in #(((
  11174. '') as_dir=./ ;;
  11175. */) ;;
  11176. *) as_dir=$as_dir/ ;;
  11177. esac
  11178. for ac_exec_ext in '' $ac_executable_extensions; do
  11179. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11180. ac_cv_prog_ac_ct_RC="windres"
  11181. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11182. break 2
  11183. fi
  11184. done
  11185. done
  11186. IFS=$as_save_IFS
  11187. fi
  11188. fi
  11189. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11190. if test -n "$ac_ct_RC"; then
  11191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11192. printf "%s\n" "$ac_ct_RC" >&6; }
  11193. else
  11194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11195. printf "%s\n" "no" >&6; }
  11196. fi
  11197. if test "x$ac_ct_RC" = x; then
  11198. RC=""
  11199. else
  11200. case $cross_compiling:$ac_tool_warned in
  11201. yes:)
  11202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11203. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11204. ac_tool_warned=yes ;;
  11205. esac
  11206. RC=$ac_ct_RC
  11207. fi
  11208. else
  11209. RC="$ac_cv_prog_RC"
  11210. fi
  11211. # Source file extension for RC test sources.
  11212. ac_ext=rc
  11213. # Object file extension for compiled RC test sources.
  11214. objext=o
  11215. objext_RC=$objext
  11216. # Code to be used in simple compile tests
  11217. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11218. # Code to be used in simple link tests
  11219. lt_simple_link_test_code=$lt_simple_compile_test_code
  11220. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11221. # If no C compiler was specified, use CC.
  11222. LTCC=${LTCC-"$CC"}
  11223. # If no C compiler flags were specified, use CFLAGS.
  11224. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11225. # Allow CC to be a program name with arguments.
  11226. compiler=$CC
  11227. # save warnings/boilerplate of simple test code
  11228. ac_outfile=conftest.$ac_objext
  11229. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11230. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11231. _lt_compiler_boilerplate=`cat conftest.err`
  11232. $RM conftest*
  11233. ac_outfile=conftest.$ac_objext
  11234. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11235. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11236. _lt_linker_boilerplate=`cat conftest.err`
  11237. $RM -r conftest*
  11238. # Allow CC to be a program name with arguments.
  11239. lt_save_CC=$CC
  11240. lt_save_CFLAGS=$CFLAGS
  11241. lt_save_GCC=$GCC
  11242. GCC=
  11243. CC=${RC-"windres"}
  11244. CFLAGS=
  11245. compiler=$CC
  11246. compiler_RC=$CC
  11247. func_cc_basename $compiler
  11248. cc_basename=$func_cc_basename_result
  11249. lt_cv_prog_compiler_c_o_RC=yes
  11250. if test -n "$compiler"; then
  11251. :
  11252. fi
  11253. GCC=$lt_save_GCC
  11254. ac_ext=c
  11255. ac_cpp='$CPP $CPPFLAGS'
  11256. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11257. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11258. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11259. CC=$lt_save_CC
  11260. CFLAGS=$lt_save_CFLAGS
  11261. # For historical reasons, the library name redundantly includes the major
  11262. # version twice: libSDL2-2.0.so.0.
  11263. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11264. LT_RELEASE=2.0
  11265. # Increment this if there is an incompatible change - but if that happens,
  11266. # we should rename the library from SDL2 to SDL3, at which point this would
  11267. # reset to 0 anyway.
  11268. LT_MAJOR=0
  11269. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11270. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11271. LT_REVISION=$SDL_INTERFACE_AGE
  11272. for ac_prog in gawk mawk nawk awk
  11273. do
  11274. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11275. set dummy $ac_prog; ac_word=$2
  11276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11277. printf %s "checking for $ac_word... " >&6; }
  11278. if test ${ac_cv_prog_AWK+y}
  11279. then :
  11280. printf %s "(cached) " >&6
  11281. else $as_nop
  11282. if test -n "$AWK"; then
  11283. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11284. else
  11285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11286. for as_dir in $PATH
  11287. do
  11288. IFS=$as_save_IFS
  11289. case $as_dir in #(((
  11290. '') as_dir=./ ;;
  11291. */) ;;
  11292. *) as_dir=$as_dir/ ;;
  11293. esac
  11294. for ac_exec_ext in '' $ac_executable_extensions; do
  11295. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11296. ac_cv_prog_AWK="$ac_prog"
  11297. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11298. break 2
  11299. fi
  11300. done
  11301. done
  11302. IFS=$as_save_IFS
  11303. fi
  11304. fi
  11305. AWK=$ac_cv_prog_AWK
  11306. if test -n "$AWK"; then
  11307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11308. printf "%s\n" "$AWK" >&6; }
  11309. else
  11310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11311. printf "%s\n" "no" >&6; }
  11312. fi
  11313. test -n "$AWK" && break
  11314. done
  11315. ac_ext=c
  11316. ac_cpp='$CPP $CPPFLAGS'
  11317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11320. if test -n "$ac_tool_prefix"; then
  11321. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11322. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11324. printf %s "checking for $ac_word... " >&6; }
  11325. if test ${ac_cv_prog_CC+y}
  11326. then :
  11327. printf %s "(cached) " >&6
  11328. else $as_nop
  11329. if test -n "$CC"; then
  11330. ac_cv_prog_CC="$CC" # Let the user override the test.
  11331. else
  11332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11333. for as_dir in $PATH
  11334. do
  11335. IFS=$as_save_IFS
  11336. case $as_dir in #(((
  11337. '') as_dir=./ ;;
  11338. */) ;;
  11339. *) as_dir=$as_dir/ ;;
  11340. esac
  11341. for ac_exec_ext in '' $ac_executable_extensions; do
  11342. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11343. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11344. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11345. break 2
  11346. fi
  11347. done
  11348. done
  11349. IFS=$as_save_IFS
  11350. fi
  11351. fi
  11352. CC=$ac_cv_prog_CC
  11353. if test -n "$CC"; then
  11354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11355. printf "%s\n" "$CC" >&6; }
  11356. else
  11357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11358. printf "%s\n" "no" >&6; }
  11359. fi
  11360. fi
  11361. if test -z "$ac_cv_prog_CC"; then
  11362. ac_ct_CC=$CC
  11363. # Extract the first word of "gcc", so it can be a program name with args.
  11364. set dummy gcc; ac_word=$2
  11365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11366. printf %s "checking for $ac_word... " >&6; }
  11367. if test ${ac_cv_prog_ac_ct_CC+y}
  11368. then :
  11369. printf %s "(cached) " >&6
  11370. else $as_nop
  11371. if test -n "$ac_ct_CC"; then
  11372. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11373. else
  11374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11375. for as_dir in $PATH
  11376. do
  11377. IFS=$as_save_IFS
  11378. case $as_dir in #(((
  11379. '') as_dir=./ ;;
  11380. */) ;;
  11381. *) as_dir=$as_dir/ ;;
  11382. esac
  11383. for ac_exec_ext in '' $ac_executable_extensions; do
  11384. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11385. ac_cv_prog_ac_ct_CC="gcc"
  11386. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11387. break 2
  11388. fi
  11389. done
  11390. done
  11391. IFS=$as_save_IFS
  11392. fi
  11393. fi
  11394. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11395. if test -n "$ac_ct_CC"; then
  11396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11397. printf "%s\n" "$ac_ct_CC" >&6; }
  11398. else
  11399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11400. printf "%s\n" "no" >&6; }
  11401. fi
  11402. if test "x$ac_ct_CC" = x; then
  11403. CC=""
  11404. else
  11405. case $cross_compiling:$ac_tool_warned in
  11406. yes:)
  11407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11408. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11409. ac_tool_warned=yes ;;
  11410. esac
  11411. CC=$ac_ct_CC
  11412. fi
  11413. else
  11414. CC="$ac_cv_prog_CC"
  11415. fi
  11416. if test -z "$CC"; then
  11417. if test -n "$ac_tool_prefix"; then
  11418. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11419. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11421. printf %s "checking for $ac_word... " >&6; }
  11422. if test ${ac_cv_prog_CC+y}
  11423. then :
  11424. printf %s "(cached) " >&6
  11425. else $as_nop
  11426. if test -n "$CC"; then
  11427. ac_cv_prog_CC="$CC" # Let the user override the test.
  11428. else
  11429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11430. for as_dir in $PATH
  11431. do
  11432. IFS=$as_save_IFS
  11433. case $as_dir in #(((
  11434. '') as_dir=./ ;;
  11435. */) ;;
  11436. *) as_dir=$as_dir/ ;;
  11437. esac
  11438. for ac_exec_ext in '' $ac_executable_extensions; do
  11439. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11440. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11441. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11442. break 2
  11443. fi
  11444. done
  11445. done
  11446. IFS=$as_save_IFS
  11447. fi
  11448. fi
  11449. CC=$ac_cv_prog_CC
  11450. if test -n "$CC"; then
  11451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11452. printf "%s\n" "$CC" >&6; }
  11453. else
  11454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11455. printf "%s\n" "no" >&6; }
  11456. fi
  11457. fi
  11458. fi
  11459. if test -z "$CC"; then
  11460. # Extract the first word of "cc", so it can be a program name with args.
  11461. set dummy cc; ac_word=$2
  11462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11463. printf %s "checking for $ac_word... " >&6; }
  11464. if test ${ac_cv_prog_CC+y}
  11465. then :
  11466. printf %s "(cached) " >&6
  11467. else $as_nop
  11468. if test -n "$CC"; then
  11469. ac_cv_prog_CC="$CC" # Let the user override the test.
  11470. else
  11471. ac_prog_rejected=no
  11472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11473. for as_dir in $PATH
  11474. do
  11475. IFS=$as_save_IFS
  11476. case $as_dir in #(((
  11477. '') as_dir=./ ;;
  11478. */) ;;
  11479. *) as_dir=$as_dir/ ;;
  11480. esac
  11481. for ac_exec_ext in '' $ac_executable_extensions; do
  11482. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11483. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11484. ac_prog_rejected=yes
  11485. continue
  11486. fi
  11487. ac_cv_prog_CC="cc"
  11488. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11489. break 2
  11490. fi
  11491. done
  11492. done
  11493. IFS=$as_save_IFS
  11494. if test $ac_prog_rejected = yes; then
  11495. # We found a bogon in the path, so make sure we never use it.
  11496. set dummy $ac_cv_prog_CC
  11497. shift
  11498. if test $# != 0; then
  11499. # We chose a different compiler from the bogus one.
  11500. # However, it has the same basename, so the bogon will be chosen
  11501. # first if we set CC to just the basename; use the full file name.
  11502. shift
  11503. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11504. fi
  11505. fi
  11506. fi
  11507. fi
  11508. CC=$ac_cv_prog_CC
  11509. if test -n "$CC"; then
  11510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11511. printf "%s\n" "$CC" >&6; }
  11512. else
  11513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11514. printf "%s\n" "no" >&6; }
  11515. fi
  11516. fi
  11517. if test -z "$CC"; then
  11518. if test -n "$ac_tool_prefix"; then
  11519. for ac_prog in cl.exe
  11520. do
  11521. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11522. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11524. printf %s "checking for $ac_word... " >&6; }
  11525. if test ${ac_cv_prog_CC+y}
  11526. then :
  11527. printf %s "(cached) " >&6
  11528. else $as_nop
  11529. if test -n "$CC"; then
  11530. ac_cv_prog_CC="$CC" # Let the user override the test.
  11531. else
  11532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11533. for as_dir in $PATH
  11534. do
  11535. IFS=$as_save_IFS
  11536. case $as_dir in #(((
  11537. '') as_dir=./ ;;
  11538. */) ;;
  11539. *) as_dir=$as_dir/ ;;
  11540. esac
  11541. for ac_exec_ext in '' $ac_executable_extensions; do
  11542. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11543. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11544. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11545. break 2
  11546. fi
  11547. done
  11548. done
  11549. IFS=$as_save_IFS
  11550. fi
  11551. fi
  11552. CC=$ac_cv_prog_CC
  11553. if test -n "$CC"; then
  11554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11555. printf "%s\n" "$CC" >&6; }
  11556. else
  11557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11558. printf "%s\n" "no" >&6; }
  11559. fi
  11560. test -n "$CC" && break
  11561. done
  11562. fi
  11563. if test -z "$CC"; then
  11564. ac_ct_CC=$CC
  11565. for ac_prog in cl.exe
  11566. do
  11567. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11568. set dummy $ac_prog; ac_word=$2
  11569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11570. printf %s "checking for $ac_word... " >&6; }
  11571. if test ${ac_cv_prog_ac_ct_CC+y}
  11572. then :
  11573. printf %s "(cached) " >&6
  11574. else $as_nop
  11575. if test -n "$ac_ct_CC"; then
  11576. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11577. else
  11578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11579. for as_dir in $PATH
  11580. do
  11581. IFS=$as_save_IFS
  11582. case $as_dir in #(((
  11583. '') as_dir=./ ;;
  11584. */) ;;
  11585. *) as_dir=$as_dir/ ;;
  11586. esac
  11587. for ac_exec_ext in '' $ac_executable_extensions; do
  11588. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11589. ac_cv_prog_ac_ct_CC="$ac_prog"
  11590. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11591. break 2
  11592. fi
  11593. done
  11594. done
  11595. IFS=$as_save_IFS
  11596. fi
  11597. fi
  11598. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11599. if test -n "$ac_ct_CC"; then
  11600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11601. printf "%s\n" "$ac_ct_CC" >&6; }
  11602. else
  11603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11604. printf "%s\n" "no" >&6; }
  11605. fi
  11606. test -n "$ac_ct_CC" && break
  11607. done
  11608. if test "x$ac_ct_CC" = x; then
  11609. CC=""
  11610. else
  11611. case $cross_compiling:$ac_tool_warned in
  11612. yes:)
  11613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11614. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11615. ac_tool_warned=yes ;;
  11616. esac
  11617. CC=$ac_ct_CC
  11618. fi
  11619. fi
  11620. fi
  11621. if test -z "$CC"; then
  11622. if test -n "$ac_tool_prefix"; then
  11623. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11624. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11626. printf %s "checking for $ac_word... " >&6; }
  11627. if test ${ac_cv_prog_CC+y}
  11628. then :
  11629. printf %s "(cached) " >&6
  11630. else $as_nop
  11631. if test -n "$CC"; then
  11632. ac_cv_prog_CC="$CC" # Let the user override the test.
  11633. else
  11634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11635. for as_dir in $PATH
  11636. do
  11637. IFS=$as_save_IFS
  11638. case $as_dir in #(((
  11639. '') as_dir=./ ;;
  11640. */) ;;
  11641. *) as_dir=$as_dir/ ;;
  11642. esac
  11643. for ac_exec_ext in '' $ac_executable_extensions; do
  11644. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11645. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11646. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11647. break 2
  11648. fi
  11649. done
  11650. done
  11651. IFS=$as_save_IFS
  11652. fi
  11653. fi
  11654. CC=$ac_cv_prog_CC
  11655. if test -n "$CC"; then
  11656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11657. printf "%s\n" "$CC" >&6; }
  11658. else
  11659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11660. printf "%s\n" "no" >&6; }
  11661. fi
  11662. fi
  11663. if test -z "$ac_cv_prog_CC"; then
  11664. ac_ct_CC=$CC
  11665. # Extract the first word of "clang", so it can be a program name with args.
  11666. set dummy clang; ac_word=$2
  11667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11668. printf %s "checking for $ac_word... " >&6; }
  11669. if test ${ac_cv_prog_ac_ct_CC+y}
  11670. then :
  11671. printf %s "(cached) " >&6
  11672. else $as_nop
  11673. if test -n "$ac_ct_CC"; then
  11674. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11675. else
  11676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11677. for as_dir in $PATH
  11678. do
  11679. IFS=$as_save_IFS
  11680. case $as_dir in #(((
  11681. '') as_dir=./ ;;
  11682. */) ;;
  11683. *) as_dir=$as_dir/ ;;
  11684. esac
  11685. for ac_exec_ext in '' $ac_executable_extensions; do
  11686. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11687. ac_cv_prog_ac_ct_CC="clang"
  11688. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11689. break 2
  11690. fi
  11691. done
  11692. done
  11693. IFS=$as_save_IFS
  11694. fi
  11695. fi
  11696. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11697. if test -n "$ac_ct_CC"; then
  11698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11699. printf "%s\n" "$ac_ct_CC" >&6; }
  11700. else
  11701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11702. printf "%s\n" "no" >&6; }
  11703. fi
  11704. if test "x$ac_ct_CC" = x; then
  11705. CC=""
  11706. else
  11707. case $cross_compiling:$ac_tool_warned in
  11708. yes:)
  11709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11710. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11711. ac_tool_warned=yes ;;
  11712. esac
  11713. CC=$ac_ct_CC
  11714. fi
  11715. else
  11716. CC="$ac_cv_prog_CC"
  11717. fi
  11718. fi
  11719. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11720. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11721. as_fn_error $? "no acceptable C compiler found in \$PATH
  11722. See \`config.log' for more details" "$LINENO" 5; }
  11723. # Provide some information about the compiler.
  11724. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11725. set X $ac_compile
  11726. ac_compiler=$2
  11727. for ac_option in --version -v -V -qversion -version; do
  11728. { { ac_try="$ac_compiler $ac_option >&5"
  11729. case "(($ac_try" in
  11730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11731. *) ac_try_echo=$ac_try;;
  11732. esac
  11733. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11734. printf "%s\n" "$ac_try_echo"; } >&5
  11735. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11736. ac_status=$?
  11737. if test -s conftest.err; then
  11738. sed '10a\
  11739. ... rest of stderr output deleted ...
  11740. 10q' conftest.err >conftest.er1
  11741. cat conftest.er1 >&5
  11742. fi
  11743. rm -f conftest.er1 conftest.err
  11744. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11745. test $ac_status = 0; }
  11746. done
  11747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11748. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11749. if test ${ac_cv_c_compiler_gnu+y}
  11750. then :
  11751. printf %s "(cached) " >&6
  11752. else $as_nop
  11753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11754. /* end confdefs.h. */
  11755. int
  11756. main (void)
  11757. {
  11758. #ifndef __GNUC__
  11759. choke me
  11760. #endif
  11761. ;
  11762. return 0;
  11763. }
  11764. _ACEOF
  11765. if ac_fn_c_try_compile "$LINENO"
  11766. then :
  11767. ac_compiler_gnu=yes
  11768. else $as_nop
  11769. ac_compiler_gnu=no
  11770. fi
  11771. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11772. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11773. fi
  11774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11775. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11776. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11777. if test $ac_compiler_gnu = yes; then
  11778. GCC=yes
  11779. else
  11780. GCC=
  11781. fi
  11782. ac_test_CFLAGS=${CFLAGS+y}
  11783. ac_save_CFLAGS=$CFLAGS
  11784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11785. printf %s "checking whether $CC accepts -g... " >&6; }
  11786. if test ${ac_cv_prog_cc_g+y}
  11787. then :
  11788. printf %s "(cached) " >&6
  11789. else $as_nop
  11790. ac_save_c_werror_flag=$ac_c_werror_flag
  11791. ac_c_werror_flag=yes
  11792. ac_cv_prog_cc_g=no
  11793. CFLAGS="-g"
  11794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11795. /* end confdefs.h. */
  11796. int
  11797. main (void)
  11798. {
  11799. ;
  11800. return 0;
  11801. }
  11802. _ACEOF
  11803. if ac_fn_c_try_compile "$LINENO"
  11804. then :
  11805. ac_cv_prog_cc_g=yes
  11806. else $as_nop
  11807. CFLAGS=""
  11808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11809. /* end confdefs.h. */
  11810. int
  11811. main (void)
  11812. {
  11813. ;
  11814. return 0;
  11815. }
  11816. _ACEOF
  11817. if ac_fn_c_try_compile "$LINENO"
  11818. then :
  11819. else $as_nop
  11820. ac_c_werror_flag=$ac_save_c_werror_flag
  11821. CFLAGS="-g"
  11822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11823. /* end confdefs.h. */
  11824. int
  11825. main (void)
  11826. {
  11827. ;
  11828. return 0;
  11829. }
  11830. _ACEOF
  11831. if ac_fn_c_try_compile "$LINENO"
  11832. then :
  11833. ac_cv_prog_cc_g=yes
  11834. fi
  11835. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11836. fi
  11837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11838. fi
  11839. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11840. ac_c_werror_flag=$ac_save_c_werror_flag
  11841. fi
  11842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11843. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11844. if test $ac_test_CFLAGS; then
  11845. CFLAGS=$ac_save_CFLAGS
  11846. elif test $ac_cv_prog_cc_g = yes; then
  11847. if test "$GCC" = yes; then
  11848. CFLAGS="-g -O2"
  11849. else
  11850. CFLAGS="-g"
  11851. fi
  11852. else
  11853. if test "$GCC" = yes; then
  11854. CFLAGS="-O2"
  11855. else
  11856. CFLAGS=
  11857. fi
  11858. fi
  11859. ac_prog_cc_stdc=no
  11860. if test x$ac_prog_cc_stdc = xno
  11861. then :
  11862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11863. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11864. if test ${ac_cv_prog_cc_c11+y}
  11865. then :
  11866. printf %s "(cached) " >&6
  11867. else $as_nop
  11868. ac_cv_prog_cc_c11=no
  11869. ac_save_CC=$CC
  11870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11871. /* end confdefs.h. */
  11872. $ac_c_conftest_c11_program
  11873. _ACEOF
  11874. for ac_arg in '' -std=gnu11
  11875. do
  11876. CC="$ac_save_CC $ac_arg"
  11877. if ac_fn_c_try_compile "$LINENO"
  11878. then :
  11879. ac_cv_prog_cc_c11=$ac_arg
  11880. fi
  11881. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11882. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11883. done
  11884. rm -f conftest.$ac_ext
  11885. CC=$ac_save_CC
  11886. fi
  11887. if test "x$ac_cv_prog_cc_c11" = xno
  11888. then :
  11889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11890. printf "%s\n" "unsupported" >&6; }
  11891. else $as_nop
  11892. if test "x$ac_cv_prog_cc_c11" = x
  11893. then :
  11894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11895. printf "%s\n" "none needed" >&6; }
  11896. else $as_nop
  11897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11898. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11899. CC="$CC $ac_cv_prog_cc_c11"
  11900. fi
  11901. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11902. ac_prog_cc_stdc=c11
  11903. fi
  11904. fi
  11905. if test x$ac_prog_cc_stdc = xno
  11906. then :
  11907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11908. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11909. if test ${ac_cv_prog_cc_c99+y}
  11910. then :
  11911. printf %s "(cached) " >&6
  11912. else $as_nop
  11913. ac_cv_prog_cc_c99=no
  11914. ac_save_CC=$CC
  11915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11916. /* end confdefs.h. */
  11917. $ac_c_conftest_c99_program
  11918. _ACEOF
  11919. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11920. do
  11921. CC="$ac_save_CC $ac_arg"
  11922. if ac_fn_c_try_compile "$LINENO"
  11923. then :
  11924. ac_cv_prog_cc_c99=$ac_arg
  11925. fi
  11926. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11927. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11928. done
  11929. rm -f conftest.$ac_ext
  11930. CC=$ac_save_CC
  11931. fi
  11932. if test "x$ac_cv_prog_cc_c99" = xno
  11933. then :
  11934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11935. printf "%s\n" "unsupported" >&6; }
  11936. else $as_nop
  11937. if test "x$ac_cv_prog_cc_c99" = x
  11938. then :
  11939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11940. printf "%s\n" "none needed" >&6; }
  11941. else $as_nop
  11942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11943. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11944. CC="$CC $ac_cv_prog_cc_c99"
  11945. fi
  11946. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11947. ac_prog_cc_stdc=c99
  11948. fi
  11949. fi
  11950. if test x$ac_prog_cc_stdc = xno
  11951. then :
  11952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11953. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11954. if test ${ac_cv_prog_cc_c89+y}
  11955. then :
  11956. printf %s "(cached) " >&6
  11957. else $as_nop
  11958. ac_cv_prog_cc_c89=no
  11959. ac_save_CC=$CC
  11960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11961. /* end confdefs.h. */
  11962. $ac_c_conftest_c89_program
  11963. _ACEOF
  11964. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11965. do
  11966. CC="$ac_save_CC $ac_arg"
  11967. if ac_fn_c_try_compile "$LINENO"
  11968. then :
  11969. ac_cv_prog_cc_c89=$ac_arg
  11970. fi
  11971. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11972. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11973. done
  11974. rm -f conftest.$ac_ext
  11975. CC=$ac_save_CC
  11976. fi
  11977. if test "x$ac_cv_prog_cc_c89" = xno
  11978. then :
  11979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11980. printf "%s\n" "unsupported" >&6; }
  11981. else $as_nop
  11982. if test "x$ac_cv_prog_cc_c89" = x
  11983. then :
  11984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11985. printf "%s\n" "none needed" >&6; }
  11986. else $as_nop
  11987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11988. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11989. CC="$CC $ac_cv_prog_cc_c89"
  11990. fi
  11991. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11992. ac_prog_cc_stdc=c89
  11993. fi
  11994. fi
  11995. ac_ext=c
  11996. ac_cpp='$CPP $CPPFLAGS'
  11997. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11998. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11999. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12000. ac_ext=cpp
  12001. ac_cpp='$CXXCPP $CPPFLAGS'
  12002. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12003. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12004. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12005. if test -z "$CXX"; then
  12006. if test -n "$CCC"; then
  12007. CXX=$CCC
  12008. else
  12009. if test -n "$ac_tool_prefix"; then
  12010. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12011. do
  12012. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12013. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12015. printf %s "checking for $ac_word... " >&6; }
  12016. if test ${ac_cv_prog_CXX+y}
  12017. then :
  12018. printf %s "(cached) " >&6
  12019. else $as_nop
  12020. if test -n "$CXX"; then
  12021. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12022. else
  12023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12024. for as_dir in $PATH
  12025. do
  12026. IFS=$as_save_IFS
  12027. case $as_dir in #(((
  12028. '') as_dir=./ ;;
  12029. */) ;;
  12030. *) as_dir=$as_dir/ ;;
  12031. esac
  12032. for ac_exec_ext in '' $ac_executable_extensions; do
  12033. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12034. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12035. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12036. break 2
  12037. fi
  12038. done
  12039. done
  12040. IFS=$as_save_IFS
  12041. fi
  12042. fi
  12043. CXX=$ac_cv_prog_CXX
  12044. if test -n "$CXX"; then
  12045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12046. printf "%s\n" "$CXX" >&6; }
  12047. else
  12048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12049. printf "%s\n" "no" >&6; }
  12050. fi
  12051. test -n "$CXX" && break
  12052. done
  12053. fi
  12054. if test -z "$CXX"; then
  12055. ac_ct_CXX=$CXX
  12056. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12057. do
  12058. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12059. set dummy $ac_prog; ac_word=$2
  12060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12061. printf %s "checking for $ac_word... " >&6; }
  12062. if test ${ac_cv_prog_ac_ct_CXX+y}
  12063. then :
  12064. printf %s "(cached) " >&6
  12065. else $as_nop
  12066. if test -n "$ac_ct_CXX"; then
  12067. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12068. else
  12069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12070. for as_dir in $PATH
  12071. do
  12072. IFS=$as_save_IFS
  12073. case $as_dir in #(((
  12074. '') as_dir=./ ;;
  12075. */) ;;
  12076. *) as_dir=$as_dir/ ;;
  12077. esac
  12078. for ac_exec_ext in '' $ac_executable_extensions; do
  12079. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12080. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12081. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12082. break 2
  12083. fi
  12084. done
  12085. done
  12086. IFS=$as_save_IFS
  12087. fi
  12088. fi
  12089. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12090. if test -n "$ac_ct_CXX"; then
  12091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12092. printf "%s\n" "$ac_ct_CXX" >&6; }
  12093. else
  12094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12095. printf "%s\n" "no" >&6; }
  12096. fi
  12097. test -n "$ac_ct_CXX" && break
  12098. done
  12099. if test "x$ac_ct_CXX" = x; then
  12100. CXX="g++"
  12101. else
  12102. case $cross_compiling:$ac_tool_warned in
  12103. yes:)
  12104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12105. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12106. ac_tool_warned=yes ;;
  12107. esac
  12108. CXX=$ac_ct_CXX
  12109. fi
  12110. fi
  12111. fi
  12112. fi
  12113. # Provide some information about the compiler.
  12114. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12115. set X $ac_compile
  12116. ac_compiler=$2
  12117. for ac_option in --version -v -V -qversion; do
  12118. { { ac_try="$ac_compiler $ac_option >&5"
  12119. case "(($ac_try" in
  12120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12121. *) ac_try_echo=$ac_try;;
  12122. esac
  12123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12124. printf "%s\n" "$ac_try_echo"; } >&5
  12125. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12126. ac_status=$?
  12127. if test -s conftest.err; then
  12128. sed '10a\
  12129. ... rest of stderr output deleted ...
  12130. 10q' conftest.err >conftest.er1
  12131. cat conftest.er1 >&5
  12132. fi
  12133. rm -f conftest.er1 conftest.err
  12134. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12135. test $ac_status = 0; }
  12136. done
  12137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12138. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12139. if test ${ac_cv_cxx_compiler_gnu+y}
  12140. then :
  12141. printf %s "(cached) " >&6
  12142. else $as_nop
  12143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12144. /* end confdefs.h. */
  12145. int
  12146. main (void)
  12147. {
  12148. #ifndef __GNUC__
  12149. choke me
  12150. #endif
  12151. ;
  12152. return 0;
  12153. }
  12154. _ACEOF
  12155. if ac_fn_cxx_try_compile "$LINENO"
  12156. then :
  12157. ac_compiler_gnu=yes
  12158. else $as_nop
  12159. ac_compiler_gnu=no
  12160. fi
  12161. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12162. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12163. fi
  12164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12165. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12166. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12167. if test $ac_compiler_gnu = yes; then
  12168. GXX=yes
  12169. else
  12170. GXX=
  12171. fi
  12172. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12173. ac_save_CXXFLAGS=$CXXFLAGS
  12174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12175. printf %s "checking whether $CXX accepts -g... " >&6; }
  12176. if test ${ac_cv_prog_cxx_g+y}
  12177. then :
  12178. printf %s "(cached) " >&6
  12179. else $as_nop
  12180. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12181. ac_cxx_werror_flag=yes
  12182. ac_cv_prog_cxx_g=no
  12183. CXXFLAGS="-g"
  12184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12185. /* end confdefs.h. */
  12186. int
  12187. main (void)
  12188. {
  12189. ;
  12190. return 0;
  12191. }
  12192. _ACEOF
  12193. if ac_fn_cxx_try_compile "$LINENO"
  12194. then :
  12195. ac_cv_prog_cxx_g=yes
  12196. else $as_nop
  12197. CXXFLAGS=""
  12198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12199. /* end confdefs.h. */
  12200. int
  12201. main (void)
  12202. {
  12203. ;
  12204. return 0;
  12205. }
  12206. _ACEOF
  12207. if ac_fn_cxx_try_compile "$LINENO"
  12208. then :
  12209. else $as_nop
  12210. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12211. CXXFLAGS="-g"
  12212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12213. /* end confdefs.h. */
  12214. int
  12215. main (void)
  12216. {
  12217. ;
  12218. return 0;
  12219. }
  12220. _ACEOF
  12221. if ac_fn_cxx_try_compile "$LINENO"
  12222. then :
  12223. ac_cv_prog_cxx_g=yes
  12224. fi
  12225. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12226. fi
  12227. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12228. fi
  12229. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12230. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12231. fi
  12232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12233. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12234. if test $ac_test_CXXFLAGS; then
  12235. CXXFLAGS=$ac_save_CXXFLAGS
  12236. elif test $ac_cv_prog_cxx_g = yes; then
  12237. if test "$GXX" = yes; then
  12238. CXXFLAGS="-g -O2"
  12239. else
  12240. CXXFLAGS="-g"
  12241. fi
  12242. else
  12243. if test "$GXX" = yes; then
  12244. CXXFLAGS="-O2"
  12245. else
  12246. CXXFLAGS=
  12247. fi
  12248. fi
  12249. ac_prog_cxx_stdcxx=no
  12250. if test x$ac_prog_cxx_stdcxx = xno
  12251. then :
  12252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12253. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12254. if test ${ac_cv_prog_cxx_11+y}
  12255. then :
  12256. printf %s "(cached) " >&6
  12257. else $as_nop
  12258. ac_cv_prog_cxx_11=no
  12259. ac_save_CXX=$CXX
  12260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12261. /* end confdefs.h. */
  12262. $ac_cxx_conftest_cxx11_program
  12263. _ACEOF
  12264. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12265. do
  12266. CXX="$ac_save_CXX $ac_arg"
  12267. if ac_fn_cxx_try_compile "$LINENO"
  12268. then :
  12269. ac_cv_prog_cxx_cxx11=$ac_arg
  12270. fi
  12271. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12272. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12273. done
  12274. rm -f conftest.$ac_ext
  12275. CXX=$ac_save_CXX
  12276. fi
  12277. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12278. then :
  12279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12280. printf "%s\n" "unsupported" >&6; }
  12281. else $as_nop
  12282. if test "x$ac_cv_prog_cxx_cxx11" = x
  12283. then :
  12284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12285. printf "%s\n" "none needed" >&6; }
  12286. else $as_nop
  12287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12288. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12289. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12290. fi
  12291. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12292. ac_prog_cxx_stdcxx=cxx11
  12293. fi
  12294. fi
  12295. if test x$ac_prog_cxx_stdcxx = xno
  12296. then :
  12297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12298. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12299. if test ${ac_cv_prog_cxx_98+y}
  12300. then :
  12301. printf %s "(cached) " >&6
  12302. else $as_nop
  12303. ac_cv_prog_cxx_98=no
  12304. ac_save_CXX=$CXX
  12305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12306. /* end confdefs.h. */
  12307. $ac_cxx_conftest_cxx98_program
  12308. _ACEOF
  12309. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12310. do
  12311. CXX="$ac_save_CXX $ac_arg"
  12312. if ac_fn_cxx_try_compile "$LINENO"
  12313. then :
  12314. ac_cv_prog_cxx_cxx98=$ac_arg
  12315. fi
  12316. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12317. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12318. done
  12319. rm -f conftest.$ac_ext
  12320. CXX=$ac_save_CXX
  12321. fi
  12322. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12323. then :
  12324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12325. printf "%s\n" "unsupported" >&6; }
  12326. else $as_nop
  12327. if test "x$ac_cv_prog_cxx_cxx98" = x
  12328. then :
  12329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12330. printf "%s\n" "none needed" >&6; }
  12331. else $as_nop
  12332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12333. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12334. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12335. fi
  12336. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12337. ac_prog_cxx_stdcxx=cxx98
  12338. fi
  12339. fi
  12340. ac_ext=c
  12341. ac_cpp='$CPP $CPPFLAGS'
  12342. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12343. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12344. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12345. func_stripname_cnf ()
  12346. {
  12347. case $2 in
  12348. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12349. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12350. esac
  12351. } # func_stripname_cnf
  12352. if test -n "$CXX" && ( test no != "$CXX" &&
  12353. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12354. (test g++ != "$CXX"))); then
  12355. ac_ext=cpp
  12356. ac_cpp='$CXXCPP $CPPFLAGS'
  12357. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12358. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12359. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12361. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12362. if test -z "$CXXCPP"; then
  12363. if test ${ac_cv_prog_CXXCPP+y}
  12364. then :
  12365. printf %s "(cached) " >&6
  12366. else $as_nop
  12367. # Double quotes because $CXX needs to be expanded
  12368. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12369. do
  12370. ac_preproc_ok=false
  12371. for ac_cxx_preproc_warn_flag in '' yes
  12372. do
  12373. # Use a header file that comes with gcc, so configuring glibc
  12374. # with a fresh cross-compiler works.
  12375. # On the NeXT, cc -E runs the code through the compiler's parser,
  12376. # not just through cpp. "Syntax error" is here to catch this case.
  12377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12378. /* end confdefs.h. */
  12379. #include <limits.h>
  12380. Syntax error
  12381. _ACEOF
  12382. if ac_fn_cxx_try_cpp "$LINENO"
  12383. then :
  12384. else $as_nop
  12385. # Broken: fails on valid input.
  12386. continue
  12387. fi
  12388. rm -f conftest.err conftest.i conftest.$ac_ext
  12389. # OK, works on sane cases. Now check whether nonexistent headers
  12390. # can be detected and how.
  12391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12392. /* end confdefs.h. */
  12393. #include <ac_nonexistent.h>
  12394. _ACEOF
  12395. if ac_fn_cxx_try_cpp "$LINENO"
  12396. then :
  12397. # Broken: success on invalid input.
  12398. continue
  12399. else $as_nop
  12400. # Passes both tests.
  12401. ac_preproc_ok=:
  12402. break
  12403. fi
  12404. rm -f conftest.err conftest.i conftest.$ac_ext
  12405. done
  12406. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12407. rm -f conftest.i conftest.err conftest.$ac_ext
  12408. if $ac_preproc_ok
  12409. then :
  12410. break
  12411. fi
  12412. done
  12413. ac_cv_prog_CXXCPP=$CXXCPP
  12414. fi
  12415. CXXCPP=$ac_cv_prog_CXXCPP
  12416. else
  12417. ac_cv_prog_CXXCPP=$CXXCPP
  12418. fi
  12419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12420. printf "%s\n" "$CXXCPP" >&6; }
  12421. ac_preproc_ok=false
  12422. for ac_cxx_preproc_warn_flag in '' yes
  12423. do
  12424. # Use a header file that comes with gcc, so configuring glibc
  12425. # with a fresh cross-compiler works.
  12426. # On the NeXT, cc -E runs the code through the compiler's parser,
  12427. # not just through cpp. "Syntax error" is here to catch this case.
  12428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12429. /* end confdefs.h. */
  12430. #include <limits.h>
  12431. Syntax error
  12432. _ACEOF
  12433. if ac_fn_cxx_try_cpp "$LINENO"
  12434. then :
  12435. else $as_nop
  12436. # Broken: fails on valid input.
  12437. continue
  12438. fi
  12439. rm -f conftest.err conftest.i conftest.$ac_ext
  12440. # OK, works on sane cases. Now check whether nonexistent headers
  12441. # can be detected and how.
  12442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12443. /* end confdefs.h. */
  12444. #include <ac_nonexistent.h>
  12445. _ACEOF
  12446. if ac_fn_cxx_try_cpp "$LINENO"
  12447. then :
  12448. # Broken: success on invalid input.
  12449. continue
  12450. else $as_nop
  12451. # Passes both tests.
  12452. ac_preproc_ok=:
  12453. break
  12454. fi
  12455. rm -f conftest.err conftest.i conftest.$ac_ext
  12456. done
  12457. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12458. rm -f conftest.i conftest.err conftest.$ac_ext
  12459. if $ac_preproc_ok
  12460. then :
  12461. else $as_nop
  12462. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12463. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12464. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12465. See \`config.log' for more details" "$LINENO" 5; }
  12466. fi
  12467. ac_ext=c
  12468. ac_cpp='$CPP $CPPFLAGS'
  12469. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12470. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12471. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12472. else
  12473. _lt_caught_CXX_error=yes
  12474. fi
  12475. ac_ext=cpp
  12476. ac_cpp='$CXXCPP $CPPFLAGS'
  12477. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12478. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12479. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12480. archive_cmds_need_lc_CXX=no
  12481. allow_undefined_flag_CXX=
  12482. always_export_symbols_CXX=no
  12483. archive_expsym_cmds_CXX=
  12484. compiler_needs_object_CXX=no
  12485. export_dynamic_flag_spec_CXX=
  12486. hardcode_direct_CXX=no
  12487. hardcode_direct_absolute_CXX=no
  12488. hardcode_libdir_flag_spec_CXX=
  12489. hardcode_libdir_separator_CXX=
  12490. hardcode_minus_L_CXX=no
  12491. hardcode_shlibpath_var_CXX=unsupported
  12492. hardcode_automatic_CXX=no
  12493. inherit_rpath_CXX=no
  12494. module_cmds_CXX=
  12495. module_expsym_cmds_CXX=
  12496. link_all_deplibs_CXX=unknown
  12497. old_archive_cmds_CXX=$old_archive_cmds
  12498. reload_flag_CXX=$reload_flag
  12499. reload_cmds_CXX=$reload_cmds
  12500. no_undefined_flag_CXX=
  12501. whole_archive_flag_spec_CXX=
  12502. enable_shared_with_static_runtimes_CXX=no
  12503. # Source file extension for C++ test sources.
  12504. ac_ext=cpp
  12505. # Object file extension for compiled C++ test sources.
  12506. objext=o
  12507. objext_CXX=$objext
  12508. # No sense in running all these tests if we already determined that
  12509. # the CXX compiler isn't working. Some variables (like enable_shared)
  12510. # are currently assumed to apply to all compilers on this platform,
  12511. # and will be corrupted by setting them based on a non-working compiler.
  12512. if test yes != "$_lt_caught_CXX_error"; then
  12513. # Code to be used in simple compile tests
  12514. lt_simple_compile_test_code="int some_variable = 0;"
  12515. # Code to be used in simple link tests
  12516. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12517. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12518. # If no C compiler was specified, use CC.
  12519. LTCC=${LTCC-"$CC"}
  12520. # If no C compiler flags were specified, use CFLAGS.
  12521. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12522. # Allow CC to be a program name with arguments.
  12523. compiler=$CC
  12524. # save warnings/boilerplate of simple test code
  12525. ac_outfile=conftest.$ac_objext
  12526. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12527. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12528. _lt_compiler_boilerplate=`cat conftest.err`
  12529. $RM conftest*
  12530. ac_outfile=conftest.$ac_objext
  12531. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12532. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12533. _lt_linker_boilerplate=`cat conftest.err`
  12534. $RM -r conftest*
  12535. # Allow CC to be a program name with arguments.
  12536. lt_save_CC=$CC
  12537. lt_save_CFLAGS=$CFLAGS
  12538. lt_save_LD=$LD
  12539. lt_save_GCC=$GCC
  12540. GCC=$GXX
  12541. lt_save_with_gnu_ld=$with_gnu_ld
  12542. lt_save_path_LD=$lt_cv_path_LD
  12543. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12544. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12545. else
  12546. $as_unset lt_cv_prog_gnu_ld
  12547. fi
  12548. if test -n "${lt_cv_path_LDCXX+set}"; then
  12549. lt_cv_path_LD=$lt_cv_path_LDCXX
  12550. else
  12551. $as_unset lt_cv_path_LD
  12552. fi
  12553. test -z "${LDCXX+set}" || LD=$LDCXX
  12554. CC=${CXX-"c++"}
  12555. CFLAGS=$CXXFLAGS
  12556. compiler=$CC
  12557. compiler_CXX=$CC
  12558. func_cc_basename $compiler
  12559. cc_basename=$func_cc_basename_result
  12560. if test -n "$compiler"; then
  12561. # We don't want -fno-exception when compiling C++ code, so set the
  12562. # no_builtin_flag separately
  12563. if test yes = "$GXX"; then
  12564. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12565. else
  12566. lt_prog_compiler_no_builtin_flag_CXX=
  12567. fi
  12568. if test yes = "$GXX"; then
  12569. # Set up default GNU C++ configuration
  12570. # Check whether --with-gnu-ld was given.
  12571. if test ${with_gnu_ld+y}
  12572. then :
  12573. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12574. else $as_nop
  12575. with_gnu_ld=no
  12576. fi
  12577. ac_prog=ld
  12578. if test yes = "$GCC"; then
  12579. # Check if gcc -print-prog-name=ld gives a path.
  12580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12581. printf %s "checking for ld used by $CC... " >&6; }
  12582. case $host in
  12583. *-*-mingw*)
  12584. # gcc leaves a trailing carriage return, which upsets mingw
  12585. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12586. *)
  12587. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12588. esac
  12589. case $ac_prog in
  12590. # Accept absolute paths.
  12591. [\\/]* | ?:[\\/]*)
  12592. re_direlt='/[^/][^/]*/\.\./'
  12593. # Canonicalize the pathname of ld
  12594. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12595. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12596. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12597. done
  12598. test -z "$LD" && LD=$ac_prog
  12599. ;;
  12600. "")
  12601. # If it fails, then pretend we aren't using GCC.
  12602. ac_prog=ld
  12603. ;;
  12604. *)
  12605. # If it is relative, then search for the first ld in PATH.
  12606. with_gnu_ld=unknown
  12607. ;;
  12608. esac
  12609. elif test yes = "$with_gnu_ld"; then
  12610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12611. printf %s "checking for GNU ld... " >&6; }
  12612. else
  12613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12614. printf %s "checking for non-GNU ld... " >&6; }
  12615. fi
  12616. if test ${lt_cv_path_LD+y}
  12617. then :
  12618. printf %s "(cached) " >&6
  12619. else $as_nop
  12620. if test -z "$LD"; then
  12621. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12622. for ac_dir in $PATH; do
  12623. IFS=$lt_save_ifs
  12624. test -z "$ac_dir" && ac_dir=.
  12625. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12626. lt_cv_path_LD=$ac_dir/$ac_prog
  12627. # Check to see if the program is GNU ld. I'd rather use --version,
  12628. # but apparently some variants of GNU ld only accept -v.
  12629. # Break only if it was the GNU/non-GNU ld that we prefer.
  12630. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12631. *GNU* | *'with BFD'*)
  12632. test no != "$with_gnu_ld" && break
  12633. ;;
  12634. *)
  12635. test yes != "$with_gnu_ld" && break
  12636. ;;
  12637. esac
  12638. fi
  12639. done
  12640. IFS=$lt_save_ifs
  12641. else
  12642. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12643. fi
  12644. fi
  12645. LD=$lt_cv_path_LD
  12646. if test -n "$LD"; then
  12647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12648. printf "%s\n" "$LD" >&6; }
  12649. else
  12650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12651. printf "%s\n" "no" >&6; }
  12652. fi
  12653. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12655. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12656. if test ${lt_cv_prog_gnu_ld+y}
  12657. then :
  12658. printf %s "(cached) " >&6
  12659. else $as_nop
  12660. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12661. case `$LD -v 2>&1 </dev/null` in
  12662. *GNU* | *'with BFD'*)
  12663. lt_cv_prog_gnu_ld=yes
  12664. ;;
  12665. *)
  12666. lt_cv_prog_gnu_ld=no
  12667. ;;
  12668. esac
  12669. fi
  12670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12671. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12672. with_gnu_ld=$lt_cv_prog_gnu_ld
  12673. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12674. # archiving commands below assume that GNU ld is being used.
  12675. if test yes = "$with_gnu_ld"; then
  12676. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12677. 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'
  12678. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12679. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12680. # If archive_cmds runs LD, not CC, wlarc should be empty
  12681. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12682. # investigate it a little bit more. (MM)
  12683. wlarc='$wl'
  12684. # ancient GNU ld didn't support --whole-archive et. al.
  12685. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12686. $GREP 'no-whole-archive' > /dev/null; then
  12687. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12688. else
  12689. whole_archive_flag_spec_CXX=
  12690. fi
  12691. else
  12692. with_gnu_ld=no
  12693. wlarc=
  12694. # A generic and very simple default shared library creation
  12695. # command for GNU C++ for the case where it uses the native
  12696. # linker, instead of GNU ld. If possible, this setting should
  12697. # overridden to take advantage of the native linker features on
  12698. # the platform it is being used on.
  12699. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12700. fi
  12701. # Commands to make compiler produce verbose output that lists
  12702. # what "hidden" libraries, object files and flags are used when
  12703. # linking a shared library.
  12704. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12705. else
  12706. GXX=no
  12707. with_gnu_ld=no
  12708. wlarc=
  12709. fi
  12710. # PORTME: fill in a description of your system's C++ link characteristics
  12711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12712. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12713. ld_shlibs_CXX=yes
  12714. case $host_os in
  12715. aix3*)
  12716. # FIXME: insert proper C++ library support
  12717. ld_shlibs_CXX=no
  12718. ;;
  12719. aix[4-9]*)
  12720. if test ia64 = "$host_cpu"; then
  12721. # On IA64, the linker does run time linking by default, so we don't
  12722. # have to do anything special.
  12723. aix_use_runtimelinking=no
  12724. exp_sym_flag='-Bexport'
  12725. no_entry_flag=
  12726. else
  12727. aix_use_runtimelinking=no
  12728. # Test if we are trying to use run time linking or normal
  12729. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12730. # have runtime linking enabled, and use it for executables.
  12731. # For shared libraries, we enable/disable runtime linking
  12732. # depending on the kind of the shared library created -
  12733. # when "with_aix_soname,aix_use_runtimelinking" is:
  12734. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12735. # "aix,yes" lib.so shared, rtl:yes, for executables
  12736. # lib.a static archive
  12737. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12738. # lib.a(lib.so.V) shared, rtl:no, for executables
  12739. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12740. # lib.a(lib.so.V) shared, rtl:no
  12741. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12742. # lib.a static archive
  12743. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12744. for ld_flag in $LDFLAGS; do
  12745. case $ld_flag in
  12746. *-brtl*)
  12747. aix_use_runtimelinking=yes
  12748. break
  12749. ;;
  12750. esac
  12751. done
  12752. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12753. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12754. # so we don't have lib.a shared libs to link our executables.
  12755. # We have to force runtime linking in this case.
  12756. aix_use_runtimelinking=yes
  12757. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12758. fi
  12759. ;;
  12760. esac
  12761. exp_sym_flag='-bexport'
  12762. no_entry_flag='-bnoentry'
  12763. fi
  12764. # When large executables or shared objects are built, AIX ld can
  12765. # have problems creating the table of contents. If linking a library
  12766. # or program results in "error TOC overflow" add -mminimal-toc to
  12767. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12768. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12769. archive_cmds_CXX=''
  12770. hardcode_direct_CXX=yes
  12771. hardcode_direct_absolute_CXX=yes
  12772. hardcode_libdir_separator_CXX=':'
  12773. link_all_deplibs_CXX=yes
  12774. file_list_spec_CXX='$wl-f,'
  12775. case $with_aix_soname,$aix_use_runtimelinking in
  12776. aix,*) ;; # no import file
  12777. svr4,* | *,yes) # use import file
  12778. # The Import File defines what to hardcode.
  12779. hardcode_direct_CXX=no
  12780. hardcode_direct_absolute_CXX=no
  12781. ;;
  12782. esac
  12783. if test yes = "$GXX"; then
  12784. case $host_os in aix4.[012]|aix4.[012].*)
  12785. # We only want to do this on AIX 4.2 and lower, the check
  12786. # below for broken collect2 doesn't work under 4.3+
  12787. collect2name=`$CC -print-prog-name=collect2`
  12788. if test -f "$collect2name" &&
  12789. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12790. then
  12791. # We have reworked collect2
  12792. :
  12793. else
  12794. # We have old collect2
  12795. hardcode_direct_CXX=unsupported
  12796. # It fails to find uninstalled libraries when the uninstalled
  12797. # path is not listed in the libpath. Setting hardcode_minus_L
  12798. # to unsupported forces relinking
  12799. hardcode_minus_L_CXX=yes
  12800. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12801. hardcode_libdir_separator_CXX=
  12802. fi
  12803. esac
  12804. shared_flag='-shared'
  12805. if test yes = "$aix_use_runtimelinking"; then
  12806. shared_flag=$shared_flag' $wl-G'
  12807. fi
  12808. # Need to ensure runtime linking is disabled for the traditional
  12809. # shared library, or the linker may eventually find shared libraries
  12810. # /with/ Import File - we do not want to mix them.
  12811. shared_flag_aix='-shared'
  12812. shared_flag_svr4='-shared $wl-G'
  12813. else
  12814. # not using gcc
  12815. if test ia64 = "$host_cpu"; then
  12816. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12817. # chokes on -Wl,-G. The following line is correct:
  12818. shared_flag='-G'
  12819. else
  12820. if test yes = "$aix_use_runtimelinking"; then
  12821. shared_flag='$wl-G'
  12822. else
  12823. shared_flag='$wl-bM:SRE'
  12824. fi
  12825. shared_flag_aix='$wl-bM:SRE'
  12826. shared_flag_svr4='$wl-G'
  12827. fi
  12828. fi
  12829. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12830. # It seems that -bexpall does not export symbols beginning with
  12831. # underscore (_), so it is better to generate a list of symbols to
  12832. # export.
  12833. always_export_symbols_CXX=yes
  12834. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12835. # Warning - without using the other runtime loading flags (-brtl),
  12836. # -berok will link without error, but may produce a broken library.
  12837. # The "-G" linker flag allows undefined symbols.
  12838. no_undefined_flag_CXX='-bernotok'
  12839. # Determine the default libpath from the value encoded in an empty
  12840. # executable.
  12841. if test set = "${lt_cv_aix_libpath+set}"; then
  12842. aix_libpath=$lt_cv_aix_libpath
  12843. else
  12844. if test ${lt_cv_aix_libpath__CXX+y}
  12845. then :
  12846. printf %s "(cached) " >&6
  12847. else $as_nop
  12848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12849. /* end confdefs.h. */
  12850. int
  12851. main (void)
  12852. {
  12853. ;
  12854. return 0;
  12855. }
  12856. _ACEOF
  12857. if ac_fn_cxx_try_link "$LINENO"
  12858. then :
  12859. lt_aix_libpath_sed='
  12860. /Import File Strings/,/^$/ {
  12861. /^0/ {
  12862. s/^0 *\([^ ]*\) *$/\1/
  12863. p
  12864. }
  12865. }'
  12866. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12867. # Check for a 64-bit object if we didn't find anything.
  12868. if test -z "$lt_cv_aix_libpath__CXX"; then
  12869. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12870. fi
  12871. fi
  12872. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12873. conftest$ac_exeext conftest.$ac_ext
  12874. if test -z "$lt_cv_aix_libpath__CXX"; then
  12875. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12876. fi
  12877. fi
  12878. aix_libpath=$lt_cv_aix_libpath__CXX
  12879. fi
  12880. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12881. 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
  12882. else
  12883. if test ia64 = "$host_cpu"; then
  12884. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12885. allow_undefined_flag_CXX="-z nodefs"
  12886. 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"
  12887. else
  12888. # Determine the default libpath from the value encoded in an
  12889. # empty executable.
  12890. if test set = "${lt_cv_aix_libpath+set}"; then
  12891. aix_libpath=$lt_cv_aix_libpath
  12892. else
  12893. if test ${lt_cv_aix_libpath__CXX+y}
  12894. then :
  12895. printf %s "(cached) " >&6
  12896. else $as_nop
  12897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12898. /* end confdefs.h. */
  12899. int
  12900. main (void)
  12901. {
  12902. ;
  12903. return 0;
  12904. }
  12905. _ACEOF
  12906. if ac_fn_cxx_try_link "$LINENO"
  12907. then :
  12908. lt_aix_libpath_sed='
  12909. /Import File Strings/,/^$/ {
  12910. /^0/ {
  12911. s/^0 *\([^ ]*\) *$/\1/
  12912. p
  12913. }
  12914. }'
  12915. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12916. # Check for a 64-bit object if we didn't find anything.
  12917. if test -z "$lt_cv_aix_libpath__CXX"; then
  12918. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12919. fi
  12920. fi
  12921. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12922. conftest$ac_exeext conftest.$ac_ext
  12923. if test -z "$lt_cv_aix_libpath__CXX"; then
  12924. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12925. fi
  12926. fi
  12927. aix_libpath=$lt_cv_aix_libpath__CXX
  12928. fi
  12929. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12930. # Warning - without using the other run time loading flags,
  12931. # -berok will link without error, but may produce a broken library.
  12932. no_undefined_flag_CXX=' $wl-bernotok'
  12933. allow_undefined_flag_CXX=' $wl-berok'
  12934. if test yes = "$with_gnu_ld"; then
  12935. # We only use this code for GNU lds that support --whole-archive.
  12936. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12937. else
  12938. # Exported symbols can be pulled into shared objects from archives
  12939. whole_archive_flag_spec_CXX='$convenience'
  12940. fi
  12941. archive_cmds_need_lc_CXX=yes
  12942. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12943. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12944. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12945. if test svr4 != "$with_aix_soname"; then
  12946. # This is similar to how AIX traditionally builds its shared
  12947. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12948. 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'
  12949. fi
  12950. if test aix != "$with_aix_soname"; then
  12951. 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'
  12952. else
  12953. # used by -dlpreopen to get the symbols
  12954. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12955. fi
  12956. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12957. fi
  12958. fi
  12959. ;;
  12960. beos*)
  12961. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12962. allow_undefined_flag_CXX=unsupported
  12963. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12964. # support --undefined. This deserves some investigation. FIXME
  12965. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12966. else
  12967. ld_shlibs_CXX=no
  12968. fi
  12969. ;;
  12970. chorus*)
  12971. case $cc_basename in
  12972. *)
  12973. # FIXME: insert proper C++ library support
  12974. ld_shlibs_CXX=no
  12975. ;;
  12976. esac
  12977. ;;
  12978. cygwin* | mingw* | pw32* | cegcc*)
  12979. case $GXX,$cc_basename in
  12980. ,cl* | no,cl*)
  12981. # Native MSVC
  12982. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12983. # no search path for DLLs.
  12984. hardcode_libdir_flag_spec_CXX=' '
  12985. allow_undefined_flag_CXX=unsupported
  12986. always_export_symbols_CXX=yes
  12987. file_list_spec_CXX='@'
  12988. # Tell ltmain to make .lib files, not .a files.
  12989. libext=lib
  12990. # Tell ltmain to make .dll files, not .so files.
  12991. shrext_cmds=.dll
  12992. # FIXME: Setting linknames here is a bad hack.
  12993. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12994. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12995. cp "$export_symbols" "$output_objdir/$soname.def";
  12996. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12997. else
  12998. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12999. fi~
  13000. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13001. linknames='
  13002. # The linker will not automatically build a static lib if we build a DLL.
  13003. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13004. enable_shared_with_static_runtimes_CXX=yes
  13005. # Don't use ranlib
  13006. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13007. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13008. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13009. case $lt_outputfile in
  13010. *.exe|*.EXE) ;;
  13011. *)
  13012. lt_outputfile=$lt_outputfile.exe
  13013. lt_tool_outputfile=$lt_tool_outputfile.exe
  13014. ;;
  13015. esac~
  13016. func_to_tool_file "$lt_outputfile"~
  13017. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13018. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13019. $RM "$lt_outputfile.manifest";
  13020. fi'
  13021. ;;
  13022. *)
  13023. # g++
  13024. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13025. # as there is no search path for DLLs.
  13026. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13027. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13028. allow_undefined_flag_CXX=unsupported
  13029. always_export_symbols_CXX=no
  13030. enable_shared_with_static_runtimes_CXX=yes
  13031. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13032. 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'
  13033. # If the export-symbols file already is a .def file, use it as
  13034. # is; otherwise, prepend EXPORTS...
  13035. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13036. cp $export_symbols $output_objdir/$soname.def;
  13037. else
  13038. echo EXPORTS > $output_objdir/$soname.def;
  13039. cat $export_symbols >> $output_objdir/$soname.def;
  13040. fi~
  13041. $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'
  13042. else
  13043. ld_shlibs_CXX=no
  13044. fi
  13045. ;;
  13046. esac
  13047. ;;
  13048. darwin* | rhapsody*)
  13049. archive_cmds_need_lc_CXX=no
  13050. hardcode_direct_CXX=no
  13051. hardcode_automatic_CXX=yes
  13052. hardcode_shlibpath_var_CXX=unsupported
  13053. if test yes = "$lt_cv_ld_force_load"; then
  13054. 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\"`'
  13055. else
  13056. whole_archive_flag_spec_CXX=''
  13057. fi
  13058. link_all_deplibs_CXX=yes
  13059. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13060. case $cc_basename in
  13061. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13062. *) _lt_dar_can_shared=$GCC ;;
  13063. esac
  13064. if test yes = "$_lt_dar_can_shared"; then
  13065. output_verbose_link_cmd=func_echo_all
  13066. 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"
  13067. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13068. 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"
  13069. 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"
  13070. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13071. 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"
  13072. 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"
  13073. fi
  13074. else
  13075. ld_shlibs_CXX=no
  13076. fi
  13077. ;;
  13078. os2*)
  13079. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13080. hardcode_minus_L_CXX=yes
  13081. allow_undefined_flag_CXX=unsupported
  13082. shrext_cmds=.dll
  13083. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13084. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13085. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13086. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13087. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13088. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13089. emximp -o $lib $output_objdir/$libname.def'
  13090. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13091. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13092. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13093. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13094. prefix_cmds="$SED"~
  13095. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13096. prefix_cmds="$prefix_cmds -e 1d";
  13097. fi~
  13098. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13099. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13100. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13101. emximp -o $lib $output_objdir/$libname.def'
  13102. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13103. enable_shared_with_static_runtimes_CXX=yes
  13104. file_list_spec_CXX='@'
  13105. ;;
  13106. dgux*)
  13107. case $cc_basename in
  13108. ec++*)
  13109. # FIXME: insert proper C++ library support
  13110. ld_shlibs_CXX=no
  13111. ;;
  13112. ghcx*)
  13113. # Green Hills C++ Compiler
  13114. # FIXME: insert proper C++ library support
  13115. ld_shlibs_CXX=no
  13116. ;;
  13117. *)
  13118. # FIXME: insert proper C++ library support
  13119. ld_shlibs_CXX=no
  13120. ;;
  13121. esac
  13122. ;;
  13123. freebsd2.*)
  13124. # C++ shared libraries reported to be fairly broken before
  13125. # switch to ELF
  13126. ld_shlibs_CXX=no
  13127. ;;
  13128. freebsd-elf*)
  13129. archive_cmds_need_lc_CXX=no
  13130. ;;
  13131. freebsd* | dragonfly* | midnightbsd*)
  13132. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13133. # conventions
  13134. ld_shlibs_CXX=yes
  13135. ;;
  13136. haiku*)
  13137. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13138. link_all_deplibs_CXX=yes
  13139. ;;
  13140. hpux9*)
  13141. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13142. hardcode_libdir_separator_CXX=:
  13143. export_dynamic_flag_spec_CXX='$wl-E'
  13144. hardcode_direct_CXX=yes
  13145. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13146. # but as the default
  13147. # location of the library.
  13148. case $cc_basename in
  13149. CC*)
  13150. # FIXME: insert proper C++ library support
  13151. ld_shlibs_CXX=no
  13152. ;;
  13153. aCC*)
  13154. 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'
  13155. # Commands to make compiler produce verbose output that lists
  13156. # what "hidden" libraries, object files and flags are used when
  13157. # linking a shared library.
  13158. #
  13159. # There doesn't appear to be a way to prevent this compiler from
  13160. # explicitly linking system object files so we need to strip them
  13161. # from the output so that they don't get included in the library
  13162. # dependencies.
  13163. 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"'
  13164. ;;
  13165. *)
  13166. if test yes = "$GXX"; then
  13167. 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'
  13168. else
  13169. # FIXME: insert proper C++ library support
  13170. ld_shlibs_CXX=no
  13171. fi
  13172. ;;
  13173. esac
  13174. ;;
  13175. hpux10*|hpux11*)
  13176. if test no = "$with_gnu_ld"; then
  13177. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13178. hardcode_libdir_separator_CXX=:
  13179. case $host_cpu in
  13180. hppa*64*|ia64*)
  13181. ;;
  13182. *)
  13183. export_dynamic_flag_spec_CXX='$wl-E'
  13184. ;;
  13185. esac
  13186. fi
  13187. case $host_cpu in
  13188. hppa*64*|ia64*)
  13189. hardcode_direct_CXX=no
  13190. hardcode_shlibpath_var_CXX=no
  13191. ;;
  13192. *)
  13193. hardcode_direct_CXX=yes
  13194. hardcode_direct_absolute_CXX=yes
  13195. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13196. # but as the default
  13197. # location of the library.
  13198. ;;
  13199. esac
  13200. case $cc_basename in
  13201. CC*)
  13202. # FIXME: insert proper C++ library support
  13203. ld_shlibs_CXX=no
  13204. ;;
  13205. aCC*)
  13206. case $host_cpu in
  13207. hppa*64*)
  13208. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13209. ;;
  13210. ia64*)
  13211. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13212. ;;
  13213. *)
  13214. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13215. ;;
  13216. esac
  13217. # Commands to make compiler produce verbose output that lists
  13218. # what "hidden" libraries, object files and flags are used when
  13219. # linking a shared library.
  13220. #
  13221. # There doesn't appear to be a way to prevent this compiler from
  13222. # explicitly linking system object files so we need to strip them
  13223. # from the output so that they don't get included in the library
  13224. # dependencies.
  13225. 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"'
  13226. ;;
  13227. *)
  13228. if test yes = "$GXX"; then
  13229. if test no = "$with_gnu_ld"; then
  13230. case $host_cpu in
  13231. hppa*64*)
  13232. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13233. ;;
  13234. ia64*)
  13235. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13236. ;;
  13237. *)
  13238. 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'
  13239. ;;
  13240. esac
  13241. fi
  13242. else
  13243. # FIXME: insert proper C++ library support
  13244. ld_shlibs_CXX=no
  13245. fi
  13246. ;;
  13247. esac
  13248. ;;
  13249. interix[3-9]*)
  13250. hardcode_direct_CXX=no
  13251. hardcode_shlibpath_var_CXX=no
  13252. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13253. export_dynamic_flag_spec_CXX='$wl-E'
  13254. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13255. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13256. # default) and relocated if they conflict, which is a slow very memory
  13257. # consuming and fragmenting process. To avoid this, we pick a random,
  13258. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13259. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13260. 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'
  13261. 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'
  13262. ;;
  13263. irix5* | irix6*)
  13264. case $cc_basename in
  13265. CC*)
  13266. # SGI C++
  13267. 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'
  13268. # Archives containing C++ object files must be created using
  13269. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13270. # necessary to make sure instantiated templates are included
  13271. # in the archive.
  13272. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13273. ;;
  13274. *)
  13275. if test yes = "$GXX"; then
  13276. if test no = "$with_gnu_ld"; then
  13277. 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'
  13278. else
  13279. 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'
  13280. fi
  13281. fi
  13282. link_all_deplibs_CXX=yes
  13283. ;;
  13284. esac
  13285. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13286. hardcode_libdir_separator_CXX=:
  13287. inherit_rpath_CXX=yes
  13288. ;;
  13289. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13290. case $cc_basename in
  13291. KCC*)
  13292. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13293. # KCC will only create a shared library if the output file
  13294. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13295. # to its proper name (with version) after linking.
  13296. 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'
  13297. 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'
  13298. # Commands to make compiler produce verbose output that lists
  13299. # what "hidden" libraries, object files and flags are used when
  13300. # linking a shared library.
  13301. #
  13302. # There doesn't appear to be a way to prevent this compiler from
  13303. # explicitly linking system object files so we need to strip them
  13304. # from the output so that they don't get included in the library
  13305. # dependencies.
  13306. 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"'
  13307. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13308. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13309. # Archives containing C++ object files must be created using
  13310. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13311. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13312. ;;
  13313. icpc* | ecpc* )
  13314. # Intel C++
  13315. with_gnu_ld=yes
  13316. # version 8.0 and above of icpc choke on multiply defined symbols
  13317. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13318. # earlier do not add the objects themselves.
  13319. case `$CC -V 2>&1` in
  13320. *"Version 7."*)
  13321. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13322. 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'
  13323. ;;
  13324. *) # Version 8.0 or newer
  13325. tmp_idyn=
  13326. case $host_cpu in
  13327. ia64*) tmp_idyn=' -i_dynamic';;
  13328. esac
  13329. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13330. 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'
  13331. ;;
  13332. esac
  13333. archive_cmds_need_lc_CXX=no
  13334. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13335. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13336. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13337. ;;
  13338. pgCC* | pgcpp*)
  13339. # Portland Group C++ compiler
  13340. case `$CC -V` in
  13341. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13342. prelink_cmds_CXX='tpldir=Template.dir~
  13343. rm -rf $tpldir~
  13344. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13345. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13346. old_archive_cmds_CXX='tpldir=Template.dir~
  13347. rm -rf $tpldir~
  13348. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13349. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13350. $RANLIB $oldlib'
  13351. archive_cmds_CXX='tpldir=Template.dir~
  13352. rm -rf $tpldir~
  13353. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13354. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13355. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13356. rm -rf $tpldir~
  13357. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13358. $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'
  13359. ;;
  13360. *) # Version 6 and above use weak symbols
  13361. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13362. 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'
  13363. ;;
  13364. esac
  13365. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13366. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13367. 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'
  13368. ;;
  13369. cxx*)
  13370. # Compaq C++
  13371. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13372. 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'
  13373. runpath_var=LD_RUN_PATH
  13374. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13375. hardcode_libdir_separator_CXX=:
  13376. # Commands to make compiler produce verbose output that lists
  13377. # what "hidden" libraries, object files and flags are used when
  13378. # linking a shared library.
  13379. #
  13380. # There doesn't appear to be a way to prevent this compiler from
  13381. # explicitly linking system object files so we need to strip them
  13382. # from the output so that they don't get included in the library
  13383. # dependencies.
  13384. 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'
  13385. ;;
  13386. xl* | mpixl* | bgxl*)
  13387. # IBM XL 8.0 on PPC, with GNU ld
  13388. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13389. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13390. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13391. if test yes = "$supports_anon_versioning"; then
  13392. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13393. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13394. echo "local: *; };" >> $output_objdir/$libname.ver~
  13395. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13396. fi
  13397. ;;
  13398. *)
  13399. case `$CC -V 2>&1 | sed 5q` in
  13400. *Sun\ C*)
  13401. # Sun C++ 5.9
  13402. no_undefined_flag_CXX=' -zdefs'
  13403. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13404. 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'
  13405. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13406. 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'
  13407. compiler_needs_object_CXX=yes
  13408. # Not sure whether something based on
  13409. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13410. # would be better.
  13411. output_verbose_link_cmd='func_echo_all'
  13412. # Archives containing C++ object files must be created using
  13413. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13414. # necessary to make sure instantiated templates are included
  13415. # in the archive.
  13416. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13417. ;;
  13418. esac
  13419. ;;
  13420. esac
  13421. ;;
  13422. lynxos*)
  13423. # FIXME: insert proper C++ library support
  13424. ld_shlibs_CXX=no
  13425. ;;
  13426. m88k*)
  13427. # FIXME: insert proper C++ library support
  13428. ld_shlibs_CXX=no
  13429. ;;
  13430. mvs*)
  13431. case $cc_basename in
  13432. cxx*)
  13433. # FIXME: insert proper C++ library support
  13434. ld_shlibs_CXX=no
  13435. ;;
  13436. *)
  13437. # FIXME: insert proper C++ library support
  13438. ld_shlibs_CXX=no
  13439. ;;
  13440. esac
  13441. ;;
  13442. netbsd*)
  13443. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13444. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13445. wlarc=
  13446. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13447. hardcode_direct_CXX=yes
  13448. hardcode_shlibpath_var_CXX=no
  13449. fi
  13450. # Workaround some broken pre-1.5 toolchains
  13451. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13452. ;;
  13453. *nto* | *qnx*)
  13454. ld_shlibs_CXX=yes
  13455. ;;
  13456. openbsd* | bitrig*)
  13457. if test -f /usr/libexec/ld.so; then
  13458. hardcode_direct_CXX=yes
  13459. hardcode_shlibpath_var_CXX=no
  13460. hardcode_direct_absolute_CXX=yes
  13461. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13462. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13463. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13464. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13465. export_dynamic_flag_spec_CXX='$wl-E'
  13466. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13467. fi
  13468. output_verbose_link_cmd=func_echo_all
  13469. else
  13470. ld_shlibs_CXX=no
  13471. fi
  13472. ;;
  13473. osf3* | osf4* | osf5*)
  13474. case $cc_basename in
  13475. KCC*)
  13476. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13477. # KCC will only create a shared library if the output file
  13478. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13479. # to its proper name (with version) after linking.
  13480. 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'
  13481. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13482. hardcode_libdir_separator_CXX=:
  13483. # Archives containing C++ object files must be created using
  13484. # the KAI C++ compiler.
  13485. case $host in
  13486. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13487. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13488. esac
  13489. ;;
  13490. RCC*)
  13491. # Rational C++ 2.4.1
  13492. # FIXME: insert proper C++ library support
  13493. ld_shlibs_CXX=no
  13494. ;;
  13495. cxx*)
  13496. case $host in
  13497. osf3*)
  13498. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13499. 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'
  13500. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13501. ;;
  13502. *)
  13503. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13504. 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'
  13505. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13506. echo "-hidden">> $lib.exp~
  13507. $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~
  13508. $RM $lib.exp'
  13509. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13510. ;;
  13511. esac
  13512. hardcode_libdir_separator_CXX=:
  13513. # Commands to make compiler produce verbose output that lists
  13514. # what "hidden" libraries, object files and flags are used when
  13515. # linking a shared library.
  13516. #
  13517. # There doesn't appear to be a way to prevent this compiler from
  13518. # explicitly linking system object files so we need to strip them
  13519. # from the output so that they don't get included in the library
  13520. # dependencies.
  13521. 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"'
  13522. ;;
  13523. *)
  13524. if test yes,no = "$GXX,$with_gnu_ld"; then
  13525. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13526. case $host in
  13527. osf3*)
  13528. 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'
  13529. ;;
  13530. *)
  13531. 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'
  13532. ;;
  13533. esac
  13534. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13535. hardcode_libdir_separator_CXX=:
  13536. # Commands to make compiler produce verbose output that lists
  13537. # what "hidden" libraries, object files and flags are used when
  13538. # linking a shared library.
  13539. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13540. else
  13541. # FIXME: insert proper C++ library support
  13542. ld_shlibs_CXX=no
  13543. fi
  13544. ;;
  13545. esac
  13546. ;;
  13547. psos*)
  13548. # FIXME: insert proper C++ library support
  13549. ld_shlibs_CXX=no
  13550. ;;
  13551. sunos4*)
  13552. case $cc_basename in
  13553. CC*)
  13554. # Sun C++ 4.x
  13555. # FIXME: insert proper C++ library support
  13556. ld_shlibs_CXX=no
  13557. ;;
  13558. lcc*)
  13559. # Lucid
  13560. # FIXME: insert proper C++ library support
  13561. ld_shlibs_CXX=no
  13562. ;;
  13563. *)
  13564. # FIXME: insert proper C++ library support
  13565. ld_shlibs_CXX=no
  13566. ;;
  13567. esac
  13568. ;;
  13569. solaris*)
  13570. case $cc_basename in
  13571. CC* | sunCC*)
  13572. # Sun C++ 4.2, 5.x and Centerline C++
  13573. archive_cmds_need_lc_CXX=yes
  13574. no_undefined_flag_CXX=' -zdefs'
  13575. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13576. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13577. $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'
  13578. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13579. hardcode_shlibpath_var_CXX=no
  13580. case $host_os in
  13581. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13582. *)
  13583. # The compiler driver will combine and reorder linker options,
  13584. # but understands '-z linker_flag'.
  13585. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13586. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13587. ;;
  13588. esac
  13589. link_all_deplibs_CXX=yes
  13590. output_verbose_link_cmd='func_echo_all'
  13591. # Archives containing C++ object files must be created using
  13592. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13593. # necessary to make sure instantiated templates are included
  13594. # in the archive.
  13595. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13596. ;;
  13597. gcx*)
  13598. # Green Hills C++ Compiler
  13599. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13600. # The C++ compiler must be used to create the archive.
  13601. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13602. ;;
  13603. *)
  13604. # GNU C++ compiler with Solaris linker
  13605. if test yes,no = "$GXX,$with_gnu_ld"; then
  13606. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13607. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13608. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13609. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13610. $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'
  13611. # Commands to make compiler produce verbose output that lists
  13612. # what "hidden" libraries, object files and flags are used when
  13613. # linking a shared library.
  13614. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13615. else
  13616. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13617. # platform.
  13618. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13619. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13620. $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'
  13621. # Commands to make compiler produce verbose output that lists
  13622. # what "hidden" libraries, object files and flags are used when
  13623. # linking a shared library.
  13624. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13625. fi
  13626. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13627. case $host_os in
  13628. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13629. *)
  13630. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13631. ;;
  13632. esac
  13633. fi
  13634. ;;
  13635. esac
  13636. ;;
  13637. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13638. no_undefined_flag_CXX='$wl-z,text'
  13639. archive_cmds_need_lc_CXX=no
  13640. hardcode_shlibpath_var_CXX=no
  13641. runpath_var='LD_RUN_PATH'
  13642. case $cc_basename in
  13643. CC*)
  13644. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13645. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13646. ;;
  13647. *)
  13648. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13649. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13650. ;;
  13651. esac
  13652. ;;
  13653. sysv5* | sco3.2v5* | sco5v6*)
  13654. # Note: We CANNOT use -z defs as we might desire, because we do not
  13655. # link with -lc, and that would cause any symbols used from libc to
  13656. # always be unresolved, which means just about no library would
  13657. # ever link correctly. If we're not using GNU ld we use -z text
  13658. # though, which does catch some bad symbols but isn't as heavy-handed
  13659. # as -z defs.
  13660. no_undefined_flag_CXX='$wl-z,text'
  13661. allow_undefined_flag_CXX='$wl-z,nodefs'
  13662. archive_cmds_need_lc_CXX=no
  13663. hardcode_shlibpath_var_CXX=no
  13664. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13665. hardcode_libdir_separator_CXX=':'
  13666. link_all_deplibs_CXX=yes
  13667. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13668. runpath_var='LD_RUN_PATH'
  13669. case $cc_basename in
  13670. CC*)
  13671. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13672. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13673. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13674. '"$old_archive_cmds_CXX"
  13675. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13676. '"$reload_cmds_CXX"
  13677. ;;
  13678. *)
  13679. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13680. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13681. ;;
  13682. esac
  13683. ;;
  13684. tandem*)
  13685. case $cc_basename in
  13686. NCC*)
  13687. # NonStop-UX NCC 3.20
  13688. # FIXME: insert proper C++ library support
  13689. ld_shlibs_CXX=no
  13690. ;;
  13691. *)
  13692. # FIXME: insert proper C++ library support
  13693. ld_shlibs_CXX=no
  13694. ;;
  13695. esac
  13696. ;;
  13697. vxworks*)
  13698. # FIXME: insert proper C++ library support
  13699. ld_shlibs_CXX=no
  13700. ;;
  13701. *)
  13702. # FIXME: insert proper C++ library support
  13703. ld_shlibs_CXX=no
  13704. ;;
  13705. esac
  13706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13707. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13708. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13709. GCC_CXX=$GXX
  13710. LD_CXX=$LD
  13711. ## CAVEAT EMPTOR:
  13712. ## There is no encapsulation within the following macros, do not change
  13713. ## the running order or otherwise move them around unless you know exactly
  13714. ## what you are doing...
  13715. # Dependencies to place before and after the object being linked:
  13716. predep_objects_CXX=
  13717. postdep_objects_CXX=
  13718. predeps_CXX=
  13719. postdeps_CXX=
  13720. compiler_lib_search_path_CXX=
  13721. cat > conftest.$ac_ext <<_LT_EOF
  13722. class Foo
  13723. {
  13724. public:
  13725. Foo (void) { a = 0; }
  13726. private:
  13727. int a;
  13728. };
  13729. _LT_EOF
  13730. _lt_libdeps_save_CFLAGS=$CFLAGS
  13731. case "$CC $CFLAGS " in #(
  13732. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13733. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13734. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13735. esac
  13736. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13737. (eval $ac_compile) 2>&5
  13738. ac_status=$?
  13739. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13740. test $ac_status = 0; }; then
  13741. # Parse the compiler output and extract the necessary
  13742. # objects, libraries and library flags.
  13743. # Sentinel used to keep track of whether or not we are before
  13744. # the conftest object file.
  13745. pre_test_object_deps_done=no
  13746. for p in `eval "$output_verbose_link_cmd"`; do
  13747. case $prev$p in
  13748. -L* | -R* | -l*)
  13749. # Some compilers place space between "-{L,R}" and the path.
  13750. # Remove the space.
  13751. if test x-L = "x$p" ||
  13752. test x-R = "x$p" ||
  13753. test x-l = "x$p"; then
  13754. prev=$p
  13755. continue
  13756. fi
  13757. # Expand the sysroot to ease extracting the directories later.
  13758. if test -z "$prev"; then
  13759. case $p in
  13760. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13761. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13762. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13763. esac
  13764. fi
  13765. case $p in
  13766. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13767. esac
  13768. if test no = "$pre_test_object_deps_done"; then
  13769. case $prev in
  13770. -L | -R)
  13771. # Internal compiler library paths should come after those
  13772. # provided the user. The postdeps already come after the
  13773. # user supplied libs so there is no need to process them.
  13774. if test -z "$compiler_lib_search_path_CXX"; then
  13775. compiler_lib_search_path_CXX=$prev$p
  13776. else
  13777. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13778. fi
  13779. ;;
  13780. # The "-l" case would never come before the object being
  13781. # linked, so don't bother handling this case.
  13782. esac
  13783. else
  13784. if test -z "$postdeps_CXX"; then
  13785. postdeps_CXX=$prev$p
  13786. else
  13787. postdeps_CXX="${postdeps_CXX} $prev$p"
  13788. fi
  13789. fi
  13790. prev=
  13791. ;;
  13792. *.lto.$objext) ;; # Ignore GCC LTO objects
  13793. *.$objext)
  13794. # This assumes that the test object file only shows up
  13795. # once in the compiler output.
  13796. if test "$p" = "conftest.$objext"; then
  13797. pre_test_object_deps_done=yes
  13798. continue
  13799. fi
  13800. if test no = "$pre_test_object_deps_done"; then
  13801. if test -z "$predep_objects_CXX"; then
  13802. predep_objects_CXX=$p
  13803. else
  13804. predep_objects_CXX="$predep_objects_CXX $p"
  13805. fi
  13806. else
  13807. if test -z "$postdep_objects_CXX"; then
  13808. postdep_objects_CXX=$p
  13809. else
  13810. postdep_objects_CXX="$postdep_objects_CXX $p"
  13811. fi
  13812. fi
  13813. ;;
  13814. *) ;; # Ignore the rest.
  13815. esac
  13816. done
  13817. # Clean up.
  13818. rm -f a.out a.exe
  13819. else
  13820. echo "libtool.m4: error: problem compiling CXX test program"
  13821. fi
  13822. $RM -f confest.$objext
  13823. CFLAGS=$_lt_libdeps_save_CFLAGS
  13824. # PORTME: override above test on systems where it is broken
  13825. case $host_os in
  13826. interix[3-9]*)
  13827. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13828. # hack all around it, let's just trust "g++" to DTRT.
  13829. predep_objects_CXX=
  13830. postdep_objects_CXX=
  13831. postdeps_CXX=
  13832. ;;
  13833. esac
  13834. case " $postdeps_CXX " in
  13835. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13836. esac
  13837. compiler_lib_search_dirs_CXX=
  13838. if test -n "${compiler_lib_search_path_CXX}"; then
  13839. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13840. fi
  13841. lt_prog_compiler_wl_CXX=
  13842. lt_prog_compiler_pic_CXX=
  13843. lt_prog_compiler_static_CXX=
  13844. # C++ specific cases for pic, static, wl, etc.
  13845. if test yes = "$GXX"; then
  13846. lt_prog_compiler_wl_CXX='-Wl,'
  13847. lt_prog_compiler_static_CXX='-static'
  13848. case $host_os in
  13849. aix*)
  13850. # All AIX code is PIC.
  13851. if test ia64 = "$host_cpu"; then
  13852. # AIX 5 now supports IA64 processor
  13853. lt_prog_compiler_static_CXX='-Bstatic'
  13854. fi
  13855. lt_prog_compiler_pic_CXX='-fPIC'
  13856. ;;
  13857. amigaos*)
  13858. case $host_cpu in
  13859. powerpc)
  13860. # see comment about AmigaOS4 .so support
  13861. lt_prog_compiler_pic_CXX='-fPIC'
  13862. ;;
  13863. m68k)
  13864. # FIXME: we need at least 68020 code to build shared libraries, but
  13865. # adding the '-m68020' flag to GCC prevents building anything better,
  13866. # like '-m68040'.
  13867. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13868. ;;
  13869. esac
  13870. ;;
  13871. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13872. # PIC is the default for these OSes.
  13873. ;;
  13874. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13875. # This hack is so that the source file can tell whether it is being
  13876. # built for inclusion in a dll (and should export symbols for example).
  13877. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13878. # (--disable-auto-import) libraries
  13879. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13880. case $host_os in
  13881. os2*)
  13882. lt_prog_compiler_static_CXX='$wl-static'
  13883. ;;
  13884. esac
  13885. ;;
  13886. darwin* | rhapsody*)
  13887. # PIC is the default on this platform
  13888. # Common symbols not allowed in MH_DYLIB files
  13889. lt_prog_compiler_pic_CXX='-fno-common'
  13890. ;;
  13891. *djgpp*)
  13892. # DJGPP does not support shared libraries at all
  13893. lt_prog_compiler_pic_CXX=
  13894. ;;
  13895. haiku*)
  13896. # PIC is the default for Haiku.
  13897. # The "-static" flag exists, but is broken.
  13898. lt_prog_compiler_static_CXX=
  13899. ;;
  13900. interix[3-9]*)
  13901. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13902. # Instead, we relocate shared libraries at runtime.
  13903. ;;
  13904. sysv4*MP*)
  13905. if test -d /usr/nec; then
  13906. lt_prog_compiler_pic_CXX=-Kconform_pic
  13907. fi
  13908. ;;
  13909. hpux*)
  13910. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13911. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13912. # sets the default TLS model and affects inlining.
  13913. case $host_cpu in
  13914. hppa*64*)
  13915. ;;
  13916. *)
  13917. lt_prog_compiler_pic_CXX='-fPIC'
  13918. ;;
  13919. esac
  13920. ;;
  13921. *qnx* | *nto*)
  13922. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13923. # it will coredump.
  13924. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13925. ;;
  13926. *)
  13927. lt_prog_compiler_pic_CXX='-fPIC'
  13928. ;;
  13929. esac
  13930. else
  13931. case $host_os in
  13932. aix[4-9]*)
  13933. # All AIX code is PIC.
  13934. if test ia64 = "$host_cpu"; then
  13935. # AIX 5 now supports IA64 processor
  13936. lt_prog_compiler_static_CXX='-Bstatic'
  13937. else
  13938. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13939. fi
  13940. ;;
  13941. chorus*)
  13942. case $cc_basename in
  13943. cxch68*)
  13944. # Green Hills C++ Compiler
  13945. # _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"
  13946. ;;
  13947. esac
  13948. ;;
  13949. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13950. # This hack is so that the source file can tell whether it is being
  13951. # built for inclusion in a dll (and should export symbols for example).
  13952. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13953. ;;
  13954. dgux*)
  13955. case $cc_basename in
  13956. ec++*)
  13957. lt_prog_compiler_pic_CXX='-KPIC'
  13958. ;;
  13959. ghcx*)
  13960. # Green Hills C++ Compiler
  13961. lt_prog_compiler_pic_CXX='-pic'
  13962. ;;
  13963. *)
  13964. ;;
  13965. esac
  13966. ;;
  13967. freebsd* | dragonfly* | midnightbsd*)
  13968. # FreeBSD uses GNU C++
  13969. ;;
  13970. hpux9* | hpux10* | hpux11*)
  13971. case $cc_basename in
  13972. CC*)
  13973. lt_prog_compiler_wl_CXX='-Wl,'
  13974. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13975. if test ia64 != "$host_cpu"; then
  13976. lt_prog_compiler_pic_CXX='+Z'
  13977. fi
  13978. ;;
  13979. aCC*)
  13980. lt_prog_compiler_wl_CXX='-Wl,'
  13981. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13982. case $host_cpu in
  13983. hppa*64*|ia64*)
  13984. # +Z the default
  13985. ;;
  13986. *)
  13987. lt_prog_compiler_pic_CXX='+Z'
  13988. ;;
  13989. esac
  13990. ;;
  13991. *)
  13992. ;;
  13993. esac
  13994. ;;
  13995. interix*)
  13996. # This is c89, which is MS Visual C++ (no shared libs)
  13997. # Anyone wants to do a port?
  13998. ;;
  13999. irix5* | irix6* | nonstopux*)
  14000. case $cc_basename in
  14001. CC*)
  14002. lt_prog_compiler_wl_CXX='-Wl,'
  14003. lt_prog_compiler_static_CXX='-non_shared'
  14004. # CC pic flag -KPIC is the default.
  14005. ;;
  14006. *)
  14007. ;;
  14008. esac
  14009. ;;
  14010. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14011. case $cc_basename in
  14012. KCC*)
  14013. # KAI C++ Compiler
  14014. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14015. lt_prog_compiler_pic_CXX='-fPIC'
  14016. ;;
  14017. ecpc* )
  14018. # old Intel C++ for x86_64, which still supported -KPIC.
  14019. lt_prog_compiler_wl_CXX='-Wl,'
  14020. lt_prog_compiler_pic_CXX='-KPIC'
  14021. lt_prog_compiler_static_CXX='-static'
  14022. ;;
  14023. icpc* )
  14024. # Intel C++, used to be incompatible with GCC.
  14025. # ICC 10 doesn't accept -KPIC any more.
  14026. lt_prog_compiler_wl_CXX='-Wl,'
  14027. lt_prog_compiler_pic_CXX='-fPIC'
  14028. lt_prog_compiler_static_CXX='-static'
  14029. ;;
  14030. pgCC* | pgcpp*)
  14031. # Portland Group C++ compiler
  14032. lt_prog_compiler_wl_CXX='-Wl,'
  14033. lt_prog_compiler_pic_CXX='-fpic'
  14034. lt_prog_compiler_static_CXX='-Bstatic'
  14035. ;;
  14036. cxx*)
  14037. # Compaq C++
  14038. # Make sure the PIC flag is empty. It appears that all Alpha
  14039. # Linux and Compaq Tru64 Unix objects are PIC.
  14040. lt_prog_compiler_pic_CXX=
  14041. lt_prog_compiler_static_CXX='-non_shared'
  14042. ;;
  14043. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14044. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14045. lt_prog_compiler_wl_CXX='-Wl,'
  14046. lt_prog_compiler_pic_CXX='-qpic'
  14047. lt_prog_compiler_static_CXX='-qstaticlink'
  14048. ;;
  14049. *)
  14050. case `$CC -V 2>&1 | sed 5q` in
  14051. *Sun\ C*)
  14052. # Sun C++ 5.9
  14053. lt_prog_compiler_pic_CXX='-KPIC'
  14054. lt_prog_compiler_static_CXX='-Bstatic'
  14055. lt_prog_compiler_wl_CXX='-Qoption ld '
  14056. ;;
  14057. esac
  14058. ;;
  14059. esac
  14060. ;;
  14061. lynxos*)
  14062. ;;
  14063. m88k*)
  14064. ;;
  14065. mvs*)
  14066. case $cc_basename in
  14067. cxx*)
  14068. lt_prog_compiler_pic_CXX='-W c,exportall'
  14069. ;;
  14070. *)
  14071. ;;
  14072. esac
  14073. ;;
  14074. netbsd*)
  14075. ;;
  14076. *qnx* | *nto*)
  14077. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14078. # it will coredump.
  14079. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14080. ;;
  14081. osf3* | osf4* | osf5*)
  14082. case $cc_basename in
  14083. KCC*)
  14084. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14085. ;;
  14086. RCC*)
  14087. # Rational C++ 2.4.1
  14088. lt_prog_compiler_pic_CXX='-pic'
  14089. ;;
  14090. cxx*)
  14091. # Digital/Compaq C++
  14092. lt_prog_compiler_wl_CXX='-Wl,'
  14093. # Make sure the PIC flag is empty. It appears that all Alpha
  14094. # Linux and Compaq Tru64 Unix objects are PIC.
  14095. lt_prog_compiler_pic_CXX=
  14096. lt_prog_compiler_static_CXX='-non_shared'
  14097. ;;
  14098. *)
  14099. ;;
  14100. esac
  14101. ;;
  14102. psos*)
  14103. ;;
  14104. solaris*)
  14105. case $cc_basename in
  14106. CC* | sunCC*)
  14107. # Sun C++ 4.2, 5.x and Centerline C++
  14108. lt_prog_compiler_pic_CXX='-KPIC'
  14109. lt_prog_compiler_static_CXX='-Bstatic'
  14110. lt_prog_compiler_wl_CXX='-Qoption ld '
  14111. ;;
  14112. gcx*)
  14113. # Green Hills C++ Compiler
  14114. lt_prog_compiler_pic_CXX='-PIC'
  14115. ;;
  14116. *)
  14117. ;;
  14118. esac
  14119. ;;
  14120. sunos4*)
  14121. case $cc_basename in
  14122. CC*)
  14123. # Sun C++ 4.x
  14124. lt_prog_compiler_pic_CXX='-pic'
  14125. lt_prog_compiler_static_CXX='-Bstatic'
  14126. ;;
  14127. lcc*)
  14128. # Lucid
  14129. lt_prog_compiler_pic_CXX='-pic'
  14130. ;;
  14131. *)
  14132. ;;
  14133. esac
  14134. ;;
  14135. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14136. case $cc_basename in
  14137. CC*)
  14138. lt_prog_compiler_wl_CXX='-Wl,'
  14139. lt_prog_compiler_pic_CXX='-KPIC'
  14140. lt_prog_compiler_static_CXX='-Bstatic'
  14141. ;;
  14142. esac
  14143. ;;
  14144. tandem*)
  14145. case $cc_basename in
  14146. NCC*)
  14147. # NonStop-UX NCC 3.20
  14148. lt_prog_compiler_pic_CXX='-KPIC'
  14149. ;;
  14150. *)
  14151. ;;
  14152. esac
  14153. ;;
  14154. vxworks*)
  14155. ;;
  14156. *)
  14157. lt_prog_compiler_can_build_shared_CXX=no
  14158. ;;
  14159. esac
  14160. fi
  14161. case $host_os in
  14162. # For platforms that do not support PIC, -DPIC is meaningless:
  14163. *djgpp*)
  14164. lt_prog_compiler_pic_CXX=
  14165. ;;
  14166. *)
  14167. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14168. ;;
  14169. esac
  14170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14171. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14172. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14173. then :
  14174. printf %s "(cached) " >&6
  14175. else $as_nop
  14176. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14177. fi
  14178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14179. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14180. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14181. #
  14182. # Check to make sure the PIC flag actually works.
  14183. #
  14184. if test -n "$lt_prog_compiler_pic_CXX"; then
  14185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14186. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14187. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14188. then :
  14189. printf %s "(cached) " >&6
  14190. else $as_nop
  14191. lt_cv_prog_compiler_pic_works_CXX=no
  14192. ac_outfile=conftest.$ac_objext
  14193. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14194. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14195. # Insert the option either (1) after the last *FLAGS variable, or
  14196. # (2) before a word containing "conftest.", or (3) at the end.
  14197. # Note that $ac_compile itself does not contain backslashes and begins
  14198. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14199. # The option is referenced via a variable to avoid confusing sed.
  14200. lt_compile=`echo "$ac_compile" | $SED \
  14201. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14202. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14203. -e 's:$: $lt_compiler_flag:'`
  14204. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14205. (eval "$lt_compile" 2>conftest.err)
  14206. ac_status=$?
  14207. cat conftest.err >&5
  14208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14209. if (exit $ac_status) && test -s "$ac_outfile"; then
  14210. # The compiler can only warn and ignore the option if not recognized
  14211. # So say no if there are warnings other than the usual output.
  14212. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14213. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14214. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14215. lt_cv_prog_compiler_pic_works_CXX=yes
  14216. fi
  14217. fi
  14218. $RM conftest*
  14219. fi
  14220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14221. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14222. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14223. case $lt_prog_compiler_pic_CXX in
  14224. "" | " "*) ;;
  14225. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14226. esac
  14227. else
  14228. lt_prog_compiler_pic_CXX=
  14229. lt_prog_compiler_can_build_shared_CXX=no
  14230. fi
  14231. fi
  14232. #
  14233. # Check to make sure the static flag actually works.
  14234. #
  14235. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14237. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14238. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14239. then :
  14240. printf %s "(cached) " >&6
  14241. else $as_nop
  14242. lt_cv_prog_compiler_static_works_CXX=no
  14243. save_LDFLAGS=$LDFLAGS
  14244. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14245. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14246. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14247. # The linker can only warn and ignore the option if not recognized
  14248. # So say no if there are warnings
  14249. if test -s conftest.err; then
  14250. # Append any errors to the config.log.
  14251. cat conftest.err 1>&5
  14252. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14253. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14254. if diff conftest.exp conftest.er2 >/dev/null; then
  14255. lt_cv_prog_compiler_static_works_CXX=yes
  14256. fi
  14257. else
  14258. lt_cv_prog_compiler_static_works_CXX=yes
  14259. fi
  14260. fi
  14261. $RM -r conftest*
  14262. LDFLAGS=$save_LDFLAGS
  14263. fi
  14264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14265. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14266. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14267. :
  14268. else
  14269. lt_prog_compiler_static_CXX=
  14270. fi
  14271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14272. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14273. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14274. then :
  14275. printf %s "(cached) " >&6
  14276. else $as_nop
  14277. lt_cv_prog_compiler_c_o_CXX=no
  14278. $RM -r conftest 2>/dev/null
  14279. mkdir conftest
  14280. cd conftest
  14281. mkdir out
  14282. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14283. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14284. # Insert the option either (1) after the last *FLAGS variable, or
  14285. # (2) before a word containing "conftest.", or (3) at the end.
  14286. # Note that $ac_compile itself does not contain backslashes and begins
  14287. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14288. lt_compile=`echo "$ac_compile" | $SED \
  14289. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14290. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14291. -e 's:$: $lt_compiler_flag:'`
  14292. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14293. (eval "$lt_compile" 2>out/conftest.err)
  14294. ac_status=$?
  14295. cat out/conftest.err >&5
  14296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14297. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14298. then
  14299. # The compiler can only warn and ignore the option if not recognized
  14300. # So say no if there are warnings
  14301. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14302. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14303. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14304. lt_cv_prog_compiler_c_o_CXX=yes
  14305. fi
  14306. fi
  14307. chmod u+w . 2>&5
  14308. $RM conftest*
  14309. # SGI C++ compiler will create directory out/ii_files/ for
  14310. # template instantiation
  14311. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14312. $RM out/* && rmdir out
  14313. cd ..
  14314. $RM -r conftest
  14315. $RM conftest*
  14316. fi
  14317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14318. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14320. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14321. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14322. then :
  14323. printf %s "(cached) " >&6
  14324. else $as_nop
  14325. lt_cv_prog_compiler_c_o_CXX=no
  14326. $RM -r conftest 2>/dev/null
  14327. mkdir conftest
  14328. cd conftest
  14329. mkdir out
  14330. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14331. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14332. # Insert the option either (1) after the last *FLAGS variable, or
  14333. # (2) before a word containing "conftest.", or (3) at the end.
  14334. # Note that $ac_compile itself does not contain backslashes and begins
  14335. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14336. lt_compile=`echo "$ac_compile" | $SED \
  14337. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14338. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14339. -e 's:$: $lt_compiler_flag:'`
  14340. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14341. (eval "$lt_compile" 2>out/conftest.err)
  14342. ac_status=$?
  14343. cat out/conftest.err >&5
  14344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14345. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14346. then
  14347. # The compiler can only warn and ignore the option if not recognized
  14348. # So say no if there are warnings
  14349. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14350. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14351. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14352. lt_cv_prog_compiler_c_o_CXX=yes
  14353. fi
  14354. fi
  14355. chmod u+w . 2>&5
  14356. $RM conftest*
  14357. # SGI C++ compiler will create directory out/ii_files/ for
  14358. # template instantiation
  14359. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14360. $RM out/* && rmdir out
  14361. cd ..
  14362. $RM -r conftest
  14363. $RM conftest*
  14364. fi
  14365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14366. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14367. hard_links=nottested
  14368. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14369. # do not overwrite the value of need_locks provided by the user
  14370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14371. printf %s "checking if we can lock with hard links... " >&6; }
  14372. hard_links=yes
  14373. $RM conftest*
  14374. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14375. touch conftest.a
  14376. ln conftest.a conftest.b 2>&5 || hard_links=no
  14377. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14379. printf "%s\n" "$hard_links" >&6; }
  14380. if test no = "$hard_links"; then
  14381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14382. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14383. need_locks=warn
  14384. fi
  14385. else
  14386. need_locks=no
  14387. fi
  14388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14389. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14390. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14391. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14392. case $host_os in
  14393. aix[4-9]*)
  14394. # If we're using GNU nm, then we don't want the "-C" option.
  14395. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14396. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14397. # weak defined symbols like other global defined symbols, whereas
  14398. # GNU nm marks them as "W".
  14399. # While the 'weak' keyword is ignored in the Export File, we need
  14400. # it in the Import File for the 'aix-soname' feature, so we have
  14401. # to replace the "-B" option with "-P" for AIX nm.
  14402. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14403. 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'
  14404. else
  14405. 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'
  14406. fi
  14407. ;;
  14408. pw32*)
  14409. export_symbols_cmds_CXX=$ltdll_cmds
  14410. ;;
  14411. cygwin* | mingw* | cegcc*)
  14412. case $cc_basename in
  14413. cl*)
  14414. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14415. ;;
  14416. *)
  14417. 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'
  14418. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14419. ;;
  14420. esac
  14421. ;;
  14422. *)
  14423. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14424. ;;
  14425. esac
  14426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14427. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14428. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14429. with_gnu_ld_CXX=$with_gnu_ld
  14430. #
  14431. # Do we need to explicitly link libc?
  14432. #
  14433. case "x$archive_cmds_need_lc_CXX" in
  14434. x|xyes)
  14435. # Assume -lc should be added
  14436. archive_cmds_need_lc_CXX=yes
  14437. if test yes,yes = "$GCC,$enable_shared"; then
  14438. case $archive_cmds_CXX in
  14439. *'~'*)
  14440. # FIXME: we may have to deal with multi-command sequences.
  14441. ;;
  14442. '$CC '*)
  14443. # Test whether the compiler implicitly links with -lc since on some
  14444. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14445. # to ld, don't add -lc before -lgcc.
  14446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14447. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14448. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14449. then :
  14450. printf %s "(cached) " >&6
  14451. else $as_nop
  14452. $RM conftest*
  14453. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14454. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14455. (eval $ac_compile) 2>&5
  14456. ac_status=$?
  14457. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14458. test $ac_status = 0; } 2>conftest.err; then
  14459. soname=conftest
  14460. lib=conftest
  14461. libobjs=conftest.$ac_objext
  14462. deplibs=
  14463. wl=$lt_prog_compiler_wl_CXX
  14464. pic_flag=$lt_prog_compiler_pic_CXX
  14465. compiler_flags=-v
  14466. linker_flags=-v
  14467. verstring=
  14468. output_objdir=.
  14469. libname=conftest
  14470. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14471. allow_undefined_flag_CXX=
  14472. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14473. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14474. ac_status=$?
  14475. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14476. test $ac_status = 0; }
  14477. then
  14478. lt_cv_archive_cmds_need_lc_CXX=no
  14479. else
  14480. lt_cv_archive_cmds_need_lc_CXX=yes
  14481. fi
  14482. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14483. else
  14484. cat conftest.err 1>&5
  14485. fi
  14486. $RM conftest*
  14487. fi
  14488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14489. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14490. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14491. ;;
  14492. esac
  14493. fi
  14494. ;;
  14495. esac
  14496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14497. printf %s "checking dynamic linker characteristics... " >&6; }
  14498. library_names_spec=
  14499. libname_spec='lib$name'
  14500. soname_spec=
  14501. shrext_cmds=.so
  14502. postinstall_cmds=
  14503. postuninstall_cmds=
  14504. finish_cmds=
  14505. finish_eval=
  14506. shlibpath_var=
  14507. shlibpath_overrides_runpath=unknown
  14508. version_type=none
  14509. dynamic_linker="$host_os ld.so"
  14510. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14511. need_lib_prefix=unknown
  14512. hardcode_into_libs=no
  14513. # when you set need_version to no, make sure it does not cause -set_version
  14514. # flags to be left without arguments
  14515. need_version=unknown
  14516. case $host_os in
  14517. aix3*)
  14518. version_type=linux # correct to gnu/linux during the next big refactor
  14519. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14520. shlibpath_var=LIBPATH
  14521. # AIX 3 has no versioning support, so we append a major version to the name.
  14522. soname_spec='$libname$release$shared_ext$major'
  14523. ;;
  14524. aix[4-9]*)
  14525. version_type=linux # correct to gnu/linux during the next big refactor
  14526. need_lib_prefix=no
  14527. need_version=no
  14528. hardcode_into_libs=yes
  14529. if test ia64 = "$host_cpu"; then
  14530. # AIX 5 supports IA64
  14531. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14532. shlibpath_var=LD_LIBRARY_PATH
  14533. else
  14534. # With GCC up to 2.95.x, collect2 would create an import file
  14535. # for dependence libraries. The import file would start with
  14536. # the line '#! .'. This would cause the generated library to
  14537. # depend on '.', always an invalid library. This was fixed in
  14538. # development snapshots of GCC prior to 3.0.
  14539. case $host_os in
  14540. aix4 | aix4.[01] | aix4.[01].*)
  14541. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14542. echo ' yes '
  14543. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14544. :
  14545. else
  14546. can_build_shared=no
  14547. fi
  14548. ;;
  14549. esac
  14550. # Using Import Files as archive members, it is possible to support
  14551. # filename-based versioning of shared library archives on AIX. While
  14552. # this would work for both with and without runtime linking, it will
  14553. # prevent static linking of such archives. So we do filename-based
  14554. # shared library versioning with .so extension only, which is used
  14555. # when both runtime linking and shared linking is enabled.
  14556. # Unfortunately, runtime linking may impact performance, so we do
  14557. # not want this to be the default eventually. Also, we use the
  14558. # versioned .so libs for executables only if there is the -brtl
  14559. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14560. # To allow for filename-based versioning support, we need to create
  14561. # libNAME.so.V as an archive file, containing:
  14562. # *) an Import File, referring to the versioned filename of the
  14563. # archive as well as the shared archive member, telling the
  14564. # bitwidth (32 or 64) of that shared object, and providing the
  14565. # list of exported symbols of that shared object, eventually
  14566. # decorated with the 'weak' keyword
  14567. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14568. # it being seen by the linker.
  14569. # At run time we better use the real file rather than another symlink,
  14570. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14571. case $with_aix_soname,$aix_use_runtimelinking in
  14572. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14573. # soname into executable. Probably we can add versioning support to
  14574. # collect2, so additional links can be useful in future.
  14575. aix,yes) # traditional libtool
  14576. dynamic_linker='AIX unversionable lib.so'
  14577. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14578. # instead of lib<name>.a to let people know that these are not
  14579. # typical AIX shared libraries.
  14580. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14581. ;;
  14582. aix,no) # traditional AIX only
  14583. dynamic_linker='AIX lib.a(lib.so.V)'
  14584. # We preserve .a as extension for shared libraries through AIX4.2
  14585. # and later when we are not doing run time linking.
  14586. library_names_spec='$libname$release.a $libname.a'
  14587. soname_spec='$libname$release$shared_ext$major'
  14588. ;;
  14589. svr4,*) # full svr4 only
  14590. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14591. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14592. # We do not specify a path in Import Files, so LIBPATH fires.
  14593. shlibpath_overrides_runpath=yes
  14594. ;;
  14595. *,yes) # both, prefer svr4
  14596. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14597. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14598. # unpreferred sharedlib libNAME.a needs extra handling
  14599. 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"'
  14600. 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"'
  14601. # We do not specify a path in Import Files, so LIBPATH fires.
  14602. shlibpath_overrides_runpath=yes
  14603. ;;
  14604. *,no) # both, prefer aix
  14605. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14606. library_names_spec='$libname$release.a $libname.a'
  14607. soname_spec='$libname$release$shared_ext$major'
  14608. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14609. 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)'
  14610. 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"'
  14611. ;;
  14612. esac
  14613. shlibpath_var=LIBPATH
  14614. fi
  14615. ;;
  14616. amigaos*)
  14617. case $host_cpu in
  14618. powerpc)
  14619. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14620. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14621. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14622. ;;
  14623. m68k)
  14624. library_names_spec='$libname.ixlibrary $libname.a'
  14625. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14626. 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'
  14627. ;;
  14628. esac
  14629. ;;
  14630. beos*)
  14631. library_names_spec='$libname$shared_ext'
  14632. dynamic_linker="$host_os ld.so"
  14633. shlibpath_var=LIBRARY_PATH
  14634. ;;
  14635. bsdi[45]*)
  14636. version_type=linux # correct to gnu/linux during the next big refactor
  14637. need_version=no
  14638. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14639. soname_spec='$libname$release$shared_ext$major'
  14640. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14641. shlibpath_var=LD_LIBRARY_PATH
  14642. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14643. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14644. # the default ld.so.conf also contains /usr/contrib/lib and
  14645. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14646. # libtool to hard-code these into programs
  14647. ;;
  14648. cygwin* | mingw* | pw32* | cegcc*)
  14649. version_type=windows
  14650. shrext_cmds=.dll
  14651. need_version=no
  14652. need_lib_prefix=no
  14653. case $GCC,$cc_basename in
  14654. yes,*)
  14655. # gcc
  14656. library_names_spec='$libname.dll.a'
  14657. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14658. postinstall_cmds='base_file=`basename \$file`~
  14659. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14660. dldir=$destdir/`dirname \$dlpath`~
  14661. test -d \$dldir || mkdir -p \$dldir~
  14662. $install_prog $dir/$dlname \$dldir/$dlname~
  14663. chmod a+x \$dldir/$dlname~
  14664. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14665. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14666. fi'
  14667. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14668. dlpath=$dir/\$dldll~
  14669. $RM \$dlpath'
  14670. shlibpath_overrides_runpath=yes
  14671. case $host_os in
  14672. cygwin*)
  14673. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14674. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14675. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14676. ;;
  14677. mingw* | cegcc*)
  14678. # MinGW DLLs use traditional 'lib' prefix
  14679. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14680. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14681. ;;
  14682. pw32*)
  14683. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14684. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14685. ;;
  14686. esac
  14687. dynamic_linker='Win32 ld.exe'
  14688. ;;
  14689. *,cl*)
  14690. # Native MSVC
  14691. libname_spec='$name'
  14692. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14693. library_names_spec='$libname.dll.lib'
  14694. case $build_os in
  14695. mingw*)
  14696. sys_lib_search_path_spec=
  14697. lt_save_ifs=$IFS
  14698. IFS=';'
  14699. for lt_path in $LIB
  14700. do
  14701. IFS=$lt_save_ifs
  14702. # Let DOS variable expansion print the short 8.3 style file name.
  14703. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14704. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14705. done
  14706. IFS=$lt_save_ifs
  14707. # Convert to MSYS style.
  14708. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14709. ;;
  14710. cygwin*)
  14711. # Convert to unix form, then to dos form, then back to unix form
  14712. # but this time dos style (no spaces!) so that the unix form looks
  14713. # like /cygdrive/c/PROGRA~1:/cygdr...
  14714. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14715. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14716. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14717. ;;
  14718. *)
  14719. sys_lib_search_path_spec=$LIB
  14720. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14721. # It is most probably a Windows format PATH.
  14722. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14723. else
  14724. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14725. fi
  14726. # FIXME: find the short name or the path components, as spaces are
  14727. # common. (e.g. "Program Files" -> "PROGRA~1")
  14728. ;;
  14729. esac
  14730. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14731. postinstall_cmds='base_file=`basename \$file`~
  14732. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14733. dldir=$destdir/`dirname \$dlpath`~
  14734. test -d \$dldir || mkdir -p \$dldir~
  14735. $install_prog $dir/$dlname \$dldir/$dlname'
  14736. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14737. dlpath=$dir/\$dldll~
  14738. $RM \$dlpath'
  14739. shlibpath_overrides_runpath=yes
  14740. dynamic_linker='Win32 link.exe'
  14741. ;;
  14742. *)
  14743. # Assume MSVC wrapper
  14744. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14745. dynamic_linker='Win32 ld.exe'
  14746. ;;
  14747. esac
  14748. # FIXME: first we should search . and the directory the executable is in
  14749. shlibpath_var=PATH
  14750. ;;
  14751. darwin* | rhapsody*)
  14752. dynamic_linker="$host_os dyld"
  14753. version_type=darwin
  14754. need_lib_prefix=no
  14755. need_version=no
  14756. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14757. soname_spec='$libname$release$major$shared_ext'
  14758. shlibpath_overrides_runpath=yes
  14759. shlibpath_var=DYLD_LIBRARY_PATH
  14760. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14761. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14762. ;;
  14763. dgux*)
  14764. version_type=linux # correct to gnu/linux during the next big refactor
  14765. need_lib_prefix=no
  14766. need_version=no
  14767. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14768. soname_spec='$libname$release$shared_ext$major'
  14769. shlibpath_var=LD_LIBRARY_PATH
  14770. ;;
  14771. freebsd* | dragonfly* | midnightbsd*)
  14772. # DragonFly does not have aout. When/if they implement a new
  14773. # versioning mechanism, adjust this.
  14774. if test -x /usr/bin/objformat; then
  14775. objformat=`/usr/bin/objformat`
  14776. else
  14777. case $host_os in
  14778. freebsd[23].*) objformat=aout ;;
  14779. *) objformat=elf ;;
  14780. esac
  14781. fi
  14782. version_type=freebsd-$objformat
  14783. case $version_type in
  14784. freebsd-elf*)
  14785. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14786. soname_spec='$libname$release$shared_ext$major'
  14787. need_version=no
  14788. need_lib_prefix=no
  14789. ;;
  14790. freebsd-*)
  14791. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14792. need_version=yes
  14793. ;;
  14794. esac
  14795. shlibpath_var=LD_LIBRARY_PATH
  14796. case $host_os in
  14797. freebsd2.*)
  14798. shlibpath_overrides_runpath=yes
  14799. ;;
  14800. freebsd3.[01]* | freebsdelf3.[01]*)
  14801. shlibpath_overrides_runpath=yes
  14802. hardcode_into_libs=yes
  14803. ;;
  14804. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14805. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14806. shlibpath_overrides_runpath=no
  14807. hardcode_into_libs=yes
  14808. ;;
  14809. *) # from 4.6 on, and DragonFly
  14810. shlibpath_overrides_runpath=yes
  14811. hardcode_into_libs=yes
  14812. ;;
  14813. esac
  14814. ;;
  14815. haiku*)
  14816. version_type=linux # correct to gnu/linux during the next big refactor
  14817. need_lib_prefix=no
  14818. need_version=no
  14819. dynamic_linker="$host_os runtime_loader"
  14820. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14821. soname_spec='$libname$release$shared_ext$major'
  14822. shlibpath_var=LIBRARY_PATH
  14823. shlibpath_overrides_runpath=no
  14824. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14825. hardcode_into_libs=yes
  14826. ;;
  14827. hpux9* | hpux10* | hpux11*)
  14828. # Give a soname corresponding to the major version so that dld.sl refuses to
  14829. # link against other versions.
  14830. version_type=sunos
  14831. need_lib_prefix=no
  14832. need_version=no
  14833. case $host_cpu in
  14834. ia64*)
  14835. shrext_cmds='.so'
  14836. hardcode_into_libs=yes
  14837. dynamic_linker="$host_os dld.so"
  14838. shlibpath_var=LD_LIBRARY_PATH
  14839. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14840. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14841. soname_spec='$libname$release$shared_ext$major'
  14842. if test 32 = "$HPUX_IA64_MODE"; then
  14843. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14844. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14845. else
  14846. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14847. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14848. fi
  14849. ;;
  14850. hppa*64*)
  14851. shrext_cmds='.sl'
  14852. hardcode_into_libs=yes
  14853. dynamic_linker="$host_os dld.sl"
  14854. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14855. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14856. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14857. soname_spec='$libname$release$shared_ext$major'
  14858. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14859. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14860. ;;
  14861. *)
  14862. shrext_cmds='.sl'
  14863. dynamic_linker="$host_os dld.sl"
  14864. shlibpath_var=SHLIB_PATH
  14865. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14866. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14867. soname_spec='$libname$release$shared_ext$major'
  14868. ;;
  14869. esac
  14870. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14871. postinstall_cmds='chmod 555 $lib'
  14872. # or fails outright, so override atomically:
  14873. install_override_mode=555
  14874. ;;
  14875. interix[3-9]*)
  14876. version_type=linux # correct to gnu/linux during the next big refactor
  14877. need_lib_prefix=no
  14878. need_version=no
  14879. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14880. soname_spec='$libname$release$shared_ext$major'
  14881. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14882. shlibpath_var=LD_LIBRARY_PATH
  14883. shlibpath_overrides_runpath=no
  14884. hardcode_into_libs=yes
  14885. ;;
  14886. irix5* | irix6* | nonstopux*)
  14887. case $host_os in
  14888. nonstopux*) version_type=nonstopux ;;
  14889. *)
  14890. if test yes = "$lt_cv_prog_gnu_ld"; then
  14891. version_type=linux # correct to gnu/linux during the next big refactor
  14892. else
  14893. version_type=irix
  14894. fi ;;
  14895. esac
  14896. need_lib_prefix=no
  14897. need_version=no
  14898. soname_spec='$libname$release$shared_ext$major'
  14899. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14900. case $host_os in
  14901. irix5* | nonstopux*)
  14902. libsuff= shlibsuff=
  14903. ;;
  14904. *)
  14905. case $LD in # libtool.m4 will add one of these switches to LD
  14906. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14907. libsuff= shlibsuff= libmagic=32-bit;;
  14908. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14909. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14910. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14911. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14912. *) libsuff= shlibsuff= libmagic=never-match;;
  14913. esac
  14914. ;;
  14915. esac
  14916. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14917. shlibpath_overrides_runpath=no
  14918. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14919. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14920. hardcode_into_libs=yes
  14921. ;;
  14922. # No shared lib support for Linux oldld, aout, or coff.
  14923. linux*oldld* | linux*aout* | linux*coff*)
  14924. dynamic_linker=no
  14925. ;;
  14926. linux*android*)
  14927. version_type=none # Android doesn't support versioned libraries.
  14928. need_lib_prefix=no
  14929. need_version=no
  14930. library_names_spec='$libname$release$shared_ext'
  14931. soname_spec='$libname$release$shared_ext'
  14932. finish_cmds=
  14933. shlibpath_var=LD_LIBRARY_PATH
  14934. shlibpath_overrides_runpath=yes
  14935. # This implies no fast_install, which is unacceptable.
  14936. # Some rework will be needed to allow for fast_install
  14937. # before this can be enabled.
  14938. hardcode_into_libs=yes
  14939. dynamic_linker='Android linker'
  14940. # Don't embed -rpath directories since the linker doesn't support them.
  14941. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14942. ;;
  14943. # This must be glibc/ELF.
  14944. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14945. version_type=linux # correct to gnu/linux during the next big refactor
  14946. need_lib_prefix=no
  14947. need_version=no
  14948. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14949. soname_spec='$libname$release$shared_ext$major'
  14950. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14951. shlibpath_var=LD_LIBRARY_PATH
  14952. shlibpath_overrides_runpath=no
  14953. # Some binutils ld are patched to set DT_RUNPATH
  14954. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14955. then :
  14956. printf %s "(cached) " >&6
  14957. else $as_nop
  14958. lt_cv_shlibpath_overrides_runpath=no
  14959. save_LDFLAGS=$LDFLAGS
  14960. save_libdir=$libdir
  14961. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14962. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14964. /* end confdefs.h. */
  14965. int
  14966. main (void)
  14967. {
  14968. ;
  14969. return 0;
  14970. }
  14971. _ACEOF
  14972. if ac_fn_cxx_try_link "$LINENO"
  14973. then :
  14974. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14975. then :
  14976. lt_cv_shlibpath_overrides_runpath=yes
  14977. fi
  14978. fi
  14979. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14980. conftest$ac_exeext conftest.$ac_ext
  14981. LDFLAGS=$save_LDFLAGS
  14982. libdir=$save_libdir
  14983. fi
  14984. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14985. # This implies no fast_install, which is unacceptable.
  14986. # Some rework will be needed to allow for fast_install
  14987. # before this can be enabled.
  14988. hardcode_into_libs=yes
  14989. # Add ABI-specific directories to the system library path.
  14990. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14991. # Ideally, we could use ldconfig to report *all* directores which are
  14992. # searched for libraries, however this is still not possible. Aside from not
  14993. # being certain /sbin/ldconfig is available, command
  14994. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14995. # even though it is searched at run-time. Try to do the best guess by
  14996. # appending ld.so.conf contents (and includes) to the search path.
  14997. if test -f /etc/ld.so.conf; then
  14998. 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' ' '`
  14999. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15000. fi
  15001. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15002. # powerpc, because MkLinux only supported shared libraries with the
  15003. # GNU dynamic linker. Since this was broken with cross compilers,
  15004. # most powerpc-linux boxes support dynamic linking these days and
  15005. # people can always --disable-shared, the test was removed, and we
  15006. # assume the GNU/Linux dynamic linker is in use.
  15007. dynamic_linker='GNU/Linux ld.so'
  15008. ;;
  15009. netbsd*)
  15010. version_type=sunos
  15011. need_lib_prefix=no
  15012. need_version=no
  15013. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15014. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15015. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15016. dynamic_linker='NetBSD (a.out) ld.so'
  15017. else
  15018. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15019. soname_spec='$libname$release$shared_ext$major'
  15020. dynamic_linker='NetBSD ld.elf_so'
  15021. fi
  15022. shlibpath_var=LD_LIBRARY_PATH
  15023. shlibpath_overrides_runpath=yes
  15024. hardcode_into_libs=yes
  15025. ;;
  15026. newsos6)
  15027. version_type=linux # correct to gnu/linux during the next big refactor
  15028. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15029. shlibpath_var=LD_LIBRARY_PATH
  15030. shlibpath_overrides_runpath=yes
  15031. ;;
  15032. *nto* | *qnx*)
  15033. version_type=qnx
  15034. need_lib_prefix=no
  15035. need_version=no
  15036. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15037. soname_spec='$libname$release$shared_ext$major'
  15038. shlibpath_var=LD_LIBRARY_PATH
  15039. shlibpath_overrides_runpath=no
  15040. hardcode_into_libs=yes
  15041. dynamic_linker='ldqnx.so'
  15042. ;;
  15043. openbsd* | bitrig*)
  15044. version_type=sunos
  15045. sys_lib_dlsearch_path_spec=/usr/lib
  15046. need_lib_prefix=no
  15047. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15048. need_version=no
  15049. else
  15050. need_version=yes
  15051. fi
  15052. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15053. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15054. shlibpath_var=LD_LIBRARY_PATH
  15055. shlibpath_overrides_runpath=yes
  15056. ;;
  15057. os2*)
  15058. libname_spec='$name'
  15059. shrext_cmds=.dll
  15060. need_lib_prefix=no
  15061. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15062. # SDL customization: removed versioning support.
  15063. # version_type=windows
  15064. # need_version=no
  15065. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15066. # v=$($ECHO $release$versuffix | tr -d .-);
  15067. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15068. # $ECHO $n$v`$shared_ext'
  15069. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15070. library_names_spec='${libname}_dll.$libext'
  15071. dynamic_linker='OS/2 ld.exe'
  15072. shlibpath_var=BEGINLIBPATH
  15073. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15074. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15075. postinstall_cmds='base_file=`basename \$file`~
  15076. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15077. dldir=$destdir/`dirname \$dlpath`~
  15078. test -d \$dldir || mkdir -p \$dldir~
  15079. $install_prog $dir/$dlname \$dldir/$dlname~
  15080. chmod a+x \$dldir/$dlname~
  15081. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15082. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15083. fi'
  15084. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15085. dlpath=$dir/\$dldll~
  15086. $RM \$dlpath'
  15087. ;;
  15088. osf3* | osf4* | osf5*)
  15089. version_type=osf
  15090. need_lib_prefix=no
  15091. need_version=no
  15092. soname_spec='$libname$release$shared_ext$major'
  15093. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15094. shlibpath_var=LD_LIBRARY_PATH
  15095. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15096. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15097. ;;
  15098. rdos*)
  15099. dynamic_linker=no
  15100. ;;
  15101. solaris*)
  15102. version_type=linux # correct to gnu/linux during the next big refactor
  15103. need_lib_prefix=no
  15104. need_version=no
  15105. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15106. soname_spec='$libname$release$shared_ext$major'
  15107. shlibpath_var=LD_LIBRARY_PATH
  15108. shlibpath_overrides_runpath=yes
  15109. hardcode_into_libs=yes
  15110. # ldd complains unless libraries are executable
  15111. postinstall_cmds='chmod +x $lib'
  15112. ;;
  15113. sunos4*)
  15114. version_type=sunos
  15115. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15116. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15117. shlibpath_var=LD_LIBRARY_PATH
  15118. shlibpath_overrides_runpath=yes
  15119. if test yes = "$with_gnu_ld"; then
  15120. need_lib_prefix=no
  15121. fi
  15122. need_version=yes
  15123. ;;
  15124. sysv4 | sysv4.3*)
  15125. version_type=linux # correct to gnu/linux during the next big refactor
  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. case $host_vendor in
  15130. sni)
  15131. shlibpath_overrides_runpath=no
  15132. need_lib_prefix=no
  15133. runpath_var=LD_RUN_PATH
  15134. ;;
  15135. siemens)
  15136. need_lib_prefix=no
  15137. ;;
  15138. motorola)
  15139. need_lib_prefix=no
  15140. need_version=no
  15141. shlibpath_overrides_runpath=no
  15142. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15143. ;;
  15144. esac
  15145. ;;
  15146. sysv4*MP*)
  15147. if test -d /usr/nec; then
  15148. version_type=linux # correct to gnu/linux during the next big refactor
  15149. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15150. soname_spec='$libname$shared_ext.$major'
  15151. shlibpath_var=LD_LIBRARY_PATH
  15152. fi
  15153. ;;
  15154. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15155. version_type=sco
  15156. need_lib_prefix=no
  15157. need_version=no
  15158. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15159. soname_spec='$libname$release$shared_ext$major'
  15160. shlibpath_var=LD_LIBRARY_PATH
  15161. shlibpath_overrides_runpath=yes
  15162. hardcode_into_libs=yes
  15163. if test yes = "$with_gnu_ld"; then
  15164. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15165. else
  15166. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15167. case $host_os in
  15168. sco3.2v5*)
  15169. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15170. ;;
  15171. esac
  15172. fi
  15173. sys_lib_dlsearch_path_spec='/usr/lib'
  15174. ;;
  15175. tpf*)
  15176. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15177. version_type=linux # correct to gnu/linux during the next big refactor
  15178. need_lib_prefix=no
  15179. need_version=no
  15180. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15181. shlibpath_var=LD_LIBRARY_PATH
  15182. shlibpath_overrides_runpath=no
  15183. hardcode_into_libs=yes
  15184. ;;
  15185. uts4*)
  15186. version_type=linux # correct to gnu/linux during the next big refactor
  15187. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15188. soname_spec='$libname$release$shared_ext$major'
  15189. shlibpath_var=LD_LIBRARY_PATH
  15190. ;;
  15191. *)
  15192. dynamic_linker=no
  15193. ;;
  15194. esac
  15195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15196. printf "%s\n" "$dynamic_linker" >&6; }
  15197. test no = "$dynamic_linker" && can_build_shared=no
  15198. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15199. if test yes = "$GCC"; then
  15200. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15201. fi
  15202. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15203. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15204. fi
  15205. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15206. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15207. fi
  15208. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15209. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15210. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15211. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15212. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15213. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15215. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15216. hardcode_action_CXX=
  15217. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15218. test -n "$runpath_var_CXX" ||
  15219. test yes = "$hardcode_automatic_CXX"; then
  15220. # We can hardcode non-existent directories.
  15221. if test no != "$hardcode_direct_CXX" &&
  15222. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15223. # have to relink, otherwise we might link with an installed library
  15224. # when we should be linking with a yet-to-be-installed one
  15225. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15226. test no != "$hardcode_minus_L_CXX"; then
  15227. # Linking always hardcodes the temporary library directory.
  15228. hardcode_action_CXX=relink
  15229. else
  15230. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15231. hardcode_action_CXX=immediate
  15232. fi
  15233. else
  15234. # We cannot hardcode anything, or else we can only hardcode existing
  15235. # directories.
  15236. hardcode_action_CXX=unsupported
  15237. fi
  15238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15239. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15240. if test relink = "$hardcode_action_CXX" ||
  15241. test yes = "$inherit_rpath_CXX"; then
  15242. # Fast installation is not supported
  15243. enable_fast_install=no
  15244. elif test yes = "$shlibpath_overrides_runpath" ||
  15245. test no = "$enable_shared"; then
  15246. # Fast installation is not necessary
  15247. enable_fast_install=needless
  15248. fi
  15249. fi # test -n "$compiler"
  15250. CC=$lt_save_CC
  15251. CFLAGS=$lt_save_CFLAGS
  15252. LDCXX=$LD
  15253. LD=$lt_save_LD
  15254. GCC=$lt_save_GCC
  15255. with_gnu_ld=$lt_save_with_gnu_ld
  15256. lt_cv_path_LDCXX=$lt_cv_path_LD
  15257. lt_cv_path_LD=$lt_save_path_LD
  15258. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15259. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15260. fi # test yes != "$_lt_caught_CXX_error"
  15261. ac_ext=c
  15262. ac_cpp='$CPP $CPPFLAGS'
  15263. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15264. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15265. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15267. printf %s "checking for egrep... " >&6; }
  15268. if test ${ac_cv_path_EGREP+y}
  15269. then :
  15270. printf %s "(cached) " >&6
  15271. else $as_nop
  15272. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15273. then ac_cv_path_EGREP="$GREP -E"
  15274. else
  15275. if test -z "$EGREP"; then
  15276. ac_path_EGREP_found=false
  15277. # Loop through the user's path and test for each of PROGNAME-LIST
  15278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15279. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15280. do
  15281. IFS=$as_save_IFS
  15282. case $as_dir in #(((
  15283. '') as_dir=./ ;;
  15284. */) ;;
  15285. *) as_dir=$as_dir/ ;;
  15286. esac
  15287. for ac_prog in egrep
  15288. do
  15289. for ac_exec_ext in '' $ac_executable_extensions; do
  15290. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15291. as_fn_executable_p "$ac_path_EGREP" || continue
  15292. # Check for GNU ac_path_EGREP and select it if it is found.
  15293. # Check for GNU $ac_path_EGREP
  15294. case `"$ac_path_EGREP" --version 2>&1` in
  15295. *GNU*)
  15296. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15297. *)
  15298. ac_count=0
  15299. printf %s 0123456789 >"conftest.in"
  15300. while :
  15301. do
  15302. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15303. mv "conftest.tmp" "conftest.in"
  15304. cp "conftest.in" "conftest.nl"
  15305. printf "%s\n" 'EGREP' >> "conftest.nl"
  15306. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15307. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15308. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15309. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15310. # Best one so far, save it but keep looking for a better one
  15311. ac_cv_path_EGREP="$ac_path_EGREP"
  15312. ac_path_EGREP_max=$ac_count
  15313. fi
  15314. # 10*(2^10) chars as input seems more than enough
  15315. test $ac_count -gt 10 && break
  15316. done
  15317. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15318. esac
  15319. $ac_path_EGREP_found && break 3
  15320. done
  15321. done
  15322. done
  15323. IFS=$as_save_IFS
  15324. if test -z "$ac_cv_path_EGREP"; then
  15325. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15326. fi
  15327. else
  15328. ac_cv_path_EGREP=$EGREP
  15329. fi
  15330. fi
  15331. fi
  15332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15333. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15334. EGREP="$ac_cv_path_EGREP"
  15335. # Find a good install program. We prefer a C program (faster),
  15336. # so one script is as good as another. But avoid the broken or
  15337. # incompatible versions:
  15338. # SysV /etc/install, /usr/sbin/install
  15339. # SunOS /usr/etc/install
  15340. # IRIX /sbin/install
  15341. # AIX /bin/install
  15342. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15343. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15344. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15345. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15346. # OS/2's system install, which has a completely different semantic
  15347. # ./install, which can be erroneously created by make from ./install.sh.
  15348. # Reject install programs that cannot install multiple files.
  15349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15350. printf %s "checking for a BSD-compatible install... " >&6; }
  15351. if test -z "$INSTALL"; then
  15352. if test ${ac_cv_path_install+y}
  15353. then :
  15354. printf %s "(cached) " >&6
  15355. else $as_nop
  15356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15357. for as_dir in $PATH
  15358. do
  15359. IFS=$as_save_IFS
  15360. case $as_dir in #(((
  15361. '') as_dir=./ ;;
  15362. */) ;;
  15363. *) as_dir=$as_dir/ ;;
  15364. esac
  15365. # Account for fact that we put trailing slashes in our PATH walk.
  15366. case $as_dir in #((
  15367. ./ | /[cC]/* | \
  15368. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15369. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15370. /usr/ucb/* ) ;;
  15371. *)
  15372. # OSF1 and SCO ODT 3.0 have their own names for install.
  15373. # Don't use installbsd from OSF since it installs stuff as root
  15374. # by default.
  15375. for ac_prog in ginstall scoinst install; do
  15376. for ac_exec_ext in '' $ac_executable_extensions; do
  15377. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15378. if test $ac_prog = install &&
  15379. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15380. # AIX install. It has an incompatible calling convention.
  15381. :
  15382. elif test $ac_prog = install &&
  15383. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15384. # program-specific install script used by HP pwplus--don't use.
  15385. :
  15386. else
  15387. rm -rf conftest.one conftest.two conftest.dir
  15388. echo one > conftest.one
  15389. echo two > conftest.two
  15390. mkdir conftest.dir
  15391. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15392. test -s conftest.one && test -s conftest.two &&
  15393. test -s conftest.dir/conftest.one &&
  15394. test -s conftest.dir/conftest.two
  15395. then
  15396. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15397. break 3
  15398. fi
  15399. fi
  15400. fi
  15401. done
  15402. done
  15403. ;;
  15404. esac
  15405. done
  15406. IFS=$as_save_IFS
  15407. rm -rf conftest.one conftest.two conftest.dir
  15408. fi
  15409. if test ${ac_cv_path_install+y}; then
  15410. INSTALL=$ac_cv_path_install
  15411. else
  15412. # As a last resort, use the slow shell script. Don't cache a
  15413. # value for INSTALL within a source directory, because that will
  15414. # break other packages using the cache if that directory is
  15415. # removed, or if the value is a relative name.
  15416. INSTALL=$ac_install_sh
  15417. fi
  15418. fi
  15419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15420. printf "%s\n" "$INSTALL" >&6; }
  15421. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15422. # It thinks the first close brace ends the variable substitution.
  15423. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15424. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15425. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15427. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15428. set x ${MAKE-make}
  15429. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15430. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15431. then :
  15432. printf %s "(cached) " >&6
  15433. else $as_nop
  15434. cat >conftest.make <<\_ACEOF
  15435. SHELL = /bin/sh
  15436. all:
  15437. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15438. _ACEOF
  15439. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15440. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15441. *@@@%%%=?*=@@@%%%*)
  15442. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15443. *)
  15444. eval ac_cv_prog_make_${ac_make}_set=no;;
  15445. esac
  15446. rm -f conftest.make
  15447. fi
  15448. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15450. printf "%s\n" "yes" >&6; }
  15451. SET_MAKE=
  15452. else
  15453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15454. printf "%s\n" "no" >&6; }
  15455. SET_MAKE="MAKE=${MAKE-make}"
  15456. fi
  15457. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15458. if test -n "$ac_tool_prefix"; then
  15459. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15460. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15462. printf %s "checking for $ac_word... " >&6; }
  15463. if test ${ac_cv_path_PKG_CONFIG+y}
  15464. then :
  15465. printf %s "(cached) " >&6
  15466. else $as_nop
  15467. case $PKG_CONFIG in
  15468. [\\/]* | ?:[\\/]*)
  15469. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15470. ;;
  15471. *)
  15472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15473. for as_dir in $PATH
  15474. do
  15475. IFS=$as_save_IFS
  15476. case $as_dir in #(((
  15477. '') as_dir=./ ;;
  15478. */) ;;
  15479. *) as_dir=$as_dir/ ;;
  15480. esac
  15481. for ac_exec_ext in '' $ac_executable_extensions; do
  15482. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15483. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15484. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15485. break 2
  15486. fi
  15487. done
  15488. done
  15489. IFS=$as_save_IFS
  15490. ;;
  15491. esac
  15492. fi
  15493. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15494. if test -n "$PKG_CONFIG"; then
  15495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15496. printf "%s\n" "$PKG_CONFIG" >&6; }
  15497. else
  15498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15499. printf "%s\n" "no" >&6; }
  15500. fi
  15501. fi
  15502. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15503. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15504. # Extract the first word of "pkg-config", so it can be a program name with args.
  15505. set dummy pkg-config; ac_word=$2
  15506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15507. printf %s "checking for $ac_word... " >&6; }
  15508. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15509. then :
  15510. printf %s "(cached) " >&6
  15511. else $as_nop
  15512. case $ac_pt_PKG_CONFIG in
  15513. [\\/]* | ?:[\\/]*)
  15514. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15515. ;;
  15516. *)
  15517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15518. for as_dir in $PATH
  15519. do
  15520. IFS=$as_save_IFS
  15521. case $as_dir in #(((
  15522. '') as_dir=./ ;;
  15523. */) ;;
  15524. *) as_dir=$as_dir/ ;;
  15525. esac
  15526. for ac_exec_ext in '' $ac_executable_extensions; do
  15527. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15528. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15529. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15530. break 2
  15531. fi
  15532. done
  15533. done
  15534. IFS=$as_save_IFS
  15535. ;;
  15536. esac
  15537. fi
  15538. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15539. if test -n "$ac_pt_PKG_CONFIG"; then
  15540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15541. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15542. else
  15543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15544. printf "%s\n" "no" >&6; }
  15545. fi
  15546. if test "x$ac_pt_PKG_CONFIG" = x; then
  15547. PKG_CONFIG=""
  15548. else
  15549. case $cross_compiling:$ac_tool_warned in
  15550. yes:)
  15551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15552. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15553. ac_tool_warned=yes ;;
  15554. esac
  15555. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15556. fi
  15557. else
  15558. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15559. fi
  15560. fi
  15561. if test -n "$PKG_CONFIG"; then
  15562. _pkg_min_version=0.9.0
  15563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15564. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15565. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15567. printf "%s\n" "yes" >&6; }
  15568. else
  15569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15570. printf "%s\n" "no" >&6; }
  15571. PKG_CONFIG=""
  15572. fi
  15573. fi
  15574. if test -z "$AWK" ; then
  15575. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15576. fi
  15577. for ac_prog in gsort sort
  15578. do
  15579. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15580. set dummy $ac_prog; ac_word=$2
  15581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15582. printf %s "checking for $ac_word... " >&6; }
  15583. if test ${ac_cv_prog_SORT+y}
  15584. then :
  15585. printf %s "(cached) " >&6
  15586. else $as_nop
  15587. if test -n "$SORT"; then
  15588. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15589. else
  15590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15591. for as_dir in $PATH
  15592. do
  15593. IFS=$as_save_IFS
  15594. case $as_dir in #(((
  15595. '') as_dir=./ ;;
  15596. */) ;;
  15597. *) as_dir=$as_dir/ ;;
  15598. esac
  15599. for ac_exec_ext in '' $ac_executable_extensions; do
  15600. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15601. ac_cv_prog_SORT="$ac_prog"
  15602. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15603. break 2
  15604. fi
  15605. done
  15606. done
  15607. IFS=$as_save_IFS
  15608. fi
  15609. fi
  15610. SORT=$ac_cv_prog_SORT
  15611. if test -n "$SORT"; then
  15612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15613. printf "%s\n" "$SORT" >&6; }
  15614. else
  15615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15616. printf "%s\n" "no" >&6; }
  15617. fi
  15618. test -n "$SORT" && break
  15619. done
  15620. test -n "$SORT" || SORT="false"
  15621. if ! "$SORT" -V </dev/null >/dev/null
  15622. then :
  15623. as_fn_error $? "GNU sort(1) is required" "$LINENO" 5
  15624. fi
  15625. # Check whether --enable-largefile was given.
  15626. if test ${enable_largefile+y}
  15627. then :
  15628. enableval=$enable_largefile;
  15629. fi
  15630. if test "$enable_largefile" != no; then
  15631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15632. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15633. if test ${ac_cv_sys_largefile_CC+y}
  15634. then :
  15635. printf %s "(cached) " >&6
  15636. else $as_nop
  15637. ac_cv_sys_largefile_CC=no
  15638. if test "$GCC" != yes; then
  15639. ac_save_CC=$CC
  15640. while :; do
  15641. # IRIX 6.2 and later do not support large files by default,
  15642. # so use the C compiler's -n32 option if that helps.
  15643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15644. /* end confdefs.h. */
  15645. #include <sys/types.h>
  15646. /* Check that off_t can represent 2**63 - 1 correctly.
  15647. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15648. since some C++ compilers masquerading as C compilers
  15649. incorrectly reject 9223372036854775807. */
  15650. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15651. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15652. && LARGE_OFF_T % 2147483647 == 1)
  15653. ? 1 : -1];
  15654. int
  15655. main (void)
  15656. {
  15657. ;
  15658. return 0;
  15659. }
  15660. _ACEOF
  15661. if ac_fn_c_try_compile "$LINENO"
  15662. then :
  15663. break
  15664. fi
  15665. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15666. CC="$CC -n32"
  15667. if ac_fn_c_try_compile "$LINENO"
  15668. then :
  15669. ac_cv_sys_largefile_CC=' -n32'; break
  15670. fi
  15671. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15672. break
  15673. done
  15674. CC=$ac_save_CC
  15675. rm -f conftest.$ac_ext
  15676. fi
  15677. fi
  15678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15679. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15680. if test "$ac_cv_sys_largefile_CC" != no; then
  15681. CC=$CC$ac_cv_sys_largefile_CC
  15682. fi
  15683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15684. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15685. if test ${ac_cv_sys_file_offset_bits+y}
  15686. then :
  15687. printf %s "(cached) " >&6
  15688. else $as_nop
  15689. while :; do
  15690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15691. /* end confdefs.h. */
  15692. #include <sys/types.h>
  15693. /* Check that off_t can represent 2**63 - 1 correctly.
  15694. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15695. since some C++ compilers masquerading as C compilers
  15696. incorrectly reject 9223372036854775807. */
  15697. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15698. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15699. && LARGE_OFF_T % 2147483647 == 1)
  15700. ? 1 : -1];
  15701. int
  15702. main (void)
  15703. {
  15704. ;
  15705. return 0;
  15706. }
  15707. _ACEOF
  15708. if ac_fn_c_try_compile "$LINENO"
  15709. then :
  15710. ac_cv_sys_file_offset_bits=no; break
  15711. fi
  15712. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15714. /* end confdefs.h. */
  15715. #define _FILE_OFFSET_BITS 64
  15716. #include <sys/types.h>
  15717. /* Check that off_t can represent 2**63 - 1 correctly.
  15718. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15719. since some C++ compilers masquerading as C compilers
  15720. incorrectly reject 9223372036854775807. */
  15721. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15722. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15723. && LARGE_OFF_T % 2147483647 == 1)
  15724. ? 1 : -1];
  15725. int
  15726. main (void)
  15727. {
  15728. ;
  15729. return 0;
  15730. }
  15731. _ACEOF
  15732. if ac_fn_c_try_compile "$LINENO"
  15733. then :
  15734. ac_cv_sys_file_offset_bits=64; break
  15735. fi
  15736. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15737. ac_cv_sys_file_offset_bits=unknown
  15738. break
  15739. done
  15740. fi
  15741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15742. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15743. case $ac_cv_sys_file_offset_bits in #(
  15744. no | unknown) ;;
  15745. *)
  15746. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15747. ;;
  15748. esac
  15749. rm -rf conftest*
  15750. if test $ac_cv_sys_file_offset_bits = unknown; then
  15751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15752. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15753. if test ${ac_cv_sys_large_files+y}
  15754. then :
  15755. printf %s "(cached) " >&6
  15756. else $as_nop
  15757. while :; do
  15758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15759. /* end confdefs.h. */
  15760. #include <sys/types.h>
  15761. /* Check that off_t can represent 2**63 - 1 correctly.
  15762. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15763. since some C++ compilers masquerading as C compilers
  15764. incorrectly reject 9223372036854775807. */
  15765. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15766. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15767. && LARGE_OFF_T % 2147483647 == 1)
  15768. ? 1 : -1];
  15769. int
  15770. main (void)
  15771. {
  15772. ;
  15773. return 0;
  15774. }
  15775. _ACEOF
  15776. if ac_fn_c_try_compile "$LINENO"
  15777. then :
  15778. ac_cv_sys_large_files=no; break
  15779. fi
  15780. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15782. /* end confdefs.h. */
  15783. #define _LARGE_FILES 1
  15784. #include <sys/types.h>
  15785. /* Check that off_t can represent 2**63 - 1 correctly.
  15786. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15787. since some C++ compilers masquerading as C compilers
  15788. incorrectly reject 9223372036854775807. */
  15789. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15790. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15791. && LARGE_OFF_T % 2147483647 == 1)
  15792. ? 1 : -1];
  15793. int
  15794. main (void)
  15795. {
  15796. ;
  15797. return 0;
  15798. }
  15799. _ACEOF
  15800. if ac_fn_c_try_compile "$LINENO"
  15801. then :
  15802. ac_cv_sys_large_files=1; break
  15803. fi
  15804. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15805. ac_cv_sys_large_files=unknown
  15806. break
  15807. done
  15808. fi
  15809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15810. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15811. case $ac_cv_sys_large_files in #(
  15812. no | unknown) ;;
  15813. *)
  15814. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15815. ;;
  15816. esac
  15817. rm -rf conftest*
  15818. fi
  15819. fi
  15820. case "$host" in
  15821. *-*-mingw*)
  15822. # Except on msys, where make can't handle full pathnames (bug 1972)
  15823. ;;
  15824. *)
  15825. srcdir=`cd $srcdir && pwd`
  15826. ;;
  15827. esac
  15828. INCLUDE="-I$srcdir/include"
  15829. case "$host" in
  15830. *-*-nto-qnx*)
  15831. ;;
  15832. *)
  15833. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15834. ;;
  15835. esac
  15836. case "$host" in
  15837. *-*-haiku*)
  15838. LINKER='$(CXX)'
  15839. LIBTOOLLINKERTAG='CXX'
  15840. ;;
  15841. *)
  15842. LINKER='$(CC)'
  15843. LIBTOOLLINKERTAG='CC'
  15844. ;;
  15845. esac
  15846. if test x$srcdir != x.; then
  15847. INCLUDE="-Iinclude $INCLUDE"
  15848. elif test -d .git; then
  15849. as_fn_error $? "
  15850. *** When building from a git clone you should configure and build in a
  15851. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15852. " "$LINENO" 5
  15853. fi
  15854. BASE_CFLAGS=""
  15855. BASE_LDFLAGS=""
  15856. case "$host" in
  15857. *-*-cygwin*)
  15858. # We build SDL on cygwin without the UNIX emulation layer
  15859. save_CFLAGS="$CFLAGS"
  15860. have_no_cygwin=no
  15861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15862. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15863. CFLAGS="$save_CFLAGS -mno-cygwin"
  15864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15865. /* end confdefs.h. */
  15866. int
  15867. main (void)
  15868. {
  15869. ;
  15870. return 0;
  15871. }
  15872. _ACEOF
  15873. if ac_fn_c_try_compile "$LINENO"
  15874. then :
  15875. have_no_cygwin=yes
  15876. fi
  15877. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15879. printf "%s\n" "$have_no_cygwin" >&6; }
  15880. CFLAGS="$save_CFLAGS"
  15881. if test x$have_no_cygwin = xyes; then
  15882. BASE_CFLAGS="-mno-cygwin"
  15883. BASE_LDFLAGS="-mno-cygwin"
  15884. fi
  15885. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15886. ;;
  15887. esac
  15888. # Uncomment the following line if you want to force SDL and applications
  15889. # built with it to be compiled for a particular architecture.
  15890. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15891. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15892. # The default optimization for SDL is -O3 (Bug #31)
  15893. if test "x$orig_CFLAGS" = x; then
  15894. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15895. fi
  15896. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15897. BUILD_LDFLAGS="$LDFLAGS"
  15898. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15899. ## These are common directories to find software packages
  15900. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15901. # if test -d $path/include; then
  15902. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15903. # fi
  15904. # if test -d $path/lib; then
  15905. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15906. # fi
  15907. #done
  15908. SDL_CFLAGS="$BASE_CFLAGS"
  15909. SDL_LIBS="-lSDL2"
  15910. if test "x$BASE_LDFLAGS" != x; then
  15911. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15912. fi
  15913. if test "x$EXTRA_CFLAGS" != x; then
  15914. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15915. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15916. fi
  15917. if test "x$EXTRA_LDFLAGS" != x; then
  15918. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15919. fi
  15920. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15921. find_lib()
  15922. {
  15923. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15924. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15925. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15926. if test "$cross_compiling" = yes; then
  15927. host_lib_path=""
  15928. else
  15929. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15930. fi
  15931. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15932. 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`
  15933. if test x$lib != x; then
  15934. echo $lib
  15935. return
  15936. fi
  15937. done
  15938. }
  15939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15940. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15941. if test ${ac_cv_c_const+y}
  15942. then :
  15943. printf %s "(cached) " >&6
  15944. else $as_nop
  15945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15946. /* end confdefs.h. */
  15947. int
  15948. main (void)
  15949. {
  15950. #ifndef __cplusplus
  15951. /* Ultrix mips cc rejects this sort of thing. */
  15952. typedef int charset[2];
  15953. const charset cs = { 0, 0 };
  15954. /* SunOS 4.1.1 cc rejects this. */
  15955. char const *const *pcpcc;
  15956. char **ppc;
  15957. /* NEC SVR4.0.2 mips cc rejects this. */
  15958. struct point {int x, y;};
  15959. static struct point const zero = {0,0};
  15960. /* IBM XL C 1.02.0.0 rejects this.
  15961. It does not let you subtract one const X* pointer from another in
  15962. an arm of an if-expression whose if-part is not a constant
  15963. expression */
  15964. const char *g = "string";
  15965. pcpcc = &g + (g ? g-g : 0);
  15966. /* HPUX 7.0 cc rejects these. */
  15967. ++pcpcc;
  15968. ppc = (char**) pcpcc;
  15969. pcpcc = (char const *const *) ppc;
  15970. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15971. char tx;
  15972. char *t = &tx;
  15973. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15974. *t++ = 0;
  15975. if (s) return 0;
  15976. }
  15977. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15978. int x[] = {25, 17};
  15979. const int *foo = &x[0];
  15980. ++foo;
  15981. }
  15982. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15983. typedef const int *iptr;
  15984. iptr p = 0;
  15985. ++p;
  15986. }
  15987. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15988. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15989. struct s { int j; const int *ap[3]; } bx;
  15990. struct s *b = &bx; b->j = 5;
  15991. }
  15992. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15993. const int foo = 10;
  15994. if (!foo) return 0;
  15995. }
  15996. return !cs[0] && !zero.x;
  15997. #endif
  15998. ;
  15999. return 0;
  16000. }
  16001. _ACEOF
  16002. if ac_fn_c_try_compile "$LINENO"
  16003. then :
  16004. ac_cv_c_const=yes
  16005. else $as_nop
  16006. ac_cv_c_const=no
  16007. fi
  16008. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16009. fi
  16010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16011. printf "%s\n" "$ac_cv_c_const" >&6; }
  16012. if test $ac_cv_c_const = no; then
  16013. printf "%s\n" "#define const /**/" >>confdefs.h
  16014. fi
  16015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16016. printf %s "checking for inline... " >&6; }
  16017. if test ${ac_cv_c_inline+y}
  16018. then :
  16019. printf %s "(cached) " >&6
  16020. else $as_nop
  16021. ac_cv_c_inline=no
  16022. for ac_kw in inline __inline__ __inline; do
  16023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16024. /* end confdefs.h. */
  16025. #ifndef __cplusplus
  16026. typedef int foo_t;
  16027. static $ac_kw foo_t static_foo (void) {return 0; }
  16028. $ac_kw foo_t foo (void) {return 0; }
  16029. #endif
  16030. _ACEOF
  16031. if ac_fn_c_try_compile "$LINENO"
  16032. then :
  16033. ac_cv_c_inline=$ac_kw
  16034. fi
  16035. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16036. test "$ac_cv_c_inline" != no && break
  16037. done
  16038. fi
  16039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16040. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16041. case $ac_cv_c_inline in
  16042. inline | yes) ;;
  16043. *)
  16044. case $ac_cv_c_inline in
  16045. no) ac_val=;;
  16046. *) ac_val=$ac_cv_c_inline;;
  16047. esac
  16048. cat >>confdefs.h <<_ACEOF
  16049. #ifndef __cplusplus
  16050. #define inline $ac_val
  16051. #endif
  16052. _ACEOF
  16053. ;;
  16054. esac
  16055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16056. printf %s "checking for working volatile... " >&6; }
  16057. if test ${ac_cv_c_volatile+y}
  16058. then :
  16059. printf %s "(cached) " >&6
  16060. else $as_nop
  16061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16062. /* end confdefs.h. */
  16063. int
  16064. main (void)
  16065. {
  16066. volatile int x;
  16067. int * volatile y = (int *) 0;
  16068. return !x && !y;
  16069. ;
  16070. return 0;
  16071. }
  16072. _ACEOF
  16073. if ac_fn_c_try_compile "$LINENO"
  16074. then :
  16075. ac_cv_c_volatile=yes
  16076. else $as_nop
  16077. ac_cv_c_volatile=no
  16078. fi
  16079. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16080. fi
  16081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16082. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16083. if test $ac_cv_c_volatile = no; then
  16084. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16085. fi
  16086. # Check whether --enable-assertions was given.
  16087. if test ${enable_assertions+y}
  16088. then :
  16089. enableval=$enable_assertions;
  16090. else $as_nop
  16091. enable_assertions=auto
  16092. fi
  16093. case "$enable_assertions" in
  16094. auto) # Use optimization settings to determine assertion level
  16095. ;;
  16096. disabled)
  16097. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16098. ;;
  16099. release)
  16100. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16101. ;;
  16102. enabled)
  16103. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16104. ;;
  16105. paranoid)
  16106. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16107. ;;
  16108. *)
  16109. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16110. ;;
  16111. esac
  16112. 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"
  16113. # Check whether --enable-dependency-tracking was given.
  16114. if test ${enable_dependency_tracking+y}
  16115. then :
  16116. enableval=$enable_dependency_tracking;
  16117. else $as_nop
  16118. enable_dependency_tracking=yes
  16119. fi
  16120. if test x$enable_dependency_tracking = xyes; then
  16121. have_gcc_mmd_mt=no
  16122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16123. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16125. /* end confdefs.h. */
  16126. #if !defined(__GNUC__) || __GNUC__ < 3
  16127. #error Dependency tracking requires GCC 3.0 or newer
  16128. #endif
  16129. int
  16130. main (void)
  16131. {
  16132. ;
  16133. return 0;
  16134. }
  16135. _ACEOF
  16136. if ac_fn_c_try_compile "$LINENO"
  16137. then :
  16138. have_gcc_mmd_mt=yes
  16139. fi
  16140. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16142. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16143. if test x$have_gcc_mmd_mt = xyes; then
  16144. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16145. fi
  16146. fi
  16147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16148. printf %s "checking for linker option --no-undefined... " >&6; }
  16149. have_no_undefined=no
  16150. case "$host" in
  16151. *-*-openbsd*)
  16152. ;;
  16153. *)
  16154. save_LDFLAGS="$LDFLAGS"
  16155. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16157. /* end confdefs.h. */
  16158. int
  16159. main (void)
  16160. {
  16161. ;
  16162. return 0;
  16163. }
  16164. _ACEOF
  16165. if ac_fn_c_try_link "$LINENO"
  16166. then :
  16167. have_no_undefined=yes
  16168. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16169. fi
  16170. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16171. conftest$ac_exeext conftest.$ac_ext
  16172. LDFLAGS="$save_LDFLAGS"
  16173. ;;
  16174. esac
  16175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16176. printf "%s\n" "$have_no_undefined" >&6; }
  16177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16178. printf %s "checking for linker option --dynamicbase... " >&6; }
  16179. have_dynamicbase=no
  16180. case "$host" in
  16181. *)
  16182. save_LDFLAGS="$LDFLAGS"
  16183. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16185. /* end confdefs.h. */
  16186. int
  16187. main (void)
  16188. {
  16189. ;
  16190. return 0;
  16191. }
  16192. _ACEOF
  16193. if ac_fn_c_try_link "$LINENO"
  16194. then :
  16195. have_dynamicbase=yes
  16196. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16197. fi
  16198. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16199. conftest$ac_exeext conftest.$ac_ext
  16200. LDFLAGS="$save_LDFLAGS"
  16201. ;;
  16202. esac
  16203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16204. printf "%s\n" "$have_dynamicbase" >&6; }
  16205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16206. printf %s "checking for linker option --nxcompat... " >&6; }
  16207. have_nxcompat=no
  16208. case "$host" in
  16209. *)
  16210. save_LDFLAGS="$LDFLAGS"
  16211. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16213. /* end confdefs.h. */
  16214. int
  16215. main (void)
  16216. {
  16217. ;
  16218. return 0;
  16219. }
  16220. _ACEOF
  16221. if ac_fn_c_try_link "$LINENO"
  16222. then :
  16223. have_nxcompat=yes
  16224. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16225. fi
  16226. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16227. conftest$ac_exeext conftest.$ac_ext
  16228. LDFLAGS="$save_LDFLAGS"
  16229. ;;
  16230. esac
  16231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16232. printf "%s\n" "$have_nxcompat" >&6; }
  16233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16234. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16235. have_high_entropy_va=no
  16236. case "$host" in
  16237. *)
  16238. save_LDFLAGS="$LDFLAGS"
  16239. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16241. /* end confdefs.h. */
  16242. int
  16243. main (void)
  16244. {
  16245. ;
  16246. return 0;
  16247. }
  16248. _ACEOF
  16249. if ac_fn_c_try_link "$LINENO"
  16250. then :
  16251. have_high_entropy_va=yes
  16252. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16253. fi
  16254. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16255. conftest$ac_exeext conftest.$ac_ext
  16256. LDFLAGS="$save_LDFLAGS"
  16257. ;;
  16258. esac
  16259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16260. printf "%s\n" "$have_high_entropy_va" >&6; }
  16261. # Check whether --enable-libc was given.
  16262. if test ${enable_libc+y}
  16263. then :
  16264. enableval=$enable_libc;
  16265. else $as_nop
  16266. enable_libc=yes
  16267. fi
  16268. if test x$enable_libc = xyes; then
  16269. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16270. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16271. if test "x$ac_cv_header_sys_types_h" = xyes
  16272. then :
  16273. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16274. fi
  16275. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16276. if test "x$ac_cv_header_stdio_h" = xyes
  16277. then :
  16278. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16279. fi
  16280. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16281. if test "x$ac_cv_header_stdlib_h" = xyes
  16282. then :
  16283. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16284. fi
  16285. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16286. if test "x$ac_cv_header_stddef_h" = xyes
  16287. then :
  16288. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16289. fi
  16290. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16291. if test "x$ac_cv_header_stdarg_h" = xyes
  16292. then :
  16293. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16294. fi
  16295. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16296. if test "x$ac_cv_header_malloc_h" = xyes
  16297. then :
  16298. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16299. fi
  16300. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16301. if test "x$ac_cv_header_memory_h" = xyes
  16302. then :
  16303. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16304. fi
  16305. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16306. if test "x$ac_cv_header_string_h" = xyes
  16307. then :
  16308. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16309. fi
  16310. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16311. if test "x$ac_cv_header_strings_h" = xyes
  16312. then :
  16313. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16314. fi
  16315. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16316. if test "x$ac_cv_header_wchar_h" = xyes
  16317. then :
  16318. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16319. fi
  16320. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16321. if test "x$ac_cv_header_inttypes_h" = xyes
  16322. then :
  16323. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16324. fi
  16325. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16326. if test "x$ac_cv_header_stdint_h" = xyes
  16327. then :
  16328. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16329. fi
  16330. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16331. if test "x$ac_cv_header_limits_h" = xyes
  16332. then :
  16333. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16334. fi
  16335. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16336. if test "x$ac_cv_header_ctype_h" = xyes
  16337. then :
  16338. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16339. fi
  16340. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16341. if test "x$ac_cv_header_math_h" = xyes
  16342. then :
  16343. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16344. fi
  16345. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16346. if test "x$ac_cv_header_float_h" = xyes
  16347. then :
  16348. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16349. fi
  16350. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16351. if test "x$ac_cv_header_iconv_h" = xyes
  16352. then :
  16353. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16354. fi
  16355. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16356. if test "x$ac_cv_header_signal_h" = xyes
  16357. then :
  16358. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16359. fi
  16360. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16361. if test "x$ac_cv_type_size_t" = xyes
  16362. then :
  16363. else $as_nop
  16364. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16365. fi
  16366. ac_ext=c
  16367. ac_cpp='$CPP $CPPFLAGS'
  16368. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16369. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16370. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16372. printf %s "checking how to run the C preprocessor... " >&6; }
  16373. # On Suns, sometimes $CPP names a directory.
  16374. if test -n "$CPP" && test -d "$CPP"; then
  16375. CPP=
  16376. fi
  16377. if test -z "$CPP"; then
  16378. if test ${ac_cv_prog_CPP+y}
  16379. then :
  16380. printf %s "(cached) " >&6
  16381. else $as_nop
  16382. # Double quotes because $CC needs to be expanded
  16383. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16384. do
  16385. ac_preproc_ok=false
  16386. for ac_c_preproc_warn_flag in '' yes
  16387. do
  16388. # Use a header file that comes with gcc, so configuring glibc
  16389. # with a fresh cross-compiler works.
  16390. # On the NeXT, cc -E runs the code through the compiler's parser,
  16391. # not just through cpp. "Syntax error" is here to catch this case.
  16392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16393. /* end confdefs.h. */
  16394. #include <limits.h>
  16395. Syntax error
  16396. _ACEOF
  16397. if ac_fn_c_try_cpp "$LINENO"
  16398. then :
  16399. else $as_nop
  16400. # Broken: fails on valid input.
  16401. continue
  16402. fi
  16403. rm -f conftest.err conftest.i conftest.$ac_ext
  16404. # OK, works on sane cases. Now check whether nonexistent headers
  16405. # can be detected and how.
  16406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16407. /* end confdefs.h. */
  16408. #include <ac_nonexistent.h>
  16409. _ACEOF
  16410. if ac_fn_c_try_cpp "$LINENO"
  16411. then :
  16412. # Broken: success on invalid input.
  16413. continue
  16414. else $as_nop
  16415. # Passes both tests.
  16416. ac_preproc_ok=:
  16417. break
  16418. fi
  16419. rm -f conftest.err conftest.i conftest.$ac_ext
  16420. done
  16421. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16422. rm -f conftest.i conftest.err conftest.$ac_ext
  16423. if $ac_preproc_ok
  16424. then :
  16425. break
  16426. fi
  16427. done
  16428. ac_cv_prog_CPP=$CPP
  16429. fi
  16430. CPP=$ac_cv_prog_CPP
  16431. else
  16432. ac_cv_prog_CPP=$CPP
  16433. fi
  16434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16435. printf "%s\n" "$CPP" >&6; }
  16436. ac_preproc_ok=false
  16437. for ac_c_preproc_warn_flag in '' yes
  16438. do
  16439. # Use a header file that comes with gcc, so configuring glibc
  16440. # with a fresh cross-compiler works.
  16441. # On the NeXT, cc -E runs the code through the compiler's parser,
  16442. # not just through cpp. "Syntax error" is here to catch this case.
  16443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16444. /* end confdefs.h. */
  16445. #include <limits.h>
  16446. Syntax error
  16447. _ACEOF
  16448. if ac_fn_c_try_cpp "$LINENO"
  16449. then :
  16450. else $as_nop
  16451. # Broken: fails on valid input.
  16452. continue
  16453. fi
  16454. rm -f conftest.err conftest.i conftest.$ac_ext
  16455. # OK, works on sane cases. Now check whether nonexistent headers
  16456. # can be detected and how.
  16457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16458. /* end confdefs.h. */
  16459. #include <ac_nonexistent.h>
  16460. _ACEOF
  16461. if ac_fn_c_try_cpp "$LINENO"
  16462. then :
  16463. # Broken: success on invalid input.
  16464. continue
  16465. else $as_nop
  16466. # Passes both tests.
  16467. ac_preproc_ok=:
  16468. break
  16469. fi
  16470. rm -f conftest.err conftest.i conftest.$ac_ext
  16471. done
  16472. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16473. rm -f conftest.i conftest.err conftest.$ac_ext
  16474. if $ac_preproc_ok
  16475. then :
  16476. else $as_nop
  16477. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16478. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16479. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16480. See \`config.log' for more details" "$LINENO" 5; }
  16481. fi
  16482. ac_ext=c
  16483. ac_cpp='$CPP $CPPFLAGS'
  16484. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16485. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16486. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16488. printf %s "checking for M_PI in math.h... " >&6; }
  16489. if test ${ac_cv_define_M_PI+y}
  16490. then :
  16491. printf %s "(cached) " >&6
  16492. else $as_nop
  16493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16494. /* end confdefs.h. */
  16495. #include <math.h>
  16496. #ifdef M_PI
  16497. YES_IS_DEFINED
  16498. #endif
  16499. _ACEOF
  16500. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16501. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16502. then :
  16503. ac_cv_define_M_PI=yes
  16504. else $as_nop
  16505. ac_cv_define_M_PI=no
  16506. fi
  16507. rm -rf conftest*
  16508. fi
  16509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16510. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16511. if test "$ac_cv_define_M_PI" = "yes" ; then
  16512. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16513. fi
  16514. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16515. # for constant arguments. Useless!
  16516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16517. printf %s "checking for working alloca.h... " >&6; }
  16518. if test ${ac_cv_working_alloca_h+y}
  16519. then :
  16520. printf %s "(cached) " >&6
  16521. else $as_nop
  16522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16523. /* end confdefs.h. */
  16524. #include <alloca.h>
  16525. int
  16526. main (void)
  16527. {
  16528. char *p = (char *) alloca (2 * sizeof (int));
  16529. if (p) return 0;
  16530. ;
  16531. return 0;
  16532. }
  16533. _ACEOF
  16534. if ac_fn_c_try_link "$LINENO"
  16535. then :
  16536. ac_cv_working_alloca_h=yes
  16537. else $as_nop
  16538. ac_cv_working_alloca_h=no
  16539. fi
  16540. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16541. conftest$ac_exeext conftest.$ac_ext
  16542. fi
  16543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16544. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16545. if test $ac_cv_working_alloca_h = yes; then
  16546. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16547. fi
  16548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16549. printf %s "checking for alloca... " >&6; }
  16550. if test ${ac_cv_func_alloca_works+y}
  16551. then :
  16552. printf %s "(cached) " >&6
  16553. else $as_nop
  16554. if test $ac_cv_working_alloca_h = yes; then
  16555. ac_cv_func_alloca_works=yes
  16556. else
  16557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16558. /* end confdefs.h. */
  16559. #include <stdlib.h>
  16560. #include <stddef.h>
  16561. #ifndef alloca
  16562. # ifdef __GNUC__
  16563. # define alloca __builtin_alloca
  16564. # elif defined _MSC_VER
  16565. # include <malloc.h>
  16566. # define alloca _alloca
  16567. # else
  16568. # ifdef __cplusplus
  16569. extern "C"
  16570. # endif
  16571. void *alloca (size_t);
  16572. # endif
  16573. #endif
  16574. int
  16575. main (void)
  16576. {
  16577. char *p = (char *) alloca (1);
  16578. if (p) return 0;
  16579. ;
  16580. return 0;
  16581. }
  16582. _ACEOF
  16583. if ac_fn_c_try_link "$LINENO"
  16584. then :
  16585. ac_cv_func_alloca_works=yes
  16586. else $as_nop
  16587. ac_cv_func_alloca_works=no
  16588. fi
  16589. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16590. conftest$ac_exeext conftest.$ac_ext
  16591. fi
  16592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16593. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16594. fi
  16595. if test $ac_cv_func_alloca_works = yes; then
  16596. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16597. else
  16598. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16599. # that cause trouble. Some versions do not even contain alloca or
  16600. # contain a buggy version. If you still want to use their alloca,
  16601. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16602. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16603. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16605. printf %s "checking stack direction for C alloca... " >&6; }
  16606. if test ${ac_cv_c_stack_direction+y}
  16607. then :
  16608. printf %s "(cached) " >&6
  16609. else $as_nop
  16610. if test "$cross_compiling" = yes
  16611. then :
  16612. ac_cv_c_stack_direction=0
  16613. else $as_nop
  16614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16615. /* end confdefs.h. */
  16616. $ac_includes_default
  16617. int
  16618. find_stack_direction (int *addr, int depth)
  16619. {
  16620. int dir, dummy = 0;
  16621. if (! addr)
  16622. addr = &dummy;
  16623. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16624. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16625. return dir + dummy;
  16626. }
  16627. int
  16628. main (int argc, char **argv)
  16629. {
  16630. return find_stack_direction (0, argc + !argv + 20) < 0;
  16631. }
  16632. _ACEOF
  16633. if ac_fn_c_try_run "$LINENO"
  16634. then :
  16635. ac_cv_c_stack_direction=1
  16636. else $as_nop
  16637. ac_cv_c_stack_direction=-1
  16638. fi
  16639. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16640. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16641. fi
  16642. fi
  16643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16644. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16645. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16646. fi
  16647. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16648. if test "x$ac_cv_func_mprotect" = xyes
  16649. then :
  16650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16651. /* end confdefs.h. */
  16652. #include <sys/types.h>
  16653. #include <sys/mman.h>
  16654. int
  16655. main (void)
  16656. {
  16657. ;
  16658. return 0;
  16659. }
  16660. _ACEOF
  16661. if ac_fn_c_try_compile "$LINENO"
  16662. then :
  16663. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16664. fi
  16665. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16666. fi
  16667. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16668. if test "x$ac_cv_func_malloc" = xyes
  16669. then :
  16670. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16671. fi
  16672. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16673. if test "x$ac_cv_func_calloc" = xyes
  16674. then :
  16675. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16676. fi
  16677. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16678. if test "x$ac_cv_func_realloc" = xyes
  16679. then :
  16680. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16681. fi
  16682. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16683. if test "x$ac_cv_func_free" = xyes
  16684. then :
  16685. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16686. fi
  16687. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16688. if test "x$ac_cv_func_getenv" = xyes
  16689. then :
  16690. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16691. fi
  16692. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16693. if test "x$ac_cv_func_setenv" = xyes
  16694. then :
  16695. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16696. fi
  16697. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16698. if test "x$ac_cv_func_putenv" = xyes
  16699. then :
  16700. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16701. fi
  16702. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16703. if test "x$ac_cv_func_unsetenv" = xyes
  16704. then :
  16705. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16706. fi
  16707. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16708. if test "x$ac_cv_func_bsearch" = xyes
  16709. then :
  16710. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16711. fi
  16712. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16713. if test "x$ac_cv_func_qsort" = xyes
  16714. then :
  16715. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16716. fi
  16717. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16718. if test "x$ac_cv_func_abs" = xyes
  16719. then :
  16720. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16721. fi
  16722. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16723. if test "x$ac_cv_func_bcopy" = xyes
  16724. then :
  16725. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16726. fi
  16727. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16728. if test "x$ac_cv_func_memset" = xyes
  16729. then :
  16730. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16731. fi
  16732. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16733. if test "x$ac_cv_func_memcmp" = xyes
  16734. then :
  16735. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16736. fi
  16737. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16738. if test "x$ac_cv_func_memcpy" = xyes
  16739. then :
  16740. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16741. fi
  16742. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16743. if test "x$ac_cv_func_memmove" = xyes
  16744. then :
  16745. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16746. fi
  16747. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16748. if test "x$ac_cv_func_wcslen" = xyes
  16749. then :
  16750. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16751. fi
  16752. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16753. if test "x$ac_cv_func_wcslcpy" = xyes
  16754. then :
  16755. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16756. fi
  16757. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16758. if test "x$ac_cv_func_wcslcat" = xyes
  16759. then :
  16760. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16761. fi
  16762. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16763. if test "x$ac_cv_func__wcsdup" = xyes
  16764. then :
  16765. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16766. fi
  16767. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16768. if test "x$ac_cv_func_wcsdup" = xyes
  16769. then :
  16770. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16771. fi
  16772. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16773. if test "x$ac_cv_func_wcsstr" = xyes
  16774. then :
  16775. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16776. fi
  16777. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16778. if test "x$ac_cv_func_wcscmp" = xyes
  16779. then :
  16780. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16781. fi
  16782. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16783. if test "x$ac_cv_func_wcsncmp" = xyes
  16784. then :
  16785. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16786. fi
  16787. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16788. if test "x$ac_cv_func_wcscasecmp" = xyes
  16789. then :
  16790. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16791. fi
  16792. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16793. if test "x$ac_cv_func__wcsicmp" = xyes
  16794. then :
  16795. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16796. fi
  16797. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16798. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16799. then :
  16800. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16801. fi
  16802. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16803. if test "x$ac_cv_func__wcsnicmp" = xyes
  16804. then :
  16805. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16806. fi
  16807. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16808. if test "x$ac_cv_func_strlen" = xyes
  16809. then :
  16810. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16811. fi
  16812. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16813. if test "x$ac_cv_func_strlcpy" = xyes
  16814. then :
  16815. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16816. fi
  16817. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16818. if test "x$ac_cv_func_strlcat" = xyes
  16819. then :
  16820. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16821. fi
  16822. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16823. if test "x$ac_cv_func__strrev" = xyes
  16824. then :
  16825. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16826. fi
  16827. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16828. if test "x$ac_cv_func__strupr" = xyes
  16829. then :
  16830. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16831. fi
  16832. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16833. if test "x$ac_cv_func__strlwr" = xyes
  16834. then :
  16835. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16836. fi
  16837. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16838. if test "x$ac_cv_func_index" = xyes
  16839. then :
  16840. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16841. fi
  16842. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16843. if test "x$ac_cv_func_rindex" = xyes
  16844. then :
  16845. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16846. fi
  16847. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16848. if test "x$ac_cv_func_strchr" = xyes
  16849. then :
  16850. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16851. fi
  16852. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16853. if test "x$ac_cv_func_strrchr" = xyes
  16854. then :
  16855. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16856. fi
  16857. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16858. if test "x$ac_cv_func_strstr" = xyes
  16859. then :
  16860. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16861. fi
  16862. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16863. if test "x$ac_cv_func_strtok_r" = xyes
  16864. then :
  16865. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16866. fi
  16867. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16868. if test "x$ac_cv_func_itoa" = xyes
  16869. then :
  16870. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16871. fi
  16872. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16873. if test "x$ac_cv_func__ltoa" = xyes
  16874. then :
  16875. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16876. fi
  16877. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16878. if test "x$ac_cv_func__uitoa" = xyes
  16879. then :
  16880. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16881. fi
  16882. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16883. if test "x$ac_cv_func__ultoa" = xyes
  16884. then :
  16885. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16886. fi
  16887. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16888. if test "x$ac_cv_func_strtod" = xyes
  16889. then :
  16890. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16891. fi
  16892. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16893. if test "x$ac_cv_func_strtol" = xyes
  16894. then :
  16895. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16896. fi
  16897. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16898. if test "x$ac_cv_func_strtoul" = xyes
  16899. then :
  16900. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16901. fi
  16902. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16903. if test "x$ac_cv_func__i64toa" = xyes
  16904. then :
  16905. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16906. fi
  16907. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16908. if test "x$ac_cv_func__ui64toa" = xyes
  16909. then :
  16910. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16911. fi
  16912. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16913. if test "x$ac_cv_func_strtoll" = xyes
  16914. then :
  16915. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16916. fi
  16917. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16918. if test "x$ac_cv_func_strtoull" = xyes
  16919. then :
  16920. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16921. fi
  16922. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16923. if test "x$ac_cv_func_atoi" = xyes
  16924. then :
  16925. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16926. fi
  16927. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16928. if test "x$ac_cv_func_atof" = xyes
  16929. then :
  16930. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16931. fi
  16932. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16933. if test "x$ac_cv_func_strcmp" = xyes
  16934. then :
  16935. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16936. fi
  16937. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16938. if test "x$ac_cv_func_strncmp" = xyes
  16939. then :
  16940. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16941. fi
  16942. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16943. if test "x$ac_cv_func__stricmp" = xyes
  16944. then :
  16945. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16946. fi
  16947. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16948. if test "x$ac_cv_func_strcasecmp" = xyes
  16949. then :
  16950. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16951. fi
  16952. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16953. if test "x$ac_cv_func__strnicmp" = xyes
  16954. then :
  16955. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16956. fi
  16957. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16958. if test "x$ac_cv_func_strncasecmp" = xyes
  16959. then :
  16960. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16961. fi
  16962. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16963. if test "x$ac_cv_func_vsscanf" = xyes
  16964. then :
  16965. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16966. fi
  16967. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16968. if test "x$ac_cv_func_vsnprintf" = xyes
  16969. then :
  16970. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16971. fi
  16972. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16973. if test "x$ac_cv_func_fopen64" = xyes
  16974. then :
  16975. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16976. fi
  16977. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  16978. if test "x$ac_cv_func_fseeko" = xyes
  16979. then :
  16980. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16981. fi
  16982. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  16983. if test "x$ac_cv_func_fseeko64" = xyes
  16984. then :
  16985. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  16986. fi
  16987. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  16988. if test "x$ac_cv_func_sigaction" = xyes
  16989. then :
  16990. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  16991. fi
  16992. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  16993. if test "x$ac_cv_func_setjmp" = xyes
  16994. then :
  16995. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  16996. fi
  16997. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  16998. if test "x$ac_cv_func_nanosleep" = xyes
  16999. then :
  17000. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17001. fi
  17002. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17003. if test "x$ac_cv_func_sysconf" = xyes
  17004. then :
  17005. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17006. fi
  17007. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17008. if test "x$ac_cv_func_sysctlbyname" = xyes
  17009. then :
  17010. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17011. fi
  17012. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17013. if test "x$ac_cv_func_getauxval" = xyes
  17014. then :
  17015. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17016. fi
  17017. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17018. if test "x$ac_cv_func_elf_aux_info" = xyes
  17019. then :
  17020. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17021. fi
  17022. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17023. if test "x$ac_cv_func_poll" = xyes
  17024. then :
  17025. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17026. fi
  17027. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17028. if test "x$ac_cv_func__Exit" = xyes
  17029. then :
  17030. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17031. fi
  17032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17033. printf %s "checking for pow in -lm... " >&6; }
  17034. if test ${ac_cv_lib_m_pow+y}
  17035. then :
  17036. printf %s "(cached) " >&6
  17037. else $as_nop
  17038. ac_check_lib_save_LIBS=$LIBS
  17039. LIBS="-lm $LIBS"
  17040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17041. /* end confdefs.h. */
  17042. /* Override any GCC internal prototype to avoid an error.
  17043. Use char because int might match the return type of a GCC
  17044. builtin and then its argument prototype would still apply. */
  17045. char pow ();
  17046. int
  17047. main (void)
  17048. {
  17049. return pow ();
  17050. ;
  17051. return 0;
  17052. }
  17053. _ACEOF
  17054. if ac_fn_c_try_link "$LINENO"
  17055. then :
  17056. ac_cv_lib_m_pow=yes
  17057. else $as_nop
  17058. ac_cv_lib_m_pow=no
  17059. fi
  17060. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17061. conftest$ac_exeext conftest.$ac_ext
  17062. LIBS=$ac_check_lib_save_LIBS
  17063. fi
  17064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17065. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17066. if test "x$ac_cv_lib_m_pow" = xyes
  17067. then :
  17068. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17069. fi
  17070. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17071. if test "x$ac_cv_func_acos" = xyes
  17072. then :
  17073. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17074. fi
  17075. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17076. if test "x$ac_cv_func_acosf" = xyes
  17077. then :
  17078. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17079. fi
  17080. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17081. if test "x$ac_cv_func_asin" = xyes
  17082. then :
  17083. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17084. fi
  17085. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17086. if test "x$ac_cv_func_asinf" = xyes
  17087. then :
  17088. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17089. fi
  17090. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17091. if test "x$ac_cv_func_atan" = xyes
  17092. then :
  17093. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17094. fi
  17095. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17096. if test "x$ac_cv_func_atanf" = xyes
  17097. then :
  17098. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17099. fi
  17100. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17101. if test "x$ac_cv_func_atan2" = xyes
  17102. then :
  17103. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17104. fi
  17105. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17106. if test "x$ac_cv_func_atan2f" = xyes
  17107. then :
  17108. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17109. fi
  17110. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17111. if test "x$ac_cv_func_ceil" = xyes
  17112. then :
  17113. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17114. fi
  17115. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17116. if test "x$ac_cv_func_ceilf" = xyes
  17117. then :
  17118. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17119. fi
  17120. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17121. if test "x$ac_cv_func_copysign" = xyes
  17122. then :
  17123. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17124. fi
  17125. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17126. if test "x$ac_cv_func_copysignf" = xyes
  17127. then :
  17128. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17129. fi
  17130. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17131. if test "x$ac_cv_func_cos" = xyes
  17132. then :
  17133. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17134. fi
  17135. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17136. if test "x$ac_cv_func_cosf" = xyes
  17137. then :
  17138. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17139. fi
  17140. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17141. if test "x$ac_cv_func_exp" = xyes
  17142. then :
  17143. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17144. fi
  17145. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17146. if test "x$ac_cv_func_expf" = xyes
  17147. then :
  17148. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17149. fi
  17150. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17151. if test "x$ac_cv_func_fabs" = xyes
  17152. then :
  17153. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17154. fi
  17155. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17156. if test "x$ac_cv_func_fabsf" = xyes
  17157. then :
  17158. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17159. fi
  17160. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17161. if test "x$ac_cv_func_floor" = xyes
  17162. then :
  17163. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17164. fi
  17165. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17166. if test "x$ac_cv_func_floorf" = xyes
  17167. then :
  17168. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17169. fi
  17170. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17171. if test "x$ac_cv_func_trunc" = xyes
  17172. then :
  17173. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17174. fi
  17175. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17176. if test "x$ac_cv_func_truncf" = xyes
  17177. then :
  17178. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17179. fi
  17180. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17181. if test "x$ac_cv_func_fmod" = xyes
  17182. then :
  17183. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17184. fi
  17185. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17186. if test "x$ac_cv_func_fmodf" = xyes
  17187. then :
  17188. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17189. fi
  17190. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17191. if test "x$ac_cv_func_log" = xyes
  17192. then :
  17193. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17194. fi
  17195. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17196. if test "x$ac_cv_func_logf" = xyes
  17197. then :
  17198. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17199. fi
  17200. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17201. if test "x$ac_cv_func_log10" = xyes
  17202. then :
  17203. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17204. fi
  17205. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17206. if test "x$ac_cv_func_log10f" = xyes
  17207. then :
  17208. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17209. fi
  17210. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17211. if test "x$ac_cv_func_lround" = xyes
  17212. then :
  17213. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17214. fi
  17215. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17216. if test "x$ac_cv_func_lroundf" = xyes
  17217. then :
  17218. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17219. fi
  17220. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17221. if test "x$ac_cv_func_pow" = xyes
  17222. then :
  17223. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17224. fi
  17225. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17226. if test "x$ac_cv_func_powf" = xyes
  17227. then :
  17228. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17229. fi
  17230. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17231. if test "x$ac_cv_func_round" = xyes
  17232. then :
  17233. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17234. fi
  17235. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17236. if test "x$ac_cv_func_roundf" = xyes
  17237. then :
  17238. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17239. fi
  17240. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17241. if test "x$ac_cv_func_scalbn" = xyes
  17242. then :
  17243. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17244. fi
  17245. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17246. if test "x$ac_cv_func_scalbnf" = xyes
  17247. then :
  17248. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17249. fi
  17250. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17251. if test "x$ac_cv_func_sin" = xyes
  17252. then :
  17253. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17254. fi
  17255. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17256. if test "x$ac_cv_func_sinf" = xyes
  17257. then :
  17258. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17259. fi
  17260. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17261. if test "x$ac_cv_func_sqrt" = xyes
  17262. then :
  17263. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17264. fi
  17265. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17266. if test "x$ac_cv_func_sqrtf" = xyes
  17267. then :
  17268. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17269. fi
  17270. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17271. if test "x$ac_cv_func_tan" = xyes
  17272. then :
  17273. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17274. fi
  17275. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17276. if test "x$ac_cv_func_tanf" = xyes
  17277. then :
  17278. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17279. fi
  17280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17281. printf %s "checking for iconv_open in -liconv... " >&6; }
  17282. if test ${ac_cv_lib_iconv_iconv_open+y}
  17283. then :
  17284. printf %s "(cached) " >&6
  17285. else $as_nop
  17286. ac_check_lib_save_LIBS=$LIBS
  17287. LIBS="-liconv $LIBS"
  17288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17289. /* end confdefs.h. */
  17290. /* Override any GCC internal prototype to avoid an error.
  17291. Use char because int might match the return type of a GCC
  17292. builtin and then its argument prototype would still apply. */
  17293. char iconv_open ();
  17294. int
  17295. main (void)
  17296. {
  17297. return iconv_open ();
  17298. ;
  17299. return 0;
  17300. }
  17301. _ACEOF
  17302. if ac_fn_c_try_link "$LINENO"
  17303. then :
  17304. ac_cv_lib_iconv_iconv_open=yes
  17305. else $as_nop
  17306. ac_cv_lib_iconv_iconv_open=no
  17307. fi
  17308. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17309. conftest$ac_exeext conftest.$ac_ext
  17310. LIBS=$ac_check_lib_save_LIBS
  17311. fi
  17312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17313. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17314. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17315. then :
  17316. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17317. fi
  17318. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17319. if test "x$ac_cv_func_iconv" = xyes
  17320. then :
  17321. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17322. fi
  17323. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17324. "
  17325. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17326. then :
  17327. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17328. fi
  17329. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17330. if test "x$ac_cv_header_libunwind_h" = xyes
  17331. then :
  17332. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17333. fi
  17334. fi
  17335. # Check whether --enable-gcc-atomics was given.
  17336. if test ${enable_gcc_atomics+y}
  17337. then :
  17338. enableval=$enable_gcc_atomics;
  17339. else $as_nop
  17340. enable_gcc_atomics=yes
  17341. fi
  17342. if test x$enable_gcc_atomics = xyes; then
  17343. have_gcc_atomics=no
  17344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17345. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17347. /* end confdefs.h. */
  17348. int
  17349. main (void)
  17350. {
  17351. int a;
  17352. void *x, *y, *z;
  17353. __sync_lock_test_and_set(&a, 4);
  17354. __sync_lock_test_and_set(&x, y);
  17355. __sync_fetch_and_add(&a, 1);
  17356. __sync_bool_compare_and_swap(&a, 5, 10);
  17357. __sync_bool_compare_and_swap(&x, y, z);
  17358. ;
  17359. return 0;
  17360. }
  17361. _ACEOF
  17362. if ac_fn_c_try_link "$LINENO"
  17363. then :
  17364. have_gcc_atomics=yes
  17365. fi
  17366. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17367. conftest$ac_exeext conftest.$ac_ext
  17368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17369. printf "%s\n" "$have_gcc_atomics" >&6; }
  17370. if test x$have_gcc_atomics = xyes; then
  17371. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17372. else
  17373. # See if we have the minimum operation needed for GCC atomics
  17374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17375. /* end confdefs.h. */
  17376. int
  17377. main (void)
  17378. {
  17379. int a;
  17380. __sync_lock_test_and_set(&a, 1);
  17381. __sync_lock_release(&a);
  17382. ;
  17383. return 0;
  17384. }
  17385. _ACEOF
  17386. if ac_fn_c_try_link "$LINENO"
  17387. then :
  17388. have_gcc_sync_lock_test_and_set=yes
  17389. fi
  17390. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17391. conftest$ac_exeext conftest.$ac_ext
  17392. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17393. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17394. fi
  17395. fi
  17396. fi
  17397. # Standard C sources
  17398. SOURCES="$SOURCES $srcdir/src/*.c"
  17399. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17400. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17401. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17402. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17403. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17404. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17405. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17406. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17407. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17408. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17409. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17410. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17411. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17412. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17413. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17414. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17415. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17416. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17417. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17418. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17419. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17420. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17421. case "$host" in
  17422. *-*-emscripten*)
  17423. default_atomic=no
  17424. ;;
  17425. *)
  17426. default_atomic=yes
  17427. ;;
  17428. esac
  17429. # Check whether --enable-atomic was given.
  17430. if test ${enable_atomic+y}
  17431. then :
  17432. enableval=$enable_atomic;
  17433. else $as_nop
  17434. enable_atomic=$default_atomic
  17435. fi
  17436. if test x$enable_atomic != xyes; then
  17437. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17438. else
  17439. SUMMARY_modules="${SUMMARY_modules} atomic"
  17440. fi
  17441. # Check whether --enable-audio was given.
  17442. if test ${enable_audio+y}
  17443. then :
  17444. enableval=$enable_audio;
  17445. else $as_nop
  17446. enable_audio=yes
  17447. fi
  17448. if test x$enable_audio != xyes; then
  17449. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17450. else
  17451. SUMMARY_modules="${SUMMARY_modules} audio"
  17452. fi
  17453. # Check whether --enable-video was given.
  17454. if test ${enable_video+y}
  17455. then :
  17456. enableval=$enable_video;
  17457. else $as_nop
  17458. enable_video=yes
  17459. fi
  17460. if test x$enable_video != xyes; then
  17461. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17462. else
  17463. SUMMARY_modules="${SUMMARY_modules} video"
  17464. fi
  17465. # Check whether --enable-render was given.
  17466. if test ${enable_render+y}
  17467. then :
  17468. enableval=$enable_render;
  17469. else $as_nop
  17470. enable_render=yes
  17471. fi
  17472. if test x$enable_render != xyes; then
  17473. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17474. else
  17475. SUMMARY_modules="${SUMMARY_modules} render"
  17476. fi
  17477. # Check whether --enable-events was given.
  17478. if test ${enable_events+y}
  17479. then :
  17480. enableval=$enable_events;
  17481. else $as_nop
  17482. enable_events=yes
  17483. fi
  17484. if test x$enable_events != xyes; then
  17485. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17486. else
  17487. SUMMARY_modules="${SUMMARY_modules} events"
  17488. fi
  17489. # Check whether --enable-joystick was given.
  17490. if test ${enable_joystick+y}
  17491. then :
  17492. enableval=$enable_joystick;
  17493. else $as_nop
  17494. enable_joystick=yes
  17495. fi
  17496. if test x$enable_joystick != xyes; then
  17497. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17498. else
  17499. SUMMARY_modules="${SUMMARY_modules} joystick"
  17500. fi
  17501. # Check whether --enable-haptic was given.
  17502. if test ${enable_haptic+y}
  17503. then :
  17504. enableval=$enable_haptic;
  17505. else $as_nop
  17506. enable_haptic=yes
  17507. fi
  17508. if test x$enable_haptic != xyes; then
  17509. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17510. else
  17511. SUMMARY_modules="${SUMMARY_modules} haptic"
  17512. fi
  17513. # Check whether --enable-hidapi was given.
  17514. if test ${enable_hidapi+y}
  17515. then :
  17516. enableval=$enable_hidapi;
  17517. else $as_nop
  17518. enable_hidapi=yes
  17519. fi
  17520. if test x$enable_hidapi != xyes; then
  17521. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17522. else
  17523. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17524. fi
  17525. # Check whether --enable-sensor was given.
  17526. if test ${enable_sensor+y}
  17527. then :
  17528. enableval=$enable_sensor;
  17529. else $as_nop
  17530. enable_sensor=yes
  17531. fi
  17532. if test x$enable_sensor != xyes; then
  17533. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17534. else
  17535. SUMMARY_modules="${SUMMARY_modules} sensor"
  17536. fi
  17537. # Check whether --enable-power was given.
  17538. if test ${enable_power+y}
  17539. then :
  17540. enableval=$enable_power;
  17541. else $as_nop
  17542. enable_power=yes
  17543. fi
  17544. if test x$enable_power != xyes; then
  17545. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17546. else
  17547. SUMMARY_modules="${SUMMARY_modules} power"
  17548. fi
  17549. # Check whether --enable-filesystem was given.
  17550. if test ${enable_filesystem+y}
  17551. then :
  17552. enableval=$enable_filesystem;
  17553. else $as_nop
  17554. enable_filesystem=yes
  17555. fi
  17556. if test x$enable_filesystem != xyes; then
  17557. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17558. else
  17559. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17560. fi
  17561. # Many subsystems depend on threads, so leave them enabled by default
  17562. #AC_ARG_ENABLE(threads,
  17563. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17564. # , enable_threads=yes)
  17565. enable_threads=yes
  17566. if test x$enable_threads != xyes; then
  17567. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17568. else
  17569. SUMMARY_modules="${SUMMARY_modules} threads"
  17570. fi
  17571. # Check whether --enable-timers was given.
  17572. if test ${enable_timers+y}
  17573. then :
  17574. enableval=$enable_timers;
  17575. else $as_nop
  17576. enable_timers=yes
  17577. fi
  17578. if test x$enable_timers != xyes; then
  17579. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17580. else
  17581. SUMMARY_modules="${SUMMARY_modules} timers"
  17582. fi
  17583. # Check whether --enable-file was given.
  17584. if test ${enable_file+y}
  17585. then :
  17586. enableval=$enable_file;
  17587. else $as_nop
  17588. enable_file=yes
  17589. fi
  17590. if test x$enable_file != xyes; then
  17591. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17592. else
  17593. SUMMARY_modules="${SUMMARY_modules} file"
  17594. fi
  17595. # Check whether --enable-misc was given.
  17596. if test ${enable_misc+y}
  17597. then :
  17598. enableval=$enable_misc;
  17599. else $as_nop
  17600. enable_misc=yes
  17601. fi
  17602. if test x$enable_misc != xyes; then
  17603. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17604. else
  17605. SUMMARY_modules="${SUMMARY_modules} misc"
  17606. fi
  17607. # Check whether --enable-locale was given.
  17608. if test ${enable_locale+y}
  17609. then :
  17610. enableval=$enable_locale;
  17611. else $as_nop
  17612. enable_locale=yes
  17613. fi
  17614. if test x$enable_locale != xyes; then
  17615. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17616. else
  17617. SUMMARY_modules="${SUMMARY_modules} locale"
  17618. fi
  17619. # Check whether --enable-loadso was given.
  17620. if test ${enable_loadso+y}
  17621. then :
  17622. enableval=$enable_loadso;
  17623. else $as_nop
  17624. enable_loadso=yes
  17625. fi
  17626. if test x$enable_loadso != xyes; then
  17627. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17628. else
  17629. SUMMARY_modules="${SUMMARY_modules} loadso"
  17630. fi
  17631. # Check whether --enable-cpuinfo was given.
  17632. if test ${enable_cpuinfo+y}
  17633. then :
  17634. enableval=$enable_cpuinfo;
  17635. else $as_nop
  17636. enable_cpuinfo=yes
  17637. fi
  17638. if test x$enable_cpuinfo != xyes; then
  17639. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17640. else
  17641. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17642. fi
  17643. # Check whether --enable-assembly was given.
  17644. if test ${enable_assembly+y}
  17645. then :
  17646. enableval=$enable_assembly;
  17647. else $as_nop
  17648. enable_assembly=yes
  17649. fi
  17650. if test x$enable_assembly = xyes; then
  17651. SUMMARY_modules="${SUMMARY_modules} assembly"
  17652. # Make sure that we don't generate floating point code that would
  17653. # cause illegal instruction exceptions on older processors
  17654. case "$host" in
  17655. *-*-darwin*)
  17656. # Don't need to worry about Apple hardware, it's all SSE capable
  17657. default_ssemath=yes
  17658. ;;
  17659. *64-*-*)
  17660. # x86 64-bit architectures all have SSE instructions
  17661. default_ssemath=yes
  17662. ;;
  17663. *)
  17664. default_ssemath=no
  17665. ;;
  17666. esac
  17667. # Check whether --enable-ssemath was given.
  17668. if test ${enable_ssemath+y}
  17669. then :
  17670. enableval=$enable_ssemath;
  17671. else $as_nop
  17672. enable_ssemath=$default_ssemath
  17673. fi
  17674. if test x$enable_ssemath = xno; then
  17675. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17676. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17677. fi
  17678. fi
  17679. # Check whether --enable-mmx was given.
  17680. if test ${enable_mmx+y}
  17681. then :
  17682. enableval=$enable_mmx;
  17683. else $as_nop
  17684. enable_mmx=yes
  17685. fi
  17686. if test x$enable_mmx = xyes; then
  17687. save_CFLAGS="$CFLAGS"
  17688. have_gcc_mmx=no
  17689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17690. printf %s "checking for GCC -mmmx option... " >&6; }
  17691. mmx_CFLAGS="-mmmx"
  17692. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17694. /* end confdefs.h. */
  17695. #ifdef __MINGW32__
  17696. #include <_mingw.h>
  17697. #ifdef __MINGW64_VERSION_MAJOR
  17698. #include <intrin.h>
  17699. #else
  17700. #include <mmintrin.h>
  17701. #endif
  17702. #else
  17703. #include <mmintrin.h>
  17704. #endif
  17705. #ifndef __MMX__
  17706. #error Assembler CPP flag not enabled
  17707. #endif
  17708. int
  17709. main (void)
  17710. {
  17711. ;
  17712. return 0;
  17713. }
  17714. _ACEOF
  17715. if ac_fn_c_try_compile "$LINENO"
  17716. then :
  17717. have_gcc_mmx=yes
  17718. fi
  17719. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17721. printf "%s\n" "$have_gcc_mmx" >&6; }
  17722. CFLAGS="$save_CFLAGS"
  17723. if test x$have_gcc_mmx = xyes; then
  17724. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17725. SUMMARY_math="${SUMMARY_math} mmx"
  17726. fi
  17727. fi
  17728. # Check whether --enable-3dnow was given.
  17729. if test ${enable_3dnow+y}
  17730. then :
  17731. enableval=$enable_3dnow;
  17732. else $as_nop
  17733. enable_3dnow=yes
  17734. fi
  17735. if test x$enable_3dnow = xyes; then
  17736. save_CFLAGS="$CFLAGS"
  17737. have_gcc_3dnow=no
  17738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17739. printf %s "checking for GCC -m3dnow option... " >&6; }
  17740. amd3dnow_CFLAGS="-m3dnow"
  17741. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17743. /* end confdefs.h. */
  17744. #include <mm3dnow.h>
  17745. #ifndef __3dNOW__
  17746. #error Assembler CPP flag not enabled
  17747. #endif
  17748. int
  17749. main (void)
  17750. {
  17751. void *p = 0;
  17752. _m_prefetch(p);
  17753. ;
  17754. return 0;
  17755. }
  17756. _ACEOF
  17757. if ac_fn_c_try_link "$LINENO"
  17758. then :
  17759. have_gcc_3dnow=yes
  17760. fi
  17761. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17762. conftest$ac_exeext conftest.$ac_ext
  17763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17764. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17765. CFLAGS="$save_CFLAGS"
  17766. if test x$have_gcc_3dnow = xyes; then
  17767. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17768. SUMMARY_math="${SUMMARY_math} 3dnow"
  17769. fi
  17770. fi
  17771. # Check whether --enable-sse was given.
  17772. if test ${enable_sse+y}
  17773. then :
  17774. enableval=$enable_sse;
  17775. else $as_nop
  17776. enable_sse=yes
  17777. fi
  17778. if test x$enable_sse = xyes; then
  17779. save_CFLAGS="$CFLAGS"
  17780. have_gcc_sse=no
  17781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17782. printf %s "checking for GCC -msse option... " >&6; }
  17783. sse_CFLAGS="-msse"
  17784. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17786. /* end confdefs.h. */
  17787. #ifdef __MINGW32__
  17788. #include <_mingw.h>
  17789. #ifdef __MINGW64_VERSION_MAJOR
  17790. #include <intrin.h>
  17791. #else
  17792. #include <xmmintrin.h>
  17793. #endif
  17794. #else
  17795. #include <xmmintrin.h>
  17796. #endif
  17797. #ifndef __SSE__
  17798. #error Assembler CPP flag not enabled
  17799. #endif
  17800. int
  17801. main (void)
  17802. {
  17803. ;
  17804. return 0;
  17805. }
  17806. _ACEOF
  17807. if ac_fn_c_try_compile "$LINENO"
  17808. then :
  17809. have_gcc_sse=yes
  17810. fi
  17811. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17813. printf "%s\n" "$have_gcc_sse" >&6; }
  17814. CFLAGS="$save_CFLAGS"
  17815. if test x$have_gcc_sse = xyes; then
  17816. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17817. SUMMARY_math="${SUMMARY_math} sse"
  17818. fi
  17819. fi
  17820. # Check whether --enable-sse2 was given.
  17821. if test ${enable_sse2+y}
  17822. then :
  17823. enableval=$enable_sse2;
  17824. else $as_nop
  17825. enable_sse2=$default_ssemath
  17826. fi
  17827. if test x$enable_sse2 = xyes; then
  17828. save_CFLAGS="$CFLAGS"
  17829. have_gcc_sse2=no
  17830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17831. printf %s "checking for GCC -msse2 option... " >&6; }
  17832. sse2_CFLAGS="-msse2"
  17833. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17835. /* end confdefs.h. */
  17836. #ifdef __MINGW32__
  17837. #include <_mingw.h>
  17838. #ifdef __MINGW64_VERSION_MAJOR
  17839. #include <intrin.h>
  17840. #else
  17841. #include <emmintrin.h>
  17842. #endif
  17843. #else
  17844. #include <emmintrin.h>
  17845. #endif
  17846. #ifndef __SSE2__
  17847. #error Assembler CPP flag not enabled
  17848. #endif
  17849. int
  17850. main (void)
  17851. {
  17852. ;
  17853. return 0;
  17854. }
  17855. _ACEOF
  17856. if ac_fn_c_try_compile "$LINENO"
  17857. then :
  17858. have_gcc_sse2=yes
  17859. fi
  17860. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17862. printf "%s\n" "$have_gcc_sse2" >&6; }
  17863. CFLAGS="$save_CFLAGS"
  17864. if test x$have_gcc_sse2 = xyes; then
  17865. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17866. SUMMARY_math="${SUMMARY_math} sse2"
  17867. fi
  17868. fi
  17869. # Check whether --enable-sse3 was given.
  17870. if test ${enable_sse3+y}
  17871. then :
  17872. enableval=$enable_sse3;
  17873. else $as_nop
  17874. enable_sse3=$default_ssemath
  17875. fi
  17876. if test x$enable_sse3 = xyes; then
  17877. save_CFLAGS="$CFLAGS"
  17878. have_gcc_sse3=no
  17879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17880. printf %s "checking for GCC -msse3 option... " >&6; }
  17881. sse3_CFLAGS="-msse3"
  17882. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17884. /* end confdefs.h. */
  17885. #ifdef __MINGW32__
  17886. #include <_mingw.h>
  17887. #ifdef __MINGW64_VERSION_MAJOR
  17888. #include <intrin.h>
  17889. #else
  17890. #include <pmmintrin.h>
  17891. #endif
  17892. #else
  17893. #include <pmmintrin.h>
  17894. #endif
  17895. #ifndef __SSE2__
  17896. #error Assembler CPP flag not enabled
  17897. #endif
  17898. int
  17899. main (void)
  17900. {
  17901. ;
  17902. return 0;
  17903. }
  17904. _ACEOF
  17905. if ac_fn_c_try_compile "$LINENO"
  17906. then :
  17907. have_gcc_sse3=yes
  17908. fi
  17909. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17911. printf "%s\n" "$have_gcc_sse3" >&6; }
  17912. CFLAGS="$save_CFLAGS"
  17913. if test x$have_gcc_sse3 = xyes; then
  17914. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17915. SUMMARY_math="${SUMMARY_math} sse3"
  17916. fi
  17917. fi
  17918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17919. printf %s "checking for immintrin.h... " >&6; }
  17920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17921. /* end confdefs.h. */
  17922. #include <immintrin.h>
  17923. int
  17924. main (void)
  17925. {
  17926. ;
  17927. return 0;
  17928. }
  17929. _ACEOF
  17930. if ac_fn_c_try_compile "$LINENO"
  17931. then :
  17932. have_immintrin_h_hdr=yes
  17933. else $as_nop
  17934. have_immintrin_h_hdr=no
  17935. fi
  17936. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17938. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17939. if test x$have_immintrin_h_hdr = xyes; then
  17940. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17941. fi
  17942. # Check whether --enable-altivec was given.
  17943. if test ${enable_altivec+y}
  17944. then :
  17945. enableval=$enable_altivec;
  17946. else $as_nop
  17947. enable_altivec=yes
  17948. fi
  17949. if test x$enable_altivec = xyes; then
  17950. save_CFLAGS="$CFLAGS"
  17951. have_gcc_altivec=no
  17952. have_altivec_h_hdr=no
  17953. altivec_CFLAGS="-maltivec"
  17954. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17956. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17958. /* end confdefs.h. */
  17959. #include <altivec.h>
  17960. vector unsigned int vzero() {
  17961. return vec_splat_u32(0);
  17962. }
  17963. int
  17964. main (void)
  17965. {
  17966. ;
  17967. return 0;
  17968. }
  17969. _ACEOF
  17970. if ac_fn_c_try_compile "$LINENO"
  17971. then :
  17972. have_gcc_altivec=yes
  17973. have_altivec_h_hdr=yes
  17974. fi
  17975. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17977. printf "%s\n" "$have_gcc_altivec" >&6; }
  17978. if test x$have_gcc_altivec = xno; then
  17979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17980. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  17981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17982. /* end confdefs.h. */
  17983. vector unsigned int vzero() {
  17984. return vec_splat_u32(0);
  17985. }
  17986. int
  17987. main (void)
  17988. {
  17989. ;
  17990. return 0;
  17991. }
  17992. _ACEOF
  17993. if ac_fn_c_try_compile "$LINENO"
  17994. then :
  17995. have_gcc_altivec=yes
  17996. fi
  17997. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17999. printf "%s\n" "$have_gcc_altivec" >&6; }
  18000. fi
  18001. if test x$have_gcc_altivec = xno; then
  18002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18003. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18004. altivec_CFLAGS="-faltivec"
  18005. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18007. /* end confdefs.h. */
  18008. #include <altivec.h>
  18009. vector unsigned int vzero() {
  18010. return vec_splat_u32(0);
  18011. }
  18012. int
  18013. main (void)
  18014. {
  18015. ;
  18016. return 0;
  18017. }
  18018. _ACEOF
  18019. if ac_fn_c_try_compile "$LINENO"
  18020. then :
  18021. have_gcc_altivec=yes
  18022. have_altivec_h_hdr=yes
  18023. fi
  18024. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18026. printf "%s\n" "$have_gcc_altivec" >&6; }
  18027. fi
  18028. if test x$have_gcc_altivec = xno; then
  18029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18030. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18032. /* end confdefs.h. */
  18033. vector unsigned int vzero() {
  18034. return vec_splat_u32(0);
  18035. }
  18036. int
  18037. main (void)
  18038. {
  18039. ;
  18040. return 0;
  18041. }
  18042. _ACEOF
  18043. if ac_fn_c_try_compile "$LINENO"
  18044. then :
  18045. have_gcc_altivec=yes
  18046. fi
  18047. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18049. printf "%s\n" "$have_gcc_altivec" >&6; }
  18050. fi
  18051. CFLAGS="$save_CFLAGS"
  18052. if test x$have_gcc_altivec = xyes; then
  18053. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18054. if test x$have_altivec_h_hdr = xyes; then
  18055. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18056. fi
  18057. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18058. SUMMARY_math="${SUMMARY_math} altivec"
  18059. fi
  18060. fi
  18061. fi
  18062. # Check whether --enable-lsx was given.
  18063. if test ${enable_lsx+y}
  18064. then :
  18065. enableval=$enable_lsx;
  18066. else $as_nop
  18067. enable_lsx=yes
  18068. fi
  18069. if test x$enable_lsx = xyes; then
  18070. save_CFLAGS="$CFLAGS"
  18071. have_gcc_lsx=no
  18072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18073. printf %s "checking for GCC -mlsx option... " >&6; }
  18074. lsx_CFLAGS="-mlsx"
  18075. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18077. /* end confdefs.h. */
  18078. #ifndef __loongarch_sx
  18079. #error Assembler CPP flag not enabled
  18080. #endif
  18081. int
  18082. main (void)
  18083. {
  18084. ;
  18085. return 0;
  18086. }
  18087. _ACEOF
  18088. if ac_fn_c_try_compile "$LINENO"
  18089. then :
  18090. have_gcc_lsx=yes
  18091. fi
  18092. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18094. printf "%s\n" "$have_gcc_lsx" >&6; }
  18095. CFLAGS="$save_CFLAGS"
  18096. if test x$have_gcc_lsx = xyes; then
  18097. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18098. SUMMARY_math="${SUMMARY_math} lsx"
  18099. fi
  18100. fi
  18101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18102. printf %s "checking for lsxintrin.h... " >&6; }
  18103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18104. /* end confdefs.h. */
  18105. #include <lsxintrin.h>
  18106. int
  18107. main (void)
  18108. {
  18109. ;
  18110. return 0;
  18111. }
  18112. _ACEOF
  18113. if ac_fn_c_try_compile "$LINENO"
  18114. then :
  18115. have_lsxintrin_h_hdr=yes
  18116. else $as_nop
  18117. have_lsxintrin_h_hdr=no
  18118. fi
  18119. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18121. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18122. if test x$have_lsxintrin_h_hdr = xyes; then
  18123. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18124. fi
  18125. # Check whether --enable-lasx was given.
  18126. if test ${enable_lasx+y}
  18127. then :
  18128. enableval=$enable_lasx;
  18129. else $as_nop
  18130. enable_LASX=yes
  18131. fi
  18132. if test x$enable_LASX = xyes; then
  18133. save_CFLAGS="$CFLAGS"
  18134. have_gcc_lasx=no
  18135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18136. printf %s "checking for GCC -mlasx option... " >&6; }
  18137. lasx_CFLAGS="-mlasx"
  18138. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18140. /* end confdefs.h. */
  18141. #ifndef __loongarch_asx
  18142. #error Assembler CPP flag not enabled
  18143. #endif
  18144. int
  18145. main (void)
  18146. {
  18147. ;
  18148. return 0;
  18149. }
  18150. _ACEOF
  18151. if ac_fn_c_try_compile "$LINENO"
  18152. then :
  18153. have_gcc_lasx=yes
  18154. fi
  18155. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18157. printf "%s\n" "$have_gcc_lasx" >&6; }
  18158. CFLAGS="$save_CFLAGS"
  18159. if test x$have_gcc_lasx = xyes; then
  18160. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18161. SUMMARY_math="${SUMMARY_math} lasx"
  18162. fi
  18163. fi
  18164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18165. printf %s "checking for lasxintrin.h... " >&6; }
  18166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18167. /* end confdefs.h. */
  18168. #include <lasxintrin.h>
  18169. int
  18170. main (void)
  18171. {
  18172. ;
  18173. return 0;
  18174. }
  18175. _ACEOF
  18176. if ac_fn_c_try_compile "$LINENO"
  18177. then :
  18178. have_lasxintrin_h_hdr=yes
  18179. else $as_nop
  18180. have_lasxintrin_h_hdr=no
  18181. fi
  18182. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18184. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18185. if test x$have_lasxintrin_h_hdr = xyes; then
  18186. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18187. fi
  18188. CheckOSS()
  18189. {
  18190. # Check whether --enable-oss was given.
  18191. if test ${enable_oss+y}
  18192. then :
  18193. enableval=$enable_oss;
  18194. else $as_nop
  18195. enable_oss=maybe
  18196. fi
  18197. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  18198. # use sndio instead. So on there, we default to disabled. You can force
  18199. # it on if you really want, though.
  18200. if test x$enable_oss = xmaybe; then
  18201. enable_oss=yes
  18202. case "$host" in
  18203. *-*-openbsd*)
  18204. enable_oss=no;;
  18205. esac
  18206. fi
  18207. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18209. printf %s "checking for OSS audio support... " >&6; }
  18210. have_oss=no
  18211. if test x$have_oss != xyes; then
  18212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18213. /* end confdefs.h. */
  18214. #include <sys/soundcard.h>
  18215. int
  18216. main (void)
  18217. {
  18218. int arg = SNDCTL_DSP_SETFRAGMENT;
  18219. ;
  18220. return 0;
  18221. }
  18222. _ACEOF
  18223. if ac_fn_c_try_compile "$LINENO"
  18224. then :
  18225. have_oss=yes
  18226. fi
  18227. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18228. fi
  18229. if test x$have_oss != xyes; then
  18230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18231. /* end confdefs.h. */
  18232. #include <soundcard.h>
  18233. int
  18234. main (void)
  18235. {
  18236. int arg = SNDCTL_DSP_SETFRAGMENT;
  18237. ;
  18238. return 0;
  18239. }
  18240. _ACEOF
  18241. if ac_fn_c_try_compile "$LINENO"
  18242. then :
  18243. have_oss=yes
  18244. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  18245. fi
  18246. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18247. fi
  18248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18249. printf "%s\n" "$have_oss" >&6; }
  18250. if test x$have_oss = xyes; then
  18251. SUMMARY_audio="${SUMMARY_audio} oss"
  18252. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18253. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18254. have_audio=yes
  18255. # We may need to link with ossaudio emulation library
  18256. case "$host" in
  18257. *-*-openbsd*|*-*-netbsd*)
  18258. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18259. esac
  18260. fi
  18261. fi
  18262. }
  18263. CheckALSA()
  18264. {
  18265. # Check whether --enable-alsa was given.
  18266. if test ${enable_alsa+y}
  18267. then :
  18268. enableval=$enable_alsa;
  18269. else $as_nop
  18270. enable_alsa=yes
  18271. fi
  18272. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18273. alsa_save_CFLAGS="$CFLAGS"
  18274. alsa_save_LDFLAGS="$LDFLAGS"
  18275. alsa_save_LIBS="$LIBS"
  18276. alsa_found=yes
  18277. # Check whether --with-alsa-prefix was given.
  18278. if test ${with_alsa_prefix+y}
  18279. then :
  18280. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18281. else $as_nop
  18282. alsa_prefix=""
  18283. fi
  18284. # Check whether --with-alsa-inc-prefix was given.
  18285. if test ${with_alsa_inc_prefix+y}
  18286. then :
  18287. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18288. else $as_nop
  18289. alsa_inc_prefix=""
  18290. fi
  18291. # Check whether --enable-alsatest was given.
  18292. if test ${enable_alsatest+y}
  18293. then :
  18294. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18295. else $as_nop
  18296. enable_alsatest=yes
  18297. fi
  18298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18299. printf %s "checking for ALSA CFLAGS... " >&6; }
  18300. if test "$alsa_inc_prefix" != "" ; then
  18301. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18302. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18303. fi
  18304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18305. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18307. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18308. if test "$alsa_prefix" != "" ; then
  18309. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18310. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18311. fi
  18312. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18313. LIBS=`echo $LIBS | sed 's/-lm//'`
  18314. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18315. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18316. LIBS=`echo $LIBS | sed 's/ //'`
  18317. LIBS="$ALSA_LIBS $LIBS"
  18318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18319. printf "%s\n" "$ALSA_LIBS" >&6; }
  18320. min_alsa_version=1.0.11
  18321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18322. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18323. no_alsa=""
  18324. alsa_min_major_version=`echo $min_alsa_version | \
  18325. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18326. alsa_min_minor_version=`echo $min_alsa_version | \
  18327. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18328. alsa_min_micro_version=`echo $min_alsa_version | \
  18329. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18330. ac_ext=c
  18331. ac_cpp='$CPP $CPPFLAGS'
  18332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18336. /* end confdefs.h. */
  18337. #include <alsa/asoundlib.h>
  18338. int
  18339. main (void)
  18340. {
  18341. /* ensure backward compatibility */
  18342. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18343. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18344. #endif
  18345. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18346. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18347. #endif
  18348. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18349. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18350. #endif
  18351. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18352. exit(0);
  18353. # else
  18354. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18355. # error not present
  18356. # endif
  18357. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18358. exit(0);
  18359. # else
  18360. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18361. # error not present
  18362. # endif
  18363. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18364. # error not present
  18365. # endif
  18366. # endif
  18367. # endif
  18368. exit(0);
  18369. ;
  18370. return 0;
  18371. }
  18372. _ACEOF
  18373. if ac_fn_c_try_compile "$LINENO"
  18374. then :
  18375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18376. printf "%s\n" "found." >&6; }
  18377. else $as_nop
  18378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18379. printf "%s\n" "not present." >&6; }
  18380. alsa_found=no
  18381. fi
  18382. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18383. ac_ext=c
  18384. ac_cpp='$CPP $CPPFLAGS'
  18385. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18386. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18387. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18388. if test "x$enable_alsatest" = "xyes"; then
  18389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18390. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18391. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18392. then :
  18393. printf %s "(cached) " >&6
  18394. else $as_nop
  18395. ac_check_lib_save_LIBS=$LIBS
  18396. LIBS="-lasound $LIBS"
  18397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18398. /* end confdefs.h. */
  18399. /* Override any GCC internal prototype to avoid an error.
  18400. Use char because int might match the return type of a GCC
  18401. builtin and then its argument prototype would still apply. */
  18402. char snd_ctl_open ();
  18403. int
  18404. main (void)
  18405. {
  18406. return snd_ctl_open ();
  18407. ;
  18408. return 0;
  18409. }
  18410. _ACEOF
  18411. if ac_fn_c_try_link "$LINENO"
  18412. then :
  18413. ac_cv_lib_asound_snd_ctl_open=yes
  18414. else $as_nop
  18415. ac_cv_lib_asound_snd_ctl_open=no
  18416. fi
  18417. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18418. conftest$ac_exeext conftest.$ac_ext
  18419. LIBS=$ac_check_lib_save_LIBS
  18420. fi
  18421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18422. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18423. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18424. then :
  18425. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18426. LIBS="-lasound $LIBS"
  18427. else $as_nop
  18428. alsa_found=no
  18429. fi
  18430. fi
  18431. if test "x$alsa_found" = "xyes" ; then
  18432. have_alsa=yes
  18433. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18434. LIBS=`echo $LIBS | sed 's/ //'`
  18435. LIBS="-lasound $LIBS"
  18436. fi
  18437. if test "x$alsa_found" = "xno" ; then
  18438. have_alsa=no
  18439. CFLAGS="$alsa_save_CFLAGS"
  18440. LDFLAGS="$alsa_save_LDFLAGS"
  18441. LIBS="$alsa_save_LIBS"
  18442. ALSA_CFLAGS=""
  18443. ALSA_LIBS=""
  18444. fi
  18445. # Restore all flags from before the ALSA detection runs
  18446. CFLAGS="$alsa_save_CFLAGS"
  18447. LDFLAGS="$alsa_save_LDFLAGS"
  18448. LIBS="$alsa_save_LIBS"
  18449. if test x$have_alsa = xyes; then
  18450. # Check whether --enable-alsa-shared was given.
  18451. if test ${enable_alsa_shared+y}
  18452. then :
  18453. enableval=$enable_alsa_shared;
  18454. else $as_nop
  18455. enable_alsa_shared=yes
  18456. fi
  18457. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18458. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18459. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18460. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18461. if test x$have_loadso != xyes && \
  18462. test x$enable_alsa_shared = xyes; then
  18463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18464. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18465. fi
  18466. if test x$have_loadso = xyes && \
  18467. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18468. echo "-- dynamic libasound -> $alsa_lib"
  18469. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18470. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18471. else
  18472. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18473. SUMMARY_audio="${SUMMARY_audio} alsa"
  18474. fi
  18475. have_audio=yes
  18476. fi
  18477. fi
  18478. }
  18479. CheckJACK()
  18480. {
  18481. # Check whether --enable-jack was given.
  18482. if test ${enable_jack+y}
  18483. then :
  18484. enableval=$enable_jack;
  18485. else $as_nop
  18486. enable_jack=yes
  18487. fi
  18488. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18489. pkg_failed=no
  18490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18491. printf %s "checking for jack >= 0.125... " >&6; }
  18492. if test -n "$JACK_CFLAGS"; then
  18493. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18494. elif test -n "$PKG_CONFIG"; then
  18495. if test -n "$PKG_CONFIG" && \
  18496. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18497. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18498. ac_status=$?
  18499. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18500. test $ac_status = 0; }; then
  18501. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18502. test "x$?" != "x0" && pkg_failed=yes
  18503. else
  18504. pkg_failed=yes
  18505. fi
  18506. else
  18507. pkg_failed=untried
  18508. fi
  18509. if test -n "$JACK_LIBS"; then
  18510. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18511. elif test -n "$PKG_CONFIG"; then
  18512. if test -n "$PKG_CONFIG" && \
  18513. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18514. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18515. ac_status=$?
  18516. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18517. test $ac_status = 0; }; then
  18518. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18519. test "x$?" != "x0" && pkg_failed=yes
  18520. else
  18521. pkg_failed=yes
  18522. fi
  18523. else
  18524. pkg_failed=untried
  18525. fi
  18526. if test $pkg_failed = yes; then
  18527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18528. printf "%s\n" "no" >&6; }
  18529. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18530. _pkg_short_errors_supported=yes
  18531. else
  18532. _pkg_short_errors_supported=no
  18533. fi
  18534. if test $_pkg_short_errors_supported = yes; then
  18535. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18536. else
  18537. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18538. fi
  18539. # Put the nasty error message in config.log where it belongs
  18540. echo "$JACK_PKG_ERRORS" >&5
  18541. audio_jack=no
  18542. elif test $pkg_failed = untried; then
  18543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18544. printf "%s\n" "no" >&6; }
  18545. audio_jack=no
  18546. else
  18547. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18548. JACK_LIBS=$pkg_cv_JACK_LIBS
  18549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18550. printf "%s\n" "yes" >&6; }
  18551. audio_jack=yes
  18552. fi
  18553. if test x$audio_jack = xyes; then
  18554. # Check whether --enable-jack-shared was given.
  18555. if test ${enable_jack_shared+y}
  18556. then :
  18557. enableval=$enable_jack_shared;
  18558. else $as_nop
  18559. enable_jack_shared=yes
  18560. fi
  18561. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18562. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18563. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18564. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18565. if test x$have_loadso != xyes && \
  18566. test x$enable_jack_shared = xyes; then
  18567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18568. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18569. fi
  18570. if test x$have_loadso = xyes && \
  18571. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18572. echo "-- dynamic libjack -> $jack_lib"
  18573. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18574. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18575. case "$host" in
  18576. # On Solaris, jack must be linked deferred explicitly
  18577. # to prevent undefined symbol failures.
  18578. *-*-solaris*)
  18579. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18580. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18581. esac
  18582. else
  18583. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18584. SUMMARY_audio="${SUMMARY_audio} jack"
  18585. fi
  18586. have_audio=yes
  18587. fi
  18588. fi
  18589. }
  18590. CheckESD()
  18591. {
  18592. # Check whether --enable-esd was given.
  18593. if test ${enable_esd+y}
  18594. then :
  18595. enableval=$enable_esd;
  18596. else $as_nop
  18597. enable_esd=yes
  18598. fi
  18599. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18600. # Check whether --with-esd-prefix was given.
  18601. if test ${with_esd_prefix+y}
  18602. then :
  18603. withval=$with_esd_prefix; esd_prefix="$withval"
  18604. else $as_nop
  18605. esd_prefix=""
  18606. fi
  18607. # Check whether --with-esd-exec-prefix was given.
  18608. if test ${with_esd_exec_prefix+y}
  18609. then :
  18610. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18611. else $as_nop
  18612. esd_exec_prefix=""
  18613. fi
  18614. # Check whether --enable-esdtest was given.
  18615. if test ${enable_esdtest+y}
  18616. then :
  18617. enableval=$enable_esdtest;
  18618. else $as_nop
  18619. enable_esdtest=yes
  18620. fi
  18621. if test x$esd_exec_prefix != x ; then
  18622. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18623. if test x${ESD_CONFIG+set} != xset ; then
  18624. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18625. fi
  18626. fi
  18627. if test x$esd_prefix != x ; then
  18628. esd_args="$esd_args --prefix=$esd_prefix"
  18629. if test x${ESD_CONFIG+set} != xset ; then
  18630. ESD_CONFIG=$esd_prefix/bin/esd-config
  18631. fi
  18632. fi
  18633. # Extract the first word of "esd-config", so it can be a program name with args.
  18634. set dummy esd-config; ac_word=$2
  18635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18636. printf %s "checking for $ac_word... " >&6; }
  18637. if test ${ac_cv_path_ESD_CONFIG+y}
  18638. then :
  18639. printf %s "(cached) " >&6
  18640. else $as_nop
  18641. case $ESD_CONFIG in
  18642. [\\/]* | ?:[\\/]*)
  18643. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18644. ;;
  18645. *)
  18646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18647. for as_dir in $PATH
  18648. do
  18649. IFS=$as_save_IFS
  18650. case $as_dir in #(((
  18651. '') as_dir=./ ;;
  18652. */) ;;
  18653. *) as_dir=$as_dir/ ;;
  18654. esac
  18655. for ac_exec_ext in '' $ac_executable_extensions; do
  18656. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18657. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18658. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18659. break 2
  18660. fi
  18661. done
  18662. done
  18663. IFS=$as_save_IFS
  18664. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18665. ;;
  18666. esac
  18667. fi
  18668. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18669. if test -n "$ESD_CONFIG"; then
  18670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18671. printf "%s\n" "$ESD_CONFIG" >&6; }
  18672. else
  18673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18674. printf "%s\n" "no" >&6; }
  18675. fi
  18676. min_esd_version=0.2.8
  18677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18678. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18679. no_esd=""
  18680. if test "$ESD_CONFIG" = "no" ; then
  18681. no_esd=yes
  18682. else
  18683. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18684. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18685. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18686. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18687. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18688. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18689. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18690. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18691. if test "x$enable_esdtest" = "xyes" ; then
  18692. ac_ext=c
  18693. ac_cpp='$CPP $CPPFLAGS'
  18694. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18695. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18696. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18697. ac_save_CFLAGS="$CFLAGS"
  18698. ac_save_LIBS="$LIBS"
  18699. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18700. LIBS="$LIBS $ESD_LIBS"
  18701. rm -f conf.esdtest
  18702. if test "$cross_compiling" = yes
  18703. then :
  18704. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18705. else $as_nop
  18706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18707. /* end confdefs.h. */
  18708. #include <stdio.h>
  18709. #include <stdlib.h>
  18710. #include <esd.h>
  18711. int main (void)
  18712. {
  18713. int major, minor, micro;
  18714. FILE *fp = fopen("conf.esdtest", "w");
  18715. if (fp) fclose(fp);
  18716. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18717. printf("%s, bad version string\n", "$min_esd_version");
  18718. exit(1);
  18719. }
  18720. if (($esd_major_version > major) ||
  18721. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18722. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18723. {
  18724. return 0;
  18725. }
  18726. else
  18727. {
  18728. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18729. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18730. printf("*** best to upgrade to the required version.\n");
  18731. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18732. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18733. printf("*** config.cache before re-running configure\n");
  18734. return 1;
  18735. }
  18736. }
  18737. _ACEOF
  18738. if ac_fn_c_try_run "$LINENO"
  18739. then :
  18740. else $as_nop
  18741. no_esd=yes
  18742. fi
  18743. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18744. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18745. fi
  18746. CFLAGS="$ac_save_CFLAGS"
  18747. LIBS="$ac_save_LIBS"
  18748. ac_ext=c
  18749. ac_cpp='$CPP $CPPFLAGS'
  18750. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18751. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18752. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18753. fi
  18754. fi
  18755. if test "x$no_esd" = x ; then
  18756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18757. printf "%s\n" "yes" >&6; }
  18758. have_esd=yes
  18759. else
  18760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18761. printf "%s\n" "no" >&6; }
  18762. if test "$ESD_CONFIG" = "no" ; then
  18763. echo "*** The esd-config script installed by ESD could not be found"
  18764. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  18765. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  18766. echo "*** full path to esd-config."
  18767. else
  18768. if test -f conf.esdtest ; then
  18769. :
  18770. else
  18771. echo "*** Could not run ESD test program, checking why..."
  18772. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18773. LIBS="$LIBS $ESD_LIBS"
  18774. ac_ext=c
  18775. ac_cpp='$CPP $CPPFLAGS'
  18776. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18777. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18778. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18780. /* end confdefs.h. */
  18781. #include <stdio.h>
  18782. #include <esd.h>
  18783. int
  18784. main (void)
  18785. {
  18786. return 0;
  18787. ;
  18788. return 0;
  18789. }
  18790. _ACEOF
  18791. if ac_fn_c_try_link "$LINENO"
  18792. then :
  18793. echo "*** The test program compiled, but did not run. This usually means"
  18794. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18795. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18796. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18797. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18798. echo "*** is required on your system"
  18799. echo "***"
  18800. echo "*** If you have an old version installed, it is best to remove it, although"
  18801. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18802. else $as_nop
  18803. echo "*** The test program failed to compile or link. See the file config.log for the"
  18804. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18805. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18806. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18807. fi
  18808. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18809. conftest$ac_exeext conftest.$ac_ext
  18810. CFLAGS="$ac_save_CFLAGS"
  18811. LIBS="$ac_save_LIBS"
  18812. ac_ext=c
  18813. ac_cpp='$CPP $CPPFLAGS'
  18814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18817. fi
  18818. fi
  18819. ESD_CFLAGS=""
  18820. ESD_LIBS=""
  18821. have_esd=no
  18822. fi
  18823. rm -f conf.esdtest
  18824. if test x$have_esd = xyes; then
  18825. # Check whether --enable-esd-shared was given.
  18826. if test ${enable_esd_shared+y}
  18827. then :
  18828. enableval=$enable_esd_shared;
  18829. else $as_nop
  18830. enable_esd_shared=yes
  18831. fi
  18832. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18833. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18834. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18835. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18836. if test x$have_loadso != xyes && \
  18837. test x$enable_esd_shared = xyes; then
  18838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18839. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18840. fi
  18841. if test x$have_loadso = xyes && \
  18842. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18843. echo "-- dynamic libesd -> $esd_lib"
  18844. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18845. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18846. else
  18847. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18848. SUMMARY_audio="${SUMMARY_audio} esd"
  18849. fi
  18850. have_audio=yes
  18851. fi
  18852. fi
  18853. }
  18854. CheckPipewire()
  18855. {
  18856. # Check whether --enable-pipewire was given.
  18857. if test ${enable_pipewire+y}
  18858. then :
  18859. enableval=$enable_pipewire;
  18860. else $as_nop
  18861. enable_pipewire=yes
  18862. fi
  18863. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18864. pkg_failed=no
  18865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18866. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18867. if test -n "$PIPEWIRE_CFLAGS"; then
  18868. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18869. elif test -n "$PKG_CONFIG"; then
  18870. if test -n "$PKG_CONFIG" && \
  18871. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18872. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18873. ac_status=$?
  18874. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18875. test $ac_status = 0; }; then
  18876. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18877. test "x$?" != "x0" && pkg_failed=yes
  18878. else
  18879. pkg_failed=yes
  18880. fi
  18881. else
  18882. pkg_failed=untried
  18883. fi
  18884. if test -n "$PIPEWIRE_LIBS"; then
  18885. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18886. elif test -n "$PKG_CONFIG"; then
  18887. if test -n "$PKG_CONFIG" && \
  18888. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18889. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18890. ac_status=$?
  18891. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18892. test $ac_status = 0; }; then
  18893. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18894. test "x$?" != "x0" && pkg_failed=yes
  18895. else
  18896. pkg_failed=yes
  18897. fi
  18898. else
  18899. pkg_failed=untried
  18900. fi
  18901. if test $pkg_failed = yes; then
  18902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18903. printf "%s\n" "no" >&6; }
  18904. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18905. _pkg_short_errors_supported=yes
  18906. else
  18907. _pkg_short_errors_supported=no
  18908. fi
  18909. if test $_pkg_short_errors_supported = yes; then
  18910. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18911. else
  18912. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18913. fi
  18914. # Put the nasty error message in config.log where it belongs
  18915. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18916. audio_pipewire=no
  18917. elif test $pkg_failed = untried; then
  18918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18919. printf "%s\n" "no" >&6; }
  18920. audio_pipewire=no
  18921. else
  18922. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18923. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18925. printf "%s\n" "yes" >&6; }
  18926. audio_pipewire=yes
  18927. fi
  18928. if test x$audio_pipewire = xyes; then
  18929. # Check whether --enable-pipewire-shared was given.
  18930. if test ${enable_pipewire_shared+y}
  18931. then :
  18932. enableval=$enable_pipewire_shared;
  18933. else $as_nop
  18934. enable_pipewire_shared=yes
  18935. fi
  18936. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18937. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  18938. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  18939. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  18940. if test x$have_loadso != xyes && \
  18941. test x$enable_pipewire_shared = xyes; then
  18942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  18943. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  18944. fi
  18945. if test x$have_loadso = xyes && \
  18946. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  18947. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  18948. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  18949. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  18950. else
  18951. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  18952. SUMMARY_audio="${SUMMARY_audio} pipewire"
  18953. fi
  18954. have_audio=yes
  18955. fi
  18956. fi
  18957. }
  18958. CheckPulseAudio()
  18959. {
  18960. # Check whether --enable-pulseaudio was given.
  18961. if test ${enable_pulseaudio+y}
  18962. then :
  18963. enableval=$enable_pulseaudio;
  18964. else $as_nop
  18965. enable_pulseaudio=yes
  18966. fi
  18967. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  18968. pkg_failed=no
  18969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  18970. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  18971. if test -n "$PULSEAUDIO_CFLAGS"; then
  18972. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  18973. elif test -n "$PKG_CONFIG"; then
  18974. if test -n "$PKG_CONFIG" && \
  18975. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18976. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18977. ac_status=$?
  18978. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18979. test $ac_status = 0; }; then
  18980. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  18981. test "x$?" != "x0" && pkg_failed=yes
  18982. else
  18983. pkg_failed=yes
  18984. fi
  18985. else
  18986. pkg_failed=untried
  18987. fi
  18988. if test -n "$PULSEAUDIO_LIBS"; then
  18989. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  18990. elif test -n "$PKG_CONFIG"; then
  18991. if test -n "$PKG_CONFIG" && \
  18992. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18993. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18994. ac_status=$?
  18995. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18996. test $ac_status = 0; }; then
  18997. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  18998. test "x$?" != "x0" && pkg_failed=yes
  18999. else
  19000. pkg_failed=yes
  19001. fi
  19002. else
  19003. pkg_failed=untried
  19004. fi
  19005. if test $pkg_failed = yes; then
  19006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19007. printf "%s\n" "no" >&6; }
  19008. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19009. _pkg_short_errors_supported=yes
  19010. else
  19011. _pkg_short_errors_supported=no
  19012. fi
  19013. if test $_pkg_short_errors_supported = yes; then
  19014. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19015. else
  19016. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19017. fi
  19018. # Put the nasty error message in config.log where it belongs
  19019. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19020. audio_pulseaudio=no
  19021. elif test $pkg_failed = untried; then
  19022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19023. printf "%s\n" "no" >&6; }
  19024. audio_pulseaudio=no
  19025. else
  19026. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19027. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19029. printf "%s\n" "yes" >&6; }
  19030. audio_pulseaudio=yes
  19031. fi
  19032. if test x$audio_pulseaudio = xyes; then
  19033. # Check whether --enable-pulseaudio-shared was given.
  19034. if test ${enable_pulseaudio_shared+y}
  19035. then :
  19036. enableval=$enable_pulseaudio_shared;
  19037. else $as_nop
  19038. enable_pulseaudio_shared=yes
  19039. fi
  19040. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19041. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19042. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19043. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19044. if test x$have_loadso != xyes && \
  19045. test x$enable_pulseaudio_shared = xyes; then
  19046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19047. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19048. fi
  19049. if test x$have_loadso = xyes && \
  19050. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19051. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19052. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19053. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19054. case "$host" in
  19055. # On Solaris, pulseaudio must be linked deferred explicitly
  19056. # to prevent undefined symbol failures.
  19057. *-*-solaris*)
  19058. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19059. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19060. esac
  19061. else
  19062. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19063. SUMMARY_audio="${SUMMARY_audio} pulse"
  19064. fi
  19065. have_audio=yes
  19066. fi
  19067. fi
  19068. }
  19069. CheckARTSC()
  19070. {
  19071. # Check whether --enable-arts was given.
  19072. if test ${enable_arts+y}
  19073. then :
  19074. enableval=$enable_arts;
  19075. else $as_nop
  19076. enable_arts=yes
  19077. fi
  19078. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19079. # Extract the first word of "artsc-config", so it can be a program name with args.
  19080. set dummy artsc-config; ac_word=$2
  19081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19082. printf %s "checking for $ac_word... " >&6; }
  19083. if test ${ac_cv_path_ARTSCONFIG+y}
  19084. then :
  19085. printf %s "(cached) " >&6
  19086. else $as_nop
  19087. case $ARTSCONFIG in
  19088. [\\/]* | ?:[\\/]*)
  19089. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19090. ;;
  19091. *)
  19092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19093. for as_dir in $PATH
  19094. do
  19095. IFS=$as_save_IFS
  19096. case $as_dir in #(((
  19097. '') as_dir=./ ;;
  19098. */) ;;
  19099. *) as_dir=$as_dir/ ;;
  19100. esac
  19101. for ac_exec_ext in '' $ac_executable_extensions; do
  19102. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19103. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19104. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19105. break 2
  19106. fi
  19107. done
  19108. done
  19109. IFS=$as_save_IFS
  19110. ;;
  19111. esac
  19112. fi
  19113. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19114. if test -n "$ARTSCONFIG"; then
  19115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19116. printf "%s\n" "$ARTSCONFIG" >&6; }
  19117. else
  19118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19119. printf "%s\n" "no" >&6; }
  19120. fi
  19121. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19122. : # arts isn't installed
  19123. else
  19124. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19125. ARTS_LIBS=`$ARTSCONFIG --libs`
  19126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19127. printf %s "checking for aRts development environment... " >&6; }
  19128. audio_arts=no
  19129. save_CFLAGS="$CFLAGS"
  19130. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19132. /* end confdefs.h. */
  19133. #include <artsc.h>
  19134. int
  19135. main (void)
  19136. {
  19137. arts_stream_t stream;
  19138. ;
  19139. return 0;
  19140. }
  19141. _ACEOF
  19142. if ac_fn_c_try_compile "$LINENO"
  19143. then :
  19144. audio_arts=yes
  19145. fi
  19146. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19147. CFLAGS="$save_CFLAGS"
  19148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19149. printf "%s\n" "$audio_arts" >&6; }
  19150. if test x$audio_arts = xyes; then
  19151. # Check whether --enable-arts-shared was given.
  19152. if test ${enable_arts_shared+y}
  19153. then :
  19154. enableval=$enable_arts_shared;
  19155. else $as_nop
  19156. enable_arts_shared=yes
  19157. fi
  19158. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19159. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19160. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19161. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19162. if test x$have_loadso != xyes && \
  19163. test x$enable_arts_shared = xyes; then
  19164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19165. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19166. fi
  19167. if test x$have_loadso = xyes && \
  19168. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19169. echo "-- dynamic libartsc -> $arts_lib"
  19170. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19171. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19172. else
  19173. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19174. SUMMARY_audio="${SUMMARY_audio} arts"
  19175. fi
  19176. have_audio=yes
  19177. fi
  19178. fi
  19179. fi
  19180. }
  19181. CheckNAS()
  19182. {
  19183. # Check whether --enable-nas was given.
  19184. if test ${enable_nas+y}
  19185. then :
  19186. enableval=$enable_nas;
  19187. else $as_nop
  19188. enable_nas=yes
  19189. fi
  19190. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19191. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19192. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19193. then :
  19194. have_nas_hdr=yes
  19195. fi
  19196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19197. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19198. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19199. then :
  19200. printf %s "(cached) " >&6
  19201. else $as_nop
  19202. ac_check_lib_save_LIBS=$LIBS
  19203. LIBS="-laudio $LIBS"
  19204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19205. /* end confdefs.h. */
  19206. /* Override any GCC internal prototype to avoid an error.
  19207. Use char because int might match the return type of a GCC
  19208. builtin and then its argument prototype would still apply. */
  19209. char AuOpenServer ();
  19210. int
  19211. main (void)
  19212. {
  19213. return AuOpenServer ();
  19214. ;
  19215. return 0;
  19216. }
  19217. _ACEOF
  19218. if ac_fn_c_try_link "$LINENO"
  19219. then :
  19220. ac_cv_lib_audio_AuOpenServer=yes
  19221. else $as_nop
  19222. ac_cv_lib_audio_AuOpenServer=no
  19223. fi
  19224. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19225. conftest$ac_exeext conftest.$ac_ext
  19226. LIBS=$ac_check_lib_save_LIBS
  19227. fi
  19228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19229. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19230. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19231. then :
  19232. have_nas_lib=yes
  19233. fi
  19234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19235. printf %s "checking for NAS audio support... " >&6; }
  19236. have_nas=no
  19237. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19238. have_nas=yes
  19239. NAS_LIBS="-laudio"
  19240. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19241. have_nas=yes
  19242. NAS_CFLAGS="-I/usr/X11R6/include/"
  19243. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19244. fi
  19245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19246. printf "%s\n" "$have_nas" >&6; }
  19247. if test x$have_nas = xyes; then
  19248. # Check whether --enable-nas-shared was given.
  19249. if test ${enable_nas_shared+y}
  19250. then :
  19251. enableval=$enable_nas_shared;
  19252. else $as_nop
  19253. enable_nas_shared=yes
  19254. fi
  19255. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19256. if test x$have_loadso != xyes && \
  19257. test x$enable_nas_shared = xyes; then
  19258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19259. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19260. fi
  19261. if test x$have_loadso = xyes && \
  19262. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19263. echo "-- dynamic libaudio -> $nas_lib"
  19264. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19265. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19266. else
  19267. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19268. SUMMARY_audio="${SUMMARY_audio} nas"
  19269. fi
  19270. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19271. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19272. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19273. have_audio=yes
  19274. fi
  19275. fi
  19276. }
  19277. CheckSNDIO()
  19278. {
  19279. # Check whether --enable-sndio was given.
  19280. if test ${enable_sndio+y}
  19281. then :
  19282. enableval=$enable_sndio;
  19283. else $as_nop
  19284. enable_sndio=yes
  19285. fi
  19286. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19287. ac_fn_c_check_header_compile "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  19288. if test "x$ac_cv_header_sndio_h" = xyes
  19289. then :
  19290. have_sndio_hdr=yes
  19291. fi
  19292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  19293. printf %s "checking for sio_open in -lsndio... " >&6; }
  19294. if test ${ac_cv_lib_sndio_sio_open+y}
  19295. then :
  19296. printf %s "(cached) " >&6
  19297. else $as_nop
  19298. ac_check_lib_save_LIBS=$LIBS
  19299. LIBS="-lsndio $LIBS"
  19300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19301. /* end confdefs.h. */
  19302. /* Override any GCC internal prototype to avoid an error.
  19303. Use char because int might match the return type of a GCC
  19304. builtin and then its argument prototype would still apply. */
  19305. char sio_open ();
  19306. int
  19307. main (void)
  19308. {
  19309. return sio_open ();
  19310. ;
  19311. return 0;
  19312. }
  19313. _ACEOF
  19314. if ac_fn_c_try_link "$LINENO"
  19315. then :
  19316. ac_cv_lib_sndio_sio_open=yes
  19317. else $as_nop
  19318. ac_cv_lib_sndio_sio_open=no
  19319. fi
  19320. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19321. conftest$ac_exeext conftest.$ac_ext
  19322. LIBS=$ac_check_lib_save_LIBS
  19323. fi
  19324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  19325. printf "%s\n" "$ac_cv_lib_sndio_sio_open" >&6; }
  19326. if test "x$ac_cv_lib_sndio_sio_open" = xyes
  19327. then :
  19328. have_sndio_lib=yes
  19329. fi
  19330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  19331. printf %s "checking for sndio audio support... " >&6; }
  19332. have_sndio=no
  19333. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  19334. have_sndio=yes
  19335. SNDIO_LIBS="-lsndio"
  19336. fi
  19337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  19338. printf "%s\n" "$have_sndio" >&6; }
  19339. if test x$have_sndio = xyes; then
  19340. # Check whether --enable-sndio-shared was given.
  19341. if test ${enable_sndio_shared+y}
  19342. then :
  19343. enableval=$enable_sndio_shared;
  19344. else $as_nop
  19345. enable_sndio_shared=yes
  19346. fi
  19347. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19348. if test x$have_loadso != xyes && \
  19349. test x$enable_sndio_shared = xyes; then
  19350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19351. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19352. fi
  19353. if test x$have_loadso = xyes && \
  19354. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19355. echo "-- dynamic libsndio -> $sndio_lib"
  19356. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19357. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19358. else
  19359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19360. SUMMARY_audio="${SUMMARY_audio} sndio"
  19361. fi
  19362. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19363. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19364. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19365. have_audio=yes
  19366. fi
  19367. fi
  19368. }
  19369. CheckFusionSound()
  19370. {
  19371. # Check whether --enable-fusionsound was given.
  19372. if test ${enable_fusionsound+y}
  19373. then :
  19374. enableval=$enable_fusionsound;
  19375. else $as_nop
  19376. enable_fusionsound=no
  19377. fi
  19378. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19379. pkg_failed=no
  19380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19381. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19382. if test -n "$FUSIONSOUND_CFLAGS"; then
  19383. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19384. elif test -n "$PKG_CONFIG"; then
  19385. if test -n "$PKG_CONFIG" && \
  19386. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19387. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19388. ac_status=$?
  19389. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19390. test $ac_status = 0; }; then
  19391. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19392. test "x$?" != "x0" && pkg_failed=yes
  19393. else
  19394. pkg_failed=yes
  19395. fi
  19396. else
  19397. pkg_failed=untried
  19398. fi
  19399. if test -n "$FUSIONSOUND_LIBS"; then
  19400. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19401. elif test -n "$PKG_CONFIG"; then
  19402. if test -n "$PKG_CONFIG" && \
  19403. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19404. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19405. ac_status=$?
  19406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19407. test $ac_status = 0; }; then
  19408. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19409. test "x$?" != "x0" && pkg_failed=yes
  19410. else
  19411. pkg_failed=yes
  19412. fi
  19413. else
  19414. pkg_failed=untried
  19415. fi
  19416. if test $pkg_failed = yes; then
  19417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19418. printf "%s\n" "no" >&6; }
  19419. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19420. _pkg_short_errors_supported=yes
  19421. else
  19422. _pkg_short_errors_supported=no
  19423. fi
  19424. if test $_pkg_short_errors_supported = yes; then
  19425. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19426. else
  19427. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19428. fi
  19429. # Put the nasty error message in config.log where it belongs
  19430. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19431. fusionsound=no
  19432. elif test $pkg_failed = untried; then
  19433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19434. printf "%s\n" "no" >&6; }
  19435. fusionsound=no
  19436. else
  19437. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19438. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19440. printf "%s\n" "yes" >&6; }
  19441. fusionsound=yes
  19442. fi
  19443. if test x$fusionsound = xyes; then
  19444. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19445. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19446. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19447. # Check whether --enable-fusionsound-shared was given.
  19448. if test ${enable_fusionsound_shared+y}
  19449. then :
  19450. enableval=$enable_fusionsound_shared;
  19451. else $as_nop
  19452. enable_fusionsound_shared=yes
  19453. fi
  19454. fusionsound_shared=no
  19455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19456. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19457. if test x$have_loadso != xyes && \
  19458. test x$enable_fusionsound_shared = xyes; then
  19459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19460. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19461. fi
  19462. if test x$have_loadso = xyes && \
  19463. test x$enable_fusionsound_shared = xyes; then
  19464. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19465. fusionsound_shared=yes
  19466. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19467. else
  19468. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19469. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19470. fi
  19471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19472. printf "%s\n" "$fusionsound_shared" >&6; }
  19473. have_audio=yes
  19474. fi
  19475. fi
  19476. }
  19477. CheckDiskAudio()
  19478. {
  19479. # Check whether --enable-diskaudio was given.
  19480. if test ${enable_diskaudio+y}
  19481. then :
  19482. enableval=$enable_diskaudio;
  19483. else $as_nop
  19484. enable_diskaudio=yes
  19485. fi
  19486. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19487. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19488. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19489. SUMMARY_audio="${SUMMARY_audio} disk"
  19490. have_audio=yes
  19491. fi
  19492. }
  19493. CheckDummyAudio()
  19494. {
  19495. # Check whether --enable-dummyaudio was given.
  19496. if test ${enable_dummyaudio+y}
  19497. then :
  19498. enableval=$enable_dummyaudio;
  19499. else $as_nop
  19500. enable_dummyaudio=yes
  19501. fi
  19502. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19503. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19504. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19505. SUMMARY_audio="${SUMMARY_audio} dummy"
  19506. have_audio=yes
  19507. fi
  19508. }
  19509. CheckLibSampleRate()
  19510. {
  19511. # Check whether --enable-libsamplerate was given.
  19512. if test ${enable_libsamplerate+y}
  19513. then :
  19514. enableval=$enable_libsamplerate;
  19515. else $as_nop
  19516. enable_libsamplerate=yes
  19517. fi
  19518. if test x$enable_libsamplerate = xyes; then
  19519. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19520. if test "x$ac_cv_header_samplerate_h" = xyes
  19521. then :
  19522. have_samplerate_h_hdr=yes
  19523. else $as_nop
  19524. have_samplerate_h_hdr=no
  19525. fi
  19526. if test x$have_samplerate_h_hdr = xyes; then
  19527. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19528. # Check whether --enable-libsamplerate-shared was given.
  19529. if test ${enable_libsamplerate_shared+y}
  19530. then :
  19531. enableval=$enable_libsamplerate_shared;
  19532. else $as_nop
  19533. enable_libsamplerate_shared=yes
  19534. fi
  19535. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19536. if test x$have_loadso != xyes && \
  19537. test x$enable_libsamplerate_shared = xyes; then
  19538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19539. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19540. fi
  19541. if test x$have_loadso = xyes && \
  19542. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19543. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19544. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19545. else
  19546. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19547. fi
  19548. fi
  19549. fi
  19550. }
  19551. CheckARM()
  19552. {
  19553. # Check whether --enable-arm-simd was given.
  19554. if test ${enable_arm_simd+y}
  19555. then :
  19556. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19557. else $as_nop
  19558. enable_arm_simd=no
  19559. fi
  19560. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19561. save_CFLAGS="$CFLAGS"
  19562. have_arm_simd=no
  19563. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19565. printf %s "checking for ARM SIMD... " >&6; }
  19566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19567. /* end confdefs.h. */
  19568. .text
  19569. .arch armv6
  19570. .object_arch armv4
  19571. .arm
  19572. .altmacro
  19573. #ifndef __ARM_EABI__
  19574. #error EABI is required (to be sure that calling conventions are compatible)
  19575. #endif
  19576. pld [r0]
  19577. uqadd8 r0, r0, r0
  19578. _ACEOF
  19579. if ac_fn_c_try_compile "$LINENO"
  19580. then :
  19581. have_arm_simd=yes
  19582. fi
  19583. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19585. printf "%s\n" "$have_arm_simd" >&6; }
  19586. CFLAGS="$save_CFLAGS"
  19587. if test x$have_arm_simd = xyes; then
  19588. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19589. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19590. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19591. fi
  19592. fi
  19593. }
  19594. CheckNEON()
  19595. {
  19596. # Check whether --enable-arm-neon was given.
  19597. if test ${enable_arm_neon+y}
  19598. then :
  19599. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19600. else $as_nop
  19601. enable_arm_neon=no
  19602. fi
  19603. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19604. save_CFLAGS="$CFLAGS"
  19605. have_arm_neon=no
  19606. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19608. printf %s "checking for ARM NEON... " >&6; }
  19609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19610. /* end confdefs.h. */
  19611. .text
  19612. .fpu neon
  19613. .arch armv7a
  19614. .object_arch armv4
  19615. .eabi_attribute 10, 0
  19616. .arm
  19617. .altmacro
  19618. #ifndef __ARM_EABI__
  19619. #error EABI is required (to be sure that calling conventions are compatible)
  19620. #endif
  19621. pld [r0]
  19622. vmovn.u16 d0, q0
  19623. _ACEOF
  19624. if ac_fn_c_try_compile "$LINENO"
  19625. then :
  19626. have_arm_neon=yes
  19627. fi
  19628. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19630. printf "%s\n" "$have_arm_neon" >&6; }
  19631. CFLAGS="$save_CFLAGS"
  19632. if test x$have_arm_neon = xyes; then
  19633. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19634. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19635. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19636. fi
  19637. fi
  19638. }
  19639. CheckObjectiveCARC()
  19640. {
  19641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19642. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19643. have_clang_objc_arc=no
  19644. save_CFLAGS="$CFLAGS"
  19645. CFLAGS="$save_CFLAGS -fobjc-arc"
  19646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19647. /* end confdefs.h. */
  19648. int x = 0;
  19649. int
  19650. main (void)
  19651. {
  19652. ;
  19653. return 0;
  19654. }
  19655. _ACEOF
  19656. if ac_fn_c_try_compile "$LINENO"
  19657. then :
  19658. have_clang_objc_arc=yes
  19659. fi
  19660. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19662. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19663. CFLAGS="$save_CFLAGS"
  19664. if test x$have_clang_objc_arc = xyes; then
  19665. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19666. fi
  19667. }
  19668. CheckVisibilityHidden()
  19669. {
  19670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19671. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19672. have_gcc_fvisibility=no
  19673. visibility_CFLAGS="-fvisibility=hidden"
  19674. save_CFLAGS="$CFLAGS"
  19675. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19677. /* end confdefs.h. */
  19678. #if !defined(__GNUC__) || __GNUC__ < 4
  19679. #error SDL only uses visibility attributes in GCC 4 or newer
  19680. #endif
  19681. int
  19682. main (void)
  19683. {
  19684. ;
  19685. return 0;
  19686. }
  19687. _ACEOF
  19688. if ac_fn_c_try_compile "$LINENO"
  19689. then :
  19690. have_gcc_fvisibility=yes
  19691. fi
  19692. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19694. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19695. CFLAGS="$save_CFLAGS"
  19696. if test x$have_gcc_fvisibility = xyes; then
  19697. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19698. fi
  19699. }
  19700. CheckNoStrictAliasing()
  19701. {
  19702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19703. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19704. have_gcc_no_strict_aliasing=no
  19705. save_CFLAGS="$CFLAGS"
  19706. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19708. /* end confdefs.h. */
  19709. int x = 0;
  19710. int
  19711. main (void)
  19712. {
  19713. ;
  19714. return 0;
  19715. }
  19716. _ACEOF
  19717. if ac_fn_c_try_compile "$LINENO"
  19718. then :
  19719. have_gcc_no_strict_aliasing=yes
  19720. fi
  19721. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19723. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19724. CFLAGS="$save_CFLAGS"
  19725. if test x$have_gcc_no_strict_aliasing = xyes; then
  19726. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19727. fi
  19728. }
  19729. CheckStackBoundary()
  19730. {
  19731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19732. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19733. have_gcc_preferred_stack_boundary=no
  19734. save_CFLAGS="$CFLAGS"
  19735. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19737. /* end confdefs.h. */
  19738. int x = 0;
  19739. int
  19740. main (void)
  19741. {
  19742. ;
  19743. return 0;
  19744. }
  19745. _ACEOF
  19746. if ac_fn_c_try_compile "$LINENO"
  19747. then :
  19748. have_gcc_preferred_stack_boundary=yes
  19749. fi
  19750. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19752. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19753. CFLAGS="$save_CFLAGS"
  19754. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19755. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19756. fi
  19757. }
  19758. CheckDeclarationAfterStatement()
  19759. {
  19760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19761. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19762. have_gcc_declaration_after_statement=no
  19763. save_CFLAGS="$CFLAGS"
  19764. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19766. /* end confdefs.h. */
  19767. int x = 0;
  19768. int
  19769. main (void)
  19770. {
  19771. ;
  19772. return 0;
  19773. }
  19774. _ACEOF
  19775. if ac_fn_c_try_compile "$LINENO"
  19776. then :
  19777. have_gcc_declaration_after_statement=yes
  19778. fi
  19779. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19781. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19782. CFLAGS="$save_CFLAGS"
  19783. if test x$have_gcc_declaration_after_statement = xyes; then
  19784. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19785. fi
  19786. }
  19787. CheckWarnAll()
  19788. {
  19789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19790. printf %s "checking for GCC -Wall option... " >&6; }
  19791. have_gcc_Wall=no
  19792. save_CFLAGS="$CFLAGS"
  19793. CFLAGS="$save_CFLAGS -Wall"
  19794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19795. /* end confdefs.h. */
  19796. int x = 0;
  19797. int
  19798. main (void)
  19799. {
  19800. ;
  19801. return 0;
  19802. }
  19803. _ACEOF
  19804. if ac_fn_c_try_compile "$LINENO"
  19805. then :
  19806. have_gcc_Wall=yes
  19807. fi
  19808. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19810. printf "%s\n" "$have_gcc_Wall" >&6; }
  19811. CFLAGS="$save_CFLAGS"
  19812. if test x$have_gcc_Wall = xyes; then
  19813. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19815. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19816. need_gcc_Wno_multichar=no
  19817. case "$host" in
  19818. *-*-haiku*)
  19819. need_gcc_Wno_multichar=yes
  19820. ;;
  19821. esac
  19822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19823. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19824. if test x$need_gcc_Wno_multichar = xyes; then
  19825. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19826. fi
  19827. fi
  19828. }
  19829. CheckWayland()
  19830. {
  19831. # Check whether --enable-video-wayland was given.
  19832. if test ${enable_video_wayland+y}
  19833. then :
  19834. enableval=$enable_video_wayland;
  19835. else $as_nop
  19836. enable_video_wayland=yes
  19837. fi
  19838. # Check whether --enable-video-wayland-qt-touch was given.
  19839. if test ${enable_video_wayland_qt_touch+y}
  19840. then :
  19841. enableval=$enable_video_wayland_qt_touch;
  19842. else $as_nop
  19843. enable_video_wayland_qt_touch=yes
  19844. fi
  19845. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19847. printf %s "checking for Wayland support... " >&6; }
  19848. video_wayland=no
  19849. if test x$video_opengl_egl = xyes && \
  19850. test x$video_opengles_v2 = xyes; then
  19851. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19852. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19853. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19854. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19855. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19856. then :
  19857. WAYLAND_SCANNER_CODE_MODE=private-code
  19858. else $as_nop
  19859. WAYLAND_SCANNER_CODE_MODE=code
  19860. fi
  19861. video_wayland=yes
  19862. fi
  19863. fi
  19864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19865. printf "%s\n" "$video_wayland" >&6; }
  19866. if test x$video_wayland = xyes; then
  19867. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19868. if test x$enable_video_wayland_qt_touch = xyes; then
  19869. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19870. fi
  19871. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19872. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19873. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19874. # Check whether --enable-wayland-shared was given.
  19875. if test ${enable_wayland_shared+y}
  19876. then :
  19877. enableval=$enable_wayland_shared;
  19878. else $as_nop
  19879. enable_wayland_shared=maybe
  19880. fi
  19881. case "$host" in
  19882. *)
  19883. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19884. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19885. if test x$wayland_egl_lib = x; then
  19886. # This works in Ubuntu 13.10, maybe others
  19887. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19888. fi
  19889. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19890. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19891. ;;
  19892. esac
  19893. if test x$enable_wayland_shared = xmaybe; then
  19894. enable_wayland_shared=yes
  19895. fi
  19896. if test x$have_loadso != xyes && \
  19897. test x$enable_wayland_shared = xyes; then
  19898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  19899. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  19900. enable_wayland_shared=no
  19901. fi
  19902. if test x$have_loadso = xyes && \
  19903. test x$enable_wayland_shared = xyes && \
  19904. test x$wayland_client_lib != x && \
  19905. test x$wayland_egl_lib != x && \
  19906. test x$wayland_cursor_lib != x && \
  19907. test x$xkbcommon_lib != x; then
  19908. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  19909. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  19910. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  19911. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  19912. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  19913. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  19914. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  19915. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  19916. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  19917. else
  19918. enable_wayland_shared=no
  19919. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  19920. SUMMARY_video="${SUMMARY_video} wayland"
  19921. fi
  19922. have_video=yes
  19923. # Check whether --enable-libdecor was given.
  19924. if test ${enable_libdecor+y}
  19925. then :
  19926. enableval=$enable_libdecor;
  19927. else $as_nop
  19928. enable_libdecor=yes
  19929. fi
  19930. if test x$enable_libdecor = xyes; then
  19931. pkg_failed=no
  19932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  19933. printf %s "checking for libdecor-0... " >&6; }
  19934. if test -n "$DECOR_CFLAGS"; then
  19935. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  19936. elif test -n "$PKG_CONFIG"; then
  19937. if test -n "$PKG_CONFIG" && \
  19938. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19939. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19940. ac_status=$?
  19941. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19942. test $ac_status = 0; }; then
  19943. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  19944. test "x$?" != "x0" && pkg_failed=yes
  19945. else
  19946. pkg_failed=yes
  19947. fi
  19948. else
  19949. pkg_failed=untried
  19950. fi
  19951. if test -n "$DECOR_LIBS"; then
  19952. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  19953. elif test -n "$PKG_CONFIG"; then
  19954. if test -n "$PKG_CONFIG" && \
  19955. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19956. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19957. ac_status=$?
  19958. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19959. test $ac_status = 0; }; then
  19960. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  19961. test "x$?" != "x0" && pkg_failed=yes
  19962. else
  19963. pkg_failed=yes
  19964. fi
  19965. else
  19966. pkg_failed=untried
  19967. fi
  19968. if test $pkg_failed = yes; then
  19969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19970. printf "%s\n" "no" >&6; }
  19971. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19972. _pkg_short_errors_supported=yes
  19973. else
  19974. _pkg_short_errors_supported=no
  19975. fi
  19976. if test $_pkg_short_errors_supported = yes; then
  19977. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  19978. else
  19979. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  19980. fi
  19981. # Put the nasty error message in config.log where it belongs
  19982. echo "$DECOR_PKG_ERRORS" >&5
  19983. video_libdecor=no
  19984. elif test $pkg_failed = untried; then
  19985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19986. printf "%s\n" "no" >&6; }
  19987. video_libdecor=no
  19988. else
  19989. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  19990. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  19991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19992. printf "%s\n" "yes" >&6; }
  19993. video_libdecor=yes
  19994. fi
  19995. if test x$video_libdecor = xyes; then
  19996. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  19997. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  19998. # Check whether --enable-libdecor-shared was given.
  19999. if test ${enable_libdecor_shared+y}
  20000. then :
  20001. enableval=$enable_libdecor_shared;
  20002. else $as_nop
  20003. enable_libdecor_shared=yes
  20004. fi
  20005. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20006. if test x$enable_wayland_shared != xyes; then
  20007. enable_libdecor_shared=no
  20008. fi
  20009. if test x$have_loadso != xyes && \
  20010. test x$enable_libdecor_shared = xyes; then
  20011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20012. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20013. fi
  20014. if test x$have_loadso = xyes && \
  20015. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20016. echo "-- dynamic libdecor -> $decor_lib"
  20017. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20018. else
  20019. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20020. fi
  20021. fi
  20022. fi
  20023. fi
  20024. fi
  20025. }
  20026. CheckNativeClient()
  20027. {
  20028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20029. /* end confdefs.h. */
  20030. #if !defined(__native_client__)
  20031. #error "NO NACL"
  20032. #endif
  20033. int
  20034. main (void)
  20035. {
  20036. ;
  20037. return 0;
  20038. }
  20039. _ACEOF
  20040. if ac_fn_c_try_compile "$LINENO"
  20041. then :
  20042. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20043. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20044. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20045. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20046. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20047. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20048. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20049. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20050. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20051. SUMMARY_audio="${SUMMARY_audio} nacl"
  20052. have_audio=yes
  20053. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20054. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20055. have_video=yes
  20056. fi
  20057. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20058. }
  20059. CheckRPI()
  20060. {
  20061. # Check whether --enable-video-rpi was given.
  20062. if test ${enable_video_rpi+y}
  20063. then :
  20064. enableval=$enable_video_rpi;
  20065. else $as_nop
  20066. enable_video_rpi=yes
  20067. fi
  20068. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20069. pkg_failed=no
  20070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20071. printf %s "checking for bcm_host brcmegl... " >&6; }
  20072. if test -n "$RPI_CFLAGS"; then
  20073. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20074. elif test -n "$PKG_CONFIG"; then
  20075. if test -n "$PKG_CONFIG" && \
  20076. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20077. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20078. ac_status=$?
  20079. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20080. test $ac_status = 0; }; then
  20081. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20082. test "x$?" != "x0" && pkg_failed=yes
  20083. else
  20084. pkg_failed=yes
  20085. fi
  20086. else
  20087. pkg_failed=untried
  20088. fi
  20089. if test -n "$RPI_LIBS"; then
  20090. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20091. elif test -n "$PKG_CONFIG"; then
  20092. if test -n "$PKG_CONFIG" && \
  20093. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20094. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20095. ac_status=$?
  20096. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20097. test $ac_status = 0; }; then
  20098. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20099. test "x$?" != "x0" && pkg_failed=yes
  20100. else
  20101. pkg_failed=yes
  20102. fi
  20103. else
  20104. pkg_failed=untried
  20105. fi
  20106. if test $pkg_failed = yes; then
  20107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20108. printf "%s\n" "no" >&6; }
  20109. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20110. _pkg_short_errors_supported=yes
  20111. else
  20112. _pkg_short_errors_supported=no
  20113. fi
  20114. if test $_pkg_short_errors_supported = yes; then
  20115. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20116. else
  20117. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20118. fi
  20119. # Put the nasty error message in config.log where it belongs
  20120. echo "$RPI_PKG_ERRORS" >&5
  20121. video_rpi=no
  20122. elif test $pkg_failed = untried; then
  20123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20124. printf "%s\n" "no" >&6; }
  20125. video_rpi=no
  20126. else
  20127. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20128. RPI_LIBS=$pkg_cv_RPI_LIBS
  20129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20130. printf "%s\n" "yes" >&6; }
  20131. video_rpi=yes
  20132. fi
  20133. if test x$video_rpi = xno; then
  20134. if test x$ARCH = xnetbsd; then
  20135. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20136. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20137. else
  20138. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20139. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20140. fi
  20141. fi
  20142. # Save the original compiler flags and libraries
  20143. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20144. # Add the Raspberry Pi compiler flags and libraries
  20145. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20147. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20148. have_video_rpi=no
  20149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20150. /* end confdefs.h. */
  20151. #include <bcm_host.h>
  20152. #include <EGL/eglplatform.h>
  20153. int
  20154. main (void)
  20155. {
  20156. EGL_DISPMANX_WINDOW_T window;
  20157. bcm_host_init();
  20158. ;
  20159. return 0;
  20160. }
  20161. _ACEOF
  20162. if ac_fn_c_try_link "$LINENO"
  20163. then :
  20164. have_video_rpi=yes
  20165. fi
  20166. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20167. conftest$ac_exeext conftest.$ac_ext
  20168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20169. printf "%s\n" "$have_video_rpi" >&6; }
  20170. # Restore the compiler flags and libraries
  20171. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20172. if test x$have_video_rpi = xyes; then
  20173. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20174. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20175. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20177. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20178. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20179. SUMMARY_video="${SUMMARY_video} rpi"
  20180. have_video=yes
  20181. fi
  20182. fi
  20183. }
  20184. CheckX11()
  20185. {
  20186. # Check whether --enable-video-x11 was given.
  20187. if test ${enable_video_x11+y}
  20188. then :
  20189. enableval=$enable_video_x11;
  20190. else $as_nop
  20191. enable_video_x11=yes
  20192. fi
  20193. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20194. case "$host" in
  20195. *-*-darwin*)
  20196. # This isn't necessary for X11, but fixes GLX detection
  20197. if test "x$x_includes" = xNONE && \
  20198. test "x$x_libraries" = xNONE && \
  20199. test -d /opt/X11/include && \
  20200. test -d /opt/X11/lib; then
  20201. x_includes="/opt/X11/include"
  20202. x_libraries="/opt/X11/lib"
  20203. fi
  20204. ;;
  20205. esac
  20206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20207. printf %s "checking for X... " >&6; }
  20208. # Check whether --with-x was given.
  20209. if test ${with_x+y}
  20210. then :
  20211. withval=$with_x;
  20212. fi
  20213. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20214. if test "x$with_x" = xno; then
  20215. # The user explicitly disabled X.
  20216. have_x=disabled
  20217. else
  20218. case $x_includes,$x_libraries in #(
  20219. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20220. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20221. then :
  20222. printf %s "(cached) " >&6
  20223. else $as_nop
  20224. # One or both of the vars are not set, and there is no cached value.
  20225. ac_x_includes=no
  20226. ac_x_libraries=no
  20227. # Do we need to do anything special at all?
  20228. ac_save_LIBS=$LIBS
  20229. LIBS="-lX11 $LIBS"
  20230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20231. /* end confdefs.h. */
  20232. #include <X11/Xlib.h>
  20233. int
  20234. main (void)
  20235. {
  20236. XrmInitialize ()
  20237. ;
  20238. return 0;
  20239. }
  20240. _ACEOF
  20241. if ac_fn_c_try_link "$LINENO"
  20242. then :
  20243. # We can compile and link X programs with no special options.
  20244. ac_x_includes=
  20245. ac_x_libraries=
  20246. fi
  20247. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20248. conftest$ac_exeext conftest.$ac_ext
  20249. LIBS="$ac_save_LIBS"
  20250. # If that didn't work, only try xmkmf and file system searches
  20251. # for native compilation.
  20252. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20253. then :
  20254. rm -f -r conftest.dir
  20255. if mkdir conftest.dir; then
  20256. cd conftest.dir
  20257. cat >Imakefile <<'_ACEOF'
  20258. incroot:
  20259. @echo incroot='${INCROOT}'
  20260. usrlibdir:
  20261. @echo usrlibdir='${USRLIBDIR}'
  20262. libdir:
  20263. @echo libdir='${LIBDIR}'
  20264. _ACEOF
  20265. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20266. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20267. for ac_var in incroot usrlibdir libdir; do
  20268. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20269. done
  20270. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20271. for ac_extension in a so sl dylib la dll; do
  20272. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20273. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20274. ac_im_usrlibdir=$ac_im_libdir; break
  20275. fi
  20276. done
  20277. # Screen out bogus values from the imake configuration. They are
  20278. # bogus both because they are the default anyway, and because
  20279. # using them would break gcc on systems where it needs fixed includes.
  20280. case $ac_im_incroot in
  20281. /usr/include) ac_x_includes= ;;
  20282. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20283. esac
  20284. case $ac_im_usrlibdir in
  20285. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20286. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20287. esac
  20288. fi
  20289. cd ..
  20290. rm -f -r conftest.dir
  20291. fi
  20292. # Standard set of common directories for X headers.
  20293. # Check X11 before X11Rn because it is often a symlink to the current release.
  20294. ac_x_header_dirs='
  20295. /usr/X11/include
  20296. /usr/X11R7/include
  20297. /usr/X11R6/include
  20298. /usr/X11R5/include
  20299. /usr/X11R4/include
  20300. /usr/include/X11
  20301. /usr/include/X11R7
  20302. /usr/include/X11R6
  20303. /usr/include/X11R5
  20304. /usr/include/X11R4
  20305. /usr/local/X11/include
  20306. /usr/local/X11R7/include
  20307. /usr/local/X11R6/include
  20308. /usr/local/X11R5/include
  20309. /usr/local/X11R4/include
  20310. /usr/local/include/X11
  20311. /usr/local/include/X11R7
  20312. /usr/local/include/X11R6
  20313. /usr/local/include/X11R5
  20314. /usr/local/include/X11R4
  20315. /opt/X11/include
  20316. /usr/X386/include
  20317. /usr/x386/include
  20318. /usr/XFree86/include/X11
  20319. /usr/include
  20320. /usr/local/include
  20321. /usr/unsupported/include
  20322. /usr/athena/include
  20323. /usr/local/x11r5/include
  20324. /usr/lpp/Xamples/include
  20325. /usr/openwin/include
  20326. /usr/openwin/share/include'
  20327. if test "$ac_x_includes" = no; then
  20328. # Guess where to find include files, by looking for Xlib.h.
  20329. # First, try using that file with no special directory specified.
  20330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20331. /* end confdefs.h. */
  20332. #include <X11/Xlib.h>
  20333. _ACEOF
  20334. if ac_fn_c_try_cpp "$LINENO"
  20335. then :
  20336. # We can compile using X headers with no special include directory.
  20337. ac_x_includes=
  20338. else $as_nop
  20339. for ac_dir in $ac_x_header_dirs; do
  20340. if test -r "$ac_dir/X11/Xlib.h"; then
  20341. ac_x_includes=$ac_dir
  20342. break
  20343. fi
  20344. done
  20345. fi
  20346. rm -f conftest.err conftest.i conftest.$ac_ext
  20347. fi # $ac_x_includes = no
  20348. if test "$ac_x_libraries" = no; then
  20349. # Check for the libraries.
  20350. # See if we find them without any special options.
  20351. # Don't add to $LIBS permanently.
  20352. ac_save_LIBS=$LIBS
  20353. LIBS="-lX11 $LIBS"
  20354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20355. /* end confdefs.h. */
  20356. #include <X11/Xlib.h>
  20357. int
  20358. main (void)
  20359. {
  20360. XrmInitialize ()
  20361. ;
  20362. return 0;
  20363. }
  20364. _ACEOF
  20365. if ac_fn_c_try_link "$LINENO"
  20366. then :
  20367. LIBS=$ac_save_LIBS
  20368. # We can link X programs with no special library path.
  20369. ac_x_libraries=
  20370. else $as_nop
  20371. LIBS=$ac_save_LIBS
  20372. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20373. do
  20374. # Don't even attempt the hair of trying to link an X program!
  20375. for ac_extension in a so sl dylib la dll; do
  20376. if test -r "$ac_dir/libX11.$ac_extension"; then
  20377. ac_x_libraries=$ac_dir
  20378. break 2
  20379. fi
  20380. done
  20381. done
  20382. fi
  20383. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20384. conftest$ac_exeext conftest.$ac_ext
  20385. fi # $ac_x_libraries = no
  20386. fi
  20387. # Record the results.
  20388. case $ac_x_includes,$ac_x_libraries in #(
  20389. no,* | *,no | *\'*) :
  20390. # Didn't find X, or a directory has "'" in its name.
  20391. ac_cv_have_x="have_x=no" ;; #(
  20392. *) :
  20393. # Record where we found X for the cache.
  20394. ac_cv_have_x="have_x=yes\
  20395. ac_x_includes='$ac_x_includes'\
  20396. ac_x_libraries='$ac_x_libraries'" ;;
  20397. esac
  20398. fi
  20399. ;; #(
  20400. *) have_x=yes;;
  20401. esac
  20402. eval "$ac_cv_have_x"
  20403. fi # $with_x != no
  20404. if test "$have_x" != yes; then
  20405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20406. printf "%s\n" "$have_x" >&6; }
  20407. no_x=yes
  20408. else
  20409. # If each of the values was on the command line, it overrides each guess.
  20410. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20411. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20412. # Update the cache value to reflect the command line values.
  20413. ac_cv_have_x="have_x=yes\
  20414. ac_x_includes='$x_includes'\
  20415. ac_x_libraries='$x_libraries'"
  20416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20417. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20418. fi
  20419. if test "$no_x" = yes; then
  20420. # Not all programs may use this symbol, but it does not hurt to define it.
  20421. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20422. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20423. else
  20424. if test -n "$x_includes"; then
  20425. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20426. fi
  20427. # It would also be nice to do this for all -L options, not just this one.
  20428. if test -n "$x_libraries"; then
  20429. X_LIBS="$X_LIBS -L$x_libraries"
  20430. # For Solaris; some versions of Sun CC require a space after -R and
  20431. # others require no space. Words are not sufficient . . . .
  20432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20433. printf %s "checking whether -R must be followed by a space... " >&6; }
  20434. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20435. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20436. ac_c_werror_flag=yes
  20437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20438. /* end confdefs.h. */
  20439. int
  20440. main (void)
  20441. {
  20442. ;
  20443. return 0;
  20444. }
  20445. _ACEOF
  20446. if ac_fn_c_try_link "$LINENO"
  20447. then :
  20448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20449. printf "%s\n" "no" >&6; }
  20450. X_LIBS="$X_LIBS -R$x_libraries"
  20451. else $as_nop
  20452. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20454. /* end confdefs.h. */
  20455. int
  20456. main (void)
  20457. {
  20458. ;
  20459. return 0;
  20460. }
  20461. _ACEOF
  20462. if ac_fn_c_try_link "$LINENO"
  20463. then :
  20464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20465. printf "%s\n" "yes" >&6; }
  20466. X_LIBS="$X_LIBS -R $x_libraries"
  20467. else $as_nop
  20468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20469. printf "%s\n" "neither works" >&6; }
  20470. fi
  20471. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20472. conftest$ac_exeext conftest.$ac_ext
  20473. fi
  20474. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20475. conftest$ac_exeext conftest.$ac_ext
  20476. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20477. LIBS=$ac_xsave_LIBS
  20478. fi
  20479. # Check for system-dependent libraries X programs must link with.
  20480. # Do this before checking for the system-independent R6 libraries
  20481. # (-lICE), since we may need -lsocket or whatever for X linking.
  20482. if test "$ISC" = yes; then
  20483. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20484. else
  20485. # Martyn Johnson says this is needed for Ultrix, if the X
  20486. # libraries were built with DECnet support. And Karl Berry says
  20487. # the Alpha needs dnet_stub (dnet does not exist).
  20488. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20490. /* end confdefs.h. */
  20491. /* Override any GCC internal prototype to avoid an error.
  20492. Use char because int might match the return type of a GCC
  20493. builtin and then its argument prototype would still apply. */
  20494. char XOpenDisplay ();
  20495. int
  20496. main (void)
  20497. {
  20498. return XOpenDisplay ();
  20499. ;
  20500. return 0;
  20501. }
  20502. _ACEOF
  20503. if ac_fn_c_try_link "$LINENO"
  20504. then :
  20505. else $as_nop
  20506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20507. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20508. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20509. then :
  20510. printf %s "(cached) " >&6
  20511. else $as_nop
  20512. ac_check_lib_save_LIBS=$LIBS
  20513. LIBS="-ldnet $LIBS"
  20514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20515. /* end confdefs.h. */
  20516. /* Override any GCC internal prototype to avoid an error.
  20517. Use char because int might match the return type of a GCC
  20518. builtin and then its argument prototype would still apply. */
  20519. char dnet_ntoa ();
  20520. int
  20521. main (void)
  20522. {
  20523. return dnet_ntoa ();
  20524. ;
  20525. return 0;
  20526. }
  20527. _ACEOF
  20528. if ac_fn_c_try_link "$LINENO"
  20529. then :
  20530. ac_cv_lib_dnet_dnet_ntoa=yes
  20531. else $as_nop
  20532. ac_cv_lib_dnet_dnet_ntoa=no
  20533. fi
  20534. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20535. conftest$ac_exeext conftest.$ac_ext
  20536. LIBS=$ac_check_lib_save_LIBS
  20537. fi
  20538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20539. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20540. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20541. then :
  20542. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20543. fi
  20544. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20546. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20547. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20548. then :
  20549. printf %s "(cached) " >&6
  20550. else $as_nop
  20551. ac_check_lib_save_LIBS=$LIBS
  20552. LIBS="-ldnet_stub $LIBS"
  20553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20554. /* end confdefs.h. */
  20555. /* Override any GCC internal prototype to avoid an error.
  20556. Use char because int might match the return type of a GCC
  20557. builtin and then its argument prototype would still apply. */
  20558. char dnet_ntoa ();
  20559. int
  20560. main (void)
  20561. {
  20562. return dnet_ntoa ();
  20563. ;
  20564. return 0;
  20565. }
  20566. _ACEOF
  20567. if ac_fn_c_try_link "$LINENO"
  20568. then :
  20569. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20570. else $as_nop
  20571. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20572. fi
  20573. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20574. conftest$ac_exeext conftest.$ac_ext
  20575. LIBS=$ac_check_lib_save_LIBS
  20576. fi
  20577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20578. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20579. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20580. then :
  20581. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20582. fi
  20583. fi
  20584. fi
  20585. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20586. conftest$ac_exeext conftest.$ac_ext
  20587. LIBS="$ac_xsave_LIBS"
  20588. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20589. # to get the SysV transport functions.
  20590. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20591. # needs -lnsl.
  20592. # The nsl library prevents programs from opening the X display
  20593. # on Irix 5.2, according to T.E. Dickey.
  20594. # The functions gethostbyname, getservbyname, and inet_addr are
  20595. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20596. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20597. if test "x$ac_cv_func_gethostbyname" = xyes
  20598. then :
  20599. fi
  20600. if test $ac_cv_func_gethostbyname = no; then
  20601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20602. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20603. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20604. then :
  20605. printf %s "(cached) " >&6
  20606. else $as_nop
  20607. ac_check_lib_save_LIBS=$LIBS
  20608. LIBS="-lnsl $LIBS"
  20609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20610. /* end confdefs.h. */
  20611. /* Override any GCC internal prototype to avoid an error.
  20612. Use char because int might match the return type of a GCC
  20613. builtin and then its argument prototype would still apply. */
  20614. char gethostbyname ();
  20615. int
  20616. main (void)
  20617. {
  20618. return gethostbyname ();
  20619. ;
  20620. return 0;
  20621. }
  20622. _ACEOF
  20623. if ac_fn_c_try_link "$LINENO"
  20624. then :
  20625. ac_cv_lib_nsl_gethostbyname=yes
  20626. else $as_nop
  20627. ac_cv_lib_nsl_gethostbyname=no
  20628. fi
  20629. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20630. conftest$ac_exeext conftest.$ac_ext
  20631. LIBS=$ac_check_lib_save_LIBS
  20632. fi
  20633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20634. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20635. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20636. then :
  20637. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20638. fi
  20639. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20641. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20642. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20643. then :
  20644. printf %s "(cached) " >&6
  20645. else $as_nop
  20646. ac_check_lib_save_LIBS=$LIBS
  20647. LIBS="-lbsd $LIBS"
  20648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20649. /* end confdefs.h. */
  20650. /* Override any GCC internal prototype to avoid an error.
  20651. Use char because int might match the return type of a GCC
  20652. builtin and then its argument prototype would still apply. */
  20653. char gethostbyname ();
  20654. int
  20655. main (void)
  20656. {
  20657. return gethostbyname ();
  20658. ;
  20659. return 0;
  20660. }
  20661. _ACEOF
  20662. if ac_fn_c_try_link "$LINENO"
  20663. then :
  20664. ac_cv_lib_bsd_gethostbyname=yes
  20665. else $as_nop
  20666. ac_cv_lib_bsd_gethostbyname=no
  20667. fi
  20668. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20669. conftest$ac_exeext conftest.$ac_ext
  20670. LIBS=$ac_check_lib_save_LIBS
  20671. fi
  20672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20673. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20674. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20675. then :
  20676. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20677. fi
  20678. fi
  20679. fi
  20680. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20681. # socket/setsockopt and other routines are undefined under SCO ODT
  20682. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20683. # on later versions), says Simon Leinen: it contains gethostby*
  20684. # variants that don't use the name server (or something). -lsocket
  20685. # must be given before -lnsl if both are needed. We assume that
  20686. # if connect needs -lnsl, so does gethostbyname.
  20687. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20688. if test "x$ac_cv_func_connect" = xyes
  20689. then :
  20690. fi
  20691. if test $ac_cv_func_connect = no; then
  20692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20693. printf %s "checking for connect in -lsocket... " >&6; }
  20694. if test ${ac_cv_lib_socket_connect+y}
  20695. then :
  20696. printf %s "(cached) " >&6
  20697. else $as_nop
  20698. ac_check_lib_save_LIBS=$LIBS
  20699. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20701. /* end confdefs.h. */
  20702. /* Override any GCC internal prototype to avoid an error.
  20703. Use char because int might match the return type of a GCC
  20704. builtin and then its argument prototype would still apply. */
  20705. char connect ();
  20706. int
  20707. main (void)
  20708. {
  20709. return connect ();
  20710. ;
  20711. return 0;
  20712. }
  20713. _ACEOF
  20714. if ac_fn_c_try_link "$LINENO"
  20715. then :
  20716. ac_cv_lib_socket_connect=yes
  20717. else $as_nop
  20718. ac_cv_lib_socket_connect=no
  20719. fi
  20720. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20721. conftest$ac_exeext conftest.$ac_ext
  20722. LIBS=$ac_check_lib_save_LIBS
  20723. fi
  20724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20725. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20726. if test "x$ac_cv_lib_socket_connect" = xyes
  20727. then :
  20728. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20729. fi
  20730. fi
  20731. # Guillermo Gomez says -lposix is necessary on A/UX.
  20732. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20733. if test "x$ac_cv_func_remove" = xyes
  20734. then :
  20735. fi
  20736. if test $ac_cv_func_remove = no; then
  20737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20738. printf %s "checking for remove in -lposix... " >&6; }
  20739. if test ${ac_cv_lib_posix_remove+y}
  20740. then :
  20741. printf %s "(cached) " >&6
  20742. else $as_nop
  20743. ac_check_lib_save_LIBS=$LIBS
  20744. LIBS="-lposix $LIBS"
  20745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20746. /* end confdefs.h. */
  20747. /* Override any GCC internal prototype to avoid an error.
  20748. Use char because int might match the return type of a GCC
  20749. builtin and then its argument prototype would still apply. */
  20750. char remove ();
  20751. int
  20752. main (void)
  20753. {
  20754. return remove ();
  20755. ;
  20756. return 0;
  20757. }
  20758. _ACEOF
  20759. if ac_fn_c_try_link "$LINENO"
  20760. then :
  20761. ac_cv_lib_posix_remove=yes
  20762. else $as_nop
  20763. ac_cv_lib_posix_remove=no
  20764. fi
  20765. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20766. conftest$ac_exeext conftest.$ac_ext
  20767. LIBS=$ac_check_lib_save_LIBS
  20768. fi
  20769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20770. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20771. if test "x$ac_cv_lib_posix_remove" = xyes
  20772. then :
  20773. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20774. fi
  20775. fi
  20776. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20777. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20778. if test "x$ac_cv_func_shmat" = xyes
  20779. then :
  20780. fi
  20781. if test $ac_cv_func_shmat = no; then
  20782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20783. printf %s "checking for shmat in -lipc... " >&6; }
  20784. if test ${ac_cv_lib_ipc_shmat+y}
  20785. then :
  20786. printf %s "(cached) " >&6
  20787. else $as_nop
  20788. ac_check_lib_save_LIBS=$LIBS
  20789. LIBS="-lipc $LIBS"
  20790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20791. /* end confdefs.h. */
  20792. /* Override any GCC internal prototype to avoid an error.
  20793. Use char because int might match the return type of a GCC
  20794. builtin and then its argument prototype would still apply. */
  20795. char shmat ();
  20796. int
  20797. main (void)
  20798. {
  20799. return shmat ();
  20800. ;
  20801. return 0;
  20802. }
  20803. _ACEOF
  20804. if ac_fn_c_try_link "$LINENO"
  20805. then :
  20806. ac_cv_lib_ipc_shmat=yes
  20807. else $as_nop
  20808. ac_cv_lib_ipc_shmat=no
  20809. fi
  20810. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20811. conftest$ac_exeext conftest.$ac_ext
  20812. LIBS=$ac_check_lib_save_LIBS
  20813. fi
  20814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20815. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20816. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20817. then :
  20818. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20819. fi
  20820. fi
  20821. fi
  20822. # Check for libraries that X11R6 Xt/Xaw programs need.
  20823. ac_save_LDFLAGS=$LDFLAGS
  20824. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20825. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20826. # check for ICE first), but we must link in the order -lSM -lICE or
  20827. # we get undefined symbols. So assume we have SM if we have ICE.
  20828. # These have to be linked with before -lX11, unlike the other
  20829. # libraries we check for below, so use a different variable.
  20830. # John Interrante, Karl Berry
  20831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20832. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20833. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20834. then :
  20835. printf %s "(cached) " >&6
  20836. else $as_nop
  20837. ac_check_lib_save_LIBS=$LIBS
  20838. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20840. /* end confdefs.h. */
  20841. /* Override any GCC internal prototype to avoid an error.
  20842. Use char because int might match the return type of a GCC
  20843. builtin and then its argument prototype would still apply. */
  20844. char IceConnectionNumber ();
  20845. int
  20846. main (void)
  20847. {
  20848. return IceConnectionNumber ();
  20849. ;
  20850. return 0;
  20851. }
  20852. _ACEOF
  20853. if ac_fn_c_try_link "$LINENO"
  20854. then :
  20855. ac_cv_lib_ICE_IceConnectionNumber=yes
  20856. else $as_nop
  20857. ac_cv_lib_ICE_IceConnectionNumber=no
  20858. fi
  20859. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20860. conftest$ac_exeext conftest.$ac_ext
  20861. LIBS=$ac_check_lib_save_LIBS
  20862. fi
  20863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20864. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20865. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20866. then :
  20867. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20868. fi
  20869. LDFLAGS=$ac_save_LDFLAGS
  20870. fi
  20871. if test x$have_x = xyes; then
  20872. # Check whether --enable-x11-shared was given.
  20873. if test ${enable_x11_shared+y}
  20874. then :
  20875. enableval=$enable_x11_shared;
  20876. else $as_nop
  20877. enable_x11_shared=maybe
  20878. fi
  20879. case "$host" in
  20880. *-*-darwin*)
  20881. # Apple now puts this in /opt/X11
  20882. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20883. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20884. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20885. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20886. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20887. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20888. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20889. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20890. ;;
  20891. *-*-openbsd*)
  20892. x11_lib='libX11.so'
  20893. x11ext_lib='libXext.so'
  20894. xcursor_lib='libXcursor.so'
  20895. xinput_lib='libXi.so'
  20896. xfixes_lib='libXfixes.so'
  20897. xrandr_lib='libXrandr.so'
  20898. xrender_lib='libXrender.so'
  20899. xss_lib='libXss.so'
  20900. ;;
  20901. *)
  20902. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20903. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20904. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20905. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20906. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20907. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20908. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20909. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20910. ;;
  20911. esac
  20912. if test x$ac_cv_func_shmat != xyes; then
  20913. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  20914. fi
  20915. CFLAGS="$CFLAGS $X_CFLAGS"
  20916. LDFLAGS="$LDFLAGS $X_LIBS"
  20917. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  20918. #include <X11/Xproto.h>
  20919. "
  20920. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  20921. then :
  20922. have_xext_h_hdr=yes
  20923. else $as_nop
  20924. have_xext_h_hdr=no
  20925. fi
  20926. if test x$have_xext_h_hdr != xyes; then
  20927. as_fn_error $? "
  20928. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  20929. " "$LINENO" 5
  20930. fi
  20931. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  20932. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  20933. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  20934. # Needed so SDL applications can include SDL_syswm.h
  20935. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  20936. if test x$enable_x11_shared = xmaybe; then
  20937. enable_x11_shared=yes
  20938. fi
  20939. if test x$have_loadso != xyes && \
  20940. test x$enable_x11_shared = xyes; then
  20941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  20942. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  20943. enable_x11_shared=no
  20944. fi
  20945. if test x$have_loadso = xyes && \
  20946. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  20947. echo "-- dynamic libX11 -> $x11_lib"
  20948. echo "-- dynamic libX11ext -> $x11ext_lib"
  20949. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  20950. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  20951. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  20952. else
  20953. enable_x11_shared=no
  20954. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  20955. SUMMARY_video="${SUMMARY_video} x11"
  20956. fi
  20957. have_video=yes
  20958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  20959. printf %s "checking for XGenericEvent... " >&6; }
  20960. have_XGenericEvent=no
  20961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20962. /* end confdefs.h. */
  20963. #include <X11/Xlib.h>
  20964. int
  20965. main (void)
  20966. {
  20967. Display *display;
  20968. XEvent event;
  20969. XGenericEventCookie *cookie = &event.xcookie;
  20970. XNextEvent(display, &event);
  20971. XGetEventData(display, cookie);
  20972. XFreeEventData(display, cookie);
  20973. ;
  20974. return 0;
  20975. }
  20976. _ACEOF
  20977. if ac_fn_c_try_compile "$LINENO"
  20978. then :
  20979. have_XGenericEvent=yes
  20980. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  20981. fi
  20982. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  20984. printf "%s\n" "$have_XGenericEvent" >&6; }
  20985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  20986. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  20987. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  20988. then :
  20989. printf %s "(cached) " >&6
  20990. else $as_nop
  20991. ac_check_lib_save_LIBS=$LIBS
  20992. LIBS="-lX11 $LIBS"
  20993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20994. /* end confdefs.h. */
  20995. /* Override any GCC internal prototype to avoid an error.
  20996. Use char because int might match the return type of a GCC
  20997. builtin and then its argument prototype would still apply. */
  20998. char XkbKeycodeToKeysym ();
  20999. int
  21000. main (void)
  21001. {
  21002. return XkbKeycodeToKeysym ();
  21003. ;
  21004. return 0;
  21005. }
  21006. _ACEOF
  21007. if ac_fn_c_try_link "$LINENO"
  21008. then :
  21009. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21010. else $as_nop
  21011. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21012. fi
  21013. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21014. conftest$ac_exeext conftest.$ac_ext
  21015. LIBS=$ac_check_lib_save_LIBS
  21016. fi
  21017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21018. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21019. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21020. then :
  21021. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21022. fi
  21023. # Check whether --enable-video-x11-xcursor was given.
  21024. if test ${enable_video_x11_xcursor+y}
  21025. then :
  21026. enableval=$enable_video_x11_xcursor;
  21027. else $as_nop
  21028. enable_video_x11_xcursor=yes
  21029. fi
  21030. if test x$enable_video_x11_xcursor = xyes; then
  21031. definitely_enable_video_x11_xcursor=no
  21032. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21033. "
  21034. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21035. then :
  21036. have_xcursor_h_hdr=yes
  21037. else $as_nop
  21038. have_xcursor_h_hdr=no
  21039. fi
  21040. if test x$have_xcursor_h_hdr = xyes; then
  21041. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21042. echo "-- dynamic libXcursor -> $xcursor_lib"
  21043. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21044. definitely_enable_video_x11_xcursor=yes
  21045. else
  21046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21047. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21048. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21049. then :
  21050. printf %s "(cached) " >&6
  21051. else $as_nop
  21052. ac_check_lib_save_LIBS=$LIBS
  21053. LIBS="-lXcursor $LIBS"
  21054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21055. /* end confdefs.h. */
  21056. /* Override any GCC internal prototype to avoid an error.
  21057. Use char because int might match the return type of a GCC
  21058. builtin and then its argument prototype would still apply. */
  21059. char XcursorImageCreate ();
  21060. int
  21061. main (void)
  21062. {
  21063. return XcursorImageCreate ();
  21064. ;
  21065. return 0;
  21066. }
  21067. _ACEOF
  21068. if ac_fn_c_try_link "$LINENO"
  21069. then :
  21070. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21071. else $as_nop
  21072. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21073. fi
  21074. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21075. conftest$ac_exeext conftest.$ac_ext
  21076. LIBS=$ac_check_lib_save_LIBS
  21077. fi
  21078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21079. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21080. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21081. then :
  21082. have_xcursor_lib=yes
  21083. fi
  21084. if test x$have_xcursor_lib = xyes ; then
  21085. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21086. definitely_enable_video_x11_xcursor=yes
  21087. fi
  21088. fi
  21089. fi
  21090. fi
  21091. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21092. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21093. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21094. fi
  21095. # Check whether --enable-video-x11-xdbe was given.
  21096. if test ${enable_video_x11_xdbe+y}
  21097. then :
  21098. enableval=$enable_video_x11_xdbe;
  21099. else $as_nop
  21100. enable_video_x11_xdbe=yes
  21101. fi
  21102. if test x$enable_video_x11_xdbe = xyes; then
  21103. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21104. "
  21105. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21106. then :
  21107. have_dbe_h_hdr=yes
  21108. else $as_nop
  21109. have_dbe_h_hdr=no
  21110. fi
  21111. if test x$have_dbe_h_hdr = xyes; then
  21112. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21113. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21114. fi
  21115. fi
  21116. # Check whether --enable-video-x11-xinput was given.
  21117. if test ${enable_video_x11_xinput+y}
  21118. then :
  21119. enableval=$enable_video_x11_xinput;
  21120. else $as_nop
  21121. enable_video_x11_xinput=yes
  21122. fi
  21123. if test x$enable_video_x11_xinput = xyes; then
  21124. definitely_enable_video_x11_xinput=no
  21125. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21126. "
  21127. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21128. then :
  21129. have_xinput_h_hdr=yes
  21130. else $as_nop
  21131. have_xinput_h_hdr=no
  21132. fi
  21133. if test x$have_xinput_h_hdr = xyes; then
  21134. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21135. echo "-- dynamic libXi -> $xinput_lib"
  21136. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21137. definitely_enable_video_x11_xinput=yes
  21138. else
  21139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21140. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21141. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21142. then :
  21143. printf %s "(cached) " >&6
  21144. else $as_nop
  21145. ac_check_lib_save_LIBS=$LIBS
  21146. LIBS="-lXi $LIBS"
  21147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21148. /* end confdefs.h. */
  21149. /* Override any GCC internal prototype to avoid an error.
  21150. Use char because int might match the return type of a GCC
  21151. builtin and then its argument prototype would still apply. */
  21152. char XOpenDevice ();
  21153. int
  21154. main (void)
  21155. {
  21156. return XOpenDevice ();
  21157. ;
  21158. return 0;
  21159. }
  21160. _ACEOF
  21161. if ac_fn_c_try_link "$LINENO"
  21162. then :
  21163. ac_cv_lib_Xi_XOpenDevice=yes
  21164. else $as_nop
  21165. ac_cv_lib_Xi_XOpenDevice=no
  21166. fi
  21167. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21168. conftest$ac_exeext conftest.$ac_ext
  21169. LIBS=$ac_check_lib_save_LIBS
  21170. fi
  21171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21172. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21173. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21174. then :
  21175. have_xinput_lib=yes
  21176. fi
  21177. if test x$have_xinput_lib = xyes ; then
  21178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21179. definitely_enable_video_x11_xinput=yes
  21180. fi
  21181. fi
  21182. fi
  21183. fi
  21184. if test x$definitely_enable_video_x11_xinput = xyes; then
  21185. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21186. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21188. printf %s "checking for xinput2 multitouch... " >&6; }
  21189. have_xinput2_multitouch=no
  21190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21191. /* end confdefs.h. */
  21192. #include <X11/Xlib.h>
  21193. #include <X11/Xproto.h>
  21194. #include <X11/extensions/XInput2.h>
  21195. int
  21196. main (void)
  21197. {
  21198. int event_type = XI_TouchBegin;
  21199. XITouchClassInfo *t;
  21200. ;
  21201. return 0;
  21202. }
  21203. _ACEOF
  21204. if ac_fn_c_try_compile "$LINENO"
  21205. then :
  21206. have_xinput2_multitouch=yes
  21207. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21208. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21209. fi
  21210. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21212. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21213. fi
  21214. # Check whether --enable-video-x11-xfixes was given.
  21215. if test ${enable_video_x11_xfixes+y}
  21216. then :
  21217. enableval=$enable_video_x11_xfixes;
  21218. else $as_nop
  21219. enable_video_x11_xfixes=yes
  21220. fi
  21221. if test x$enable_video_x11_xfixes = xyes; then
  21222. definitely_enable_video_x11_xfixes=no
  21223. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21225. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21227. /* end confdefs.h. */
  21228. #include <X11/Xlib.h>
  21229. #include <X11/Xproto.h>
  21230. #include <X11/extensions/XInput2.h>
  21231. #include <X11/extensions/Xfixes.h>
  21232. int
  21233. main (void)
  21234. {
  21235. BarrierEventID b;
  21236. ;
  21237. return 0;
  21238. }
  21239. _ACEOF
  21240. if ac_fn_c_try_compile "$LINENO"
  21241. then :
  21242. have_xfixes_h_hdr=yes
  21243. else $as_nop
  21244. have_xfixes_h_hdr=no
  21245. fi
  21246. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21248. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21249. if test x$have_xfixes_h_hdr = xyes; then
  21250. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21251. echo "-- dynamic libXfixes -> $xfixes_lib"
  21252. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21253. definitely_enable_video_x11_xfixes=yes
  21254. else
  21255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21256. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21257. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21258. then :
  21259. printf %s "(cached) " >&6
  21260. else $as_nop
  21261. ac_check_lib_save_LIBS=$LIBS
  21262. LIBS="-lXfixes $LIBS"
  21263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21264. /* end confdefs.h. */
  21265. /* Override any GCC internal prototype to avoid an error.
  21266. Use char because int might match the return type of a GCC
  21267. builtin and then its argument prototype would still apply. */
  21268. char XFixesCreatePointerBarrier ();
  21269. int
  21270. main (void)
  21271. {
  21272. return XFixesCreatePointerBarrier ();
  21273. ;
  21274. return 0;
  21275. }
  21276. _ACEOF
  21277. if ac_fn_c_try_link "$LINENO"
  21278. then :
  21279. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21280. else $as_nop
  21281. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21282. fi
  21283. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21284. conftest$ac_exeext conftest.$ac_ext
  21285. LIBS=$ac_check_lib_save_LIBS
  21286. fi
  21287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21288. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21289. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21290. then :
  21291. have_xfixes_lib=yes
  21292. fi
  21293. if test x$have_xfixes_lib = xyes ; then
  21294. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21295. definitely_enable_video_x11_xfixes=yes
  21296. fi
  21297. fi
  21298. fi
  21299. fi
  21300. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21301. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21302. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21303. fi
  21304. # Check whether --enable-video-x11-xrandr was given.
  21305. if test ${enable_video_x11_xrandr+y}
  21306. then :
  21307. enableval=$enable_video_x11_xrandr;
  21308. else $as_nop
  21309. enable_video_x11_xrandr=yes
  21310. fi
  21311. if test x$enable_video_x11_xrandr = xyes; then
  21312. definitely_enable_video_x11_xrandr=no
  21313. have_xrandr_h_hdr=no
  21314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21315. /* end confdefs.h. */
  21316. #include <X11/Xlib.h>
  21317. #include <X11/extensions/Xrandr.h>
  21318. int
  21319. main (void)
  21320. {
  21321. XRRScreenResources *res = NULL;
  21322. ;
  21323. return 0;
  21324. }
  21325. _ACEOF
  21326. if ac_fn_c_try_compile "$LINENO"
  21327. then :
  21328. have_xrandr_h_hdr=yes
  21329. fi
  21330. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21331. if test x$have_xrandr_h_hdr = xyes; then
  21332. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21333. echo "-- dynamic libXrandr -> $xrandr_lib"
  21334. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21335. definitely_enable_video_x11_xrandr=yes
  21336. else
  21337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21338. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21339. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21340. then :
  21341. printf %s "(cached) " >&6
  21342. else $as_nop
  21343. ac_check_lib_save_LIBS=$LIBS
  21344. LIBS="-lXrandr $LIBS"
  21345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21346. /* end confdefs.h. */
  21347. /* Override any GCC internal prototype to avoid an error.
  21348. Use char because int might match the return type of a GCC
  21349. builtin and then its argument prototype would still apply. */
  21350. char XRRQueryExtension ();
  21351. int
  21352. main (void)
  21353. {
  21354. return XRRQueryExtension ();
  21355. ;
  21356. return 0;
  21357. }
  21358. _ACEOF
  21359. if ac_fn_c_try_link "$LINENO"
  21360. then :
  21361. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21362. else $as_nop
  21363. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21364. fi
  21365. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21366. conftest$ac_exeext conftest.$ac_ext
  21367. LIBS=$ac_check_lib_save_LIBS
  21368. fi
  21369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21370. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21371. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21372. then :
  21373. have_xrandr_lib=yes
  21374. fi
  21375. if test x$have_xrandr_lib = xyes ; then
  21376. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21377. definitely_enable_video_x11_xrandr=yes
  21378. fi
  21379. fi
  21380. fi
  21381. fi
  21382. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21383. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21384. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21385. fi
  21386. # Check whether --enable-video-x11-scrnsaver was given.
  21387. if test ${enable_video_x11_scrnsaver+y}
  21388. then :
  21389. enableval=$enable_video_x11_scrnsaver;
  21390. else $as_nop
  21391. enable_video_x11_scrnsaver=yes
  21392. fi
  21393. if test x$enable_video_x11_scrnsaver = xyes; then
  21394. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21395. "
  21396. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21397. then :
  21398. have_scrnsaver_h_hdr=yes
  21399. else $as_nop
  21400. have_scrnsaver_h_hdr=no
  21401. fi
  21402. if test x$have_scrnsaver_h_hdr = xyes; then
  21403. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21404. echo "-- dynamic libXss -> $xss_lib"
  21405. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21406. definitely_enable_video_x11_scrnsaver=yes
  21407. else
  21408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21409. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21410. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21411. then :
  21412. printf %s "(cached) " >&6
  21413. else $as_nop
  21414. ac_check_lib_save_LIBS=$LIBS
  21415. LIBS="-lXss $LIBS"
  21416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21417. /* end confdefs.h. */
  21418. /* Override any GCC internal prototype to avoid an error.
  21419. Use char because int might match the return type of a GCC
  21420. builtin and then its argument prototype would still apply. */
  21421. char XScreenSaverSuspend ();
  21422. int
  21423. main (void)
  21424. {
  21425. return XScreenSaverSuspend ();
  21426. ;
  21427. return 0;
  21428. }
  21429. _ACEOF
  21430. if ac_fn_c_try_link "$LINENO"
  21431. then :
  21432. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21433. else $as_nop
  21434. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21435. fi
  21436. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21437. conftest$ac_exeext conftest.$ac_ext
  21438. LIBS=$ac_check_lib_save_LIBS
  21439. fi
  21440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21441. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21442. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21443. then :
  21444. have_xss_lib=yes
  21445. fi
  21446. if test x$have_xss_lib = xyes ; then
  21447. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21448. definitely_enable_video_x11_scrnsaver=yes
  21449. fi
  21450. fi
  21451. fi
  21452. fi
  21453. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21454. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21455. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21456. fi
  21457. # Check whether --enable-video-x11-xshape was given.
  21458. if test ${enable_video_x11_xshape+y}
  21459. then :
  21460. enableval=$enable_video_x11_xshape;
  21461. else $as_nop
  21462. enable_video_x11_xshape=yes
  21463. fi
  21464. if test x$enable_video_x11_xshape = xyes; then
  21465. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21466. "
  21467. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21468. then :
  21469. have_shape_h_hdr=yes
  21470. else $as_nop
  21471. have_shape_h_hdr=no
  21472. fi
  21473. if test x$have_shape_h_hdr = xyes; then
  21474. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21475. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21476. fi
  21477. fi
  21478. fi
  21479. fi
  21480. if test x$have_x != xyes; then
  21481. # Prevent Mesa from including X11 headers
  21482. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21483. fi
  21484. }
  21485. CheckVivanteVideo()
  21486. {
  21487. # Check whether --enable-video-vivante was given.
  21488. if test ${enable_video_vivante+y}
  21489. then :
  21490. enableval=$enable_video_vivante;
  21491. else $as_nop
  21492. enable_video_vivante=yes
  21493. fi
  21494. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21496. printf %s "checking for Vivante VDK API... " >&6; }
  21497. have_vivante_vdk=no
  21498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21499. /* end confdefs.h. */
  21500. #define LINUX
  21501. #define EGL_API_FB
  21502. #include <gc_vdk.h>
  21503. int
  21504. main (void)
  21505. {
  21506. ;
  21507. return 0;
  21508. }
  21509. _ACEOF
  21510. if ac_fn_c_try_compile "$LINENO"
  21511. then :
  21512. have_vivante_vdk=yes
  21513. fi
  21514. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21516. printf "%s\n" "$have_vivante_vdk" >&6; }
  21517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21518. printf %s "checking for Vivante FB API... " >&6; }
  21519. have_vivante_egl=no
  21520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21521. /* end confdefs.h. */
  21522. #define LINUX
  21523. #define EGL_API_FB
  21524. #include <EGL/eglvivante.h>
  21525. int
  21526. main (void)
  21527. {
  21528. ;
  21529. return 0;
  21530. }
  21531. _ACEOF
  21532. if ac_fn_c_try_compile "$LINENO"
  21533. then :
  21534. have_vivante_egl=yes
  21535. fi
  21536. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21538. printf "%s\n" "$have_vivante_egl" >&6; }
  21539. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21540. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21541. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21542. if test x$have_vivante_vdk = xyes; then
  21543. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21544. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21545. fi
  21546. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21547. SUMMARY_video="${SUMMARY_video} vivante"
  21548. have_video=yes
  21549. fi
  21550. fi
  21551. }
  21552. CheckHaikuVideo()
  21553. {
  21554. if test x$enable_video = xyes; then
  21555. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21556. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21557. have_video=yes
  21558. SUMMARY_video="${SUMMARY_video} haiku"
  21559. fi
  21560. }
  21561. CheckCOCOA()
  21562. {
  21563. # Check whether --enable-video-cocoa was given.
  21564. if test ${enable_video_cocoa+y}
  21565. then :
  21566. enableval=$enable_video_cocoa;
  21567. else $as_nop
  21568. enable_video_cocoa=yes
  21569. fi
  21570. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21571. save_CFLAGS="$CFLAGS"
  21572. CFLAGS="$CFLAGS -x objective-c"
  21573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21574. printf %s "checking for Cocoa framework... " >&6; }
  21575. have_cocoa=no
  21576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21577. /* end confdefs.h. */
  21578. #import <Cocoa/Cocoa.h>
  21579. int
  21580. main (void)
  21581. {
  21582. ;
  21583. return 0;
  21584. }
  21585. _ACEOF
  21586. if ac_fn_c_try_compile "$LINENO"
  21587. then :
  21588. have_cocoa=yes
  21589. fi
  21590. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21592. printf "%s\n" "$have_cocoa" >&6; }
  21593. CFLAGS="$save_CFLAGS"
  21594. if test x$have_cocoa = xyes; then
  21595. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21596. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21597. SUMMARY_video="${SUMMARY_video} cocoa"
  21598. have_video=yes
  21599. fi
  21600. fi
  21601. }
  21602. CheckMETAL()
  21603. {
  21604. # Check whether --enable-video-metal was given.
  21605. if test ${enable_video_metal+y}
  21606. then :
  21607. enableval=$enable_video_metal;
  21608. else $as_nop
  21609. enable_video_metal=yes
  21610. fi
  21611. # Check whether --enable-render-metal was given.
  21612. if test ${enable_render_metal+y}
  21613. then :
  21614. enableval=$enable_render_metal;
  21615. else $as_nop
  21616. enable_render_metal=yes
  21617. fi
  21618. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21619. save_CFLAGS="$CFLAGS"
  21620. CFLAGS="$CFLAGS -x objective-c"
  21621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21622. printf %s "checking for Metal framework... " >&6; }
  21623. have_metal=no
  21624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21625. /* end confdefs.h. */
  21626. #import <Cocoa/Cocoa.h>
  21627. #import <Metal/Metal.h>
  21628. #import <QuartzCore/CAMetalLayer.h>
  21629. #if TARGET_CPU_X86
  21630. #error Metal doesn't work on this configuration
  21631. #endif
  21632. int
  21633. main (void)
  21634. {
  21635. ;
  21636. return 0;
  21637. }
  21638. _ACEOF
  21639. if ac_fn_c_try_compile "$LINENO"
  21640. then :
  21641. have_metal=yes
  21642. fi
  21643. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21644. CFLAGS="$save_CFLAGS"
  21645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21646. printf "%s\n" "$have_metal" >&6; }
  21647. if test x$have_metal = xyes; then
  21648. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21649. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21650. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21651. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21652. fi
  21653. SUMMARY_video="${SUMMARY_video} metal"
  21654. else
  21655. enable_video_metal=no
  21656. enable_render_metal=no
  21657. fi
  21658. fi
  21659. }
  21660. CheckDirectFB()
  21661. {
  21662. # Check whether --enable-video-directfb was given.
  21663. if test ${enable_video_directfb+y}
  21664. then :
  21665. enableval=$enable_video_directfb;
  21666. else $as_nop
  21667. enable_video_directfb=no
  21668. fi
  21669. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21670. pkg_failed=no
  21671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21672. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21673. if test -n "$DIRECTFB_CFLAGS"; then
  21674. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21675. elif test -n "$PKG_CONFIG"; then
  21676. if test -n "$PKG_CONFIG" && \
  21677. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21678. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21679. ac_status=$?
  21680. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21681. test $ac_status = 0; }; then
  21682. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21683. test "x$?" != "x0" && pkg_failed=yes
  21684. else
  21685. pkg_failed=yes
  21686. fi
  21687. else
  21688. pkg_failed=untried
  21689. fi
  21690. if test -n "$DIRECTFB_LIBS"; then
  21691. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21692. elif test -n "$PKG_CONFIG"; then
  21693. if test -n "$PKG_CONFIG" && \
  21694. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21695. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21696. ac_status=$?
  21697. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21698. test $ac_status = 0; }; then
  21699. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21700. test "x$?" != "x0" && pkg_failed=yes
  21701. else
  21702. pkg_failed=yes
  21703. fi
  21704. else
  21705. pkg_failed=untried
  21706. fi
  21707. if test $pkg_failed = yes; then
  21708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21709. printf "%s\n" "no" >&6; }
  21710. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21711. _pkg_short_errors_supported=yes
  21712. else
  21713. _pkg_short_errors_supported=no
  21714. fi
  21715. if test $_pkg_short_errors_supported = yes; then
  21716. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21717. else
  21718. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21719. fi
  21720. # Put the nasty error message in config.log where it belongs
  21721. echo "$DIRECTFB_PKG_ERRORS" >&5
  21722. video_directfb=no
  21723. elif test $pkg_failed = untried; then
  21724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21725. printf "%s\n" "no" >&6; }
  21726. video_directfb=no
  21727. else
  21728. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21729. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21731. printf "%s\n" "yes" >&6; }
  21732. video_directfb=yes
  21733. fi
  21734. if test x$video_directfb = xyes; then
  21735. # SuSE 11.1 installs directfb-config without directfb-devel
  21736. save_CPPFLAGS="$CPPFLAGS"
  21737. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21738. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21739. if test "x$ac_cv_header_directfb_h" = xyes
  21740. then :
  21741. have_directfb_hdr=yes
  21742. else $as_nop
  21743. have_directfb_hdr=no
  21744. fi
  21745. CPPFLAGS="$save_CPPFLAGS"
  21746. video_directfb=$have_directfb_hdr
  21747. fi
  21748. if test x$video_directfb = xyes; then
  21749. # Check whether --enable-directfb-shared was given.
  21750. if test ${enable_directfb_shared+y}
  21751. then :
  21752. enableval=$enable_directfb_shared;
  21753. else $as_nop
  21754. enable_directfb_shared=yes
  21755. fi
  21756. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21757. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21758. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21759. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21760. directfb_shared=no
  21761. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21762. if test x$have_loadso != xyes && \
  21763. test x$enable_directfb_shared = xyes; then
  21764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21765. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21766. fi
  21767. if test x$have_loadso = xyes && \
  21768. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21769. directfb_shared=yes
  21770. echo "-- dynamic libdirectfb -> $directfb_lib"
  21771. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21772. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21773. else
  21774. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21775. SUMMARY_video="${SUMMARY_video} directfb"
  21776. fi
  21777. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21778. have_video=yes
  21779. fi
  21780. fi
  21781. }
  21782. CheckKMSDRM()
  21783. {
  21784. # Check whether --enable-video-kmsdrm was given.
  21785. if test ${enable_video_kmsdrm+y}
  21786. then :
  21787. enableval=$enable_video_kmsdrm;
  21788. else $as_nop
  21789. enable_video_kmsdrm=yes
  21790. fi
  21791. if test x$enable_video = xyes && \
  21792. test x$enable_video_kmsdrm = xyes && \
  21793. test x$video_opengl_egl = xyes; then
  21794. video_kmsdrm=no
  21795. pkg_failed=no
  21796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21797. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21798. if test -n "$LIBDRM_CFLAGS"; then
  21799. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21800. elif test -n "$PKG_CONFIG"; then
  21801. if test -n "$PKG_CONFIG" && \
  21802. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21803. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21804. ac_status=$?
  21805. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21806. test $ac_status = 0; }; then
  21807. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21808. test "x$?" != "x0" && pkg_failed=yes
  21809. else
  21810. pkg_failed=yes
  21811. fi
  21812. else
  21813. pkg_failed=untried
  21814. fi
  21815. if test -n "$LIBDRM_LIBS"; then
  21816. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21817. elif test -n "$PKG_CONFIG"; then
  21818. if test -n "$PKG_CONFIG" && \
  21819. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21820. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21821. ac_status=$?
  21822. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21823. test $ac_status = 0; }; then
  21824. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21825. test "x$?" != "x0" && pkg_failed=yes
  21826. else
  21827. pkg_failed=yes
  21828. fi
  21829. else
  21830. pkg_failed=untried
  21831. fi
  21832. if test $pkg_failed = yes; then
  21833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21834. printf "%s\n" "no" >&6; }
  21835. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21836. _pkg_short_errors_supported=yes
  21837. else
  21838. _pkg_short_errors_supported=no
  21839. fi
  21840. if test $_pkg_short_errors_supported = yes; then
  21841. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21842. else
  21843. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21844. fi
  21845. # Put the nasty error message in config.log where it belongs
  21846. echo "$LIBDRM_PKG_ERRORS" >&5
  21847. libdrm_avail=no
  21848. elif test $pkg_failed = untried; then
  21849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21850. printf "%s\n" "no" >&6; }
  21851. libdrm_avail=no
  21852. else
  21853. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21854. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21856. printf "%s\n" "yes" >&6; }
  21857. libdrm_avail=yes
  21858. fi
  21859. pkg_failed=no
  21860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21861. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21862. if test -n "$LIBGBM_CFLAGS"; then
  21863. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21864. elif test -n "$PKG_CONFIG"; then
  21865. if test -n "$PKG_CONFIG" && \
  21866. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21867. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21868. ac_status=$?
  21869. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21870. test $ac_status = 0; }; then
  21871. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21872. test "x$?" != "x0" && pkg_failed=yes
  21873. else
  21874. pkg_failed=yes
  21875. fi
  21876. else
  21877. pkg_failed=untried
  21878. fi
  21879. if test -n "$LIBGBM_LIBS"; then
  21880. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21881. elif test -n "$PKG_CONFIG"; then
  21882. if test -n "$PKG_CONFIG" && \
  21883. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21884. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21885. ac_status=$?
  21886. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21887. test $ac_status = 0; }; then
  21888. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  21889. test "x$?" != "x0" && pkg_failed=yes
  21890. else
  21891. pkg_failed=yes
  21892. fi
  21893. else
  21894. pkg_failed=untried
  21895. fi
  21896. if test $pkg_failed = yes; then
  21897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21898. printf "%s\n" "no" >&6; }
  21899. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21900. _pkg_short_errors_supported=yes
  21901. else
  21902. _pkg_short_errors_supported=no
  21903. fi
  21904. if test $_pkg_short_errors_supported = yes; then
  21905. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21906. else
  21907. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21908. fi
  21909. # Put the nasty error message in config.log where it belongs
  21910. echo "$LIBGBM_PKG_ERRORS" >&5
  21911. libgbm_avail=no
  21912. elif test $pkg_failed = untried; then
  21913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21914. printf "%s\n" "no" >&6; }
  21915. libgbm_avail=no
  21916. else
  21917. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  21918. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  21919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21920. printf "%s\n" "yes" >&6; }
  21921. libgbm_avail=yes
  21922. fi
  21923. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  21924. video_kmsdrm=yes
  21925. fi
  21926. if test x$video_kmsdrm = xyes; then
  21927. # Check whether --enable-kmsdrm-shared was given.
  21928. if test ${enable_kmsdrm_shared+y}
  21929. then :
  21930. enableval=$enable_kmsdrm_shared;
  21931. else $as_nop
  21932. enable_kmsdrm_shared=yes
  21933. fi
  21934. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  21935. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  21936. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  21937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  21938. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  21939. kmsdrm_shared=no
  21940. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  21941. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  21942. if test x$have_loadso != xyes && \
  21943. test x$enable_kmsdrm_shared = xyes; then
  21944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  21945. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  21946. fi
  21947. if test x$have_loadso = xyes && \
  21948. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  21949. kmsdrm_shared=yes
  21950. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  21951. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  21952. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  21953. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  21954. else
  21955. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  21956. SUMMARY_video="${SUMMARY_video} kmsdrm"
  21957. fi
  21958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  21959. printf "%s\n" "$kmsdrm_shared" >&6; }
  21960. if test x$kmsdrm_shared = xyes; then
  21961. echo "-- dynamic libdrm -> $drm_lib"
  21962. echo "-- dynamic libgbm -> $gbm_lib"
  21963. fi
  21964. have_video=yes
  21965. fi
  21966. fi
  21967. }
  21968. CheckDummyVideo()
  21969. {
  21970. # Check whether --enable-video-dummy was given.
  21971. if test ${enable_video_dummy+y}
  21972. then :
  21973. enableval=$enable_video_dummy;
  21974. else $as_nop
  21975. enable_video_dummy=yes
  21976. fi
  21977. if test x$enable_video_dummy = xyes; then
  21978. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  21979. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  21980. have_video=yes
  21981. SUMMARY_video="${SUMMARY_video} dummy"
  21982. fi
  21983. }
  21984. CheckOffscreenVideo()
  21985. {
  21986. # Check whether --enable-video-offscreen was given.
  21987. if test ${enable_video_offscreen+y}
  21988. then :
  21989. enableval=$enable_video_offscreen;
  21990. else $as_nop
  21991. enable_video_offscreen=yes
  21992. fi
  21993. if test x$enable_video_offscreen = xyes; then
  21994. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  21995. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  21996. have_video=yes
  21997. SUMMARY_video="${SUMMARY_video} offscreen"
  21998. fi
  21999. }
  22000. CheckQNXVideo()
  22001. {
  22002. if test x$enable_video = xyes; then
  22003. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22004. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22005. have_video=yes
  22006. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22007. SUMMARY_video="${SUMMARY_video} qnx"
  22008. fi
  22009. }
  22010. CheckQNXAudio()
  22011. {
  22012. if test x$enable_audio = xyes; then
  22013. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22014. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22015. have_audio=yes
  22016. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22017. SUMMARY_audio="${SUMMARY_audio} qsa"
  22018. fi
  22019. }
  22020. # Check whether --enable-video-opengl was given.
  22021. if test ${enable_video_opengl+y}
  22022. then :
  22023. enableval=$enable_video_opengl;
  22024. else $as_nop
  22025. enable_video_opengl=yes
  22026. fi
  22027. CheckGLX()
  22028. {
  22029. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22031. printf %s "checking for GLX support... " >&6; }
  22032. video_opengl_glx=no
  22033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22034. /* end confdefs.h. */
  22035. #include <GL/glx.h>
  22036. int
  22037. main (void)
  22038. {
  22039. ;
  22040. return 0;
  22041. }
  22042. _ACEOF
  22043. if ac_fn_c_try_compile "$LINENO"
  22044. then :
  22045. video_opengl_glx=yes
  22046. fi
  22047. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22049. printf "%s\n" "$video_opengl_glx" >&6; }
  22050. if test x$video_opengl_glx = xyes; then
  22051. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22052. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22053. fi
  22054. fi
  22055. }
  22056. # Check whether --enable-video-opengles was given.
  22057. if test ${enable_video_opengles+y}
  22058. then :
  22059. enableval=$enable_video_opengles;
  22060. else $as_nop
  22061. enable_video_opengles=yes
  22062. fi
  22063. # Check whether --enable-video-opengles1 was given.
  22064. if test ${enable_video_opengles1+y}
  22065. then :
  22066. enableval=$enable_video_opengles1;
  22067. else $as_nop
  22068. enable_video_opengles1=yes
  22069. fi
  22070. # Check whether --enable-video-opengles2 was given.
  22071. if test ${enable_video_opengles2+y}
  22072. then :
  22073. enableval=$enable_video_opengles2;
  22074. else $as_nop
  22075. enable_video_opengles2=yes
  22076. fi
  22077. CheckEGL()
  22078. {
  22079. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22081. printf %s "checking for EGL support... " >&6; }
  22082. video_opengl_egl=no
  22083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22084. /* end confdefs.h. */
  22085. #define LINUX
  22086. #define EGL_API_FB
  22087. #define MESA_EGL_NO_X11_HEADERS
  22088. #define EGL_NO_X11
  22089. #include <EGL/egl.h>
  22090. #include <EGL/eglext.h>
  22091. int
  22092. main (void)
  22093. {
  22094. ;
  22095. return 0;
  22096. }
  22097. _ACEOF
  22098. if ac_fn_c_try_compile "$LINENO"
  22099. then :
  22100. video_opengl_egl=yes
  22101. fi
  22102. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22104. printf "%s\n" "$video_opengl_egl" >&6; }
  22105. if test x$video_opengl_egl = xyes; then
  22106. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22107. fi
  22108. fi
  22109. }
  22110. CheckOpenGL()
  22111. {
  22112. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22114. printf %s "checking for OpenGL headers... " >&6; }
  22115. video_opengl=no
  22116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22117. /* end confdefs.h. */
  22118. #include <GL/gl.h>
  22119. #include <GL/glext.h>
  22120. int
  22121. main (void)
  22122. {
  22123. ;
  22124. return 0;
  22125. }
  22126. _ACEOF
  22127. if ac_fn_c_try_compile "$LINENO"
  22128. then :
  22129. video_opengl=yes
  22130. fi
  22131. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22133. printf "%s\n" "$video_opengl" >&6; }
  22134. if test x$video_opengl = xyes; then
  22135. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22136. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22137. SUMMARY_video="${SUMMARY_video} opengl"
  22138. fi
  22139. fi
  22140. }
  22141. CheckOpenGLES()
  22142. {
  22143. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22144. if test x$enable_video_opengles1 = xyes; then
  22145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22146. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22147. video_opengles_v1=no
  22148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22149. /* end confdefs.h. */
  22150. #include <GLES/gl.h>
  22151. #include <GLES/glext.h>
  22152. int
  22153. main (void)
  22154. {
  22155. ;
  22156. return 0;
  22157. }
  22158. _ACEOF
  22159. if ac_fn_c_try_compile "$LINENO"
  22160. then :
  22161. video_opengles_v1=yes
  22162. fi
  22163. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22165. printf "%s\n" "$video_opengles_v1" >&6; }
  22166. if test x$video_opengles_v1 = xyes; then
  22167. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22168. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22169. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22170. fi
  22171. fi
  22172. if test x$enable_video_opengles2 = xyes; then
  22173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22174. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22175. video_opengles_v2=no
  22176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22177. /* end confdefs.h. */
  22178. #include <GLES2/gl2.h>
  22179. #include <GLES2/gl2ext.h>
  22180. int
  22181. main (void)
  22182. {
  22183. ;
  22184. return 0;
  22185. }
  22186. _ACEOF
  22187. if ac_fn_c_try_compile "$LINENO"
  22188. then :
  22189. video_opengles_v2=yes
  22190. fi
  22191. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22193. printf "%s\n" "$video_opengles_v2" >&6; }
  22194. if test x$video_opengles_v2 = xyes; then
  22195. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22196. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22197. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22198. fi
  22199. fi
  22200. fi
  22201. }
  22202. CheckWINDOWSGL()
  22203. {
  22204. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22205. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22206. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22207. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22208. SUMMARY_video="${SUMMARY_video} opengl"
  22209. fi
  22210. }
  22211. CheckWINDOWSGLES()
  22212. {
  22213. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22215. printf %s "checking for EGL support... " >&6; }
  22216. video_opengl_egl=no
  22217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22218. /* end confdefs.h. */
  22219. #include <EGL/egl.h>
  22220. int
  22221. main (void)
  22222. {
  22223. ;
  22224. return 0;
  22225. }
  22226. _ACEOF
  22227. if ac_fn_c_try_compile "$LINENO"
  22228. then :
  22229. video_opengl_egl=yes
  22230. fi
  22231. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22233. printf "%s\n" "$video_opengl_egl" >&6; }
  22234. if test x$video_opengl_egl = xyes; then
  22235. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22236. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22237. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22238. fi
  22239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22240. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22241. video_opengles_v2=no
  22242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22243. /* end confdefs.h. */
  22244. #include <GLES2/gl2.h>
  22245. #include <GLES2/gl2ext.h>
  22246. int
  22247. main (void)
  22248. {
  22249. ;
  22250. return 0;
  22251. }
  22252. _ACEOF
  22253. if ac_fn_c_try_compile "$LINENO"
  22254. then :
  22255. video_opengles_v2=yes
  22256. fi
  22257. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22259. printf "%s\n" "$video_opengles_v2" >&6; }
  22260. if test x$video_opengles_v2 = xyes; then
  22261. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22262. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22263. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22264. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22265. fi
  22266. fi
  22267. }
  22268. CheckHaikuGL()
  22269. {
  22270. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22271. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22272. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22273. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22275. SUMMARY_video="${SUMMARY_video} opengl"
  22276. fi
  22277. }
  22278. CheckMacGL()
  22279. {
  22280. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22281. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22282. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22283. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22284. SUMMARY_video="${SUMMARY_video} opengl"
  22285. fi
  22286. }
  22287. CheckMacGLES()
  22288. {
  22289. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22290. video_opengl_egl=yes
  22291. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22292. video_opengles_v2=yes
  22293. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22294. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22295. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22296. fi
  22297. }
  22298. CheckEmscriptenGLES()
  22299. {
  22300. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22302. printf %s "checking for EGL support... " >&6; }
  22303. video_opengl_egl=no
  22304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22305. /* end confdefs.h. */
  22306. #include <EGL/egl.h>
  22307. int
  22308. main (void)
  22309. {
  22310. ;
  22311. return 0;
  22312. }
  22313. _ACEOF
  22314. if ac_fn_c_try_compile "$LINENO"
  22315. then :
  22316. video_opengl_egl=yes
  22317. fi
  22318. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22320. printf "%s\n" "$video_opengl_egl" >&6; }
  22321. if test x$video_opengl_egl = xyes; then
  22322. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22323. fi
  22324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22325. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22326. video_opengles_v2=no
  22327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22328. /* end confdefs.h. */
  22329. #include <GLES2/gl2.h>
  22330. #include <GLES2/gl2ext.h>
  22331. int
  22332. main (void)
  22333. {
  22334. ;
  22335. return 0;
  22336. }
  22337. _ACEOF
  22338. if ac_fn_c_try_compile "$LINENO"
  22339. then :
  22340. video_opengles_v2=yes
  22341. fi
  22342. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22344. printf "%s\n" "$video_opengles_v2" >&6; }
  22345. if test x$video_opengles_v2 = xyes; then
  22346. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22347. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22348. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22349. fi
  22350. fi
  22351. }
  22352. # Check whether --enable-video-vulkan was given.
  22353. if test ${enable_video_vulkan+y}
  22354. then :
  22355. enableval=$enable_video_vulkan;
  22356. else $as_nop
  22357. enable_video_vulkan=yes
  22358. fi
  22359. CheckVulkan()
  22360. {
  22361. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22362. case "$host" in
  22363. *-*-android*)
  22364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22365. /* end confdefs.h. */
  22366. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22367. #error Vulkan doesn't work on this configuration
  22368. #endif
  22369. int
  22370. main (void)
  22371. {
  22372. ;
  22373. return 0;
  22374. }
  22375. _ACEOF
  22376. if ac_fn_c_try_compile "$LINENO"
  22377. then :
  22378. else $as_nop
  22379. enable_video_vulkan=no
  22380. fi
  22381. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22382. ;;
  22383. *-*-darwin*)
  22384. save_CFLAGS="$CFLAGS"
  22385. CFLAGS="$CFLAGS -x objective-c"
  22386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22387. /* end confdefs.h. */
  22388. #include <Cocoa/Cocoa.h>
  22389. #include <Metal/Metal.h>
  22390. #include <QuartzCore/CAMetalLayer.h>
  22391. #if TARGET_CPU_X86
  22392. #error Vulkan doesn't work on this configuration
  22393. #endif
  22394. int
  22395. main (void)
  22396. {
  22397. ;
  22398. return 0;
  22399. }
  22400. _ACEOF
  22401. if ac_fn_c_try_compile "$LINENO"
  22402. then :
  22403. else $as_nop
  22404. enable_video_vulkan=no
  22405. fi
  22406. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22407. CFLAGS="$save_CFLAGS"
  22408. ;;
  22409. *)
  22410. ;;
  22411. esac
  22412. if test x$enable_video_vulkan = xno; then
  22413. # For reasons I am totally unable to see, I get an undefined macro error if
  22414. # I put this in the AC_TRY_COMPILE.
  22415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22416. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22417. fi
  22418. fi
  22419. if test x$have_loadso != xyes; then
  22420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22421. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22422. enable_video_vulkan=no
  22423. fi
  22424. if test x$enable_video_vulkan = xyes; then
  22425. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22426. SUMMARY_video="${SUMMARY_video} vulkan"
  22427. fi
  22428. }
  22429. CheckInputEvents()
  22430. {
  22431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22432. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22433. use_input_events=no
  22434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22435. /* end confdefs.h. */
  22436. #include <linux/input.h>
  22437. int
  22438. main (void)
  22439. {
  22440. #ifndef EVIOCGNAME
  22441. #error EVIOCGNAME() ioctl not available
  22442. #endif
  22443. ;
  22444. return 0;
  22445. }
  22446. _ACEOF
  22447. if ac_fn_c_try_compile "$LINENO"
  22448. then :
  22449. use_input_events=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: $use_input_events" >&5
  22453. printf "%s\n" "$use_input_events" >&6; }
  22454. if test x$use_input_events = xyes; then
  22455. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22456. SUMMARY_input="${SUMMARY_input} linuxev"
  22457. fi
  22458. }
  22459. CheckInputKD()
  22460. {
  22461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22462. printf %s "checking for Linux kd.h... " >&6; }
  22463. use_input_kd=no
  22464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22465. /* end confdefs.h. */
  22466. #include <linux/kd.h>
  22467. #include <linux/keyboard.h>
  22468. #include <sys/ioctl.h>
  22469. int
  22470. main (void)
  22471. {
  22472. struct kbentry kbe;
  22473. kbe.kb_table = KG_CTRL;
  22474. ioctl(0, KDGKBENT, &kbe);
  22475. ;
  22476. return 0;
  22477. }
  22478. _ACEOF
  22479. if ac_fn_c_try_compile "$LINENO"
  22480. then :
  22481. use_input_kd=yes
  22482. fi
  22483. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22485. printf "%s\n" "$use_input_kd" >&6; }
  22486. if test x$use_input_kd = xyes; then
  22487. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22488. SUMMARY_input="${SUMMARY_input} linuxkd"
  22489. fi
  22490. }
  22491. CheckInputKBIO()
  22492. {
  22493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22494. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22495. use_input_kbio=no
  22496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22497. /* end confdefs.h. */
  22498. #include <sys/kbio.h>
  22499. #include <sys/ioctl.h>
  22500. int
  22501. main (void)
  22502. {
  22503. accentmap_t accTable;
  22504. ioctl(0, KDENABIO, 1);
  22505. ;
  22506. return 0;
  22507. }
  22508. _ACEOF
  22509. if ac_fn_c_try_compile "$LINENO"
  22510. then :
  22511. use_input_kbio=yes
  22512. fi
  22513. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22515. printf "%s\n" "$use_input_kbio" >&6; }
  22516. if test x$use_input_kbio = xyes; then
  22517. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22518. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22519. fi
  22520. }
  22521. CheckInputWSCONS()
  22522. {
  22523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22524. printf %s "checking for OpenBSD wscons... " >&6; }
  22525. use_input_wscons=no
  22526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22527. /* end confdefs.h. */
  22528. #include <sys/time.h>
  22529. #include <dev/wscons/wsconsio.h>
  22530. #include <dev/wscons/wsksymdef.h>
  22531. #include <dev/wscons/wsksymvar.h>
  22532. #include <sys/ioctl.h>
  22533. int
  22534. main (void)
  22535. {
  22536. struct wskbd_map_data data;
  22537. ioctl(0, WSKBDIO_GETMAP, &data);
  22538. ;
  22539. return 0;
  22540. }
  22541. _ACEOF
  22542. if ac_fn_c_try_compile "$LINENO"
  22543. then :
  22544. use_input_wscons=yes
  22545. fi
  22546. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22548. printf "%s\n" "$use_input_wscons" >&6; }
  22549. if test x$use_input_wscons = xyes; then
  22550. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22551. SUMMARY_input="${SUMMARY_input} wscons"
  22552. fi
  22553. }
  22554. CheckLibUDev()
  22555. {
  22556. # Check whether --enable-libudev was given.
  22557. if test ${enable_libudev+y}
  22558. then :
  22559. enableval=$enable_libudev;
  22560. else $as_nop
  22561. enable_libudev=yes
  22562. fi
  22563. if test x$enable_libudev = xyes; then
  22564. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22565. if test "x$ac_cv_header_libudev_h" = xyes
  22566. then :
  22567. have_libudev_h_hdr=yes
  22568. else $as_nop
  22569. have_libudev_h_hdr=no
  22570. fi
  22571. if test x$have_libudev_h_hdr = xyes; then
  22572. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22573. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22574. if test x$udev_lib != x; then
  22575. echo "-- dynamic udev -> $udev_lib"
  22576. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22577. fi
  22578. fi
  22579. fi
  22580. }
  22581. CheckDBus()
  22582. {
  22583. # Check whether --enable-dbus was given.
  22584. if test ${enable_dbus+y}
  22585. then :
  22586. enableval=$enable_dbus;
  22587. else $as_nop
  22588. enable_dbus=yes
  22589. fi
  22590. if test x$enable_dbus = xyes; then
  22591. pkg_failed=no
  22592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22593. printf %s "checking for dbus-1... " >&6; }
  22594. if test -n "$DBUS_CFLAGS"; then
  22595. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22596. elif test -n "$PKG_CONFIG"; then
  22597. if test -n "$PKG_CONFIG" && \
  22598. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22599. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22600. ac_status=$?
  22601. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22602. test $ac_status = 0; }; then
  22603. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22604. test "x$?" != "x0" && pkg_failed=yes
  22605. else
  22606. pkg_failed=yes
  22607. fi
  22608. else
  22609. pkg_failed=untried
  22610. fi
  22611. if test -n "$DBUS_LIBS"; then
  22612. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22613. elif test -n "$PKG_CONFIG"; then
  22614. if test -n "$PKG_CONFIG" && \
  22615. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22616. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22617. ac_status=$?
  22618. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22619. test $ac_status = 0; }; then
  22620. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22621. test "x$?" != "x0" && pkg_failed=yes
  22622. else
  22623. pkg_failed=yes
  22624. fi
  22625. else
  22626. pkg_failed=untried
  22627. fi
  22628. if test $pkg_failed = yes; then
  22629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22630. printf "%s\n" "no" >&6; }
  22631. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22632. _pkg_short_errors_supported=yes
  22633. else
  22634. _pkg_short_errors_supported=no
  22635. fi
  22636. if test $_pkg_short_errors_supported = yes; then
  22637. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22638. else
  22639. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22640. fi
  22641. # Put the nasty error message in config.log where it belongs
  22642. echo "$DBUS_PKG_ERRORS" >&5
  22643. have_dbus=no
  22644. elif test $pkg_failed = untried; then
  22645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22646. printf "%s\n" "no" >&6; }
  22647. have_dbus=no
  22648. else
  22649. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22650. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22652. printf "%s\n" "yes" >&6; }
  22653. have_dbus=yes
  22654. fi
  22655. save_CPPFLAGS="$CPPFLAGS"
  22656. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22657. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22658. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22659. then :
  22660. have_dbus_dbus_h_hdr=yes
  22661. else $as_nop
  22662. have_dbus_dbus_h_hdr=no
  22663. fi
  22664. CPPFLAGS="$save_CPPFLAGS"
  22665. if test x$have_dbus_dbus_h_hdr = xyes; then
  22666. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22667. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22668. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22669. fi
  22670. fi
  22671. }
  22672. CheckIME()
  22673. {
  22674. # Check whether --enable-ime was given.
  22675. if test ${enable_ime+y}
  22676. then :
  22677. enableval=$enable_ime;
  22678. else $as_nop
  22679. enable_ime=yes
  22680. fi
  22681. if test x$enable_ime = xyes; then
  22682. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22683. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22684. fi
  22685. }
  22686. CheckInotify()
  22687. {
  22688. save_LIBS="$LIBS"
  22689. case "$host" in
  22690. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22691. ;;
  22692. esac
  22693. for ac_header in sys/inotify.h
  22694. do :
  22695. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22696. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22697. then :
  22698. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22699. have_inotify_inotify_h_hdr=yes
  22700. fi
  22701. done
  22702. for ac_func in inotify_init
  22703. do :
  22704. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22705. if test "x$ac_cv_func_inotify_init" = xyes
  22706. then :
  22707. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22708. have_inotify=yes
  22709. fi
  22710. done
  22711. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22712. if test "x$ac_cv_func_inotify_init1" = xyes
  22713. then :
  22714. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22715. fi
  22716. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22717. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22718. case "$host" in
  22719. *-*-freebsd*|*-*-dragonfly*)
  22720. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22721. ;;
  22722. esac
  22723. fi
  22724. LIBS="$save_LIBS"
  22725. }
  22726. CheckIBus()
  22727. {
  22728. # Check whether --enable-ibus was given.
  22729. if test ${enable_ibus+y}
  22730. then :
  22731. enableval=$enable_ibus;
  22732. else $as_nop
  22733. enable_ibus=yes
  22734. fi
  22735. if test x$enable_ibus = xyes; then
  22736. pkg_failed=no
  22737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22738. printf %s "checking for ibus-1.0... " >&6; }
  22739. if test -n "$IBUS_CFLAGS"; then
  22740. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22741. elif test -n "$PKG_CONFIG"; then
  22742. if test -n "$PKG_CONFIG" && \
  22743. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22744. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22745. ac_status=$?
  22746. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22747. test $ac_status = 0; }; then
  22748. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22749. test "x$?" != "x0" && pkg_failed=yes
  22750. else
  22751. pkg_failed=yes
  22752. fi
  22753. else
  22754. pkg_failed=untried
  22755. fi
  22756. if test -n "$IBUS_LIBS"; then
  22757. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22758. elif test -n "$PKG_CONFIG"; then
  22759. if test -n "$PKG_CONFIG" && \
  22760. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22761. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22762. ac_status=$?
  22763. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22764. test $ac_status = 0; }; then
  22765. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22766. test "x$?" != "x0" && pkg_failed=yes
  22767. else
  22768. pkg_failed=yes
  22769. fi
  22770. else
  22771. pkg_failed=untried
  22772. fi
  22773. if test $pkg_failed = yes; then
  22774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22775. printf "%s\n" "no" >&6; }
  22776. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22777. _pkg_short_errors_supported=yes
  22778. else
  22779. _pkg_short_errors_supported=no
  22780. fi
  22781. if test $_pkg_short_errors_supported = yes; then
  22782. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22783. else
  22784. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22785. fi
  22786. # Put the nasty error message in config.log where it belongs
  22787. echo "$IBUS_PKG_ERRORS" >&5
  22788. have_ibus=no
  22789. elif test $pkg_failed = untried; then
  22790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22791. printf "%s\n" "no" >&6; }
  22792. have_ibus=no
  22793. else
  22794. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22795. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22797. printf "%s\n" "yes" >&6; }
  22798. have_ibus=yes
  22799. fi
  22800. save_CPPFLAGS="$CPPFLAGS"
  22801. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22802. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22803. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22804. then :
  22805. have_ibus_ibus_h_hdr=yes
  22806. else $as_nop
  22807. have_ibus_ibus_h_hdr=no
  22808. fi
  22809. CPPFLAGS="$save_CPPFLAGS"
  22810. if test x$have_ibus_ibus_h_hdr = xyes; then
  22811. if test x$enable_ime != xyes; then
  22812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22813. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22814. have_ibus_ibus_h_hdr=no
  22815. elif test x$enable_dbus != xyes; then
  22816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22817. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22818. have_ibus_ibus_h_hdr=no
  22819. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22821. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22822. have_ibus_ibus_h_hdr=no
  22823. else
  22824. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22825. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22826. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22827. fi
  22828. fi
  22829. fi
  22830. }
  22831. CheckFcitx()
  22832. {
  22833. # Check whether --enable-fcitx was given.
  22834. if test ${enable_fcitx+y}
  22835. then :
  22836. enableval=$enable_fcitx;
  22837. else $as_nop
  22838. enable_fcitx=yes
  22839. fi
  22840. if test x$enable_fcitx = xyes; then
  22841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22842. printf %s "checking for fcitx support... " >&6; }
  22843. have_fcitx=no
  22844. if test x$enable_ime != xyes; then
  22845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22846. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22847. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22849. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22850. else
  22851. have_fcitx=yes
  22852. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22853. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22854. fi
  22855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22856. printf "%s\n" "$have_fcitx" >&6; }
  22857. fi
  22858. }
  22859. CheckJoystickMFI()
  22860. {
  22861. # Check whether --enable-joystick-mfi was given.
  22862. if test ${enable_joystick_mfi+y}
  22863. then :
  22864. enableval=$enable_joystick_mfi;
  22865. else $as_nop
  22866. enable_joystick_mfi=yes
  22867. fi
  22868. if test x$enable_joystick_mfi = xyes; then
  22869. save_CFLAGS="$CFLAGS"
  22870. save_LDFLAGS="$LDFLAGS"
  22871. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22872. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22874. printf %s "checking for GameController framework... " >&6; }
  22875. enable_joystick_mfi=no
  22876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22877. /* end confdefs.h. */
  22878. #include <AvailabilityMacros.h>
  22879. #include <TargetConditionals.h>
  22880. #import <GameController/GameController.h>
  22881. int
  22882. main (void)
  22883. {
  22884. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22885. #error GameController framework doesn't work on this configuration
  22886. #endif
  22887. #if TARGET_CPU_X86
  22888. #error GameController framework doesn't work on this configuration
  22889. #endif
  22890. ;
  22891. return 0;
  22892. }
  22893. _ACEOF
  22894. if ac_fn_c_try_link "$LINENO"
  22895. then :
  22896. enable_joystick_mfi=yes
  22897. fi
  22898. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22899. conftest$ac_exeext conftest.$ac_ext
  22900. CFLAGS="$save_CFLAGS"
  22901. LDFLAGS="$save_LDFLAGS"
  22902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  22903. printf "%s\n" "$enable_joystick_mfi" >&6; }
  22904. if test x$enable_joystick_mfi = xyes; then
  22905. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22906. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  22907. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22908. fi
  22909. fi
  22910. }
  22911. CheckPTHREAD()
  22912. {
  22913. case "$host" in
  22914. *-*-emscripten*)
  22915. enable_pthreads_default=no
  22916. ;;
  22917. *)
  22918. enable_pthreads_default=yes
  22919. ;;
  22920. esac
  22921. # Check whether --enable-pthreads was given.
  22922. if test ${enable_pthreads+y}
  22923. then :
  22924. enableval=$enable_pthreads;
  22925. else $as_nop
  22926. enable_pthreads=maybe
  22927. fi
  22928. # Check whether --enable-pthread-sem was given.
  22929. if test ${enable_pthread_sem+y}
  22930. then :
  22931. enableval=$enable_pthread_sem;
  22932. else $as_nop
  22933. enable_pthread_sem=maybe
  22934. fi
  22935. if test x$enable_pthreads = xmaybe; then
  22936. enable_pthreads=$enable_pthreads_default
  22937. fi
  22938. if test x$enable_pthread_sem = xmaybe; then
  22939. enable_pthread_sem=$enable_pthreads
  22940. fi
  22941. case "$host" in
  22942. *-*-android*)
  22943. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22944. pthread_lib=""
  22945. ;;
  22946. *-*-linux*|*-*-uclinux*)
  22947. pthread_cflags="-D_REENTRANT"
  22948. pthread_lib="-lpthread"
  22949. ;;
  22950. *-*-bsdi*)
  22951. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22952. pthread_lib=""
  22953. ;;
  22954. *-*-darwin*)
  22955. pthread_cflags="-D_THREAD_SAFE"
  22956. # causes Carbon.p complaints?
  22957. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22958. ;;
  22959. *-*-freebsd*|*-*-dragonfly*)
  22960. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22961. pthread_lib="-pthread"
  22962. ;;
  22963. *-*-netbsd*)
  22964. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22965. pthread_lib="-lpthread"
  22966. ;;
  22967. *-*-openbsd*)
  22968. pthread_cflags="-D_REENTRANT"
  22969. pthread_lib="-pthread"
  22970. ;;
  22971. *-*-solaris2.9)
  22972. # From Solaris 9+, posix4's preferred name is rt.
  22973. pthread_cflags="-D_REENTRANT"
  22974. pthread_lib="-lpthread -lrt"
  22975. ;;
  22976. *-*-solaris2.10)
  22977. # Solaris 10+ merged pthread into libc.
  22978. pthread_cflags="-D_REENTRANT"
  22979. pthread_lib="-lrt"
  22980. ;;
  22981. *-*-solaris*)
  22982. # Solaris 11+ merged rt into libc.
  22983. pthread_cflags="-D_REENTRANT"
  22984. pthread_lib=""
  22985. ;;
  22986. *-*-sysv5*)
  22987. pthread_cflags="-D_REENTRANT -Kthread"
  22988. pthread_lib=""
  22989. ;;
  22990. *-*-aix*)
  22991. pthread_cflags="-D_REENTRANT -mthreads"
  22992. pthread_lib="-lpthread"
  22993. ;;
  22994. *-*-hpux11*)
  22995. pthread_cflags="-D_REENTRANT"
  22996. pthread_lib="-L/usr/lib -lpthread"
  22997. ;;
  22998. *-*-haiku*)
  22999. pthread_cflags="-D_REENTRANT"
  23000. pthread_lib=""
  23001. ;;
  23002. *-*-nto*)
  23003. pthread_cflags="-D_REENTRANT"
  23004. pthread_lib=""
  23005. ;;
  23006. *-*-emscripten*)
  23007. pthread_cflags="-D_REENTRANT -pthread"
  23008. pthread_lib="-pthread"
  23009. ;;
  23010. *)
  23011. pthread_cflags="-D_REENTRANT"
  23012. pthread_lib="-lpthread"
  23013. ;;
  23014. esac
  23015. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23016. # Save the original compiler flags and libraries
  23017. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23018. # Add the pthread compiler flags and libraries
  23019. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23020. # Check to see if we have pthread support on this system
  23021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23022. printf %s "checking for pthreads... " >&6; }
  23023. use_pthreads=no
  23024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23025. /* end confdefs.h. */
  23026. #include <pthread.h>
  23027. int
  23028. main (void)
  23029. {
  23030. pthread_attr_t type;
  23031. pthread_attr_init(&type);
  23032. ;
  23033. return 0;
  23034. }
  23035. _ACEOF
  23036. if ac_fn_c_try_link "$LINENO"
  23037. then :
  23038. use_pthreads=yes
  23039. fi
  23040. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23041. conftest$ac_exeext conftest.$ac_ext
  23042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23043. printf "%s\n" "$use_pthreads" >&6; }
  23044. # Restore the compiler flags and libraries
  23045. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23046. # Do futher testing if we have pthread support...
  23047. if test x$use_pthreads = xyes; then
  23048. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23049. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23050. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23051. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23052. # Save the original compiler flags and libraries
  23053. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23054. # Add the pthread compiler flags and libraries
  23055. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23056. # Check to see if recursive mutexes are available
  23057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23058. printf %s "checking for recursive mutexes... " >&6; }
  23059. has_recursive_mutexes=no
  23060. if test x$has_recursive_mutexes = xno; then
  23061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23062. /* end confdefs.h. */
  23063. #define _GNU_SOURCE 1
  23064. #include <pthread.h>
  23065. int
  23066. main (void)
  23067. {
  23068. pthread_mutexattr_t attr;
  23069. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23070. ;
  23071. return 0;
  23072. }
  23073. _ACEOF
  23074. if ac_fn_c_try_link "$LINENO"
  23075. then :
  23076. has_recursive_mutexes=yes
  23077. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23078. fi
  23079. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23080. conftest$ac_exeext conftest.$ac_ext
  23081. fi
  23082. if test x$has_recursive_mutexes = xno; then
  23083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23084. /* end confdefs.h. */
  23085. #define _GNU_SOURCE 1
  23086. #include <pthread.h>
  23087. int
  23088. main (void)
  23089. {
  23090. pthread_mutexattr_t attr;
  23091. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23092. ;
  23093. return 0;
  23094. }
  23095. _ACEOF
  23096. if ac_fn_c_try_link "$LINENO"
  23097. then :
  23098. has_recursive_mutexes=yes
  23099. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23100. fi
  23101. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23102. conftest$ac_exeext conftest.$ac_ext
  23103. fi
  23104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23105. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23106. # Check to see if pthread semaphore support is missing
  23107. if test x$enable_pthread_sem = xyes; then
  23108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23109. printf %s "checking for pthread semaphores... " >&6; }
  23110. have_pthread_sem=no
  23111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23112. /* end confdefs.h. */
  23113. #include <pthread.h>
  23114. #include <semaphore.h>
  23115. int
  23116. main (void)
  23117. {
  23118. ;
  23119. return 0;
  23120. }
  23121. _ACEOF
  23122. if ac_fn_c_try_compile "$LINENO"
  23123. then :
  23124. have_pthread_sem=yes
  23125. fi
  23126. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23128. printf "%s\n" "$have_pthread_sem" >&6; }
  23129. fi
  23130. if test x$have_pthread_sem = xyes; then
  23131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23132. printf %s "checking for sem_timedwait... " >&6; }
  23133. have_sem_timedwait=no
  23134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23135. /* end confdefs.h. */
  23136. #include <pthread.h>
  23137. #include <semaphore.h>
  23138. int
  23139. main (void)
  23140. {
  23141. sem_timedwait(NULL, NULL);
  23142. ;
  23143. return 0;
  23144. }
  23145. _ACEOF
  23146. if ac_fn_c_try_link "$LINENO"
  23147. then :
  23148. have_sem_timedwait=yes
  23149. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23150. fi
  23151. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23152. conftest$ac_exeext conftest.$ac_ext
  23153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23154. printf "%s\n" "$have_sem_timedwait" >&6; }
  23155. fi
  23156. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23157. "
  23158. if test "x$ac_cv_header_pthread_np_h" = xyes
  23159. then :
  23160. have_pthread_np_h=yes
  23161. else $as_nop
  23162. have_pthread_np_h=no
  23163. fi
  23164. if test x$have_pthread_np_h = xyes; then
  23165. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23166. fi
  23167. # Check to see if pthread naming is available
  23168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23169. printf %s "checking for pthread_setname_np... " >&6; }
  23170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23171. /* end confdefs.h. */
  23172. /* Override any GCC internal prototype to avoid an error.
  23173. Use char because int might match the return type of a GCC
  23174. builtin and then its argument prototype would still apply. */
  23175. char pthread_setname_np ();
  23176. int
  23177. main (void)
  23178. {
  23179. return pthread_setname_np ();
  23180. ;
  23181. return 0;
  23182. }
  23183. _ACEOF
  23184. if ac_fn_c_try_link "$LINENO"
  23185. then :
  23186. has_pthread_setname_np=yes
  23187. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23188. else $as_nop
  23189. has_pthread_setname_np=no
  23190. fi
  23191. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23192. conftest$ac_exeext conftest.$ac_ext
  23193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23194. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23196. printf %s "checking for pthread_set_name_np... " >&6; }
  23197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23198. /* end confdefs.h. */
  23199. /* Override any GCC internal prototype to avoid an error.
  23200. Use char because int might match the return type of a GCC
  23201. builtin and then its argument prototype would still apply. */
  23202. char pthread_set_name_np ();
  23203. int
  23204. main (void)
  23205. {
  23206. return pthread_set_name_np ();
  23207. ;
  23208. return 0;
  23209. }
  23210. _ACEOF
  23211. if ac_fn_c_try_link "$LINENO"
  23212. then :
  23213. has_pthread_set_name_np=yes
  23214. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23215. else $as_nop
  23216. has_pthread_set_name_np=no
  23217. fi
  23218. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23219. conftest$ac_exeext conftest.$ac_ext
  23220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23221. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23222. # Restore the compiler flags and libraries
  23223. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23224. # Basic thread creation functions
  23225. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23226. # Semaphores
  23227. # We can fake these with mutexes and condition variables if necessary
  23228. if test x$have_pthread_sem = xyes; then
  23229. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23230. else
  23231. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23232. fi
  23233. # Mutexes
  23234. # We can fake these with semaphores if necessary
  23235. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23236. # Condition variables
  23237. # We can fake these with semaphores and mutexes if necessary
  23238. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23239. # Thread local storage
  23240. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23241. have_threads=yes
  23242. fi
  23243. fi
  23244. }
  23245. CheckWINDOWS()
  23246. {
  23247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23248. printf %s "checking Windows compiler... " >&6; }
  23249. have_win32_gcc=no
  23250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23251. /* end confdefs.h. */
  23252. #include <windows.h>
  23253. int
  23254. main (void)
  23255. {
  23256. ;
  23257. return 0;
  23258. }
  23259. _ACEOF
  23260. if ac_fn_c_try_compile "$LINENO"
  23261. then :
  23262. have_win32_gcc=yes
  23263. fi
  23264. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23266. printf "%s\n" "$have_win32_gcc" >&6; }
  23267. if test x$have_win32_gcc != xyes; then
  23268. as_fn_error $? "
  23269. *** Your compiler ($CC) does not produce Windows executables!
  23270. " "$LINENO" 5
  23271. fi
  23272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23273. printf %s "checking Windows CE... " >&6; }
  23274. have_wince=no
  23275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23276. /* end confdefs.h. */
  23277. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23278. #error This is not Windows CE
  23279. #endif
  23280. int
  23281. main (void)
  23282. {
  23283. ;
  23284. return 0;
  23285. }
  23286. _ACEOF
  23287. if ac_fn_c_try_compile "$LINENO"
  23288. then :
  23289. have_wince=yes
  23290. as_fn_error $? "
  23291. *** Sorry, Windows CE is no longer supported.
  23292. " "$LINENO" 5
  23293. fi
  23294. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23296. printf "%s\n" "$have_wince" >&6; }
  23297. # This fixes Windows stack alignment with newer GCC
  23298. CheckStackBoundary
  23299. # headers needed elsewhere
  23300. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23301. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23302. then :
  23303. have_tpcshrd_h=yes
  23304. fi
  23305. if test x$have_tpcshrd_h = xyes; then
  23306. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23307. fi
  23308. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23309. if test "x$ac_cv_header_roapi_h" = xyes
  23310. then :
  23311. have_roapi_h=yes
  23312. fi
  23313. if test x$have_roapi_h = xyes; then
  23314. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23315. fi
  23316. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23317. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23318. then :
  23319. have_shellscalingapi_h=yes
  23320. fi
  23321. if test x$shellscalingapi_h = xyes; then
  23322. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23323. fi
  23324. }
  23325. CheckOS2()
  23326. {
  23327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23328. printf %s "checking OS/2 compiler... " >&6; }
  23329. have_os2_gcc=no
  23330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23331. /* end confdefs.h. */
  23332. #include <os2.h>
  23333. int
  23334. main (void)
  23335. {
  23336. ;
  23337. return 0;
  23338. }
  23339. _ACEOF
  23340. if ac_fn_c_try_compile "$LINENO"
  23341. then :
  23342. have_os2_gcc=yes
  23343. fi
  23344. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23346. printf "%s\n" "$have_os2_gcc" >&6; }
  23347. if test x$have_os2_gcc != xyes; then
  23348. as_fn_error $? "
  23349. *** Your compiler ($CC) does not produce OS/2 executables!
  23350. " "$LINENO" 5
  23351. fi
  23352. }
  23353. CheckDIRECTX()
  23354. {
  23355. # Check whether --enable-directx was given.
  23356. if test ${enable_directx+y}
  23357. then :
  23358. enableval=$enable_directx;
  23359. else $as_nop
  23360. enable_directx=yes
  23361. fi
  23362. if test x$enable_directx = xyes; then
  23363. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23364. if test "x$ac_cv_header_d3d9_h" = xyes
  23365. then :
  23366. have_d3d=yes
  23367. fi
  23368. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23369. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23370. then :
  23371. have_d3d11=yes
  23372. fi
  23373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23374. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23376. /* end confdefs.h. */
  23377. #include <winsdkver.h>
  23378. #include <sdkddkver.h>
  23379. #include <d3d12.h>
  23380. ID3D12Device1 *device;
  23381. #if WDK_NTDDI_VERSION <= 0x0A000008
  23382. asdf
  23383. #endif
  23384. int
  23385. main (void)
  23386. {
  23387. ;
  23388. return 0;
  23389. }
  23390. _ACEOF
  23391. if ac_fn_c_try_compile "$LINENO"
  23392. then :
  23393. have_d3d12=yes
  23394. else $as_nop
  23395. have_d3d12=no
  23396. fi
  23397. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23399. printf "%s\n" "$have_d3d12" >&6; }
  23400. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23401. if test "x$ac_cv_header_ddraw_h" = xyes
  23402. then :
  23403. have_ddraw=yes
  23404. fi
  23405. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23406. if test "x$ac_cv_header_dsound_h" = xyes
  23407. then :
  23408. have_dsound=yes
  23409. fi
  23410. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23411. if test "x$ac_cv_header_dinput_h" = xyes
  23412. then :
  23413. have_dinput=yes
  23414. fi
  23415. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23416. if test "x$ac_cv_header_dxgi_h" = xyes
  23417. then :
  23418. have_dxgi=yes
  23419. fi
  23420. if test x$have_ddraw = xyes; then
  23421. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23422. fi
  23423. if test x$have_dinput = xyes; then
  23424. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23425. fi
  23426. if test x$have_dsound = xyes; then
  23427. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23428. fi
  23429. if test x$have_dxgi = xyes; then
  23430. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23431. fi
  23432. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23433. # FIXME: ...so force it off for now.
  23434. case "$host" in
  23435. *-*-cygwin*)
  23436. have_dinput=false
  23437. ;;
  23438. esac
  23439. fi
  23440. # Check whether --enable-xinput was given.
  23441. if test ${enable_xinput+y}
  23442. then :
  23443. enableval=$enable_xinput;
  23444. else $as_nop
  23445. enable_xinput=yes
  23446. fi
  23447. if test x$enable_xinput = xyes; then
  23448. have_xinput_gamepadex=no
  23449. have_xinput_stateex=no
  23450. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23451. if test "x$ac_cv_header_xinput_h" = xyes
  23452. then :
  23453. have_xinput=yes
  23454. fi
  23455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23456. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23458. /* end confdefs.h. */
  23459. #include <windows.h>
  23460. #include <xinput.h>
  23461. XINPUT_GAMEPAD_EX x1;
  23462. int
  23463. main (void)
  23464. {
  23465. ;
  23466. return 0;
  23467. }
  23468. _ACEOF
  23469. if ac_fn_c_try_compile "$LINENO"
  23470. then :
  23471. have_xinput_gamepadex=yes
  23472. fi
  23473. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23475. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23477. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23479. /* end confdefs.h. */
  23480. #include <windows.h>
  23481. #include <xinput.h>
  23482. XINPUT_STATE_EX s1;
  23483. int
  23484. main (void)
  23485. {
  23486. ;
  23487. return 0;
  23488. }
  23489. _ACEOF
  23490. if ac_fn_c_try_compile "$LINENO"
  23491. then :
  23492. have_xinput_stateex=yes
  23493. fi
  23494. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23496. printf "%s\n" "$have_xinput_stateex" >&6; }
  23497. if test x$have_xinput = xyes; then
  23498. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23499. fi
  23500. if test x$have_xinput_gamepadex = xyes; then
  23501. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23502. fi
  23503. if test x$have_xinput_stateex = xyes; then
  23504. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23505. fi
  23506. fi
  23507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23508. printf %s "checking for windows.gaming.input.h... " >&6; }
  23509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23510. /* end confdefs.h. */
  23511. #define COBJMACROS
  23512. #include <windows.gaming.input.h>
  23513. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23514. int
  23515. main (void)
  23516. {
  23517. ;
  23518. return 0;
  23519. }
  23520. _ACEOF
  23521. if ac_fn_c_try_compile "$LINENO"
  23522. then :
  23523. have_wgi=yes
  23524. else $as_nop
  23525. have_wgi=no
  23526. fi
  23527. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23529. printf "%s\n" "$have_wgi" >&6; }
  23530. if test x$have_wgi = xyes; then
  23531. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23532. fi
  23533. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23534. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23535. then :
  23536. have_wasapi=yes
  23537. fi
  23538. if test x$have_wasapi = xyes; then
  23539. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23540. fi
  23541. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23542. if test "x$ac_cv_header_audioclient_h" = xyes
  23543. then :
  23544. else $as_nop
  23545. have_wasapi=no
  23546. fi
  23547. if test x$have_wasapi = xyes; then
  23548. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23549. fi
  23550. # Check whether --enable-wasapi was given.
  23551. if test ${enable_wasapi+y}
  23552. then :
  23553. enableval=$enable_wasapi;
  23554. else $as_nop
  23555. enable_wasapi=yes
  23556. fi
  23557. }
  23558. CheckDLOPEN()
  23559. {
  23560. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23561. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23562. if test "x$ac_cv_header_dlfcn_h" = xyes
  23563. then :
  23564. have_dlfcn_h=yes
  23565. else $as_nop
  23566. have_dlfcn_h=no
  23567. fi
  23568. have_dlopen=no
  23569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23570. printf %s "checking for dlopen in -lc... " >&6; }
  23571. if test ${ac_cv_lib_c_dlopen+y}
  23572. then :
  23573. printf %s "(cached) " >&6
  23574. else $as_nop
  23575. ac_check_lib_save_LIBS=$LIBS
  23576. LIBS="-lc $LIBS"
  23577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23578. /* end confdefs.h. */
  23579. /* Override any GCC internal prototype to avoid an error.
  23580. Use char because int might match the return type of a GCC
  23581. builtin and then its argument prototype would still apply. */
  23582. char dlopen ();
  23583. int
  23584. main (void)
  23585. {
  23586. return dlopen ();
  23587. ;
  23588. return 0;
  23589. }
  23590. _ACEOF
  23591. if ac_fn_c_try_link "$LINENO"
  23592. then :
  23593. ac_cv_lib_c_dlopen=yes
  23594. else $as_nop
  23595. ac_cv_lib_c_dlopen=no
  23596. fi
  23597. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23598. conftest$ac_exeext conftest.$ac_ext
  23599. LIBS=$ac_check_lib_save_LIBS
  23600. fi
  23601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23602. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23603. if test "x$ac_cv_lib_c_dlopen" = xyes
  23604. then :
  23605. have_dlopen=yes
  23606. else $as_nop
  23607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23608. printf %s "checking for dlopen in -ldl... " >&6; }
  23609. if test ${ac_cv_lib_dl_dlopen+y}
  23610. then :
  23611. printf %s "(cached) " >&6
  23612. else $as_nop
  23613. ac_check_lib_save_LIBS=$LIBS
  23614. LIBS="-ldl $LIBS"
  23615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23616. /* end confdefs.h. */
  23617. /* Override any GCC internal prototype to avoid an error.
  23618. Use char because int might match the return type of a GCC
  23619. builtin and then its argument prototype would still apply. */
  23620. char dlopen ();
  23621. int
  23622. main (void)
  23623. {
  23624. return dlopen ();
  23625. ;
  23626. return 0;
  23627. }
  23628. _ACEOF
  23629. if ac_fn_c_try_link "$LINENO"
  23630. then :
  23631. ac_cv_lib_dl_dlopen=yes
  23632. else $as_nop
  23633. ac_cv_lib_dl_dlopen=no
  23634. fi
  23635. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23636. conftest$ac_exeext conftest.$ac_ext
  23637. LIBS=$ac_check_lib_save_LIBS
  23638. fi
  23639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23640. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23641. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23642. then :
  23643. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23644. fi
  23645. fi
  23646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23647. printf %s "checking for dlopen... " >&6; }
  23648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23649. printf "%s\n" "$have_dlopen" >&6; }
  23650. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23651. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23652. if test x$enable_loadso = xyes; then
  23653. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23654. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23655. have_loadso=yes
  23656. fi
  23657. fi
  23658. }
  23659. CheckO_CLOEXEC()
  23660. {
  23661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23662. printf %s "checking for O_CLOEXEC... " >&6; }
  23663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23664. /* end confdefs.h. */
  23665. #include <fcntl.h>
  23666. int flag = O_CLOEXEC;
  23667. int
  23668. main (void)
  23669. {
  23670. ;
  23671. return 0;
  23672. }
  23673. _ACEOF
  23674. if ac_fn_c_try_compile "$LINENO"
  23675. then :
  23676. have_o_cloexec=yes
  23677. else $as_nop
  23678. have_o_cloexec=no
  23679. fi
  23680. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23682. printf "%s\n" "$have_o_cloexec" >&6; }
  23683. if test $have_o_cloexec = yes; then
  23684. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23685. fi
  23686. }
  23687. CheckUSBHID()
  23688. {
  23689. case "$host" in
  23690. *-*-*bsd*|*-*-dragonfly*)
  23691. if test x$enable_joystick = xyes; then
  23692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23693. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23694. if test ${ac_cv_lib_usbhid_hid_init+y}
  23695. then :
  23696. printf %s "(cached) " >&6
  23697. else $as_nop
  23698. ac_check_lib_save_LIBS=$LIBS
  23699. LIBS="-lusbhid $LIBS"
  23700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23701. /* end confdefs.h. */
  23702. /* Override any GCC internal prototype to avoid an error.
  23703. Use char because int might match the return type of a GCC
  23704. builtin and then its argument prototype would still apply. */
  23705. char hid_init ();
  23706. int
  23707. main (void)
  23708. {
  23709. return hid_init ();
  23710. ;
  23711. return 0;
  23712. }
  23713. _ACEOF
  23714. if ac_fn_c_try_link "$LINENO"
  23715. then :
  23716. ac_cv_lib_usbhid_hid_init=yes
  23717. else $as_nop
  23718. ac_cv_lib_usbhid_hid_init=no
  23719. fi
  23720. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23721. conftest$ac_exeext conftest.$ac_ext
  23722. LIBS=$ac_check_lib_save_LIBS
  23723. fi
  23724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23725. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23726. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23727. then :
  23728. have_libusbhid=yes
  23729. fi
  23730. if test x$have_libusbhid = xyes; then
  23731. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23732. if test "x$ac_cv_header_usbhid_h" = xyes
  23733. then :
  23734. USB_CFLAGS="-DHAVE_USBHID_H"
  23735. fi
  23736. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23737. if test "x$ac_cv_header_libusbhid_h" = xyes
  23738. then :
  23739. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23740. fi
  23741. USB_LIBS="$USB_LIBS -lusbhid"
  23742. else
  23743. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23744. if test "x$ac_cv_header_usb_h" = xyes
  23745. then :
  23746. USB_CFLAGS="-DHAVE_USB_H"
  23747. fi
  23748. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23749. if test "x$ac_cv_header_libusb_h" = xyes
  23750. then :
  23751. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23752. fi
  23753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23754. printf %s "checking for hid_init in -lusb... " >&6; }
  23755. if test ${ac_cv_lib_usb_hid_init+y}
  23756. then :
  23757. printf %s "(cached) " >&6
  23758. else $as_nop
  23759. ac_check_lib_save_LIBS=$LIBS
  23760. LIBS="-lusb $LIBS"
  23761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23762. /* end confdefs.h. */
  23763. /* Override any GCC internal prototype to avoid an error.
  23764. Use char because int might match the return type of a GCC
  23765. builtin and then its argument prototype would still apply. */
  23766. char hid_init ();
  23767. int
  23768. main (void)
  23769. {
  23770. return hid_init ();
  23771. ;
  23772. return 0;
  23773. }
  23774. _ACEOF
  23775. if ac_fn_c_try_link "$LINENO"
  23776. then :
  23777. ac_cv_lib_usb_hid_init=yes
  23778. else $as_nop
  23779. ac_cv_lib_usb_hid_init=no
  23780. fi
  23781. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23782. conftest$ac_exeext conftest.$ac_ext
  23783. LIBS=$ac_check_lib_save_LIBS
  23784. fi
  23785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23786. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23787. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23788. then :
  23789. USB_LIBS="$USB_LIBS -lusb"
  23790. fi
  23791. fi
  23792. save_CFLAGS="$CFLAGS"
  23793. CFLAGS="$CFLAGS $USB_CFLAGS"
  23794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23795. printf %s "checking for usbhid... " >&6; }
  23796. have_usbhid=no
  23797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23798. /* end confdefs.h. */
  23799. #include <sys/types.h>
  23800. #if defined(HAVE_USB_H)
  23801. #include <usb.h>
  23802. #endif
  23803. #ifdef __DragonFly__
  23804. # include <bus/u4b/usb.h>
  23805. # include <bus/u4b/usbhid.h>
  23806. #else
  23807. # include <dev/usb/usb.h>
  23808. # include <dev/usb/usbhid.h>
  23809. #endif
  23810. #if defined(HAVE_USBHID_H)
  23811. #include <usbhid.h>
  23812. #elif defined(HAVE_LIBUSB_H)
  23813. #include <libusb.h>
  23814. #elif defined(HAVE_LIBUSBHID_H)
  23815. #include <libusbhid.h>
  23816. #endif
  23817. int
  23818. main (void)
  23819. {
  23820. struct report_desc *repdesc;
  23821. struct usb_ctl_report *repbuf;
  23822. hid_kind_t hidkind;
  23823. ;
  23824. return 0;
  23825. }
  23826. _ACEOF
  23827. if ac_fn_c_try_compile "$LINENO"
  23828. then :
  23829. have_usbhid=yes
  23830. fi
  23831. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23833. printf "%s\n" "$have_usbhid" >&6; }
  23834. if test x$have_usbhid = xyes; then
  23835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23836. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23837. have_usbhid_ucr_data=no
  23838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23839. /* end confdefs.h. */
  23840. #include <sys/types.h>
  23841. #if defined(HAVE_USB_H)
  23842. #include <usb.h>
  23843. #endif
  23844. #ifdef __DragonFly__
  23845. # include <bus/u4b/usb.h>
  23846. # include <bus/u4b/usbhid.h>
  23847. #else
  23848. # include <dev/usb/usb.h>
  23849. # include <dev/usb/usbhid.h>
  23850. #endif
  23851. #if defined(HAVE_USBHID_H)
  23852. #include <usbhid.h>
  23853. #elif defined(HAVE_LIBUSB_H)
  23854. #include <libusb.h>
  23855. #elif defined(HAVE_LIBUSBHID_H)
  23856. #include <libusbhid.h>
  23857. #endif
  23858. int
  23859. main (void)
  23860. {
  23861. struct usb_ctl_report buf;
  23862. if (buf.ucr_data) { }
  23863. ;
  23864. return 0;
  23865. }
  23866. _ACEOF
  23867. if ac_fn_c_try_compile "$LINENO"
  23868. then :
  23869. have_usbhid_ucr_data=yes
  23870. fi
  23871. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23872. if test x$have_usbhid_ucr_data = xyes; then
  23873. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23874. fi
  23875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23876. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23878. printf %s "checking for new usbhid API... " >&6; }
  23879. have_usbhid_new=no
  23880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23881. /* end confdefs.h. */
  23882. #include <sys/types.h>
  23883. #if defined(HAVE_USB_H)
  23884. #include <usb.h>
  23885. #endif
  23886. #ifdef __DragonFly__
  23887. #include <bus/u4b/usb.h>
  23888. #include <bus/u4b/usbhid.h>
  23889. #else
  23890. #include <dev/usb/usb.h>
  23891. #include <dev/usb/usbhid.h>
  23892. #endif
  23893. #if defined(HAVE_USBHID_H)
  23894. #include <usbhid.h>
  23895. #elif defined(HAVE_LIBUSB_H)
  23896. #include <libusb.h>
  23897. #elif defined(HAVE_LIBUSBHID_H)
  23898. #include <libusbhid.h>
  23899. #endif
  23900. int
  23901. main (void)
  23902. {
  23903. report_desc_t d;
  23904. hid_start_parse(d, 1, 1);
  23905. ;
  23906. return 0;
  23907. }
  23908. _ACEOF
  23909. if ac_fn_c_try_compile "$LINENO"
  23910. then :
  23911. have_usbhid_new=yes
  23912. fi
  23913. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23914. if test x$have_usbhid_new = xyes; then
  23915. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  23916. fi
  23917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  23918. printf "%s\n" "$have_usbhid_new" >&6; }
  23919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  23920. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  23921. have_machine_joystick=no
  23922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23923. /* end confdefs.h. */
  23924. #include <machine/joystick.h>
  23925. int
  23926. main (void)
  23927. {
  23928. struct joystick t;
  23929. ;
  23930. return 0;
  23931. }
  23932. _ACEOF
  23933. if ac_fn_c_try_compile "$LINENO"
  23934. then :
  23935. have_machine_joystick=yes
  23936. fi
  23937. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23938. if test x$have_machine_joystick = xyes; then
  23939. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  23940. fi
  23941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  23942. printf "%s\n" "$have_machine_joystick" >&6; }
  23943. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  23944. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  23945. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  23946. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  23947. have_joystick=yes
  23948. fi
  23949. CFLAGS="$save_CFLAGS"
  23950. fi
  23951. ;;
  23952. esac
  23953. }
  23954. CheckHIDAPI()
  23955. {
  23956. # Check whether --enable-hidapi-joystick was given.
  23957. if test ${enable_hidapi_joystick+y}
  23958. then :
  23959. enableval=$enable_hidapi_joystick;
  23960. else $as_nop
  23961. enable_hidapi_joystick=yes
  23962. fi
  23963. # Check whether --enable-hidapi-libusb was given.
  23964. if test ${enable_hidapi_libusb+y}
  23965. then :
  23966. enableval=$enable_hidapi_libusb;
  23967. else $as_nop
  23968. enable_hidapi_libusb=maybe
  23969. fi
  23970. if test x$enable_hidapi = xyes; then
  23971. case "$host" in
  23972. # libusb does not support iOS
  23973. *-ios-* )
  23974. enable_hidapi_libusb=no
  23975. ;;
  23976. # On the other hand, *BSD specifically uses libusb only
  23977. *-*-*bsd* )
  23978. enable_hidapi_libusb=yes
  23979. require_hidapi_libusb=yes
  23980. ;;
  23981. *-*-os2* )
  23982. enable_hidapi_libusb=yes
  23983. ;;
  23984. esac
  23985. hidapi_support=yes
  23986. if test x$enable_hidapi_libusb = xyes; then
  23987. pkg_failed=no
  23988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  23989. printf %s "checking for libusb-1.0... " >&6; }
  23990. if test -n "$LIBUSB_CFLAGS"; then
  23991. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  23992. elif test -n "$PKG_CONFIG"; then
  23993. if test -n "$PKG_CONFIG" && \
  23994. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23995. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23996. ac_status=$?
  23997. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23998. test $ac_status = 0; }; then
  23999. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24000. test "x$?" != "x0" && pkg_failed=yes
  24001. else
  24002. pkg_failed=yes
  24003. fi
  24004. else
  24005. pkg_failed=untried
  24006. fi
  24007. if test -n "$LIBUSB_LIBS"; then
  24008. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24009. elif test -n "$PKG_CONFIG"; then
  24010. if test -n "$PKG_CONFIG" && \
  24011. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24012. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24013. ac_status=$?
  24014. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24015. test $ac_status = 0; }; then
  24016. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24017. test "x$?" != "x0" && pkg_failed=yes
  24018. else
  24019. pkg_failed=yes
  24020. fi
  24021. else
  24022. pkg_failed=untried
  24023. fi
  24024. if test $pkg_failed = yes; then
  24025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24026. printf "%s\n" "no" >&6; }
  24027. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24028. _pkg_short_errors_supported=yes
  24029. else
  24030. _pkg_short_errors_supported=no
  24031. fi
  24032. if test $_pkg_short_errors_supported = yes; then
  24033. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24034. else
  24035. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24036. fi
  24037. # Put the nasty error message in config.log where it belongs
  24038. echo "$LIBUSB_PKG_ERRORS" >&5
  24039. have_libusb=no
  24040. elif test $pkg_failed = untried; then
  24041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24042. printf "%s\n" "no" >&6; }
  24043. have_libusb=no
  24044. else
  24045. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24046. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24048. printf "%s\n" "yes" >&6; }
  24049. have_libusb=yes
  24050. fi
  24051. save_CPPFLAGS="$CPPFLAGS"
  24052. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24053. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24054. if test "x$ac_cv_header_libusb_h" = xyes
  24055. then :
  24056. have_libusb_h=yes
  24057. else $as_nop
  24058. have_libusb_h=no
  24059. fi
  24060. CPPFLAGS="$save_CPPFLAGS"
  24061. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24062. hidapi_support=no
  24063. fi
  24064. fi
  24065. if test x$hidapi_support = xyes; then
  24066. if test x$have_libusb_h = xyes; then
  24067. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24068. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24069. if test x$require_hidapi_libusb = xyes; then
  24070. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24071. else
  24072. if test x$have_loadso != xyes; then
  24073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24074. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24075. fi
  24076. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24077. libusb_lib=""
  24078. case "$host" in
  24079. *-*-darwin* )
  24080. libusb_lib="libusb-1.0.0.dylib"
  24081. ;;
  24082. *-*-cygwin* | *-*-mingw* )
  24083. libusb_lib="libusb-1.0.dll"
  24084. ;;
  24085. *-*-os2* )
  24086. libusb_lib="usb100.dll"
  24087. ;;
  24088. esac
  24089. if test x$libusb_lib = x; then
  24090. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24091. fi
  24092. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24093. fi
  24094. fi
  24095. fi
  24096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24097. printf %s "checking for hidapi joystick support... " >&6; }
  24098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24099. printf "%s\n" "$hidapi_support" >&6; }
  24100. fi
  24101. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24102. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24103. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24104. fi
  24105. }
  24106. CheckClockGettime()
  24107. {
  24108. # Check whether --enable-clock_gettime was given.
  24109. if test ${enable_clock_gettime+y}
  24110. then :
  24111. enableval=$enable_clock_gettime;
  24112. else $as_nop
  24113. enable_clock_gettime=yes
  24114. fi
  24115. if test x$enable_clock_gettime = xyes; then
  24116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24117. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24118. if test ${ac_cv_lib_rt_clock_gettime+y}
  24119. then :
  24120. printf %s "(cached) " >&6
  24121. else $as_nop
  24122. ac_check_lib_save_LIBS=$LIBS
  24123. LIBS="-lrt $LIBS"
  24124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24125. /* end confdefs.h. */
  24126. /* Override any GCC internal prototype to avoid an error.
  24127. Use char because int might match the return type of a GCC
  24128. builtin and then its argument prototype would still apply. */
  24129. char clock_gettime ();
  24130. int
  24131. main (void)
  24132. {
  24133. return clock_gettime ();
  24134. ;
  24135. return 0;
  24136. }
  24137. _ACEOF
  24138. if ac_fn_c_try_link "$LINENO"
  24139. then :
  24140. ac_cv_lib_rt_clock_gettime=yes
  24141. else $as_nop
  24142. ac_cv_lib_rt_clock_gettime=no
  24143. fi
  24144. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24145. conftest$ac_exeext conftest.$ac_ext
  24146. LIBS=$ac_check_lib_save_LIBS
  24147. fi
  24148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24149. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24150. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24151. then :
  24152. have_clock_gettime=yes
  24153. fi
  24154. if test x$have_clock_gettime = xyes; then
  24155. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24156. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24157. else
  24158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24159. printf %s "checking for clock_gettime in -lc... " >&6; }
  24160. if test ${ac_cv_lib_c_clock_gettime+y}
  24161. then :
  24162. printf %s "(cached) " >&6
  24163. else $as_nop
  24164. ac_check_lib_save_LIBS=$LIBS
  24165. LIBS="-lc $LIBS"
  24166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24167. /* end confdefs.h. */
  24168. /* Override any GCC internal prototype to avoid an error.
  24169. Use char because int might match the return type of a GCC
  24170. builtin and then its argument prototype would still apply. */
  24171. char clock_gettime ();
  24172. int
  24173. main (void)
  24174. {
  24175. return clock_gettime ();
  24176. ;
  24177. return 0;
  24178. }
  24179. _ACEOF
  24180. if ac_fn_c_try_link "$LINENO"
  24181. then :
  24182. ac_cv_lib_c_clock_gettime=yes
  24183. else $as_nop
  24184. ac_cv_lib_c_clock_gettime=no
  24185. fi
  24186. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24187. conftest$ac_exeext conftest.$ac_ext
  24188. LIBS=$ac_check_lib_save_LIBS
  24189. fi
  24190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24191. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24192. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24193. then :
  24194. have_clock_gettime=yes
  24195. fi
  24196. if test x$have_clock_gettime = xyes; then
  24197. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24198. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24199. fi
  24200. fi
  24201. fi
  24202. }
  24203. CheckLinuxVersion()
  24204. {
  24205. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24206. if test "x$ac_cv_header_linux_version_h" = xyes
  24207. then :
  24208. have_linux_version_h=yes
  24209. fi
  24210. if test x$have_linux_version_h = xyes; then
  24211. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24212. fi
  24213. }
  24214. CheckRPATH()
  24215. {
  24216. # Check whether --enable-rpath was given.
  24217. if test ${enable_rpath+y}
  24218. then :
  24219. enableval=$enable_rpath;
  24220. else $as_nop
  24221. enable_rpath=yes
  24222. fi
  24223. }
  24224. CheckEventSignals()
  24225. {
  24226. # Check whether --enable-backgrounding-signal was given.
  24227. if test ${enable_backgrounding_signal+y}
  24228. then :
  24229. enableval=$enable_backgrounding_signal;
  24230. else $as_nop
  24231. enable_backgrounding_signal=no
  24232. fi
  24233. if test x$enable_backgrounding_signal != xno; then
  24234. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24235. fi
  24236. # Check whether --enable-foregrounding-signal was given.
  24237. if test ${enable_foregrounding_signal+y}
  24238. then :
  24239. enableval=$enable_foregrounding_signal;
  24240. else $as_nop
  24241. enable_foregrounding_signal=no
  24242. fi
  24243. if test x$enable_foregrounding_signal != xno; then
  24244. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24245. fi
  24246. }
  24247. CheckVirtualJoystick()
  24248. {
  24249. # Check whether --enable-joystick-virtual was given.
  24250. if test ${enable_joystick_virtual+y}
  24251. then :
  24252. enableval=$enable_joystick_virtual;
  24253. else $as_nop
  24254. enable_joystick_virtual=yes
  24255. fi
  24256. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24257. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24258. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24259. have_joystick_virtual=yes
  24260. fi
  24261. }
  24262. CheckWarnAll
  24263. CheckNoStrictAliasing
  24264. CheckEventSignals
  24265. have_locale=no
  24266. case "$host" in
  24267. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24268. case "$host" in
  24269. *-*-android*)
  24270. # Android
  24271. ARCH=android
  24272. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24273. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24274. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24275. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24277. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24278. if test x$enable_video = xyes; then
  24279. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24280. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24281. SUMMARY_video="${SUMMARY_video} android"
  24282. have_video=yes
  24283. fi
  24284. ;;
  24285. *-*-linux*) ARCH=linux ;;
  24286. *-*-uclinux*) ARCH=linux ;;
  24287. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24288. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24289. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24290. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24291. *-*-bsdi*) ARCH=bsdi ;;
  24292. *-*-freebsd*) ARCH=freebsd ;;
  24293. *-*-dragonfly*) ARCH=freebsd ;;
  24294. *-*-netbsd*) ARCH=netbsd ;;
  24295. *-*-openbsd*) ARCH=openbsd ;;
  24296. *-*-sysv5*) ARCH=sysv5 ;;
  24297. *-*-solaris*) ARCH=solaris ;;
  24298. *-*-hpux*) ARCH=hpux ;;
  24299. *-*-aix*) ARCH=aix ;;
  24300. *-*-minix*) ARCH=minix ;;
  24301. *-*-nto*) ARCH=nto
  24302. CheckQNXVideo
  24303. ;;
  24304. esac
  24305. CheckVisibilityHidden
  24306. CheckDeclarationAfterStatement
  24307. CheckDummyVideo
  24308. CheckOffscreenVideo
  24309. CheckDiskAudio
  24310. CheckDummyAudio
  24311. CheckDLOPEN
  24312. CheckARM
  24313. CheckNEON
  24314. CheckO_CLOEXEC
  24315. CheckOSS
  24316. CheckALSA
  24317. CheckPipewire
  24318. CheckPulseAudio
  24319. CheckJACK
  24320. CheckARTSC
  24321. CheckESD
  24322. CheckNAS
  24323. CheckSNDIO
  24324. CheckFusionSound
  24325. CheckLibSampleRate
  24326. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24327. CheckRPI
  24328. CheckX11
  24329. CheckDirectFB
  24330. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24331. CheckEGL
  24332. CheckKMSDRM
  24333. CheckGLX
  24334. CheckOpenGL
  24335. CheckOpenGLES
  24336. CheckVulkan
  24337. CheckWayland
  24338. CheckInputEvents
  24339. CheckLibUDev
  24340. CheckDBus
  24341. CheckIME
  24342. CheckInotify
  24343. CheckIBus
  24344. CheckFcitx
  24345. case $ARCH in
  24346. linux)
  24347. CheckInputKD
  24348. ;;
  24349. freebsd)
  24350. CheckInputKBIO
  24351. ;;
  24352. openbsd|netbsd)
  24353. CheckInputWSCONS
  24354. ;;
  24355. esac
  24356. CheckUSBHID
  24357. CheckHIDAPI
  24358. CheckPTHREAD
  24359. CheckClockGettime
  24360. CheckLinuxVersion
  24361. CheckRPATH
  24362. CheckVivanteVideo
  24363. # Set up files for the misc library
  24364. if test x$enable_misc = xyes; then
  24365. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24366. have_misc=yes
  24367. fi
  24368. # Set up files for the locale library
  24369. if test x$enable_locale = xyes; then
  24370. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24371. have_locale=yes
  24372. fi
  24373. # Set up files for the audio library
  24374. if test x$enable_audio = xyes; then
  24375. case $ARCH in
  24376. sysv5|solaris|hpux)
  24377. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24378. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24379. SUMMARY_audio="${SUMMARY_audio} sun"
  24380. have_audio=yes
  24381. ;;
  24382. netbsd) # Don't use this on OpenBSD, it's busted.
  24383. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24384. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24385. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24386. have_audio=yes
  24387. ;;
  24388. aix)
  24389. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24390. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24391. SUMMARY_audio="${SUMMARY_audio} paudio"
  24392. have_audio=yes
  24393. ;;
  24394. android)
  24395. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24396. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24397. SUMMARY_audio="${SUMMARY_audio} android"
  24398. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24399. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24400. SUMMARY_audio="${SUMMARY_audio} openslES"
  24401. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24402. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24403. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24404. have_audio=yes
  24405. ;;
  24406. nto)
  24407. CheckQNXAudio
  24408. ;;
  24409. esac
  24410. fi
  24411. # Set up files for the joystick library
  24412. if test x$enable_joystick = xyes; then
  24413. case $ARCH in
  24414. linux)
  24415. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24416. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24417. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24418. have_joystick=yes
  24419. ;;
  24420. freebsd)
  24421. if test x$use_input_events = xyes; then
  24422. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24423. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24424. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24425. have_joystick=yes
  24426. fi
  24427. ;;
  24428. android)
  24429. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24430. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24431. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24432. have_joystick=yes
  24433. ;;
  24434. esac
  24435. fi
  24436. # Set up files for the haptic library
  24437. if test x$enable_haptic = xyes; then
  24438. case $ARCH in
  24439. linux|freebsd)
  24440. if test x$use_input_events = xyes; then
  24441. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24442. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24443. have_haptic=yes
  24444. fi
  24445. ;;
  24446. android)
  24447. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24448. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24449. have_haptic=yes
  24450. ;;
  24451. esac
  24452. fi
  24453. # Set up files for the sensor library
  24454. if test x$enable_sensor = xyes; then
  24455. case $ARCH in
  24456. android)
  24457. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24458. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24459. have_sensor=yes
  24460. ;;
  24461. esac
  24462. fi
  24463. # Set up files for the power library
  24464. if test x$enable_power = xyes; then
  24465. case $ARCH in
  24466. linux)
  24467. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24468. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24469. have_power=yes
  24470. ;;
  24471. android)
  24472. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24473. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24474. have_power=yes
  24475. ;;
  24476. esac
  24477. fi
  24478. # Set up files for the filesystem library
  24479. if test x$enable_filesystem = xyes; then
  24480. case $ARCH in
  24481. android)
  24482. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24483. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24484. have_filesystem=yes
  24485. ;;
  24486. *)
  24487. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24488. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24489. have_filesystem=yes
  24490. ;;
  24491. esac
  24492. fi
  24493. # Set up files for the timer library
  24494. if test x$enable_timers = xyes; then
  24495. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24496. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24497. have_timers=yes
  24498. fi
  24499. # Set up files for udev hotplugging support
  24500. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24501. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24502. fi
  24503. # Set up files for evdev input
  24504. if test x$use_input_events = xyes; then
  24505. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24506. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24507. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24508. fi
  24509. # Set up files for wscons input
  24510. if test x$use_input_wscons = xyes; then
  24511. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24512. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24513. fi
  24514. # Set up other core UNIX files
  24515. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24516. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24517. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24518. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24519. ;;
  24520. *-*-cygwin* | *-*-mingw*)
  24521. ARCH=win32
  24522. if test "$build" != "$host"; then # cross-compiling
  24523. # Default cross-compile location
  24524. ac_default_prefix=/usr/local/cross-tools/$host
  24525. else
  24526. # Look for the location of the tools and install there
  24527. if test "$BUILD_PREFIX" != ""; then
  24528. ac_default_prefix=$BUILD_PREFIX
  24529. fi
  24530. fi
  24531. if test x$enable_loadso = xyes; then
  24532. have_loadso=yes
  24533. fi
  24534. CheckDeclarationAfterStatement
  24535. CheckDummyVideo
  24536. CheckOffscreenVideo
  24537. CheckDiskAudio
  24538. CheckDummyAudio
  24539. CheckWINDOWS
  24540. CheckWINDOWSGL
  24541. CheckWINDOWSGLES
  24542. CheckVulkan
  24543. CheckDIRECTX
  24544. CheckHIDAPI
  24545. # Set up the core platform files
  24546. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24547. # Set up files for the misc library
  24548. if test x$enable_misc = xyes; then
  24549. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24550. have_misc=yes
  24551. fi
  24552. # Use the Windows locale APIs.
  24553. if test x$enable_locale = xyes; then
  24554. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24555. have_locale=yes
  24556. fi
  24557. # Set up files for the video library
  24558. if test x$enable_video = xyes; then
  24559. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24560. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24561. have_video=yes
  24562. # Check whether --enable-render-d3d was given.
  24563. if test ${enable_render_d3d+y}
  24564. then :
  24565. enableval=$enable_render_d3d;
  24566. else $as_nop
  24567. enable_render_d3d=yes
  24568. fi
  24569. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24570. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24571. SUMMARY_video="${SUMMARY_video} d3d9"
  24572. fi
  24573. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24574. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24575. SUMMARY_video="${SUMMARY_video} d3d11"
  24576. fi
  24577. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24578. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24579. SUMMARY_video="${SUMMARY_video} d3d12"
  24580. fi
  24581. fi
  24582. # Set up files for the audio library
  24583. if test x$enable_audio = xyes; then
  24584. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24585. SUMMARY_audio="${SUMMARY_audio} winmm"
  24586. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24587. if test x$have_dsound = xyes; then
  24588. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24589. SUMMARY_audio="${SUMMARY_audio} directsound"
  24590. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24591. fi
  24592. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24593. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24594. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24595. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24596. fi
  24597. have_audio=yes
  24598. fi
  24599. # Set up files for the joystick library
  24600. if test x$enable_joystick = xyes; then
  24601. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24602. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24603. if test x$have_xinput = xyes; then
  24604. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24605. fi
  24606. if test x$have_wgi = xyes; then
  24607. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24608. fi
  24609. if test x$have_dinput = xyes; then
  24610. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24611. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24612. fi
  24613. fi
  24614. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24615. have_joystick=yes
  24616. fi
  24617. if test x$enable_haptic = xyes; then
  24618. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24619. if test x$have_xinput = xyes; then
  24620. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24621. fi
  24622. if test x$have_dinput = xyes; then
  24623. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24624. fi
  24625. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24626. have_haptic=yes
  24627. fi
  24628. fi
  24629. # Set up files for the sensor library
  24630. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24631. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24632. then :
  24633. have_winsensors=yes
  24634. else $as_nop
  24635. have_winsensors=no
  24636. fi
  24637. if test x$have_winsensors = xyes; then
  24638. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24639. fi
  24640. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24641. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24642. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24643. have_sensor=yes
  24644. fi
  24645. # Set up files for the power library
  24646. if test x$enable_power = xyes; then
  24647. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24648. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24649. have_power=yes
  24650. fi
  24651. # Set up files for the filesystem library
  24652. if test x$enable_filesystem = xyes; then
  24653. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24654. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24655. have_filesystem=yes
  24656. fi
  24657. # Set up files for the thread library
  24658. if test x$enable_threads = xyes; then
  24659. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24660. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24661. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24662. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24663. have_threads=yes
  24664. fi
  24665. # Set up files for the timer library
  24666. if test x$enable_timers = xyes; then
  24667. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24668. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24669. have_timers=yes
  24670. fi
  24671. # Set up files for the shared object loading library
  24672. if test x$enable_loadso = xyes; then
  24673. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24674. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24675. fi
  24676. # Set up the system libraries we need
  24677. if test -f /lib/w32api/libuuid.a; then
  24678. LIBUUID=/lib/w32api/libuuid.a
  24679. else
  24680. LIBUUID=-luuid
  24681. fi
  24682. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24683. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24684. # The Windows platform requires special setup
  24685. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24686. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24687. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24688. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24689. # Check to see if this is a mingw or cygwin build
  24690. have_mingw32=
  24691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24692. printf %s "checking for main in -lmingw32... " >&6; }
  24693. if test ${ac_cv_lib_mingw32_main+y}
  24694. then :
  24695. printf %s "(cached) " >&6
  24696. else $as_nop
  24697. ac_check_lib_save_LIBS=$LIBS
  24698. LIBS="-lmingw32 $LIBS"
  24699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24700. /* end confdefs.h. */
  24701. int
  24702. main (void)
  24703. {
  24704. return main ();
  24705. ;
  24706. return 0;
  24707. }
  24708. _ACEOF
  24709. if ac_fn_c_try_link "$LINENO"
  24710. then :
  24711. ac_cv_lib_mingw32_main=yes
  24712. else $as_nop
  24713. ac_cv_lib_mingw32_main=no
  24714. fi
  24715. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24716. conftest$ac_exeext conftest.$ac_ext
  24717. LIBS=$ac_check_lib_save_LIBS
  24718. fi
  24719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24720. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24721. if test "x$ac_cv_lib_mingw32_main" = xyes
  24722. then :
  24723. have_mingw32=yes
  24724. fi
  24725. if test x$have_mingw32 = xyes; then
  24726. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24727. else
  24728. SDL_LIBS="-lcygwin $SDL_LIBS"
  24729. fi
  24730. ;;
  24731. *-*-beos*)
  24732. as_fn_error $? "
  24733. *** BeOS support has been removed as of SDL 2.0.2.
  24734. " "$LINENO" 5
  24735. ;;
  24736. *-*-haiku*)
  24737. ARCH=haiku
  24738. ac_default_prefix=/boot/system
  24739. CheckDummyVideo
  24740. CheckOffscreenVideo
  24741. CheckDiskAudio
  24742. CheckDummyAudio
  24743. CheckDLOPEN
  24744. CheckO_CLOEXEC
  24745. CheckHaikuVideo
  24746. CheckHaikuGL
  24747. CheckPTHREAD
  24748. # Set up files for the audio library
  24749. if test x$enable_audio = xyes; then
  24750. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24751. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24752. SUMMARY_audio="${SUMMARY_audio} haiku"
  24753. have_audio=yes
  24754. fi
  24755. # Set up files for the joystick library
  24756. if test x$enable_joystick = xyes; then
  24757. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24758. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24759. have_joystick=yes
  24760. fi
  24761. # Set up files for the timer library
  24762. if test x$enable_timers = xyes; then
  24763. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24764. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24765. have_timers=yes
  24766. fi
  24767. # Set up files for the system power library
  24768. if test x$enable_power = xyes; then
  24769. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24770. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24771. have_power=yes
  24772. fi
  24773. # Set up files for the system filesystem library
  24774. if test x$enable_filesystem = xyes; then
  24775. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24776. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24777. have_filesystem=yes
  24778. fi
  24779. # Set up files for the misc library
  24780. if test x$enable_misc = xyes; then
  24781. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24782. have_misc=yes
  24783. fi
  24784. # Set up files for the locale library
  24785. if test x$enable_locale = xyes; then
  24786. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24787. have_locale=yes
  24788. fi
  24789. # The Haiku platform requires special setup.
  24790. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24791. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24792. ;;
  24793. *-ios-*)
  24794. ARCH=ios
  24795. CheckVisibilityHidden
  24796. CheckDeclarationAfterStatement
  24797. CheckDummyVideo
  24798. CheckOffscreenVideo
  24799. CheckDiskAudio
  24800. CheckDummyAudio
  24801. CheckDLOPEN
  24802. CheckO_CLOEXEC
  24803. CheckMETAL
  24804. CheckVulkan
  24805. CheckPTHREAD
  24806. # Set up files for the misc library
  24807. if test x$enable_misc = xyes; then
  24808. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24809. have_misc=yes
  24810. fi
  24811. # Set up files for the locale library
  24812. if test x$enable_locale = xyes; then
  24813. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24814. have_locale=yes
  24815. fi
  24816. # Set up files for the audio library
  24817. if test x$enable_audio = xyes; then
  24818. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24819. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24820. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24821. have_audio=yes
  24822. fi
  24823. # Set up files for the joystick library
  24824. if test x$enable_joystick = xyes; then
  24825. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24826. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24827. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24828. have_joystick=yes
  24829. else
  24830. # Need this code for accelerometer as joystick support
  24831. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24832. fi
  24833. # Set up files for the haptic library
  24834. #if test x$enable_haptic = xyes; then
  24835. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24836. # have_haptic=yes
  24837. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24838. #fi
  24839. # Set up files for the sensor library
  24840. if test x$enable_sensor = xyes; then
  24841. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24842. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24843. have_sensor=yes
  24844. fi
  24845. # Set up files for the power library
  24846. if test x$enable_power = xyes; then
  24847. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24848. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24849. have_power=yes
  24850. fi
  24851. # Set up files for the filesystem library
  24852. if test x$enable_filesystem = xyes; then
  24853. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24854. have_filesystem=yes
  24855. fi
  24856. # Set up additional files for the file library
  24857. if test x$enable_file = xyes; then
  24858. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24859. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24860. fi
  24861. # Set up files for the timer library
  24862. if test x$enable_timers = xyes; then
  24863. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24864. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24865. have_timers=yes
  24866. fi
  24867. # Set up other core UNIX files
  24868. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24869. # The iOS platform requires special setup.
  24870. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24871. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24872. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  24873. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  24874. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24875. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24876. SUMMARY_video="${SUMMARY_video} uikit"
  24877. have_video=yes
  24878. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  24879. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24880. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24881. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24882. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24883. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24884. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24885. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  24886. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  24887. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  24888. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  24889. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24890. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  24891. fi
  24892. ;;
  24893. *-*-darwin* )
  24894. # This could be either full "Mac OS X", or plain "Darwin" which is
  24895. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  24896. # Next line is broken, and a few files below require Mac OS X (full)
  24897. ARCH=macosx
  24898. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  24899. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  24900. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  24901. CheckObjectiveCARC
  24902. CheckVisibilityHidden
  24903. CheckDeclarationAfterStatement
  24904. CheckDummyVideo
  24905. CheckOffscreenVideo
  24906. CheckDiskAudio
  24907. CheckDummyAudio
  24908. CheckDLOPEN
  24909. CheckO_CLOEXEC
  24910. CheckCOCOA
  24911. CheckMETAL
  24912. CheckX11
  24913. CheckMacGL
  24914. CheckMacGLES
  24915. CheckGLX
  24916. CheckOpenGL
  24917. CheckVulkan
  24918. CheckPTHREAD
  24919. CheckHIDAPI
  24920. # Set up files for the misc library
  24921. if test x$enable_misc = xyes; then
  24922. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  24923. have_misc=yes
  24924. fi
  24925. # Set up files for the locale library
  24926. if test x$enable_locale = xyes; then
  24927. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24928. have_locale=yes
  24929. fi
  24930. # Set up files for the audio library
  24931. if test x$enable_audio = xyes; then
  24932. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24933. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24934. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  24935. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24936. have_audio=yes
  24937. fi
  24938. # Set up files for the joystick library
  24939. if test x$enable_joystick = xyes; then
  24940. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  24941. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  24942. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24943. CheckJoystickMFI
  24944. have_joystick=yes
  24945. fi
  24946. # Set up files for the haptic library
  24947. if test x$enable_haptic = xyes; then
  24948. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  24949. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24950. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24951. have_haptic=yes
  24952. fi
  24953. # Set up files for the power library
  24954. if test x$enable_power = xyes; then
  24955. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  24956. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  24957. have_power=yes
  24958. fi
  24959. # Set up files for the filesystem library
  24960. if test x$enable_filesystem = xyes; then
  24961. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24962. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24963. have_filesystem=yes
  24964. fi
  24965. # Set up files for the timer library
  24966. if test x$enable_timers = xyes; then
  24967. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24968. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24969. have_timers=yes
  24970. fi
  24971. # Set up additional files for the file library
  24972. if test x$enable_file = xyes; then
  24973. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24974. fi
  24975. # Set up other core UNIX files
  24976. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24977. # The Mac OS X platform requires special setup.
  24978. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24979. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  24980. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  24981. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  24982. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  24983. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24984. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  24985. fi
  24986. ;;
  24987. *-nacl|*-pnacl)
  24988. ARCH=nacl
  24989. CheckNativeClient
  24990. CheckDummyAudio
  24991. CheckDummyVideo
  24992. CheckOffscreenVideo
  24993. CheckInputEvents
  24994. CheckPTHREAD
  24995. CheckO_CLOEXEC
  24996. # Set up files for the timer library
  24997. if test x$enable_timers = xyes; then
  24998. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24999. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25000. have_timers=yes
  25001. fi
  25002. if test x$enable_filesystem = xyes; then
  25003. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25004. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25005. have_filesystem=yes
  25006. fi
  25007. ;;
  25008. *-*-emscripten* )
  25009. if test x$enable_video = xyes; then
  25010. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25011. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25012. have_video=yes
  25013. SUMMARY_video="${SUMMARY_video} emscripten"
  25014. fi
  25015. if test x$enable_audio = xyes; then
  25016. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25017. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25018. have_audio=yes
  25019. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25020. fi
  25021. CheckVisibilityHidden
  25022. CheckDeclarationAfterStatement
  25023. CheckDummyVideo
  25024. CheckOffscreenVideo
  25025. CheckDiskAudio
  25026. CheckDummyAudio
  25027. CheckPTHREAD
  25028. CheckDLOPEN
  25029. CheckClockGettime
  25030. CheckEmscriptenGLES
  25031. # Set up files for the misc library
  25032. if test x$enable_misc = xyes; then
  25033. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25034. have_misc=yes
  25035. fi
  25036. # Set up files for the power library
  25037. if test x$enable_power = xyes; then
  25038. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25039. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25040. have_power=yes
  25041. fi
  25042. # Set up files for the joystick library
  25043. if test x$enable_joystick = xyes; then
  25044. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25045. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25046. have_joystick=yes
  25047. fi
  25048. # Set up files for the filesystem library
  25049. if test x$enable_filesystem = xyes; then
  25050. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25051. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25052. have_filesystem=yes
  25053. fi
  25054. # Set up files for the timer library
  25055. if test x$enable_timers = xyes; then
  25056. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25057. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25058. have_timers=yes
  25059. fi
  25060. # Set up files for the locale library
  25061. if test x$enable_locale = xyes; then
  25062. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25063. have_locale=yes
  25064. fi
  25065. ;;
  25066. *-*-riscos*)
  25067. ARCH=riscos
  25068. CheckVisibilityHidden
  25069. CheckDeclarationAfterStatement
  25070. CheckDummyVideo
  25071. CheckOffscreenVideo
  25072. CheckDiskAudio
  25073. CheckDummyAudio
  25074. CheckDLOPEN
  25075. CheckO_CLOEXEC
  25076. CheckOSS
  25077. CheckPTHREAD
  25078. CheckClockGettime
  25079. # Set up files for the misc library
  25080. if test x$enable_misc = xyes; then
  25081. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25082. have_misc=yes
  25083. fi
  25084. # Set up files for the video library
  25085. if test x$enable_video = xyes; then
  25086. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25087. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25088. have_video=yes
  25089. SUMMARY_video="${SUMMARY_video} riscos"
  25090. fi
  25091. # Set up files for the filesystem library
  25092. if test x$enable_filesystem = xyes; then
  25093. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25094. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25095. have_filesystem=yes
  25096. fi
  25097. # Set up files for the timer library
  25098. if test x$enable_timers = xyes; then
  25099. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25100. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25101. have_timers=yes
  25102. fi
  25103. ;;
  25104. *-*-os2*)
  25105. ARCH=os2
  25106. if test "$build" != "$host"; then # cross-compiling
  25107. # Default cross-compile location
  25108. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25109. else
  25110. # Look for the location of the tools and install there
  25111. if test "$BUILD_PREFIX" != ""; then
  25112. ac_default_prefix=$BUILD_PREFIX
  25113. fi
  25114. fi
  25115. enable_static=no # disable static builds
  25116. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25117. CheckOS2
  25118. CheckDeclarationAfterStatement
  25119. CheckDummyVideo
  25120. CheckDiskAudio
  25121. CheckDummyAudio
  25122. CheckHIDAPI
  25123. # Set up the core platform files
  25124. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25125. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25126. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25127. fi
  25128. # Use the Unix locale APIs.
  25129. if test x$enable_locale = xyes; then
  25130. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25131. have_locale=yes
  25132. fi
  25133. # Set up files for the video library
  25134. if test x$enable_video = xyes; then
  25135. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25136. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25137. have_video=yes
  25138. SUMMARY_video="${SUMMARY_video} os/2"
  25139. fi
  25140. # Set up files for the audio library
  25141. if test x$enable_audio = xyes; then
  25142. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25143. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25144. have_audio=yes
  25145. SUMMARY_audio="${SUMMARY_audio} os/2"
  25146. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25147. fi
  25148. # Set up files for the thread library
  25149. if test x$enable_threads = xyes; then
  25150. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25151. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25152. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25153. have_threads=yes
  25154. fi
  25155. # Set up files for the timer library
  25156. if test x$enable_timers = xyes; then
  25157. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25158. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25159. have_timers=yes
  25160. fi
  25161. # Set up files for the shared object loading library
  25162. if test x$enable_loadso = xyes; then
  25163. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25164. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25165. have_loadso=yes
  25166. fi
  25167. # Set up files for the filesystem library
  25168. if test x$enable_filesystem = xyes; then
  25169. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25170. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25171. have_filesystem=yes
  25172. fi
  25173. # Set up files for the joystick library
  25174. if test x$enable_joystick = xyes; then
  25175. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25176. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25177. have_joystick=yes
  25178. fi
  25179. ;;
  25180. *)
  25181. as_fn_error $? "
  25182. *** Unsupported host: Please add to configure.ac
  25183. " "$LINENO" 5
  25184. ;;
  25185. esac
  25186. CheckVirtualJoystick
  25187. # Check whether to install sdl2-config
  25188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25189. printf %s "checking whether to install sdl2-config... " >&6; }
  25190. # Check whether --enable-sdl2-config was given.
  25191. if test ${enable_sdl2_config+y}
  25192. then :
  25193. enableval=$enable_sdl2_config; case "${enableval}" in
  25194. yes) enable_sdl2_config="TRUE" ;;
  25195. no) enable_sdl2_config="FALSE" ;;
  25196. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25197. esac
  25198. else $as_nop
  25199. enable_sdl2_config="TRUE"
  25200. fi
  25201. if test "$enable_sdl2_config" = "TRUE"; then
  25202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25203. printf "%s\n" "yes" >&6; }
  25204. else
  25205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25206. printf "%s\n" "no" >&6; }
  25207. fi
  25208. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25209. # Verify that we have all the platform specific files we need
  25210. if test x$have_audio != xyes; then
  25211. if test x$enable_audio = xyes; then
  25212. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25213. fi
  25214. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25215. fi
  25216. if test x$have_video != xyes; then
  25217. if test x$enable_video = xyes; then
  25218. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25219. fi
  25220. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25221. fi
  25222. if test x$have_misc != xyes; then
  25223. if test x$enable_misc = xyes; then
  25224. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25225. fi
  25226. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25227. fi
  25228. if test x$have_locale != xyes; then
  25229. if test x$enable_locale = xyes; then
  25230. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25231. fi
  25232. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25233. fi
  25234. if test x$have_joystick != xyes; then
  25235. if test x$enable_joystick = xyes; then
  25236. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25237. fi
  25238. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25239. fi
  25240. if test x$have_haptic != xyes; then
  25241. if test x$enable_haptic = xyes; then
  25242. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25243. fi
  25244. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25245. fi
  25246. if test x$have_sensor != xyes; then
  25247. if test x$enable_sensor = xyes; then
  25248. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25249. fi
  25250. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25251. fi
  25252. if test x$have_threads != xyes; then
  25253. if test x$enable_threads = xyes; then
  25254. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25255. fi
  25256. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25257. fi
  25258. if test x$have_timers != xyes; then
  25259. if test x$enable_timers = xyes; then
  25260. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25261. fi
  25262. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25263. fi
  25264. if test x$have_filesystem != xyes; then
  25265. if test x$enable_filesystem = xyes; then
  25266. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25267. fi
  25268. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25269. fi
  25270. if test x$have_loadso != xyes; then
  25271. if test x$enable_loadso = xyes; then
  25272. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25273. fi
  25274. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25275. fi
  25276. if test x$SDLMAIN_SOURCES = x; then
  25277. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25278. fi
  25279. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25280. if test x$video_wayland = xyes; then
  25281. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25282. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25283. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25284. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25285. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25286. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25287. echo ;\
  25288. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25289. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25290. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25291. echo ;\
  25292. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25293. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25294. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25295. echo ;\
  25296. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25297. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25298. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25299. done ;\
  25300. echo ;\
  25301. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25302. fi
  25303. OBJECTS=`echo $SOURCES`
  25304. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25305. for EXT in asm cc m c S; do
  25306. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25307. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25308. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25309. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25310. done
  25311. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25312. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25313. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25314. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25315. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25316. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25317. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25318. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25319. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25320. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25321. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25322. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25323. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25324. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25325. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25326. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25327. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25328. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25329. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25330. # Set runtime shared library paths as needed
  25331. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25332. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25333. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25335. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25336. have_enable_new_dtags=no
  25337. save_LDFLAGS="$LDFLAGS"
  25338. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25340. /* end confdefs.h. */
  25341. int
  25342. main (void)
  25343. {
  25344. ;
  25345. return 0;
  25346. }
  25347. _ACEOF
  25348. if ac_fn_c_try_link "$LINENO"
  25349. then :
  25350. have_enable_new_dtags=yes
  25351. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25352. fi
  25353. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25354. conftest$ac_exeext conftest.$ac_ext
  25355. LDFLAGS="$save_LDFLAGS"
  25356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25357. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25358. fi
  25359. if test $ARCH = solaris; then
  25360. SDL_RLD_FLAGS="-R\${libdir}"
  25361. fi
  25362. else
  25363. SDL_RLD_FLAGS=""
  25364. fi
  25365. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25366. pkg_cmakedir='$libdir/cmake/SDL2'
  25367. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25368. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25369. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25370. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25371. _lcl_receval="$_lcl_from"
  25372. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25373. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25374. _lcl_receval_old=''
  25375. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25376. _lcl_receval_old="$_lcl_receval"
  25377. eval _lcl_receval="\"$_lcl_receval\""
  25378. done
  25379. echo "$_lcl_receval")`
  25380. _lcl_receval="$_lcl_to"
  25381. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25382. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25383. _lcl_receval_old=''
  25384. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25385. _lcl_receval_old="$_lcl_receval"
  25386. eval _lcl_receval="\"$_lcl_receval\""
  25387. done
  25388. echo "$_lcl_receval")`
  25389. _lcl_notation="$_lcl_from$_lcl_to"
  25390. case ":$_lcl_from:" in
  25391. # change empty paths to '.'
  25392. ::) _lcl_from='.' ;;
  25393. # strip trailing slashes
  25394. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25395. :*:) ;;
  25396. esac
  25397. # squeeze repeated slashes
  25398. case '/' in
  25399. # if the path contains any backslashes, turn slashes into backslashes
  25400. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25401. # if the path contains slashes, also turn backslashes into slashes
  25402. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25403. esac
  25404. case ":$_lcl_to:" in
  25405. # change empty paths to '.'
  25406. ::) _lcl_to='.' ;;
  25407. # strip trailing slashes
  25408. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25409. :*:) ;;
  25410. esac
  25411. # squeeze repeated slashes
  25412. case '/' in
  25413. # if the path contains any backslashes, turn slashes into backslashes
  25414. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25415. # if the path contains slashes, also turn backslashes into slashes
  25416. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25417. esac
  25418. _lcl_common_prefix=''
  25419. _lcl_second_prefix_match=''
  25420. while test "$_lcl_second_prefix_match" != 0; do
  25421. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25422. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25423. if test "$_lcl_second_prefix_match" != 0; then
  25424. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25425. _lcl_common_prefix="$_lcl_first_prefix"
  25426. else
  25427. _lcl_second_prefix_match=0
  25428. fi
  25429. fi
  25430. done
  25431. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25432. _lcl_first_rel=''
  25433. _lcl_tmp='xxx'
  25434. while test "$_lcl_tmp" != ''; do
  25435. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25436. if test "$_lcl_first_suffix" != ''; then
  25437. _lcl_first_suffix="$_lcl_tmp"
  25438. _lcl_first_rel="../$_lcl_first_rel"
  25439. fi
  25440. done
  25441. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25442. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25443. case ":$_lcl_result_tmp:" in
  25444. # change empty paths to '.'
  25445. ::) _lcl_result_tmp='.' ;;
  25446. # strip trailing slashes
  25447. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25448. :*:) ;;
  25449. esac
  25450. # squeeze repeated slashes
  25451. case "$_lcl_notation" in
  25452. # if the path contains any backslashes, turn slashes into backslashes
  25453. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25454. # if the path contains slashes, also turn backslashes into slashes
  25455. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25456. esac
  25457. eval $_lcl_result_var='$_lcl_result_tmp'
  25458. done
  25459. if test x$enable_shared = xyes; then
  25460. PKGCONFIG_LIBS_PRIV="
  25461. Libs.private:"
  25462. ENABLE_SHARED_TRUE=
  25463. ENABLE_SHARED_FALSE="#"
  25464. else
  25465. PKGCONFIG_LIBS_PRIV=
  25466. ENABLE_SHARED_TRUE="#"
  25467. ENABLE_SHARED_FALSE=
  25468. fi
  25469. if test x$enable_static = xyes; then
  25470. ENABLE_STATIC_TRUE=
  25471. ENABLE_STATIC_FALSE="#"
  25472. else
  25473. ENABLE_STATIC_TRUE="#"
  25474. ENABLE_STATIC_FALSE=
  25475. fi
  25476. cat >Makefile.rules <<__EOF__
  25477. # Build rules for objects
  25478. -include \$(OBJECTS:.lo=.d)
  25479. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25480. $srcdir/src/SDL.c: update-revision
  25481. $DEPENDS
  25482. $VERSION_DEPENDS
  25483. $SDLMAIN_DEPENDS
  25484. $SDLTEST_DEPENDS
  25485. $WAYLAND_PROTOCOLS_DEPENDS
  25486. __EOF__
  25487. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25488. ac_config_commands="$ac_config_commands sdl2_config"
  25489. SUMMARY="SDL2 Configure Summary:\n"
  25490. if test x$enable_shared = xyes; then
  25491. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25492. fi
  25493. if test x$enable_static = xyes; then
  25494. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25495. fi
  25496. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25497. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25498. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25499. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25500. if test x$have_x = xyes; then
  25501. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25502. fi
  25503. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25504. if test x$have_joystick_virtual = xyes; then
  25505. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25506. else
  25507. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25508. fi
  25509. if test x$have_samplerate_h_hdr = xyes; then
  25510. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25511. else
  25512. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25513. fi
  25514. if test x$have_libudev_h_hdr = xyes; then
  25515. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25516. else
  25517. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25518. fi
  25519. if test x$have_dbus_dbus_h_hdr = xyes; then
  25520. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25521. else
  25522. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25523. fi
  25524. if test x$enable_ime = xyes; then
  25525. SUMMARY="${SUMMARY}Using ime : YES\n"
  25526. else
  25527. SUMMARY="${SUMMARY}Using ime : NO\n"
  25528. fi
  25529. if test x$have_ibus_ibus_h_hdr = xyes; then
  25530. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25531. else
  25532. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25533. fi
  25534. if test x$have_fcitx = xyes; then
  25535. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25536. else
  25537. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25538. fi
  25539. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25540. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25541. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25542. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25543. SUMMARY="${SUMMARY}configure script with:\n"
  25544. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25545. fi
  25546. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25547. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25548. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25549. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25550. SUMMARY="${SUMMARY}configure script with:\n"
  25551. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25552. fi
  25553. ac_config_commands="$ac_config_commands summary"
  25554. cat >confcache <<\_ACEOF
  25555. # This file is a shell script that caches the results of configure
  25556. # tests run on this system so they can be shared between configure
  25557. # scripts and configure runs, see configure's option --config-cache.
  25558. # It is not useful on other systems. If it contains results you don't
  25559. # want to keep, you may remove or edit it.
  25560. #
  25561. # config.status only pays attention to the cache file if you give it
  25562. # the --recheck option to rerun configure.
  25563. #
  25564. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25565. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25566. # following values.
  25567. _ACEOF
  25568. # The following way of writing the cache mishandles newlines in values,
  25569. # but we know of no workaround that is simple, portable, and efficient.
  25570. # So, we kill variables containing newlines.
  25571. # Ultrix sh set writes to stderr and can't be redirected directly,
  25572. # and sets the high bit in the cache file unless we assign to the vars.
  25573. (
  25574. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25575. eval ac_val=\$$ac_var
  25576. case $ac_val in #(
  25577. *${as_nl}*)
  25578. case $ac_var in #(
  25579. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25580. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25581. esac
  25582. case $ac_var in #(
  25583. _ | IFS | as_nl) ;; #(
  25584. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25585. *) { eval $ac_var=; unset $ac_var;} ;;
  25586. esac ;;
  25587. esac
  25588. done
  25589. (set) 2>&1 |
  25590. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25591. *${as_nl}ac_space=\ *)
  25592. # `set' does not quote correctly, so add quotes: double-quote
  25593. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25594. sed -n \
  25595. "s/'/'\\\\''/g;
  25596. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25597. ;; #(
  25598. *)
  25599. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25600. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25601. ;;
  25602. esac |
  25603. sort
  25604. ) |
  25605. sed '
  25606. /^ac_cv_env_/b end
  25607. t clear
  25608. :clear
  25609. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25610. t end
  25611. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25612. :end' >>confcache
  25613. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25614. if test -w "$cache_file"; then
  25615. if test "x$cache_file" != "x/dev/null"; then
  25616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25617. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25618. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25619. cat confcache >"$cache_file"
  25620. else
  25621. case $cache_file in #(
  25622. */* | ?:*)
  25623. mv -f confcache "$cache_file"$$ &&
  25624. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25625. *)
  25626. mv -f confcache "$cache_file" ;;
  25627. esac
  25628. fi
  25629. fi
  25630. else
  25631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25632. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25633. fi
  25634. fi
  25635. rm -f confcache
  25636. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25637. # Let make expand exec_prefix.
  25638. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25639. DEFS=-DHAVE_CONFIG_H
  25640. ac_libobjs=
  25641. ac_ltlibobjs=
  25642. U=
  25643. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25644. # 1. Remove the extension, and $U if already installed.
  25645. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25646. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25647. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25648. # will be set to the directory where LIBOBJS objects are built.
  25649. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25650. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25651. done
  25652. LIBOBJS=$ac_libobjs
  25653. LTLIBOBJS=$ac_ltlibobjs
  25654. : "${CONFIG_STATUS=./config.status}"
  25655. ac_write_fail=0
  25656. ac_clean_files_save=$ac_clean_files
  25657. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25659. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25660. as_write_fail=0
  25661. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25662. #! $SHELL
  25663. # Generated by $as_me.
  25664. # Run this file to recreate the current configuration.
  25665. # Compiler output produced by configure, useful for debugging
  25666. # configure, is in config.log if it exists.
  25667. debug=false
  25668. ac_cs_recheck=false
  25669. ac_cs_silent=false
  25670. SHELL=\${CONFIG_SHELL-$SHELL}
  25671. export SHELL
  25672. _ASEOF
  25673. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25674. ## -------------------- ##
  25675. ## M4sh Initialization. ##
  25676. ## -------------------- ##
  25677. # Be more Bourne compatible
  25678. DUALCASE=1; export DUALCASE # for MKS sh
  25679. as_nop=:
  25680. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25681. then :
  25682. emulate sh
  25683. NULLCMD=:
  25684. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25685. # is contrary to our usage. Disable this feature.
  25686. alias -g '${1+"$@"}'='"$@"'
  25687. setopt NO_GLOB_SUBST
  25688. else $as_nop
  25689. case `(set -o) 2>/dev/null` in #(
  25690. *posix*) :
  25691. set -o posix ;; #(
  25692. *) :
  25693. ;;
  25694. esac
  25695. fi
  25696. # Reset variables that may have inherited troublesome values from
  25697. # the environment.
  25698. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25699. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25700. # side effect of setting IFS to empty, thus disabling word splitting.)
  25701. # Quoting is to prevent editors from complaining about space-tab.
  25702. as_nl='
  25703. '
  25704. export as_nl
  25705. IFS=" "" $as_nl"
  25706. PS1='$ '
  25707. PS2='> '
  25708. PS4='+ '
  25709. # Ensure predictable behavior from utilities with locale-dependent output.
  25710. LC_ALL=C
  25711. export LC_ALL
  25712. LANGUAGE=C
  25713. export LANGUAGE
  25714. # We cannot yet rely on "unset" to work, but we need these variables
  25715. # to be unset--not just set to an empty or harmless value--now, to
  25716. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25717. # also avoids known problems related to "unset" and subshell syntax
  25718. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25719. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25720. do eval test \${$as_var+y} \
  25721. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25722. done
  25723. # Ensure that fds 0, 1, and 2 are open.
  25724. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25725. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25726. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25727. # The user is always right.
  25728. if ${PATH_SEPARATOR+false} :; then
  25729. PATH_SEPARATOR=:
  25730. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25731. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25732. PATH_SEPARATOR=';'
  25733. }
  25734. fi
  25735. # Find who we are. Look in the path if we contain no directory separator.
  25736. as_myself=
  25737. case $0 in #((
  25738. *[\\/]* ) as_myself=$0 ;;
  25739. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25740. for as_dir in $PATH
  25741. do
  25742. IFS=$as_save_IFS
  25743. case $as_dir in #(((
  25744. '') as_dir=./ ;;
  25745. */) ;;
  25746. *) as_dir=$as_dir/ ;;
  25747. esac
  25748. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25749. done
  25750. IFS=$as_save_IFS
  25751. ;;
  25752. esac
  25753. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25754. # in which case we are not to be found in the path.
  25755. if test "x$as_myself" = x; then
  25756. as_myself=$0
  25757. fi
  25758. if test ! -f "$as_myself"; then
  25759. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25760. exit 1
  25761. fi
  25762. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25763. # ----------------------------------------
  25764. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25765. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25766. # script with STATUS, using 1 if that was 0.
  25767. as_fn_error ()
  25768. {
  25769. as_status=$1; test $as_status -eq 0 && as_status=1
  25770. if test "$4"; then
  25771. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25772. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25773. fi
  25774. printf "%s\n" "$as_me: error: $2" >&2
  25775. as_fn_exit $as_status
  25776. } # as_fn_error
  25777. # as_fn_set_status STATUS
  25778. # -----------------------
  25779. # Set $? to STATUS, without forking.
  25780. as_fn_set_status ()
  25781. {
  25782. return $1
  25783. } # as_fn_set_status
  25784. # as_fn_exit STATUS
  25785. # -----------------
  25786. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25787. as_fn_exit ()
  25788. {
  25789. set +e
  25790. as_fn_set_status $1
  25791. exit $1
  25792. } # as_fn_exit
  25793. # as_fn_unset VAR
  25794. # ---------------
  25795. # Portably unset VAR.
  25796. as_fn_unset ()
  25797. {
  25798. { eval $1=; unset $1;}
  25799. }
  25800. as_unset=as_fn_unset
  25801. # as_fn_append VAR VALUE
  25802. # ----------------------
  25803. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25804. # advantage of any shell optimizations that allow amortized linear growth over
  25805. # repeated appends, instead of the typical quadratic growth present in naive
  25806. # implementations.
  25807. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  25808. then :
  25809. eval 'as_fn_append ()
  25810. {
  25811. eval $1+=\$2
  25812. }'
  25813. else $as_nop
  25814. as_fn_append ()
  25815. {
  25816. eval $1=\$$1\$2
  25817. }
  25818. fi # as_fn_append
  25819. # as_fn_arith ARG...
  25820. # ------------------
  25821. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25822. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25823. # must be portable across $(()) and expr.
  25824. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  25825. then :
  25826. eval 'as_fn_arith ()
  25827. {
  25828. as_val=$(( $* ))
  25829. }'
  25830. else $as_nop
  25831. as_fn_arith ()
  25832. {
  25833. as_val=`expr "$@" || test $? -eq 1`
  25834. }
  25835. fi # as_fn_arith
  25836. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25837. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25838. as_expr=expr
  25839. else
  25840. as_expr=false
  25841. fi
  25842. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25843. as_basename=basename
  25844. else
  25845. as_basename=false
  25846. fi
  25847. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25848. as_dirname=dirname
  25849. else
  25850. as_dirname=false
  25851. fi
  25852. as_me=`$as_basename -- "$0" ||
  25853. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25854. X"$0" : 'X\(//\)$' \| \
  25855. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25856. printf "%s\n" X/"$0" |
  25857. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25858. s//\1/
  25859. q
  25860. }
  25861. /^X\/\(\/\/\)$/{
  25862. s//\1/
  25863. q
  25864. }
  25865. /^X\/\(\/\).*/{
  25866. s//\1/
  25867. q
  25868. }
  25869. s/.*/./; q'`
  25870. # Avoid depending upon Character Ranges.
  25871. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25872. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25873. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25874. as_cr_digits='0123456789'
  25875. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25876. # Determine whether it's possible to make 'echo' print without a newline.
  25877. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  25878. # for compatibility with existing Makefiles.
  25879. ECHO_C= ECHO_N= ECHO_T=
  25880. case `echo -n x` in #(((((
  25881. -n*)
  25882. case `echo 'xy\c'` in
  25883. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25884. xy) ECHO_C='\c';;
  25885. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  25886. ECHO_T=' ';;
  25887. esac;;
  25888. *)
  25889. ECHO_N='-n';;
  25890. esac
  25891. # For backward compatibility with old third-party macros, we provide
  25892. # the shell variables $as_echo and $as_echo_n. New code should use
  25893. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  25894. as_echo='printf %s\n'
  25895. as_echo_n='printf %s'
  25896. rm -f conf$$ conf$$.exe conf$$.file
  25897. if test -d conf$$.dir; then
  25898. rm -f conf$$.dir/conf$$.file
  25899. else
  25900. rm -f conf$$.dir
  25901. mkdir conf$$.dir 2>/dev/null
  25902. fi
  25903. if (echo >conf$$.file) 2>/dev/null; then
  25904. if ln -s conf$$.file conf$$ 2>/dev/null; then
  25905. as_ln_s='ln -s'
  25906. # ... but there are two gotchas:
  25907. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  25908. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  25909. # In both cases, we have to default to `cp -pR'.
  25910. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  25911. as_ln_s='cp -pR'
  25912. elif ln conf$$.file conf$$ 2>/dev/null; then
  25913. as_ln_s=ln
  25914. else
  25915. as_ln_s='cp -pR'
  25916. fi
  25917. else
  25918. as_ln_s='cp -pR'
  25919. fi
  25920. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  25921. rmdir conf$$.dir 2>/dev/null
  25922. # as_fn_mkdir_p
  25923. # -------------
  25924. # Create "$as_dir" as a directory, including parents if necessary.
  25925. as_fn_mkdir_p ()
  25926. {
  25927. case $as_dir in #(
  25928. -*) as_dir=./$as_dir;;
  25929. esac
  25930. test -d "$as_dir" || eval $as_mkdir_p || {
  25931. as_dirs=
  25932. while :; do
  25933. case $as_dir in #(
  25934. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  25935. *) as_qdir=$as_dir;;
  25936. esac
  25937. as_dirs="'$as_qdir' $as_dirs"
  25938. as_dir=`$as_dirname -- "$as_dir" ||
  25939. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25940. X"$as_dir" : 'X\(//\)[^/]' \| \
  25941. X"$as_dir" : 'X\(//\)$' \| \
  25942. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25943. printf "%s\n" X"$as_dir" |
  25944. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25945. s//\1/
  25946. q
  25947. }
  25948. /^X\(\/\/\)[^/].*/{
  25949. s//\1/
  25950. q
  25951. }
  25952. /^X\(\/\/\)$/{
  25953. s//\1/
  25954. q
  25955. }
  25956. /^X\(\/\).*/{
  25957. s//\1/
  25958. q
  25959. }
  25960. s/.*/./; q'`
  25961. test -d "$as_dir" && break
  25962. done
  25963. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25964. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  25965. } # as_fn_mkdir_p
  25966. if mkdir -p . 2>/dev/null; then
  25967. as_mkdir_p='mkdir -p "$as_dir"'
  25968. else
  25969. test -d ./-p && rmdir ./-p
  25970. as_mkdir_p=false
  25971. fi
  25972. # as_fn_executable_p FILE
  25973. # -----------------------
  25974. # Test if FILE is an executable regular file.
  25975. as_fn_executable_p ()
  25976. {
  25977. test -f "$1" && test -x "$1"
  25978. } # as_fn_executable_p
  25979. as_test_x='test -x'
  25980. as_executable_p=as_fn_executable_p
  25981. # Sed expression to map a string onto a valid CPP name.
  25982. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  25983. # Sed expression to map a string onto a valid variable name.
  25984. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25985. exec 6>&1
  25986. ## ----------------------------------- ##
  25987. ## Main body of $CONFIG_STATUS script. ##
  25988. ## ----------------------------------- ##
  25989. _ASEOF
  25990. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  25991. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25992. # Save the log message, to keep $0 and so on meaningful, and to
  25993. # report actual input values of CONFIG_FILES etc. instead of their
  25994. # values after options handling.
  25995. ac_log="
  25996. This file was extended by $as_me, which was
  25997. generated by GNU Autoconf 2.71. Invocation command line was
  25998. CONFIG_FILES = $CONFIG_FILES
  25999. CONFIG_HEADERS = $CONFIG_HEADERS
  26000. CONFIG_LINKS = $CONFIG_LINKS
  26001. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26002. $ $0 $@
  26003. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26004. "
  26005. _ACEOF
  26006. case $ac_config_files in *"
  26007. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26008. esac
  26009. case $ac_config_headers in *"
  26010. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26011. esac
  26012. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26013. # Files that config.status was made for.
  26014. config_files="$ac_config_files"
  26015. config_headers="$ac_config_headers"
  26016. config_commands="$ac_config_commands"
  26017. _ACEOF
  26018. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26019. ac_cs_usage="\
  26020. \`$as_me' instantiates files and other configuration actions
  26021. from templates according to the current configuration. Unless the files
  26022. and actions are specified as TAGs, all are instantiated by default.
  26023. Usage: $0 [OPTION]... [TAG]...
  26024. -h, --help print this help, then exit
  26025. -V, --version print version number and configuration settings, then exit
  26026. --config print configuration, then exit
  26027. -q, --quiet, --silent
  26028. do not print progress messages
  26029. -d, --debug don't remove temporary files
  26030. --recheck update $as_me by reconfiguring in the same conditions
  26031. --file=FILE[:TEMPLATE]
  26032. instantiate the configuration file FILE
  26033. --header=FILE[:TEMPLATE]
  26034. instantiate the configuration header FILE
  26035. Configuration files:
  26036. $config_files
  26037. Configuration headers:
  26038. $config_headers
  26039. Configuration commands:
  26040. $config_commands
  26041. Report bugs to the package provider."
  26042. _ACEOF
  26043. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26044. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26045. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26046. ac_cs_config='$ac_cs_config_escaped'
  26047. ac_cs_version="\\
  26048. config.status
  26049. configured by $0, generated by GNU Autoconf 2.71,
  26050. with options \\"\$ac_cs_config\\"
  26051. Copyright (C) 2021 Free Software Foundation, Inc.
  26052. This config.status script is free software; the Free Software Foundation
  26053. gives unlimited permission to copy, distribute and modify it."
  26054. ac_pwd='$ac_pwd'
  26055. srcdir='$srcdir'
  26056. INSTALL='$INSTALL'
  26057. AWK='$AWK'
  26058. test -n "\$AWK" || AWK=awk
  26059. _ACEOF
  26060. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26061. # The default lists apply if the user does not specify any file.
  26062. ac_need_defaults=:
  26063. while test $# != 0
  26064. do
  26065. case $1 in
  26066. --*=?*)
  26067. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26068. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26069. ac_shift=:
  26070. ;;
  26071. --*=)
  26072. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26073. ac_optarg=
  26074. ac_shift=:
  26075. ;;
  26076. *)
  26077. ac_option=$1
  26078. ac_optarg=$2
  26079. ac_shift=shift
  26080. ;;
  26081. esac
  26082. case $ac_option in
  26083. # Handling of the options.
  26084. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26085. ac_cs_recheck=: ;;
  26086. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26087. printf "%s\n" "$ac_cs_version"; exit ;;
  26088. --config | --confi | --conf | --con | --co | --c )
  26089. printf "%s\n" "$ac_cs_config"; exit ;;
  26090. --debug | --debu | --deb | --de | --d | -d )
  26091. debug=: ;;
  26092. --file | --fil | --fi | --f )
  26093. $ac_shift
  26094. case $ac_optarg in
  26095. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26096. '') as_fn_error $? "missing file argument" ;;
  26097. esac
  26098. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26099. ac_need_defaults=false;;
  26100. --header | --heade | --head | --hea )
  26101. $ac_shift
  26102. case $ac_optarg in
  26103. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26104. esac
  26105. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26106. ac_need_defaults=false;;
  26107. --he | --h)
  26108. # Conflict between --help and --header
  26109. as_fn_error $? "ambiguous option: \`$1'
  26110. Try \`$0 --help' for more information.";;
  26111. --help | --hel | -h )
  26112. printf "%s\n" "$ac_cs_usage"; exit ;;
  26113. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26114. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26115. ac_cs_silent=: ;;
  26116. # This is an error.
  26117. -*) as_fn_error $? "unrecognized option: \`$1'
  26118. Try \`$0 --help' for more information." ;;
  26119. *) as_fn_append ac_config_targets " $1"
  26120. ac_need_defaults=false ;;
  26121. esac
  26122. shift
  26123. done
  26124. ac_configure_extra_args=
  26125. if $ac_cs_silent; then
  26126. exec 6>/dev/null
  26127. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26128. fi
  26129. _ACEOF
  26130. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26131. if \$ac_cs_recheck; then
  26132. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26133. shift
  26134. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26135. CONFIG_SHELL='$SHELL'
  26136. export CONFIG_SHELL
  26137. exec "\$@"
  26138. fi
  26139. _ACEOF
  26140. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26141. exec 5>>config.log
  26142. {
  26143. echo
  26144. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26145. ## Running $as_me. ##
  26146. _ASBOX
  26147. printf "%s\n" "$ac_log"
  26148. } >&5
  26149. _ACEOF
  26150. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26151. #
  26152. # INIT-COMMANDS
  26153. #
  26154. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26155. # if CDPATH is set.
  26156. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26157. sed_quote_subst='$sed_quote_subst'
  26158. double_quote_subst='$double_quote_subst'
  26159. delay_variable_subst='$delay_variable_subst'
  26160. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26161. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26162. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26163. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26164. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26165. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26166. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26167. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26168. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26169. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26170. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26171. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26172. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26173. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26174. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26175. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26176. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26177. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26178. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26179. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26180. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26181. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26182. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26183. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26184. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26185. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26186. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26187. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26188. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26189. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26190. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26191. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26192. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26193. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26194. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26195. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26196. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26197. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26198. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26199. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26200. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26201. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26202. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26203. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26204. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26205. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26206. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26207. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26208. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26209. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26210. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26211. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26212. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26213. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26214. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26215. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26216. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26217. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26218. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26219. 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"`'
  26220. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26221. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26222. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26223. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26224. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26225. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26226. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26227. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26228. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26229. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26230. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26231. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26232. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26233. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26234. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26235. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26236. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26237. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26238. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26239. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26240. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26241. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26242. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26243. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26244. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26245. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26246. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26247. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26248. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26249. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26250. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26251. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26252. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26253. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26254. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26255. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26256. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26257. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26258. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26259. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26260. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26261. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26262. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26263. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26264. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26265. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26266. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26267. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26268. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26269. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26270. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26271. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26272. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26273. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26274. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26275. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26276. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26277. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26278. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26279. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26280. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26281. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26282. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26283. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26284. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26285. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26286. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26287. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26288. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26289. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26290. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26291. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26292. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26293. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26294. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26295. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26296. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26297. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26298. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26299. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26300. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26301. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26302. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26303. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26304. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26305. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26306. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26307. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26308. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26309. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26310. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26311. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26312. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26313. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26314. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26315. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26316. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26317. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26318. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26319. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26320. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26321. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26322. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26323. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26324. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26325. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26326. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26327. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26328. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26329. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26330. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26331. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26332. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26333. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26334. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26335. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26336. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26337. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26338. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26339. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26340. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26341. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26342. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26343. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26344. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26345. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26346. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26347. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26348. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26349. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26350. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26351. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26352. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26353. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26354. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26355. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26356. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26357. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26358. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26359. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26360. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26361. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26362. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26363. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26364. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26365. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26366. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26367. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26368. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26369. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26370. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26371. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26372. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26373. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26374. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26375. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26376. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26377. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26378. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26379. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26380. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26381. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26382. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26383. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26384. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26385. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26386. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26387. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26388. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26389. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26390. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26391. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26392. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26393. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26394. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26395. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26396. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26397. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26398. LTCC='$LTCC'
  26399. LTCFLAGS='$LTCFLAGS'
  26400. compiler='$compiler_DEFAULT'
  26401. # A function that is used when there is no print builtin or printf.
  26402. func_fallback_echo ()
  26403. {
  26404. eval 'cat <<_LTECHO_EOF
  26405. \$1
  26406. _LTECHO_EOF'
  26407. }
  26408. # Quote evaled strings.
  26409. for var in AS \
  26410. DLLTOOL \
  26411. OBJDUMP \
  26412. SHELL \
  26413. ECHO \
  26414. PATH_SEPARATOR \
  26415. SED \
  26416. GREP \
  26417. EGREP \
  26418. FGREP \
  26419. LD \
  26420. NM \
  26421. LN_S \
  26422. lt_SP2NL \
  26423. lt_NL2SP \
  26424. reload_flag \
  26425. deplibs_check_method \
  26426. file_magic_cmd \
  26427. file_magic_glob \
  26428. want_nocaseglob \
  26429. sharedlib_from_linklib_cmd \
  26430. AR \
  26431. AR_FLAGS \
  26432. archiver_list_spec \
  26433. STRIP \
  26434. RANLIB \
  26435. CC \
  26436. CFLAGS \
  26437. compiler \
  26438. lt_cv_sys_global_symbol_pipe \
  26439. lt_cv_sys_global_symbol_to_cdecl \
  26440. lt_cv_sys_global_symbol_to_import \
  26441. lt_cv_sys_global_symbol_to_c_name_address \
  26442. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26443. lt_cv_nm_interface \
  26444. nm_file_list_spec \
  26445. lt_cv_truncate_bin \
  26446. lt_prog_compiler_no_builtin_flag \
  26447. lt_prog_compiler_pic \
  26448. lt_prog_compiler_wl \
  26449. lt_prog_compiler_static \
  26450. lt_cv_prog_compiler_c_o \
  26451. need_locks \
  26452. MANIFEST_TOOL \
  26453. DSYMUTIL \
  26454. NMEDIT \
  26455. LIPO \
  26456. OTOOL \
  26457. OTOOL64 \
  26458. shrext_cmds \
  26459. export_dynamic_flag_spec \
  26460. whole_archive_flag_spec \
  26461. compiler_needs_object \
  26462. with_gnu_ld \
  26463. allow_undefined_flag \
  26464. no_undefined_flag \
  26465. hardcode_libdir_flag_spec \
  26466. hardcode_libdir_separator \
  26467. exclude_expsyms \
  26468. include_expsyms \
  26469. file_list_spec \
  26470. variables_saved_for_relink \
  26471. libname_spec \
  26472. library_names_spec \
  26473. soname_spec \
  26474. install_override_mode \
  26475. finish_eval \
  26476. old_striplib \
  26477. striplib \
  26478. compiler_lib_search_dirs \
  26479. predep_objects \
  26480. postdep_objects \
  26481. predeps \
  26482. postdeps \
  26483. compiler_lib_search_path \
  26484. LD_RC \
  26485. LD_CXX \
  26486. reload_flag_RC \
  26487. reload_flag_CXX \
  26488. compiler_RC \
  26489. compiler_CXX \
  26490. lt_prog_compiler_no_builtin_flag_RC \
  26491. lt_prog_compiler_no_builtin_flag_CXX \
  26492. lt_prog_compiler_pic_RC \
  26493. lt_prog_compiler_pic_CXX \
  26494. lt_prog_compiler_wl_RC \
  26495. lt_prog_compiler_wl_CXX \
  26496. lt_prog_compiler_static_RC \
  26497. lt_prog_compiler_static_CXX \
  26498. lt_cv_prog_compiler_c_o_RC \
  26499. lt_cv_prog_compiler_c_o_CXX \
  26500. export_dynamic_flag_spec_RC \
  26501. export_dynamic_flag_spec_CXX \
  26502. whole_archive_flag_spec_RC \
  26503. whole_archive_flag_spec_CXX \
  26504. compiler_needs_object_RC \
  26505. compiler_needs_object_CXX \
  26506. with_gnu_ld_RC \
  26507. with_gnu_ld_CXX \
  26508. allow_undefined_flag_RC \
  26509. allow_undefined_flag_CXX \
  26510. no_undefined_flag_RC \
  26511. no_undefined_flag_CXX \
  26512. hardcode_libdir_flag_spec_RC \
  26513. hardcode_libdir_flag_spec_CXX \
  26514. hardcode_libdir_separator_RC \
  26515. hardcode_libdir_separator_CXX \
  26516. exclude_expsyms_RC \
  26517. exclude_expsyms_CXX \
  26518. include_expsyms_RC \
  26519. include_expsyms_CXX \
  26520. file_list_spec_RC \
  26521. file_list_spec_CXX \
  26522. compiler_lib_search_dirs_RC \
  26523. compiler_lib_search_dirs_CXX \
  26524. predep_objects_RC \
  26525. predep_objects_CXX \
  26526. postdep_objects_RC \
  26527. postdep_objects_CXX \
  26528. predeps_RC \
  26529. predeps_CXX \
  26530. postdeps_RC \
  26531. postdeps_CXX \
  26532. compiler_lib_search_path_RC \
  26533. compiler_lib_search_path_CXX; do
  26534. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26535. *[\\\\\\\`\\"\\\$]*)
  26536. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26537. ;;
  26538. *)
  26539. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26540. ;;
  26541. esac
  26542. done
  26543. # Double-quote double-evaled strings.
  26544. for var in reload_cmds \
  26545. old_postinstall_cmds \
  26546. old_postuninstall_cmds \
  26547. old_archive_cmds \
  26548. extract_expsyms_cmds \
  26549. old_archive_from_new_cmds \
  26550. old_archive_from_expsyms_cmds \
  26551. archive_cmds \
  26552. archive_expsym_cmds \
  26553. module_cmds \
  26554. module_expsym_cmds \
  26555. export_symbols_cmds \
  26556. prelink_cmds \
  26557. postlink_cmds \
  26558. postinstall_cmds \
  26559. postuninstall_cmds \
  26560. finish_cmds \
  26561. sys_lib_search_path_spec \
  26562. configure_time_dlsearch_path \
  26563. configure_time_lt_sys_library_path \
  26564. reload_cmds_RC \
  26565. reload_cmds_CXX \
  26566. old_archive_cmds_RC \
  26567. old_archive_cmds_CXX \
  26568. old_archive_from_new_cmds_RC \
  26569. old_archive_from_new_cmds_CXX \
  26570. old_archive_from_expsyms_cmds_RC \
  26571. old_archive_from_expsyms_cmds_CXX \
  26572. archive_cmds_RC \
  26573. archive_cmds_CXX \
  26574. archive_expsym_cmds_RC \
  26575. archive_expsym_cmds_CXX \
  26576. module_cmds_RC \
  26577. module_cmds_CXX \
  26578. module_expsym_cmds_RC \
  26579. module_expsym_cmds_CXX \
  26580. export_symbols_cmds_RC \
  26581. export_symbols_cmds_CXX \
  26582. prelink_cmds_RC \
  26583. prelink_cmds_CXX \
  26584. postlink_cmds_RC \
  26585. postlink_cmds_CXX; do
  26586. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26587. *[\\\\\\\`\\"\\\$]*)
  26588. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26589. ;;
  26590. *)
  26591. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26592. ;;
  26593. esac
  26594. done
  26595. ac_aux_dir='$ac_aux_dir'
  26596. # See if we are running on zsh, and set the options that allow our
  26597. # commands through without removal of \ escapes INIT.
  26598. if test -n "\${ZSH_VERSION+set}"; then
  26599. setopt NO_GLOB_SUBST
  26600. fi
  26601. PACKAGE='$PACKAGE'
  26602. VERSION='$VERSION'
  26603. RM='$RM'
  26604. ofile='$ofile'
  26605. SUMMARY="$SUMMARY"
  26606. _ACEOF
  26607. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26608. # Handling of arguments.
  26609. for ac_config_target in $ac_config_targets
  26610. do
  26611. case $ac_config_target in
  26612. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26613. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26614. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26615. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26616. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26617. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26618. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26619. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26620. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26621. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26622. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26623. esac
  26624. done
  26625. # If the user did not use the arguments to specify the items to instantiate,
  26626. # then the envvar interface is used. Set only those that are not.
  26627. # We use the long form for the default assignment because of an extremely
  26628. # bizarre bug on SunOS 4.1.3.
  26629. if $ac_need_defaults; then
  26630. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26631. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26632. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26633. fi
  26634. # Have a temporary directory for convenience. Make it in the build tree
  26635. # simply because there is no reason against having it here, and in addition,
  26636. # creating and moving files from /tmp can sometimes cause problems.
  26637. # Hook for its removal unless debugging.
  26638. # Note that there is a small window in which the directory will not be cleaned:
  26639. # after its creation but before its name has been assigned to `$tmp'.
  26640. $debug ||
  26641. {
  26642. tmp= ac_tmp=
  26643. trap 'exit_status=$?
  26644. : "${ac_tmp:=$tmp}"
  26645. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26646. ' 0
  26647. trap 'as_fn_exit 1' 1 2 13 15
  26648. }
  26649. # Create a (secure) tmp directory for tmp files.
  26650. {
  26651. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26652. test -d "$tmp"
  26653. } ||
  26654. {
  26655. tmp=./conf$$-$RANDOM
  26656. (umask 077 && mkdir "$tmp")
  26657. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26658. ac_tmp=$tmp
  26659. # Set up the scripts for CONFIG_FILES section.
  26660. # No need to generate them if there are no CONFIG_FILES.
  26661. # This happens for instance with `./config.status config.h'.
  26662. if test -n "$CONFIG_FILES"; then
  26663. ac_cr=`echo X | tr X '\015'`
  26664. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26665. # But we know of no other shell where ac_cr would be empty at this
  26666. # point, so we can use a bashism as a fallback.
  26667. if test "x$ac_cr" = x; then
  26668. eval ac_cr=\$\'\\r\'
  26669. fi
  26670. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26671. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26672. ac_cs_awk_cr='\\r'
  26673. else
  26674. ac_cs_awk_cr=$ac_cr
  26675. fi
  26676. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26677. _ACEOF
  26678. {
  26679. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26680. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26681. echo "_ACEOF"
  26682. } >conf$$subs.sh ||
  26683. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26684. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26685. ac_delim='%!_!# '
  26686. for ac_last_try in false false false false false :; do
  26687. . ./conf$$subs.sh ||
  26688. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26689. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26690. if test $ac_delim_n = $ac_delim_num; then
  26691. break
  26692. elif $ac_last_try; then
  26693. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26694. else
  26695. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26696. fi
  26697. done
  26698. rm -f conf$$subs.sh
  26699. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26700. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26701. _ACEOF
  26702. sed -n '
  26703. h
  26704. s/^/S["/; s/!.*/"]=/
  26705. p
  26706. g
  26707. s/^[^!]*!//
  26708. :repl
  26709. t repl
  26710. s/'"$ac_delim"'$//
  26711. t delim
  26712. :nl
  26713. h
  26714. s/\(.\{148\}\)..*/\1/
  26715. t more1
  26716. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26717. p
  26718. n
  26719. b repl
  26720. :more1
  26721. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26722. p
  26723. g
  26724. s/.\{148\}//
  26725. t nl
  26726. :delim
  26727. h
  26728. s/\(.\{148\}\)..*/\1/
  26729. t more2
  26730. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26731. p
  26732. b
  26733. :more2
  26734. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26735. p
  26736. g
  26737. s/.\{148\}//
  26738. t delim
  26739. ' <conf$$subs.awk | sed '
  26740. /^[^""]/{
  26741. N
  26742. s/\n//
  26743. }
  26744. ' >>$CONFIG_STATUS || ac_write_fail=1
  26745. rm -f conf$$subs.awk
  26746. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26747. _ACAWK
  26748. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26749. for (key in S) S_is_set[key] = 1
  26750. FS = ""
  26751. }
  26752. {
  26753. line = $ 0
  26754. nfields = split(line, field, "@")
  26755. substed = 0
  26756. len = length(field[1])
  26757. for (i = 2; i < nfields; i++) {
  26758. key = field[i]
  26759. keylen = length(key)
  26760. if (S_is_set[key]) {
  26761. value = S[key]
  26762. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26763. len += length(value) + length(field[++i])
  26764. substed = 1
  26765. } else
  26766. len += 1 + keylen
  26767. }
  26768. print line
  26769. }
  26770. _ACAWK
  26771. _ACEOF
  26772. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26773. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26774. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26775. else
  26776. cat
  26777. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26778. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26779. _ACEOF
  26780. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26781. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26782. # trailing colons and then remove the whole line if VPATH becomes empty
  26783. # (actually we leave an empty line to preserve line numbers).
  26784. if test "x$srcdir" = x.; then
  26785. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26786. h
  26787. s///
  26788. s/^/:/
  26789. s/[ ]*$/:/
  26790. s/:\$(srcdir):/:/g
  26791. s/:\${srcdir}:/:/g
  26792. s/:@srcdir@:/:/g
  26793. s/^:*//
  26794. s/:*$//
  26795. x
  26796. s/\(=[ ]*\).*/\1/
  26797. G
  26798. s/\n//
  26799. s/^[^=]*=[ ]*$//
  26800. }'
  26801. fi
  26802. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26803. fi # test -n "$CONFIG_FILES"
  26804. # Set up the scripts for CONFIG_HEADERS section.
  26805. # No need to generate them if there are no CONFIG_HEADERS.
  26806. # This happens for instance with `./config.status Makefile'.
  26807. if test -n "$CONFIG_HEADERS"; then
  26808. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  26809. BEGIN {
  26810. _ACEOF
  26811. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26812. # here-document in config.status, that substitutes the proper values into
  26813. # config.h.in to produce config.h.
  26814. # Create a delimiter string that does not exist in confdefs.h, to ease
  26815. # handling of long lines.
  26816. ac_delim='%!_!# '
  26817. for ac_last_try in false false :; do
  26818. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  26819. if test -z "$ac_tt"; then
  26820. break
  26821. elif $ac_last_try; then
  26822. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26823. else
  26824. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26825. fi
  26826. done
  26827. # For the awk script, D is an array of macro values keyed by name,
  26828. # likewise P contains macro parameters if any. Preserve backslash
  26829. # newline sequences.
  26830. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26831. sed -n '
  26832. s/.\{148\}/&'"$ac_delim"'/g
  26833. t rset
  26834. :rset
  26835. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26836. t def
  26837. d
  26838. :def
  26839. s/\\$//
  26840. t bsnl
  26841. s/["\\]/\\&/g
  26842. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26843. D["\1"]=" \3"/p
  26844. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26845. d
  26846. :bsnl
  26847. s/["\\]/\\&/g
  26848. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26849. D["\1"]=" \3\\\\\\n"\\/p
  26850. t cont
  26851. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26852. t cont
  26853. d
  26854. :cont
  26855. n
  26856. s/.\{148\}/&'"$ac_delim"'/g
  26857. t clear
  26858. :clear
  26859. s/\\$//
  26860. t bsnlc
  26861. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26862. d
  26863. :bsnlc
  26864. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26865. b cont
  26866. ' <confdefs.h | sed '
  26867. s/'"$ac_delim"'/"\\\
  26868. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26869. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26870. for (key in D) D_is_set[key] = 1
  26871. FS = ""
  26872. }
  26873. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26874. line = \$ 0
  26875. split(line, arg, " ")
  26876. if (arg[1] == "#") {
  26877. defundef = arg[2]
  26878. mac1 = arg[3]
  26879. } else {
  26880. defundef = substr(arg[1], 2)
  26881. mac1 = arg[2]
  26882. }
  26883. split(mac1, mac2, "(") #)
  26884. macro = mac2[1]
  26885. prefix = substr(line, 1, index(line, defundef) - 1)
  26886. if (D_is_set[macro]) {
  26887. # Preserve the white space surrounding the "#".
  26888. print prefix "define", macro P[macro] D[macro]
  26889. next
  26890. } else {
  26891. # Replace #undef with comments. This is necessary, for example,
  26892. # in the case of _POSIX_SOURCE, which is predefined and required
  26893. # on some systems where configure will not decide to define it.
  26894. if (defundef == "undef") {
  26895. print "/*", prefix defundef, macro, "*/"
  26896. next
  26897. }
  26898. }
  26899. }
  26900. { print }
  26901. _ACAWK
  26902. _ACEOF
  26903. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26904. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  26905. fi # test -n "$CONFIG_HEADERS"
  26906. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  26907. shift
  26908. for ac_tag
  26909. do
  26910. case $ac_tag in
  26911. :[FHLC]) ac_mode=$ac_tag; continue;;
  26912. esac
  26913. case $ac_mode$ac_tag in
  26914. :[FHL]*:*);;
  26915. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  26916. :[FH]-) ac_tag=-:-;;
  26917. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  26918. esac
  26919. ac_save_IFS=$IFS
  26920. IFS=:
  26921. set x $ac_tag
  26922. IFS=$ac_save_IFS
  26923. shift
  26924. ac_file=$1
  26925. shift
  26926. case $ac_mode in
  26927. :L) ac_source=$1;;
  26928. :[FH])
  26929. ac_file_inputs=
  26930. for ac_f
  26931. do
  26932. case $ac_f in
  26933. -) ac_f="$ac_tmp/stdin";;
  26934. *) # Look for the file first in the build tree, then in the source tree
  26935. # (if the path is not absolute). The absolute path cannot be DOS-style,
  26936. # because $ac_f cannot contain `:'.
  26937. test -f "$ac_f" ||
  26938. case $ac_f in
  26939. [\\/$]*) false;;
  26940. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  26941. esac ||
  26942. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  26943. esac
  26944. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  26945. as_fn_append ac_file_inputs " '$ac_f'"
  26946. done
  26947. # Let's still pretend it is `configure' which instantiates (i.e., don't
  26948. # use $as_me), people would be surprised to read:
  26949. # /* config.h. Generated by config.status. */
  26950. configure_input='Generated from '`
  26951. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  26952. `' by configure.'
  26953. if test x"$ac_file" != x-; then
  26954. configure_input="$ac_file. $configure_input"
  26955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  26956. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  26957. fi
  26958. # Neutralize special characters interpreted by sed in replacement strings.
  26959. case $configure_input in #(
  26960. *\&* | *\|* | *\\* )
  26961. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  26962. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  26963. *) ac_sed_conf_input=$configure_input;;
  26964. esac
  26965. case $ac_tag in
  26966. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  26967. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  26968. esac
  26969. ;;
  26970. esac
  26971. ac_dir=`$as_dirname -- "$ac_file" ||
  26972. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26973. X"$ac_file" : 'X\(//\)[^/]' \| \
  26974. X"$ac_file" : 'X\(//\)$' \| \
  26975. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  26976. printf "%s\n" X"$ac_file" |
  26977. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26978. s//\1/
  26979. q
  26980. }
  26981. /^X\(\/\/\)[^/].*/{
  26982. s//\1/
  26983. q
  26984. }
  26985. /^X\(\/\/\)$/{
  26986. s//\1/
  26987. q
  26988. }
  26989. /^X\(\/\).*/{
  26990. s//\1/
  26991. q
  26992. }
  26993. s/.*/./; q'`
  26994. as_dir="$ac_dir"; as_fn_mkdir_p
  26995. ac_builddir=.
  26996. case "$ac_dir" in
  26997. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26998. *)
  26999. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27000. # A ".." for each directory in $ac_dir_suffix.
  27001. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27002. case $ac_top_builddir_sub in
  27003. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27004. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27005. esac ;;
  27006. esac
  27007. ac_abs_top_builddir=$ac_pwd
  27008. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27009. # for backward compatibility:
  27010. ac_top_builddir=$ac_top_build_prefix
  27011. case $srcdir in
  27012. .) # We are building in place.
  27013. ac_srcdir=.
  27014. ac_top_srcdir=$ac_top_builddir_sub
  27015. ac_abs_top_srcdir=$ac_pwd ;;
  27016. [\\/]* | ?:[\\/]* ) # Absolute name.
  27017. ac_srcdir=$srcdir$ac_dir_suffix;
  27018. ac_top_srcdir=$srcdir
  27019. ac_abs_top_srcdir=$srcdir ;;
  27020. *) # Relative name.
  27021. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27022. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27023. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27024. esac
  27025. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27026. case $ac_mode in
  27027. :F)
  27028. #
  27029. # CONFIG_FILE
  27030. #
  27031. case $INSTALL in
  27032. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27033. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27034. esac
  27035. _ACEOF
  27036. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27037. # If the template does not know about datarootdir, expand it.
  27038. # FIXME: This hack should be removed a few years after 2.60.
  27039. ac_datarootdir_hack=; ac_datarootdir_seen=
  27040. ac_sed_dataroot='
  27041. /datarootdir/ {
  27042. p
  27043. q
  27044. }
  27045. /@datadir@/p
  27046. /@docdir@/p
  27047. /@infodir@/p
  27048. /@localedir@/p
  27049. /@mandir@/p'
  27050. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27051. *datarootdir*) ac_datarootdir_seen=yes;;
  27052. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27054. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27055. _ACEOF
  27056. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27057. ac_datarootdir_hack='
  27058. s&@datadir@&$datadir&g
  27059. s&@docdir@&$docdir&g
  27060. s&@infodir@&$infodir&g
  27061. s&@localedir@&$localedir&g
  27062. s&@mandir@&$mandir&g
  27063. s&\\\${datarootdir}&$datarootdir&g' ;;
  27064. esac
  27065. _ACEOF
  27066. # Neutralize VPATH when `$srcdir' = `.'.
  27067. # Shell code in configure.ac might set extrasub.
  27068. # FIXME: do we really want to maintain this feature?
  27069. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27070. ac_sed_extra="$ac_vpsub
  27071. $extrasub
  27072. _ACEOF
  27073. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27074. :t
  27075. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27076. s|@configure_input@|$ac_sed_conf_input|;t t
  27077. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27078. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27079. s&@srcdir@&$ac_srcdir&;t t
  27080. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27081. s&@top_srcdir@&$ac_top_srcdir&;t t
  27082. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27083. s&@builddir@&$ac_builddir&;t t
  27084. s&@abs_builddir@&$ac_abs_builddir&;t t
  27085. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27086. s&@INSTALL@&$ac_INSTALL&;t t
  27087. $ac_datarootdir_hack
  27088. "
  27089. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27090. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27091. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27092. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27093. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27094. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27096. which seems to be undefined. Please make sure it is defined" >&5
  27097. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27098. which seems to be undefined. Please make sure it is defined" >&2;}
  27099. rm -f "$ac_tmp/stdin"
  27100. case $ac_file in
  27101. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27102. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27103. esac \
  27104. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27105. ;;
  27106. :H)
  27107. #
  27108. # CONFIG_HEADER
  27109. #
  27110. if test x"$ac_file" != x-; then
  27111. {
  27112. printf "%s\n" "/* $configure_input */" >&1 \
  27113. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27114. } >"$ac_tmp/config.h" \
  27115. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27116. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27118. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27119. else
  27120. rm -f "$ac_file"
  27121. mv "$ac_tmp/config.h" "$ac_file" \
  27122. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27123. fi
  27124. else
  27125. printf "%s\n" "/* $configure_input */" >&1 \
  27126. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27127. || as_fn_error $? "could not create -" "$LINENO" 5
  27128. fi
  27129. ;;
  27130. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27131. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27132. ;;
  27133. esac
  27134. case $ac_file$ac_mode in
  27135. "libtool":C)
  27136. # See if we are running on zsh, and set the options that allow our
  27137. # commands through without removal of \ escapes.
  27138. if test -n "${ZSH_VERSION+set}"; then
  27139. setopt NO_GLOB_SUBST
  27140. fi
  27141. cfgfile=${ofile}T
  27142. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27143. $RM "$cfgfile"
  27144. cat <<_LT_EOF >> "$cfgfile"
  27145. #! $SHELL
  27146. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27147. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27148. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27149. # Provide generalized library-building support services.
  27150. # Written by Gordon Matzigkeit, 1996
  27151. # Copyright (C) 2014 Free Software Foundation, Inc.
  27152. # This is free software; see the source for copying conditions. There is NO
  27153. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27154. # GNU Libtool is free software; you can redistribute it and/or modify
  27155. # it under the terms of the GNU General Public License as published by
  27156. # the Free Software Foundation; either version 2 of of the License, or
  27157. # (at your option) any later version.
  27158. #
  27159. # As a special exception to the GNU General Public License, if you
  27160. # distribute this file as part of a program or library that is built
  27161. # using GNU Libtool, you may include this file under the same
  27162. # distribution terms that you use for the rest of that program.
  27163. #
  27164. # GNU Libtool is distributed in the hope that it will be useful, but
  27165. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27166. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27167. # GNU General Public License for more details.
  27168. #
  27169. # You should have received a copy of the GNU General Public License
  27170. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27171. # The names of the tagged configurations supported by this script.
  27172. available_tags='RC CXX '
  27173. # Configured defaults for sys_lib_dlsearch_path munging.
  27174. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27175. # ### BEGIN LIBTOOL CONFIG
  27176. # Which release of libtool.m4 was used?
  27177. macro_version=$macro_version
  27178. macro_revision=$macro_revision
  27179. # Assembler program.
  27180. AS=$lt_AS
  27181. # DLL creation program.
  27182. DLLTOOL=$lt_DLLTOOL
  27183. # Object dumper program.
  27184. OBJDUMP=$lt_OBJDUMP
  27185. # Whether or not to build shared libraries.
  27186. build_libtool_libs=$enable_shared
  27187. # Whether or not to build static libraries.
  27188. build_old_libs=$enable_static
  27189. # What type of objects to build.
  27190. pic_mode=$pic_mode
  27191. # Whether or not to optimize for fast installation.
  27192. fast_install=$enable_fast_install
  27193. # Shared archive member basename,for filename based shared library versioning on AIX.
  27194. shared_archive_member_spec=$shared_archive_member_spec
  27195. # Shell to use when invoking shell scripts.
  27196. SHELL=$lt_SHELL
  27197. # An echo program that protects backslashes.
  27198. ECHO=$lt_ECHO
  27199. # The PATH separator for the build system.
  27200. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27201. # The host system.
  27202. host_alias=$host_alias
  27203. host=$host
  27204. host_os=$host_os
  27205. # The build system.
  27206. build_alias=$build_alias
  27207. build=$build
  27208. build_os=$build_os
  27209. # A sed program that does not truncate output.
  27210. SED=$lt_SED
  27211. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27212. Xsed="\$SED -e 1s/^X//"
  27213. # A grep program that handles long lines.
  27214. GREP=$lt_GREP
  27215. # An ERE matcher.
  27216. EGREP=$lt_EGREP
  27217. # A literal string matcher.
  27218. FGREP=$lt_FGREP
  27219. # A BSD- or MS-compatible name lister.
  27220. NM=$lt_NM
  27221. # Whether we need soft or hard links.
  27222. LN_S=$lt_LN_S
  27223. # What is the maximum length of a command?
  27224. max_cmd_len=$max_cmd_len
  27225. # Object file suffix (normally "o").
  27226. objext=$ac_objext
  27227. # Executable file suffix (normally "").
  27228. exeext=$exeext
  27229. # whether the shell understands "unset".
  27230. lt_unset=$lt_unset
  27231. # turn spaces into newlines.
  27232. SP2NL=$lt_lt_SP2NL
  27233. # turn newlines into spaces.
  27234. NL2SP=$lt_lt_NL2SP
  27235. # convert \$build file names to \$host format.
  27236. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27237. # convert \$build files to toolchain format.
  27238. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27239. # Method to check whether dependent libraries are shared objects.
  27240. deplibs_check_method=$lt_deplibs_check_method
  27241. # Command to use when deplibs_check_method = "file_magic".
  27242. file_magic_cmd=$lt_file_magic_cmd
  27243. # How to find potential files when deplibs_check_method = "file_magic".
  27244. file_magic_glob=$lt_file_magic_glob
  27245. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27246. want_nocaseglob=$lt_want_nocaseglob
  27247. # Command to associate shared and link libraries.
  27248. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27249. # The archiver.
  27250. AR=$lt_AR
  27251. # Flags to create an archive.
  27252. AR_FLAGS=$lt_AR_FLAGS
  27253. # How to feed a file listing to the archiver.
  27254. archiver_list_spec=$lt_archiver_list_spec
  27255. # A symbol stripping program.
  27256. STRIP=$lt_STRIP
  27257. # Commands used to install an old-style archive.
  27258. RANLIB=$lt_RANLIB
  27259. old_postinstall_cmds=$lt_old_postinstall_cmds
  27260. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27261. # Whether to use a lock for old archive extraction.
  27262. lock_old_archive_extraction=$lock_old_archive_extraction
  27263. # A C compiler.
  27264. LTCC=$lt_CC
  27265. # LTCC compiler flags.
  27266. LTCFLAGS=$lt_CFLAGS
  27267. # Take the output of nm and produce a listing of raw symbols and C names.
  27268. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27269. # Transform the output of nm in a proper C declaration.
  27270. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27271. # Transform the output of nm into a list of symbols to manually relocate.
  27272. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27273. # Transform the output of nm in a C name address pair.
  27274. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27275. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27276. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27277. # The name lister interface.
  27278. nm_interface=$lt_lt_cv_nm_interface
  27279. # Specify filename containing input files for \$NM.
  27280. nm_file_list_spec=$lt_nm_file_list_spec
  27281. # The root where to search for dependent libraries,and where our libraries should be installed.
  27282. lt_sysroot=$lt_sysroot
  27283. # Command to truncate a binary pipe.
  27284. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27285. # The name of the directory that contains temporary libtool files.
  27286. objdir=$objdir
  27287. # Used to examine libraries when file_magic_cmd begins with "file".
  27288. MAGIC_CMD=$MAGIC_CMD
  27289. # Must we lock files when doing compilation?
  27290. need_locks=$lt_need_locks
  27291. # Manifest tool.
  27292. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27293. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27294. DSYMUTIL=$lt_DSYMUTIL
  27295. # Tool to change global to local symbols on Mac OS X.
  27296. NMEDIT=$lt_NMEDIT
  27297. # Tool to manipulate fat objects and archives on Mac OS X.
  27298. LIPO=$lt_LIPO
  27299. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27300. OTOOL=$lt_OTOOL
  27301. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27302. OTOOL64=$lt_OTOOL64
  27303. # Old archive suffix (normally "a").
  27304. libext=$libext
  27305. # Shared library suffix (normally ".so").
  27306. shrext_cmds=$lt_shrext_cmds
  27307. # The commands to extract the exported symbol list from a shared archive.
  27308. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27309. # Variables whose values should be saved in libtool wrapper scripts and
  27310. # restored at link time.
  27311. variables_saved_for_relink=$lt_variables_saved_for_relink
  27312. # Do we need the "lib" prefix for modules?
  27313. need_lib_prefix=$need_lib_prefix
  27314. # Do we need a version for libraries?
  27315. need_version=$need_version
  27316. # Library versioning type.
  27317. version_type=$version_type
  27318. # Shared library runtime path variable.
  27319. runpath_var=$runpath_var
  27320. # Shared library path variable.
  27321. shlibpath_var=$shlibpath_var
  27322. # Is shlibpath searched before the hard-coded library search path?
  27323. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27324. # Format of library name prefix.
  27325. libname_spec=$lt_libname_spec
  27326. # List of archive names. First name is the real one, the rest are links.
  27327. # The last name is the one that the linker finds with -lNAME
  27328. library_names_spec=$lt_library_names_spec
  27329. # The coded name of the library, if different from the real name.
  27330. soname_spec=$lt_soname_spec
  27331. # Permission mode override for installation of shared libraries.
  27332. install_override_mode=$lt_install_override_mode
  27333. # Command to use after installation of a shared archive.
  27334. postinstall_cmds=$lt_postinstall_cmds
  27335. # Command to use after uninstallation of a shared archive.
  27336. postuninstall_cmds=$lt_postuninstall_cmds
  27337. # Commands used to finish a libtool library installation in a directory.
  27338. finish_cmds=$lt_finish_cmds
  27339. # As "finish_cmds", except a single script fragment to be evaled but
  27340. # not shown.
  27341. finish_eval=$lt_finish_eval
  27342. # Whether we should hardcode library paths into libraries.
  27343. hardcode_into_libs=$hardcode_into_libs
  27344. # Compile-time system search path for libraries.
  27345. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27346. # Detected run-time system search path for libraries.
  27347. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27348. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27349. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27350. # Whether dlopen is supported.
  27351. dlopen_support=$enable_dlopen
  27352. # Whether dlopen of programs is supported.
  27353. dlopen_self=$enable_dlopen_self
  27354. # Whether dlopen of statically linked programs is supported.
  27355. dlopen_self_static=$enable_dlopen_self_static
  27356. # Commands to strip libraries.
  27357. old_striplib=$lt_old_striplib
  27358. striplib=$lt_striplib
  27359. # The linker used to build libraries.
  27360. LD=$lt_LD
  27361. # How to create reloadable object files.
  27362. reload_flag=$lt_reload_flag
  27363. reload_cmds=$lt_reload_cmds
  27364. # Commands used to build an old-style archive.
  27365. old_archive_cmds=$lt_old_archive_cmds
  27366. # A language specific compiler.
  27367. CC=$lt_compiler
  27368. # Is the compiler the GNU compiler?
  27369. with_gcc=$GCC
  27370. # Compiler flag to turn off builtin functions.
  27371. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27372. # Additional compiler flags for building library objects.
  27373. pic_flag=$lt_lt_prog_compiler_pic
  27374. # How to pass a linker flag through the compiler.
  27375. wl=$lt_lt_prog_compiler_wl
  27376. # Compiler flag to prevent dynamic linking.
  27377. link_static_flag=$lt_lt_prog_compiler_static
  27378. # Does compiler simultaneously support -c and -o options?
  27379. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27380. # Whether or not to add -lc for building shared libraries.
  27381. build_libtool_need_lc=$archive_cmds_need_lc
  27382. # Whether or not to disallow shared libs when runtime libs are static.
  27383. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27384. # Compiler flag to allow reflexive dlopens.
  27385. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27386. # Compiler flag to generate shared objects directly from archives.
  27387. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27388. # Whether the compiler copes with passing no objects directly.
  27389. compiler_needs_object=$lt_compiler_needs_object
  27390. # Create an old-style archive from a shared archive.
  27391. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27392. # Create a temporary old-style archive to link instead of a shared archive.
  27393. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27394. # Commands used to build a shared archive.
  27395. archive_cmds=$lt_archive_cmds
  27396. archive_expsym_cmds=$lt_archive_expsym_cmds
  27397. # Commands used to build a loadable module if different from building
  27398. # a shared archive.
  27399. module_cmds=$lt_module_cmds
  27400. module_expsym_cmds=$lt_module_expsym_cmds
  27401. # Whether we are building with GNU ld or not.
  27402. with_gnu_ld=$lt_with_gnu_ld
  27403. # Flag that allows shared libraries with undefined symbols to be built.
  27404. allow_undefined_flag=$lt_allow_undefined_flag
  27405. # Flag that enforces no undefined symbols.
  27406. no_undefined_flag=$lt_no_undefined_flag
  27407. # Flag to hardcode \$libdir into a binary during linking.
  27408. # This must work even if \$libdir does not exist
  27409. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27410. # Whether we need a single "-rpath" flag with a separated argument.
  27411. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27412. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27413. # DIR into the resulting binary.
  27414. hardcode_direct=$hardcode_direct
  27415. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27416. # DIR into the resulting binary and the resulting library dependency is
  27417. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27418. # library is relocated.
  27419. hardcode_direct_absolute=$hardcode_direct_absolute
  27420. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27421. # into the resulting binary.
  27422. hardcode_minus_L=$hardcode_minus_L
  27423. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27424. # into the resulting binary.
  27425. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27426. # Set to "yes" if building a shared library automatically hardcodes DIR
  27427. # into the library and all subsequent libraries and executables linked
  27428. # against it.
  27429. hardcode_automatic=$hardcode_automatic
  27430. # Set to yes if linker adds runtime paths of dependent libraries
  27431. # to runtime path list.
  27432. inherit_rpath=$inherit_rpath
  27433. # Whether libtool must link a program against all its dependency libraries.
  27434. link_all_deplibs=$link_all_deplibs
  27435. # Set to "yes" if exported symbols are required.
  27436. always_export_symbols=$always_export_symbols
  27437. # The commands to list exported symbols.
  27438. export_symbols_cmds=$lt_export_symbols_cmds
  27439. # Symbols that should not be listed in the preloaded symbols.
  27440. exclude_expsyms=$lt_exclude_expsyms
  27441. # Symbols that must always be exported.
  27442. include_expsyms=$lt_include_expsyms
  27443. # Commands necessary for linking programs (against libraries) with templates.
  27444. prelink_cmds=$lt_prelink_cmds
  27445. # Commands necessary for finishing linking programs.
  27446. postlink_cmds=$lt_postlink_cmds
  27447. # Specify filename containing input files.
  27448. file_list_spec=$lt_file_list_spec
  27449. # How to hardcode a shared library path into an executable.
  27450. hardcode_action=$hardcode_action
  27451. # The directories searched by this compiler when creating a shared library.
  27452. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27453. # Dependencies to place before and after the objects being linked to
  27454. # create a shared library.
  27455. predep_objects=$lt_predep_objects
  27456. postdep_objects=$lt_postdep_objects
  27457. predeps=$lt_predeps
  27458. postdeps=$lt_postdeps
  27459. # The library search path used internally by the compiler when linking
  27460. # a shared library.
  27461. compiler_lib_search_path=$lt_compiler_lib_search_path
  27462. # ### END LIBTOOL CONFIG
  27463. _LT_EOF
  27464. cat <<'_LT_EOF' >> "$cfgfile"
  27465. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27466. # func_munge_path_list VARIABLE PATH
  27467. # -----------------------------------
  27468. # VARIABLE is name of variable containing _space_ separated list of
  27469. # directories to be munged by the contents of PATH, which is string
  27470. # having a format:
  27471. # "DIR[:DIR]:"
  27472. # string "DIR[ DIR]" will be prepended to VARIABLE
  27473. # ":DIR[:DIR]"
  27474. # string "DIR[ DIR]" will be appended to VARIABLE
  27475. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27476. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27477. # "DIRA[ DIRA]" will be appended to VARIABLE
  27478. # "DIR[:DIR]"
  27479. # VARIABLE will be replaced by "DIR[ DIR]"
  27480. func_munge_path_list ()
  27481. {
  27482. case x$2 in
  27483. x)
  27484. ;;
  27485. *:)
  27486. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27487. ;;
  27488. x:*)
  27489. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27490. ;;
  27491. *::*)
  27492. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27493. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27494. ;;
  27495. *)
  27496. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27497. ;;
  27498. esac
  27499. }
  27500. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27501. func_cc_basename ()
  27502. {
  27503. for cc_temp in $*""; do
  27504. case $cc_temp in
  27505. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27506. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27507. \-*) ;;
  27508. *) break;;
  27509. esac
  27510. done
  27511. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27512. }
  27513. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27514. _LT_EOF
  27515. case $host_os in
  27516. aix3*)
  27517. cat <<\_LT_EOF >> "$cfgfile"
  27518. # AIX sometimes has problems with the GCC collect2 program. For some
  27519. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27520. # vanish in a puff of smoke.
  27521. if test set != "${COLLECT_NAMES+set}"; then
  27522. COLLECT_NAMES=
  27523. export COLLECT_NAMES
  27524. fi
  27525. _LT_EOF
  27526. ;;
  27527. esac
  27528. ltmain=$ac_aux_dir/ltmain.sh
  27529. # We use sed instead of cat because bash on DJGPP gets confused if
  27530. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27531. # text mode, it properly converts lines to CR/LF. This bash problem
  27532. # is reportedly fixed, but why not run on old versions too?
  27533. sed '$q' "$ltmain" >> "$cfgfile" \
  27534. || (rm -f "$cfgfile"; exit 1)
  27535. mv -f "$cfgfile" "$ofile" ||
  27536. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27537. chmod +x "$ofile"
  27538. cat <<_LT_EOF >> "$ofile"
  27539. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27540. # The linker used to build libraries.
  27541. LD=$lt_LD_RC
  27542. # How to create reloadable object files.
  27543. reload_flag=$lt_reload_flag_RC
  27544. reload_cmds=$lt_reload_cmds_RC
  27545. # Commands used to build an old-style archive.
  27546. old_archive_cmds=$lt_old_archive_cmds_RC
  27547. # A language specific compiler.
  27548. CC=$lt_compiler_RC
  27549. # Is the compiler the GNU compiler?
  27550. with_gcc=$GCC_RC
  27551. # Compiler flag to turn off builtin functions.
  27552. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27553. # Additional compiler flags for building library objects.
  27554. pic_flag=$lt_lt_prog_compiler_pic_RC
  27555. # How to pass a linker flag through the compiler.
  27556. wl=$lt_lt_prog_compiler_wl_RC
  27557. # Compiler flag to prevent dynamic linking.
  27558. link_static_flag=$lt_lt_prog_compiler_static_RC
  27559. # Does compiler simultaneously support -c and -o options?
  27560. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27561. # Whether or not to add -lc for building shared libraries.
  27562. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27563. # Whether or not to disallow shared libs when runtime libs are static.
  27564. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27565. # Compiler flag to allow reflexive dlopens.
  27566. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27567. # Compiler flag to generate shared objects directly from archives.
  27568. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27569. # Whether the compiler copes with passing no objects directly.
  27570. compiler_needs_object=$lt_compiler_needs_object_RC
  27571. # Create an old-style archive from a shared archive.
  27572. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27573. # Create a temporary old-style archive to link instead of a shared archive.
  27574. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27575. # Commands used to build a shared archive.
  27576. archive_cmds=$lt_archive_cmds_RC
  27577. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27578. # Commands used to build a loadable module if different from building
  27579. # a shared archive.
  27580. module_cmds=$lt_module_cmds_RC
  27581. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27582. # Whether we are building with GNU ld or not.
  27583. with_gnu_ld=$lt_with_gnu_ld_RC
  27584. # Flag that allows shared libraries with undefined symbols to be built.
  27585. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27586. # Flag that enforces no undefined symbols.
  27587. no_undefined_flag=$lt_no_undefined_flag_RC
  27588. # Flag to hardcode \$libdir into a binary during linking.
  27589. # This must work even if \$libdir does not exist
  27590. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27591. # Whether we need a single "-rpath" flag with a separated argument.
  27592. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27593. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27594. # DIR into the resulting binary.
  27595. hardcode_direct=$hardcode_direct_RC
  27596. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27597. # DIR into the resulting binary and the resulting library dependency is
  27598. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27599. # library is relocated.
  27600. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27601. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27602. # into the resulting binary.
  27603. hardcode_minus_L=$hardcode_minus_L_RC
  27604. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27605. # into the resulting binary.
  27606. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27607. # Set to "yes" if building a shared library automatically hardcodes DIR
  27608. # into the library and all subsequent libraries and executables linked
  27609. # against it.
  27610. hardcode_automatic=$hardcode_automatic_RC
  27611. # Set to yes if linker adds runtime paths of dependent libraries
  27612. # to runtime path list.
  27613. inherit_rpath=$inherit_rpath_RC
  27614. # Whether libtool must link a program against all its dependency libraries.
  27615. link_all_deplibs=$link_all_deplibs_RC
  27616. # Set to "yes" if exported symbols are required.
  27617. always_export_symbols=$always_export_symbols_RC
  27618. # The commands to list exported symbols.
  27619. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27620. # Symbols that should not be listed in the preloaded symbols.
  27621. exclude_expsyms=$lt_exclude_expsyms_RC
  27622. # Symbols that must always be exported.
  27623. include_expsyms=$lt_include_expsyms_RC
  27624. # Commands necessary for linking programs (against libraries) with templates.
  27625. prelink_cmds=$lt_prelink_cmds_RC
  27626. # Commands necessary for finishing linking programs.
  27627. postlink_cmds=$lt_postlink_cmds_RC
  27628. # Specify filename containing input files.
  27629. file_list_spec=$lt_file_list_spec_RC
  27630. # How to hardcode a shared library path into an executable.
  27631. hardcode_action=$hardcode_action_RC
  27632. # The directories searched by this compiler when creating a shared library.
  27633. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27634. # Dependencies to place before and after the objects being linked to
  27635. # create a shared library.
  27636. predep_objects=$lt_predep_objects_RC
  27637. postdep_objects=$lt_postdep_objects_RC
  27638. predeps=$lt_predeps_RC
  27639. postdeps=$lt_postdeps_RC
  27640. # The library search path used internally by the compiler when linking
  27641. # a shared library.
  27642. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27643. # ### END LIBTOOL TAG CONFIG: RC
  27644. _LT_EOF
  27645. cat <<_LT_EOF >> "$ofile"
  27646. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27647. # The linker used to build libraries.
  27648. LD=$lt_LD_CXX
  27649. # How to create reloadable object files.
  27650. reload_flag=$lt_reload_flag_CXX
  27651. reload_cmds=$lt_reload_cmds_CXX
  27652. # Commands used to build an old-style archive.
  27653. old_archive_cmds=$lt_old_archive_cmds_CXX
  27654. # A language specific compiler.
  27655. CC=$lt_compiler_CXX
  27656. # Is the compiler the GNU compiler?
  27657. with_gcc=$GCC_CXX
  27658. # Compiler flag to turn off builtin functions.
  27659. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27660. # Additional compiler flags for building library objects.
  27661. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27662. # How to pass a linker flag through the compiler.
  27663. wl=$lt_lt_prog_compiler_wl_CXX
  27664. # Compiler flag to prevent dynamic linking.
  27665. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27666. # Does compiler simultaneously support -c and -o options?
  27667. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27668. # Whether or not to add -lc for building shared libraries.
  27669. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27670. # Whether or not to disallow shared libs when runtime libs are static.
  27671. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27672. # Compiler flag to allow reflexive dlopens.
  27673. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27674. # Compiler flag to generate shared objects directly from archives.
  27675. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27676. # Whether the compiler copes with passing no objects directly.
  27677. compiler_needs_object=$lt_compiler_needs_object_CXX
  27678. # Create an old-style archive from a shared archive.
  27679. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27680. # Create a temporary old-style archive to link instead of a shared archive.
  27681. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27682. # Commands used to build a shared archive.
  27683. archive_cmds=$lt_archive_cmds_CXX
  27684. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27685. # Commands used to build a loadable module if different from building
  27686. # a shared archive.
  27687. module_cmds=$lt_module_cmds_CXX
  27688. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27689. # Whether we are building with GNU ld or not.
  27690. with_gnu_ld=$lt_with_gnu_ld_CXX
  27691. # Flag that allows shared libraries with undefined symbols to be built.
  27692. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27693. # Flag that enforces no undefined symbols.
  27694. no_undefined_flag=$lt_no_undefined_flag_CXX
  27695. # Flag to hardcode \$libdir into a binary during linking.
  27696. # This must work even if \$libdir does not exist
  27697. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27698. # Whether we need a single "-rpath" flag with a separated argument.
  27699. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27700. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27701. # DIR into the resulting binary.
  27702. hardcode_direct=$hardcode_direct_CXX
  27703. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27704. # DIR into the resulting binary and the resulting library dependency is
  27705. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27706. # library is relocated.
  27707. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27708. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27709. # into the resulting binary.
  27710. hardcode_minus_L=$hardcode_minus_L_CXX
  27711. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27712. # into the resulting binary.
  27713. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27714. # Set to "yes" if building a shared library automatically hardcodes DIR
  27715. # into the library and all subsequent libraries and executables linked
  27716. # against it.
  27717. hardcode_automatic=$hardcode_automatic_CXX
  27718. # Set to yes if linker adds runtime paths of dependent libraries
  27719. # to runtime path list.
  27720. inherit_rpath=$inherit_rpath_CXX
  27721. # Whether libtool must link a program against all its dependency libraries.
  27722. link_all_deplibs=$link_all_deplibs_CXX
  27723. # Set to "yes" if exported symbols are required.
  27724. always_export_symbols=$always_export_symbols_CXX
  27725. # The commands to list exported symbols.
  27726. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27727. # Symbols that should not be listed in the preloaded symbols.
  27728. exclude_expsyms=$lt_exclude_expsyms_CXX
  27729. # Symbols that must always be exported.
  27730. include_expsyms=$lt_include_expsyms_CXX
  27731. # Commands necessary for linking programs (against libraries) with templates.
  27732. prelink_cmds=$lt_prelink_cmds_CXX
  27733. # Commands necessary for finishing linking programs.
  27734. postlink_cmds=$lt_postlink_cmds_CXX
  27735. # Specify filename containing input files.
  27736. file_list_spec=$lt_file_list_spec_CXX
  27737. # How to hardcode a shared library path into an executable.
  27738. hardcode_action=$hardcode_action_CXX
  27739. # The directories searched by this compiler when creating a shared library.
  27740. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27741. # Dependencies to place before and after the objects being linked to
  27742. # create a shared library.
  27743. predep_objects=$lt_predep_objects_CXX
  27744. postdep_objects=$lt_postdep_objects_CXX
  27745. predeps=$lt_predeps_CXX
  27746. postdeps=$lt_postdeps_CXX
  27747. # The library search path used internally by the compiler when linking
  27748. # a shared library.
  27749. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27750. # ### END LIBTOOL TAG CONFIG: CXX
  27751. _LT_EOF
  27752. ;;
  27753. "sdl2_config":C) chmod a+x sdl2-config ;;
  27754. "summary":C) printf "$SUMMARY" ;;
  27755. esac
  27756. done # for ac_tag
  27757. as_fn_exit 0
  27758. _ACEOF
  27759. ac_clean_files=$ac_clean_files_save
  27760. test $ac_write_fail = 0 ||
  27761. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27762. # configure is writing to config.log, and then calls config.status.
  27763. # config.status does its own redirection, appending to config.log.
  27764. # Unfortunately, on DOS this fails, as config.log is still kept open
  27765. # by configure, so config.status won't be able to write to it; its
  27766. # output is simply discarded. So we exec the FD to /dev/null,
  27767. # effectively closing config.log, so it can be properly (re)opened and
  27768. # appended to by config.status. When coming back to configure, we
  27769. # need to make the FD available again.
  27770. if test "$no_create" != yes; then
  27771. ac_cs_success=:
  27772. ac_config_status_args=
  27773. test "$silent" = yes &&
  27774. ac_config_status_args="$ac_config_status_args --quiet"
  27775. exec 5>/dev/null
  27776. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27777. exec 5>>config.log
  27778. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27779. # would make configure fail if this is the last instruction.
  27780. $ac_cs_success || as_fn_exit 1
  27781. fi
  27782. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27784. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27785. fi