configure 964 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. PKGCONFIG_DEPENDS
  621. SDL_RLD_FLAGS
  622. SDL_STATIC_LIBS
  623. SDL_LIBS
  624. SDL_CFLAGS
  625. bin_prefix_relpath
  626. cmake_prefix_relpath
  627. SDL_VENDOR_INFO
  628. INSTALL_SDL2_CONFIG
  629. LIBUSB_LIBS
  630. LIBUSB_CFLAGS
  631. IBUS_LIBS
  632. IBUS_CFLAGS
  633. DBUS_LIBS
  634. DBUS_CFLAGS
  635. LIBGBM_LIBS
  636. LIBGBM_CFLAGS
  637. LIBDRM_LIBS
  638. LIBDRM_CFLAGS
  639. DIRECTFB_LIBS
  640. DIRECTFB_CFLAGS
  641. X_EXTRA_LIBS
  642. X_LIBS
  643. X_PRE_LIBS
  644. X_CFLAGS
  645. XMKMF
  646. RPI_EGL_LIBS
  647. RPI_EGL_CFLAGS
  648. RPI_LIBS
  649. RPI_CFLAGS
  650. DECOR_LIBS
  651. DECOR_CFLAGS
  652. FUSIONSOUND_LIBS
  653. FUSIONSOUND_CFLAGS
  654. SNDIO_LIBS
  655. SNDIO_CFLAGS
  656. ARTSCONFIG
  657. PULSEAUDIO_LIBS
  658. PULSEAUDIO_CFLAGS
  659. PIPEWIRE_LIBS
  660. PIPEWIRE_CFLAGS
  661. ESD_CONFIG
  662. ESD_LIBS
  663. ESD_CFLAGS
  664. JACK_LIBS
  665. JACK_CFLAGS
  666. ALSA_LIBS
  667. ALSA_CFLAGS
  668. ALLOCA
  669. CPP
  670. LIBTOOLLINKERTAG
  671. LINKER
  672. SORT
  673. PKG_CONFIG_LIBDIR
  674. PKG_CONFIG_PATH
  675. PKG_CONFIG
  676. SET_MAKE
  677. INSTALL_DATA
  678. INSTALL_SCRIPT
  679. INSTALL_PROGRAM
  680. CXXCPP
  681. ac_ct_CXX
  682. CXXFLAGS
  683. CXX
  684. LT_AGE
  685. LT_REVISION
  686. LT_CURRENT
  687. LT_RELEASE
  688. RC
  689. LT_SYS_LIBRARY_PATH
  690. OTOOL64
  691. OTOOL
  692. LIPO
  693. NMEDIT
  694. DSYMUTIL
  695. MANIFEST_TOOL
  696. AWK
  697. RANLIB
  698. STRIP
  699. ac_ct_AR
  700. AR
  701. LN_S
  702. NM
  703. ac_ct_DUMPBIN
  704. DUMPBIN
  705. LD
  706. FGREP
  707. EGREP
  708. GREP
  709. SED
  710. OBJEXT
  711. EXEEXT
  712. ac_ct_CC
  713. CPPFLAGS
  714. LDFLAGS
  715. CFLAGS
  716. CC
  717. host_os
  718. host_vendor
  719. host_cpu
  720. host
  721. build_os
  722. build_vendor
  723. build_cpu
  724. build
  725. LIBTOOL
  726. OBJDUMP
  727. DLLTOOL
  728. AS
  729. SDL_VERSION
  730. SDL_BINARY_AGE
  731. SDL_INTERFACE_AGE
  732. SDL_MICRO_VERSION
  733. SDL_MINOR_VERSION
  734. SDL_MAJOR_VERSION
  735. target_alias
  736. host_alias
  737. build_alias
  738. LIBS
  739. ECHO_T
  740. ECHO_N
  741. ECHO_C
  742. DEFS
  743. mandir
  744. localedir
  745. libdir
  746. psdir
  747. pdfdir
  748. dvidir
  749. htmldir
  750. infodir
  751. docdir
  752. oldincludedir
  753. includedir
  754. runstatedir
  755. localstatedir
  756. sharedstatedir
  757. sysconfdir
  758. datadir
  759. datarootdir
  760. libexecdir
  761. sbindir
  762. bindir
  763. program_transform_name
  764. prefix
  765. exec_prefix
  766. PACKAGE_URL
  767. PACKAGE_BUGREPORT
  768. PACKAGE_STRING
  769. PACKAGE_VERSION
  770. PACKAGE_TARNAME
  771. PACKAGE_NAME
  772. PATH_SEPARATOR
  773. SHELL'
  774. ac_subst_files=''
  775. ac_user_opts='
  776. enable_option_checking
  777. enable_shared
  778. enable_static
  779. with_pic
  780. enable_fast_install
  781. with_aix_soname
  782. with_gnu_ld
  783. with_sysroot
  784. enable_libtool_lock
  785. enable_largefile
  786. enable_assertions
  787. enable_dependency_tracking
  788. enable_libc
  789. enable_system_iconv
  790. enable_libiconv
  791. enable_gcc_atomics
  792. enable_atomic
  793. enable_audio
  794. enable_video
  795. enable_render
  796. enable_events
  797. enable_joystick
  798. enable_haptic
  799. enable_hidapi
  800. enable_sensor
  801. enable_power
  802. enable_filesystem
  803. enable_timers
  804. enable_file
  805. enable_misc
  806. enable_locale
  807. enable_loadso
  808. enable_cpuinfo
  809. enable_assembly
  810. enable_ssemath
  811. enable_mmx
  812. enable_3dnow
  813. enable_sse
  814. enable_sse2
  815. enable_sse3
  816. enable_altivec
  817. enable_lsx
  818. enable_oss
  819. enable_alsa
  820. with_alsa_prefix
  821. with_alsa_inc_prefix
  822. enable_alsatest
  823. enable_alsa_shared
  824. enable_jack
  825. enable_jack_shared
  826. enable_esd
  827. with_esd_prefix
  828. with_esd_exec_prefix
  829. enable_esdtest
  830. enable_esd_shared
  831. enable_pipewire
  832. enable_pipewire_shared
  833. enable_pulseaudio
  834. enable_pulseaudio_shared
  835. enable_arts
  836. enable_arts_shared
  837. enable_nas
  838. enable_nas_shared
  839. enable_sndio
  840. enable_sndio_shared
  841. enable_fusionsound
  842. enable_fusionsound_shared
  843. enable_diskaudio
  844. enable_dummyaudio
  845. enable_libsamplerate
  846. enable_libsamplerate_shared
  847. enable_arm_simd
  848. enable_arm_neon
  849. enable_werror
  850. enable_video_wayland
  851. enable_video_wayland_qt_touch
  852. enable_wayland_shared
  853. enable_libdecor
  854. enable_libdecor_shared
  855. enable_video_rpi
  856. enable_video_x11
  857. with_x
  858. enable_x11_shared
  859. enable_video_x11_xcursor
  860. enable_video_x11_xdbe
  861. enable_video_x11_xinput
  862. enable_video_x11_xfixes
  863. enable_video_x11_xrandr
  864. enable_video_x11_scrnsaver
  865. enable_video_x11_xshape
  866. enable_video_vivante
  867. enable_video_cocoa
  868. enable_video_metal
  869. enable_render_metal
  870. enable_video_directfb
  871. enable_directfb_shared
  872. enable_video_kmsdrm
  873. enable_kmsdrm_shared
  874. enable_video_dummy
  875. enable_video_offscreen
  876. enable_video_opengl
  877. enable_video_opengles
  878. enable_video_opengles1
  879. enable_video_opengles2
  880. enable_video_vulkan
  881. enable_libudev
  882. enable_dbus
  883. enable_ime
  884. enable_ibus
  885. enable_fcitx
  886. enable_joystick_mfi
  887. enable_pthreads
  888. enable_pthread_sem
  889. enable_directx
  890. enable_xinput
  891. enable_wasapi
  892. enable_hidapi_joystick
  893. enable_hidapi_libusb
  894. enable_clock_gettime
  895. enable_rpath
  896. enable_backgrounding_signal
  897. enable_foregrounding_signal
  898. enable_joystick_virtual
  899. enable_render_d3d
  900. enable_sdl2_config
  901. enable_vendor_info
  902. '
  903. ac_precious_vars='build_alias
  904. host_alias
  905. target_alias
  906. CC
  907. CFLAGS
  908. LDFLAGS
  909. LIBS
  910. CPPFLAGS
  911. LT_SYS_LIBRARY_PATH
  912. CXX
  913. CXXFLAGS
  914. CCC
  915. CXXCPP
  916. PKG_CONFIG
  917. PKG_CONFIG_PATH
  918. PKG_CONFIG_LIBDIR
  919. CPP
  920. JACK_CFLAGS
  921. JACK_LIBS
  922. ESD_CFLAGS
  923. ESD_LIBS
  924. PIPEWIRE_CFLAGS
  925. PIPEWIRE_LIBS
  926. PULSEAUDIO_CFLAGS
  927. PULSEAUDIO_LIBS
  928. SNDIO_CFLAGS
  929. SNDIO_LIBS
  930. FUSIONSOUND_CFLAGS
  931. FUSIONSOUND_LIBS
  932. DECOR_CFLAGS
  933. DECOR_LIBS
  934. RPI_CFLAGS
  935. RPI_LIBS
  936. RPI_EGL_CFLAGS
  937. RPI_EGL_LIBS
  938. XMKMF
  939. DIRECTFB_CFLAGS
  940. DIRECTFB_LIBS
  941. LIBDRM_CFLAGS
  942. LIBDRM_LIBS
  943. LIBGBM_CFLAGS
  944. LIBGBM_LIBS
  945. DBUS_CFLAGS
  946. DBUS_LIBS
  947. IBUS_CFLAGS
  948. IBUS_LIBS
  949. LIBUSB_CFLAGS
  950. LIBUSB_LIBS'
  951. # Initialize some variables set by options.
  952. ac_init_help=
  953. ac_init_version=false
  954. ac_unrecognized_opts=
  955. ac_unrecognized_sep=
  956. # The variables have the same names as the options, with
  957. # dashes changed to underlines.
  958. cache_file=/dev/null
  959. exec_prefix=NONE
  960. no_create=
  961. no_recursion=
  962. prefix=NONE
  963. program_prefix=NONE
  964. program_suffix=NONE
  965. program_transform_name=s,x,x,
  966. silent=
  967. site=
  968. srcdir=
  969. verbose=
  970. x_includes=NONE
  971. x_libraries=NONE
  972. # Installation directory options.
  973. # These are left unexpanded so users can "make install exec_prefix=/foo"
  974. # and all the variables that are supposed to be based on exec_prefix
  975. # by default will actually change.
  976. # Use braces instead of parens because sh, perl, etc. also accept them.
  977. # (The list follows the same order as the GNU Coding Standards.)
  978. bindir='${exec_prefix}/bin'
  979. sbindir='${exec_prefix}/sbin'
  980. libexecdir='${exec_prefix}/libexec'
  981. datarootdir='${prefix}/share'
  982. datadir='${datarootdir}'
  983. sysconfdir='${prefix}/etc'
  984. sharedstatedir='${prefix}/com'
  985. localstatedir='${prefix}/var'
  986. runstatedir='${localstatedir}/run'
  987. includedir='${prefix}/include'
  988. oldincludedir='/usr/include'
  989. docdir='${datarootdir}/doc/${PACKAGE}'
  990. infodir='${datarootdir}/info'
  991. htmldir='${docdir}'
  992. dvidir='${docdir}'
  993. pdfdir='${docdir}'
  994. psdir='${docdir}'
  995. libdir='${exec_prefix}/lib'
  996. localedir='${datarootdir}/locale'
  997. mandir='${datarootdir}/man'
  998. ac_prev=
  999. ac_dashdash=
  1000. for ac_option
  1001. do
  1002. # If the previous option needs an argument, assign it.
  1003. if test -n "$ac_prev"; then
  1004. eval $ac_prev=\$ac_option
  1005. ac_prev=
  1006. continue
  1007. fi
  1008. case $ac_option in
  1009. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1010. *=) ac_optarg= ;;
  1011. *) ac_optarg=yes ;;
  1012. esac
  1013. case $ac_dashdash$ac_option in
  1014. --)
  1015. ac_dashdash=yes ;;
  1016. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1017. ac_prev=bindir ;;
  1018. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1019. bindir=$ac_optarg ;;
  1020. -build | --build | --buil | --bui | --bu)
  1021. ac_prev=build_alias ;;
  1022. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1023. build_alias=$ac_optarg ;;
  1024. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1025. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1026. ac_prev=cache_file ;;
  1027. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1028. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1029. cache_file=$ac_optarg ;;
  1030. --config-cache | -C)
  1031. cache_file=config.cache ;;
  1032. -datadir | --datadir | --datadi | --datad)
  1033. ac_prev=datadir ;;
  1034. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1035. datadir=$ac_optarg ;;
  1036. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1037. | --dataroo | --dataro | --datar)
  1038. ac_prev=datarootdir ;;
  1039. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1040. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1041. datarootdir=$ac_optarg ;;
  1042. -disable-* | --disable-*)
  1043. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1044. # Reject names that are not valid shell variable names.
  1045. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1046. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1047. ac_useropt_orig=$ac_useropt
  1048. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1049. case $ac_user_opts in
  1050. *"
  1051. "enable_$ac_useropt"
  1052. "*) ;;
  1053. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1054. ac_unrecognized_sep=', ';;
  1055. esac
  1056. eval enable_$ac_useropt=no ;;
  1057. -docdir | --docdir | --docdi | --doc | --do)
  1058. ac_prev=docdir ;;
  1059. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1060. docdir=$ac_optarg ;;
  1061. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1062. ac_prev=dvidir ;;
  1063. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1064. dvidir=$ac_optarg ;;
  1065. -enable-* | --enable-*)
  1066. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1067. # Reject names that are not valid shell variable names.
  1068. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1069. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1070. ac_useropt_orig=$ac_useropt
  1071. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1072. case $ac_user_opts in
  1073. *"
  1074. "enable_$ac_useropt"
  1075. "*) ;;
  1076. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1077. ac_unrecognized_sep=', ';;
  1078. esac
  1079. eval enable_$ac_useropt=\$ac_optarg ;;
  1080. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1081. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1082. | --exec | --exe | --ex)
  1083. ac_prev=exec_prefix ;;
  1084. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1085. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1086. | --exec=* | --exe=* | --ex=*)
  1087. exec_prefix=$ac_optarg ;;
  1088. -gas | --gas | --ga | --g)
  1089. # Obsolete; use --with-gas.
  1090. with_gas=yes ;;
  1091. -help | --help | --hel | --he | -h)
  1092. ac_init_help=long ;;
  1093. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1094. ac_init_help=recursive ;;
  1095. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1096. ac_init_help=short ;;
  1097. -host | --host | --hos | --ho)
  1098. ac_prev=host_alias ;;
  1099. -host=* | --host=* | --hos=* | --ho=*)
  1100. host_alias=$ac_optarg ;;
  1101. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1102. ac_prev=htmldir ;;
  1103. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1104. | --ht=*)
  1105. htmldir=$ac_optarg ;;
  1106. -includedir | --includedir | --includedi | --included | --include \
  1107. | --includ | --inclu | --incl | --inc)
  1108. ac_prev=includedir ;;
  1109. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1110. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1111. includedir=$ac_optarg ;;
  1112. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1113. ac_prev=infodir ;;
  1114. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1115. infodir=$ac_optarg ;;
  1116. -libdir | --libdir | --libdi | --libd)
  1117. ac_prev=libdir ;;
  1118. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1119. libdir=$ac_optarg ;;
  1120. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1121. | --libexe | --libex | --libe)
  1122. ac_prev=libexecdir ;;
  1123. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1124. | --libexe=* | --libex=* | --libe=*)
  1125. libexecdir=$ac_optarg ;;
  1126. -localedir | --localedir | --localedi | --localed | --locale)
  1127. ac_prev=localedir ;;
  1128. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1129. localedir=$ac_optarg ;;
  1130. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1131. | --localstate | --localstat | --localsta | --localst | --locals)
  1132. ac_prev=localstatedir ;;
  1133. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1134. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1135. localstatedir=$ac_optarg ;;
  1136. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1137. ac_prev=mandir ;;
  1138. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1139. mandir=$ac_optarg ;;
  1140. -nfp | --nfp | --nf)
  1141. # Obsolete; use --without-fp.
  1142. with_fp=no ;;
  1143. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1144. | --no-cr | --no-c | -n)
  1145. no_create=yes ;;
  1146. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1147. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1148. no_recursion=yes ;;
  1149. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1150. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1151. | --oldin | --oldi | --old | --ol | --o)
  1152. ac_prev=oldincludedir ;;
  1153. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1154. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1155. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1156. oldincludedir=$ac_optarg ;;
  1157. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1158. ac_prev=prefix ;;
  1159. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1160. prefix=$ac_optarg ;;
  1161. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1162. | --program-pre | --program-pr | --program-p)
  1163. ac_prev=program_prefix ;;
  1164. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1165. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1166. program_prefix=$ac_optarg ;;
  1167. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1168. | --program-suf | --program-su | --program-s)
  1169. ac_prev=program_suffix ;;
  1170. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1171. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1172. program_suffix=$ac_optarg ;;
  1173. -program-transform-name | --program-transform-name \
  1174. | --program-transform-nam | --program-transform-na \
  1175. | --program-transform-n | --program-transform- \
  1176. | --program-transform | --program-transfor \
  1177. | --program-transfo | --program-transf \
  1178. | --program-trans | --program-tran \
  1179. | --progr-tra | --program-tr | --program-t)
  1180. ac_prev=program_transform_name ;;
  1181. -program-transform-name=* | --program-transform-name=* \
  1182. | --program-transform-nam=* | --program-transform-na=* \
  1183. | --program-transform-n=* | --program-transform-=* \
  1184. | --program-transform=* | --program-transfor=* \
  1185. | --program-transfo=* | --program-transf=* \
  1186. | --program-trans=* | --program-tran=* \
  1187. | --progr-tra=* | --program-tr=* | --program-t=*)
  1188. program_transform_name=$ac_optarg ;;
  1189. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1190. ac_prev=pdfdir ;;
  1191. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1192. pdfdir=$ac_optarg ;;
  1193. -psdir | --psdir | --psdi | --psd | --ps)
  1194. ac_prev=psdir ;;
  1195. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1196. psdir=$ac_optarg ;;
  1197. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1198. | -silent | --silent | --silen | --sile | --sil)
  1199. silent=yes ;;
  1200. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1201. | --runstate | --runstat | --runsta | --runst | --runs \
  1202. | --run | --ru | --r)
  1203. ac_prev=runstatedir ;;
  1204. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1205. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1206. | --run=* | --ru=* | --r=*)
  1207. runstatedir=$ac_optarg ;;
  1208. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1209. ac_prev=sbindir ;;
  1210. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1211. | --sbi=* | --sb=*)
  1212. sbindir=$ac_optarg ;;
  1213. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1214. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1215. | --sharedst | --shareds | --shared | --share | --shar \
  1216. | --sha | --sh)
  1217. ac_prev=sharedstatedir ;;
  1218. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1219. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1220. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1221. | --sha=* | --sh=*)
  1222. sharedstatedir=$ac_optarg ;;
  1223. -site | --site | --sit)
  1224. ac_prev=site ;;
  1225. -site=* | --site=* | --sit=*)
  1226. site=$ac_optarg ;;
  1227. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1228. ac_prev=srcdir ;;
  1229. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1230. srcdir=$ac_optarg ;;
  1231. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1232. | --syscon | --sysco | --sysc | --sys | --sy)
  1233. ac_prev=sysconfdir ;;
  1234. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1235. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1236. sysconfdir=$ac_optarg ;;
  1237. -target | --target | --targe | --targ | --tar | --ta | --t)
  1238. ac_prev=target_alias ;;
  1239. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1240. target_alias=$ac_optarg ;;
  1241. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1242. verbose=yes ;;
  1243. -version | --version | --versio | --versi | --vers | -V)
  1244. ac_init_version=: ;;
  1245. -with-* | --with-*)
  1246. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  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--with-$ac_useropt_orig"
  1257. ac_unrecognized_sep=', ';;
  1258. esac
  1259. eval with_$ac_useropt=\$ac_optarg ;;
  1260. -without-* | --without-*)
  1261. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1262. # Reject names that are not valid shell variable names.
  1263. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1264. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1265. ac_useropt_orig=$ac_useropt
  1266. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1267. case $ac_user_opts in
  1268. *"
  1269. "with_$ac_useropt"
  1270. "*) ;;
  1271. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1272. ac_unrecognized_sep=', ';;
  1273. esac
  1274. eval with_$ac_useropt=no ;;
  1275. --x)
  1276. # Obsolete; use --with-x.
  1277. with_x=yes ;;
  1278. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1279. | --x-incl | --x-inc | --x-in | --x-i)
  1280. ac_prev=x_includes ;;
  1281. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1282. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1283. x_includes=$ac_optarg ;;
  1284. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1285. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1286. ac_prev=x_libraries ;;
  1287. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1288. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1289. x_libraries=$ac_optarg ;;
  1290. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1291. Try \`$0 --help' for more information"
  1292. ;;
  1293. *=*)
  1294. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1295. # Reject names that are not valid shell variable names.
  1296. case $ac_envvar in #(
  1297. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1298. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1299. esac
  1300. eval $ac_envvar=\$ac_optarg
  1301. export $ac_envvar ;;
  1302. *)
  1303. # FIXME: should be removed in autoconf 3.0.
  1304. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1305. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1306. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1307. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1308. ;;
  1309. esac
  1310. done
  1311. if test -n "$ac_prev"; then
  1312. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1313. as_fn_error $? "missing argument to $ac_option"
  1314. fi
  1315. if test -n "$ac_unrecognized_opts"; then
  1316. case $enable_option_checking in
  1317. no) ;;
  1318. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1319. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1320. esac
  1321. fi
  1322. # Check all directory arguments for consistency.
  1323. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1324. datadir sysconfdir sharedstatedir localstatedir includedir \
  1325. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1326. libdir localedir mandir runstatedir
  1327. do
  1328. eval ac_val=\$$ac_var
  1329. # Remove trailing slashes.
  1330. case $ac_val in
  1331. */ )
  1332. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1333. eval $ac_var=\$ac_val;;
  1334. esac
  1335. # Be sure to have absolute directory names.
  1336. case $ac_val in
  1337. [\\/$]* | ?:[\\/]* ) continue;;
  1338. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1339. esac
  1340. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1341. done
  1342. # There might be people who depend on the old broken behavior: `$host'
  1343. # used to hold the argument of --host etc.
  1344. # FIXME: To remove some day.
  1345. build=$build_alias
  1346. host=$host_alias
  1347. target=$target_alias
  1348. # FIXME: To remove some day.
  1349. if test "x$host_alias" != x; then
  1350. if test "x$build_alias" = x; then
  1351. cross_compiling=maybe
  1352. elif test "x$build_alias" != "x$host_alias"; then
  1353. cross_compiling=yes
  1354. fi
  1355. fi
  1356. ac_tool_prefix=
  1357. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1358. test "$silent" = yes && exec 6>/dev/null
  1359. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1360. ac_ls_di=`ls -di .` &&
  1361. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1362. as_fn_error $? "working directory cannot be determined"
  1363. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1364. as_fn_error $? "pwd does not report name of working directory"
  1365. # Find the source files, if location was not specified.
  1366. if test -z "$srcdir"; then
  1367. ac_srcdir_defaulted=yes
  1368. # Try the directory containing this script, then the parent directory.
  1369. ac_confdir=`$as_dirname -- "$as_myself" ||
  1370. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1371. X"$as_myself" : 'X\(//\)[^/]' \| \
  1372. X"$as_myself" : 'X\(//\)$' \| \
  1373. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1374. printf "%s\n" X"$as_myself" |
  1375. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1376. s//\1/
  1377. q
  1378. }
  1379. /^X\(\/\/\)[^/].*/{
  1380. s//\1/
  1381. q
  1382. }
  1383. /^X\(\/\/\)$/{
  1384. s//\1/
  1385. q
  1386. }
  1387. /^X\(\/\).*/{
  1388. s//\1/
  1389. q
  1390. }
  1391. s/.*/./; q'`
  1392. srcdir=$ac_confdir
  1393. if test ! -r "$srcdir/$ac_unique_file"; then
  1394. srcdir=..
  1395. fi
  1396. else
  1397. ac_srcdir_defaulted=no
  1398. fi
  1399. if test ! -r "$srcdir/$ac_unique_file"; then
  1400. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1401. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1402. fi
  1403. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1404. ac_abs_confdir=`(
  1405. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1406. pwd)`
  1407. # When building in place, set srcdir=.
  1408. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1409. srcdir=.
  1410. fi
  1411. # Remove unnecessary trailing slashes from srcdir.
  1412. # Double slashes in file names in object file debugging info
  1413. # mess up M-x gdb in Emacs.
  1414. case $srcdir in
  1415. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1416. esac
  1417. for ac_var in $ac_precious_vars; do
  1418. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1419. eval ac_env_${ac_var}_value=\$${ac_var}
  1420. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1421. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1422. done
  1423. #
  1424. # Report the --help message.
  1425. #
  1426. if test "$ac_init_help" = "long"; then
  1427. # Omit some internal or obsolete options to make the list less imposing.
  1428. # This message is too long to be a string in the A/UX 3.1 sh.
  1429. cat <<_ACEOF
  1430. \`configure' configures this package to adapt to many kinds of systems.
  1431. Usage: $0 [OPTION]... [VAR=VALUE]...
  1432. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1433. VAR=VALUE. See below for descriptions of some of the useful variables.
  1434. Defaults for the options are specified in brackets.
  1435. Configuration:
  1436. -h, --help display this help and exit
  1437. --help=short display options specific to this package
  1438. --help=recursive display the short help of all the included packages
  1439. -V, --version display version information and exit
  1440. -q, --quiet, --silent do not print \`checking ...' messages
  1441. --cache-file=FILE cache test results in FILE [disabled]
  1442. -C, --config-cache alias for \`--cache-file=config.cache'
  1443. -n, --no-create do not create output files
  1444. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1445. Installation directories:
  1446. --prefix=PREFIX install architecture-independent files in PREFIX
  1447. [$ac_default_prefix]
  1448. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1449. [PREFIX]
  1450. By default, \`make install' will install all the files in
  1451. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1452. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1453. for instance \`--prefix=\$HOME'.
  1454. For better control, use the options below.
  1455. Fine tuning of the installation directories:
  1456. --bindir=DIR user executables [EPREFIX/bin]
  1457. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1458. --libexecdir=DIR program executables [EPREFIX/libexec]
  1459. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1460. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1461. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1462. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1463. --libdir=DIR object code libraries [EPREFIX/lib]
  1464. --includedir=DIR C header files [PREFIX/include]
  1465. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1466. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1467. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1468. --infodir=DIR info documentation [DATAROOTDIR/info]
  1469. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1470. --mandir=DIR man documentation [DATAROOTDIR/man]
  1471. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1472. --htmldir=DIR html documentation [DOCDIR]
  1473. --dvidir=DIR dvi documentation [DOCDIR]
  1474. --pdfdir=DIR pdf documentation [DOCDIR]
  1475. --psdir=DIR ps documentation [DOCDIR]
  1476. _ACEOF
  1477. cat <<\_ACEOF
  1478. X features:
  1479. --x-includes=DIR X include files are in DIR
  1480. --x-libraries=DIR X library files are in DIR
  1481. System types:
  1482. --build=BUILD configure for building on BUILD [guessed]
  1483. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1484. _ACEOF
  1485. fi
  1486. if test -n "$ac_init_help"; then
  1487. cat <<\_ACEOF
  1488. Optional Features:
  1489. --disable-option-checking ignore unrecognized --enable/--with options
  1490. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1491. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1492. --enable-shared[=PKGS] build shared libraries [default=yes]
  1493. --enable-static[=PKGS] build static libraries [default=yes]
  1494. --enable-fast-install[=PKGS]
  1495. optimize for fast installation [default=yes]
  1496. --disable-libtool-lock avoid locking (might break parallel builds)
  1497. --disable-largefile omit support for large files
  1498. --enable-assertions Enable internal sanity checks
  1499. (auto/disabled/release/enabled/paranoid)
  1500. [default=auto]
  1501. --enable-dependency-tracking
  1502. Use gcc -MMD -MT dependency tracking [default=yes]
  1503. --enable-libc Use the system C library [default=yes]
  1504. --enable-system-iconv Use iconv() from system-installed libraries
  1505. [default=no for windows, yes for others]
  1506. --enable-libiconv Prefer iconv() from libiconv, if available, over
  1507. libc version [default=no]
  1508. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1509. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1510. --enable-audio Enable the audio subsystem [default=yes]
  1511. --enable-video Enable the video subsystem [default=yes]
  1512. --enable-render Enable the render subsystem [default=yes]
  1513. --enable-events Enable the events subsystem [default=yes]
  1514. --enable-joystick Enable the joystick subsystem [default=yes]
  1515. --enable-haptic Enable the haptic (force feedback) subsystem
  1516. [default=yes]
  1517. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1518. --enable-sensor Enable the sensor subsystem [default=yes]
  1519. --enable-power Enable the power subsystem [default=yes]
  1520. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1521. --enable-timers Enable the timer subsystem [default=yes]
  1522. --enable-file Enable the file subsystem [default=yes]
  1523. --enable-misc Enable the misc subsystem [default=yes]
  1524. --enable-locale Enable the locale subsystem [default=yes]
  1525. --enable-loadso Enable the shared object loading subsystem
  1526. [default=yes]
  1527. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1528. --enable-assembly Enable assembly routines [default=yes]
  1529. --enable-ssemath Allow GCC to use SSE floating point math
  1530. [default=maybe]
  1531. --enable-mmx use MMX assembly routines [default=yes]
  1532. --enable-3dnow use 3DNow! assembly routines [default=no]
  1533. --enable-sse use SSE assembly routines [default=yes]
  1534. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1535. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1536. --enable-altivec use Altivec assembly routines [default=yes]
  1537. --enable-lsx use LSX assembly routines [default=yes]
  1538. --enable-oss support the OSS audio API [default=maybe]
  1539. --enable-alsa support the ALSA audio API [default=yes]
  1540. --disable-alsatest Do not try to compile and run a test Alsa program
  1541. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1542. --enable-jack use JACK audio [default=yes]
  1543. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1544. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1545. --disable-esdtest Do not try to compile and run a test ESD program
  1546. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1547. --enable-pipewire use Pipewire audio [default=yes]
  1548. --enable-pipewire-shared
  1549. dynamically load Pipewire support [default=yes]
  1550. --enable-pulseaudio use PulseAudio [default=yes]
  1551. --enable-pulseaudio-shared
  1552. dynamically load PulseAudio support [default=yes]
  1553. --enable-arts support the Analog Real Time Synthesizer
  1554. [default=yes]
  1555. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1556. --enable-nas support the NAS audio API [default=yes]
  1557. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1558. --enable-sndio support the sndio audio API [default=yes]
  1559. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1560. --enable-fusionsound use FusionSound audio driver [default=no]
  1561. --enable-fusionsound-shared
  1562. dynamically load fusionsound audio support
  1563. [default=yes]
  1564. --enable-diskaudio support the disk writer audio driver [default=yes]
  1565. --enable-dummyaudio support the dummy audio driver [default=yes]
  1566. --enable-libsamplerate use libsamplerate for audio rate conversion
  1567. [default=yes]
  1568. --enable-libsamplerate-shared
  1569. dynamically load libsamplerate [default=yes]
  1570. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1571. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1572. --enable-werror treat warnings as errors [default=no]
  1573. --enable-video-wayland use Wayland video driver [default=yes]
  1574. --enable-video-wayland-qt-touch
  1575. QtWayland server support for Wayland video driver
  1576. [default=yes]
  1577. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1578. --enable-libdecor use libdecor for Wayland client-side decorations
  1579. [default=yes]
  1580. --enable-libdecor-shared
  1581. dynamically load libdecor [default=yes]
  1582. --enable-video-rpi use Raspberry Pi 0-3 video driver [default=yes]
  1583. --enable-video-x11 use X11 video driver [default=maybe]
  1584. --enable-x11-shared dynamically load X11 support [default=maybe]
  1585. --enable-video-x11-xcursor
  1586. enable X11 Xcursor support [default=yes]
  1587. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1588. --enable-video-x11-xinput
  1589. enable X11 XInput extension for manymouse, tablets,
  1590. etc [default=yes]
  1591. --enable-video-x11-xfixes
  1592. enable X11 Xfixes support [default=yes]
  1593. --enable-video-x11-xrandr
  1594. enable X11 Xrandr extension for fullscreen
  1595. [default=yes]
  1596. --enable-video-x11-scrnsaver
  1597. enable X11 screensaver extension [default=yes]
  1598. --enable-video-x11-xshape
  1599. enable X11 XShape support [default=yes]
  1600. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1601. --enable-video-cocoa use Cocoa video driver [default=yes]
  1602. --enable-video-metal include Metal support [default=yes]
  1603. --enable-render-metal enable the Metal render driver [default=yes]
  1604. --enable-video-directfb use DirectFB video driver [default=no]
  1605. --enable-directfb-shared
  1606. dynamically load directfb support [default=yes]
  1607. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1608. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1609. --enable-video-dummy use dummy video driver [default=yes]
  1610. --enable-video-offscreen
  1611. use offscreen video driver [default=yes]
  1612. --enable-video-opengl include OpenGL support [default=yes]
  1613. --enable-video-opengles include OpenGL ES support [default=yes]
  1614. --enable-video-opengles1
  1615. include OpenGL ES 1.1 support [default=yes]
  1616. --enable-video-opengles2
  1617. include OpenGL ES 2.0 support [default=yes]
  1618. --enable-video-vulkan include Vulkan support [default=yes]
  1619. --enable-libudev enable libudev support [default=yes]
  1620. --enable-dbus enable D-Bus support [default=yes]
  1621. --enable-ime enable IME support [default=yes]
  1622. --enable-ibus enable IBus support [default=yes]
  1623. --enable-fcitx enable fcitx support [default=yes]
  1624. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1625. --enable-pthreads use POSIX threads for multi-threading
  1626. [default=maybe]
  1627. --enable-pthread-sem use pthread semaphores [default=maybe]
  1628. --enable-directx use DirectX for Windows audio/video [default=yes]
  1629. --enable-xinput use Xinput for Windows [default=yes]
  1630. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1631. --enable-hidapi-joystick
  1632. use HIDAPI for low level joystick drivers
  1633. [default=yes]
  1634. --enable-hidapi-libusb use libusb for low level joystick drivers
  1635. [default=maybe]
  1636. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1637. UNIX [default=yes]
  1638. --enable-rpath use an rpath when linking SDL [default=yes]
  1639. --enable-backgrounding-signal
  1640. number to use for magic backgrounding signal or 'no'
  1641. [default=no]
  1642. --enable-foregrounding-signal
  1643. number to use for magic foregrounding signal or 'no'
  1644. [default=no]
  1645. --enable-joystick-virtual
  1646. enable virtual joystick APIs [default=yes]
  1647. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1648. --enable-sdl2-config Install sdl2-config [default=yes]
  1649. --enable-vendor-info=STRING
  1650. Add vendor info to SDL_REVISION
  1651. Optional Packages:
  1652. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1653. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1654. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1655. both]
  1656. --with-aix-soname=aix|svr4|both
  1657. shared library versioning (aka "SONAME") variant to
  1658. provide on AIX, [default=aix].
  1659. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1660. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1661. compiler's sysroot if not specified).
  1662. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1663. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1664. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1665. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1666. --with-x use the X Window System
  1667. Some influential environment variables:
  1668. CC C compiler command
  1669. CFLAGS C compiler flags
  1670. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1671. nonstandard directory <lib dir>
  1672. LIBS libraries to pass to the linker, e.g. -l<library>
  1673. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1674. you have headers in a nonstandard directory <include dir>
  1675. LT_SYS_LIBRARY_PATH
  1676. User-defined run-time library search path.
  1677. CXX C++ compiler command
  1678. CXXFLAGS C++ compiler flags
  1679. CXXCPP C++ preprocessor
  1680. PKG_CONFIG path to pkg-config utility
  1681. PKG_CONFIG_PATH
  1682. directories to add to pkg-config's search path
  1683. PKG_CONFIG_LIBDIR
  1684. path overriding pkg-config's built-in search path
  1685. CPP C preprocessor
  1686. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1687. JACK_LIBS linker flags for JACK, overriding pkg-config
  1688. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1689. ESD_LIBS linker flags for ESD, overriding pkg-config
  1690. PIPEWIRE_CFLAGS
  1691. C compiler flags for PIPEWIRE, overriding pkg-config
  1692. PIPEWIRE_LIBS
  1693. linker flags for PIPEWIRE, overriding pkg-config
  1694. PULSEAUDIO_CFLAGS
  1695. C compiler flags for PULSEAUDIO, overriding pkg-config
  1696. PULSEAUDIO_LIBS
  1697. linker flags for PULSEAUDIO, overriding pkg-config
  1698. SNDIO_CFLAGS
  1699. C compiler flags for SNDIO, overriding pkg-config
  1700. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1701. FUSIONSOUND_CFLAGS
  1702. C compiler flags for FUSIONSOUND, overriding pkg-config
  1703. FUSIONSOUND_LIBS
  1704. linker flags for FUSIONSOUND, overriding pkg-config
  1705. DECOR_CFLAGS
  1706. C compiler flags for DECOR, overriding pkg-config
  1707. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1708. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1709. RPI_LIBS linker flags for RPI, overriding pkg-config
  1710. RPI_EGL_CFLAGS
  1711. C compiler flags for RPI_EGL, overriding pkg-config
  1712. RPI_EGL_LIBS
  1713. linker flags for RPI_EGL, overriding pkg-config
  1714. XMKMF Path to xmkmf, Makefile generator for X Window System
  1715. DIRECTFB_CFLAGS
  1716. C compiler flags for DIRECTFB, overriding pkg-config
  1717. DIRECTFB_LIBS
  1718. linker flags for DIRECTFB, overriding pkg-config
  1719. LIBDRM_CFLAGS
  1720. C compiler flags for LIBDRM, overriding pkg-config
  1721. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1722. LIBGBM_CFLAGS
  1723. C compiler flags for LIBGBM, overriding pkg-config
  1724. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1725. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1726. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1727. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1728. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1729. LIBUSB_CFLAGS
  1730. C compiler flags for LIBUSB, overriding pkg-config
  1731. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1732. Use these variables to override the choices made by `configure' or to help
  1733. it to find libraries and programs with nonstandard names/locations.
  1734. Report bugs to the package provider.
  1735. _ACEOF
  1736. ac_status=$?
  1737. fi
  1738. if test "$ac_init_help" = "recursive"; then
  1739. # If there are subdirs, report their specific --help.
  1740. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1741. test -d "$ac_dir" ||
  1742. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1743. continue
  1744. ac_builddir=.
  1745. case "$ac_dir" in
  1746. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1747. *)
  1748. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1749. # A ".." for each directory in $ac_dir_suffix.
  1750. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1751. case $ac_top_builddir_sub in
  1752. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1753. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1754. esac ;;
  1755. esac
  1756. ac_abs_top_builddir=$ac_pwd
  1757. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1758. # for backward compatibility:
  1759. ac_top_builddir=$ac_top_build_prefix
  1760. case $srcdir in
  1761. .) # We are building in place.
  1762. ac_srcdir=.
  1763. ac_top_srcdir=$ac_top_builddir_sub
  1764. ac_abs_top_srcdir=$ac_pwd ;;
  1765. [\\/]* | ?:[\\/]* ) # Absolute name.
  1766. ac_srcdir=$srcdir$ac_dir_suffix;
  1767. ac_top_srcdir=$srcdir
  1768. ac_abs_top_srcdir=$srcdir ;;
  1769. *) # Relative name.
  1770. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1771. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1772. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1773. esac
  1774. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1775. cd "$ac_dir" || { ac_status=$?; continue; }
  1776. # Check for configure.gnu first; this name is used for a wrapper for
  1777. # Metaconfig's "Configure" on case-insensitive file systems.
  1778. if test -f "$ac_srcdir/configure.gnu"; then
  1779. echo &&
  1780. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1781. elif test -f "$ac_srcdir/configure"; then
  1782. echo &&
  1783. $SHELL "$ac_srcdir/configure" --help=recursive
  1784. else
  1785. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1786. fi || ac_status=$?
  1787. cd "$ac_pwd" || { ac_status=$?; break; }
  1788. done
  1789. fi
  1790. test -n "$ac_init_help" && exit $ac_status
  1791. if $ac_init_version; then
  1792. cat <<\_ACEOF
  1793. configure
  1794. generated by GNU Autoconf 2.71
  1795. Copyright (C) 2021 Free Software Foundation, Inc.
  1796. This configure script is free software; the Free Software Foundation
  1797. gives unlimited permission to copy, distribute and modify it.
  1798. _ACEOF
  1799. exit
  1800. fi
  1801. ## ------------------------ ##
  1802. ## Autoconf initialization. ##
  1803. ## ------------------------ ##
  1804. # ac_fn_c_try_compile LINENO
  1805. # --------------------------
  1806. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1807. ac_fn_c_try_compile ()
  1808. {
  1809. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1810. rm -f conftest.$ac_objext conftest.beam
  1811. if { { ac_try="$ac_compile"
  1812. case "(($ac_try" in
  1813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1814. *) ac_try_echo=$ac_try;;
  1815. esac
  1816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1817. printf "%s\n" "$ac_try_echo"; } >&5
  1818. (eval "$ac_compile") 2>conftest.err
  1819. ac_status=$?
  1820. if test -s conftest.err; then
  1821. grep -v '^ *+' conftest.err >conftest.er1
  1822. cat conftest.er1 >&5
  1823. mv -f conftest.er1 conftest.err
  1824. fi
  1825. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1826. test $ac_status = 0; } && {
  1827. test -z "$ac_c_werror_flag" ||
  1828. test ! -s conftest.err
  1829. } && test -s conftest.$ac_objext
  1830. then :
  1831. ac_retval=0
  1832. else $as_nop
  1833. printf "%s\n" "$as_me: failed program was:" >&5
  1834. sed 's/^/| /' conftest.$ac_ext >&5
  1835. ac_retval=1
  1836. fi
  1837. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1838. as_fn_set_status $ac_retval
  1839. } # ac_fn_c_try_compile
  1840. # ac_fn_c_try_link LINENO
  1841. # -----------------------
  1842. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1843. ac_fn_c_try_link ()
  1844. {
  1845. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1846. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1847. if { { ac_try="$ac_link"
  1848. case "(($ac_try" in
  1849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1850. *) ac_try_echo=$ac_try;;
  1851. esac
  1852. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1853. printf "%s\n" "$ac_try_echo"; } >&5
  1854. (eval "$ac_link") 2>conftest.err
  1855. ac_status=$?
  1856. if test -s conftest.err; then
  1857. grep -v '^ *+' conftest.err >conftest.er1
  1858. cat conftest.er1 >&5
  1859. mv -f conftest.er1 conftest.err
  1860. fi
  1861. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1862. test $ac_status = 0; } && {
  1863. test -z "$ac_c_werror_flag" ||
  1864. test ! -s conftest.err
  1865. } && test -s conftest$ac_exeext && {
  1866. test "$cross_compiling" = yes ||
  1867. test -x conftest$ac_exeext
  1868. }
  1869. then :
  1870. ac_retval=0
  1871. else $as_nop
  1872. printf "%s\n" "$as_me: failed program was:" >&5
  1873. sed 's/^/| /' conftest.$ac_ext >&5
  1874. ac_retval=1
  1875. fi
  1876. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1877. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1878. # interfere with the next link command; also delete a directory that is
  1879. # left behind by Apple's compiler. We do this before executing the actions.
  1880. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1881. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1882. as_fn_set_status $ac_retval
  1883. } # ac_fn_c_try_link
  1884. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1885. # -------------------------------------------------------
  1886. # Tests whether HEADER exists and can be compiled using the include files in
  1887. # INCLUDES, setting the cache variable VAR accordingly.
  1888. ac_fn_c_check_header_compile ()
  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. $4
  1900. #include <$2>
  1901. _ACEOF
  1902. if ac_fn_c_try_compile "$LINENO"
  1903. then :
  1904. eval "$3=yes"
  1905. else $as_nop
  1906. eval "$3=no"
  1907. fi
  1908. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1909. fi
  1910. eval ac_res=\$$3
  1911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1912. printf "%s\n" "$ac_res" >&6; }
  1913. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1914. } # ac_fn_c_check_header_compile
  1915. # ac_fn_c_check_func LINENO FUNC VAR
  1916. # ----------------------------------
  1917. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1918. ac_fn_c_check_func ()
  1919. {
  1920. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1922. printf %s "checking for $2... " >&6; }
  1923. if eval test \${$3+y}
  1924. then :
  1925. printf %s "(cached) " >&6
  1926. else $as_nop
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1930. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1931. #define $2 innocuous_$2
  1932. /* System header to define __stub macros and hopefully few prototypes,
  1933. which can conflict with char $2 (); below. */
  1934. #include <limits.h>
  1935. #undef $2
  1936. /* Override any GCC internal prototype to avoid an error.
  1937. Use char because int might match the return type of a GCC
  1938. builtin and then its argument prototype would still apply. */
  1939. #ifdef __cplusplus
  1940. extern "C"
  1941. #endif
  1942. char $2 ();
  1943. /* The GNU C library defines this for functions which it implements
  1944. to always fail with ENOSYS. Some functions are actually named
  1945. something starting with __ and the normal name is an alias. */
  1946. #if defined __stub_$2 || defined __stub___$2
  1947. choke me
  1948. #endif
  1949. int
  1950. main (void)
  1951. {
  1952. return $2 ();
  1953. ;
  1954. return 0;
  1955. }
  1956. _ACEOF
  1957. if ac_fn_c_try_link "$LINENO"
  1958. then :
  1959. eval "$3=yes"
  1960. else $as_nop
  1961. eval "$3=no"
  1962. fi
  1963. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1964. conftest$ac_exeext conftest.$ac_ext
  1965. fi
  1966. eval ac_res=\$$3
  1967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1968. printf "%s\n" "$ac_res" >&6; }
  1969. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1970. } # ac_fn_c_check_func
  1971. # ac_fn_cxx_try_compile LINENO
  1972. # ----------------------------
  1973. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1974. ac_fn_cxx_try_compile ()
  1975. {
  1976. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1977. rm -f conftest.$ac_objext conftest.beam
  1978. if { { ac_try="$ac_compile"
  1979. case "(($ac_try" in
  1980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1981. *) ac_try_echo=$ac_try;;
  1982. esac
  1983. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1984. printf "%s\n" "$ac_try_echo"; } >&5
  1985. (eval "$ac_compile") 2>conftest.err
  1986. ac_status=$?
  1987. if test -s conftest.err; then
  1988. grep -v '^ *+' conftest.err >conftest.er1
  1989. cat conftest.er1 >&5
  1990. mv -f conftest.er1 conftest.err
  1991. fi
  1992. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1993. test $ac_status = 0; } && {
  1994. test -z "$ac_cxx_werror_flag" ||
  1995. test ! -s conftest.err
  1996. } && test -s conftest.$ac_objext
  1997. then :
  1998. ac_retval=0
  1999. else $as_nop
  2000. printf "%s\n" "$as_me: failed program was:" >&5
  2001. sed 's/^/| /' conftest.$ac_ext >&5
  2002. ac_retval=1
  2003. fi
  2004. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2005. as_fn_set_status $ac_retval
  2006. } # ac_fn_cxx_try_compile
  2007. # ac_fn_cxx_try_cpp LINENO
  2008. # ------------------------
  2009. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2010. ac_fn_cxx_try_cpp ()
  2011. {
  2012. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2013. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2014. case "(($ac_try" in
  2015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2016. *) ac_try_echo=$ac_try;;
  2017. esac
  2018. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2019. printf "%s\n" "$ac_try_echo"; } >&5
  2020. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2021. ac_status=$?
  2022. if test -s conftest.err; then
  2023. grep -v '^ *+' conftest.err >conftest.er1
  2024. cat conftest.er1 >&5
  2025. mv -f conftest.er1 conftest.err
  2026. fi
  2027. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2028. test $ac_status = 0; } > conftest.i && {
  2029. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2030. test ! -s conftest.err
  2031. }
  2032. then :
  2033. ac_retval=0
  2034. else $as_nop
  2035. printf "%s\n" "$as_me: failed program was:" >&5
  2036. sed 's/^/| /' conftest.$ac_ext >&5
  2037. ac_retval=1
  2038. fi
  2039. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2040. as_fn_set_status $ac_retval
  2041. } # ac_fn_cxx_try_cpp
  2042. # ac_fn_cxx_try_link LINENO
  2043. # -------------------------
  2044. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2045. ac_fn_cxx_try_link ()
  2046. {
  2047. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2048. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2049. if { { ac_try="$ac_link"
  2050. case "(($ac_try" in
  2051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2052. *) ac_try_echo=$ac_try;;
  2053. esac
  2054. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2055. printf "%s\n" "$ac_try_echo"; } >&5
  2056. (eval "$ac_link") 2>conftest.err
  2057. ac_status=$?
  2058. if test -s conftest.err; then
  2059. grep -v '^ *+' conftest.err >conftest.er1
  2060. cat conftest.er1 >&5
  2061. mv -f conftest.er1 conftest.err
  2062. fi
  2063. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2064. test $ac_status = 0; } && {
  2065. test -z "$ac_cxx_werror_flag" ||
  2066. test ! -s conftest.err
  2067. } && test -s conftest$ac_exeext && {
  2068. test "$cross_compiling" = yes ||
  2069. test -x conftest$ac_exeext
  2070. }
  2071. then :
  2072. ac_retval=0
  2073. else $as_nop
  2074. printf "%s\n" "$as_me: failed program was:" >&5
  2075. sed 's/^/| /' conftest.$ac_ext >&5
  2076. ac_retval=1
  2077. fi
  2078. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2079. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2080. # interfere with the next link command; also delete a directory that is
  2081. # left behind by Apple's compiler. We do this before executing the actions.
  2082. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2083. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2084. as_fn_set_status $ac_retval
  2085. } # ac_fn_cxx_try_link
  2086. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2087. # -------------------------------------------
  2088. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2089. # variable VAR accordingly.
  2090. ac_fn_c_check_type ()
  2091. {
  2092. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2094. printf %s "checking for $2... " >&6; }
  2095. if eval test \${$3+y}
  2096. then :
  2097. printf %s "(cached) " >&6
  2098. else $as_nop
  2099. eval "$3=no"
  2100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2101. /* end confdefs.h. */
  2102. $4
  2103. int
  2104. main (void)
  2105. {
  2106. if (sizeof ($2))
  2107. return 0;
  2108. ;
  2109. return 0;
  2110. }
  2111. _ACEOF
  2112. if ac_fn_c_try_compile "$LINENO"
  2113. then :
  2114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2115. /* end confdefs.h. */
  2116. $4
  2117. int
  2118. main (void)
  2119. {
  2120. if (sizeof (($2)))
  2121. return 0;
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_c_try_compile "$LINENO"
  2127. then :
  2128. else $as_nop
  2129. eval "$3=yes"
  2130. fi
  2131. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2132. fi
  2133. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2134. fi
  2135. eval ac_res=\$$3
  2136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2137. printf "%s\n" "$ac_res" >&6; }
  2138. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2139. } # ac_fn_c_check_type
  2140. # ac_fn_c_try_cpp LINENO
  2141. # ----------------------
  2142. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2143. ac_fn_c_try_cpp ()
  2144. {
  2145. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2146. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2147. case "(($ac_try" in
  2148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2149. *) ac_try_echo=$ac_try;;
  2150. esac
  2151. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2152. printf "%s\n" "$ac_try_echo"; } >&5
  2153. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2154. ac_status=$?
  2155. if test -s conftest.err; then
  2156. grep -v '^ *+' conftest.err >conftest.er1
  2157. cat conftest.er1 >&5
  2158. mv -f conftest.er1 conftest.err
  2159. fi
  2160. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2161. test $ac_status = 0; } > conftest.i && {
  2162. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2163. test ! -s conftest.err
  2164. }
  2165. then :
  2166. ac_retval=0
  2167. else $as_nop
  2168. printf "%s\n" "$as_me: failed program was:" >&5
  2169. sed 's/^/| /' conftest.$ac_ext >&5
  2170. ac_retval=1
  2171. fi
  2172. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2173. as_fn_set_status $ac_retval
  2174. } # ac_fn_c_try_cpp
  2175. # ac_fn_c_try_run LINENO
  2176. # ----------------------
  2177. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2178. # executables *can* be run.
  2179. ac_fn_c_try_run ()
  2180. {
  2181. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2182. if { { ac_try="$ac_link"
  2183. case "(($ac_try" in
  2184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2185. *) ac_try_echo=$ac_try;;
  2186. esac
  2187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2188. printf "%s\n" "$ac_try_echo"; } >&5
  2189. (eval "$ac_link") 2>&5
  2190. ac_status=$?
  2191. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2192. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2193. { { case "(($ac_try" in
  2194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2195. *) ac_try_echo=$ac_try;;
  2196. esac
  2197. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2198. printf "%s\n" "$ac_try_echo"; } >&5
  2199. (eval "$ac_try") 2>&5
  2200. ac_status=$?
  2201. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2202. test $ac_status = 0; }; }
  2203. then :
  2204. ac_retval=0
  2205. else $as_nop
  2206. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2207. printf "%s\n" "$as_me: failed program was:" >&5
  2208. sed 's/^/| /' conftest.$ac_ext >&5
  2209. ac_retval=$ac_status
  2210. fi
  2211. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2212. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2213. as_fn_set_status $ac_retval
  2214. } # ac_fn_c_try_run
  2215. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2216. # ----------------------------------------------------
  2217. # Tries to find if the field MEMBER exists in type AGGR, after including
  2218. # INCLUDES, setting cache variable VAR accordingly.
  2219. ac_fn_c_check_member ()
  2220. {
  2221. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2223. printf %s "checking for $2.$3... " >&6; }
  2224. if eval test \${$4+y}
  2225. then :
  2226. printf %s "(cached) " >&6
  2227. else $as_nop
  2228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2229. /* end confdefs.h. */
  2230. $5
  2231. int
  2232. main (void)
  2233. {
  2234. static $2 ac_aggr;
  2235. if (ac_aggr.$3)
  2236. return 0;
  2237. ;
  2238. return 0;
  2239. }
  2240. _ACEOF
  2241. if ac_fn_c_try_compile "$LINENO"
  2242. then :
  2243. eval "$4=yes"
  2244. else $as_nop
  2245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2246. /* end confdefs.h. */
  2247. $5
  2248. int
  2249. main (void)
  2250. {
  2251. static $2 ac_aggr;
  2252. if (sizeof ac_aggr.$3)
  2253. return 0;
  2254. ;
  2255. return 0;
  2256. }
  2257. _ACEOF
  2258. if ac_fn_c_try_compile "$LINENO"
  2259. then :
  2260. eval "$4=yes"
  2261. else $as_nop
  2262. eval "$4=no"
  2263. fi
  2264. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2265. fi
  2266. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2267. fi
  2268. eval ac_res=\$$4
  2269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2270. printf "%s\n" "$ac_res" >&6; }
  2271. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2272. } # ac_fn_c_check_member
  2273. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2274. # ------------------------------------------------------------------
  2275. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2276. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2277. ac_fn_check_decl ()
  2278. {
  2279. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2280. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2282. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2283. if eval test \${$3+y}
  2284. then :
  2285. printf %s "(cached) " >&6
  2286. else $as_nop
  2287. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2288. eval ac_save_FLAGS=\$$6
  2289. as_fn_append $6 " $5"
  2290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2291. /* end confdefs.h. */
  2292. $4
  2293. int
  2294. main (void)
  2295. {
  2296. #ifndef $as_decl_name
  2297. #ifdef __cplusplus
  2298. (void) $as_decl_use;
  2299. #else
  2300. (void) $as_decl_name;
  2301. #endif
  2302. #endif
  2303. ;
  2304. return 0;
  2305. }
  2306. _ACEOF
  2307. if ac_fn_c_try_compile "$LINENO"
  2308. then :
  2309. eval "$3=yes"
  2310. else $as_nop
  2311. eval "$3=no"
  2312. fi
  2313. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2314. eval $6=\$ac_save_FLAGS
  2315. fi
  2316. eval ac_res=\$$3
  2317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2318. printf "%s\n" "$ac_res" >&6; }
  2319. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2320. } # ac_fn_check_decl
  2321. ac_configure_args_raw=
  2322. for ac_arg
  2323. do
  2324. case $ac_arg in
  2325. *\'*)
  2326. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2327. esac
  2328. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2329. done
  2330. case $ac_configure_args_raw in
  2331. *$as_nl*)
  2332. ac_safe_unquote= ;;
  2333. *)
  2334. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2335. ac_unsafe_a="$ac_unsafe_z#~"
  2336. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2337. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2338. esac
  2339. cat >config.log <<_ACEOF
  2340. This file contains any messages produced by compilers while
  2341. running configure, to aid debugging if configure makes a mistake.
  2342. It was created by $as_me, which was
  2343. generated by GNU Autoconf 2.71. Invocation command line was
  2344. $ $0$ac_configure_args_raw
  2345. _ACEOF
  2346. exec 5>>config.log
  2347. {
  2348. cat <<_ASUNAME
  2349. ## --------- ##
  2350. ## Platform. ##
  2351. ## --------- ##
  2352. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2353. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2354. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2355. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2356. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2357. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2358. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2359. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2360. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2361. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2362. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2363. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2364. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2365. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2366. _ASUNAME
  2367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2368. for as_dir in $PATH
  2369. do
  2370. IFS=$as_save_IFS
  2371. case $as_dir in #(((
  2372. '') as_dir=./ ;;
  2373. */) ;;
  2374. *) as_dir=$as_dir/ ;;
  2375. esac
  2376. printf "%s\n" "PATH: $as_dir"
  2377. done
  2378. IFS=$as_save_IFS
  2379. } >&5
  2380. cat >&5 <<_ACEOF
  2381. ## ----------- ##
  2382. ## Core tests. ##
  2383. ## ----------- ##
  2384. _ACEOF
  2385. # Keep a trace of the command line.
  2386. # Strip out --no-create and --no-recursion so they do not pile up.
  2387. # Strip out --silent because we don't want to record it for future runs.
  2388. # Also quote any args containing shell meta-characters.
  2389. # Make two passes to allow for proper duplicate-argument suppression.
  2390. ac_configure_args=
  2391. ac_configure_args0=
  2392. ac_configure_args1=
  2393. ac_must_keep_next=false
  2394. for ac_pass in 1 2
  2395. do
  2396. for ac_arg
  2397. do
  2398. case $ac_arg in
  2399. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2400. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2401. | -silent | --silent | --silen | --sile | --sil)
  2402. continue ;;
  2403. *\'*)
  2404. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2405. esac
  2406. case $ac_pass in
  2407. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2408. 2)
  2409. as_fn_append ac_configure_args1 " '$ac_arg'"
  2410. if test $ac_must_keep_next = true; then
  2411. ac_must_keep_next=false # Got value, back to normal.
  2412. else
  2413. case $ac_arg in
  2414. *=* | --config-cache | -C | -disable-* | --disable-* \
  2415. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2416. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2417. | -with-* | --with-* | -without-* | --without-* | --x)
  2418. case "$ac_configure_args0 " in
  2419. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2420. esac
  2421. ;;
  2422. -* ) ac_must_keep_next=true ;;
  2423. esac
  2424. fi
  2425. as_fn_append ac_configure_args " '$ac_arg'"
  2426. ;;
  2427. esac
  2428. done
  2429. done
  2430. { ac_configure_args0=; unset ac_configure_args0;}
  2431. { ac_configure_args1=; unset ac_configure_args1;}
  2432. # When interrupted or exit'd, cleanup temporary files, and complete
  2433. # config.log. We remove comments because anyway the quotes in there
  2434. # would cause problems or look ugly.
  2435. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2436. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2437. trap 'exit_status=$?
  2438. # Sanitize IFS.
  2439. IFS=" "" $as_nl"
  2440. # Save into config.log some information that might help in debugging.
  2441. {
  2442. echo
  2443. printf "%s\n" "## ---------------- ##
  2444. ## Cache variables. ##
  2445. ## ---------------- ##"
  2446. echo
  2447. # The following way of writing the cache mishandles newlines in values,
  2448. (
  2449. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2450. eval ac_val=\$$ac_var
  2451. case $ac_val in #(
  2452. *${as_nl}*)
  2453. case $ac_var in #(
  2454. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2455. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2456. esac
  2457. case $ac_var in #(
  2458. _ | IFS | as_nl) ;; #(
  2459. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2460. *) { eval $ac_var=; unset $ac_var;} ;;
  2461. esac ;;
  2462. esac
  2463. done
  2464. (set) 2>&1 |
  2465. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2466. *${as_nl}ac_space=\ *)
  2467. sed -n \
  2468. "s/'\''/'\''\\\\'\'''\''/g;
  2469. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2470. ;; #(
  2471. *)
  2472. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2473. ;;
  2474. esac |
  2475. sort
  2476. )
  2477. echo
  2478. printf "%s\n" "## ----------------- ##
  2479. ## Output variables. ##
  2480. ## ----------------- ##"
  2481. echo
  2482. for ac_var in $ac_subst_vars
  2483. do
  2484. eval ac_val=\$$ac_var
  2485. case $ac_val in
  2486. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2487. esac
  2488. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2489. done | sort
  2490. echo
  2491. if test -n "$ac_subst_files"; then
  2492. printf "%s\n" "## ------------------- ##
  2493. ## File substitutions. ##
  2494. ## ------------------- ##"
  2495. echo
  2496. for ac_var in $ac_subst_files
  2497. do
  2498. eval ac_val=\$$ac_var
  2499. case $ac_val in
  2500. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2501. esac
  2502. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2503. done | sort
  2504. echo
  2505. fi
  2506. if test -s confdefs.h; then
  2507. printf "%s\n" "## ----------- ##
  2508. ## confdefs.h. ##
  2509. ## ----------- ##"
  2510. echo
  2511. cat confdefs.h
  2512. echo
  2513. fi
  2514. test "$ac_signal" != 0 &&
  2515. printf "%s\n" "$as_me: caught signal $ac_signal"
  2516. printf "%s\n" "$as_me: exit $exit_status"
  2517. } >&5
  2518. rm -f core *.core core.conftest.* &&
  2519. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2520. exit $exit_status
  2521. ' 0
  2522. for ac_signal in 1 2 13 15; do
  2523. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2524. done
  2525. ac_signal=0
  2526. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2527. rm -f -r conftest* confdefs.h
  2528. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2529. # Predefined preprocessor variables.
  2530. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2531. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2532. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2533. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2534. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2535. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2536. # Let the site file select an alternate cache file if it wants to.
  2537. # Prefer an explicitly selected file to automatically selected ones.
  2538. if test -n "$CONFIG_SITE"; then
  2539. ac_site_files="$CONFIG_SITE"
  2540. elif test "x$prefix" != xNONE; then
  2541. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2542. else
  2543. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2544. fi
  2545. for ac_site_file in $ac_site_files
  2546. do
  2547. case $ac_site_file in #(
  2548. */*) :
  2549. ;; #(
  2550. *) :
  2551. ac_site_file=./$ac_site_file ;;
  2552. esac
  2553. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2555. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2556. sed 's/^/| /' "$ac_site_file" >&5
  2557. . "$ac_site_file" \
  2558. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2559. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2560. as_fn_error $? "failed to load site script $ac_site_file
  2561. See \`config.log' for more details" "$LINENO" 5; }
  2562. fi
  2563. done
  2564. if test -r "$cache_file"; then
  2565. # Some versions of bash will fail to source /dev/null (special files
  2566. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2567. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2569. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2570. case $cache_file in
  2571. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2572. *) . "./$cache_file";;
  2573. esac
  2574. fi
  2575. else
  2576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2577. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2578. >$cache_file
  2579. fi
  2580. # Test code for whether the C compiler supports C89 (global declarations)
  2581. ac_c_conftest_c89_globals='
  2582. /* Does the compiler advertise C89 conformance?
  2583. Do not test the value of __STDC__, because some compilers set it to 0
  2584. while being otherwise adequately conformant. */
  2585. #if !defined __STDC__
  2586. # error "Compiler does not advertise C89 conformance"
  2587. #endif
  2588. #include <stddef.h>
  2589. #include <stdarg.h>
  2590. struct stat;
  2591. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2592. struct buf { int x; };
  2593. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2594. static char *e (p, i)
  2595. char **p;
  2596. int i;
  2597. {
  2598. return p[i];
  2599. }
  2600. static char *f (char * (*g) (char **, int), char **p, ...)
  2601. {
  2602. char *s;
  2603. va_list v;
  2604. va_start (v,p);
  2605. s = g (p, va_arg (v,int));
  2606. va_end (v);
  2607. return s;
  2608. }
  2609. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2610. function prototypes and stuff, but not \xHH hex character constants.
  2611. These do not provoke an error unfortunately, instead are silently treated
  2612. as an "x". The following induces an error, until -std is added to get
  2613. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2614. array size at least. It is necessary to write \x00 == 0 to get something
  2615. that is true only with -std. */
  2616. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2617. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2618. inside strings and character constants. */
  2619. #define FOO(x) '\''x'\''
  2620. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2621. int test (int i, double x);
  2622. struct s1 {int (*f) (int a);};
  2623. struct s2 {int (*f) (double a);};
  2624. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2625. int, int);'
  2626. # Test code for whether the C compiler supports C89 (body of main).
  2627. ac_c_conftest_c89_main='
  2628. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2629. '
  2630. # Test code for whether the C compiler supports C99 (global declarations)
  2631. ac_c_conftest_c99_globals='
  2632. // Does the compiler advertise C99 conformance?
  2633. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2634. # error "Compiler does not advertise C99 conformance"
  2635. #endif
  2636. #include <stdbool.h>
  2637. extern int puts (const char *);
  2638. extern int printf (const char *, ...);
  2639. extern int dprintf (int, const char *, ...);
  2640. extern void *malloc (size_t);
  2641. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2642. // dprintf is used instead of fprintf to avoid needing to declare
  2643. // FILE and stderr.
  2644. #define debug(...) dprintf (2, __VA_ARGS__)
  2645. #define showlist(...) puts (#__VA_ARGS__)
  2646. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2647. static void
  2648. test_varargs_macros (void)
  2649. {
  2650. int x = 1234;
  2651. int y = 5678;
  2652. debug ("Flag");
  2653. debug ("X = %d\n", x);
  2654. showlist (The first, second, and third items.);
  2655. report (x>y, "x is %d but y is %d", x, y);
  2656. }
  2657. // Check long long types.
  2658. #define BIG64 18446744073709551615ull
  2659. #define BIG32 4294967295ul
  2660. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2661. #if !BIG_OK
  2662. #error "your preprocessor is broken"
  2663. #endif
  2664. #if BIG_OK
  2665. #else
  2666. #error "your preprocessor is broken"
  2667. #endif
  2668. static long long int bignum = -9223372036854775807LL;
  2669. static unsigned long long int ubignum = BIG64;
  2670. struct incomplete_array
  2671. {
  2672. int datasize;
  2673. double data[];
  2674. };
  2675. struct named_init {
  2676. int number;
  2677. const wchar_t *name;
  2678. double average;
  2679. };
  2680. typedef const char *ccp;
  2681. static inline int
  2682. test_restrict (ccp restrict text)
  2683. {
  2684. // See if C++-style comments work.
  2685. // Iterate through items via the restricted pointer.
  2686. // Also check for declarations in for loops.
  2687. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2688. continue;
  2689. return 0;
  2690. }
  2691. // Check varargs and va_copy.
  2692. static bool
  2693. test_varargs (const char *format, ...)
  2694. {
  2695. va_list args;
  2696. va_start (args, format);
  2697. va_list args_copy;
  2698. va_copy (args_copy, args);
  2699. const char *str = "";
  2700. int number = 0;
  2701. float fnumber = 0;
  2702. while (*format)
  2703. {
  2704. switch (*format++)
  2705. {
  2706. case '\''s'\'': // string
  2707. str = va_arg (args_copy, const char *);
  2708. break;
  2709. case '\''d'\'': // int
  2710. number = va_arg (args_copy, int);
  2711. break;
  2712. case '\''f'\'': // float
  2713. fnumber = va_arg (args_copy, double);
  2714. break;
  2715. default:
  2716. break;
  2717. }
  2718. }
  2719. va_end (args_copy);
  2720. va_end (args);
  2721. return *str && number && fnumber;
  2722. }
  2723. '
  2724. # Test code for whether the C compiler supports C99 (body of main).
  2725. ac_c_conftest_c99_main='
  2726. // Check bool.
  2727. _Bool success = false;
  2728. success |= (argc != 0);
  2729. // Check restrict.
  2730. if (test_restrict ("String literal") == 0)
  2731. success = true;
  2732. char *restrict newvar = "Another string";
  2733. // Check varargs.
  2734. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2735. test_varargs_macros ();
  2736. // Check flexible array members.
  2737. struct incomplete_array *ia =
  2738. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2739. ia->datasize = 10;
  2740. for (int i = 0; i < ia->datasize; ++i)
  2741. ia->data[i] = i * 1.234;
  2742. // Check named initializers.
  2743. struct named_init ni = {
  2744. .number = 34,
  2745. .name = L"Test wide string",
  2746. .average = 543.34343,
  2747. };
  2748. ni.number = 58;
  2749. int dynamic_array[ni.number];
  2750. dynamic_array[0] = argv[0][0];
  2751. dynamic_array[ni.number - 1] = 543;
  2752. // work around unused variable warnings
  2753. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2754. || dynamic_array[ni.number - 1] != 543);
  2755. '
  2756. # Test code for whether the C compiler supports C11 (global declarations)
  2757. ac_c_conftest_c11_globals='
  2758. // Does the compiler advertise C11 conformance?
  2759. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2760. # error "Compiler does not advertise C11 conformance"
  2761. #endif
  2762. // Check _Alignas.
  2763. char _Alignas (double) aligned_as_double;
  2764. char _Alignas (0) no_special_alignment;
  2765. extern char aligned_as_int;
  2766. char _Alignas (0) _Alignas (int) aligned_as_int;
  2767. // Check _Alignof.
  2768. enum
  2769. {
  2770. int_alignment = _Alignof (int),
  2771. int_array_alignment = _Alignof (int[100]),
  2772. char_alignment = _Alignof (char)
  2773. };
  2774. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2775. // Check _Noreturn.
  2776. int _Noreturn does_not_return (void) { for (;;) continue; }
  2777. // Check _Static_assert.
  2778. struct test_static_assert
  2779. {
  2780. int x;
  2781. _Static_assert (sizeof (int) <= sizeof (long int),
  2782. "_Static_assert does not work in struct");
  2783. long int y;
  2784. };
  2785. // Check UTF-8 literals.
  2786. #define u8 syntax error!
  2787. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2788. // Check duplicate typedefs.
  2789. typedef long *long_ptr;
  2790. typedef long int *long_ptr;
  2791. typedef long_ptr long_ptr;
  2792. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2793. struct anonymous
  2794. {
  2795. union {
  2796. struct { int i; int j; };
  2797. struct { int k; long int l; } w;
  2798. };
  2799. int m;
  2800. } v1;
  2801. '
  2802. # Test code for whether the C compiler supports C11 (body of main).
  2803. ac_c_conftest_c11_main='
  2804. _Static_assert ((offsetof (struct anonymous, i)
  2805. == offsetof (struct anonymous, w.k)),
  2806. "Anonymous union alignment botch");
  2807. v1.i = 2;
  2808. v1.w.k = 5;
  2809. ok |= v1.i != 5;
  2810. '
  2811. # Test code for whether the C compiler supports C11 (complete).
  2812. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2813. ${ac_c_conftest_c99_globals}
  2814. ${ac_c_conftest_c11_globals}
  2815. int
  2816. main (int argc, char **argv)
  2817. {
  2818. int ok = 0;
  2819. ${ac_c_conftest_c89_main}
  2820. ${ac_c_conftest_c99_main}
  2821. ${ac_c_conftest_c11_main}
  2822. return ok;
  2823. }
  2824. "
  2825. # Test code for whether the C compiler supports C99 (complete).
  2826. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2827. ${ac_c_conftest_c99_globals}
  2828. int
  2829. main (int argc, char **argv)
  2830. {
  2831. int ok = 0;
  2832. ${ac_c_conftest_c89_main}
  2833. ${ac_c_conftest_c99_main}
  2834. return ok;
  2835. }
  2836. "
  2837. # Test code for whether the C compiler supports C89 (complete).
  2838. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2839. int
  2840. main (int argc, char **argv)
  2841. {
  2842. int ok = 0;
  2843. ${ac_c_conftest_c89_main}
  2844. return ok;
  2845. }
  2846. "
  2847. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2848. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2849. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2850. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2851. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2852. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2853. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2854. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2855. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2856. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2857. ac_cxx_conftest_cxx98_globals='
  2858. // Does the compiler advertise C++98 conformance?
  2859. #if !defined __cplusplus || __cplusplus < 199711L
  2860. # error "Compiler does not advertise C++98 conformance"
  2861. #endif
  2862. // These inclusions are to reject old compilers that
  2863. // lack the unsuffixed header files.
  2864. #include <cstdlib>
  2865. #include <exception>
  2866. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2867. extern void assert (int);
  2868. namespace std {
  2869. extern int strcmp (const char *, const char *);
  2870. }
  2871. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2872. using std::exception;
  2873. using std::strcmp;
  2874. namespace {
  2875. void test_exception_syntax()
  2876. {
  2877. try {
  2878. throw "test";
  2879. } catch (const char *s) {
  2880. // Extra parentheses suppress a warning when building autoconf itself,
  2881. // due to lint rules shared with more typical C programs.
  2882. assert (!(strcmp) (s, "test"));
  2883. }
  2884. }
  2885. template <typename T> struct test_template
  2886. {
  2887. T const val;
  2888. explicit test_template(T t) : val(t) {}
  2889. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2890. };
  2891. } // anonymous namespace
  2892. '
  2893. # Test code for whether the C++ compiler supports C++98 (body of main)
  2894. ac_cxx_conftest_cxx98_main='
  2895. assert (argc);
  2896. assert (! argv[0]);
  2897. {
  2898. test_exception_syntax ();
  2899. test_template<double> tt (2.0);
  2900. assert (tt.add (4) == 6.0);
  2901. assert (true && !false);
  2902. }
  2903. '
  2904. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2905. ac_cxx_conftest_cxx11_globals='
  2906. // Does the compiler advertise C++ 2011 conformance?
  2907. #if !defined __cplusplus || __cplusplus < 201103L
  2908. # error "Compiler does not advertise C++11 conformance"
  2909. #endif
  2910. namespace cxx11test
  2911. {
  2912. constexpr int get_val() { return 20; }
  2913. struct testinit
  2914. {
  2915. int i;
  2916. double d;
  2917. };
  2918. class delegate
  2919. {
  2920. public:
  2921. delegate(int n) : n(n) {}
  2922. delegate(): delegate(2354) {}
  2923. virtual int getval() { return this->n; };
  2924. protected:
  2925. int n;
  2926. };
  2927. class overridden : public delegate
  2928. {
  2929. public:
  2930. overridden(int n): delegate(n) {}
  2931. virtual int getval() override final { return this->n * 2; }
  2932. };
  2933. class nocopy
  2934. {
  2935. public:
  2936. nocopy(int i): i(i) {}
  2937. nocopy() = default;
  2938. nocopy(const nocopy&) = delete;
  2939. nocopy & operator=(const nocopy&) = delete;
  2940. private:
  2941. int i;
  2942. };
  2943. // for testing lambda expressions
  2944. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2945. {
  2946. return f(v);
  2947. }
  2948. // for testing variadic templates and trailing return types
  2949. template <typename V> auto sum(V first) -> V
  2950. {
  2951. return first;
  2952. }
  2953. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2954. {
  2955. return first + sum(rest...);
  2956. }
  2957. }
  2958. '
  2959. # Test code for whether the C++ compiler supports C++11 (body of main)
  2960. ac_cxx_conftest_cxx11_main='
  2961. {
  2962. // Test auto and decltype
  2963. auto a1 = 6538;
  2964. auto a2 = 48573953.4;
  2965. auto a3 = "String literal";
  2966. int total = 0;
  2967. for (auto i = a3; *i; ++i) { total += *i; }
  2968. decltype(a2) a4 = 34895.034;
  2969. }
  2970. {
  2971. // Test constexpr
  2972. short sa[cxx11test::get_val()] = { 0 };
  2973. }
  2974. {
  2975. // Test initializer lists
  2976. cxx11test::testinit il = { 4323, 435234.23544 };
  2977. }
  2978. {
  2979. // Test range-based for
  2980. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2981. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2982. for (auto &x : array) { x += 23; }
  2983. }
  2984. {
  2985. // Test lambda expressions
  2986. using cxx11test::eval;
  2987. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2988. double d = 2.0;
  2989. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2990. assert (d == 5.0);
  2991. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2992. assert (d == 5.0);
  2993. }
  2994. {
  2995. // Test use of variadic templates
  2996. using cxx11test::sum;
  2997. auto a = sum(1);
  2998. auto b = sum(1, 2);
  2999. auto c = sum(1.0, 2.0, 3.0);
  3000. }
  3001. {
  3002. // Test constructor delegation
  3003. cxx11test::delegate d1;
  3004. cxx11test::delegate d2();
  3005. cxx11test::delegate d3(45);
  3006. }
  3007. {
  3008. // Test override and final
  3009. cxx11test::overridden o1(55464);
  3010. }
  3011. {
  3012. // Test nullptr
  3013. char *c = nullptr;
  3014. }
  3015. {
  3016. // Test template brackets
  3017. test_template<::test_template<int>> v(test_template<int>(12));
  3018. }
  3019. {
  3020. // Unicode literals
  3021. char const *utf8 = u8"UTF-8 string \u2500";
  3022. char16_t const *utf16 = u"UTF-8 string \u2500";
  3023. char32_t const *utf32 = U"UTF-32 string \u2500";
  3024. }
  3025. '
  3026. # Test code for whether the C compiler supports C++11 (complete).
  3027. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  3028. ${ac_cxx_conftest_cxx11_globals}
  3029. int
  3030. main (int argc, char **argv)
  3031. {
  3032. int ok = 0;
  3033. ${ac_cxx_conftest_cxx98_main}
  3034. ${ac_cxx_conftest_cxx11_main}
  3035. return ok;
  3036. }
  3037. "
  3038. # Test code for whether the C compiler supports C++98 (complete).
  3039. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  3040. int
  3041. main (int argc, char **argv)
  3042. {
  3043. int ok = 0;
  3044. ${ac_cxx_conftest_cxx98_main}
  3045. return ok;
  3046. }
  3047. "
  3048. # Auxiliary files required by this configure script.
  3049. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  3050. # Locations in which to look for auxiliary files.
  3051. ac_aux_dir_candidates="${srcdir}/build-scripts"
  3052. # Search for a directory containing all of the required auxiliary files,
  3053. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  3054. # If we don't find one directory that contains all the files we need,
  3055. # we report the set of missing files from the *first* directory in
  3056. # $ac_aux_dir_candidates and give up.
  3057. ac_missing_aux_files=""
  3058. ac_first_candidate=:
  3059. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3061. as_found=false
  3062. for as_dir in $ac_aux_dir_candidates
  3063. do
  3064. IFS=$as_save_IFS
  3065. case $as_dir in #(((
  3066. '') as_dir=./ ;;
  3067. */) ;;
  3068. *) as_dir=$as_dir/ ;;
  3069. esac
  3070. as_found=:
  3071. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3072. ac_aux_dir_found=yes
  3073. ac_install_sh=
  3074. for ac_aux in $ac_aux_files
  3075. do
  3076. # As a special case, if "install-sh" is required, that requirement
  3077. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3078. # and $ac_install_sh is set appropriately for whichever one is found.
  3079. if test x"$ac_aux" = x"install-sh"
  3080. then
  3081. if test -f "${as_dir}install-sh"; then
  3082. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3083. ac_install_sh="${as_dir}install-sh -c"
  3084. elif test -f "${as_dir}install.sh"; then
  3085. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3086. ac_install_sh="${as_dir}install.sh -c"
  3087. elif test -f "${as_dir}shtool"; then
  3088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3089. ac_install_sh="${as_dir}shtool install -c"
  3090. else
  3091. ac_aux_dir_found=no
  3092. if $ac_first_candidate; then
  3093. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3094. else
  3095. break
  3096. fi
  3097. fi
  3098. else
  3099. if test -f "${as_dir}${ac_aux}"; then
  3100. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3101. else
  3102. ac_aux_dir_found=no
  3103. if $ac_first_candidate; then
  3104. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3105. else
  3106. break
  3107. fi
  3108. fi
  3109. fi
  3110. done
  3111. if test "$ac_aux_dir_found" = yes; then
  3112. ac_aux_dir="$as_dir"
  3113. break
  3114. fi
  3115. ac_first_candidate=false
  3116. as_found=false
  3117. done
  3118. IFS=$as_save_IFS
  3119. if $as_found
  3120. then :
  3121. else $as_nop
  3122. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3123. fi
  3124. # These three variables are undocumented and unsupported,
  3125. # and are intended to be withdrawn in a future Autoconf release.
  3126. # They can cause serious problems if a builder's source tree is in a directory
  3127. # whose full name contains unusual characters.
  3128. if test -f "${ac_aux_dir}config.guess"; then
  3129. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3130. fi
  3131. if test -f "${ac_aux_dir}config.sub"; then
  3132. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3133. fi
  3134. if test -f "$ac_aux_dir/configure"; then
  3135. ac_configure="$SHELL ${ac_aux_dir}configure"
  3136. fi
  3137. # Check that the precious variables saved in the cache have kept the same
  3138. # value.
  3139. ac_cache_corrupted=false
  3140. for ac_var in $ac_precious_vars; do
  3141. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3142. eval ac_new_set=\$ac_env_${ac_var}_set
  3143. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3144. eval ac_new_val=\$ac_env_${ac_var}_value
  3145. case $ac_old_set,$ac_new_set in
  3146. set,)
  3147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3148. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3149. ac_cache_corrupted=: ;;
  3150. ,set)
  3151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3152. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3153. ac_cache_corrupted=: ;;
  3154. ,);;
  3155. *)
  3156. if test "x$ac_old_val" != "x$ac_new_val"; then
  3157. # differences in whitespace do not lead to failure.
  3158. ac_old_val_w=`echo x $ac_old_val`
  3159. ac_new_val_w=`echo x $ac_new_val`
  3160. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3162. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3163. ac_cache_corrupted=:
  3164. else
  3165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3166. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3167. eval $ac_var=\$ac_old_val
  3168. fi
  3169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3170. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3172. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3173. fi;;
  3174. esac
  3175. # Pass precious variables to config.status.
  3176. if test "$ac_new_set" = set; then
  3177. case $ac_new_val in
  3178. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3179. *) ac_arg=$ac_var=$ac_new_val ;;
  3180. esac
  3181. case " $ac_configure_args " in
  3182. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3183. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3184. esac
  3185. fi
  3186. done
  3187. if $ac_cache_corrupted; then
  3188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3189. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3191. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3192. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3193. and start over" "$LINENO" 5
  3194. fi
  3195. ## -------------------- ##
  3196. ## Main body of script. ##
  3197. ## -------------------- ##
  3198. ac_ext=c
  3199. ac_cpp='$CPP $CPPFLAGS'
  3200. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3201. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3202. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3203. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3204. orig_CFLAGS="$CFLAGS"
  3205. # See docs/release_checklist.md
  3206. SDL_MAJOR_VERSION=2
  3207. SDL_MINOR_VERSION=32
  3208. SDL_MICRO_VERSION=0
  3209. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3210. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3211. case "$SDL_MINOR_VERSION" in #(
  3212. *[02468]) :
  3213. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3214. *) :
  3215. SDL_INTERFACE_AGE=0 ;; #(
  3216. *) :
  3217. ;;
  3218. esac
  3219. # libtool versioning
  3220. case `pwd` in
  3221. *\ * | *\ *)
  3222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3223. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3224. esac
  3225. macro_version='2.4.6'
  3226. macro_revision='2.4.6'
  3227. ltmain=$ac_aux_dir/ltmain.sh
  3228. # Make sure we can run config.sub.
  3229. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3230. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3232. printf %s "checking build system type... " >&6; }
  3233. if test ${ac_cv_build+y}
  3234. then :
  3235. printf %s "(cached) " >&6
  3236. else $as_nop
  3237. ac_build_alias=$build_alias
  3238. test "x$ac_build_alias" = x &&
  3239. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3240. test "x$ac_build_alias" = x &&
  3241. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3242. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3243. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3244. fi
  3245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3246. printf "%s\n" "$ac_cv_build" >&6; }
  3247. case $ac_cv_build in
  3248. *-*-*) ;;
  3249. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3250. esac
  3251. build=$ac_cv_build
  3252. ac_save_IFS=$IFS; IFS='-'
  3253. set x $ac_cv_build
  3254. shift
  3255. build_cpu=$1
  3256. build_vendor=$2
  3257. shift; shift
  3258. # Remember, the first character of IFS is used to create $*,
  3259. # except with old shells:
  3260. build_os=$*
  3261. IFS=$ac_save_IFS
  3262. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3264. printf %s "checking host system type... " >&6; }
  3265. if test ${ac_cv_host+y}
  3266. then :
  3267. printf %s "(cached) " >&6
  3268. else $as_nop
  3269. if test "x$host_alias" = x; then
  3270. ac_cv_host=$ac_cv_build
  3271. else
  3272. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3273. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3274. fi
  3275. fi
  3276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3277. printf "%s\n" "$ac_cv_host" >&6; }
  3278. case $ac_cv_host in
  3279. *-*-*) ;;
  3280. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3281. esac
  3282. host=$ac_cv_host
  3283. ac_save_IFS=$IFS; IFS='-'
  3284. set x $ac_cv_host
  3285. shift
  3286. host_cpu=$1
  3287. host_vendor=$2
  3288. shift; shift
  3289. # Remember, the first character of IFS is used to create $*,
  3290. # except with old shells:
  3291. host_os=$*
  3292. IFS=$ac_save_IFS
  3293. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3294. # Backslashify metacharacters that are still active within
  3295. # double-quoted strings.
  3296. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3297. # Same as above, but do not quote variable references.
  3298. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3299. # Sed substitution to delay expansion of an escaped shell variable in a
  3300. # double_quote_subst'ed string.
  3301. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3302. # Sed substitution to delay expansion of an escaped single quote.
  3303. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3304. # Sed substitution to avoid accidental globbing in evaled expressions
  3305. no_glob_subst='s/\*/\\\*/g'
  3306. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3307. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3308. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3310. printf %s "checking how to print strings... " >&6; }
  3311. # Test print first, because it will be a builtin if present.
  3312. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3313. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3314. ECHO='print -r --'
  3315. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3316. ECHO='printf %s\n'
  3317. else
  3318. # Use this function as a fallback that always works.
  3319. func_fallback_echo ()
  3320. {
  3321. eval 'cat <<_LTECHO_EOF
  3322. $1
  3323. _LTECHO_EOF'
  3324. }
  3325. ECHO='func_fallback_echo'
  3326. fi
  3327. # func_echo_all arg...
  3328. # Invoke $ECHO with all args, space-separated.
  3329. func_echo_all ()
  3330. {
  3331. $ECHO ""
  3332. }
  3333. case $ECHO in
  3334. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3335. printf "%s\n" "printf" >&6; } ;;
  3336. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3337. printf "%s\n" "print -r" >&6; } ;;
  3338. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3339. printf "%s\n" "cat" >&6; } ;;
  3340. esac
  3341. ac_ext=c
  3342. ac_cpp='$CPP $CPPFLAGS'
  3343. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3344. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3345. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3346. if test -n "$ac_tool_prefix"; then
  3347. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3348. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3350. printf %s "checking for $ac_word... " >&6; }
  3351. if test ${ac_cv_prog_CC+y}
  3352. then :
  3353. printf %s "(cached) " >&6
  3354. else $as_nop
  3355. if test -n "$CC"; then
  3356. ac_cv_prog_CC="$CC" # Let the user override the test.
  3357. else
  3358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3359. for as_dir in $PATH
  3360. do
  3361. IFS=$as_save_IFS
  3362. case $as_dir in #(((
  3363. '') as_dir=./ ;;
  3364. */) ;;
  3365. *) as_dir=$as_dir/ ;;
  3366. esac
  3367. for ac_exec_ext in '' $ac_executable_extensions; do
  3368. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3369. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3370. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3371. break 2
  3372. fi
  3373. done
  3374. done
  3375. IFS=$as_save_IFS
  3376. fi
  3377. fi
  3378. CC=$ac_cv_prog_CC
  3379. if test -n "$CC"; then
  3380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3381. printf "%s\n" "$CC" >&6; }
  3382. else
  3383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3384. printf "%s\n" "no" >&6; }
  3385. fi
  3386. fi
  3387. if test -z "$ac_cv_prog_CC"; then
  3388. ac_ct_CC=$CC
  3389. # Extract the first word of "gcc", so it can be a program name with args.
  3390. set dummy gcc; ac_word=$2
  3391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3392. printf %s "checking for $ac_word... " >&6; }
  3393. if test ${ac_cv_prog_ac_ct_CC+y}
  3394. then :
  3395. printf %s "(cached) " >&6
  3396. else $as_nop
  3397. if test -n "$ac_ct_CC"; then
  3398. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3399. else
  3400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3401. for as_dir in $PATH
  3402. do
  3403. IFS=$as_save_IFS
  3404. case $as_dir in #(((
  3405. '') as_dir=./ ;;
  3406. */) ;;
  3407. *) as_dir=$as_dir/ ;;
  3408. esac
  3409. for ac_exec_ext in '' $ac_executable_extensions; do
  3410. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3411. ac_cv_prog_ac_ct_CC="gcc"
  3412. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3413. break 2
  3414. fi
  3415. done
  3416. done
  3417. IFS=$as_save_IFS
  3418. fi
  3419. fi
  3420. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3421. if test -n "$ac_ct_CC"; then
  3422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3423. printf "%s\n" "$ac_ct_CC" >&6; }
  3424. else
  3425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3426. printf "%s\n" "no" >&6; }
  3427. fi
  3428. if test "x$ac_ct_CC" = x; then
  3429. CC=""
  3430. else
  3431. case $cross_compiling:$ac_tool_warned in
  3432. yes:)
  3433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3434. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3435. ac_tool_warned=yes ;;
  3436. esac
  3437. CC=$ac_ct_CC
  3438. fi
  3439. else
  3440. CC="$ac_cv_prog_CC"
  3441. fi
  3442. if test -z "$CC"; then
  3443. if test -n "$ac_tool_prefix"; then
  3444. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3445. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3447. printf %s "checking for $ac_word... " >&6; }
  3448. if test ${ac_cv_prog_CC+y}
  3449. then :
  3450. printf %s "(cached) " >&6
  3451. else $as_nop
  3452. if test -n "$CC"; then
  3453. ac_cv_prog_CC="$CC" # Let the user override the test.
  3454. else
  3455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3456. for as_dir in $PATH
  3457. do
  3458. IFS=$as_save_IFS
  3459. case $as_dir in #(((
  3460. '') as_dir=./ ;;
  3461. */) ;;
  3462. *) as_dir=$as_dir/ ;;
  3463. esac
  3464. for ac_exec_ext in '' $ac_executable_extensions; do
  3465. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3466. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3467. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3468. break 2
  3469. fi
  3470. done
  3471. done
  3472. IFS=$as_save_IFS
  3473. fi
  3474. fi
  3475. CC=$ac_cv_prog_CC
  3476. if test -n "$CC"; then
  3477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3478. printf "%s\n" "$CC" >&6; }
  3479. else
  3480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3481. printf "%s\n" "no" >&6; }
  3482. fi
  3483. fi
  3484. fi
  3485. if test -z "$CC"; then
  3486. # Extract the first word of "cc", so it can be a program name with args.
  3487. set dummy cc; ac_word=$2
  3488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3489. printf %s "checking for $ac_word... " >&6; }
  3490. if test ${ac_cv_prog_CC+y}
  3491. then :
  3492. printf %s "(cached) " >&6
  3493. else $as_nop
  3494. if test -n "$CC"; then
  3495. ac_cv_prog_CC="$CC" # Let the user override the test.
  3496. else
  3497. ac_prog_rejected=no
  3498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3499. for as_dir in $PATH
  3500. do
  3501. IFS=$as_save_IFS
  3502. case $as_dir in #(((
  3503. '') as_dir=./ ;;
  3504. */) ;;
  3505. *) as_dir=$as_dir/ ;;
  3506. esac
  3507. for ac_exec_ext in '' $ac_executable_extensions; do
  3508. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3509. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3510. ac_prog_rejected=yes
  3511. continue
  3512. fi
  3513. ac_cv_prog_CC="cc"
  3514. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3515. break 2
  3516. fi
  3517. done
  3518. done
  3519. IFS=$as_save_IFS
  3520. if test $ac_prog_rejected = yes; then
  3521. # We found a bogon in the path, so make sure we never use it.
  3522. set dummy $ac_cv_prog_CC
  3523. shift
  3524. if test $# != 0; then
  3525. # We chose a different compiler from the bogus one.
  3526. # However, it has the same basename, so the bogon will be chosen
  3527. # first if we set CC to just the basename; use the full file name.
  3528. shift
  3529. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3530. fi
  3531. fi
  3532. fi
  3533. fi
  3534. CC=$ac_cv_prog_CC
  3535. if test -n "$CC"; then
  3536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3537. printf "%s\n" "$CC" >&6; }
  3538. else
  3539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3540. printf "%s\n" "no" >&6; }
  3541. fi
  3542. fi
  3543. if test -z "$CC"; then
  3544. if test -n "$ac_tool_prefix"; then
  3545. for ac_prog in cl.exe
  3546. do
  3547. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3548. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3550. printf %s "checking for $ac_word... " >&6; }
  3551. if test ${ac_cv_prog_CC+y}
  3552. then :
  3553. printf %s "(cached) " >&6
  3554. else $as_nop
  3555. if test -n "$CC"; then
  3556. ac_cv_prog_CC="$CC" # Let the user override the test.
  3557. else
  3558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3559. for as_dir in $PATH
  3560. do
  3561. IFS=$as_save_IFS
  3562. case $as_dir in #(((
  3563. '') as_dir=./ ;;
  3564. */) ;;
  3565. *) as_dir=$as_dir/ ;;
  3566. esac
  3567. for ac_exec_ext in '' $ac_executable_extensions; do
  3568. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3569. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3570. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3571. break 2
  3572. fi
  3573. done
  3574. done
  3575. IFS=$as_save_IFS
  3576. fi
  3577. fi
  3578. CC=$ac_cv_prog_CC
  3579. if test -n "$CC"; then
  3580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3581. printf "%s\n" "$CC" >&6; }
  3582. else
  3583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3584. printf "%s\n" "no" >&6; }
  3585. fi
  3586. test -n "$CC" && break
  3587. done
  3588. fi
  3589. if test -z "$CC"; then
  3590. ac_ct_CC=$CC
  3591. for ac_prog in cl.exe
  3592. do
  3593. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3594. set dummy $ac_prog; ac_word=$2
  3595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3596. printf %s "checking for $ac_word... " >&6; }
  3597. if test ${ac_cv_prog_ac_ct_CC+y}
  3598. then :
  3599. printf %s "(cached) " >&6
  3600. else $as_nop
  3601. if test -n "$ac_ct_CC"; then
  3602. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3603. else
  3604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3605. for as_dir in $PATH
  3606. do
  3607. IFS=$as_save_IFS
  3608. case $as_dir in #(((
  3609. '') as_dir=./ ;;
  3610. */) ;;
  3611. *) as_dir=$as_dir/ ;;
  3612. esac
  3613. for ac_exec_ext in '' $ac_executable_extensions; do
  3614. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3615. ac_cv_prog_ac_ct_CC="$ac_prog"
  3616. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3617. break 2
  3618. fi
  3619. done
  3620. done
  3621. IFS=$as_save_IFS
  3622. fi
  3623. fi
  3624. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3625. if test -n "$ac_ct_CC"; then
  3626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3627. printf "%s\n" "$ac_ct_CC" >&6; }
  3628. else
  3629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3630. printf "%s\n" "no" >&6; }
  3631. fi
  3632. test -n "$ac_ct_CC" && break
  3633. done
  3634. if test "x$ac_ct_CC" = x; then
  3635. CC=""
  3636. else
  3637. case $cross_compiling:$ac_tool_warned in
  3638. yes:)
  3639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3640. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3641. ac_tool_warned=yes ;;
  3642. esac
  3643. CC=$ac_ct_CC
  3644. fi
  3645. fi
  3646. fi
  3647. if test -z "$CC"; then
  3648. if test -n "$ac_tool_prefix"; then
  3649. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3650. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3652. printf %s "checking for $ac_word... " >&6; }
  3653. if test ${ac_cv_prog_CC+y}
  3654. then :
  3655. printf %s "(cached) " >&6
  3656. else $as_nop
  3657. if test -n "$CC"; then
  3658. ac_cv_prog_CC="$CC" # Let the user override the test.
  3659. else
  3660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3661. for as_dir in $PATH
  3662. do
  3663. IFS=$as_save_IFS
  3664. case $as_dir in #(((
  3665. '') as_dir=./ ;;
  3666. */) ;;
  3667. *) as_dir=$as_dir/ ;;
  3668. esac
  3669. for ac_exec_ext in '' $ac_executable_extensions; do
  3670. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3671. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3673. break 2
  3674. fi
  3675. done
  3676. done
  3677. IFS=$as_save_IFS
  3678. fi
  3679. fi
  3680. CC=$ac_cv_prog_CC
  3681. if test -n "$CC"; then
  3682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3683. printf "%s\n" "$CC" >&6; }
  3684. else
  3685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3686. printf "%s\n" "no" >&6; }
  3687. fi
  3688. fi
  3689. if test -z "$ac_cv_prog_CC"; then
  3690. ac_ct_CC=$CC
  3691. # Extract the first word of "clang", so it can be a program name with args.
  3692. set dummy clang; ac_word=$2
  3693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3694. printf %s "checking for $ac_word... " >&6; }
  3695. if test ${ac_cv_prog_ac_ct_CC+y}
  3696. then :
  3697. printf %s "(cached) " >&6
  3698. else $as_nop
  3699. if test -n "$ac_ct_CC"; then
  3700. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3701. else
  3702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3703. for as_dir in $PATH
  3704. do
  3705. IFS=$as_save_IFS
  3706. case $as_dir in #(((
  3707. '') as_dir=./ ;;
  3708. */) ;;
  3709. *) as_dir=$as_dir/ ;;
  3710. esac
  3711. for ac_exec_ext in '' $ac_executable_extensions; do
  3712. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3713. ac_cv_prog_ac_ct_CC="clang"
  3714. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3715. break 2
  3716. fi
  3717. done
  3718. done
  3719. IFS=$as_save_IFS
  3720. fi
  3721. fi
  3722. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3723. if test -n "$ac_ct_CC"; then
  3724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3725. printf "%s\n" "$ac_ct_CC" >&6; }
  3726. else
  3727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3728. printf "%s\n" "no" >&6; }
  3729. fi
  3730. if test "x$ac_ct_CC" = x; then
  3731. CC=""
  3732. else
  3733. case $cross_compiling:$ac_tool_warned in
  3734. yes:)
  3735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3736. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3737. ac_tool_warned=yes ;;
  3738. esac
  3739. CC=$ac_ct_CC
  3740. fi
  3741. else
  3742. CC="$ac_cv_prog_CC"
  3743. fi
  3744. fi
  3745. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3746. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3747. as_fn_error $? "no acceptable C compiler found in \$PATH
  3748. See \`config.log' for more details" "$LINENO" 5; }
  3749. # Provide some information about the compiler.
  3750. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3751. set X $ac_compile
  3752. ac_compiler=$2
  3753. for ac_option in --version -v -V -qversion -version; do
  3754. { { ac_try="$ac_compiler $ac_option >&5"
  3755. case "(($ac_try" in
  3756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3757. *) ac_try_echo=$ac_try;;
  3758. esac
  3759. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3760. printf "%s\n" "$ac_try_echo"; } >&5
  3761. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3762. ac_status=$?
  3763. if test -s conftest.err; then
  3764. sed '10a\
  3765. ... rest of stderr output deleted ...
  3766. 10q' conftest.err >conftest.er1
  3767. cat conftest.er1 >&5
  3768. fi
  3769. rm -f conftest.er1 conftest.err
  3770. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3771. test $ac_status = 0; }
  3772. done
  3773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3774. /* end confdefs.h. */
  3775. int
  3776. main (void)
  3777. {
  3778. ;
  3779. return 0;
  3780. }
  3781. _ACEOF
  3782. ac_clean_files_save=$ac_clean_files
  3783. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3784. # Try to create an executable without -o first, disregard a.out.
  3785. # It will help us diagnose broken compilers, and finding out an intuition
  3786. # of exeext.
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3788. printf %s "checking whether the C compiler works... " >&6; }
  3789. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3790. # The possible output files:
  3791. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3792. ac_rmfiles=
  3793. for ac_file in $ac_files
  3794. do
  3795. case $ac_file in
  3796. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3797. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3798. esac
  3799. done
  3800. rm -f $ac_rmfiles
  3801. if { { ac_try="$ac_link_default"
  3802. case "(($ac_try" in
  3803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3804. *) ac_try_echo=$ac_try;;
  3805. esac
  3806. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3807. printf "%s\n" "$ac_try_echo"; } >&5
  3808. (eval "$ac_link_default") 2>&5
  3809. ac_status=$?
  3810. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3811. test $ac_status = 0; }
  3812. then :
  3813. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3814. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3815. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3816. # so that the user can short-circuit this test for compilers unknown to
  3817. # Autoconf.
  3818. for ac_file in $ac_files ''
  3819. do
  3820. test -f "$ac_file" || continue
  3821. case $ac_file in
  3822. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3823. ;;
  3824. [ab].out )
  3825. # We found the default executable, but exeext='' is most
  3826. # certainly right.
  3827. break;;
  3828. *.* )
  3829. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3830. then :; else
  3831. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3832. fi
  3833. # We set ac_cv_exeext here because the later test for it is not
  3834. # safe: cross compilers may not add the suffix if given an `-o'
  3835. # argument, so we may need to know it at that point already.
  3836. # Even if this section looks crufty: it has the advantage of
  3837. # actually working.
  3838. break;;
  3839. * )
  3840. break;;
  3841. esac
  3842. done
  3843. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3844. else $as_nop
  3845. ac_file=''
  3846. fi
  3847. if test -z "$ac_file"
  3848. then :
  3849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3850. printf "%s\n" "no" >&6; }
  3851. printf "%s\n" "$as_me: failed program was:" >&5
  3852. sed 's/^/| /' conftest.$ac_ext >&5
  3853. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3854. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3855. as_fn_error 77 "C compiler cannot create executables
  3856. See \`config.log' for more details" "$LINENO" 5; }
  3857. else $as_nop
  3858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3859. printf "%s\n" "yes" >&6; }
  3860. fi
  3861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3862. printf %s "checking for C compiler default output file name... " >&6; }
  3863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3864. printf "%s\n" "$ac_file" >&6; }
  3865. ac_exeext=$ac_cv_exeext
  3866. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3867. ac_clean_files=$ac_clean_files_save
  3868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3869. printf %s "checking for suffix of executables... " >&6; }
  3870. if { { ac_try="$ac_link"
  3871. case "(($ac_try" in
  3872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3873. *) ac_try_echo=$ac_try;;
  3874. esac
  3875. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3876. printf "%s\n" "$ac_try_echo"; } >&5
  3877. (eval "$ac_link") 2>&5
  3878. ac_status=$?
  3879. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3880. test $ac_status = 0; }
  3881. then :
  3882. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3883. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3884. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3885. # `rm'.
  3886. for ac_file in conftest.exe conftest conftest.*; do
  3887. test -f "$ac_file" || continue
  3888. case $ac_file in
  3889. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3890. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3891. break;;
  3892. * ) break;;
  3893. esac
  3894. done
  3895. else $as_nop
  3896. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3897. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3898. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3899. See \`config.log' for more details" "$LINENO" 5; }
  3900. fi
  3901. rm -f conftest conftest$ac_cv_exeext
  3902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3903. printf "%s\n" "$ac_cv_exeext" >&6; }
  3904. rm -f conftest.$ac_ext
  3905. EXEEXT=$ac_cv_exeext
  3906. ac_exeext=$EXEEXT
  3907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3908. /* end confdefs.h. */
  3909. #include <stdio.h>
  3910. int
  3911. main (void)
  3912. {
  3913. FILE *f = fopen ("conftest.out", "w");
  3914. return ferror (f) || fclose (f) != 0;
  3915. ;
  3916. return 0;
  3917. }
  3918. _ACEOF
  3919. ac_clean_files="$ac_clean_files conftest.out"
  3920. # Check that the compiler produces executables we can run. If not, either
  3921. # the compiler is broken, or we cross compile.
  3922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3923. printf %s "checking whether we are cross compiling... " >&6; }
  3924. if test "$cross_compiling" != yes; then
  3925. { { ac_try="$ac_link"
  3926. case "(($ac_try" in
  3927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3928. *) ac_try_echo=$ac_try;;
  3929. esac
  3930. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3931. printf "%s\n" "$ac_try_echo"; } >&5
  3932. (eval "$ac_link") 2>&5
  3933. ac_status=$?
  3934. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3935. test $ac_status = 0; }
  3936. if { ac_try='./conftest$ac_cv_exeext'
  3937. { { case "(($ac_try" in
  3938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3939. *) ac_try_echo=$ac_try;;
  3940. esac
  3941. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3942. printf "%s\n" "$ac_try_echo"; } >&5
  3943. (eval "$ac_try") 2>&5
  3944. ac_status=$?
  3945. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3946. test $ac_status = 0; }; }; then
  3947. cross_compiling=no
  3948. else
  3949. if test "$cross_compiling" = maybe; then
  3950. cross_compiling=yes
  3951. else
  3952. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3953. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3954. as_fn_error 77 "cannot run C compiled programs.
  3955. If you meant to cross compile, use \`--host'.
  3956. See \`config.log' for more details" "$LINENO" 5; }
  3957. fi
  3958. fi
  3959. fi
  3960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3961. printf "%s\n" "$cross_compiling" >&6; }
  3962. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3963. ac_clean_files=$ac_clean_files_save
  3964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3965. printf %s "checking for suffix of object files... " >&6; }
  3966. if test ${ac_cv_objext+y}
  3967. then :
  3968. printf %s "(cached) " >&6
  3969. else $as_nop
  3970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3971. /* end confdefs.h. */
  3972. int
  3973. main (void)
  3974. {
  3975. ;
  3976. return 0;
  3977. }
  3978. _ACEOF
  3979. rm -f conftest.o conftest.obj
  3980. if { { ac_try="$ac_compile"
  3981. case "(($ac_try" in
  3982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3983. *) ac_try_echo=$ac_try;;
  3984. esac
  3985. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3986. printf "%s\n" "$ac_try_echo"; } >&5
  3987. (eval "$ac_compile") 2>&5
  3988. ac_status=$?
  3989. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3990. test $ac_status = 0; }
  3991. then :
  3992. for ac_file in conftest.o conftest.obj conftest.*; do
  3993. test -f "$ac_file" || continue;
  3994. case $ac_file in
  3995. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3996. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3997. break;;
  3998. esac
  3999. done
  4000. else $as_nop
  4001. printf "%s\n" "$as_me: failed program was:" >&5
  4002. sed 's/^/| /' conftest.$ac_ext >&5
  4003. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4004. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4005. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4006. See \`config.log' for more details" "$LINENO" 5; }
  4007. fi
  4008. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4009. fi
  4010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4011. printf "%s\n" "$ac_cv_objext" >&6; }
  4012. OBJEXT=$ac_cv_objext
  4013. ac_objext=$OBJEXT
  4014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4015. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4016. if test ${ac_cv_c_compiler_gnu+y}
  4017. then :
  4018. printf %s "(cached) " >&6
  4019. else $as_nop
  4020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4021. /* end confdefs.h. */
  4022. int
  4023. main (void)
  4024. {
  4025. #ifndef __GNUC__
  4026. choke me
  4027. #endif
  4028. ;
  4029. return 0;
  4030. }
  4031. _ACEOF
  4032. if ac_fn_c_try_compile "$LINENO"
  4033. then :
  4034. ac_compiler_gnu=yes
  4035. else $as_nop
  4036. ac_compiler_gnu=no
  4037. fi
  4038. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4039. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4040. fi
  4041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4042. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4044. if test $ac_compiler_gnu = yes; then
  4045. GCC=yes
  4046. else
  4047. GCC=
  4048. fi
  4049. ac_test_CFLAGS=${CFLAGS+y}
  4050. ac_save_CFLAGS=$CFLAGS
  4051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4052. printf %s "checking whether $CC accepts -g... " >&6; }
  4053. if test ${ac_cv_prog_cc_g+y}
  4054. then :
  4055. printf %s "(cached) " >&6
  4056. else $as_nop
  4057. ac_save_c_werror_flag=$ac_c_werror_flag
  4058. ac_c_werror_flag=yes
  4059. ac_cv_prog_cc_g=no
  4060. CFLAGS="-g"
  4061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4062. /* end confdefs.h. */
  4063. int
  4064. main (void)
  4065. {
  4066. ;
  4067. return 0;
  4068. }
  4069. _ACEOF
  4070. if ac_fn_c_try_compile "$LINENO"
  4071. then :
  4072. ac_cv_prog_cc_g=yes
  4073. else $as_nop
  4074. CFLAGS=""
  4075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4076. /* end confdefs.h. */
  4077. int
  4078. main (void)
  4079. {
  4080. ;
  4081. return 0;
  4082. }
  4083. _ACEOF
  4084. if ac_fn_c_try_compile "$LINENO"
  4085. then :
  4086. else $as_nop
  4087. ac_c_werror_flag=$ac_save_c_werror_flag
  4088. CFLAGS="-g"
  4089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4090. /* end confdefs.h. */
  4091. int
  4092. main (void)
  4093. {
  4094. ;
  4095. return 0;
  4096. }
  4097. _ACEOF
  4098. if ac_fn_c_try_compile "$LINENO"
  4099. then :
  4100. ac_cv_prog_cc_g=yes
  4101. fi
  4102. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4103. fi
  4104. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4105. fi
  4106. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4107. ac_c_werror_flag=$ac_save_c_werror_flag
  4108. fi
  4109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4110. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4111. if test $ac_test_CFLAGS; then
  4112. CFLAGS=$ac_save_CFLAGS
  4113. elif test $ac_cv_prog_cc_g = yes; then
  4114. if test "$GCC" = yes; then
  4115. CFLAGS="-g -O2"
  4116. else
  4117. CFLAGS="-g"
  4118. fi
  4119. else
  4120. if test "$GCC" = yes; then
  4121. CFLAGS="-O2"
  4122. else
  4123. CFLAGS=
  4124. fi
  4125. fi
  4126. ac_prog_cc_stdc=no
  4127. if test x$ac_prog_cc_stdc = xno
  4128. then :
  4129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4130. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4131. if test ${ac_cv_prog_cc_c11+y}
  4132. then :
  4133. printf %s "(cached) " >&6
  4134. else $as_nop
  4135. ac_cv_prog_cc_c11=no
  4136. ac_save_CC=$CC
  4137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4138. /* end confdefs.h. */
  4139. $ac_c_conftest_c11_program
  4140. _ACEOF
  4141. for ac_arg in '' -std=gnu11
  4142. do
  4143. CC="$ac_save_CC $ac_arg"
  4144. if ac_fn_c_try_compile "$LINENO"
  4145. then :
  4146. ac_cv_prog_cc_c11=$ac_arg
  4147. fi
  4148. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4149. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4150. done
  4151. rm -f conftest.$ac_ext
  4152. CC=$ac_save_CC
  4153. fi
  4154. if test "x$ac_cv_prog_cc_c11" = xno
  4155. then :
  4156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4157. printf "%s\n" "unsupported" >&6; }
  4158. else $as_nop
  4159. if test "x$ac_cv_prog_cc_c11" = x
  4160. then :
  4161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4162. printf "%s\n" "none needed" >&6; }
  4163. else $as_nop
  4164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4165. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4166. CC="$CC $ac_cv_prog_cc_c11"
  4167. fi
  4168. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4169. ac_prog_cc_stdc=c11
  4170. fi
  4171. fi
  4172. if test x$ac_prog_cc_stdc = xno
  4173. then :
  4174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4175. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4176. if test ${ac_cv_prog_cc_c99+y}
  4177. then :
  4178. printf %s "(cached) " >&6
  4179. else $as_nop
  4180. ac_cv_prog_cc_c99=no
  4181. ac_save_CC=$CC
  4182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4183. /* end confdefs.h. */
  4184. $ac_c_conftest_c99_program
  4185. _ACEOF
  4186. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4187. do
  4188. CC="$ac_save_CC $ac_arg"
  4189. if ac_fn_c_try_compile "$LINENO"
  4190. then :
  4191. ac_cv_prog_cc_c99=$ac_arg
  4192. fi
  4193. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4194. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4195. done
  4196. rm -f conftest.$ac_ext
  4197. CC=$ac_save_CC
  4198. fi
  4199. if test "x$ac_cv_prog_cc_c99" = xno
  4200. then :
  4201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4202. printf "%s\n" "unsupported" >&6; }
  4203. else $as_nop
  4204. if test "x$ac_cv_prog_cc_c99" = x
  4205. then :
  4206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4207. printf "%s\n" "none needed" >&6; }
  4208. else $as_nop
  4209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4210. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4211. CC="$CC $ac_cv_prog_cc_c99"
  4212. fi
  4213. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4214. ac_prog_cc_stdc=c99
  4215. fi
  4216. fi
  4217. if test x$ac_prog_cc_stdc = xno
  4218. then :
  4219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4220. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4221. if test ${ac_cv_prog_cc_c89+y}
  4222. then :
  4223. printf %s "(cached) " >&6
  4224. else $as_nop
  4225. ac_cv_prog_cc_c89=no
  4226. ac_save_CC=$CC
  4227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4228. /* end confdefs.h. */
  4229. $ac_c_conftest_c89_program
  4230. _ACEOF
  4231. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4232. do
  4233. CC="$ac_save_CC $ac_arg"
  4234. if ac_fn_c_try_compile "$LINENO"
  4235. then :
  4236. ac_cv_prog_cc_c89=$ac_arg
  4237. fi
  4238. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4239. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4240. done
  4241. rm -f conftest.$ac_ext
  4242. CC=$ac_save_CC
  4243. fi
  4244. if test "x$ac_cv_prog_cc_c89" = xno
  4245. then :
  4246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4247. printf "%s\n" "unsupported" >&6; }
  4248. else $as_nop
  4249. if test "x$ac_cv_prog_cc_c89" = x
  4250. then :
  4251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4252. printf "%s\n" "none needed" >&6; }
  4253. else $as_nop
  4254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4255. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4256. CC="$CC $ac_cv_prog_cc_c89"
  4257. fi
  4258. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4259. ac_prog_cc_stdc=c89
  4260. fi
  4261. fi
  4262. ac_ext=c
  4263. ac_cpp='$CPP $CPPFLAGS'
  4264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4268. printf %s "checking for a sed that does not truncate output... " >&6; }
  4269. if test ${ac_cv_path_SED+y}
  4270. then :
  4271. printf %s "(cached) " >&6
  4272. else $as_nop
  4273. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4274. for ac_i in 1 2 3 4 5 6 7; do
  4275. ac_script="$ac_script$as_nl$ac_script"
  4276. done
  4277. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4278. { ac_script=; unset ac_script;}
  4279. if test -z "$SED"; then
  4280. ac_path_SED_found=false
  4281. # Loop through the user's path and test for each of PROGNAME-LIST
  4282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4283. for as_dir in $PATH
  4284. do
  4285. IFS=$as_save_IFS
  4286. case $as_dir in #(((
  4287. '') as_dir=./ ;;
  4288. */) ;;
  4289. *) as_dir=$as_dir/ ;;
  4290. esac
  4291. for ac_prog in sed gsed
  4292. do
  4293. for ac_exec_ext in '' $ac_executable_extensions; do
  4294. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4295. as_fn_executable_p "$ac_path_SED" || continue
  4296. # Check for GNU ac_path_SED and select it if it is found.
  4297. # Check for GNU $ac_path_SED
  4298. case `"$ac_path_SED" --version 2>&1` in
  4299. *GNU*)
  4300. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4301. *)
  4302. ac_count=0
  4303. printf %s 0123456789 >"conftest.in"
  4304. while :
  4305. do
  4306. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4307. mv "conftest.tmp" "conftest.in"
  4308. cp "conftest.in" "conftest.nl"
  4309. printf "%s\n" '' >> "conftest.nl"
  4310. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4311. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4312. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4313. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4314. # Best one so far, save it but keep looking for a better one
  4315. ac_cv_path_SED="$ac_path_SED"
  4316. ac_path_SED_max=$ac_count
  4317. fi
  4318. # 10*(2^10) chars as input seems more than enough
  4319. test $ac_count -gt 10 && break
  4320. done
  4321. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4322. esac
  4323. $ac_path_SED_found && break 3
  4324. done
  4325. done
  4326. done
  4327. IFS=$as_save_IFS
  4328. if test -z "$ac_cv_path_SED"; then
  4329. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4330. fi
  4331. else
  4332. ac_cv_path_SED=$SED
  4333. fi
  4334. fi
  4335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4336. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4337. SED="$ac_cv_path_SED"
  4338. rm -f conftest.sed
  4339. test -z "$SED" && SED=sed
  4340. Xsed="$SED -e 1s/^X//"
  4341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4342. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4343. if test ${ac_cv_path_GREP+y}
  4344. then :
  4345. printf %s "(cached) " >&6
  4346. else $as_nop
  4347. if test -z "$GREP"; then
  4348. ac_path_GREP_found=false
  4349. # Loop through the user's path and test for each of PROGNAME-LIST
  4350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4351. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4352. do
  4353. IFS=$as_save_IFS
  4354. case $as_dir in #(((
  4355. '') as_dir=./ ;;
  4356. */) ;;
  4357. *) as_dir=$as_dir/ ;;
  4358. esac
  4359. for ac_prog in grep ggrep
  4360. do
  4361. for ac_exec_ext in '' $ac_executable_extensions; do
  4362. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4363. as_fn_executable_p "$ac_path_GREP" || continue
  4364. # Check for GNU ac_path_GREP and select it if it is found.
  4365. # Check for GNU $ac_path_GREP
  4366. case `"$ac_path_GREP" --version 2>&1` in
  4367. *GNU*)
  4368. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4369. *)
  4370. ac_count=0
  4371. printf %s 0123456789 >"conftest.in"
  4372. while :
  4373. do
  4374. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4375. mv "conftest.tmp" "conftest.in"
  4376. cp "conftest.in" "conftest.nl"
  4377. printf "%s\n" 'GREP' >> "conftest.nl"
  4378. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4379. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4380. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4381. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4382. # Best one so far, save it but keep looking for a better one
  4383. ac_cv_path_GREP="$ac_path_GREP"
  4384. ac_path_GREP_max=$ac_count
  4385. fi
  4386. # 10*(2^10) chars as input seems more than enough
  4387. test $ac_count -gt 10 && break
  4388. done
  4389. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4390. esac
  4391. $ac_path_GREP_found && break 3
  4392. done
  4393. done
  4394. done
  4395. IFS=$as_save_IFS
  4396. if test -z "$ac_cv_path_GREP"; then
  4397. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4398. fi
  4399. else
  4400. ac_cv_path_GREP=$GREP
  4401. fi
  4402. fi
  4403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4404. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4405. GREP="$ac_cv_path_GREP"
  4406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4407. printf %s "checking for egrep... " >&6; }
  4408. if test ${ac_cv_path_EGREP+y}
  4409. then :
  4410. printf %s "(cached) " >&6
  4411. else $as_nop
  4412. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4413. then ac_cv_path_EGREP="$GREP -E"
  4414. else
  4415. if test -z "$EGREP"; then
  4416. ac_path_EGREP_found=false
  4417. # Loop through the user's path and test for each of PROGNAME-LIST
  4418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4419. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4420. do
  4421. IFS=$as_save_IFS
  4422. case $as_dir in #(((
  4423. '') as_dir=./ ;;
  4424. */) ;;
  4425. *) as_dir=$as_dir/ ;;
  4426. esac
  4427. for ac_prog in egrep
  4428. do
  4429. for ac_exec_ext in '' $ac_executable_extensions; do
  4430. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4431. as_fn_executable_p "$ac_path_EGREP" || continue
  4432. # Check for GNU ac_path_EGREP and select it if it is found.
  4433. # Check for GNU $ac_path_EGREP
  4434. case `"$ac_path_EGREP" --version 2>&1` in
  4435. *GNU*)
  4436. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4437. *)
  4438. ac_count=0
  4439. printf %s 0123456789 >"conftest.in"
  4440. while :
  4441. do
  4442. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4443. mv "conftest.tmp" "conftest.in"
  4444. cp "conftest.in" "conftest.nl"
  4445. printf "%s\n" 'EGREP' >> "conftest.nl"
  4446. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4447. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4448. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4449. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4450. # Best one so far, save it but keep looking for a better one
  4451. ac_cv_path_EGREP="$ac_path_EGREP"
  4452. ac_path_EGREP_max=$ac_count
  4453. fi
  4454. # 10*(2^10) chars as input seems more than enough
  4455. test $ac_count -gt 10 && break
  4456. done
  4457. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4458. esac
  4459. $ac_path_EGREP_found && break 3
  4460. done
  4461. done
  4462. done
  4463. IFS=$as_save_IFS
  4464. if test -z "$ac_cv_path_EGREP"; then
  4465. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4466. fi
  4467. else
  4468. ac_cv_path_EGREP=$EGREP
  4469. fi
  4470. fi
  4471. fi
  4472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4473. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4474. EGREP="$ac_cv_path_EGREP"
  4475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4476. printf %s "checking for fgrep... " >&6; }
  4477. if test ${ac_cv_path_FGREP+y}
  4478. then :
  4479. printf %s "(cached) " >&6
  4480. else $as_nop
  4481. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4482. then ac_cv_path_FGREP="$GREP -F"
  4483. else
  4484. if test -z "$FGREP"; then
  4485. ac_path_FGREP_found=false
  4486. # Loop through the user's path and test for each of PROGNAME-LIST
  4487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4488. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4489. do
  4490. IFS=$as_save_IFS
  4491. case $as_dir in #(((
  4492. '') as_dir=./ ;;
  4493. */) ;;
  4494. *) as_dir=$as_dir/ ;;
  4495. esac
  4496. for ac_prog in fgrep
  4497. do
  4498. for ac_exec_ext in '' $ac_executable_extensions; do
  4499. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4500. as_fn_executable_p "$ac_path_FGREP" || continue
  4501. # Check for GNU ac_path_FGREP and select it if it is found.
  4502. # Check for GNU $ac_path_FGREP
  4503. case `"$ac_path_FGREP" --version 2>&1` in
  4504. *GNU*)
  4505. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4506. *)
  4507. ac_count=0
  4508. printf %s 0123456789 >"conftest.in"
  4509. while :
  4510. do
  4511. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4512. mv "conftest.tmp" "conftest.in"
  4513. cp "conftest.in" "conftest.nl"
  4514. printf "%s\n" 'FGREP' >> "conftest.nl"
  4515. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4516. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4517. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4518. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4519. # Best one so far, save it but keep looking for a better one
  4520. ac_cv_path_FGREP="$ac_path_FGREP"
  4521. ac_path_FGREP_max=$ac_count
  4522. fi
  4523. # 10*(2^10) chars as input seems more than enough
  4524. test $ac_count -gt 10 && break
  4525. done
  4526. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4527. esac
  4528. $ac_path_FGREP_found && break 3
  4529. done
  4530. done
  4531. done
  4532. IFS=$as_save_IFS
  4533. if test -z "$ac_cv_path_FGREP"; then
  4534. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4535. fi
  4536. else
  4537. ac_cv_path_FGREP=$FGREP
  4538. fi
  4539. fi
  4540. fi
  4541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4542. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4543. FGREP="$ac_cv_path_FGREP"
  4544. test -z "$GREP" && GREP=grep
  4545. # Check whether --with-gnu-ld was given.
  4546. if test ${with_gnu_ld+y}
  4547. then :
  4548. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4549. else $as_nop
  4550. with_gnu_ld=no
  4551. fi
  4552. ac_prog=ld
  4553. if test yes = "$GCC"; then
  4554. # Check if gcc -print-prog-name=ld gives a path.
  4555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4556. printf %s "checking for ld used by $CC... " >&6; }
  4557. case $host in
  4558. *-*-mingw* | *-*-windows*)
  4559. # gcc leaves a trailing carriage return, which upsets mingw
  4560. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4561. *)
  4562. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4563. esac
  4564. case $ac_prog in
  4565. # Accept absolute paths.
  4566. [\\/]* | ?:[\\/]*)
  4567. re_direlt='/[^/][^/]*/\.\./'
  4568. # Canonicalize the pathname of ld
  4569. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4570. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4571. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4572. done
  4573. test -z "$LD" && LD=$ac_prog
  4574. ;;
  4575. "")
  4576. # If it fails, then pretend we aren't using GCC.
  4577. ac_prog=ld
  4578. ;;
  4579. *)
  4580. # If it is relative, then search for the first ld in PATH.
  4581. with_gnu_ld=unknown
  4582. ;;
  4583. esac
  4584. elif test yes = "$with_gnu_ld"; then
  4585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4586. printf %s "checking for GNU ld... " >&6; }
  4587. else
  4588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4589. printf %s "checking for non-GNU ld... " >&6; }
  4590. fi
  4591. if test ${lt_cv_path_LD+y}
  4592. then :
  4593. printf %s "(cached) " >&6
  4594. else $as_nop
  4595. if test -z "$LD"; then
  4596. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4597. for ac_dir in $PATH; do
  4598. IFS=$lt_save_ifs
  4599. test -z "$ac_dir" && ac_dir=.
  4600. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4601. lt_cv_path_LD=$ac_dir/$ac_prog
  4602. # Check to see if the program is GNU ld. I'd rather use --version,
  4603. # but apparently some variants of GNU ld only accept -v.
  4604. # Break only if it was the GNU/non-GNU ld that we prefer.
  4605. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4606. *GNU* | *'with BFD'*)
  4607. test no != "$with_gnu_ld" && break
  4608. ;;
  4609. *)
  4610. test yes != "$with_gnu_ld" && break
  4611. ;;
  4612. esac
  4613. fi
  4614. done
  4615. IFS=$lt_save_ifs
  4616. else
  4617. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4618. fi
  4619. fi
  4620. LD=$lt_cv_path_LD
  4621. if test -n "$LD"; then
  4622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4623. printf "%s\n" "$LD" >&6; }
  4624. else
  4625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4626. printf "%s\n" "no" >&6; }
  4627. fi
  4628. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4630. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4631. if test ${lt_cv_prog_gnu_ld+y}
  4632. then :
  4633. printf %s "(cached) " >&6
  4634. else $as_nop
  4635. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4636. case `$LD -v 2>&1 </dev/null` in
  4637. *GNU* | *'with BFD'*)
  4638. lt_cv_prog_gnu_ld=yes
  4639. ;;
  4640. *)
  4641. lt_cv_prog_gnu_ld=no
  4642. ;;
  4643. esac
  4644. fi
  4645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4646. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4647. with_gnu_ld=$lt_cv_prog_gnu_ld
  4648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4649. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4650. if test ${lt_cv_path_NM+y}
  4651. then :
  4652. printf %s "(cached) " >&6
  4653. else $as_nop
  4654. if test -n "$NM"; then
  4655. # Let the user override the test.
  4656. lt_cv_path_NM=$NM
  4657. else
  4658. lt_nm_to_check=${ac_tool_prefix}nm
  4659. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4660. lt_nm_to_check="$lt_nm_to_check nm"
  4661. fi
  4662. for lt_tmp_nm in $lt_nm_to_check; do
  4663. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4664. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4665. IFS=$lt_save_ifs
  4666. test -z "$ac_dir" && ac_dir=.
  4667. tmp_nm=$ac_dir/$lt_tmp_nm
  4668. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4669. # Check to see if the nm accepts a BSD-compat flag.
  4670. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4671. # nm: unknown option "B" ignored
  4672. # Tru64's nm complains that /dev/null is an invalid object file
  4673. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4674. case $build_os in
  4675. mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
  4676. *) lt_bad_file=/dev/null ;;
  4677. esac
  4678. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4679. *$lt_bad_file* | *'Invalid file or object type'*)
  4680. lt_cv_path_NM="$tmp_nm -B"
  4681. break 2
  4682. ;;
  4683. *)
  4684. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4685. */dev/null*)
  4686. lt_cv_path_NM="$tmp_nm -p"
  4687. break 2
  4688. ;;
  4689. *)
  4690. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4691. continue # so that we can try to find one that supports BSD flags
  4692. ;;
  4693. esac
  4694. ;;
  4695. esac
  4696. fi
  4697. done
  4698. IFS=$lt_save_ifs
  4699. done
  4700. : ${lt_cv_path_NM=no}
  4701. fi
  4702. fi
  4703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4704. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4705. if test no != "$lt_cv_path_NM"; then
  4706. NM=$lt_cv_path_NM
  4707. else
  4708. # Didn't find any BSD compatible name lister, look for dumpbin.
  4709. if test -n "$DUMPBIN"; then :
  4710. # Let the user override the test.
  4711. else
  4712. if test -n "$ac_tool_prefix"; then
  4713. for ac_prog in dumpbin "link -dump"
  4714. do
  4715. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4716. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4718. printf %s "checking for $ac_word... " >&6; }
  4719. if test ${ac_cv_prog_DUMPBIN+y}
  4720. then :
  4721. printf %s "(cached) " >&6
  4722. else $as_nop
  4723. if test -n "$DUMPBIN"; then
  4724. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4725. else
  4726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4727. for as_dir in $PATH
  4728. do
  4729. IFS=$as_save_IFS
  4730. case $as_dir in #(((
  4731. '') as_dir=./ ;;
  4732. */) ;;
  4733. *) as_dir=$as_dir/ ;;
  4734. esac
  4735. for ac_exec_ext in '' $ac_executable_extensions; do
  4736. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4737. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4738. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4739. break 2
  4740. fi
  4741. done
  4742. done
  4743. IFS=$as_save_IFS
  4744. fi
  4745. fi
  4746. DUMPBIN=$ac_cv_prog_DUMPBIN
  4747. if test -n "$DUMPBIN"; then
  4748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4749. printf "%s\n" "$DUMPBIN" >&6; }
  4750. else
  4751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4752. printf "%s\n" "no" >&6; }
  4753. fi
  4754. test -n "$DUMPBIN" && break
  4755. done
  4756. fi
  4757. if test -z "$DUMPBIN"; then
  4758. ac_ct_DUMPBIN=$DUMPBIN
  4759. for ac_prog in dumpbin "link -dump"
  4760. do
  4761. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4762. set dummy $ac_prog; ac_word=$2
  4763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4764. printf %s "checking for $ac_word... " >&6; }
  4765. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4766. then :
  4767. printf %s "(cached) " >&6
  4768. else $as_nop
  4769. if test -n "$ac_ct_DUMPBIN"; then
  4770. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4771. else
  4772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4773. for as_dir in $PATH
  4774. do
  4775. IFS=$as_save_IFS
  4776. case $as_dir in #(((
  4777. '') as_dir=./ ;;
  4778. */) ;;
  4779. *) as_dir=$as_dir/ ;;
  4780. esac
  4781. for ac_exec_ext in '' $ac_executable_extensions; do
  4782. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4783. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4784. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4785. break 2
  4786. fi
  4787. done
  4788. done
  4789. IFS=$as_save_IFS
  4790. fi
  4791. fi
  4792. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4793. if test -n "$ac_ct_DUMPBIN"; then
  4794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4795. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4796. else
  4797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4798. printf "%s\n" "no" >&6; }
  4799. fi
  4800. test -n "$ac_ct_DUMPBIN" && break
  4801. done
  4802. if test "x$ac_ct_DUMPBIN" = x; then
  4803. DUMPBIN=":"
  4804. else
  4805. case $cross_compiling:$ac_tool_warned in
  4806. yes:)
  4807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4808. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4809. ac_tool_warned=yes ;;
  4810. esac
  4811. DUMPBIN=$ac_ct_DUMPBIN
  4812. fi
  4813. fi
  4814. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4815. *COFF*)
  4816. DUMPBIN="$DUMPBIN -symbols -headers"
  4817. ;;
  4818. *)
  4819. DUMPBIN=:
  4820. ;;
  4821. esac
  4822. fi
  4823. if test : != "$DUMPBIN"; then
  4824. NM=$DUMPBIN
  4825. fi
  4826. fi
  4827. test -z "$NM" && NM=nm
  4828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4829. printf %s "checking the name lister ($NM) interface... " >&6; }
  4830. if test ${lt_cv_nm_interface+y}
  4831. then :
  4832. printf %s "(cached) " >&6
  4833. else $as_nop
  4834. lt_cv_nm_interface="BSD nm"
  4835. echo "int some_variable = 0;" > conftest.$ac_ext
  4836. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4837. (eval "$ac_compile" 2>conftest.err)
  4838. cat conftest.err >&5
  4839. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4840. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4841. cat conftest.err >&5
  4842. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4843. cat conftest.out >&5
  4844. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4845. lt_cv_nm_interface="MS dumpbin"
  4846. fi
  4847. rm -f conftest*
  4848. fi
  4849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4850. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4852. printf %s "checking whether ln -s works... " >&6; }
  4853. LN_S=$as_ln_s
  4854. if test "$LN_S" = "ln -s"; then
  4855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4856. printf "%s\n" "yes" >&6; }
  4857. else
  4858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4859. printf "%s\n" "no, using $LN_S" >&6; }
  4860. fi
  4861. # find the maximum length of command line arguments
  4862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4863. printf %s "checking the maximum length of command line arguments... " >&6; }
  4864. if test ${lt_cv_sys_max_cmd_len+y}
  4865. then :
  4866. printf %s "(cached) " >&6
  4867. else $as_nop
  4868. i=0
  4869. teststring=ABCD
  4870. case $build_os in
  4871. msdosdjgpp*)
  4872. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4873. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4874. # during glob expansion). Even if it were fixed, the result of this
  4875. # check would be larger than it should be.
  4876. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4877. ;;
  4878. gnu*)
  4879. # Under GNU Hurd, this test is not required because there is
  4880. # no limit to the length of command line arguments.
  4881. # Libtool will interpret -1 as no limit whatsoever
  4882. lt_cv_sys_max_cmd_len=-1;
  4883. ;;
  4884. cygwin* | mingw* | windows* | cegcc*)
  4885. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4886. # about 5 minutes as the teststring grows exponentially.
  4887. # Worse, since 9x/ME are not pre-emptively multitasking,
  4888. # you end up with a "frozen" computer, even though with patience
  4889. # the test eventually succeeds (with a max line length of 256k).
  4890. # Instead, let's just punt: use the minimum linelength reported by
  4891. # all of the supported platforms: 8192 (on NT/2K/XP).
  4892. lt_cv_sys_max_cmd_len=8192;
  4893. ;;
  4894. mint*)
  4895. # On MiNT this can take a long time and run out of memory.
  4896. lt_cv_sys_max_cmd_len=8192;
  4897. ;;
  4898. amigaos*)
  4899. # On AmigaOS with pdksh, this test takes hours, literally.
  4900. # So we just punt and use a minimum line length of 8192.
  4901. lt_cv_sys_max_cmd_len=8192;
  4902. ;;
  4903. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4904. # This has been around since 386BSD, at least. Likely further.
  4905. if test -x /sbin/sysctl; then
  4906. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4907. elif test -x /usr/sbin/sysctl; then
  4908. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4909. else
  4910. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4911. fi
  4912. # And add a safety zone
  4913. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4914. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4915. ;;
  4916. interix*)
  4917. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4918. lt_cv_sys_max_cmd_len=196608
  4919. ;;
  4920. os2*)
  4921. # The test takes a long time on OS/2.
  4922. lt_cv_sys_max_cmd_len=8192
  4923. ;;
  4924. osf*)
  4925. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4926. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4927. # nice to cause kernel panics so lets avoid the loop below.
  4928. # First set a reasonable default.
  4929. lt_cv_sys_max_cmd_len=16384
  4930. #
  4931. if test -x /sbin/sysconfig; then
  4932. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4933. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4934. esac
  4935. fi
  4936. ;;
  4937. sco3.2v5*)
  4938. lt_cv_sys_max_cmd_len=102400
  4939. ;;
  4940. sysv5* | sco5v6* | sysv4.2uw2*)
  4941. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4942. if test -n "$kargmax"; then
  4943. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4944. else
  4945. lt_cv_sys_max_cmd_len=32768
  4946. fi
  4947. ;;
  4948. *)
  4949. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4950. if test -n "$lt_cv_sys_max_cmd_len" && \
  4951. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4952. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4953. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4954. else
  4955. # Make teststring a little bigger before we do anything with it.
  4956. # a 1K string should be a reasonable start.
  4957. for i in 1 2 3 4 5 6 7 8; do
  4958. teststring=$teststring$teststring
  4959. done
  4960. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4961. # If test is not a shell built-in, we'll probably end up computing a
  4962. # maximum length that is only half of the actual maximum length, but
  4963. # we can't tell.
  4964. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4965. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4966. test 17 != "$i" # 1/2 MB should be enough
  4967. do
  4968. i=`expr $i + 1`
  4969. teststring=$teststring$teststring
  4970. done
  4971. # Only check the string length outside the loop.
  4972. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4973. teststring=
  4974. # Add a significant safety factor because C++ compilers can tack on
  4975. # massive amounts of additional arguments before passing them to the
  4976. # linker. It appears as though 1/2 is a usable value.
  4977. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4978. fi
  4979. ;;
  4980. esac
  4981. fi
  4982. if test -n "$lt_cv_sys_max_cmd_len"; then
  4983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4984. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4985. else
  4986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4987. printf "%s\n" "none" >&6; }
  4988. fi
  4989. max_cmd_len=$lt_cv_sys_max_cmd_len
  4990. : ${CP="cp -f"}
  4991. : ${MV="mv -f"}
  4992. : ${RM="rm -f"}
  4993. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4994. lt_unset=unset
  4995. else
  4996. lt_unset=false
  4997. fi
  4998. # test EBCDIC or ASCII
  4999. case `echo X|tr X '\101'` in
  5000. A) # ASCII based system
  5001. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5002. lt_SP2NL='tr \040 \012'
  5003. lt_NL2SP='tr \015\012 \040\040'
  5004. ;;
  5005. *) # EBCDIC based system
  5006. lt_SP2NL='tr \100 \n'
  5007. lt_NL2SP='tr \r\n \100\100'
  5008. ;;
  5009. esac
  5010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5011. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5012. if test ${lt_cv_to_host_file_cmd+y}
  5013. then :
  5014. printf %s "(cached) " >&6
  5015. else $as_nop
  5016. case $host in
  5017. *-*-mingw* )
  5018. case $build in
  5019. *-*-mingw* | *-*-windows* ) # actually msys
  5020. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5021. ;;
  5022. *-*-cygwin* )
  5023. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5024. ;;
  5025. * ) # otherwise, assume *nix
  5026. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5027. ;;
  5028. esac
  5029. ;;
  5030. *-*-cygwin* )
  5031. case $build in
  5032. *-*-mingw* | *-*-windows* ) # actually msys
  5033. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5034. ;;
  5035. *-*-cygwin* )
  5036. lt_cv_to_host_file_cmd=func_convert_file_noop
  5037. ;;
  5038. * ) # otherwise, assume *nix
  5039. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5040. ;;
  5041. esac
  5042. ;;
  5043. * ) # unhandled hosts (and "normal" native builds)
  5044. lt_cv_to_host_file_cmd=func_convert_file_noop
  5045. ;;
  5046. esac
  5047. fi
  5048. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5050. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5052. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5053. if test ${lt_cv_to_tool_file_cmd+y}
  5054. then :
  5055. printf %s "(cached) " >&6
  5056. else $as_nop
  5057. #assume ordinary cross tools, or native build.
  5058. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5059. case $host in
  5060. *-*-mingw* | *-*-windows* )
  5061. case $build in
  5062. *-*-mingw* | *-*-windows* ) # actually msys
  5063. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5064. ;;
  5065. esac
  5066. ;;
  5067. esac
  5068. fi
  5069. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5071. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5073. printf %s "checking for $LD option to reload object files... " >&6; }
  5074. if test ${lt_cv_ld_reload_flag+y}
  5075. then :
  5076. printf %s "(cached) " >&6
  5077. else $as_nop
  5078. lt_cv_ld_reload_flag='-r'
  5079. fi
  5080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5081. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5082. reload_flag=$lt_cv_ld_reload_flag
  5083. case $reload_flag in
  5084. "" | " "*) ;;
  5085. *) reload_flag=" $reload_flag" ;;
  5086. esac
  5087. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5088. case $host_os in
  5089. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5090. if test yes != "$GCC"; then
  5091. reload_cmds=false
  5092. fi
  5093. ;;
  5094. darwin*)
  5095. if test yes = "$GCC"; then
  5096. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5097. else
  5098. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5099. fi
  5100. ;;
  5101. esac
  5102. if test -n "$ac_tool_prefix"; then
  5103. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5104. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5106. printf %s "checking for $ac_word... " >&6; }
  5107. if test ${ac_cv_prog_OBJDUMP+y}
  5108. then :
  5109. printf %s "(cached) " >&6
  5110. else $as_nop
  5111. if test -n "$OBJDUMP"; then
  5112. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5113. else
  5114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5115. for as_dir in $PATH
  5116. do
  5117. IFS=$as_save_IFS
  5118. case $as_dir in #(((
  5119. '') as_dir=./ ;;
  5120. */) ;;
  5121. *) as_dir=$as_dir/ ;;
  5122. esac
  5123. for ac_exec_ext in '' $ac_executable_extensions; do
  5124. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5125. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5126. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5127. break 2
  5128. fi
  5129. done
  5130. done
  5131. IFS=$as_save_IFS
  5132. fi
  5133. fi
  5134. OBJDUMP=$ac_cv_prog_OBJDUMP
  5135. if test -n "$OBJDUMP"; then
  5136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5137. printf "%s\n" "$OBJDUMP" >&6; }
  5138. else
  5139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5140. printf "%s\n" "no" >&6; }
  5141. fi
  5142. fi
  5143. if test -z "$ac_cv_prog_OBJDUMP"; then
  5144. ac_ct_OBJDUMP=$OBJDUMP
  5145. # Extract the first word of "objdump", so it can be a program name with args.
  5146. set dummy objdump; ac_word=$2
  5147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5148. printf %s "checking for $ac_word... " >&6; }
  5149. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5150. then :
  5151. printf %s "(cached) " >&6
  5152. else $as_nop
  5153. if test -n "$ac_ct_OBJDUMP"; then
  5154. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5155. else
  5156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5157. for as_dir in $PATH
  5158. do
  5159. IFS=$as_save_IFS
  5160. case $as_dir in #(((
  5161. '') as_dir=./ ;;
  5162. */) ;;
  5163. *) as_dir=$as_dir/ ;;
  5164. esac
  5165. for ac_exec_ext in '' $ac_executable_extensions; do
  5166. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5167. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5168. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5169. break 2
  5170. fi
  5171. done
  5172. done
  5173. IFS=$as_save_IFS
  5174. fi
  5175. fi
  5176. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5177. if test -n "$ac_ct_OBJDUMP"; then
  5178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5179. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5180. else
  5181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5182. printf "%s\n" "no" >&6; }
  5183. fi
  5184. if test "x$ac_ct_OBJDUMP" = x; then
  5185. OBJDUMP="false"
  5186. else
  5187. case $cross_compiling:$ac_tool_warned in
  5188. yes:)
  5189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5190. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5191. ac_tool_warned=yes ;;
  5192. esac
  5193. OBJDUMP=$ac_ct_OBJDUMP
  5194. fi
  5195. else
  5196. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5197. fi
  5198. test -z "$OBJDUMP" && OBJDUMP=objdump
  5199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5200. printf %s "checking how to recognize dependent libraries... " >&6; }
  5201. if test ${lt_cv_deplibs_check_method+y}
  5202. then :
  5203. printf %s "(cached) " >&6
  5204. else $as_nop
  5205. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5206. lt_cv_file_magic_test_file=
  5207. lt_cv_deplibs_check_method='unknown'
  5208. # Need to set the preceding variable on all platforms that support
  5209. # interlibrary dependencies.
  5210. # 'none' -- dependencies not supported.
  5211. # 'unknown' -- same as none, but documents that we really don't know.
  5212. # 'pass_all' -- all dependencies passed with no checks.
  5213. # 'test_compile' -- check by making test program.
  5214. # 'file_magic [[regex]]' -- check by looking for files in library path
  5215. # that responds to the $file_magic_cmd with a given extended regex.
  5216. # If you have 'file' or equivalent on your system and you're not sure
  5217. # whether 'pass_all' will *always* work, you probably want this one.
  5218. case $host_os in
  5219. aix[4-9]*)
  5220. lt_cv_deplibs_check_method=pass_all
  5221. ;;
  5222. beos*)
  5223. lt_cv_deplibs_check_method=pass_all
  5224. ;;
  5225. bsdi[45]*)
  5226. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5227. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5228. lt_cv_file_magic_test_file=/shlib/libc.so
  5229. ;;
  5230. cygwin*)
  5231. # func_win32_libid is a shell function defined in ltmain.sh
  5232. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5233. lt_cv_file_magic_cmd='func_win32_libid'
  5234. lt_cv_deplibs_check_method=pass_all # SDL customization.
  5235. ;;
  5236. mingw* | windows* | pw32*)
  5237. # Base MSYS/MinGW do not provide the 'file' command needed by
  5238. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5239. # unless we find 'file', for example because we are cross-compiling.
  5240. if ( file / ) >/dev/null 2>&1; then
  5241. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5242. lt_cv_file_magic_cmd='func_win32_libid'
  5243. else
  5244. # Keep this pattern in sync with the one in func_win32_libid.
  5245. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
  5246. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5247. fi
  5248. lt_cv_deplibs_check_method=pass_all # SDL customization.
  5249. ;;
  5250. cegcc*)
  5251. # use the weaker test based on 'objdump'. See mingw*.
  5252. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5253. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5254. ;;
  5255. darwin* | rhapsody*)
  5256. lt_cv_deplibs_check_method=pass_all
  5257. ;;
  5258. freebsd* | dragonfly* | midnightbsd*)
  5259. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5260. case $host_cpu in
  5261. i*86 )
  5262. # Not sure whether the presence of OpenBSD here was a mistake.
  5263. # Let's accept both of them until this is cleared up.
  5264. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5265. lt_cv_file_magic_cmd=/usr/bin/file
  5266. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5267. ;;
  5268. esac
  5269. else
  5270. lt_cv_deplibs_check_method=pass_all
  5271. fi
  5272. ;;
  5273. haiku*)
  5274. lt_cv_deplibs_check_method=pass_all
  5275. ;;
  5276. hpux10.20* | hpux11*)
  5277. lt_cv_file_magic_cmd=/usr/bin/file
  5278. case $host_cpu in
  5279. ia64*)
  5280. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5281. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5282. ;;
  5283. hppa*64*)
  5284. 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]'
  5285. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5286. ;;
  5287. *)
  5288. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5289. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5290. ;;
  5291. esac
  5292. ;;
  5293. interix[3-9]*)
  5294. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5295. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5296. ;;
  5297. irix5* | irix6* | nonstopux*)
  5298. case $LD in
  5299. *-32|*"-32 ") libmagic=32-bit;;
  5300. *-n32|*"-n32 ") libmagic=N32;;
  5301. *-64|*"-64 ") libmagic=64-bit;;
  5302. *) libmagic=never-match;;
  5303. esac
  5304. lt_cv_deplibs_check_method=pass_all
  5305. ;;
  5306. # This must be glibc/ELF.
  5307. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5308. lt_cv_deplibs_check_method=pass_all
  5309. ;;
  5310. netbsd*)
  5311. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5312. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5313. else
  5314. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5315. fi
  5316. ;;
  5317. newos6*)
  5318. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5319. lt_cv_file_magic_cmd=/usr/bin/file
  5320. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5321. ;;
  5322. *nto* | *qnx*)
  5323. lt_cv_deplibs_check_method=pass_all
  5324. ;;
  5325. openbsd* | bitrig*)
  5326. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5327. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5328. else
  5329. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5330. fi
  5331. ;;
  5332. osf3* | osf4* | osf5*)
  5333. lt_cv_deplibs_check_method=pass_all
  5334. ;;
  5335. rdos*)
  5336. lt_cv_deplibs_check_method=pass_all
  5337. ;;
  5338. solaris*)
  5339. lt_cv_deplibs_check_method=pass_all
  5340. ;;
  5341. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5342. lt_cv_deplibs_check_method=pass_all
  5343. ;;
  5344. sysv4 | sysv4.3*)
  5345. case $host_vendor in
  5346. motorola)
  5347. 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]'
  5348. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5349. ;;
  5350. ncr)
  5351. lt_cv_deplibs_check_method=pass_all
  5352. ;;
  5353. sequent)
  5354. lt_cv_file_magic_cmd='/bin/file'
  5355. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5356. ;;
  5357. sni)
  5358. lt_cv_file_magic_cmd='/bin/file'
  5359. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5360. lt_cv_file_magic_test_file=/lib/libc.so
  5361. ;;
  5362. siemens)
  5363. lt_cv_deplibs_check_method=pass_all
  5364. ;;
  5365. pc)
  5366. lt_cv_deplibs_check_method=pass_all
  5367. ;;
  5368. esac
  5369. ;;
  5370. tpf*)
  5371. lt_cv_deplibs_check_method=pass_all
  5372. ;;
  5373. os2*)
  5374. lt_cv_deplibs_check_method=pass_all
  5375. ;;
  5376. esac
  5377. fi
  5378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5379. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5380. file_magic_glob=
  5381. want_nocaseglob=no
  5382. if test "$build" = "$host"; then
  5383. case $host_os in
  5384. mingw* | windows* | pw32*)
  5385. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5386. want_nocaseglob=yes
  5387. else
  5388. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5389. fi
  5390. ;;
  5391. esac
  5392. fi
  5393. file_magic_cmd=$lt_cv_file_magic_cmd
  5394. deplibs_check_method=$lt_cv_deplibs_check_method
  5395. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5396. if test -n "$ac_tool_prefix"; then
  5397. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5398. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5400. printf %s "checking for $ac_word... " >&6; }
  5401. if test ${ac_cv_prog_DLLTOOL+y}
  5402. then :
  5403. printf %s "(cached) " >&6
  5404. else $as_nop
  5405. if test -n "$DLLTOOL"; then
  5406. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5407. else
  5408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5409. for as_dir in $PATH
  5410. do
  5411. IFS=$as_save_IFS
  5412. case $as_dir in #(((
  5413. '') as_dir=./ ;;
  5414. */) ;;
  5415. *) as_dir=$as_dir/ ;;
  5416. esac
  5417. for ac_exec_ext in '' $ac_executable_extensions; do
  5418. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5419. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5420. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5421. break 2
  5422. fi
  5423. done
  5424. done
  5425. IFS=$as_save_IFS
  5426. fi
  5427. fi
  5428. DLLTOOL=$ac_cv_prog_DLLTOOL
  5429. if test -n "$DLLTOOL"; then
  5430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5431. printf "%s\n" "$DLLTOOL" >&6; }
  5432. else
  5433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5434. printf "%s\n" "no" >&6; }
  5435. fi
  5436. fi
  5437. if test -z "$ac_cv_prog_DLLTOOL"; then
  5438. ac_ct_DLLTOOL=$DLLTOOL
  5439. # Extract the first word of "dlltool", so it can be a program name with args.
  5440. set dummy dlltool; ac_word=$2
  5441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5442. printf %s "checking for $ac_word... " >&6; }
  5443. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5444. then :
  5445. printf %s "(cached) " >&6
  5446. else $as_nop
  5447. if test -n "$ac_ct_DLLTOOL"; then
  5448. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5449. else
  5450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5451. for as_dir in $PATH
  5452. do
  5453. IFS=$as_save_IFS
  5454. case $as_dir in #(((
  5455. '') as_dir=./ ;;
  5456. */) ;;
  5457. *) as_dir=$as_dir/ ;;
  5458. esac
  5459. for ac_exec_ext in '' $ac_executable_extensions; do
  5460. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5461. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5462. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5463. break 2
  5464. fi
  5465. done
  5466. done
  5467. IFS=$as_save_IFS
  5468. fi
  5469. fi
  5470. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5471. if test -n "$ac_ct_DLLTOOL"; then
  5472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5473. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5474. else
  5475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5476. printf "%s\n" "no" >&6; }
  5477. fi
  5478. if test "x$ac_ct_DLLTOOL" = x; then
  5479. DLLTOOL="false"
  5480. else
  5481. case $cross_compiling:$ac_tool_warned in
  5482. yes:)
  5483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5484. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5485. ac_tool_warned=yes ;;
  5486. esac
  5487. DLLTOOL=$ac_ct_DLLTOOL
  5488. fi
  5489. else
  5490. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5491. fi
  5492. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5494. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5495. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5496. then :
  5497. printf %s "(cached) " >&6
  5498. else $as_nop
  5499. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5500. case $host_os in
  5501. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5502. # two different shell functions defined in ltmain.sh;
  5503. # decide which one to use based on capabilities of $DLLTOOL
  5504. case `$DLLTOOL --help 2>&1` in
  5505. *--identify-strict*)
  5506. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5507. ;;
  5508. *)
  5509. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5510. ;;
  5511. esac
  5512. ;;
  5513. *)
  5514. # fallback: assume linklib IS sharedlib
  5515. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5516. ;;
  5517. esac
  5518. fi
  5519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5520. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5521. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5522. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5523. if test -n "$ac_tool_prefix"; then
  5524. for ac_prog in ar
  5525. do
  5526. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5527. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5529. printf %s "checking for $ac_word... " >&6; }
  5530. if test ${ac_cv_prog_AR+y}
  5531. then :
  5532. printf %s "(cached) " >&6
  5533. else $as_nop
  5534. if test -n "$AR"; then
  5535. ac_cv_prog_AR="$AR" # Let the user override the test.
  5536. else
  5537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5538. for as_dir in $PATH
  5539. do
  5540. IFS=$as_save_IFS
  5541. case $as_dir in #(((
  5542. '') as_dir=./ ;;
  5543. */) ;;
  5544. *) as_dir=$as_dir/ ;;
  5545. esac
  5546. for ac_exec_ext in '' $ac_executable_extensions; do
  5547. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5548. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5549. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5550. break 2
  5551. fi
  5552. done
  5553. done
  5554. IFS=$as_save_IFS
  5555. fi
  5556. fi
  5557. AR=$ac_cv_prog_AR
  5558. if test -n "$AR"; then
  5559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5560. printf "%s\n" "$AR" >&6; }
  5561. else
  5562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5563. printf "%s\n" "no" >&6; }
  5564. fi
  5565. test -n "$AR" && break
  5566. done
  5567. fi
  5568. if test -z "$AR"; then
  5569. ac_ct_AR=$AR
  5570. for ac_prog in ar
  5571. do
  5572. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5573. set dummy $ac_prog; ac_word=$2
  5574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5575. printf %s "checking for $ac_word... " >&6; }
  5576. if test ${ac_cv_prog_ac_ct_AR+y}
  5577. then :
  5578. printf %s "(cached) " >&6
  5579. else $as_nop
  5580. if test -n "$ac_ct_AR"; then
  5581. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5582. else
  5583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5584. for as_dir in $PATH
  5585. do
  5586. IFS=$as_save_IFS
  5587. case $as_dir in #(((
  5588. '') as_dir=./ ;;
  5589. */) ;;
  5590. *) as_dir=$as_dir/ ;;
  5591. esac
  5592. for ac_exec_ext in '' $ac_executable_extensions; do
  5593. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5594. ac_cv_prog_ac_ct_AR="$ac_prog"
  5595. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5596. break 2
  5597. fi
  5598. done
  5599. done
  5600. IFS=$as_save_IFS
  5601. fi
  5602. fi
  5603. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5604. if test -n "$ac_ct_AR"; then
  5605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5606. printf "%s\n" "$ac_ct_AR" >&6; }
  5607. else
  5608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5609. printf "%s\n" "no" >&6; }
  5610. fi
  5611. test -n "$ac_ct_AR" && break
  5612. done
  5613. if test "x$ac_ct_AR" = x; then
  5614. AR="false"
  5615. else
  5616. case $cross_compiling:$ac_tool_warned in
  5617. yes:)
  5618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5619. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5620. ac_tool_warned=yes ;;
  5621. esac
  5622. AR=$ac_ct_AR
  5623. fi
  5624. fi
  5625. : ${AR=ar}
  5626. : ${AR_FLAGS=cru}
  5627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5628. printf %s "checking for archiver @FILE support... " >&6; }
  5629. if test ${lt_cv_ar_at_file+y}
  5630. then :
  5631. printf %s "(cached) " >&6
  5632. else $as_nop
  5633. lt_cv_ar_at_file=no
  5634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5635. /* end confdefs.h. */
  5636. int
  5637. main (void)
  5638. {
  5639. ;
  5640. return 0;
  5641. }
  5642. _ACEOF
  5643. if ac_fn_c_try_compile "$LINENO"
  5644. then :
  5645. echo conftest.$ac_objext > conftest.lst
  5646. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5647. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5648. (eval $lt_ar_try) 2>&5
  5649. ac_status=$?
  5650. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5651. test $ac_status = 0; }
  5652. if test 0 -eq "$ac_status"; then
  5653. # Ensure the archiver fails upon bogus file names.
  5654. rm -f conftest.$ac_objext libconftest.a
  5655. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5656. (eval $lt_ar_try) 2>&5
  5657. ac_status=$?
  5658. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5659. test $ac_status = 0; }
  5660. if test 0 -ne "$ac_status"; then
  5661. lt_cv_ar_at_file=@
  5662. fi
  5663. fi
  5664. rm -f conftest.* libconftest.a
  5665. fi
  5666. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5667. fi
  5668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5669. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5670. if test no = "$lt_cv_ar_at_file"; then
  5671. archiver_list_spec=
  5672. else
  5673. archiver_list_spec=$lt_cv_ar_at_file
  5674. fi
  5675. if test -n "$ac_tool_prefix"; then
  5676. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5677. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5679. printf %s "checking for $ac_word... " >&6; }
  5680. if test ${ac_cv_prog_STRIP+y}
  5681. then :
  5682. printf %s "(cached) " >&6
  5683. else $as_nop
  5684. if test -n "$STRIP"; then
  5685. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5686. else
  5687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5688. for as_dir in $PATH
  5689. do
  5690. IFS=$as_save_IFS
  5691. case $as_dir in #(((
  5692. '') as_dir=./ ;;
  5693. */) ;;
  5694. *) as_dir=$as_dir/ ;;
  5695. esac
  5696. for ac_exec_ext in '' $ac_executable_extensions; do
  5697. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5698. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5699. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5700. break 2
  5701. fi
  5702. done
  5703. done
  5704. IFS=$as_save_IFS
  5705. fi
  5706. fi
  5707. STRIP=$ac_cv_prog_STRIP
  5708. if test -n "$STRIP"; then
  5709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5710. printf "%s\n" "$STRIP" >&6; }
  5711. else
  5712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5713. printf "%s\n" "no" >&6; }
  5714. fi
  5715. fi
  5716. if test -z "$ac_cv_prog_STRIP"; then
  5717. ac_ct_STRIP=$STRIP
  5718. # Extract the first word of "strip", so it can be a program name with args.
  5719. set dummy strip; ac_word=$2
  5720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5721. printf %s "checking for $ac_word... " >&6; }
  5722. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5723. then :
  5724. printf %s "(cached) " >&6
  5725. else $as_nop
  5726. if test -n "$ac_ct_STRIP"; then
  5727. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5728. else
  5729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5730. for as_dir in $PATH
  5731. do
  5732. IFS=$as_save_IFS
  5733. case $as_dir in #(((
  5734. '') as_dir=./ ;;
  5735. */) ;;
  5736. *) as_dir=$as_dir/ ;;
  5737. esac
  5738. for ac_exec_ext in '' $ac_executable_extensions; do
  5739. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5740. ac_cv_prog_ac_ct_STRIP="strip"
  5741. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5742. break 2
  5743. fi
  5744. done
  5745. done
  5746. IFS=$as_save_IFS
  5747. fi
  5748. fi
  5749. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5750. if test -n "$ac_ct_STRIP"; then
  5751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5752. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5753. else
  5754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5755. printf "%s\n" "no" >&6; }
  5756. fi
  5757. if test "x$ac_ct_STRIP" = x; then
  5758. STRIP=":"
  5759. else
  5760. case $cross_compiling:$ac_tool_warned in
  5761. yes:)
  5762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5763. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5764. ac_tool_warned=yes ;;
  5765. esac
  5766. STRIP=$ac_ct_STRIP
  5767. fi
  5768. else
  5769. STRIP="$ac_cv_prog_STRIP"
  5770. fi
  5771. test -z "$STRIP" && STRIP=:
  5772. if test -n "$ac_tool_prefix"; then
  5773. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5774. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5776. printf %s "checking for $ac_word... " >&6; }
  5777. if test ${ac_cv_prog_RANLIB+y}
  5778. then :
  5779. printf %s "(cached) " >&6
  5780. else $as_nop
  5781. if test -n "$RANLIB"; then
  5782. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5783. else
  5784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5785. for as_dir in $PATH
  5786. do
  5787. IFS=$as_save_IFS
  5788. case $as_dir in #(((
  5789. '') as_dir=./ ;;
  5790. */) ;;
  5791. *) as_dir=$as_dir/ ;;
  5792. esac
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5795. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5796. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. IFS=$as_save_IFS
  5802. fi
  5803. fi
  5804. RANLIB=$ac_cv_prog_RANLIB
  5805. if test -n "$RANLIB"; then
  5806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5807. printf "%s\n" "$RANLIB" >&6; }
  5808. else
  5809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5810. printf "%s\n" "no" >&6; }
  5811. fi
  5812. fi
  5813. if test -z "$ac_cv_prog_RANLIB"; then
  5814. ac_ct_RANLIB=$RANLIB
  5815. # Extract the first word of "ranlib", so it can be a program name with args.
  5816. set dummy ranlib; ac_word=$2
  5817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5818. printf %s "checking for $ac_word... " >&6; }
  5819. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5820. then :
  5821. printf %s "(cached) " >&6
  5822. else $as_nop
  5823. if test -n "$ac_ct_RANLIB"; then
  5824. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5825. else
  5826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5827. for as_dir in $PATH
  5828. do
  5829. IFS=$as_save_IFS
  5830. case $as_dir in #(((
  5831. '') as_dir=./ ;;
  5832. */) ;;
  5833. *) as_dir=$as_dir/ ;;
  5834. esac
  5835. for ac_exec_ext in '' $ac_executable_extensions; do
  5836. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5837. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5838. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5839. break 2
  5840. fi
  5841. done
  5842. done
  5843. IFS=$as_save_IFS
  5844. fi
  5845. fi
  5846. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5847. if test -n "$ac_ct_RANLIB"; then
  5848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5849. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5850. else
  5851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5852. printf "%s\n" "no" >&6; }
  5853. fi
  5854. if test "x$ac_ct_RANLIB" = x; then
  5855. RANLIB=":"
  5856. else
  5857. case $cross_compiling:$ac_tool_warned in
  5858. yes:)
  5859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5860. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5861. ac_tool_warned=yes ;;
  5862. esac
  5863. RANLIB=$ac_ct_RANLIB
  5864. fi
  5865. else
  5866. RANLIB="$ac_cv_prog_RANLIB"
  5867. fi
  5868. test -z "$RANLIB" && RANLIB=:
  5869. # Determine commands to create old-style static archives.
  5870. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5871. old_postinstall_cmds='chmod 644 $oldlib'
  5872. old_postuninstall_cmds=
  5873. if test -n "$RANLIB"; then
  5874. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5875. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5876. fi
  5877. case $host_os in
  5878. darwin*)
  5879. lock_old_archive_extraction=yes ;;
  5880. *)
  5881. lock_old_archive_extraction=no ;;
  5882. esac
  5883. for ac_prog in gawk mawk nawk awk
  5884. do
  5885. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5886. set dummy $ac_prog; ac_word=$2
  5887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5888. printf %s "checking for $ac_word... " >&6; }
  5889. if test ${ac_cv_prog_AWK+y}
  5890. then :
  5891. printf %s "(cached) " >&6
  5892. else $as_nop
  5893. if test -n "$AWK"; then
  5894. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5895. else
  5896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5897. for as_dir in $PATH
  5898. do
  5899. IFS=$as_save_IFS
  5900. case $as_dir in #(((
  5901. '') as_dir=./ ;;
  5902. */) ;;
  5903. *) as_dir=$as_dir/ ;;
  5904. esac
  5905. for ac_exec_ext in '' $ac_executable_extensions; do
  5906. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5907. ac_cv_prog_AWK="$ac_prog"
  5908. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5909. break 2
  5910. fi
  5911. done
  5912. done
  5913. IFS=$as_save_IFS
  5914. fi
  5915. fi
  5916. AWK=$ac_cv_prog_AWK
  5917. if test -n "$AWK"; then
  5918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5919. printf "%s\n" "$AWK" >&6; }
  5920. else
  5921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5922. printf "%s\n" "no" >&6; }
  5923. fi
  5924. test -n "$AWK" && break
  5925. done
  5926. # If no C compiler was specified, use CC.
  5927. LTCC=${LTCC-"$CC"}
  5928. # If no C compiler flags were specified, use CFLAGS.
  5929. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5930. # Allow CC to be a program name with arguments.
  5931. compiler=$CC
  5932. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5934. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5935. if test ${lt_cv_sys_global_symbol_pipe+y}
  5936. then :
  5937. printf %s "(cached) " >&6
  5938. else $as_nop
  5939. # These are sane defaults that work on at least a few old systems.
  5940. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5941. # Character class describing NM global symbol codes.
  5942. symcode='[BCDEGRST]'
  5943. # Regexp to match symbols that can be accessed directly from C.
  5944. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5945. # Define system-specific variables.
  5946. case $host_os in
  5947. aix*)
  5948. symcode='[BCDT]'
  5949. ;;
  5950. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5951. symcode='[ABCDGISTW]'
  5952. ;;
  5953. hpux*)
  5954. if test ia64 = "$host_cpu"; then
  5955. symcode='[ABCDEGRST]'
  5956. fi
  5957. ;;
  5958. irix* | nonstopux*)
  5959. symcode='[BCDEGRST]'
  5960. ;;
  5961. osf*)
  5962. symcode='[BCDEGQRST]'
  5963. ;;
  5964. solaris*)
  5965. symcode='[BCDRT]'
  5966. ;;
  5967. sco3.2v5*)
  5968. symcode='[DT]'
  5969. ;;
  5970. sysv4.2uw2*)
  5971. symcode='[DT]'
  5972. ;;
  5973. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5974. symcode='[ABDT]'
  5975. ;;
  5976. sysv4)
  5977. symcode='[DFNSTU]'
  5978. ;;
  5979. esac
  5980. # If we're using GNU nm, then use its standard symbol codes.
  5981. case `$NM -V 2>&1` in
  5982. *GNU* | *'with BFD'*)
  5983. symcode='[ABCDGIRSTW]' ;;
  5984. esac
  5985. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5986. # Gets list of data symbols to import.
  5987. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5988. # Adjust the below global symbol transforms to fixup imported variables.
  5989. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5990. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5991. lt_c_name_lib_hook="\
  5992. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5993. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5994. else
  5995. # Disable hooks by default.
  5996. lt_cv_sys_global_symbol_to_import=
  5997. lt_cdecl_hook=
  5998. lt_c_name_hook=
  5999. lt_c_name_lib_hook=
  6000. fi
  6001. # Transform an extracted symbol line into a proper C declaration.
  6002. # Some systems (esp. on ia64) link data and code symbols differently,
  6003. # so use this general approach.
  6004. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6005. $lt_cdecl_hook\
  6006. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6007. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6008. # Transform an extracted symbol line into symbol name and symbol address
  6009. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6010. $lt_c_name_hook\
  6011. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6012. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6013. # Transform an extracted symbol line into symbol name with lib prefix and
  6014. # symbol address.
  6015. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6016. $lt_c_name_lib_hook\
  6017. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6018. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6019. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6020. # Handle CRLF in mingw tool chain
  6021. opt_cr=
  6022. case $build_os in
  6023. mingw* | windows*)
  6024. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6025. ;;
  6026. esac
  6027. # Try without a prefix underscore, then with it.
  6028. for ac_symprfx in "" "_"; do
  6029. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6030. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6031. # Write the raw and C identifiers.
  6032. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6033. # Fake it for dumpbin and say T for any non-static function,
  6034. # D for any global variable and I for any imported variable.
  6035. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6036. # which start with @ or ?.
  6037. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6038. " {last_section=section; section=\$ 3};"\
  6039. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6040. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6041. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6042. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6043. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6044. " \$ 0!~/External *\|/{next};"\
  6045. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6046. " {if(hide[section]) next};"\
  6047. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6048. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6049. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6050. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6051. " ' prfx=^$ac_symprfx"
  6052. else
  6053. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6054. fi
  6055. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6056. # Check to see that the pipe works correctly.
  6057. pipe_works=no
  6058. rm -f conftest*
  6059. cat > conftest.$ac_ext <<_LT_EOF
  6060. #ifdef __cplusplus
  6061. extern "C" {
  6062. #endif
  6063. char nm_test_var;
  6064. void nm_test_func(void);
  6065. void nm_test_func(void){}
  6066. #ifdef __cplusplus
  6067. }
  6068. #endif
  6069. int main(void){nm_test_var='a';nm_test_func();return(0);}
  6070. _LT_EOF
  6071. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6072. (eval $ac_compile) 2>&5
  6073. ac_status=$?
  6074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6075. test $ac_status = 0; }; then
  6076. # Now try to grab the symbols.
  6077. nlist=conftest.nm
  6078. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6079. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6080. ac_status=$?
  6081. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6082. test $ac_status = 0; } && test -s "$nlist"; then
  6083. # Try sorting and uniquifying the output.
  6084. if sort "$nlist" | uniq > "$nlist"T; then
  6085. mv -f "$nlist"T "$nlist"
  6086. else
  6087. rm -f "$nlist"T
  6088. fi
  6089. # Make sure that we snagged all the symbols we need.
  6090. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6091. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6092. cat <<_LT_EOF > conftest.$ac_ext
  6093. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6094. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6095. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6096. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6097. # define LT_DLSYM_CONST
  6098. #elif defined __osf__
  6099. /* This system does not cope well with relocations in const data. */
  6100. # define LT_DLSYM_CONST
  6101. #else
  6102. # define LT_DLSYM_CONST const
  6103. #endif
  6104. #ifdef __cplusplus
  6105. extern "C" {
  6106. #endif
  6107. _LT_EOF
  6108. # Now generate the symbol file.
  6109. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6110. cat <<_LT_EOF >> conftest.$ac_ext
  6111. /* The mapping between symbol names and symbols. */
  6112. LT_DLSYM_CONST struct {
  6113. const char *name;
  6114. void *address;
  6115. }
  6116. lt__PROGRAM__LTX_preloaded_symbols[] =
  6117. {
  6118. { "@PROGRAM@", (void *) 0 },
  6119. _LT_EOF
  6120. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6121. cat <<\_LT_EOF >> conftest.$ac_ext
  6122. {0, (void *) 0}
  6123. };
  6124. /* This works around a problem in FreeBSD linker */
  6125. #ifdef FREEBSD_WORKAROUND
  6126. static const void *lt_preloaded_setup() {
  6127. return lt__PROGRAM__LTX_preloaded_symbols;
  6128. }
  6129. #endif
  6130. #ifdef __cplusplus
  6131. }
  6132. #endif
  6133. _LT_EOF
  6134. # Now try linking the two files.
  6135. mv conftest.$ac_objext conftstm.$ac_objext
  6136. lt_globsym_save_LIBS=$LIBS
  6137. lt_globsym_save_CFLAGS=$CFLAGS
  6138. LIBS=conftstm.$ac_objext
  6139. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6141. (eval $ac_link) 2>&5
  6142. ac_status=$?
  6143. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6144. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6145. pipe_works=yes
  6146. fi
  6147. LIBS=$lt_globsym_save_LIBS
  6148. CFLAGS=$lt_globsym_save_CFLAGS
  6149. else
  6150. echo "cannot find nm_test_func in $nlist" >&5
  6151. fi
  6152. else
  6153. echo "cannot find nm_test_var in $nlist" >&5
  6154. fi
  6155. else
  6156. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6157. fi
  6158. else
  6159. echo "$progname: failed program was:" >&5
  6160. cat conftest.$ac_ext >&5
  6161. fi
  6162. rm -rf conftest* conftst*
  6163. # Do not use the global_symbol_pipe unless it works.
  6164. if test yes = "$pipe_works"; then
  6165. break
  6166. else
  6167. lt_cv_sys_global_symbol_pipe=
  6168. fi
  6169. done
  6170. fi
  6171. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6172. lt_cv_sys_global_symbol_to_cdecl=
  6173. fi
  6174. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6176. printf "%s\n" "failed" >&6; }
  6177. else
  6178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6179. printf "%s\n" "ok" >&6; }
  6180. fi
  6181. # Response file support.
  6182. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6183. nm_file_list_spec='@'
  6184. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6185. nm_file_list_spec='@'
  6186. fi
  6187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6188. printf %s "checking for sysroot... " >&6; }
  6189. # Check whether --with-sysroot was given.
  6190. if test ${with_sysroot+y}
  6191. then :
  6192. withval=$with_sysroot;
  6193. else $as_nop
  6194. with_sysroot=no
  6195. fi
  6196. lt_sysroot=
  6197. case $with_sysroot in #(
  6198. yes)
  6199. if test yes = "$GCC"; then
  6200. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6201. fi
  6202. ;; #(
  6203. /*)
  6204. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6205. ;; #(
  6206. no|'')
  6207. ;; #(
  6208. *)
  6209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6210. printf "%s\n" "$with_sysroot" >&6; }
  6211. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6212. ;;
  6213. esac
  6214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6215. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6217. printf %s "checking for a working dd... " >&6; }
  6218. if test ${ac_cv_path_lt_DD+y}
  6219. then :
  6220. printf %s "(cached) " >&6
  6221. else $as_nop
  6222. printf 0123456789abcdef0123456789abcdef >conftest.i
  6223. cat conftest.i conftest.i >conftest2.i
  6224. : ${lt_DD:=$DD}
  6225. if test -z "$lt_DD"; then
  6226. ac_path_lt_DD_found=false
  6227. # Loop through the user's path and test for each of PROGNAME-LIST
  6228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6229. for as_dir in $PATH
  6230. do
  6231. IFS=$as_save_IFS
  6232. case $as_dir in #(((
  6233. '') as_dir=./ ;;
  6234. */) ;;
  6235. *) as_dir=$as_dir/ ;;
  6236. esac
  6237. for ac_prog in dd
  6238. do
  6239. for ac_exec_ext in '' $ac_executable_extensions; do
  6240. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6241. as_fn_executable_p "$ac_path_lt_DD" || continue
  6242. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6243. cmp -s conftest.i conftest.out \
  6244. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6245. fi
  6246. $ac_path_lt_DD_found && break 3
  6247. done
  6248. done
  6249. done
  6250. IFS=$as_save_IFS
  6251. if test -z "$ac_cv_path_lt_DD"; then
  6252. :
  6253. fi
  6254. else
  6255. ac_cv_path_lt_DD=$lt_DD
  6256. fi
  6257. rm -f conftest.i conftest2.i conftest.out
  6258. fi
  6259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6260. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6262. printf %s "checking how to truncate binary pipes... " >&6; }
  6263. if test ${lt_cv_truncate_bin+y}
  6264. then :
  6265. printf %s "(cached) " >&6
  6266. else $as_nop
  6267. printf 0123456789abcdef0123456789abcdef >conftest.i
  6268. cat conftest.i conftest.i >conftest2.i
  6269. lt_cv_truncate_bin=
  6270. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6271. cmp -s conftest.i conftest.out \
  6272. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6273. fi
  6274. rm -f conftest.i conftest2.i conftest.out
  6275. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6276. fi
  6277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6278. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6279. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6280. func_cc_basename ()
  6281. {
  6282. for cc_temp in $*""; do
  6283. case $cc_temp in
  6284. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6285. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6286. \-*) ;;
  6287. *) break;;
  6288. esac
  6289. done
  6290. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6291. }
  6292. # Check whether --enable-libtool-lock was given.
  6293. if test ${enable_libtool_lock+y}
  6294. then :
  6295. enableval=$enable_libtool_lock;
  6296. fi
  6297. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6298. # Some flags need to be propagated to the compiler or linker for good
  6299. # libtool support.
  6300. case $host in
  6301. ia64-*-hpux*)
  6302. # Find out what ABI is being produced by ac_compile, and set mode
  6303. # options accordingly.
  6304. echo 'int i;' > conftest.$ac_ext
  6305. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6306. (eval $ac_compile) 2>&5
  6307. ac_status=$?
  6308. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6309. test $ac_status = 0; }; then
  6310. case `/usr/bin/file conftest.$ac_objext` in
  6311. *ELF-32*)
  6312. HPUX_IA64_MODE=32
  6313. ;;
  6314. *ELF-64*)
  6315. HPUX_IA64_MODE=64
  6316. ;;
  6317. esac
  6318. fi
  6319. rm -rf conftest*
  6320. ;;
  6321. *-*-irix6*)
  6322. # Find out what ABI is being produced by ac_compile, and set linker
  6323. # options accordingly.
  6324. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6325. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6326. (eval $ac_compile) 2>&5
  6327. ac_status=$?
  6328. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6329. test $ac_status = 0; }; then
  6330. if test yes = "$lt_cv_prog_gnu_ld"; then
  6331. case `/usr/bin/file conftest.$ac_objext` in
  6332. *32-bit*)
  6333. LD="${LD-ld} -melf32bsmip"
  6334. ;;
  6335. *N32*)
  6336. LD="${LD-ld} -melf32bmipn32"
  6337. ;;
  6338. *64-bit*)
  6339. LD="${LD-ld} -melf64bmip"
  6340. ;;
  6341. esac
  6342. else
  6343. case `/usr/bin/file conftest.$ac_objext` in
  6344. *32-bit*)
  6345. LD="${LD-ld} -32"
  6346. ;;
  6347. *N32*)
  6348. LD="${LD-ld} -n32"
  6349. ;;
  6350. *64-bit*)
  6351. LD="${LD-ld} -64"
  6352. ;;
  6353. esac
  6354. fi
  6355. fi
  6356. rm -rf conftest*
  6357. ;;
  6358. mips64*-*linux*)
  6359. # Find out what ABI is being produced by ac_compile, and set linker
  6360. # options accordingly.
  6361. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6362. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6363. (eval $ac_compile) 2>&5
  6364. ac_status=$?
  6365. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6366. test $ac_status = 0; }; then
  6367. emul=elf
  6368. case `/usr/bin/file conftest.$ac_objext` in
  6369. *32-bit*)
  6370. emul="${emul}32"
  6371. ;;
  6372. *64-bit*)
  6373. emul="${emul}64"
  6374. ;;
  6375. esac
  6376. case `/usr/bin/file conftest.$ac_objext` in
  6377. *MSB*)
  6378. emul="${emul}btsmip"
  6379. ;;
  6380. *LSB*)
  6381. emul="${emul}ltsmip"
  6382. ;;
  6383. esac
  6384. case `/usr/bin/file conftest.$ac_objext` in
  6385. *N32*)
  6386. emul="${emul}n32"
  6387. ;;
  6388. esac
  6389. LD="${LD-ld} -m $emul"
  6390. fi
  6391. rm -rf conftest*
  6392. ;;
  6393. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6394. s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
  6395. # Find out what ABI is being produced by ac_compile, and set linker
  6396. # options accordingly. Note that the listed cases only cover the
  6397. # situations where additional linker options are needed (such as when
  6398. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6399. # vice versa); the common cases where no linker options are needed do
  6400. # not appear in the list.
  6401. echo 'int i;' > conftest.$ac_ext
  6402. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6403. (eval $ac_compile) 2>&5
  6404. ac_status=$?
  6405. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6406. test $ac_status = 0; }; then
  6407. case `/usr/bin/file conftest.o` in
  6408. *32-bit*)
  6409. case $host in
  6410. x86_64-*kfreebsd*-gnu)
  6411. LD="${LD-ld} -m elf_i386_fbsd"
  6412. ;;
  6413. x86_64-*linux*|x86_64-gnu*)
  6414. case `/usr/bin/file conftest.o` in
  6415. *x86-64*)
  6416. LD="${LD-ld} -m elf32_x86_64"
  6417. ;;
  6418. *)
  6419. LD="${LD-ld} -m elf_i386"
  6420. ;;
  6421. esac
  6422. ;;
  6423. powerpc64le-*linux*)
  6424. LD="${LD-ld} -m elf32lppclinux"
  6425. ;;
  6426. powerpc64-*linux*)
  6427. LD="${LD-ld} -m elf32ppclinux"
  6428. ;;
  6429. s390x-*linux*)
  6430. LD="${LD-ld} -m elf_s390"
  6431. ;;
  6432. sparc64-*linux*)
  6433. LD="${LD-ld} -m elf32_sparc"
  6434. ;;
  6435. esac
  6436. ;;
  6437. *64-bit*)
  6438. case $host in
  6439. x86_64-*kfreebsd*-gnu)
  6440. LD="${LD-ld} -m elf_x86_64_fbsd"
  6441. ;;
  6442. x86_64-*linux*|x86_64-gnu*)
  6443. LD="${LD-ld} -m elf_x86_64"
  6444. ;;
  6445. powerpcle-*linux*|powerpc64le-*linux*)
  6446. LD="${LD-ld} -m elf64lppc"
  6447. ;;
  6448. powerpc-*linux*|powerpc64-*linux*)
  6449. LD="${LD-ld} -m elf64ppc"
  6450. ;;
  6451. s390*-*linux*|s390*-*tpf*)
  6452. LD="${LD-ld} -m elf64_s390"
  6453. ;;
  6454. sparc*-*linux*)
  6455. LD="${LD-ld} -m elf64_sparc"
  6456. ;;
  6457. esac
  6458. ;;
  6459. esac
  6460. fi
  6461. rm -rf conftest*
  6462. ;;
  6463. *-*-sco3.2v5*)
  6464. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6465. SAVE_CFLAGS=$CFLAGS
  6466. CFLAGS="$CFLAGS -belf"
  6467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6468. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6469. if test ${lt_cv_cc_needs_belf+y}
  6470. then :
  6471. printf %s "(cached) " >&6
  6472. else $as_nop
  6473. ac_ext=c
  6474. ac_cpp='$CPP $CPPFLAGS'
  6475. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6476. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6477. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6479. /* end confdefs.h. */
  6480. int
  6481. main (void)
  6482. {
  6483. ;
  6484. return 0;
  6485. }
  6486. _ACEOF
  6487. if ac_fn_c_try_link "$LINENO"
  6488. then :
  6489. lt_cv_cc_needs_belf=yes
  6490. else $as_nop
  6491. lt_cv_cc_needs_belf=no
  6492. fi
  6493. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6494. conftest$ac_exeext conftest.$ac_ext
  6495. ac_ext=c
  6496. ac_cpp='$CPP $CPPFLAGS'
  6497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6500. fi
  6501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6502. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6503. if test yes != "$lt_cv_cc_needs_belf"; then
  6504. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6505. CFLAGS=$SAVE_CFLAGS
  6506. fi
  6507. ;;
  6508. *-*solaris*)
  6509. # Find out what ABI is being produced by ac_compile, and set linker
  6510. # options accordingly.
  6511. echo 'int i;' > conftest.$ac_ext
  6512. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6513. (eval $ac_compile) 2>&5
  6514. ac_status=$?
  6515. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6516. test $ac_status = 0; }; then
  6517. case `/usr/bin/file conftest.o` in
  6518. *64-bit*)
  6519. case $lt_cv_prog_gnu_ld in
  6520. yes*)
  6521. case $host in
  6522. i?86-*-solaris*|x86_64-*-solaris*)
  6523. LD="${LD-ld} -m elf_x86_64"
  6524. ;;
  6525. sparc*-*-solaris*)
  6526. LD="${LD-ld} -m elf64_sparc"
  6527. ;;
  6528. esac
  6529. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6530. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6531. LD=${LD-ld}_sol2
  6532. fi
  6533. ;;
  6534. *)
  6535. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6536. LD="${LD-ld} -64"
  6537. fi
  6538. ;;
  6539. esac
  6540. ;;
  6541. esac
  6542. fi
  6543. rm -rf conftest*
  6544. ;;
  6545. esac
  6546. need_locks=$enable_libtool_lock
  6547. if test -n "$ac_tool_prefix"; then
  6548. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6549. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6551. printf %s "checking for $ac_word... " >&6; }
  6552. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6553. then :
  6554. printf %s "(cached) " >&6
  6555. else $as_nop
  6556. if test -n "$MANIFEST_TOOL"; then
  6557. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6558. else
  6559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6560. for as_dir in $PATH
  6561. do
  6562. IFS=$as_save_IFS
  6563. case $as_dir in #(((
  6564. '') as_dir=./ ;;
  6565. */) ;;
  6566. *) as_dir=$as_dir/ ;;
  6567. esac
  6568. for ac_exec_ext in '' $ac_executable_extensions; do
  6569. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6570. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6571. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6572. break 2
  6573. fi
  6574. done
  6575. done
  6576. IFS=$as_save_IFS
  6577. fi
  6578. fi
  6579. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6580. if test -n "$MANIFEST_TOOL"; then
  6581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6582. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6583. else
  6584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6585. printf "%s\n" "no" >&6; }
  6586. fi
  6587. fi
  6588. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6589. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6590. # Extract the first word of "mt", so it can be a program name with args.
  6591. set dummy mt; ac_word=$2
  6592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6593. printf %s "checking for $ac_word... " >&6; }
  6594. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6595. then :
  6596. printf %s "(cached) " >&6
  6597. else $as_nop
  6598. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6599. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6600. else
  6601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6602. for as_dir in $PATH
  6603. do
  6604. IFS=$as_save_IFS
  6605. case $as_dir in #(((
  6606. '') as_dir=./ ;;
  6607. */) ;;
  6608. *) as_dir=$as_dir/ ;;
  6609. esac
  6610. for ac_exec_ext in '' $ac_executable_extensions; do
  6611. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6612. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6613. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6614. break 2
  6615. fi
  6616. done
  6617. done
  6618. IFS=$as_save_IFS
  6619. fi
  6620. fi
  6621. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6622. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6624. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6625. else
  6626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6627. printf "%s\n" "no" >&6; }
  6628. fi
  6629. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6630. MANIFEST_TOOL=":"
  6631. else
  6632. case $cross_compiling:$ac_tool_warned in
  6633. yes:)
  6634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6635. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6636. ac_tool_warned=yes ;;
  6637. esac
  6638. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6639. fi
  6640. else
  6641. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6642. fi
  6643. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6645. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6646. if test ${lt_cv_path_mainfest_tool+y}
  6647. then :
  6648. printf %s "(cached) " >&6
  6649. else $as_nop
  6650. lt_cv_path_mainfest_tool=no
  6651. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6652. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6653. cat conftest.err >&5
  6654. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6655. lt_cv_path_mainfest_tool=yes
  6656. fi
  6657. rm -f conftest*
  6658. fi
  6659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6660. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6661. if test yes != "$lt_cv_path_mainfest_tool"; then
  6662. MANIFEST_TOOL=:
  6663. fi
  6664. case $host_os in
  6665. rhapsody* | darwin*)
  6666. if test -n "$ac_tool_prefix"; then
  6667. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6668. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6670. printf %s "checking for $ac_word... " >&6; }
  6671. if test ${ac_cv_prog_DSYMUTIL+y}
  6672. then :
  6673. printf %s "(cached) " >&6
  6674. else $as_nop
  6675. if test -n "$DSYMUTIL"; then
  6676. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6677. else
  6678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6679. for as_dir in $PATH
  6680. do
  6681. IFS=$as_save_IFS
  6682. case $as_dir in #(((
  6683. '') as_dir=./ ;;
  6684. */) ;;
  6685. *) as_dir=$as_dir/ ;;
  6686. esac
  6687. for ac_exec_ext in '' $ac_executable_extensions; do
  6688. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6689. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6690. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6691. break 2
  6692. fi
  6693. done
  6694. done
  6695. IFS=$as_save_IFS
  6696. fi
  6697. fi
  6698. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6699. if test -n "$DSYMUTIL"; then
  6700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6701. printf "%s\n" "$DSYMUTIL" >&6; }
  6702. else
  6703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6704. printf "%s\n" "no" >&6; }
  6705. fi
  6706. fi
  6707. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6708. ac_ct_DSYMUTIL=$DSYMUTIL
  6709. # Extract the first word of "dsymutil", so it can be a program name with args.
  6710. set dummy dsymutil; ac_word=$2
  6711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6712. printf %s "checking for $ac_word... " >&6; }
  6713. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6714. then :
  6715. printf %s "(cached) " >&6
  6716. else $as_nop
  6717. if test -n "$ac_ct_DSYMUTIL"; then
  6718. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6719. else
  6720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6721. for as_dir in $PATH
  6722. do
  6723. IFS=$as_save_IFS
  6724. case $as_dir in #(((
  6725. '') as_dir=./ ;;
  6726. */) ;;
  6727. *) as_dir=$as_dir/ ;;
  6728. esac
  6729. for ac_exec_ext in '' $ac_executable_extensions; do
  6730. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6731. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6733. break 2
  6734. fi
  6735. done
  6736. done
  6737. IFS=$as_save_IFS
  6738. fi
  6739. fi
  6740. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6741. if test -n "$ac_ct_DSYMUTIL"; then
  6742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6743. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6744. else
  6745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6746. printf "%s\n" "no" >&6; }
  6747. fi
  6748. if test "x$ac_ct_DSYMUTIL" = x; then
  6749. DSYMUTIL=":"
  6750. else
  6751. case $cross_compiling:$ac_tool_warned in
  6752. yes:)
  6753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6754. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6755. ac_tool_warned=yes ;;
  6756. esac
  6757. DSYMUTIL=$ac_ct_DSYMUTIL
  6758. fi
  6759. else
  6760. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6761. fi
  6762. if test -n "$ac_tool_prefix"; then
  6763. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6764. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6766. printf %s "checking for $ac_word... " >&6; }
  6767. if test ${ac_cv_prog_NMEDIT+y}
  6768. then :
  6769. printf %s "(cached) " >&6
  6770. else $as_nop
  6771. if test -n "$NMEDIT"; then
  6772. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6773. else
  6774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6775. for as_dir in $PATH
  6776. do
  6777. IFS=$as_save_IFS
  6778. case $as_dir in #(((
  6779. '') as_dir=./ ;;
  6780. */) ;;
  6781. *) as_dir=$as_dir/ ;;
  6782. esac
  6783. for ac_exec_ext in '' $ac_executable_extensions; do
  6784. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6785. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6786. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6787. break 2
  6788. fi
  6789. done
  6790. done
  6791. IFS=$as_save_IFS
  6792. fi
  6793. fi
  6794. NMEDIT=$ac_cv_prog_NMEDIT
  6795. if test -n "$NMEDIT"; then
  6796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6797. printf "%s\n" "$NMEDIT" >&6; }
  6798. else
  6799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6800. printf "%s\n" "no" >&6; }
  6801. fi
  6802. fi
  6803. if test -z "$ac_cv_prog_NMEDIT"; then
  6804. ac_ct_NMEDIT=$NMEDIT
  6805. # Extract the first word of "nmedit", so it can be a program name with args.
  6806. set dummy nmedit; ac_word=$2
  6807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6808. printf %s "checking for $ac_word... " >&6; }
  6809. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6810. then :
  6811. printf %s "(cached) " >&6
  6812. else $as_nop
  6813. if test -n "$ac_ct_NMEDIT"; then
  6814. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6815. else
  6816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6817. for as_dir in $PATH
  6818. do
  6819. IFS=$as_save_IFS
  6820. case $as_dir in #(((
  6821. '') as_dir=./ ;;
  6822. */) ;;
  6823. *) as_dir=$as_dir/ ;;
  6824. esac
  6825. for ac_exec_ext in '' $ac_executable_extensions; do
  6826. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6827. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6828. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6829. break 2
  6830. fi
  6831. done
  6832. done
  6833. IFS=$as_save_IFS
  6834. fi
  6835. fi
  6836. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6837. if test -n "$ac_ct_NMEDIT"; then
  6838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6839. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6840. else
  6841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6842. printf "%s\n" "no" >&6; }
  6843. fi
  6844. if test "x$ac_ct_NMEDIT" = x; then
  6845. NMEDIT=":"
  6846. else
  6847. case $cross_compiling:$ac_tool_warned in
  6848. yes:)
  6849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6850. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6851. ac_tool_warned=yes ;;
  6852. esac
  6853. NMEDIT=$ac_ct_NMEDIT
  6854. fi
  6855. else
  6856. NMEDIT="$ac_cv_prog_NMEDIT"
  6857. fi
  6858. if test -n "$ac_tool_prefix"; then
  6859. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6860. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6862. printf %s "checking for $ac_word... " >&6; }
  6863. if test ${ac_cv_prog_LIPO+y}
  6864. then :
  6865. printf %s "(cached) " >&6
  6866. else $as_nop
  6867. if test -n "$LIPO"; then
  6868. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6869. else
  6870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6871. for as_dir in $PATH
  6872. do
  6873. IFS=$as_save_IFS
  6874. case $as_dir in #(((
  6875. '') as_dir=./ ;;
  6876. */) ;;
  6877. *) as_dir=$as_dir/ ;;
  6878. esac
  6879. for ac_exec_ext in '' $ac_executable_extensions; do
  6880. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6881. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6882. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6883. break 2
  6884. fi
  6885. done
  6886. done
  6887. IFS=$as_save_IFS
  6888. fi
  6889. fi
  6890. LIPO=$ac_cv_prog_LIPO
  6891. if test -n "$LIPO"; then
  6892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6893. printf "%s\n" "$LIPO" >&6; }
  6894. else
  6895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6896. printf "%s\n" "no" >&6; }
  6897. fi
  6898. fi
  6899. if test -z "$ac_cv_prog_LIPO"; then
  6900. ac_ct_LIPO=$LIPO
  6901. # Extract the first word of "lipo", so it can be a program name with args.
  6902. set dummy lipo; ac_word=$2
  6903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6904. printf %s "checking for $ac_word... " >&6; }
  6905. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6906. then :
  6907. printf %s "(cached) " >&6
  6908. else $as_nop
  6909. if test -n "$ac_ct_LIPO"; then
  6910. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6911. else
  6912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6913. for as_dir in $PATH
  6914. do
  6915. IFS=$as_save_IFS
  6916. case $as_dir in #(((
  6917. '') as_dir=./ ;;
  6918. */) ;;
  6919. *) as_dir=$as_dir/ ;;
  6920. esac
  6921. for ac_exec_ext in '' $ac_executable_extensions; do
  6922. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6923. ac_cv_prog_ac_ct_LIPO="lipo"
  6924. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6925. break 2
  6926. fi
  6927. done
  6928. done
  6929. IFS=$as_save_IFS
  6930. fi
  6931. fi
  6932. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6933. if test -n "$ac_ct_LIPO"; then
  6934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6935. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6936. else
  6937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6938. printf "%s\n" "no" >&6; }
  6939. fi
  6940. if test "x$ac_ct_LIPO" = x; then
  6941. LIPO=":"
  6942. else
  6943. case $cross_compiling:$ac_tool_warned in
  6944. yes:)
  6945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6946. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6947. ac_tool_warned=yes ;;
  6948. esac
  6949. LIPO=$ac_ct_LIPO
  6950. fi
  6951. else
  6952. LIPO="$ac_cv_prog_LIPO"
  6953. fi
  6954. if test -n "$ac_tool_prefix"; then
  6955. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6956. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6958. printf %s "checking for $ac_word... " >&6; }
  6959. if test ${ac_cv_prog_OTOOL+y}
  6960. then :
  6961. printf %s "(cached) " >&6
  6962. else $as_nop
  6963. if test -n "$OTOOL"; then
  6964. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6965. else
  6966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6967. for as_dir in $PATH
  6968. do
  6969. IFS=$as_save_IFS
  6970. case $as_dir in #(((
  6971. '') as_dir=./ ;;
  6972. */) ;;
  6973. *) as_dir=$as_dir/ ;;
  6974. esac
  6975. for ac_exec_ext in '' $ac_executable_extensions; do
  6976. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6977. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6978. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6979. break 2
  6980. fi
  6981. done
  6982. done
  6983. IFS=$as_save_IFS
  6984. fi
  6985. fi
  6986. OTOOL=$ac_cv_prog_OTOOL
  6987. if test -n "$OTOOL"; then
  6988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6989. printf "%s\n" "$OTOOL" >&6; }
  6990. else
  6991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6992. printf "%s\n" "no" >&6; }
  6993. fi
  6994. fi
  6995. if test -z "$ac_cv_prog_OTOOL"; then
  6996. ac_ct_OTOOL=$OTOOL
  6997. # Extract the first word of "otool", so it can be a program name with args.
  6998. set dummy otool; ac_word=$2
  6999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7000. printf %s "checking for $ac_word... " >&6; }
  7001. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7002. then :
  7003. printf %s "(cached) " >&6
  7004. else $as_nop
  7005. if test -n "$ac_ct_OTOOL"; then
  7006. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7007. else
  7008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7009. for as_dir in $PATH
  7010. do
  7011. IFS=$as_save_IFS
  7012. case $as_dir in #(((
  7013. '') as_dir=./ ;;
  7014. */) ;;
  7015. *) as_dir=$as_dir/ ;;
  7016. esac
  7017. for ac_exec_ext in '' $ac_executable_extensions; do
  7018. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7019. ac_cv_prog_ac_ct_OTOOL="otool"
  7020. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7021. break 2
  7022. fi
  7023. done
  7024. done
  7025. IFS=$as_save_IFS
  7026. fi
  7027. fi
  7028. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7029. if test -n "$ac_ct_OTOOL"; then
  7030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7031. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7032. else
  7033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7034. printf "%s\n" "no" >&6; }
  7035. fi
  7036. if test "x$ac_ct_OTOOL" = x; then
  7037. OTOOL=":"
  7038. else
  7039. case $cross_compiling:$ac_tool_warned in
  7040. yes:)
  7041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7042. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7043. ac_tool_warned=yes ;;
  7044. esac
  7045. OTOOL=$ac_ct_OTOOL
  7046. fi
  7047. else
  7048. OTOOL="$ac_cv_prog_OTOOL"
  7049. fi
  7050. if test -n "$ac_tool_prefix"; then
  7051. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7052. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7054. printf %s "checking for $ac_word... " >&6; }
  7055. if test ${ac_cv_prog_OTOOL64+y}
  7056. then :
  7057. printf %s "(cached) " >&6
  7058. else $as_nop
  7059. if test -n "$OTOOL64"; then
  7060. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7061. else
  7062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7063. for as_dir in $PATH
  7064. do
  7065. IFS=$as_save_IFS
  7066. case $as_dir in #(((
  7067. '') as_dir=./ ;;
  7068. */) ;;
  7069. *) as_dir=$as_dir/ ;;
  7070. esac
  7071. for ac_exec_ext in '' $ac_executable_extensions; do
  7072. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7073. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7075. break 2
  7076. fi
  7077. done
  7078. done
  7079. IFS=$as_save_IFS
  7080. fi
  7081. fi
  7082. OTOOL64=$ac_cv_prog_OTOOL64
  7083. if test -n "$OTOOL64"; then
  7084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7085. printf "%s\n" "$OTOOL64" >&6; }
  7086. else
  7087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7088. printf "%s\n" "no" >&6; }
  7089. fi
  7090. fi
  7091. if test -z "$ac_cv_prog_OTOOL64"; then
  7092. ac_ct_OTOOL64=$OTOOL64
  7093. # Extract the first word of "otool64", so it can be a program name with args.
  7094. set dummy otool64; ac_word=$2
  7095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7096. printf %s "checking for $ac_word... " >&6; }
  7097. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7098. then :
  7099. printf %s "(cached) " >&6
  7100. else $as_nop
  7101. if test -n "$ac_ct_OTOOL64"; then
  7102. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7103. else
  7104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7105. for as_dir in $PATH
  7106. do
  7107. IFS=$as_save_IFS
  7108. case $as_dir in #(((
  7109. '') as_dir=./ ;;
  7110. */) ;;
  7111. *) as_dir=$as_dir/ ;;
  7112. esac
  7113. for ac_exec_ext in '' $ac_executable_extensions; do
  7114. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7115. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7116. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7117. break 2
  7118. fi
  7119. done
  7120. done
  7121. IFS=$as_save_IFS
  7122. fi
  7123. fi
  7124. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7125. if test -n "$ac_ct_OTOOL64"; then
  7126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7127. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7128. else
  7129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7130. printf "%s\n" "no" >&6; }
  7131. fi
  7132. if test "x$ac_ct_OTOOL64" = x; then
  7133. OTOOL64=":"
  7134. else
  7135. case $cross_compiling:$ac_tool_warned in
  7136. yes:)
  7137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7138. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7139. ac_tool_warned=yes ;;
  7140. esac
  7141. OTOOL64=$ac_ct_OTOOL64
  7142. fi
  7143. else
  7144. OTOOL64="$ac_cv_prog_OTOOL64"
  7145. fi
  7146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7147. printf %s "checking for -single_module linker flag... " >&6; }
  7148. if test ${lt_cv_apple_cc_single_mod+y}
  7149. then :
  7150. printf %s "(cached) " >&6
  7151. else $as_nop
  7152. lt_cv_apple_cc_single_mod=no
  7153. if test -z "$LT_MULTI_MODULE"; then
  7154. # By default we will add the -single_module flag. You can override
  7155. # by either setting the environment variable LT_MULTI_MODULE
  7156. # non-empty at configure time, or by adding -multi_module to the
  7157. # link flags.
  7158. rm -rf libconftest.dylib*
  7159. echo "int foo(void){return 1;}" > conftest.c
  7160. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7161. -dynamiclib -Wl,-single_module conftest.c" >&5
  7162. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7163. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7164. _lt_result=$?
  7165. # If there is a non-empty error log, and "single_module"
  7166. # appears in it, assume the flag caused a linker warning
  7167. if test -s conftest.err && $GREP single_module conftest.err; then
  7168. cat conftest.err >&5
  7169. # Otherwise, if the output was created with a 0 exit code from
  7170. # the compiler, it worked.
  7171. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7172. lt_cv_apple_cc_single_mod=yes
  7173. else
  7174. cat conftest.err >&5
  7175. fi
  7176. rm -rf libconftest.dylib*
  7177. rm -f conftest.*
  7178. fi
  7179. fi
  7180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7181. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7182. # Feature test to disable chained fixups since it is not
  7183. # compatible with '-undefined dynamic_lookup'
  7184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
  7185. printf %s "checking for -no_fixup_chains linker flag... " >&6; }
  7186. if test ${lt_cv_support_no_fixup_chains+y}
  7187. then :
  7188. printf %s "(cached) " >&6
  7189. else $as_nop
  7190. save_LDFLAGS=$LDFLAGS
  7191. LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
  7192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7193. /* end confdefs.h. */
  7194. int
  7195. main (void)
  7196. {
  7197. ;
  7198. return 0;
  7199. }
  7200. _ACEOF
  7201. if ac_fn_c_try_link "$LINENO"
  7202. then :
  7203. lt_cv_support_no_fixup_chains=yes
  7204. else $as_nop
  7205. lt_cv_support_no_fixup_chains=no
  7206. fi
  7207. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7208. conftest$ac_exeext conftest.$ac_ext
  7209. LDFLAGS=$save_LDFLAGS
  7210. fi
  7211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
  7212. printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
  7213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7214. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7215. if test ${lt_cv_ld_exported_symbols_list+y}
  7216. then :
  7217. printf %s "(cached) " >&6
  7218. else $as_nop
  7219. lt_cv_ld_exported_symbols_list=no
  7220. save_LDFLAGS=$LDFLAGS
  7221. echo "_main" > conftest.sym
  7222. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7224. /* end confdefs.h. */
  7225. int
  7226. main (void)
  7227. {
  7228. ;
  7229. return 0;
  7230. }
  7231. _ACEOF
  7232. if ac_fn_c_try_link "$LINENO"
  7233. then :
  7234. lt_cv_ld_exported_symbols_list=yes
  7235. else $as_nop
  7236. lt_cv_ld_exported_symbols_list=no
  7237. fi
  7238. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7239. conftest$ac_exeext conftest.$ac_ext
  7240. LDFLAGS=$save_LDFLAGS
  7241. fi
  7242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7243. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7245. printf %s "checking for -force_load linker flag... " >&6; }
  7246. if test ${lt_cv_ld_force_load+y}
  7247. then :
  7248. printf %s "(cached) " >&6
  7249. else $as_nop
  7250. lt_cv_ld_force_load=no
  7251. cat > conftest.c << _LT_EOF
  7252. int forced_loaded() { return 2;}
  7253. _LT_EOF
  7254. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7255. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7256. echo "$AR cru libconftest.a conftest.o" >&5
  7257. $AR cru libconftest.a conftest.o 2>&5
  7258. echo "$RANLIB libconftest.a" >&5
  7259. $RANLIB libconftest.a 2>&5
  7260. cat > conftest.c << _LT_EOF
  7261. int main(void) { return 0;}
  7262. _LT_EOF
  7263. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7264. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7265. _lt_result=$?
  7266. if test -s conftest.err && $GREP force_load conftest.err; then
  7267. cat conftest.err >&5
  7268. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7269. lt_cv_ld_force_load=yes
  7270. else
  7271. cat conftest.err >&5
  7272. fi
  7273. rm -f conftest.err libconftest.a conftest conftest.c
  7274. rm -rf conftest.dSYM
  7275. fi
  7276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7277. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7278. case $host_os in
  7279. rhapsody* | darwin1.[012])
  7280. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7281. darwin1.*)
  7282. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7283. darwin*)
  7284. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7285. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7286. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7287. *)
  7288. if test yes = "$lt_cv_support_no_fixup_chains"; then
  7289. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup $wl-no_fixup_chains'
  7290. else
  7291. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
  7292. fi
  7293. ;;
  7294. esac
  7295. ;;
  7296. esac
  7297. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7298. _lt_dar_single_mod='$single_module'
  7299. fi
  7300. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7301. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7302. else
  7303. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7304. fi
  7305. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7306. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7307. else
  7308. _lt_dsymutil=
  7309. fi
  7310. ;;
  7311. esac
  7312. # func_munge_path_list VARIABLE PATH
  7313. # -----------------------------------
  7314. # VARIABLE is name of variable containing _space_ separated list of
  7315. # directories to be munged by the contents of PATH, which is string
  7316. # having a format:
  7317. # "DIR[:DIR]:"
  7318. # string "DIR[ DIR]" will be prepended to VARIABLE
  7319. # ":DIR[:DIR]"
  7320. # string "DIR[ DIR]" will be appended to VARIABLE
  7321. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7322. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7323. # "DIRA[ DIRA]" will be appended to VARIABLE
  7324. # "DIR[:DIR]"
  7325. # VARIABLE will be replaced by "DIR[ DIR]"
  7326. func_munge_path_list ()
  7327. {
  7328. case x$2 in
  7329. x)
  7330. ;;
  7331. *:)
  7332. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7333. ;;
  7334. x:*)
  7335. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7336. ;;
  7337. *::*)
  7338. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7339. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7340. ;;
  7341. *)
  7342. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7343. ;;
  7344. esac
  7345. }
  7346. ac_header= ac_cache=
  7347. for ac_item in $ac_header_c_list
  7348. do
  7349. if test $ac_cache; then
  7350. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7351. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7352. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7353. fi
  7354. ac_header= ac_cache=
  7355. elif test $ac_header; then
  7356. ac_cache=$ac_item
  7357. else
  7358. ac_header=$ac_item
  7359. fi
  7360. done
  7361. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7362. then :
  7363. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7364. fi
  7365. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7366. "
  7367. if test "x$ac_cv_header_dlfcn_h" = xyes
  7368. then :
  7369. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7370. fi
  7371. # Set options
  7372. enable_win32_dll=yes
  7373. case $host in
  7374. *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
  7375. if test -n "$ac_tool_prefix"; then
  7376. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7377. set dummy ${ac_tool_prefix}as; ac_word=$2
  7378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7379. printf %s "checking for $ac_word... " >&6; }
  7380. if test ${ac_cv_prog_AS+y}
  7381. then :
  7382. printf %s "(cached) " >&6
  7383. else $as_nop
  7384. if test -n "$AS"; then
  7385. ac_cv_prog_AS="$AS" # Let the user override the test.
  7386. else
  7387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7388. for as_dir in $PATH
  7389. do
  7390. IFS=$as_save_IFS
  7391. case $as_dir in #(((
  7392. '') as_dir=./ ;;
  7393. */) ;;
  7394. *) as_dir=$as_dir/ ;;
  7395. esac
  7396. for ac_exec_ext in '' $ac_executable_extensions; do
  7397. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7398. ac_cv_prog_AS="${ac_tool_prefix}as"
  7399. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7400. break 2
  7401. fi
  7402. done
  7403. done
  7404. IFS=$as_save_IFS
  7405. fi
  7406. fi
  7407. AS=$ac_cv_prog_AS
  7408. if test -n "$AS"; then
  7409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7410. printf "%s\n" "$AS" >&6; }
  7411. else
  7412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7413. printf "%s\n" "no" >&6; }
  7414. fi
  7415. fi
  7416. if test -z "$ac_cv_prog_AS"; then
  7417. ac_ct_AS=$AS
  7418. # Extract the first word of "as", so it can be a program name with args.
  7419. set dummy as; ac_word=$2
  7420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7421. printf %s "checking for $ac_word... " >&6; }
  7422. if test ${ac_cv_prog_ac_ct_AS+y}
  7423. then :
  7424. printf %s "(cached) " >&6
  7425. else $as_nop
  7426. if test -n "$ac_ct_AS"; then
  7427. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7428. else
  7429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7430. for as_dir in $PATH
  7431. do
  7432. IFS=$as_save_IFS
  7433. case $as_dir in #(((
  7434. '') as_dir=./ ;;
  7435. */) ;;
  7436. *) as_dir=$as_dir/ ;;
  7437. esac
  7438. for ac_exec_ext in '' $ac_executable_extensions; do
  7439. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7440. ac_cv_prog_ac_ct_AS="as"
  7441. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7442. break 2
  7443. fi
  7444. done
  7445. done
  7446. IFS=$as_save_IFS
  7447. fi
  7448. fi
  7449. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7450. if test -n "$ac_ct_AS"; then
  7451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7452. printf "%s\n" "$ac_ct_AS" >&6; }
  7453. else
  7454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7455. printf "%s\n" "no" >&6; }
  7456. fi
  7457. if test "x$ac_ct_AS" = x; then
  7458. AS="false"
  7459. else
  7460. case $cross_compiling:$ac_tool_warned in
  7461. yes:)
  7462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7463. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7464. ac_tool_warned=yes ;;
  7465. esac
  7466. AS=$ac_ct_AS
  7467. fi
  7468. else
  7469. AS="$ac_cv_prog_AS"
  7470. fi
  7471. if test -n "$ac_tool_prefix"; then
  7472. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7473. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7475. printf %s "checking for $ac_word... " >&6; }
  7476. if test ${ac_cv_prog_DLLTOOL+y}
  7477. then :
  7478. printf %s "(cached) " >&6
  7479. else $as_nop
  7480. if test -n "$DLLTOOL"; then
  7481. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7482. else
  7483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7484. for as_dir in $PATH
  7485. do
  7486. IFS=$as_save_IFS
  7487. case $as_dir in #(((
  7488. '') as_dir=./ ;;
  7489. */) ;;
  7490. *) as_dir=$as_dir/ ;;
  7491. esac
  7492. for ac_exec_ext in '' $ac_executable_extensions; do
  7493. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7494. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7496. break 2
  7497. fi
  7498. done
  7499. done
  7500. IFS=$as_save_IFS
  7501. fi
  7502. fi
  7503. DLLTOOL=$ac_cv_prog_DLLTOOL
  7504. if test -n "$DLLTOOL"; then
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7506. printf "%s\n" "$DLLTOOL" >&6; }
  7507. else
  7508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7509. printf "%s\n" "no" >&6; }
  7510. fi
  7511. fi
  7512. if test -z "$ac_cv_prog_DLLTOOL"; then
  7513. ac_ct_DLLTOOL=$DLLTOOL
  7514. # Extract the first word of "dlltool", so it can be a program name with args.
  7515. set dummy dlltool; ac_word=$2
  7516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7517. printf %s "checking for $ac_word... " >&6; }
  7518. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7519. then :
  7520. printf %s "(cached) " >&6
  7521. else $as_nop
  7522. if test -n "$ac_ct_DLLTOOL"; then
  7523. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7524. else
  7525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7526. for as_dir in $PATH
  7527. do
  7528. IFS=$as_save_IFS
  7529. case $as_dir in #(((
  7530. '') as_dir=./ ;;
  7531. */) ;;
  7532. *) as_dir=$as_dir/ ;;
  7533. esac
  7534. for ac_exec_ext in '' $ac_executable_extensions; do
  7535. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7536. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7537. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7538. break 2
  7539. fi
  7540. done
  7541. done
  7542. IFS=$as_save_IFS
  7543. fi
  7544. fi
  7545. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7546. if test -n "$ac_ct_DLLTOOL"; then
  7547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7548. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7549. else
  7550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7551. printf "%s\n" "no" >&6; }
  7552. fi
  7553. if test "x$ac_ct_DLLTOOL" = x; then
  7554. DLLTOOL="false"
  7555. else
  7556. case $cross_compiling:$ac_tool_warned in
  7557. yes:)
  7558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7559. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7560. ac_tool_warned=yes ;;
  7561. esac
  7562. DLLTOOL=$ac_ct_DLLTOOL
  7563. fi
  7564. else
  7565. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7566. fi
  7567. if test -n "$ac_tool_prefix"; then
  7568. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7569. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7571. printf %s "checking for $ac_word... " >&6; }
  7572. if test ${ac_cv_prog_OBJDUMP+y}
  7573. then :
  7574. printf %s "(cached) " >&6
  7575. else $as_nop
  7576. if test -n "$OBJDUMP"; then
  7577. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7578. else
  7579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7580. for as_dir in $PATH
  7581. do
  7582. IFS=$as_save_IFS
  7583. case $as_dir in #(((
  7584. '') as_dir=./ ;;
  7585. */) ;;
  7586. *) as_dir=$as_dir/ ;;
  7587. esac
  7588. for ac_exec_ext in '' $ac_executable_extensions; do
  7589. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7590. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7591. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7592. break 2
  7593. fi
  7594. done
  7595. done
  7596. IFS=$as_save_IFS
  7597. fi
  7598. fi
  7599. OBJDUMP=$ac_cv_prog_OBJDUMP
  7600. if test -n "$OBJDUMP"; then
  7601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7602. printf "%s\n" "$OBJDUMP" >&6; }
  7603. else
  7604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7605. printf "%s\n" "no" >&6; }
  7606. fi
  7607. fi
  7608. if test -z "$ac_cv_prog_OBJDUMP"; then
  7609. ac_ct_OBJDUMP=$OBJDUMP
  7610. # Extract the first word of "objdump", so it can be a program name with args.
  7611. set dummy objdump; ac_word=$2
  7612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7613. printf %s "checking for $ac_word... " >&6; }
  7614. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7615. then :
  7616. printf %s "(cached) " >&6
  7617. else $as_nop
  7618. if test -n "$ac_ct_OBJDUMP"; then
  7619. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7620. else
  7621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7622. for as_dir in $PATH
  7623. do
  7624. IFS=$as_save_IFS
  7625. case $as_dir in #(((
  7626. '') as_dir=./ ;;
  7627. */) ;;
  7628. *) as_dir=$as_dir/ ;;
  7629. esac
  7630. for ac_exec_ext in '' $ac_executable_extensions; do
  7631. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7632. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7633. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7634. break 2
  7635. fi
  7636. done
  7637. done
  7638. IFS=$as_save_IFS
  7639. fi
  7640. fi
  7641. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7642. if test -n "$ac_ct_OBJDUMP"; then
  7643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7644. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7645. else
  7646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7647. printf "%s\n" "no" >&6; }
  7648. fi
  7649. if test "x$ac_ct_OBJDUMP" = x; then
  7650. OBJDUMP="false"
  7651. else
  7652. case $cross_compiling:$ac_tool_warned in
  7653. yes:)
  7654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7655. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7656. ac_tool_warned=yes ;;
  7657. esac
  7658. OBJDUMP=$ac_ct_OBJDUMP
  7659. fi
  7660. else
  7661. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7662. fi
  7663. ;;
  7664. esac
  7665. test -z "$AS" && AS=as
  7666. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7667. test -z "$OBJDUMP" && OBJDUMP=objdump
  7668. enable_dlopen=no
  7669. # Check whether --enable-shared was given.
  7670. if test ${enable_shared+y}
  7671. then :
  7672. enableval=$enable_shared; p=${PACKAGE-default}
  7673. case $enableval in
  7674. yes) enable_shared=yes ;;
  7675. no) enable_shared=no ;;
  7676. *)
  7677. enable_shared=no
  7678. # Look at the argument we got. We use all the common list separators.
  7679. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7680. for pkg in $enableval; do
  7681. IFS=$lt_save_ifs
  7682. if test "X$pkg" = "X$p"; then
  7683. enable_shared=yes
  7684. fi
  7685. done
  7686. IFS=$lt_save_ifs
  7687. ;;
  7688. esac
  7689. else $as_nop
  7690. enable_shared=yes
  7691. fi
  7692. # Check whether --enable-static was given.
  7693. if test ${enable_static+y}
  7694. then :
  7695. enableval=$enable_static; p=${PACKAGE-default}
  7696. case $enableval in
  7697. yes) enable_static=yes ;;
  7698. no) enable_static=no ;;
  7699. *)
  7700. enable_static=no
  7701. # Look at the argument we got. We use all the common list separators.
  7702. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7703. for pkg in $enableval; do
  7704. IFS=$lt_save_ifs
  7705. if test "X$pkg" = "X$p"; then
  7706. enable_static=yes
  7707. fi
  7708. done
  7709. IFS=$lt_save_ifs
  7710. ;;
  7711. esac
  7712. else $as_nop
  7713. enable_static=yes
  7714. fi
  7715. # Check whether --with-pic was given.
  7716. if test ${with_pic+y}
  7717. then :
  7718. withval=$with_pic; lt_p=${PACKAGE-default}
  7719. case $withval in
  7720. yes|no) pic_mode=$withval ;;
  7721. *)
  7722. pic_mode=default
  7723. # Look at the argument we got. We use all the common list separators.
  7724. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7725. for lt_pkg in $withval; do
  7726. IFS=$lt_save_ifs
  7727. if test "X$lt_pkg" = "X$lt_p"; then
  7728. pic_mode=yes
  7729. fi
  7730. done
  7731. IFS=$lt_save_ifs
  7732. ;;
  7733. esac
  7734. else $as_nop
  7735. pic_mode=default
  7736. fi
  7737. # Check whether --enable-fast-install was given.
  7738. if test ${enable_fast_install+y}
  7739. then :
  7740. enableval=$enable_fast_install; p=${PACKAGE-default}
  7741. case $enableval in
  7742. yes) enable_fast_install=yes ;;
  7743. no) enable_fast_install=no ;;
  7744. *)
  7745. enable_fast_install=no
  7746. # Look at the argument we got. We use all the common list separators.
  7747. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7748. for pkg in $enableval; do
  7749. IFS=$lt_save_ifs
  7750. if test "X$pkg" = "X$p"; then
  7751. enable_fast_install=yes
  7752. fi
  7753. done
  7754. IFS=$lt_save_ifs
  7755. ;;
  7756. esac
  7757. else $as_nop
  7758. enable_fast_install=yes
  7759. fi
  7760. shared_archive_member_spec=
  7761. case $host,$enable_shared in
  7762. power*-*-aix[5-9]*,yes)
  7763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7764. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7765. # Check whether --with-aix-soname was given.
  7766. if test ${with_aix_soname+y}
  7767. then :
  7768. withval=$with_aix_soname; case $withval in
  7769. aix|svr4|both)
  7770. ;;
  7771. *)
  7772. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7773. ;;
  7774. esac
  7775. lt_cv_with_aix_soname=$with_aix_soname
  7776. else $as_nop
  7777. if test ${lt_cv_with_aix_soname+y}
  7778. then :
  7779. printf %s "(cached) " >&6
  7780. else $as_nop
  7781. lt_cv_with_aix_soname=aix
  7782. fi
  7783. with_aix_soname=$lt_cv_with_aix_soname
  7784. fi
  7785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7786. printf "%s\n" "$with_aix_soname" >&6; }
  7787. if test aix != "$with_aix_soname"; then
  7788. # For the AIX way of multilib, we name the shared archive member
  7789. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7790. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7791. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7792. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7793. if test 64 = "${OBJECT_MODE-32}"; then
  7794. shared_archive_member_spec=shr_64
  7795. else
  7796. shared_archive_member_spec=shr
  7797. fi
  7798. fi
  7799. ;;
  7800. *)
  7801. with_aix_soname=aix
  7802. ;;
  7803. esac
  7804. # This can be used to rebuild libtool when needed
  7805. LIBTOOL_DEPS=$ltmain
  7806. # Always use our own libtool.
  7807. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7808. test -z "$LN_S" && LN_S="ln -s"
  7809. if test -n "${ZSH_VERSION+set}"; then
  7810. setopt NO_GLOB_SUBST
  7811. fi
  7812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7813. printf %s "checking for objdir... " >&6; }
  7814. if test ${lt_cv_objdir+y}
  7815. then :
  7816. printf %s "(cached) " >&6
  7817. else $as_nop
  7818. rm -f .libs 2>/dev/null
  7819. mkdir .libs 2>/dev/null
  7820. if test -d .libs; then
  7821. lt_cv_objdir=.libs
  7822. else
  7823. # MS-DOS does not allow filenames that begin with a dot.
  7824. lt_cv_objdir=_libs
  7825. fi
  7826. rmdir .libs 2>/dev/null
  7827. fi
  7828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7829. printf "%s\n" "$lt_cv_objdir" >&6; }
  7830. objdir=$lt_cv_objdir
  7831. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7832. case $host_os in
  7833. aix3*)
  7834. # AIX sometimes has problems with the GCC collect2 program. For some
  7835. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7836. # vanish in a puff of smoke.
  7837. if test set != "${COLLECT_NAMES+set}"; then
  7838. COLLECT_NAMES=
  7839. export COLLECT_NAMES
  7840. fi
  7841. ;;
  7842. esac
  7843. # Global variables:
  7844. ofile=libtool
  7845. can_build_shared=yes
  7846. # All known linkers require a '.a' archive for static linking (except MSVC and
  7847. # ICC, which need '.lib').
  7848. libext=a
  7849. with_gnu_ld=$lt_cv_prog_gnu_ld
  7850. old_CC=$CC
  7851. old_CFLAGS=$CFLAGS
  7852. # Set sane defaults for various variables
  7853. test -z "$CC" && CC=cc
  7854. test -z "$LTCC" && LTCC=$CC
  7855. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7856. test -z "$LD" && LD=ld
  7857. test -z "$ac_objext" && ac_objext=o
  7858. func_cc_basename $compiler
  7859. cc_basename=$func_cc_basename_result
  7860. # Only perform the check for file, if the check method requires it
  7861. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7862. case $deplibs_check_method in
  7863. file_magic*)
  7864. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7866. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7867. if test ${lt_cv_path_MAGIC_CMD+y}
  7868. then :
  7869. printf %s "(cached) " >&6
  7870. else $as_nop
  7871. case $MAGIC_CMD in
  7872. [\\/*] | ?:[\\/]*)
  7873. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7874. ;;
  7875. *)
  7876. lt_save_MAGIC_CMD=$MAGIC_CMD
  7877. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7878. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7879. for ac_dir in $ac_dummy; do
  7880. IFS=$lt_save_ifs
  7881. test -z "$ac_dir" && ac_dir=.
  7882. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7883. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7884. if test -n "$file_magic_test_file"; then
  7885. case $deplibs_check_method in
  7886. "file_magic "*)
  7887. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7888. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7889. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7890. $EGREP "$file_magic_regex" > /dev/null; then
  7891. :
  7892. else
  7893. cat <<_LT_EOF 1>&2
  7894. *** Warning: the command libtool uses to detect shared libraries,
  7895. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7896. *** The result is that libtool may fail to recognize shared libraries
  7897. *** as such. This will affect the creation of libtool libraries that
  7898. *** depend on shared libraries, but programs linked with such libtool
  7899. *** libraries will work regardless of this problem. Nevertheless, you
  7900. *** may want to report the problem to your system manager and/or to
  7901. *** bug-libtool@gnu.org
  7902. _LT_EOF
  7903. fi ;;
  7904. esac
  7905. fi
  7906. break
  7907. fi
  7908. done
  7909. IFS=$lt_save_ifs
  7910. MAGIC_CMD=$lt_save_MAGIC_CMD
  7911. ;;
  7912. esac
  7913. fi
  7914. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7915. if test -n "$MAGIC_CMD"; then
  7916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7917. printf "%s\n" "$MAGIC_CMD" >&6; }
  7918. else
  7919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7920. printf "%s\n" "no" >&6; }
  7921. fi
  7922. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7923. if test -n "$ac_tool_prefix"; then
  7924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7925. printf %s "checking for file... " >&6; }
  7926. if test ${lt_cv_path_MAGIC_CMD+y}
  7927. then :
  7928. printf %s "(cached) " >&6
  7929. else $as_nop
  7930. case $MAGIC_CMD in
  7931. [\\/*] | ?:[\\/]*)
  7932. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7933. ;;
  7934. *)
  7935. lt_save_MAGIC_CMD=$MAGIC_CMD
  7936. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7937. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7938. for ac_dir in $ac_dummy; do
  7939. IFS=$lt_save_ifs
  7940. test -z "$ac_dir" && ac_dir=.
  7941. if test -f "$ac_dir/file"; then
  7942. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7943. if test -n "$file_magic_test_file"; then
  7944. case $deplibs_check_method in
  7945. "file_magic "*)
  7946. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7947. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7948. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7949. $EGREP "$file_magic_regex" > /dev/null; then
  7950. :
  7951. else
  7952. cat <<_LT_EOF 1>&2
  7953. *** Warning: the command libtool uses to detect shared libraries,
  7954. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7955. *** The result is that libtool may fail to recognize shared libraries
  7956. *** as such. This will affect the creation of libtool libraries that
  7957. *** depend on shared libraries, but programs linked with such libtool
  7958. *** libraries will work regardless of this problem. Nevertheless, you
  7959. *** may want to report the problem to your system manager and/or to
  7960. *** bug-libtool@gnu.org
  7961. _LT_EOF
  7962. fi ;;
  7963. esac
  7964. fi
  7965. break
  7966. fi
  7967. done
  7968. IFS=$lt_save_ifs
  7969. MAGIC_CMD=$lt_save_MAGIC_CMD
  7970. ;;
  7971. esac
  7972. fi
  7973. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7974. if test -n "$MAGIC_CMD"; then
  7975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7976. printf "%s\n" "$MAGIC_CMD" >&6; }
  7977. else
  7978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7979. printf "%s\n" "no" >&6; }
  7980. fi
  7981. else
  7982. MAGIC_CMD=:
  7983. fi
  7984. fi
  7985. fi
  7986. ;;
  7987. esac
  7988. # Use C for the default configuration in the libtool script
  7989. lt_save_CC=$CC
  7990. ac_ext=c
  7991. ac_cpp='$CPP $CPPFLAGS'
  7992. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7993. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7994. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7995. # Source file extension for C test sources.
  7996. ac_ext=c
  7997. # Object file extension for compiled C test sources.
  7998. objext=o
  7999. objext=$objext
  8000. # Code to be used in simple compile tests
  8001. lt_simple_compile_test_code="int some_variable = 0;"
  8002. # Code to be used in simple link tests
  8003. lt_simple_link_test_code='int main(void){return(0);}'
  8004. # If no C compiler was specified, use CC.
  8005. LTCC=${LTCC-"$CC"}
  8006. # If no C compiler flags were specified, use CFLAGS.
  8007. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8008. # Allow CC to be a program name with arguments.
  8009. compiler=$CC
  8010. # Save the default compiler, since it gets overwritten when the other
  8011. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8012. compiler_DEFAULT=$CC
  8013. # save warnings/boilerplate of simple test code
  8014. ac_outfile=conftest.$ac_objext
  8015. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8016. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8017. _lt_compiler_boilerplate=`cat conftest.err`
  8018. $RM conftest*
  8019. ac_outfile=conftest.$ac_objext
  8020. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8021. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8022. _lt_linker_boilerplate=`cat conftest.err`
  8023. $RM -r conftest*
  8024. ## CAVEAT EMPTOR:
  8025. ## There is no encapsulation within the following macros, do not change
  8026. ## the running order or otherwise move them around unless you know exactly
  8027. ## what you are doing...
  8028. if test -n "$compiler"; then
  8029. lt_prog_compiler_no_builtin_flag=
  8030. if test yes = "$GCC"; then
  8031. case $cc_basename in
  8032. nvcc*)
  8033. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8034. *)
  8035. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8036. esac
  8037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8038. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8039. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8040. then :
  8041. printf %s "(cached) " >&6
  8042. else $as_nop
  8043. lt_cv_prog_compiler_rtti_exceptions=no
  8044. ac_outfile=conftest.$ac_objext
  8045. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8046. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8047. # Insert the option either (1) after the last *FLAGS variable, or
  8048. # (2) before a word containing "conftest.", or (3) at the end.
  8049. # Note that $ac_compile itself does not contain backslashes and begins
  8050. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8051. # The option is referenced via a variable to avoid confusing sed.
  8052. lt_compile=`echo "$ac_compile" | $SED \
  8053. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8054. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8055. -e 's:$: $lt_compiler_flag:'`
  8056. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8057. (eval "$lt_compile" 2>conftest.err)
  8058. ac_status=$?
  8059. cat conftest.err >&5
  8060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8061. if (exit $ac_status) && test -s "$ac_outfile"; then
  8062. # The compiler can only warn and ignore the option if not recognized
  8063. # So say no if there are warnings other than the usual output.
  8064. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8065. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8066. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8067. lt_cv_prog_compiler_rtti_exceptions=yes
  8068. fi
  8069. fi
  8070. $RM conftest*
  8071. fi
  8072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8073. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8074. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8075. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8076. else
  8077. :
  8078. fi
  8079. fi
  8080. lt_prog_compiler_wl=
  8081. lt_prog_compiler_pic=
  8082. lt_prog_compiler_static=
  8083. if test yes = "$GCC"; then
  8084. lt_prog_compiler_wl='-Wl,'
  8085. lt_prog_compiler_static='-static'
  8086. case $host_os in
  8087. aix*)
  8088. # All AIX code is PIC.
  8089. if test ia64 = "$host_cpu"; then
  8090. # AIX 5 now supports IA64 processor
  8091. lt_prog_compiler_static='-Bstatic'
  8092. fi
  8093. lt_prog_compiler_pic='-fPIC'
  8094. ;;
  8095. amigaos*)
  8096. case $host_cpu in
  8097. powerpc)
  8098. # see comment about AmigaOS4 .so support
  8099. lt_prog_compiler_pic='-fPIC'
  8100. ;;
  8101. m68k)
  8102. # FIXME: we need at least 68020 code to build shared libraries, but
  8103. # adding the '-m68020' flag to GCC prevents building anything better,
  8104. # like '-m68040'.
  8105. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8106. ;;
  8107. esac
  8108. ;;
  8109. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8110. # PIC is the default for these OSes.
  8111. ;;
  8112. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8113. # This hack is so that the source file can tell whether it is being
  8114. # built for inclusion in a dll (and should export symbols for example).
  8115. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8116. # (--disable-auto-import) libraries
  8117. lt_prog_compiler_pic='-DDLL_EXPORT'
  8118. case $host_os in
  8119. os2*)
  8120. lt_prog_compiler_static='$wl-static'
  8121. ;;
  8122. esac
  8123. ;;
  8124. darwin* | rhapsody*)
  8125. # PIC is the default on this platform
  8126. # Common symbols not allowed in MH_DYLIB files
  8127. lt_prog_compiler_pic='-fno-common'
  8128. ;;
  8129. haiku*)
  8130. # PIC is the default for Haiku.
  8131. # The "-static" flag exists, but is broken.
  8132. lt_prog_compiler_static=
  8133. ;;
  8134. hpux*)
  8135. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8136. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8137. # sets the default TLS model and affects inlining.
  8138. case $host_cpu in
  8139. hppa*64*)
  8140. # +Z the default
  8141. ;;
  8142. *)
  8143. lt_prog_compiler_pic='-fPIC'
  8144. ;;
  8145. esac
  8146. ;;
  8147. interix[3-9]*)
  8148. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8149. # Instead, we relocate shared libraries at runtime.
  8150. ;;
  8151. msdosdjgpp*)
  8152. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8153. # on systems that don't support them.
  8154. lt_prog_compiler_can_build_shared=no
  8155. enable_shared=no
  8156. ;;
  8157. *nto* | *qnx*)
  8158. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8159. # it will coredump.
  8160. lt_prog_compiler_pic='-fPIC -shared'
  8161. ;;
  8162. sysv4*MP*)
  8163. if test -d /usr/nec; then
  8164. lt_prog_compiler_pic=-Kconform_pic
  8165. fi
  8166. ;;
  8167. *)
  8168. lt_prog_compiler_pic='-fPIC'
  8169. ;;
  8170. esac
  8171. case $cc_basename in
  8172. nvcc*) # Cuda Compiler Driver 2.2
  8173. lt_prog_compiler_wl='-Xlinker '
  8174. if test -n "$lt_prog_compiler_pic"; then
  8175. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8176. fi
  8177. ;;
  8178. esac
  8179. else
  8180. # PORTME Check for flag to pass linker flags through the system compiler.
  8181. case $host_os in
  8182. aix*)
  8183. lt_prog_compiler_wl='-Wl,'
  8184. if test ia64 = "$host_cpu"; then
  8185. # AIX 5 now supports IA64 processor
  8186. lt_prog_compiler_static='-Bstatic'
  8187. else
  8188. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8189. fi
  8190. ;;
  8191. darwin* | rhapsody*)
  8192. # PIC is the default on this platform
  8193. # Common symbols not allowed in MH_DYLIB files
  8194. lt_prog_compiler_pic='-fno-common'
  8195. case $cc_basename in
  8196. nagfor*)
  8197. # NAG Fortran compiler
  8198. lt_prog_compiler_wl='-Wl,-Wl,,'
  8199. lt_prog_compiler_pic='-PIC'
  8200. lt_prog_compiler_static='-Bstatic'
  8201. ;;
  8202. esac
  8203. ;;
  8204. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8205. # This hack is so that the source file can tell whether it is being
  8206. # built for inclusion in a dll (and should export symbols for example).
  8207. lt_prog_compiler_pic='-DDLL_EXPORT'
  8208. case $host_os in
  8209. os2*)
  8210. lt_prog_compiler_static='$wl-static'
  8211. ;;
  8212. esac
  8213. ;;
  8214. hpux9* | hpux10* | hpux11*)
  8215. lt_prog_compiler_wl='-Wl,'
  8216. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8217. # not for PA HP-UX.
  8218. case $host_cpu in
  8219. hppa*64*|ia64*)
  8220. # +Z the default
  8221. ;;
  8222. *)
  8223. lt_prog_compiler_pic='+Z'
  8224. ;;
  8225. esac
  8226. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8227. lt_prog_compiler_static='$wl-a ${wl}archive'
  8228. ;;
  8229. irix5* | irix6* | nonstopux*)
  8230. lt_prog_compiler_wl='-Wl,'
  8231. # PIC (with -KPIC) is the default.
  8232. lt_prog_compiler_static='-non_shared'
  8233. ;;
  8234. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8235. case $cc_basename in
  8236. # old Intel for x86_64, which still supported -KPIC.
  8237. ecc*)
  8238. lt_prog_compiler_wl='-Wl,'
  8239. lt_prog_compiler_pic='-KPIC'
  8240. lt_prog_compiler_static='-static'
  8241. ;;
  8242. # icc used to be incompatible with GCC.
  8243. # ICC 10 doesn't accept -KPIC any more.
  8244. icc* | ifort*)
  8245. lt_prog_compiler_wl='-Wl,'
  8246. lt_prog_compiler_pic='-fPIC'
  8247. lt_prog_compiler_static='-static'
  8248. ;;
  8249. # Lahey Fortran 8.1.
  8250. lf95*)
  8251. lt_prog_compiler_wl='-Wl,'
  8252. lt_prog_compiler_pic='--shared'
  8253. lt_prog_compiler_static='--static'
  8254. ;;
  8255. nagfor*)
  8256. # NAG Fortran compiler
  8257. lt_prog_compiler_wl='-Wl,-Wl,,'
  8258. lt_prog_compiler_pic='-PIC'
  8259. lt_prog_compiler_static='-Bstatic'
  8260. ;;
  8261. tcc*)
  8262. # Fabrice Bellard et al's Tiny C Compiler
  8263. lt_prog_compiler_wl='-Wl,'
  8264. lt_prog_compiler_pic='-fPIC'
  8265. lt_prog_compiler_static='-static'
  8266. ;;
  8267. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8268. # Portland Group compilers (*not* the Pentium gcc compiler,
  8269. # which looks to be a dead project)
  8270. lt_prog_compiler_wl='-Wl,'
  8271. lt_prog_compiler_pic='-fpic'
  8272. lt_prog_compiler_static='-Bstatic'
  8273. ;;
  8274. ccc*)
  8275. lt_prog_compiler_wl='-Wl,'
  8276. # All Alpha code is PIC.
  8277. lt_prog_compiler_static='-non_shared'
  8278. ;;
  8279. xl* | bgxl* | bgf* | mpixl*)
  8280. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8281. lt_prog_compiler_wl='-Wl,'
  8282. lt_prog_compiler_pic='-qpic'
  8283. lt_prog_compiler_static='-qstaticlink'
  8284. ;;
  8285. *)
  8286. case `$CC -V 2>&1 | sed 5q` in
  8287. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8288. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8289. lt_prog_compiler_pic='-KPIC'
  8290. lt_prog_compiler_static='-Bstatic'
  8291. lt_prog_compiler_wl=''
  8292. ;;
  8293. *Sun\ F* | *Sun*Fortran*)
  8294. lt_prog_compiler_pic='-KPIC'
  8295. lt_prog_compiler_static='-Bstatic'
  8296. lt_prog_compiler_wl='-Qoption ld '
  8297. ;;
  8298. *Sun\ C*)
  8299. # Sun C 5.9
  8300. lt_prog_compiler_pic='-KPIC'
  8301. lt_prog_compiler_static='-Bstatic'
  8302. lt_prog_compiler_wl='-Wl,'
  8303. ;;
  8304. *Intel*\ [CF]*Compiler*)
  8305. lt_prog_compiler_wl='-Wl,'
  8306. lt_prog_compiler_pic='-fPIC'
  8307. lt_prog_compiler_static='-static'
  8308. ;;
  8309. *Portland\ Group*)
  8310. lt_prog_compiler_wl='-Wl,'
  8311. lt_prog_compiler_pic='-fpic'
  8312. lt_prog_compiler_static='-Bstatic'
  8313. ;;
  8314. esac
  8315. ;;
  8316. esac
  8317. ;;
  8318. newsos6)
  8319. lt_prog_compiler_pic='-KPIC'
  8320. lt_prog_compiler_static='-Bstatic'
  8321. ;;
  8322. *nto* | *qnx*)
  8323. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8324. # it will coredump.
  8325. lt_prog_compiler_pic='-fPIC -shared'
  8326. ;;
  8327. osf3* | osf4* | osf5*)
  8328. lt_prog_compiler_wl='-Wl,'
  8329. # All OSF/1 code is PIC.
  8330. lt_prog_compiler_static='-non_shared'
  8331. ;;
  8332. rdos*)
  8333. lt_prog_compiler_static='-non_shared'
  8334. ;;
  8335. solaris*)
  8336. lt_prog_compiler_pic='-KPIC'
  8337. lt_prog_compiler_static='-Bstatic'
  8338. case $cc_basename in
  8339. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8340. lt_prog_compiler_wl='-Qoption ld ';;
  8341. *)
  8342. lt_prog_compiler_wl='-Wl,';;
  8343. esac
  8344. ;;
  8345. sunos4*)
  8346. lt_prog_compiler_wl='-Qoption ld '
  8347. lt_prog_compiler_pic='-PIC'
  8348. lt_prog_compiler_static='-Bstatic'
  8349. ;;
  8350. sysv4 | sysv4.2uw2* | sysv4.3*)
  8351. lt_prog_compiler_wl='-Wl,'
  8352. lt_prog_compiler_pic='-KPIC'
  8353. lt_prog_compiler_static='-Bstatic'
  8354. ;;
  8355. sysv4*MP*)
  8356. if test -d /usr/nec; then
  8357. lt_prog_compiler_pic='-Kconform_pic'
  8358. lt_prog_compiler_static='-Bstatic'
  8359. fi
  8360. ;;
  8361. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8362. lt_prog_compiler_wl='-Wl,'
  8363. lt_prog_compiler_pic='-KPIC'
  8364. lt_prog_compiler_static='-Bstatic'
  8365. ;;
  8366. unicos*)
  8367. lt_prog_compiler_wl='-Wl,'
  8368. lt_prog_compiler_can_build_shared=no
  8369. ;;
  8370. uts4*)
  8371. lt_prog_compiler_pic='-pic'
  8372. lt_prog_compiler_static='-Bstatic'
  8373. ;;
  8374. *)
  8375. lt_prog_compiler_can_build_shared=no
  8376. ;;
  8377. esac
  8378. fi
  8379. case $host_os in
  8380. # For platforms that do not support PIC, -DPIC is meaningless:
  8381. *djgpp*)
  8382. lt_prog_compiler_pic=
  8383. ;;
  8384. *)
  8385. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8386. ;;
  8387. esac
  8388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8389. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8390. if test ${lt_cv_prog_compiler_pic+y}
  8391. then :
  8392. printf %s "(cached) " >&6
  8393. else $as_nop
  8394. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8395. fi
  8396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8397. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8398. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8399. #
  8400. # Check to make sure the PIC flag actually works.
  8401. #
  8402. if test -n "$lt_prog_compiler_pic"; then
  8403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8404. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8405. if test ${lt_cv_prog_compiler_pic_works+y}
  8406. then :
  8407. printf %s "(cached) " >&6
  8408. else $as_nop
  8409. lt_cv_prog_compiler_pic_works=no
  8410. ac_outfile=conftest.$ac_objext
  8411. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8412. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8413. # Insert the option either (1) after the last *FLAGS variable, or
  8414. # (2) before a word containing "conftest.", or (3) at the end.
  8415. # Note that $ac_compile itself does not contain backslashes and begins
  8416. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8417. # The option is referenced via a variable to avoid confusing sed.
  8418. lt_compile=`echo "$ac_compile" | $SED \
  8419. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8420. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8421. -e 's:$: $lt_compiler_flag:'`
  8422. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8423. (eval "$lt_compile" 2>conftest.err)
  8424. ac_status=$?
  8425. cat conftest.err >&5
  8426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8427. if (exit $ac_status) && test -s "$ac_outfile"; then
  8428. # The compiler can only warn and ignore the option if not recognized
  8429. # So say no if there are warnings other than the usual output.
  8430. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8431. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8432. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8433. lt_cv_prog_compiler_pic_works=yes
  8434. fi
  8435. fi
  8436. $RM conftest*
  8437. fi
  8438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8439. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8440. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8441. case $lt_prog_compiler_pic in
  8442. "" | " "*) ;;
  8443. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8444. esac
  8445. else
  8446. lt_prog_compiler_pic=
  8447. lt_prog_compiler_can_build_shared=no
  8448. fi
  8449. fi
  8450. #
  8451. # Check to make sure the static flag actually works.
  8452. #
  8453. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8455. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8456. if test ${lt_cv_prog_compiler_static_works+y}
  8457. then :
  8458. printf %s "(cached) " >&6
  8459. else $as_nop
  8460. lt_cv_prog_compiler_static_works=no
  8461. save_LDFLAGS=$LDFLAGS
  8462. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8463. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8464. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8465. # The linker can only warn and ignore the option if not recognized
  8466. # So say no if there are warnings
  8467. if test -s conftest.err; then
  8468. # Append any errors to the config.log.
  8469. cat conftest.err 1>&5
  8470. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8471. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8472. if diff conftest.exp conftest.er2 >/dev/null; then
  8473. lt_cv_prog_compiler_static_works=yes
  8474. fi
  8475. else
  8476. lt_cv_prog_compiler_static_works=yes
  8477. fi
  8478. fi
  8479. $RM -r conftest*
  8480. LDFLAGS=$save_LDFLAGS
  8481. fi
  8482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8483. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8484. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8485. :
  8486. else
  8487. lt_prog_compiler_static=
  8488. fi
  8489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8490. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8491. if test ${lt_cv_prog_compiler_c_o+y}
  8492. then :
  8493. printf %s "(cached) " >&6
  8494. else $as_nop
  8495. lt_cv_prog_compiler_c_o=no
  8496. $RM -r conftest 2>/dev/null
  8497. mkdir conftest
  8498. cd conftest
  8499. mkdir out
  8500. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8501. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8502. # Insert the option either (1) after the last *FLAGS variable, or
  8503. # (2) before a word containing "conftest.", or (3) at the end.
  8504. # Note that $ac_compile itself does not contain backslashes and begins
  8505. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8506. lt_compile=`echo "$ac_compile" | $SED \
  8507. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8508. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8509. -e 's:$: $lt_compiler_flag:'`
  8510. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8511. (eval "$lt_compile" 2>out/conftest.err)
  8512. ac_status=$?
  8513. cat out/conftest.err >&5
  8514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8515. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8516. then
  8517. # The compiler can only warn and ignore the option if not recognized
  8518. # So say no if there are warnings
  8519. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8520. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8521. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8522. lt_cv_prog_compiler_c_o=yes
  8523. fi
  8524. fi
  8525. chmod u+w . 2>&5
  8526. $RM conftest*
  8527. # SGI C++ compiler will create directory out/ii_files/ for
  8528. # template instantiation
  8529. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8530. $RM out/* && rmdir out
  8531. cd ..
  8532. $RM -r conftest
  8533. $RM conftest*
  8534. fi
  8535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8536. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8538. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8539. if test ${lt_cv_prog_compiler_c_o+y}
  8540. then :
  8541. printf %s "(cached) " >&6
  8542. else $as_nop
  8543. lt_cv_prog_compiler_c_o=no
  8544. $RM -r conftest 2>/dev/null
  8545. mkdir conftest
  8546. cd conftest
  8547. mkdir out
  8548. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8549. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8550. # Insert the option either (1) after the last *FLAGS variable, or
  8551. # (2) before a word containing "conftest.", or (3) at the end.
  8552. # Note that $ac_compile itself does not contain backslashes and begins
  8553. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8554. lt_compile=`echo "$ac_compile" | $SED \
  8555. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8556. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8557. -e 's:$: $lt_compiler_flag:'`
  8558. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8559. (eval "$lt_compile" 2>out/conftest.err)
  8560. ac_status=$?
  8561. cat out/conftest.err >&5
  8562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8563. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8564. then
  8565. # The compiler can only warn and ignore the option if not recognized
  8566. # So say no if there are warnings
  8567. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8568. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8569. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8570. lt_cv_prog_compiler_c_o=yes
  8571. fi
  8572. fi
  8573. chmod u+w . 2>&5
  8574. $RM conftest*
  8575. # SGI C++ compiler will create directory out/ii_files/ for
  8576. # template instantiation
  8577. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8578. $RM out/* && rmdir out
  8579. cd ..
  8580. $RM -r conftest
  8581. $RM conftest*
  8582. fi
  8583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8584. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8585. hard_links=nottested
  8586. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8587. # do not overwrite the value of need_locks provided by the user
  8588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8589. printf %s "checking if we can lock with hard links... " >&6; }
  8590. hard_links=yes
  8591. $RM conftest*
  8592. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8593. touch conftest.a
  8594. ln conftest.a conftest.b 2>&5 || hard_links=no
  8595. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8597. printf "%s\n" "$hard_links" >&6; }
  8598. if test no = "$hard_links"; then
  8599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8600. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8601. need_locks=warn
  8602. fi
  8603. else
  8604. need_locks=no
  8605. fi
  8606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8607. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8608. runpath_var=
  8609. allow_undefined_flag=
  8610. always_export_symbols=no
  8611. archive_cmds=
  8612. archive_expsym_cmds=
  8613. compiler_needs_object=no
  8614. enable_shared_with_static_runtimes=no
  8615. export_dynamic_flag_spec=
  8616. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8617. hardcode_automatic=no
  8618. hardcode_direct=no
  8619. hardcode_direct_absolute=no
  8620. hardcode_libdir_flag_spec=
  8621. hardcode_libdir_separator=
  8622. hardcode_minus_L=no
  8623. hardcode_shlibpath_var=unsupported
  8624. inherit_rpath=no
  8625. link_all_deplibs=unknown
  8626. module_cmds=
  8627. module_expsym_cmds=
  8628. old_archive_from_new_cmds=
  8629. old_archive_from_expsyms_cmds=
  8630. thread_safe_flag_spec=
  8631. whole_archive_flag_spec=
  8632. # include_expsyms should be a list of space-separated symbols to be *always*
  8633. # included in the symbol list
  8634. include_expsyms=
  8635. # exclude_expsyms can be an extended regexp of symbols to exclude
  8636. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8637. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8638. # as well as any symbol that contains 'd'.
  8639. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8640. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8641. # platforms (ab)use it in PIC code, but their linkers get confused if
  8642. # the symbol is explicitly referenced. Since portable code cannot
  8643. # rely on this symbol name, it's probably fine to never include it in
  8644. # preloaded symbol tables.
  8645. # Exclude shared library initialization/finalization symbols.
  8646. extract_expsyms_cmds=
  8647. case $host_os in
  8648. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8649. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  8650. # When not using gcc, we currently assume that we are using
  8651. # Microsoft Visual C++ or Intel C++ Compiler.
  8652. if test yes != "$GCC"; then
  8653. with_gnu_ld=no
  8654. fi
  8655. ;;
  8656. interix*)
  8657. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  8658. with_gnu_ld=yes
  8659. ;;
  8660. openbsd* | bitrig*)
  8661. with_gnu_ld=no
  8662. ;;
  8663. esac
  8664. ld_shlibs=yes
  8665. # On some targets, GNU ld is compatible enough with the native linker
  8666. # that we're better off using the native interface for both.
  8667. lt_use_gnu_ld_interface=no
  8668. if test yes = "$with_gnu_ld"; then
  8669. case $host_os in
  8670. aix*)
  8671. # The AIX port of GNU ld has always aspired to compatibility
  8672. # with the native linker. However, as the warning in the GNU ld
  8673. # block says, versions before 2.19.5* couldn't really create working
  8674. # shared libraries, regardless of the interface used.
  8675. case `$LD -v 2>&1` in
  8676. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8677. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8678. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8679. *)
  8680. lt_use_gnu_ld_interface=yes
  8681. ;;
  8682. esac
  8683. ;;
  8684. *)
  8685. lt_use_gnu_ld_interface=yes
  8686. ;;
  8687. esac
  8688. fi
  8689. if test yes = "$lt_use_gnu_ld_interface"; then
  8690. # If archive_cmds runs LD, not CC, wlarc should be empty
  8691. wlarc='$wl'
  8692. # Set some defaults for GNU ld with shared library support. These
  8693. # are reset later if shared libraries are not supported. Putting them
  8694. # here allows them to be overridden if necessary.
  8695. runpath_var=LD_RUN_PATH
  8696. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8697. export_dynamic_flag_spec='$wl--export-dynamic'
  8698. # ancient GNU ld didn't support --whole-archive et. al.
  8699. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8700. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8701. else
  8702. whole_archive_flag_spec=
  8703. fi
  8704. supports_anon_versioning=no
  8705. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8706. *GNU\ gold*) supports_anon_versioning=yes ;;
  8707. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8708. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8709. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8710. *\ 2.11.*) ;; # other 2.11 versions
  8711. *) supports_anon_versioning=yes ;;
  8712. esac
  8713. # See if GNU ld supports shared libraries.
  8714. case $host_os in
  8715. aix[3-9]*)
  8716. # On AIX/PPC, the GNU linker is very broken
  8717. if test ia64 != "$host_cpu"; then
  8718. ld_shlibs=no
  8719. cat <<_LT_EOF 1>&2
  8720. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8721. *** to be unable to reliably create shared libraries on AIX.
  8722. *** Therefore, libtool is disabling shared libraries support. If you
  8723. *** really care for shared libraries, you may want to install binutils
  8724. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8725. *** You will then need to restart the configuration process.
  8726. _LT_EOF
  8727. fi
  8728. ;;
  8729. amigaos*)
  8730. case $host_cpu in
  8731. powerpc)
  8732. # see comment about AmigaOS4 .so support
  8733. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8734. archive_expsym_cmds=''
  8735. ;;
  8736. m68k)
  8737. 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)'
  8738. hardcode_libdir_flag_spec='-L$libdir'
  8739. hardcode_minus_L=yes
  8740. ;;
  8741. esac
  8742. ;;
  8743. beos*)
  8744. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8745. allow_undefined_flag=unsupported
  8746. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8747. # support --undefined. This deserves some investigation. FIXME
  8748. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8749. else
  8750. ld_shlibs=no
  8751. fi
  8752. ;;
  8753. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8754. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8755. # as there is no search path for DLLs.
  8756. hardcode_libdir_flag_spec='-L$libdir'
  8757. export_dynamic_flag_spec='$wl--export-all-symbols'
  8758. allow_undefined_flag=unsupported
  8759. always_export_symbols=no
  8760. enable_shared_with_static_runtimes=yes
  8761. 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'
  8762. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8763. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8764. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8765. # If the export-symbols file already is a .def file, use it as
  8766. # is; otherwise, prepend EXPORTS...
  8767. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8768. cp $export_symbols $output_objdir/$soname.def;
  8769. else
  8770. echo EXPORTS > $output_objdir/$soname.def;
  8771. cat $export_symbols >> $output_objdir/$soname.def;
  8772. fi~
  8773. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8774. else
  8775. ld_shlibs=no
  8776. fi
  8777. ;;
  8778. haiku*)
  8779. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8780. link_all_deplibs=yes
  8781. ;;
  8782. os2*)
  8783. hardcode_libdir_flag_spec='-L$libdir'
  8784. hardcode_minus_L=yes
  8785. allow_undefined_flag=unsupported
  8786. shrext_cmds=.dll
  8787. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8788. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8789. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8790. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8791. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8792. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8793. emximp -o $lib $output_objdir/$libname.def'
  8794. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8795. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8796. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8797. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8798. prefix_cmds="$SED"~
  8799. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8800. prefix_cmds="$prefix_cmds -e 1d";
  8801. fi~
  8802. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8803. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8804. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8805. emximp -o $lib $output_objdir/$libname.def'
  8806. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8807. enable_shared_with_static_runtimes=yes
  8808. file_list_spec='@'
  8809. ;;
  8810. interix[3-9]*)
  8811. hardcode_direct=no
  8812. hardcode_shlibpath_var=no
  8813. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8814. export_dynamic_flag_spec='$wl-E'
  8815. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8816. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8817. # default) and relocated if they conflict, which is a slow very memory
  8818. # consuming and fragmenting process. To avoid this, we pick a random,
  8819. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8820. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8821. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8822. 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'
  8823. ;;
  8824. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8825. tmp_diet=no
  8826. if test linux-dietlibc = "$host_os"; then
  8827. case $cc_basename in
  8828. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8829. esac
  8830. fi
  8831. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8832. && test no = "$tmp_diet"
  8833. then
  8834. tmp_addflag=' $pic_flag'
  8835. tmp_sharedflag='-shared'
  8836. case $cc_basename,$host_cpu in
  8837. pgcc*) # Portland Group C compiler
  8838. 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'
  8839. tmp_addflag=' $pic_flag'
  8840. ;;
  8841. pgf77* | pgf90* | pgf95* | pgfortran*)
  8842. # Portland Group f77 and f90 compilers
  8843. 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'
  8844. tmp_addflag=' $pic_flag -Mnomain' ;;
  8845. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8846. tmp_addflag=' -i_dynamic' ;;
  8847. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8848. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8849. ifc* | ifort*) # Intel Fortran compiler
  8850. tmp_addflag=' -nofor_main' ;;
  8851. lf95*) # Lahey Fortran 8.1
  8852. whole_archive_flag_spec=
  8853. tmp_sharedflag='--shared' ;;
  8854. nagfor*) # NAGFOR 5.3
  8855. tmp_sharedflag='-Wl,-shared' ;;
  8856. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8857. tmp_sharedflag='-qmkshrobj'
  8858. tmp_addflag= ;;
  8859. nvcc*) # Cuda Compiler Driver 2.2
  8860. 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'
  8861. compiler_needs_object=yes
  8862. ;;
  8863. esac
  8864. case `$CC -V 2>&1 | sed 5q` in
  8865. *Sun\ C*) # Sun C 5.9
  8866. 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'
  8867. compiler_needs_object=yes
  8868. tmp_sharedflag='-G' ;;
  8869. *Sun\ F*) # Sun Fortran 8.3
  8870. tmp_sharedflag='-G' ;;
  8871. esac
  8872. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8873. if test yes = "$supports_anon_versioning"; then
  8874. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8875. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8876. echo "local: *; };" >> $output_objdir/$libname.ver~
  8877. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8878. fi
  8879. case $cc_basename in
  8880. tcc*)
  8881. export_dynamic_flag_spec='-rdynamic'
  8882. ;;
  8883. xlf* | bgf* | bgxlf* | mpixlf*)
  8884. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8885. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8886. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8887. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8888. if test yes = "$supports_anon_versioning"; then
  8889. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8890. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8891. echo "local: *; };" >> $output_objdir/$libname.ver~
  8892. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8893. fi
  8894. ;;
  8895. esac
  8896. else
  8897. ld_shlibs=no
  8898. fi
  8899. ;;
  8900. netbsd*)
  8901. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8902. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8903. wlarc=
  8904. else
  8905. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8906. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8907. fi
  8908. ;;
  8909. solaris*)
  8910. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8911. ld_shlibs=no
  8912. cat <<_LT_EOF 1>&2
  8913. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8914. *** create shared libraries on Solaris systems. Therefore, libtool
  8915. *** is disabling shared libraries support. We urge you to upgrade GNU
  8916. *** binutils to release 2.9.1 or newer. Another option is to modify
  8917. *** your PATH or compiler configuration so that the native linker is
  8918. *** used, and then restart.
  8919. _LT_EOF
  8920. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8921. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8922. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8923. else
  8924. ld_shlibs=no
  8925. fi
  8926. ;;
  8927. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8928. case `$LD -v 2>&1` in
  8929. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8930. ld_shlibs=no
  8931. cat <<_LT_EOF 1>&2
  8932. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8933. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8934. *** is disabling shared libraries support. We urge you to upgrade GNU
  8935. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8936. *** your PATH or compiler configuration so that the native linker is
  8937. *** used, and then restart.
  8938. _LT_EOF
  8939. ;;
  8940. *)
  8941. # For security reasons, it is highly recommended that you always
  8942. # use absolute paths for naming shared libraries, and exclude the
  8943. # DT_RUNPATH tag from executables and libraries. But doing so
  8944. # requires that you compile everything twice, which is a pain.
  8945. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8946. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8947. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8948. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8949. else
  8950. ld_shlibs=no
  8951. fi
  8952. ;;
  8953. esac
  8954. ;;
  8955. sunos4*)
  8956. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8957. wlarc=
  8958. hardcode_direct=yes
  8959. hardcode_shlibpath_var=no
  8960. ;;
  8961. *)
  8962. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8963. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8964. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8965. else
  8966. ld_shlibs=no
  8967. fi
  8968. ;;
  8969. esac
  8970. if test no = "$ld_shlibs"; then
  8971. runpath_var=
  8972. hardcode_libdir_flag_spec=
  8973. export_dynamic_flag_spec=
  8974. whole_archive_flag_spec=
  8975. fi
  8976. else
  8977. # PORTME fill in a description of your system's linker (not GNU ld)
  8978. case $host_os in
  8979. aix3*)
  8980. allow_undefined_flag=unsupported
  8981. always_export_symbols=yes
  8982. 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'
  8983. # Note: this linker hardcodes the directories in LIBPATH if there
  8984. # are no directories specified by -L.
  8985. hardcode_minus_L=yes
  8986. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8987. # Neither direct hardcoding nor static linking is supported with a
  8988. # broken collect2.
  8989. hardcode_direct=unsupported
  8990. fi
  8991. ;;
  8992. aix[4-9]*)
  8993. if test ia64 = "$host_cpu"; then
  8994. # On IA64, the linker does run time linking by default, so we don't
  8995. # have to do anything special.
  8996. aix_use_runtimelinking=no
  8997. exp_sym_flag='-Bexport'
  8998. no_entry_flag=
  8999. else
  9000. # If we're using GNU nm, then we don't want the "-C" option.
  9001. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9002. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9003. # weak defined symbols like other global defined symbols, whereas
  9004. # GNU nm marks them as "W".
  9005. # While the 'weak' keyword is ignored in the Export File, we need
  9006. # it in the Import File for the 'aix-soname' feature, so we have
  9007. # to replace the "-B" option with "-P" for AIX nm.
  9008. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9009. 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'
  9010. else
  9011. 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'
  9012. fi
  9013. aix_use_runtimelinking=no
  9014. # Test if we are trying to use run time linking or normal
  9015. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9016. # have runtime linking enabled, and use it for executables.
  9017. # For shared libraries, we enable/disable runtime linking
  9018. # depending on the kind of the shared library created -
  9019. # when "with_aix_soname,aix_use_runtimelinking" is:
  9020. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9021. # "aix,yes" lib.so shared, rtl:yes, for executables
  9022. # lib.a static archive
  9023. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9024. # lib.a(lib.so.V) shared, rtl:no, for executables
  9025. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9026. # lib.a(lib.so.V) shared, rtl:no
  9027. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9028. # lib.a static archive
  9029. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9030. for ld_flag in $LDFLAGS; do
  9031. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9032. aix_use_runtimelinking=yes
  9033. break
  9034. fi
  9035. done
  9036. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9037. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9038. # so we don't have lib.a shared libs to link our executables.
  9039. # We have to force runtime linking in this case.
  9040. aix_use_runtimelinking=yes
  9041. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9042. fi
  9043. ;;
  9044. esac
  9045. exp_sym_flag='-bexport'
  9046. no_entry_flag='-bnoentry'
  9047. fi
  9048. # When large executables or shared objects are built, AIX ld can
  9049. # have problems creating the table of contents. If linking a library
  9050. # or program results in "error TOC overflow" add -mminimal-toc to
  9051. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9052. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9053. archive_cmds=''
  9054. hardcode_direct=yes
  9055. hardcode_direct_absolute=yes
  9056. hardcode_libdir_separator=':'
  9057. link_all_deplibs=yes
  9058. file_list_spec='$wl-f,'
  9059. case $with_aix_soname,$aix_use_runtimelinking in
  9060. aix,*) ;; # traditional, no import file
  9061. svr4,* | *,yes) # use import file
  9062. # The Import File defines what to hardcode.
  9063. hardcode_direct=no
  9064. hardcode_direct_absolute=no
  9065. ;;
  9066. esac
  9067. if test yes = "$GCC"; then
  9068. case $host_os in aix4.[012]|aix4.[012].*)
  9069. # We only want to do this on AIX 4.2 and lower, the check
  9070. # below for broken collect2 doesn't work under 4.3+
  9071. collect2name=`$CC -print-prog-name=collect2`
  9072. if test -f "$collect2name" &&
  9073. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9074. then
  9075. # We have reworked collect2
  9076. :
  9077. else
  9078. # We have old collect2
  9079. hardcode_direct=unsupported
  9080. # It fails to find uninstalled libraries when the uninstalled
  9081. # path is not listed in the libpath. Setting hardcode_minus_L
  9082. # to unsupported forces relinking
  9083. hardcode_minus_L=yes
  9084. hardcode_libdir_flag_spec='-L$libdir'
  9085. hardcode_libdir_separator=
  9086. fi
  9087. ;;
  9088. esac
  9089. shared_flag='-shared'
  9090. if test yes = "$aix_use_runtimelinking"; then
  9091. shared_flag="$shared_flag "'$wl-G'
  9092. fi
  9093. # Need to ensure runtime linking is disabled for the traditional
  9094. # shared library, or the linker may eventually find shared libraries
  9095. # /with/ Import File - we do not want to mix them.
  9096. shared_flag_aix='-shared'
  9097. shared_flag_svr4='-shared $wl-G'
  9098. else
  9099. # not using gcc
  9100. if test ia64 = "$host_cpu"; then
  9101. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9102. # chokes on -Wl,-G. The following line is correct:
  9103. shared_flag='-G'
  9104. else
  9105. if test yes = "$aix_use_runtimelinking"; then
  9106. shared_flag='$wl-G'
  9107. else
  9108. shared_flag='$wl-bM:SRE'
  9109. fi
  9110. shared_flag_aix='$wl-bM:SRE'
  9111. shared_flag_svr4='$wl-G'
  9112. fi
  9113. fi
  9114. export_dynamic_flag_spec='$wl-bexpall'
  9115. # It seems that -bexpall does not export symbols beginning with
  9116. # underscore (_), so it is better to generate a list of symbols to export.
  9117. always_export_symbols=yes
  9118. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9119. # Warning - without using the other runtime loading flags (-brtl),
  9120. # -berok will link without error, but may produce a broken library.
  9121. allow_undefined_flag='-berok'
  9122. # Determine the default libpath from the value encoded in an
  9123. # empty executable.
  9124. if test set = "${lt_cv_aix_libpath+set}"; then
  9125. aix_libpath=$lt_cv_aix_libpath
  9126. else
  9127. if test ${lt_cv_aix_libpath_+y}
  9128. then :
  9129. printf %s "(cached) " >&6
  9130. else $as_nop
  9131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9132. /* end confdefs.h. */
  9133. int
  9134. main (void)
  9135. {
  9136. ;
  9137. return 0;
  9138. }
  9139. _ACEOF
  9140. if ac_fn_c_try_link "$LINENO"
  9141. then :
  9142. lt_aix_libpath_sed='
  9143. /Import File Strings/,/^$/ {
  9144. /^0/ {
  9145. s/^0 *\([^ ]*\) *$/\1/
  9146. p
  9147. }
  9148. }'
  9149. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9150. # Check for a 64-bit object if we didn't find anything.
  9151. if test -z "$lt_cv_aix_libpath_"; then
  9152. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9153. fi
  9154. fi
  9155. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9156. conftest$ac_exeext conftest.$ac_ext
  9157. if test -z "$lt_cv_aix_libpath_"; then
  9158. lt_cv_aix_libpath_=/usr/lib:/lib
  9159. fi
  9160. fi
  9161. aix_libpath=$lt_cv_aix_libpath_
  9162. fi
  9163. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9164. 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
  9165. else
  9166. if test ia64 = "$host_cpu"; then
  9167. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9168. allow_undefined_flag="-z nodefs"
  9169. 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"
  9170. else
  9171. # Determine the default libpath from the value encoded in an
  9172. # empty executable.
  9173. if test set = "${lt_cv_aix_libpath+set}"; then
  9174. aix_libpath=$lt_cv_aix_libpath
  9175. else
  9176. if test ${lt_cv_aix_libpath_+y}
  9177. then :
  9178. printf %s "(cached) " >&6
  9179. else $as_nop
  9180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9181. /* end confdefs.h. */
  9182. int
  9183. main (void)
  9184. {
  9185. ;
  9186. return 0;
  9187. }
  9188. _ACEOF
  9189. if ac_fn_c_try_link "$LINENO"
  9190. then :
  9191. lt_aix_libpath_sed='
  9192. /Import File Strings/,/^$/ {
  9193. /^0/ {
  9194. s/^0 *\([^ ]*\) *$/\1/
  9195. p
  9196. }
  9197. }'
  9198. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9199. # Check for a 64-bit object if we didn't find anything.
  9200. if test -z "$lt_cv_aix_libpath_"; then
  9201. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9202. fi
  9203. fi
  9204. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9205. conftest$ac_exeext conftest.$ac_ext
  9206. if test -z "$lt_cv_aix_libpath_"; then
  9207. lt_cv_aix_libpath_=/usr/lib:/lib
  9208. fi
  9209. fi
  9210. aix_libpath=$lt_cv_aix_libpath_
  9211. fi
  9212. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9213. # Warning - without using the other run time loading flags,
  9214. # -berok will link without error, but may produce a broken library.
  9215. no_undefined_flag=' $wl-bernotok'
  9216. allow_undefined_flag=' $wl-berok'
  9217. if test yes = "$with_gnu_ld"; then
  9218. # We only use this code for GNU lds that support --whole-archive.
  9219. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9220. else
  9221. # Exported symbols can be pulled into shared objects from archives
  9222. whole_archive_flag_spec='$convenience'
  9223. fi
  9224. archive_cmds_need_lc=yes
  9225. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9226. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9227. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9228. if test svr4 != "$with_aix_soname"; then
  9229. # This is similar to how AIX traditionally builds its shared libraries.
  9230. 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'
  9231. fi
  9232. if test aix != "$with_aix_soname"; then
  9233. 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'
  9234. else
  9235. # used by -dlpreopen to get the symbols
  9236. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9237. fi
  9238. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9239. fi
  9240. fi
  9241. ;;
  9242. amigaos*)
  9243. case $host_cpu in
  9244. powerpc)
  9245. # see comment about AmigaOS4 .so support
  9246. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9247. archive_expsym_cmds=''
  9248. ;;
  9249. m68k)
  9250. 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)'
  9251. hardcode_libdir_flag_spec='-L$libdir'
  9252. hardcode_minus_L=yes
  9253. ;;
  9254. esac
  9255. ;;
  9256. bsdi[45]*)
  9257. export_dynamic_flag_spec=-rdynamic
  9258. ;;
  9259. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9260. # When not using gcc, we currently assume that we are using
  9261. # Microsoft Visual C++ or Intel C++ Compiler.
  9262. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9263. # no search path for DLLs.
  9264. case $cc_basename in
  9265. cl* | icl*)
  9266. # Native MSVC or ICC
  9267. hardcode_libdir_flag_spec=' '
  9268. allow_undefined_flag=unsupported
  9269. always_export_symbols=yes
  9270. file_list_spec='@'
  9271. # Tell ltmain to make .lib files, not .a files.
  9272. libext=lib
  9273. # Tell ltmain to make .dll files, not .so files.
  9274. shrext_cmds=.dll
  9275. # FIXME: Setting linknames here is a bad hack.
  9276. archive_cmds='$CC -Fe $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9277. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9278. cp "$export_symbols" "$output_objdir/$soname.def";
  9279. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9280. else
  9281. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9282. fi~
  9283. $CC -Fe $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9284. linknames='
  9285. # The linker will not automatically build a static lib if we build a DLL.
  9286. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9287. enable_shared_with_static_runtimes=yes
  9288. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9289. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9290. # Don't use ranlib
  9291. old_postinstall_cmds='chmod 644 $oldlib'
  9292. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9293. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9294. case $lt_outputfile in
  9295. *.exe|*.EXE) ;;
  9296. *)
  9297. lt_outputfile=$lt_outputfile.exe
  9298. lt_tool_outputfile=$lt_tool_outputfile.exe
  9299. ;;
  9300. esac~
  9301. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9302. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9303. $RM "$lt_outputfile.manifest";
  9304. fi'
  9305. ;;
  9306. *)
  9307. # Assume MSVC and ICC wrapper
  9308. hardcode_libdir_flag_spec=' '
  9309. allow_undefined_flag=unsupported
  9310. # Tell ltmain to make .lib files, not .a files.
  9311. libext=lib
  9312. # Tell ltmain to make .dll files, not .so files.
  9313. shrext_cmds=.dll
  9314. # FIXME: Setting linknames here is a bad hack.
  9315. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9316. # The linker will automatically build a .lib file if we build a DLL.
  9317. old_archive_from_new_cmds='true'
  9318. # FIXME: Should let the user specify the lib program.
  9319. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9320. enable_shared_with_static_runtimes=yes
  9321. ;;
  9322. esac
  9323. ;;
  9324. darwin* | rhapsody*)
  9325. archive_cmds_need_lc=no
  9326. hardcode_direct=no
  9327. hardcode_automatic=yes
  9328. hardcode_shlibpath_var=unsupported
  9329. if test yes = "$lt_cv_ld_force_load"; then
  9330. 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\"`'
  9331. else
  9332. whole_archive_flag_spec=''
  9333. fi
  9334. link_all_deplibs=yes
  9335. allow_undefined_flag=$_lt_dar_allow_undefined
  9336. case $cc_basename in
  9337. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9338. *) _lt_dar_can_shared=$GCC ;;
  9339. esac
  9340. if test yes = "$_lt_dar_can_shared"; then
  9341. output_verbose_link_cmd=func_echo_all
  9342. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9343. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9344. 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"
  9345. 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"
  9346. else
  9347. ld_shlibs=no
  9348. fi
  9349. ;;
  9350. dgux*)
  9351. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9352. hardcode_libdir_flag_spec='-L$libdir'
  9353. hardcode_shlibpath_var=no
  9354. ;;
  9355. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9356. # support. Future versions do this automatically, but an explicit c++rt0.o
  9357. # does not break anything, and helps significantly (at the cost of a little
  9358. # extra space).
  9359. freebsd2.2*)
  9360. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9361. hardcode_libdir_flag_spec='-R$libdir'
  9362. hardcode_direct=yes
  9363. hardcode_shlibpath_var=no
  9364. ;;
  9365. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9366. freebsd2.*)
  9367. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9368. hardcode_direct=yes
  9369. hardcode_minus_L=yes
  9370. hardcode_shlibpath_var=no
  9371. ;;
  9372. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9373. freebsd* | dragonfly* | midnightbsd*)
  9374. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9375. hardcode_libdir_flag_spec='-R$libdir'
  9376. hardcode_direct=yes
  9377. hardcode_shlibpath_var=no
  9378. ;;
  9379. hpux9*)
  9380. if test yes = "$GCC"; then
  9381. 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'
  9382. else
  9383. 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'
  9384. fi
  9385. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9386. hardcode_libdir_separator=:
  9387. hardcode_direct=yes
  9388. # hardcode_minus_L: Not really in the search PATH,
  9389. # but as the default location of the library.
  9390. hardcode_minus_L=yes
  9391. export_dynamic_flag_spec='$wl-E'
  9392. ;;
  9393. hpux10*)
  9394. if test yes,no = "$GCC,$with_gnu_ld"; then
  9395. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9396. else
  9397. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9398. fi
  9399. if test no = "$with_gnu_ld"; then
  9400. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9401. hardcode_libdir_separator=:
  9402. hardcode_direct=yes
  9403. hardcode_direct_absolute=yes
  9404. export_dynamic_flag_spec='$wl-E'
  9405. # hardcode_minus_L: Not really in the search PATH,
  9406. # but as the default location of the library.
  9407. hardcode_minus_L=yes
  9408. fi
  9409. ;;
  9410. hpux11*)
  9411. if test yes,no = "$GCC,$with_gnu_ld"; then
  9412. case $host_cpu in
  9413. hppa*64*)
  9414. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9415. ;;
  9416. ia64*)
  9417. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9418. ;;
  9419. *)
  9420. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9421. ;;
  9422. esac
  9423. else
  9424. case $host_cpu in
  9425. hppa*64*)
  9426. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9427. ;;
  9428. ia64*)
  9429. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9430. ;;
  9431. *)
  9432. # Older versions of the 11.00 compiler do not understand -b yet
  9433. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9435. printf %s "checking if $CC understands -b... " >&6; }
  9436. if test ${lt_cv_prog_compiler__b+y}
  9437. then :
  9438. printf %s "(cached) " >&6
  9439. else $as_nop
  9440. lt_cv_prog_compiler__b=no
  9441. save_LDFLAGS=$LDFLAGS
  9442. LDFLAGS="$LDFLAGS -b"
  9443. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9444. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9445. # The linker can only warn and ignore the option if not recognized
  9446. # So say no if there are warnings
  9447. if test -s conftest.err; then
  9448. # Append any errors to the config.log.
  9449. cat conftest.err 1>&5
  9450. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9451. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9452. if diff conftest.exp conftest.er2 >/dev/null; then
  9453. lt_cv_prog_compiler__b=yes
  9454. fi
  9455. else
  9456. lt_cv_prog_compiler__b=yes
  9457. fi
  9458. fi
  9459. $RM -r conftest*
  9460. LDFLAGS=$save_LDFLAGS
  9461. fi
  9462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9463. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9464. if test yes = "$lt_cv_prog_compiler__b"; then
  9465. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9466. else
  9467. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9468. fi
  9469. ;;
  9470. esac
  9471. fi
  9472. if test no = "$with_gnu_ld"; then
  9473. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9474. hardcode_libdir_separator=:
  9475. case $host_cpu in
  9476. hppa*64*|ia64*)
  9477. hardcode_direct=no
  9478. hardcode_shlibpath_var=no
  9479. ;;
  9480. *)
  9481. hardcode_direct=yes
  9482. hardcode_direct_absolute=yes
  9483. export_dynamic_flag_spec='$wl-E'
  9484. # hardcode_minus_L: Not really in the search PATH,
  9485. # but as the default location of the library.
  9486. hardcode_minus_L=yes
  9487. ;;
  9488. esac
  9489. fi
  9490. ;;
  9491. irix5* | irix6* | nonstopux*)
  9492. if test yes = "$GCC"; then
  9493. 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'
  9494. # Try to use the -exported_symbol ld option, if it does not
  9495. # work, assume that -exports_file does not work either and
  9496. # implicitly export all symbols.
  9497. # This should be the same for all languages, so no per-tag cache variable.
  9498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9499. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9500. if test ${lt_cv_irix_exported_symbol+y}
  9501. then :
  9502. printf %s "(cached) " >&6
  9503. else $as_nop
  9504. save_LDFLAGS=$LDFLAGS
  9505. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9507. /* end confdefs.h. */
  9508. int foo (void) { return 0; }
  9509. _ACEOF
  9510. if ac_fn_c_try_link "$LINENO"
  9511. then :
  9512. lt_cv_irix_exported_symbol=yes
  9513. else $as_nop
  9514. lt_cv_irix_exported_symbol=no
  9515. fi
  9516. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9517. conftest$ac_exeext conftest.$ac_ext
  9518. LDFLAGS=$save_LDFLAGS
  9519. fi
  9520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9521. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9522. if test yes = "$lt_cv_irix_exported_symbol"; then
  9523. 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'
  9524. fi
  9525. else
  9526. 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'
  9527. 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'
  9528. fi
  9529. archive_cmds_need_lc='no'
  9530. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9531. hardcode_libdir_separator=:
  9532. inherit_rpath=yes
  9533. link_all_deplibs=yes
  9534. ;;
  9535. linux*)
  9536. case $cc_basename in
  9537. tcc*)
  9538. # Fabrice Bellard et al's Tiny C Compiler
  9539. ld_shlibs=yes
  9540. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9541. ;;
  9542. esac
  9543. ;;
  9544. netbsd*)
  9545. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9546. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9547. else
  9548. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9549. fi
  9550. hardcode_libdir_flag_spec='-R$libdir'
  9551. hardcode_direct=yes
  9552. hardcode_shlibpath_var=no
  9553. ;;
  9554. newsos6)
  9555. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9556. hardcode_direct=yes
  9557. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9558. hardcode_libdir_separator=:
  9559. hardcode_shlibpath_var=no
  9560. ;;
  9561. *nto* | *qnx*)
  9562. ;;
  9563. openbsd* | bitrig*)
  9564. if test -f /usr/libexec/ld.so; then
  9565. hardcode_direct=yes
  9566. hardcode_shlibpath_var=no
  9567. hardcode_direct_absolute=yes
  9568. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9569. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9570. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9571. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9572. export_dynamic_flag_spec='$wl-E'
  9573. else
  9574. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9575. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9576. fi
  9577. else
  9578. ld_shlibs=no
  9579. fi
  9580. ;;
  9581. os2*)
  9582. hardcode_libdir_flag_spec='-L$libdir'
  9583. hardcode_minus_L=yes
  9584. allow_undefined_flag=unsupported
  9585. shrext_cmds=.dll
  9586. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9587. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9588. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9589. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9590. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9591. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9592. emximp -o $lib $output_objdir/$libname.def'
  9593. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9594. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9595. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9596. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9597. prefix_cmds="$SED"~
  9598. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9599. prefix_cmds="$prefix_cmds -e 1d";
  9600. fi~
  9601. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9602. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9603. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9604. emximp -o $lib $output_objdir/$libname.def'
  9605. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9606. enable_shared_with_static_runtimes=yes
  9607. file_list_spec='@'
  9608. ;;
  9609. osf3*)
  9610. if test yes = "$GCC"; then
  9611. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9612. 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'
  9613. else
  9614. allow_undefined_flag=' -expect_unresolved \*'
  9615. 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'
  9616. fi
  9617. archive_cmds_need_lc='no'
  9618. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9619. hardcode_libdir_separator=:
  9620. ;;
  9621. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9622. if test yes = "$GCC"; then
  9623. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9624. 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'
  9625. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9626. else
  9627. allow_undefined_flag=' -expect_unresolved \*'
  9628. 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'
  9629. 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~
  9630. $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'
  9631. # Both c and cxx compiler support -rpath directly
  9632. hardcode_libdir_flag_spec='-rpath $libdir'
  9633. fi
  9634. archive_cmds_need_lc='no'
  9635. hardcode_libdir_separator=:
  9636. ;;
  9637. solaris*)
  9638. no_undefined_flag=' -z defs'
  9639. if test yes = "$GCC"; then
  9640. wlarc='$wl'
  9641. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9642. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9643. $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'
  9644. else
  9645. case `$CC -V 2>&1` in
  9646. *"Compilers 5.0"*)
  9647. wlarc=''
  9648. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9649. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9650. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9651. ;;
  9652. *)
  9653. wlarc='$wl'
  9654. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9655. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9656. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9657. ;;
  9658. esac
  9659. fi
  9660. hardcode_libdir_flag_spec='-R$libdir'
  9661. hardcode_shlibpath_var=no
  9662. case $host_os in
  9663. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9664. *)
  9665. # The compiler driver will combine and reorder linker options,
  9666. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9667. # but is careful enough not to reorder.
  9668. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9669. if test yes = "$GCC"; then
  9670. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9671. else
  9672. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9673. fi
  9674. ;;
  9675. esac
  9676. link_all_deplibs=yes
  9677. ;;
  9678. sunos4*)
  9679. if test sequent = "$host_vendor"; then
  9680. # Use $CC to link under sequent, because it throws in some extra .o
  9681. # files that make .init and .fini sections work.
  9682. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9683. else
  9684. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9685. fi
  9686. hardcode_libdir_flag_spec='-L$libdir'
  9687. hardcode_direct=yes
  9688. hardcode_minus_L=yes
  9689. hardcode_shlibpath_var=no
  9690. ;;
  9691. sysv4)
  9692. case $host_vendor in
  9693. sni)
  9694. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9695. hardcode_direct=yes # is this really true???
  9696. ;;
  9697. siemens)
  9698. ## LD is ld it makes a PLAMLIB
  9699. ## CC just makes a GrossModule.
  9700. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9701. reload_cmds='$CC -r -o $output$reload_objs'
  9702. hardcode_direct=no
  9703. ;;
  9704. motorola)
  9705. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9706. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9707. ;;
  9708. esac
  9709. runpath_var='LD_RUN_PATH'
  9710. hardcode_shlibpath_var=no
  9711. ;;
  9712. sysv4.3*)
  9713. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9714. hardcode_shlibpath_var=no
  9715. export_dynamic_flag_spec='-Bexport'
  9716. ;;
  9717. sysv4*MP*)
  9718. if test -d /usr/nec; then
  9719. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9720. hardcode_shlibpath_var=no
  9721. runpath_var=LD_RUN_PATH
  9722. hardcode_runpath_var=yes
  9723. ld_shlibs=yes
  9724. fi
  9725. ;;
  9726. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9727. no_undefined_flag='$wl-z,text'
  9728. archive_cmds_need_lc=no
  9729. hardcode_shlibpath_var=no
  9730. runpath_var='LD_RUN_PATH'
  9731. if test yes = "$GCC"; then
  9732. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9733. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9734. else
  9735. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9736. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9737. fi
  9738. ;;
  9739. sysv5* | sco3.2v5* | sco5v6*)
  9740. # Note: We CANNOT use -z defs as we might desire, because we do not
  9741. # link with -lc, and that would cause any symbols used from libc to
  9742. # always be unresolved, which means just about no library would
  9743. # ever link correctly. If we're not using GNU ld we use -z text
  9744. # though, which does catch some bad symbols but isn't as heavy-handed
  9745. # as -z defs.
  9746. no_undefined_flag='$wl-z,text'
  9747. allow_undefined_flag='$wl-z,nodefs'
  9748. archive_cmds_need_lc=no
  9749. hardcode_shlibpath_var=no
  9750. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9751. hardcode_libdir_separator=':'
  9752. link_all_deplibs=yes
  9753. export_dynamic_flag_spec='$wl-Bexport'
  9754. runpath_var='LD_RUN_PATH'
  9755. if test yes = "$GCC"; then
  9756. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9757. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9758. else
  9759. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9760. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9761. fi
  9762. ;;
  9763. uts4*)
  9764. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9765. hardcode_libdir_flag_spec='-L$libdir'
  9766. hardcode_shlibpath_var=no
  9767. ;;
  9768. *)
  9769. ld_shlibs=no
  9770. ;;
  9771. esac
  9772. if test sni = "$host_vendor"; then
  9773. case $host in
  9774. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9775. export_dynamic_flag_spec='$wl-Blargedynsym'
  9776. ;;
  9777. esac
  9778. fi
  9779. fi
  9780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9781. printf "%s\n" "$ld_shlibs" >&6; }
  9782. test no = "$ld_shlibs" && can_build_shared=no
  9783. with_gnu_ld=$with_gnu_ld
  9784. #
  9785. # Do we need to explicitly link libc?
  9786. #
  9787. case "x$archive_cmds_need_lc" in
  9788. x|xyes)
  9789. # Assume -lc should be added
  9790. archive_cmds_need_lc=yes
  9791. if test yes,yes = "$GCC,$enable_shared"; then
  9792. case $archive_cmds in
  9793. *'~'*)
  9794. # FIXME: we may have to deal with multi-command sequences.
  9795. ;;
  9796. '$CC '*)
  9797. # Test whether the compiler implicitly links with -lc since on some
  9798. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9799. # to ld, don't add -lc before -lgcc.
  9800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9801. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9802. if test ${lt_cv_archive_cmds_need_lc+y}
  9803. then :
  9804. printf %s "(cached) " >&6
  9805. else $as_nop
  9806. $RM conftest*
  9807. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9808. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9809. (eval $ac_compile) 2>&5
  9810. ac_status=$?
  9811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9812. test $ac_status = 0; } 2>conftest.err; then
  9813. soname=conftest
  9814. lib=conftest
  9815. libobjs=conftest.$ac_objext
  9816. deplibs=
  9817. wl=$lt_prog_compiler_wl
  9818. pic_flag=$lt_prog_compiler_pic
  9819. compiler_flags=-v
  9820. linker_flags=-v
  9821. verstring=
  9822. output_objdir=.
  9823. libname=conftest
  9824. lt_save_allow_undefined_flag=$allow_undefined_flag
  9825. allow_undefined_flag=
  9826. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9827. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9828. ac_status=$?
  9829. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9830. test $ac_status = 0; }
  9831. then
  9832. lt_cv_archive_cmds_need_lc=no
  9833. else
  9834. lt_cv_archive_cmds_need_lc=yes
  9835. fi
  9836. allow_undefined_flag=$lt_save_allow_undefined_flag
  9837. else
  9838. cat conftest.err 1>&5
  9839. fi
  9840. $RM conftest*
  9841. fi
  9842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9843. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9844. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9845. ;;
  9846. esac
  9847. fi
  9848. ;;
  9849. esac
  9850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9851. printf %s "checking dynamic linker characteristics... " >&6; }
  9852. if test yes = "$GCC"; then
  9853. case $host_os in
  9854. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9855. *) lt_awk_arg='/^libraries:/' ;;
  9856. esac
  9857. case $host_os in
  9858. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9859. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9860. esac
  9861. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9862. case $lt_search_path_spec in
  9863. *\;*)
  9864. # if the path contains ";" then we assume it to be the separator
  9865. # otherwise default to the standard path separator (i.e. ":") - it is
  9866. # assumed that no part of a normal pathname contains ";" but that should
  9867. # okay in the real world where ";" in dirpaths is itself problematic.
  9868. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9869. ;;
  9870. *)
  9871. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9872. ;;
  9873. esac
  9874. # Ok, now we have the path, separated by spaces, we can step through it
  9875. # and add multilib dir if necessary...
  9876. lt_tmp_lt_search_path_spec=
  9877. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9878. # ...but if some path component already ends with the multilib dir we assume
  9879. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9880. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9881. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9882. lt_multi_os_dir=
  9883. ;;
  9884. esac
  9885. for lt_sys_path in $lt_search_path_spec; do
  9886. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9887. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9888. elif test -n "$lt_multi_os_dir"; then
  9889. test -d "$lt_sys_path" && \
  9890. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9891. fi
  9892. done
  9893. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9894. BEGIN {RS = " "; FS = "/|\n";} {
  9895. lt_foo = "";
  9896. lt_count = 0;
  9897. for (lt_i = NF; lt_i > 0; lt_i--) {
  9898. if ($lt_i != "" && $lt_i != ".") {
  9899. if ($lt_i == "..") {
  9900. lt_count++;
  9901. } else {
  9902. if (lt_count == 0) {
  9903. lt_foo = "/" $lt_i lt_foo;
  9904. } else {
  9905. lt_count--;
  9906. }
  9907. }
  9908. }
  9909. }
  9910. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9911. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9912. }'`
  9913. # AWK program above erroneously prepends '/' to C:/dos/paths
  9914. # for these hosts.
  9915. case $host_os in
  9916. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9917. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9918. esac
  9919. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9920. else
  9921. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9922. fi
  9923. library_names_spec=
  9924. libname_spec='lib$name'
  9925. soname_spec=
  9926. shrext_cmds=.so
  9927. postinstall_cmds=
  9928. postuninstall_cmds=
  9929. finish_cmds=
  9930. finish_eval=
  9931. shlibpath_var=
  9932. shlibpath_overrides_runpath=unknown
  9933. version_type=none
  9934. dynamic_linker="$host_os ld.so"
  9935. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9936. need_lib_prefix=unknown
  9937. hardcode_into_libs=no
  9938. # when you set need_version to no, make sure it does not cause -set_version
  9939. # flags to be left without arguments
  9940. need_version=unknown
  9941. case $host_os in
  9942. aix3*)
  9943. version_type=linux # correct to gnu/linux during the next big refactor
  9944. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9945. shlibpath_var=LIBPATH
  9946. # AIX 3 has no versioning support, so we append a major version to the name.
  9947. soname_spec='$libname$release$shared_ext$major'
  9948. ;;
  9949. aix[4-9]*)
  9950. version_type=linux # correct to gnu/linux during the next big refactor
  9951. need_lib_prefix=no
  9952. need_version=no
  9953. hardcode_into_libs=yes
  9954. if test ia64 = "$host_cpu"; then
  9955. # AIX 5 supports IA64
  9956. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9957. shlibpath_var=LD_LIBRARY_PATH
  9958. else
  9959. # With GCC up to 2.95.x, collect2 would create an import file
  9960. # for dependence libraries. The import file would start with
  9961. # the line '#! .'. This would cause the generated library to
  9962. # depend on '.', always an invalid library. This was fixed in
  9963. # development snapshots of GCC prior to 3.0.
  9964. case $host_os in
  9965. aix4 | aix4.[01] | aix4.[01].*)
  9966. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9967. echo ' yes '
  9968. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9969. :
  9970. else
  9971. can_build_shared=no
  9972. fi
  9973. ;;
  9974. esac
  9975. # Using Import Files as archive members, it is possible to support
  9976. # filename-based versioning of shared library archives on AIX. While
  9977. # this would work for both with and without runtime linking, it will
  9978. # prevent static linking of such archives. So we do filename-based
  9979. # shared library versioning with .so extension only, which is used
  9980. # when both runtime linking and shared linking is enabled.
  9981. # Unfortunately, runtime linking may impact performance, so we do
  9982. # not want this to be the default eventually. Also, we use the
  9983. # versioned .so libs for executables only if there is the -brtl
  9984. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9985. # To allow for filename-based versioning support, we need to create
  9986. # libNAME.so.V as an archive file, containing:
  9987. # *) an Import File, referring to the versioned filename of the
  9988. # archive as well as the shared archive member, telling the
  9989. # bitwidth (32 or 64) of that shared object, and providing the
  9990. # list of exported symbols of that shared object, eventually
  9991. # decorated with the 'weak' keyword
  9992. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9993. # it being seen by the linker.
  9994. # At run time we better use the real file rather than another symlink,
  9995. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9996. case $with_aix_soname,$aix_use_runtimelinking in
  9997. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9998. # soname into executable. Probably we can add versioning support to
  9999. # collect2, so additional links can be useful in future.
  10000. aix,yes) # traditional libtool
  10001. dynamic_linker='AIX unversionable lib.so'
  10002. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10003. # instead of lib<name>.a to let people know that these are not
  10004. # typical AIX shared libraries.
  10005. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10006. ;;
  10007. aix,no) # traditional AIX only
  10008. dynamic_linker='AIX lib.a(lib.so.V)'
  10009. # We preserve .a as extension for shared libraries through AIX4.2
  10010. # and later when we are not doing run time linking.
  10011. library_names_spec='$libname$release.a $libname.a'
  10012. soname_spec='$libname$release$shared_ext$major'
  10013. ;;
  10014. svr4,*) # full svr4 only
  10015. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10016. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10017. # We do not specify a path in Import Files, so LIBPATH fires.
  10018. shlibpath_overrides_runpath=yes
  10019. ;;
  10020. *,yes) # both, prefer svr4
  10021. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10022. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10023. # unpreferred sharedlib libNAME.a needs extra handling
  10024. 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"'
  10025. 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"'
  10026. # We do not specify a path in Import Files, so LIBPATH fires.
  10027. shlibpath_overrides_runpath=yes
  10028. ;;
  10029. *,no) # both, prefer aix
  10030. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10031. library_names_spec='$libname$release.a $libname.a'
  10032. soname_spec='$libname$release$shared_ext$major'
  10033. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10034. 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)'
  10035. 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"'
  10036. ;;
  10037. esac
  10038. shlibpath_var=LIBPATH
  10039. fi
  10040. ;;
  10041. amigaos*)
  10042. case $host_cpu in
  10043. powerpc)
  10044. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10045. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10046. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10047. ;;
  10048. m68k)
  10049. library_names_spec='$libname.ixlibrary $libname.a'
  10050. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10051. 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'
  10052. ;;
  10053. esac
  10054. ;;
  10055. beos*)
  10056. library_names_spec='$libname$shared_ext'
  10057. dynamic_linker="$host_os ld.so"
  10058. shlibpath_var=LIBRARY_PATH
  10059. ;;
  10060. bsdi[45]*)
  10061. version_type=linux # correct to gnu/linux during the next big refactor
  10062. need_version=no
  10063. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10064. soname_spec='$libname$release$shared_ext$major'
  10065. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10066. shlibpath_var=LD_LIBRARY_PATH
  10067. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10068. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10069. # the default ld.so.conf also contains /usr/contrib/lib and
  10070. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10071. # libtool to hard-code these into programs
  10072. ;;
  10073. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10074. version_type=windows
  10075. shrext_cmds=.dll
  10076. need_version=no
  10077. need_lib_prefix=no
  10078. case $GCC,$cc_basename in
  10079. yes,*)
  10080. # gcc
  10081. library_names_spec='$libname.dll.a'
  10082. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10083. postinstall_cmds='base_file=`basename \$file`~
  10084. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10085. dldir=$destdir/`dirname \$dlpath`~
  10086. test -d \$dldir || mkdir -p \$dldir~
  10087. $install_prog $dir/$dlname \$dldir/$dlname~
  10088. chmod a+x \$dldir/$dlname~
  10089. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10090. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10091. fi'
  10092. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10093. dlpath=$dir/\$dldll~
  10094. $RM \$dlpath'
  10095. shlibpath_overrides_runpath=yes
  10096. case $host_os in
  10097. cygwin*)
  10098. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10099. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10100. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization.
  10101. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10102. ;;
  10103. mingw* | windows* | cegcc*)
  10104. # MinGW DLLs use traditional 'lib' prefix
  10105. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10106. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization.
  10107. ;;
  10108. pw32*)
  10109. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10110. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10111. ;;
  10112. esac
  10113. dynamic_linker='Win32 ld.exe'
  10114. ;;
  10115. *,cl* | *,icl*)
  10116. # Native MSVC or ICC
  10117. libname_spec='$name'
  10118. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10119. library_names_spec='$libname.dll.lib'
  10120. case $build_os in
  10121. mingw* | windows*)
  10122. sys_lib_search_path_spec=
  10123. lt_save_ifs=$IFS
  10124. IFS=';'
  10125. for lt_path in $LIB
  10126. do
  10127. IFS=$lt_save_ifs
  10128. # Let DOS variable expansion print the short 8.3 style file name.
  10129. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10130. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10131. done
  10132. IFS=$lt_save_ifs
  10133. # Convert to MSYS style.
  10134. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10135. ;;
  10136. cygwin*)
  10137. # Convert to unix form, then to dos form, then back to unix form
  10138. # but this time dos style (no spaces!) so that the unix form looks
  10139. # like /cygdrive/c/PROGRA~1:/cygdr...
  10140. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10141. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10142. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10143. ;;
  10144. *)
  10145. sys_lib_search_path_spec=$LIB
  10146. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10147. # It is most probably a Windows format PATH.
  10148. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10149. else
  10150. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10151. fi
  10152. # FIXME: find the short name or the path components, as spaces are
  10153. # common. (e.g. "Program Files" -> "PROGRA~1")
  10154. ;;
  10155. esac
  10156. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10157. postinstall_cmds='base_file=`basename \$file`~
  10158. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10159. dldir=$destdir/`dirname \$dlpath`~
  10160. test -d \$dldir || mkdir -p \$dldir~
  10161. $install_prog $dir/$dlname \$dldir/$dlname'
  10162. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10163. dlpath=$dir/\$dldll~
  10164. $RM \$dlpath'
  10165. shlibpath_overrides_runpath=yes
  10166. dynamic_linker='Win32 link.exe'
  10167. ;;
  10168. *)
  10169. # Assume MSVC and ICC wrapper
  10170. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10171. dynamic_linker='Win32 ld.exe'
  10172. ;;
  10173. esac
  10174. # FIXME: first we should search . and the directory the executable is in
  10175. shlibpath_var=PATH
  10176. ;;
  10177. darwin* | rhapsody*)
  10178. dynamic_linker="$host_os dyld"
  10179. version_type=darwin
  10180. need_lib_prefix=no
  10181. need_version=no
  10182. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10183. soname_spec='$libname$release$major$shared_ext'
  10184. shlibpath_overrides_runpath=yes
  10185. shlibpath_var=DYLD_LIBRARY_PATH
  10186. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10187. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10188. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10189. ;;
  10190. dgux*)
  10191. version_type=linux # correct to gnu/linux during the next big refactor
  10192. need_lib_prefix=no
  10193. need_version=no
  10194. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10195. soname_spec='$libname$release$shared_ext$major'
  10196. shlibpath_var=LD_LIBRARY_PATH
  10197. ;;
  10198. freebsd* | dragonfly* | midnightbsd*)
  10199. # DragonFly does not have aout. When/if they implement a new
  10200. # versioning mechanism, adjust this.
  10201. if test -x /usr/bin/objformat; then
  10202. objformat=`/usr/bin/objformat`
  10203. else
  10204. case $host_os in
  10205. freebsd[23].*) objformat=aout ;;
  10206. *) objformat=elf ;;
  10207. esac
  10208. fi
  10209. version_type=freebsd-$objformat
  10210. case $version_type in
  10211. freebsd-elf*)
  10212. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10213. soname_spec='$libname$release$shared_ext$major'
  10214. need_version=no
  10215. need_lib_prefix=no
  10216. ;;
  10217. freebsd-*)
  10218. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10219. need_version=yes
  10220. ;;
  10221. esac
  10222. shlibpath_var=LD_LIBRARY_PATH
  10223. case $host_os in
  10224. freebsd2.*)
  10225. shlibpath_overrides_runpath=yes
  10226. ;;
  10227. freebsd3.[01]* | freebsdelf3.[01]*)
  10228. shlibpath_overrides_runpath=yes
  10229. hardcode_into_libs=yes
  10230. ;;
  10231. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10232. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10233. shlibpath_overrides_runpath=no
  10234. hardcode_into_libs=yes
  10235. ;;
  10236. *) # from 4.6 on, and DragonFly
  10237. shlibpath_overrides_runpath=yes
  10238. hardcode_into_libs=yes
  10239. ;;
  10240. esac
  10241. ;;
  10242. haiku*)
  10243. version_type=linux # correct to gnu/linux during the next big refactor
  10244. need_lib_prefix=no
  10245. need_version=no
  10246. dynamic_linker="$host_os runtime_loader"
  10247. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10248. soname_spec='$libname$release$shared_ext$major'
  10249. shlibpath_var=LIBRARY_PATH
  10250. shlibpath_overrides_runpath=no
  10251. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10252. hardcode_into_libs=yes
  10253. ;;
  10254. hpux9* | hpux10* | hpux11*)
  10255. # Give a soname corresponding to the major version so that dld.sl refuses to
  10256. # link against other versions.
  10257. version_type=sunos
  10258. need_lib_prefix=no
  10259. need_version=no
  10260. case $host_cpu in
  10261. ia64*)
  10262. shrext_cmds='.so'
  10263. hardcode_into_libs=yes
  10264. dynamic_linker="$host_os dld.so"
  10265. shlibpath_var=LD_LIBRARY_PATH
  10266. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10267. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10268. soname_spec='$libname$release$shared_ext$major'
  10269. if test 32 = "$HPUX_IA64_MODE"; then
  10270. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10271. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10272. else
  10273. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10274. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10275. fi
  10276. ;;
  10277. hppa*64*)
  10278. shrext_cmds='.sl'
  10279. hardcode_into_libs=yes
  10280. dynamic_linker="$host_os dld.sl"
  10281. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10282. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10283. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10284. soname_spec='$libname$release$shared_ext$major'
  10285. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10286. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10287. ;;
  10288. *)
  10289. shrext_cmds='.sl'
  10290. dynamic_linker="$host_os dld.sl"
  10291. shlibpath_var=SHLIB_PATH
  10292. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10293. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10294. soname_spec='$libname$release$shared_ext$major'
  10295. ;;
  10296. esac
  10297. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10298. postinstall_cmds='chmod 555 $lib'
  10299. # or fails outright, so override atomically:
  10300. install_override_mode=555
  10301. ;;
  10302. interix[3-9]*)
  10303. version_type=linux # correct to gnu/linux during the next big refactor
  10304. need_lib_prefix=no
  10305. need_version=no
  10306. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10307. soname_spec='$libname$release$shared_ext$major'
  10308. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10309. shlibpath_var=LD_LIBRARY_PATH
  10310. shlibpath_overrides_runpath=no
  10311. hardcode_into_libs=yes
  10312. ;;
  10313. irix5* | irix6* | nonstopux*)
  10314. case $host_os in
  10315. nonstopux*) version_type=nonstopux ;;
  10316. *)
  10317. if test yes = "$lt_cv_prog_gnu_ld"; then
  10318. version_type=linux # correct to gnu/linux during the next big refactor
  10319. else
  10320. version_type=irix
  10321. fi ;;
  10322. esac
  10323. need_lib_prefix=no
  10324. need_version=no
  10325. soname_spec='$libname$release$shared_ext$major'
  10326. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10327. case $host_os in
  10328. irix5* | nonstopux*)
  10329. libsuff= shlibsuff=
  10330. ;;
  10331. *)
  10332. case $LD in # libtool.m4 will add one of these switches to LD
  10333. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10334. libsuff= shlibsuff= libmagic=32-bit;;
  10335. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10336. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10337. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10338. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10339. *) libsuff= shlibsuff= libmagic=never-match;;
  10340. esac
  10341. ;;
  10342. esac
  10343. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10344. shlibpath_overrides_runpath=no
  10345. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10346. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10347. hardcode_into_libs=yes
  10348. ;;
  10349. # No shared lib support for Linux oldld, aout, or coff.
  10350. linux*oldld* | linux*aout* | linux*coff*)
  10351. dynamic_linker=no
  10352. ;;
  10353. linux*android*)
  10354. version_type=none # Android doesn't support versioned libraries.
  10355. need_lib_prefix=no
  10356. need_version=no
  10357. library_names_spec='$libname$release$shared_ext'
  10358. soname_spec='$libname$release$shared_ext'
  10359. finish_cmds=
  10360. shlibpath_var=LD_LIBRARY_PATH
  10361. shlibpath_overrides_runpath=yes
  10362. # This implies no fast_install, which is unacceptable.
  10363. # Some rework will be needed to allow for fast_install
  10364. # before this can be enabled.
  10365. hardcode_into_libs=yes
  10366. dynamic_linker='Android linker'
  10367. # Don't embed -rpath directories since the linker doesn't support them.
  10368. hardcode_libdir_flag_spec='-L$libdir'
  10369. ;;
  10370. # This must be glibc/ELF.
  10371. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10372. version_type=linux # correct to gnu/linux during the next big refactor
  10373. need_lib_prefix=no
  10374. need_version=no
  10375. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10376. soname_spec='$libname$release$shared_ext$major'
  10377. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10378. shlibpath_var=LD_LIBRARY_PATH
  10379. shlibpath_overrides_runpath=no
  10380. # Some binutils ld are patched to set DT_RUNPATH
  10381. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10382. then :
  10383. printf %s "(cached) " >&6
  10384. else $as_nop
  10385. lt_cv_shlibpath_overrides_runpath=no
  10386. save_LDFLAGS=$LDFLAGS
  10387. save_libdir=$libdir
  10388. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10389. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10391. /* end confdefs.h. */
  10392. int
  10393. main (void)
  10394. {
  10395. ;
  10396. return 0;
  10397. }
  10398. _ACEOF
  10399. if ac_fn_c_try_link "$LINENO"
  10400. then :
  10401. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10402. then :
  10403. lt_cv_shlibpath_overrides_runpath=yes
  10404. fi
  10405. fi
  10406. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10407. conftest$ac_exeext conftest.$ac_ext
  10408. LDFLAGS=$save_LDFLAGS
  10409. libdir=$save_libdir
  10410. fi
  10411. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10412. # This implies no fast_install, which is unacceptable.
  10413. # Some rework will be needed to allow for fast_install
  10414. # before this can be enabled.
  10415. hardcode_into_libs=yes
  10416. # Add ABI-specific directories to the system library path.
  10417. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10418. # Ideally, we could use ldconfig to report *all* directores which are
  10419. # searched for libraries, however this is still not possible. Aside from not
  10420. # being certain /sbin/ldconfig is available, command
  10421. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10422. # even though it is searched at run-time. Try to do the best guess by
  10423. # appending ld.so.conf contents (and includes) to the search path.
  10424. if test -f /etc/ld.so.conf; then
  10425. 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' ' '`
  10426. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10427. fi
  10428. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10429. # powerpc, because MkLinux only supported shared libraries with the
  10430. # GNU dynamic linker. Since this was broken with cross compilers,
  10431. # most powerpc-linux boxes support dynamic linking these days and
  10432. # people can always --disable-shared, the test was removed, and we
  10433. # assume the GNU/Linux dynamic linker is in use.
  10434. dynamic_linker='GNU/Linux ld.so'
  10435. ;;
  10436. netbsd*)
  10437. version_type=sunos
  10438. need_lib_prefix=no
  10439. need_version=no
  10440. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10441. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10442. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10443. dynamic_linker='NetBSD (a.out) ld.so'
  10444. else
  10445. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10446. soname_spec='$libname$release$shared_ext$major'
  10447. dynamic_linker='NetBSD ld.elf_so'
  10448. fi
  10449. shlibpath_var=LD_LIBRARY_PATH
  10450. shlibpath_overrides_runpath=yes
  10451. hardcode_into_libs=yes
  10452. ;;
  10453. newsos6)
  10454. version_type=linux # correct to gnu/linux during the next big refactor
  10455. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10456. shlibpath_var=LD_LIBRARY_PATH
  10457. shlibpath_overrides_runpath=yes
  10458. ;;
  10459. *nto* | *qnx*)
  10460. version_type=qnx
  10461. need_lib_prefix=no
  10462. need_version=no
  10463. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10464. soname_spec='$libname$release$shared_ext$major'
  10465. shlibpath_var=LD_LIBRARY_PATH
  10466. shlibpath_overrides_runpath=no
  10467. hardcode_into_libs=yes
  10468. dynamic_linker='ldqnx.so'
  10469. ;;
  10470. openbsd* | bitrig*)
  10471. version_type=sunos
  10472. sys_lib_dlsearch_path_spec=/usr/lib
  10473. need_lib_prefix=no
  10474. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10475. need_version=no
  10476. else
  10477. need_version=yes
  10478. fi
  10479. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10480. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10481. shlibpath_var=LD_LIBRARY_PATH
  10482. shlibpath_overrides_runpath=yes
  10483. ;;
  10484. os2*)
  10485. libname_spec='$name'
  10486. shrext_cmds=.dll
  10487. need_lib_prefix=no
  10488. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10489. # SDL customization: removed versioning support.
  10490. # version_type=windows
  10491. # need_version=no
  10492. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10493. # v=$($ECHO $release$versuffix | tr -d .-);
  10494. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10495. # $ECHO $n$v`$shared_ext'
  10496. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10497. library_names_spec='${libname}_dll.$libext'
  10498. dynamic_linker='OS/2 ld.exe'
  10499. shlibpath_var=BEGINLIBPATH
  10500. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10501. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10502. postinstall_cmds='base_file=`basename \$file`~
  10503. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10504. dldir=$destdir/`dirname \$dlpath`~
  10505. test -d \$dldir || mkdir -p \$dldir~
  10506. $install_prog $dir/$dlname \$dldir/$dlname~
  10507. chmod a+x \$dldir/$dlname~
  10508. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10509. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10510. fi'
  10511. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10512. dlpath=$dir/\$dldll~
  10513. $RM \$dlpath'
  10514. ;;
  10515. osf3* | osf4* | osf5*)
  10516. version_type=osf
  10517. need_lib_prefix=no
  10518. need_version=no
  10519. soname_spec='$libname$release$shared_ext$major'
  10520. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10521. shlibpath_var=LD_LIBRARY_PATH
  10522. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10523. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10524. ;;
  10525. rdos*)
  10526. dynamic_linker=no
  10527. ;;
  10528. solaris*)
  10529. version_type=linux # correct to gnu/linux during the next big refactor
  10530. need_lib_prefix=no
  10531. need_version=no
  10532. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10533. soname_spec='$libname$release$shared_ext$major'
  10534. shlibpath_var=LD_LIBRARY_PATH
  10535. shlibpath_overrides_runpath=yes
  10536. hardcode_into_libs=yes
  10537. # ldd complains unless libraries are executable
  10538. postinstall_cmds='chmod +x $lib'
  10539. ;;
  10540. sunos4*)
  10541. version_type=sunos
  10542. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10543. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10544. shlibpath_var=LD_LIBRARY_PATH
  10545. shlibpath_overrides_runpath=yes
  10546. if test yes = "$with_gnu_ld"; then
  10547. need_lib_prefix=no
  10548. fi
  10549. need_version=yes
  10550. ;;
  10551. sysv4 | sysv4.3*)
  10552. version_type=linux # correct to gnu/linux during the next big refactor
  10553. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10554. soname_spec='$libname$release$shared_ext$major'
  10555. shlibpath_var=LD_LIBRARY_PATH
  10556. case $host_vendor in
  10557. sni)
  10558. shlibpath_overrides_runpath=no
  10559. need_lib_prefix=no
  10560. runpath_var=LD_RUN_PATH
  10561. ;;
  10562. siemens)
  10563. need_lib_prefix=no
  10564. ;;
  10565. motorola)
  10566. need_lib_prefix=no
  10567. need_version=no
  10568. shlibpath_overrides_runpath=no
  10569. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10570. ;;
  10571. esac
  10572. ;;
  10573. sysv4*MP*)
  10574. if test -d /usr/nec; then
  10575. version_type=linux # correct to gnu/linux during the next big refactor
  10576. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10577. soname_spec='$libname$shared_ext.$major'
  10578. shlibpath_var=LD_LIBRARY_PATH
  10579. fi
  10580. ;;
  10581. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10582. version_type=sco
  10583. need_lib_prefix=no
  10584. need_version=no
  10585. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10586. soname_spec='$libname$release$shared_ext$major'
  10587. shlibpath_var=LD_LIBRARY_PATH
  10588. shlibpath_overrides_runpath=yes
  10589. hardcode_into_libs=yes
  10590. if test yes = "$with_gnu_ld"; then
  10591. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10592. else
  10593. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10594. case $host_os in
  10595. sco3.2v5*)
  10596. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10597. ;;
  10598. esac
  10599. fi
  10600. sys_lib_dlsearch_path_spec='/usr/lib'
  10601. ;;
  10602. tpf*)
  10603. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10604. version_type=linux # correct to gnu/linux during the next big refactor
  10605. need_lib_prefix=no
  10606. need_version=no
  10607. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10608. shlibpath_var=LD_LIBRARY_PATH
  10609. shlibpath_overrides_runpath=no
  10610. hardcode_into_libs=yes
  10611. ;;
  10612. uts4*)
  10613. version_type=linux # correct to gnu/linux during the next big refactor
  10614. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10615. soname_spec='$libname$release$shared_ext$major'
  10616. shlibpath_var=LD_LIBRARY_PATH
  10617. ;;
  10618. *)
  10619. dynamic_linker=no
  10620. ;;
  10621. esac
  10622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10623. printf "%s\n" "$dynamic_linker" >&6; }
  10624. test no = "$dynamic_linker" && can_build_shared=no
  10625. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10626. if test yes = "$GCC"; then
  10627. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10628. fi
  10629. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10630. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10631. fi
  10632. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10633. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10634. fi
  10635. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10636. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10637. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10638. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10639. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10640. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10642. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10643. hardcode_action=
  10644. if test -n "$hardcode_libdir_flag_spec" ||
  10645. test -n "$runpath_var" ||
  10646. test yes = "$hardcode_automatic"; then
  10647. # We can hardcode non-existent directories.
  10648. if test no != "$hardcode_direct" &&
  10649. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10650. # have to relink, otherwise we might link with an installed library
  10651. # when we should be linking with a yet-to-be-installed one
  10652. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10653. test no != "$hardcode_minus_L"; then
  10654. # Linking always hardcodes the temporary library directory.
  10655. hardcode_action=relink
  10656. else
  10657. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10658. hardcode_action=immediate
  10659. fi
  10660. else
  10661. # We cannot hardcode anything, or else we can only hardcode existing
  10662. # directories.
  10663. hardcode_action=unsupported
  10664. fi
  10665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10666. printf "%s\n" "$hardcode_action" >&6; }
  10667. if test relink = "$hardcode_action" ||
  10668. test yes = "$inherit_rpath"; then
  10669. # Fast installation is not supported
  10670. enable_fast_install=no
  10671. elif test yes = "$shlibpath_overrides_runpath" ||
  10672. test no = "$enable_shared"; then
  10673. # Fast installation is not necessary
  10674. enable_fast_install=needless
  10675. fi
  10676. if test yes != "$enable_dlopen"; then
  10677. enable_dlopen=unknown
  10678. enable_dlopen_self=unknown
  10679. enable_dlopen_self_static=unknown
  10680. else
  10681. lt_cv_dlopen=no
  10682. lt_cv_dlopen_libs=
  10683. case $host_os in
  10684. beos*)
  10685. lt_cv_dlopen=load_add_on
  10686. lt_cv_dlopen_libs=
  10687. lt_cv_dlopen_self=yes
  10688. ;;
  10689. mingw* | windows* | pw32* | cegcc*)
  10690. lt_cv_dlopen=LoadLibrary
  10691. lt_cv_dlopen_libs=
  10692. ;;
  10693. cygwin*)
  10694. lt_cv_dlopen=dlopen
  10695. lt_cv_dlopen_libs=
  10696. ;;
  10697. darwin*)
  10698. # if libdl is installed we need to link against it
  10699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10700. printf %s "checking for dlopen in -ldl... " >&6; }
  10701. if test ${ac_cv_lib_dl_dlopen+y}
  10702. then :
  10703. printf %s "(cached) " >&6
  10704. else $as_nop
  10705. ac_check_lib_save_LIBS=$LIBS
  10706. LIBS="-ldl $LIBS"
  10707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10708. /* end confdefs.h. */
  10709. /* Override any GCC internal prototype to avoid an error.
  10710. Use char because int might match the return type of a GCC
  10711. builtin and then its argument prototype would still apply. */
  10712. char dlopen ();
  10713. int
  10714. main (void)
  10715. {
  10716. return dlopen ();
  10717. ;
  10718. return 0;
  10719. }
  10720. _ACEOF
  10721. if ac_fn_c_try_link "$LINENO"
  10722. then :
  10723. ac_cv_lib_dl_dlopen=yes
  10724. else $as_nop
  10725. ac_cv_lib_dl_dlopen=no
  10726. fi
  10727. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10728. conftest$ac_exeext conftest.$ac_ext
  10729. LIBS=$ac_check_lib_save_LIBS
  10730. fi
  10731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10732. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10733. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10734. then :
  10735. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10736. else $as_nop
  10737. lt_cv_dlopen=dyld
  10738. lt_cv_dlopen_libs=
  10739. lt_cv_dlopen_self=yes
  10740. fi
  10741. ;;
  10742. tpf*)
  10743. # Don't try to run any link tests for TPF. We know it's impossible
  10744. # because TPF is a cross-compiler, and we know how we open DSOs.
  10745. lt_cv_dlopen=dlopen
  10746. lt_cv_dlopen_libs=
  10747. lt_cv_dlopen_self=no
  10748. ;;
  10749. *)
  10750. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10751. if test "x$ac_cv_func_shl_load" = xyes
  10752. then :
  10753. lt_cv_dlopen=shl_load
  10754. else $as_nop
  10755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10756. printf %s "checking for shl_load in -ldld... " >&6; }
  10757. if test ${ac_cv_lib_dld_shl_load+y}
  10758. then :
  10759. printf %s "(cached) " >&6
  10760. else $as_nop
  10761. ac_check_lib_save_LIBS=$LIBS
  10762. LIBS="-ldld $LIBS"
  10763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10764. /* end confdefs.h. */
  10765. /* Override any GCC internal prototype to avoid an error.
  10766. Use char because int might match the return type of a GCC
  10767. builtin and then its argument prototype would still apply. */
  10768. char shl_load ();
  10769. int
  10770. main (void)
  10771. {
  10772. return shl_load ();
  10773. ;
  10774. return 0;
  10775. }
  10776. _ACEOF
  10777. if ac_fn_c_try_link "$LINENO"
  10778. then :
  10779. ac_cv_lib_dld_shl_load=yes
  10780. else $as_nop
  10781. ac_cv_lib_dld_shl_load=no
  10782. fi
  10783. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10784. conftest$ac_exeext conftest.$ac_ext
  10785. LIBS=$ac_check_lib_save_LIBS
  10786. fi
  10787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10788. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10789. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10790. then :
  10791. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10792. else $as_nop
  10793. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10794. if test "x$ac_cv_func_dlopen" = xyes
  10795. then :
  10796. lt_cv_dlopen=dlopen
  10797. else $as_nop
  10798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10799. printf %s "checking for dlopen in -ldl... " >&6; }
  10800. if test ${ac_cv_lib_dl_dlopen+y}
  10801. then :
  10802. printf %s "(cached) " >&6
  10803. else $as_nop
  10804. ac_check_lib_save_LIBS=$LIBS
  10805. LIBS="-ldl $LIBS"
  10806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10807. /* end confdefs.h. */
  10808. /* Override any GCC internal prototype to avoid an error.
  10809. Use char because int might match the return type of a GCC
  10810. builtin and then its argument prototype would still apply. */
  10811. char dlopen ();
  10812. int
  10813. main (void)
  10814. {
  10815. return dlopen ();
  10816. ;
  10817. return 0;
  10818. }
  10819. _ACEOF
  10820. if ac_fn_c_try_link "$LINENO"
  10821. then :
  10822. ac_cv_lib_dl_dlopen=yes
  10823. else $as_nop
  10824. ac_cv_lib_dl_dlopen=no
  10825. fi
  10826. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10827. conftest$ac_exeext conftest.$ac_ext
  10828. LIBS=$ac_check_lib_save_LIBS
  10829. fi
  10830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10831. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10832. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10833. then :
  10834. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10835. else $as_nop
  10836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10837. printf %s "checking for dlopen in -lsvld... " >&6; }
  10838. if test ${ac_cv_lib_svld_dlopen+y}
  10839. then :
  10840. printf %s "(cached) " >&6
  10841. else $as_nop
  10842. ac_check_lib_save_LIBS=$LIBS
  10843. LIBS="-lsvld $LIBS"
  10844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10845. /* end confdefs.h. */
  10846. /* Override any GCC internal prototype to avoid an error.
  10847. Use char because int might match the return type of a GCC
  10848. builtin and then its argument prototype would still apply. */
  10849. char dlopen ();
  10850. int
  10851. main (void)
  10852. {
  10853. return dlopen ();
  10854. ;
  10855. return 0;
  10856. }
  10857. _ACEOF
  10858. if ac_fn_c_try_link "$LINENO"
  10859. then :
  10860. ac_cv_lib_svld_dlopen=yes
  10861. else $as_nop
  10862. ac_cv_lib_svld_dlopen=no
  10863. fi
  10864. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10865. conftest$ac_exeext conftest.$ac_ext
  10866. LIBS=$ac_check_lib_save_LIBS
  10867. fi
  10868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10869. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10870. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10871. then :
  10872. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10873. else $as_nop
  10874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10875. printf %s "checking for dld_link in -ldld... " >&6; }
  10876. if test ${ac_cv_lib_dld_dld_link+y}
  10877. then :
  10878. printf %s "(cached) " >&6
  10879. else $as_nop
  10880. ac_check_lib_save_LIBS=$LIBS
  10881. LIBS="-ldld $LIBS"
  10882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10883. /* end confdefs.h. */
  10884. /* Override any GCC internal prototype to avoid an error.
  10885. Use char because int might match the return type of a GCC
  10886. builtin and then its argument prototype would still apply. */
  10887. char dld_link ();
  10888. int
  10889. main (void)
  10890. {
  10891. return dld_link ();
  10892. ;
  10893. return 0;
  10894. }
  10895. _ACEOF
  10896. if ac_fn_c_try_link "$LINENO"
  10897. then :
  10898. ac_cv_lib_dld_dld_link=yes
  10899. else $as_nop
  10900. ac_cv_lib_dld_dld_link=no
  10901. fi
  10902. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10903. conftest$ac_exeext conftest.$ac_ext
  10904. LIBS=$ac_check_lib_save_LIBS
  10905. fi
  10906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10907. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10908. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10909. then :
  10910. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10911. fi
  10912. fi
  10913. fi
  10914. fi
  10915. fi
  10916. fi
  10917. ;;
  10918. esac
  10919. if test no = "$lt_cv_dlopen"; then
  10920. enable_dlopen=no
  10921. else
  10922. enable_dlopen=yes
  10923. fi
  10924. case $lt_cv_dlopen in
  10925. dlopen)
  10926. save_CPPFLAGS=$CPPFLAGS
  10927. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10928. save_LDFLAGS=$LDFLAGS
  10929. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10930. save_LIBS=$LIBS
  10931. LIBS="$lt_cv_dlopen_libs $LIBS"
  10932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10933. printf %s "checking whether a program can dlopen itself... " >&6; }
  10934. if test ${lt_cv_dlopen_self+y}
  10935. then :
  10936. printf %s "(cached) " >&6
  10937. else $as_nop
  10938. if test yes = "$cross_compiling"; then :
  10939. lt_cv_dlopen_self=cross
  10940. else
  10941. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10942. lt_status=$lt_dlunknown
  10943. cat > conftest.$ac_ext <<_LT_EOF
  10944. #line $LINENO "configure"
  10945. #include "confdefs.h"
  10946. #if HAVE_DLFCN_H
  10947. #include <dlfcn.h>
  10948. #endif
  10949. #include <stdio.h>
  10950. #ifdef RTLD_GLOBAL
  10951. # define LT_DLGLOBAL RTLD_GLOBAL
  10952. #else
  10953. # ifdef DL_GLOBAL
  10954. # define LT_DLGLOBAL DL_GLOBAL
  10955. # else
  10956. # define LT_DLGLOBAL 0
  10957. # endif
  10958. #endif
  10959. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10960. find out it does not work in some platform. */
  10961. #ifndef LT_DLLAZY_OR_NOW
  10962. # ifdef RTLD_LAZY
  10963. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10964. # else
  10965. # ifdef DL_LAZY
  10966. # define LT_DLLAZY_OR_NOW DL_LAZY
  10967. # else
  10968. # ifdef RTLD_NOW
  10969. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10970. # else
  10971. # ifdef DL_NOW
  10972. # define LT_DLLAZY_OR_NOW DL_NOW
  10973. # else
  10974. # define LT_DLLAZY_OR_NOW 0
  10975. # endif
  10976. # endif
  10977. # endif
  10978. # endif
  10979. #endif
  10980. /* When -fvisibility=hidden is used, assume the code has been annotated
  10981. correspondingly for the symbols needed. */
  10982. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10983. int fnord (void) __attribute__((visibility("default")));
  10984. #endif
  10985. int fnord (void) { return 42; }
  10986. int main (void)
  10987. {
  10988. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10989. int status = $lt_dlunknown;
  10990. if (self)
  10991. {
  10992. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10993. else
  10994. {
  10995. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10996. else puts (dlerror ());
  10997. }
  10998. /* dlclose (self); */
  10999. }
  11000. else
  11001. puts (dlerror ());
  11002. return status;
  11003. }
  11004. _LT_EOF
  11005. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11006. (eval $ac_link) 2>&5
  11007. ac_status=$?
  11008. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11009. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11010. (./conftest; exit; ) >&5 2>/dev/null
  11011. lt_status=$?
  11012. case x$lt_status in
  11013. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11014. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11015. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11016. esac
  11017. else :
  11018. # compilation failed
  11019. lt_cv_dlopen_self=no
  11020. fi
  11021. fi
  11022. rm -fr conftest*
  11023. fi
  11024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11025. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11026. if test yes = "$lt_cv_dlopen_self"; then
  11027. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11029. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11030. if test ${lt_cv_dlopen_self_static+y}
  11031. then :
  11032. printf %s "(cached) " >&6
  11033. else $as_nop
  11034. if test yes = "$cross_compiling"; then :
  11035. lt_cv_dlopen_self_static=cross
  11036. else
  11037. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11038. lt_status=$lt_dlunknown
  11039. cat > conftest.$ac_ext <<_LT_EOF
  11040. #line $LINENO "configure"
  11041. #include "confdefs.h"
  11042. #if HAVE_DLFCN_H
  11043. #include <dlfcn.h>
  11044. #endif
  11045. #include <stdio.h>
  11046. #ifdef RTLD_GLOBAL
  11047. # define LT_DLGLOBAL RTLD_GLOBAL
  11048. #else
  11049. # ifdef DL_GLOBAL
  11050. # define LT_DLGLOBAL DL_GLOBAL
  11051. # else
  11052. # define LT_DLGLOBAL 0
  11053. # endif
  11054. #endif
  11055. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11056. find out it does not work in some platform. */
  11057. #ifndef LT_DLLAZY_OR_NOW
  11058. # ifdef RTLD_LAZY
  11059. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11060. # else
  11061. # ifdef DL_LAZY
  11062. # define LT_DLLAZY_OR_NOW DL_LAZY
  11063. # else
  11064. # ifdef RTLD_NOW
  11065. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11066. # else
  11067. # ifdef DL_NOW
  11068. # define LT_DLLAZY_OR_NOW DL_NOW
  11069. # else
  11070. # define LT_DLLAZY_OR_NOW 0
  11071. # endif
  11072. # endif
  11073. # endif
  11074. # endif
  11075. #endif
  11076. /* When -fvisibility=hidden is used, assume the code has been annotated
  11077. correspondingly for the symbols needed. */
  11078. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11079. int fnord (void) __attribute__((visibility("default")));
  11080. #endif
  11081. int fnord (void) { return 42; }
  11082. int main (void)
  11083. {
  11084. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11085. int status = $lt_dlunknown;
  11086. if (self)
  11087. {
  11088. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11089. else
  11090. {
  11091. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11092. else puts (dlerror ());
  11093. }
  11094. /* dlclose (self); */
  11095. }
  11096. else
  11097. puts (dlerror ());
  11098. return status;
  11099. }
  11100. _LT_EOF
  11101. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11102. (eval $ac_link) 2>&5
  11103. ac_status=$?
  11104. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11105. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11106. (./conftest; exit; ) >&5 2>/dev/null
  11107. lt_status=$?
  11108. case x$lt_status in
  11109. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11110. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11111. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11112. esac
  11113. else :
  11114. # compilation failed
  11115. lt_cv_dlopen_self_static=no
  11116. fi
  11117. fi
  11118. rm -fr conftest*
  11119. fi
  11120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11121. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11122. fi
  11123. CPPFLAGS=$save_CPPFLAGS
  11124. LDFLAGS=$save_LDFLAGS
  11125. LIBS=$save_LIBS
  11126. ;;
  11127. esac
  11128. case $lt_cv_dlopen_self in
  11129. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11130. *) enable_dlopen_self=unknown ;;
  11131. esac
  11132. case $lt_cv_dlopen_self_static in
  11133. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11134. *) enable_dlopen_self_static=unknown ;;
  11135. esac
  11136. fi
  11137. striplib=
  11138. old_striplib=
  11139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11140. printf %s "checking whether stripping libraries is possible... " >&6; }
  11141. if test -z "$STRIP"; then
  11142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11143. printf "%s\n" "no" >&6; }
  11144. else
  11145. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11146. old_striplib="$STRIP --strip-debug"
  11147. striplib="$STRIP --strip-unneeded"
  11148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11149. printf "%s\n" "yes" >&6; }
  11150. else
  11151. case $host_os in
  11152. darwin*)
  11153. # FIXME - insert some real tests, host_os isn't really good enough
  11154. striplib="$STRIP -x"
  11155. old_striplib="$STRIP -S"
  11156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11157. printf "%s\n" "yes" >&6; }
  11158. ;;
  11159. freebsd*)
  11160. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11161. old_striplib="$STRIP --strip-debug"
  11162. striplib="$STRIP --strip-unneeded"
  11163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11164. printf "%s\n" "yes" >&6; }
  11165. else
  11166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11167. printf "%s\n" "no" >&6; }
  11168. fi
  11169. ;;
  11170. *)
  11171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11172. printf "%s\n" "no" >&6; }
  11173. ;;
  11174. esac
  11175. fi
  11176. fi
  11177. # Report what library types will actually be built
  11178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11179. printf %s "checking if libtool supports shared libraries... " >&6; }
  11180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11181. printf "%s\n" "$can_build_shared" >&6; }
  11182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11183. printf %s "checking whether to build shared libraries... " >&6; }
  11184. test no = "$can_build_shared" && enable_shared=no
  11185. # On AIX, shared libraries and static libraries use the same namespace, and
  11186. # are all built from PIC.
  11187. case $host_os in
  11188. aix3*)
  11189. test yes = "$enable_shared" && enable_static=no
  11190. if test -n "$RANLIB"; then
  11191. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11192. postinstall_cmds='$RANLIB $lib'
  11193. fi
  11194. ;;
  11195. aix[4-9]*)
  11196. if test ia64 != "$host_cpu"; then
  11197. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11198. yes,aix,yes) ;; # shared object as lib.so file only
  11199. yes,svr4,*) ;; # shared object as lib.so archive member only
  11200. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11201. esac
  11202. fi
  11203. ;;
  11204. esac
  11205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11206. printf "%s\n" "$enable_shared" >&6; }
  11207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11208. printf %s "checking whether to build static libraries... " >&6; }
  11209. # Make sure either enable_shared or enable_static is yes.
  11210. test yes = "$enable_shared" || enable_static=yes
  11211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11212. printf "%s\n" "$enable_static" >&6; }
  11213. fi
  11214. ac_ext=c
  11215. ac_cpp='$CPP $CPPFLAGS'
  11216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11219. CC=$lt_save_CC
  11220. ac_config_commands="$ac_config_commands libtool"
  11221. # Only expand once:
  11222. if test -n "$ac_tool_prefix"; then
  11223. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11224. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11226. printf %s "checking for $ac_word... " >&6; }
  11227. if test ${ac_cv_prog_RC+y}
  11228. then :
  11229. printf %s "(cached) " >&6
  11230. else $as_nop
  11231. if test -n "$RC"; then
  11232. ac_cv_prog_RC="$RC" # Let the user override the test.
  11233. else
  11234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11235. for as_dir in $PATH
  11236. do
  11237. IFS=$as_save_IFS
  11238. case $as_dir in #(((
  11239. '') as_dir=./ ;;
  11240. */) ;;
  11241. *) as_dir=$as_dir/ ;;
  11242. esac
  11243. for ac_exec_ext in '' $ac_executable_extensions; do
  11244. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11245. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11246. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11247. break 2
  11248. fi
  11249. done
  11250. done
  11251. IFS=$as_save_IFS
  11252. fi
  11253. fi
  11254. RC=$ac_cv_prog_RC
  11255. if test -n "$RC"; then
  11256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11257. printf "%s\n" "$RC" >&6; }
  11258. else
  11259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11260. printf "%s\n" "no" >&6; }
  11261. fi
  11262. fi
  11263. if test -z "$ac_cv_prog_RC"; then
  11264. ac_ct_RC=$RC
  11265. # Extract the first word of "windres", so it can be a program name with args.
  11266. set dummy windres; ac_word=$2
  11267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11268. printf %s "checking for $ac_word... " >&6; }
  11269. if test ${ac_cv_prog_ac_ct_RC+y}
  11270. then :
  11271. printf %s "(cached) " >&6
  11272. else $as_nop
  11273. if test -n "$ac_ct_RC"; then
  11274. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11275. else
  11276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11277. for as_dir in $PATH
  11278. do
  11279. IFS=$as_save_IFS
  11280. case $as_dir in #(((
  11281. '') as_dir=./ ;;
  11282. */) ;;
  11283. *) as_dir=$as_dir/ ;;
  11284. esac
  11285. for ac_exec_ext in '' $ac_executable_extensions; do
  11286. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11287. ac_cv_prog_ac_ct_RC="windres"
  11288. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11289. break 2
  11290. fi
  11291. done
  11292. done
  11293. IFS=$as_save_IFS
  11294. fi
  11295. fi
  11296. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11297. if test -n "$ac_ct_RC"; then
  11298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11299. printf "%s\n" "$ac_ct_RC" >&6; }
  11300. else
  11301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11302. printf "%s\n" "no" >&6; }
  11303. fi
  11304. if test "x$ac_ct_RC" = x; then
  11305. RC=""
  11306. else
  11307. case $cross_compiling:$ac_tool_warned in
  11308. yes:)
  11309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11310. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11311. ac_tool_warned=yes ;;
  11312. esac
  11313. RC=$ac_ct_RC
  11314. fi
  11315. else
  11316. RC="$ac_cv_prog_RC"
  11317. fi
  11318. # Source file extension for RC test sources.
  11319. ac_ext=rc
  11320. # Object file extension for compiled RC test sources.
  11321. objext=o
  11322. objext_RC=$objext
  11323. # Code to be used in simple compile tests
  11324. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11325. # Code to be used in simple link tests
  11326. lt_simple_link_test_code=$lt_simple_compile_test_code
  11327. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11328. # If no C compiler was specified, use CC.
  11329. LTCC=${LTCC-"$CC"}
  11330. # If no C compiler flags were specified, use CFLAGS.
  11331. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11332. # Allow CC to be a program name with arguments.
  11333. compiler=$CC
  11334. # save warnings/boilerplate of simple test code
  11335. ac_outfile=conftest.$ac_objext
  11336. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11337. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11338. _lt_compiler_boilerplate=`cat conftest.err`
  11339. $RM conftest*
  11340. ac_outfile=conftest.$ac_objext
  11341. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11342. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11343. _lt_linker_boilerplate=`cat conftest.err`
  11344. $RM -r conftest*
  11345. # Allow CC to be a program name with arguments.
  11346. lt_save_CC=$CC
  11347. lt_save_CFLAGS=$CFLAGS
  11348. lt_save_GCC=$GCC
  11349. GCC=
  11350. CC=${RC-"windres"}
  11351. CFLAGS=
  11352. compiler=$CC
  11353. compiler_RC=$CC
  11354. func_cc_basename $compiler
  11355. cc_basename=$func_cc_basename_result
  11356. lt_cv_prog_compiler_c_o_RC=yes
  11357. if test -n "$compiler"; then
  11358. :
  11359. fi
  11360. GCC=$lt_save_GCC
  11361. ac_ext=c
  11362. ac_cpp='$CPP $CPPFLAGS'
  11363. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11364. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11365. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11366. CC=$lt_save_CC
  11367. CFLAGS=$lt_save_CFLAGS
  11368. # For historical reasons, the library name redundantly includes the major
  11369. # version twice: libSDL2-2.0.so.0.
  11370. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11371. LT_RELEASE=2.0
  11372. # Increment this if there is an incompatible change - but if that happens,
  11373. # we should rename the library from SDL2 to SDL3, at which point this would
  11374. # reset to 0 anyway.
  11375. LT_MAJOR=0
  11376. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11377. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11378. LT_REVISION=$SDL_INTERFACE_AGE
  11379. for ac_prog in gawk mawk nawk awk
  11380. do
  11381. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11382. set dummy $ac_prog; ac_word=$2
  11383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11384. printf %s "checking for $ac_word... " >&6; }
  11385. if test ${ac_cv_prog_AWK+y}
  11386. then :
  11387. printf %s "(cached) " >&6
  11388. else $as_nop
  11389. if test -n "$AWK"; then
  11390. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11391. else
  11392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11393. for as_dir in $PATH
  11394. do
  11395. IFS=$as_save_IFS
  11396. case $as_dir in #(((
  11397. '') as_dir=./ ;;
  11398. */) ;;
  11399. *) as_dir=$as_dir/ ;;
  11400. esac
  11401. for ac_exec_ext in '' $ac_executable_extensions; do
  11402. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11403. ac_cv_prog_AWK="$ac_prog"
  11404. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11405. break 2
  11406. fi
  11407. done
  11408. done
  11409. IFS=$as_save_IFS
  11410. fi
  11411. fi
  11412. AWK=$ac_cv_prog_AWK
  11413. if test -n "$AWK"; then
  11414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11415. printf "%s\n" "$AWK" >&6; }
  11416. else
  11417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11418. printf "%s\n" "no" >&6; }
  11419. fi
  11420. test -n "$AWK" && break
  11421. done
  11422. ac_ext=c
  11423. ac_cpp='$CPP $CPPFLAGS'
  11424. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11425. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11426. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11427. if test -n "$ac_tool_prefix"; then
  11428. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11429. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11431. printf %s "checking for $ac_word... " >&6; }
  11432. if test ${ac_cv_prog_CC+y}
  11433. then :
  11434. printf %s "(cached) " >&6
  11435. else $as_nop
  11436. if test -n "$CC"; then
  11437. ac_cv_prog_CC="$CC" # Let the user override the test.
  11438. else
  11439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11440. for as_dir in $PATH
  11441. do
  11442. IFS=$as_save_IFS
  11443. case $as_dir in #(((
  11444. '') as_dir=./ ;;
  11445. */) ;;
  11446. *) as_dir=$as_dir/ ;;
  11447. esac
  11448. for ac_exec_ext in '' $ac_executable_extensions; do
  11449. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11450. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11452. break 2
  11453. fi
  11454. done
  11455. done
  11456. IFS=$as_save_IFS
  11457. fi
  11458. fi
  11459. CC=$ac_cv_prog_CC
  11460. if test -n "$CC"; then
  11461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11462. printf "%s\n" "$CC" >&6; }
  11463. else
  11464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11465. printf "%s\n" "no" >&6; }
  11466. fi
  11467. fi
  11468. if test -z "$ac_cv_prog_CC"; then
  11469. ac_ct_CC=$CC
  11470. # Extract the first word of "gcc", so it can be a program name with args.
  11471. set dummy gcc; ac_word=$2
  11472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11473. printf %s "checking for $ac_word... " >&6; }
  11474. if test ${ac_cv_prog_ac_ct_CC+y}
  11475. then :
  11476. printf %s "(cached) " >&6
  11477. else $as_nop
  11478. if test -n "$ac_ct_CC"; then
  11479. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11480. else
  11481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11482. for as_dir in $PATH
  11483. do
  11484. IFS=$as_save_IFS
  11485. case $as_dir in #(((
  11486. '') as_dir=./ ;;
  11487. */) ;;
  11488. *) as_dir=$as_dir/ ;;
  11489. esac
  11490. for ac_exec_ext in '' $ac_executable_extensions; do
  11491. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11492. ac_cv_prog_ac_ct_CC="gcc"
  11493. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11494. break 2
  11495. fi
  11496. done
  11497. done
  11498. IFS=$as_save_IFS
  11499. fi
  11500. fi
  11501. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11502. if test -n "$ac_ct_CC"; then
  11503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11504. printf "%s\n" "$ac_ct_CC" >&6; }
  11505. else
  11506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11507. printf "%s\n" "no" >&6; }
  11508. fi
  11509. if test "x$ac_ct_CC" = x; then
  11510. CC=""
  11511. else
  11512. case $cross_compiling:$ac_tool_warned in
  11513. yes:)
  11514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11515. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11516. ac_tool_warned=yes ;;
  11517. esac
  11518. CC=$ac_ct_CC
  11519. fi
  11520. else
  11521. CC="$ac_cv_prog_CC"
  11522. fi
  11523. if test -z "$CC"; then
  11524. if test -n "$ac_tool_prefix"; then
  11525. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11526. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11528. printf %s "checking for $ac_word... " >&6; }
  11529. if test ${ac_cv_prog_CC+y}
  11530. then :
  11531. printf %s "(cached) " >&6
  11532. else $as_nop
  11533. if test -n "$CC"; then
  11534. ac_cv_prog_CC="$CC" # Let the user override the test.
  11535. else
  11536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11537. for as_dir in $PATH
  11538. do
  11539. IFS=$as_save_IFS
  11540. case $as_dir in #(((
  11541. '') as_dir=./ ;;
  11542. */) ;;
  11543. *) as_dir=$as_dir/ ;;
  11544. esac
  11545. for ac_exec_ext in '' $ac_executable_extensions; do
  11546. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11547. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11548. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11549. break 2
  11550. fi
  11551. done
  11552. done
  11553. IFS=$as_save_IFS
  11554. fi
  11555. fi
  11556. CC=$ac_cv_prog_CC
  11557. if test -n "$CC"; then
  11558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11559. printf "%s\n" "$CC" >&6; }
  11560. else
  11561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11562. printf "%s\n" "no" >&6; }
  11563. fi
  11564. fi
  11565. fi
  11566. if test -z "$CC"; then
  11567. # Extract the first word of "cc", so it can be a program name with args.
  11568. set dummy cc; 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_CC+y}
  11572. then :
  11573. printf %s "(cached) " >&6
  11574. else $as_nop
  11575. if test -n "$CC"; then
  11576. ac_cv_prog_CC="$CC" # Let the user override the test.
  11577. else
  11578. ac_prog_rejected=no
  11579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11580. for as_dir in $PATH
  11581. do
  11582. IFS=$as_save_IFS
  11583. case $as_dir in #(((
  11584. '') as_dir=./ ;;
  11585. */) ;;
  11586. *) as_dir=$as_dir/ ;;
  11587. esac
  11588. for ac_exec_ext in '' $ac_executable_extensions; do
  11589. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11590. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11591. ac_prog_rejected=yes
  11592. continue
  11593. fi
  11594. ac_cv_prog_CC="cc"
  11595. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11596. break 2
  11597. fi
  11598. done
  11599. done
  11600. IFS=$as_save_IFS
  11601. if test $ac_prog_rejected = yes; then
  11602. # We found a bogon in the path, so make sure we never use it.
  11603. set dummy $ac_cv_prog_CC
  11604. shift
  11605. if test $# != 0; then
  11606. # We chose a different compiler from the bogus one.
  11607. # However, it has the same basename, so the bogon will be chosen
  11608. # first if we set CC to just the basename; use the full file name.
  11609. shift
  11610. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11611. fi
  11612. fi
  11613. fi
  11614. fi
  11615. CC=$ac_cv_prog_CC
  11616. if test -n "$CC"; then
  11617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11618. printf "%s\n" "$CC" >&6; }
  11619. else
  11620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11621. printf "%s\n" "no" >&6; }
  11622. fi
  11623. fi
  11624. if test -z "$CC"; then
  11625. if test -n "$ac_tool_prefix"; then
  11626. for ac_prog in cl.exe
  11627. do
  11628. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11629. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11631. printf %s "checking for $ac_word... " >&6; }
  11632. if test ${ac_cv_prog_CC+y}
  11633. then :
  11634. printf %s "(cached) " >&6
  11635. else $as_nop
  11636. if test -n "$CC"; then
  11637. ac_cv_prog_CC="$CC" # Let the user override the test.
  11638. else
  11639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11640. for as_dir in $PATH
  11641. do
  11642. IFS=$as_save_IFS
  11643. case $as_dir in #(((
  11644. '') as_dir=./ ;;
  11645. */) ;;
  11646. *) as_dir=$as_dir/ ;;
  11647. esac
  11648. for ac_exec_ext in '' $ac_executable_extensions; do
  11649. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11650. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11651. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11652. break 2
  11653. fi
  11654. done
  11655. done
  11656. IFS=$as_save_IFS
  11657. fi
  11658. fi
  11659. CC=$ac_cv_prog_CC
  11660. if test -n "$CC"; then
  11661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11662. printf "%s\n" "$CC" >&6; }
  11663. else
  11664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11665. printf "%s\n" "no" >&6; }
  11666. fi
  11667. test -n "$CC" && break
  11668. done
  11669. fi
  11670. if test -z "$CC"; then
  11671. ac_ct_CC=$CC
  11672. for ac_prog in cl.exe
  11673. do
  11674. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11675. set dummy $ac_prog; ac_word=$2
  11676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11677. printf %s "checking for $ac_word... " >&6; }
  11678. if test ${ac_cv_prog_ac_ct_CC+y}
  11679. then :
  11680. printf %s "(cached) " >&6
  11681. else $as_nop
  11682. if test -n "$ac_ct_CC"; then
  11683. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11684. else
  11685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11686. for as_dir in $PATH
  11687. do
  11688. IFS=$as_save_IFS
  11689. case $as_dir in #(((
  11690. '') as_dir=./ ;;
  11691. */) ;;
  11692. *) as_dir=$as_dir/ ;;
  11693. esac
  11694. for ac_exec_ext in '' $ac_executable_extensions; do
  11695. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11696. ac_cv_prog_ac_ct_CC="$ac_prog"
  11697. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11698. break 2
  11699. fi
  11700. done
  11701. done
  11702. IFS=$as_save_IFS
  11703. fi
  11704. fi
  11705. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11706. if test -n "$ac_ct_CC"; then
  11707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11708. printf "%s\n" "$ac_ct_CC" >&6; }
  11709. else
  11710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11711. printf "%s\n" "no" >&6; }
  11712. fi
  11713. test -n "$ac_ct_CC" && break
  11714. done
  11715. if test "x$ac_ct_CC" = x; then
  11716. CC=""
  11717. else
  11718. case $cross_compiling:$ac_tool_warned in
  11719. yes:)
  11720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11721. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11722. ac_tool_warned=yes ;;
  11723. esac
  11724. CC=$ac_ct_CC
  11725. fi
  11726. fi
  11727. fi
  11728. if test -z "$CC"; then
  11729. if test -n "$ac_tool_prefix"; then
  11730. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11731. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11733. printf %s "checking for $ac_word... " >&6; }
  11734. if test ${ac_cv_prog_CC+y}
  11735. then :
  11736. printf %s "(cached) " >&6
  11737. else $as_nop
  11738. if test -n "$CC"; then
  11739. ac_cv_prog_CC="$CC" # Let the user override the test.
  11740. else
  11741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11742. for as_dir in $PATH
  11743. do
  11744. IFS=$as_save_IFS
  11745. case $as_dir in #(((
  11746. '') as_dir=./ ;;
  11747. */) ;;
  11748. *) as_dir=$as_dir/ ;;
  11749. esac
  11750. for ac_exec_ext in '' $ac_executable_extensions; do
  11751. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11752. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11753. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11754. break 2
  11755. fi
  11756. done
  11757. done
  11758. IFS=$as_save_IFS
  11759. fi
  11760. fi
  11761. CC=$ac_cv_prog_CC
  11762. if test -n "$CC"; then
  11763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11764. printf "%s\n" "$CC" >&6; }
  11765. else
  11766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11767. printf "%s\n" "no" >&6; }
  11768. fi
  11769. fi
  11770. if test -z "$ac_cv_prog_CC"; then
  11771. ac_ct_CC=$CC
  11772. # Extract the first word of "clang", so it can be a program name with args.
  11773. set dummy clang; ac_word=$2
  11774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11775. printf %s "checking for $ac_word... " >&6; }
  11776. if test ${ac_cv_prog_ac_ct_CC+y}
  11777. then :
  11778. printf %s "(cached) " >&6
  11779. else $as_nop
  11780. if test -n "$ac_ct_CC"; then
  11781. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11782. else
  11783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11784. for as_dir in $PATH
  11785. do
  11786. IFS=$as_save_IFS
  11787. case $as_dir in #(((
  11788. '') as_dir=./ ;;
  11789. */) ;;
  11790. *) as_dir=$as_dir/ ;;
  11791. esac
  11792. for ac_exec_ext in '' $ac_executable_extensions; do
  11793. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11794. ac_cv_prog_ac_ct_CC="clang"
  11795. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11796. break 2
  11797. fi
  11798. done
  11799. done
  11800. IFS=$as_save_IFS
  11801. fi
  11802. fi
  11803. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11804. if test -n "$ac_ct_CC"; then
  11805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11806. printf "%s\n" "$ac_ct_CC" >&6; }
  11807. else
  11808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11809. printf "%s\n" "no" >&6; }
  11810. fi
  11811. if test "x$ac_ct_CC" = x; then
  11812. CC=""
  11813. else
  11814. case $cross_compiling:$ac_tool_warned in
  11815. yes:)
  11816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11817. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11818. ac_tool_warned=yes ;;
  11819. esac
  11820. CC=$ac_ct_CC
  11821. fi
  11822. else
  11823. CC="$ac_cv_prog_CC"
  11824. fi
  11825. fi
  11826. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11827. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11828. as_fn_error $? "no acceptable C compiler found in \$PATH
  11829. See \`config.log' for more details" "$LINENO" 5; }
  11830. # Provide some information about the compiler.
  11831. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11832. set X $ac_compile
  11833. ac_compiler=$2
  11834. for ac_option in --version -v -V -qversion -version; do
  11835. { { ac_try="$ac_compiler $ac_option >&5"
  11836. case "(($ac_try" in
  11837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11838. *) ac_try_echo=$ac_try;;
  11839. esac
  11840. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11841. printf "%s\n" "$ac_try_echo"; } >&5
  11842. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11843. ac_status=$?
  11844. if test -s conftest.err; then
  11845. sed '10a\
  11846. ... rest of stderr output deleted ...
  11847. 10q' conftest.err >conftest.er1
  11848. cat conftest.er1 >&5
  11849. fi
  11850. rm -f conftest.er1 conftest.err
  11851. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11852. test $ac_status = 0; }
  11853. done
  11854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11855. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11856. if test ${ac_cv_c_compiler_gnu+y}
  11857. then :
  11858. printf %s "(cached) " >&6
  11859. else $as_nop
  11860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11861. /* end confdefs.h. */
  11862. int
  11863. main (void)
  11864. {
  11865. #ifndef __GNUC__
  11866. choke me
  11867. #endif
  11868. ;
  11869. return 0;
  11870. }
  11871. _ACEOF
  11872. if ac_fn_c_try_compile "$LINENO"
  11873. then :
  11874. ac_compiler_gnu=yes
  11875. else $as_nop
  11876. ac_compiler_gnu=no
  11877. fi
  11878. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11879. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11880. fi
  11881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11882. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11883. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11884. if test $ac_compiler_gnu = yes; then
  11885. GCC=yes
  11886. else
  11887. GCC=
  11888. fi
  11889. ac_test_CFLAGS=${CFLAGS+y}
  11890. ac_save_CFLAGS=$CFLAGS
  11891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11892. printf %s "checking whether $CC accepts -g... " >&6; }
  11893. if test ${ac_cv_prog_cc_g+y}
  11894. then :
  11895. printf %s "(cached) " >&6
  11896. else $as_nop
  11897. ac_save_c_werror_flag=$ac_c_werror_flag
  11898. ac_c_werror_flag=yes
  11899. ac_cv_prog_cc_g=no
  11900. CFLAGS="-g"
  11901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11902. /* end confdefs.h. */
  11903. int
  11904. main (void)
  11905. {
  11906. ;
  11907. return 0;
  11908. }
  11909. _ACEOF
  11910. if ac_fn_c_try_compile "$LINENO"
  11911. then :
  11912. ac_cv_prog_cc_g=yes
  11913. else $as_nop
  11914. CFLAGS=""
  11915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11916. /* end confdefs.h. */
  11917. int
  11918. main (void)
  11919. {
  11920. ;
  11921. return 0;
  11922. }
  11923. _ACEOF
  11924. if ac_fn_c_try_compile "$LINENO"
  11925. then :
  11926. else $as_nop
  11927. ac_c_werror_flag=$ac_save_c_werror_flag
  11928. CFLAGS="-g"
  11929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11930. /* end confdefs.h. */
  11931. int
  11932. main (void)
  11933. {
  11934. ;
  11935. return 0;
  11936. }
  11937. _ACEOF
  11938. if ac_fn_c_try_compile "$LINENO"
  11939. then :
  11940. ac_cv_prog_cc_g=yes
  11941. fi
  11942. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11943. fi
  11944. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11945. fi
  11946. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11947. ac_c_werror_flag=$ac_save_c_werror_flag
  11948. fi
  11949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11950. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11951. if test $ac_test_CFLAGS; then
  11952. CFLAGS=$ac_save_CFLAGS
  11953. elif test $ac_cv_prog_cc_g = yes; then
  11954. if test "$GCC" = yes; then
  11955. CFLAGS="-g -O2"
  11956. else
  11957. CFLAGS="-g"
  11958. fi
  11959. else
  11960. if test "$GCC" = yes; then
  11961. CFLAGS="-O2"
  11962. else
  11963. CFLAGS=
  11964. fi
  11965. fi
  11966. ac_prog_cc_stdc=no
  11967. if test x$ac_prog_cc_stdc = xno
  11968. then :
  11969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11970. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11971. if test ${ac_cv_prog_cc_c11+y}
  11972. then :
  11973. printf %s "(cached) " >&6
  11974. else $as_nop
  11975. ac_cv_prog_cc_c11=no
  11976. ac_save_CC=$CC
  11977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11978. /* end confdefs.h. */
  11979. $ac_c_conftest_c11_program
  11980. _ACEOF
  11981. for ac_arg in '' -std=gnu11
  11982. do
  11983. CC="$ac_save_CC $ac_arg"
  11984. if ac_fn_c_try_compile "$LINENO"
  11985. then :
  11986. ac_cv_prog_cc_c11=$ac_arg
  11987. fi
  11988. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11989. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11990. done
  11991. rm -f conftest.$ac_ext
  11992. CC=$ac_save_CC
  11993. fi
  11994. if test "x$ac_cv_prog_cc_c11" = xno
  11995. then :
  11996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11997. printf "%s\n" "unsupported" >&6; }
  11998. else $as_nop
  11999. if test "x$ac_cv_prog_cc_c11" = x
  12000. then :
  12001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12002. printf "%s\n" "none needed" >&6; }
  12003. else $as_nop
  12004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  12005. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  12006. CC="$CC $ac_cv_prog_cc_c11"
  12007. fi
  12008. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  12009. ac_prog_cc_stdc=c11
  12010. fi
  12011. fi
  12012. if test x$ac_prog_cc_stdc = xno
  12013. then :
  12014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  12015. printf %s "checking for $CC option to enable C99 features... " >&6; }
  12016. if test ${ac_cv_prog_cc_c99+y}
  12017. then :
  12018. printf %s "(cached) " >&6
  12019. else $as_nop
  12020. ac_cv_prog_cc_c99=no
  12021. ac_save_CC=$CC
  12022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12023. /* end confdefs.h. */
  12024. $ac_c_conftest_c99_program
  12025. _ACEOF
  12026. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  12027. do
  12028. CC="$ac_save_CC $ac_arg"
  12029. if ac_fn_c_try_compile "$LINENO"
  12030. then :
  12031. ac_cv_prog_cc_c99=$ac_arg
  12032. fi
  12033. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12034. test "x$ac_cv_prog_cc_c99" != "xno" && break
  12035. done
  12036. rm -f conftest.$ac_ext
  12037. CC=$ac_save_CC
  12038. fi
  12039. if test "x$ac_cv_prog_cc_c99" = xno
  12040. then :
  12041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12042. printf "%s\n" "unsupported" >&6; }
  12043. else $as_nop
  12044. if test "x$ac_cv_prog_cc_c99" = x
  12045. then :
  12046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12047. printf "%s\n" "none needed" >&6; }
  12048. else $as_nop
  12049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  12050. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  12051. CC="$CC $ac_cv_prog_cc_c99"
  12052. fi
  12053. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  12054. ac_prog_cc_stdc=c99
  12055. fi
  12056. fi
  12057. if test x$ac_prog_cc_stdc = xno
  12058. then :
  12059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  12060. printf %s "checking for $CC option to enable C89 features... " >&6; }
  12061. if test ${ac_cv_prog_cc_c89+y}
  12062. then :
  12063. printf %s "(cached) " >&6
  12064. else $as_nop
  12065. ac_cv_prog_cc_c89=no
  12066. ac_save_CC=$CC
  12067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12068. /* end confdefs.h. */
  12069. $ac_c_conftest_c89_program
  12070. _ACEOF
  12071. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12072. do
  12073. CC="$ac_save_CC $ac_arg"
  12074. if ac_fn_c_try_compile "$LINENO"
  12075. then :
  12076. ac_cv_prog_cc_c89=$ac_arg
  12077. fi
  12078. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12079. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12080. done
  12081. rm -f conftest.$ac_ext
  12082. CC=$ac_save_CC
  12083. fi
  12084. if test "x$ac_cv_prog_cc_c89" = xno
  12085. then :
  12086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12087. printf "%s\n" "unsupported" >&6; }
  12088. else $as_nop
  12089. if test "x$ac_cv_prog_cc_c89" = x
  12090. then :
  12091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12092. printf "%s\n" "none needed" >&6; }
  12093. else $as_nop
  12094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12095. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12096. CC="$CC $ac_cv_prog_cc_c89"
  12097. fi
  12098. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12099. ac_prog_cc_stdc=c89
  12100. fi
  12101. fi
  12102. ac_ext=c
  12103. ac_cpp='$CPP $CPPFLAGS'
  12104. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12105. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12106. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12107. ac_ext=cpp
  12108. ac_cpp='$CXXCPP $CPPFLAGS'
  12109. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12110. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12111. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12112. if test -z "$CXX"; then
  12113. if test -n "$CCC"; then
  12114. CXX=$CCC
  12115. else
  12116. if test -n "$ac_tool_prefix"; then
  12117. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12118. do
  12119. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12120. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12122. printf %s "checking for $ac_word... " >&6; }
  12123. if test ${ac_cv_prog_CXX+y}
  12124. then :
  12125. printf %s "(cached) " >&6
  12126. else $as_nop
  12127. if test -n "$CXX"; then
  12128. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12129. else
  12130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12131. for as_dir in $PATH
  12132. do
  12133. IFS=$as_save_IFS
  12134. case $as_dir in #(((
  12135. '') as_dir=./ ;;
  12136. */) ;;
  12137. *) as_dir=$as_dir/ ;;
  12138. esac
  12139. for ac_exec_ext in '' $ac_executable_extensions; do
  12140. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12141. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12142. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12143. break 2
  12144. fi
  12145. done
  12146. done
  12147. IFS=$as_save_IFS
  12148. fi
  12149. fi
  12150. CXX=$ac_cv_prog_CXX
  12151. if test -n "$CXX"; then
  12152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12153. printf "%s\n" "$CXX" >&6; }
  12154. else
  12155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12156. printf "%s\n" "no" >&6; }
  12157. fi
  12158. test -n "$CXX" && break
  12159. done
  12160. fi
  12161. if test -z "$CXX"; then
  12162. ac_ct_CXX=$CXX
  12163. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12164. do
  12165. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12166. set dummy $ac_prog; ac_word=$2
  12167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12168. printf %s "checking for $ac_word... " >&6; }
  12169. if test ${ac_cv_prog_ac_ct_CXX+y}
  12170. then :
  12171. printf %s "(cached) " >&6
  12172. else $as_nop
  12173. if test -n "$ac_ct_CXX"; then
  12174. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12175. else
  12176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12177. for as_dir in $PATH
  12178. do
  12179. IFS=$as_save_IFS
  12180. case $as_dir in #(((
  12181. '') as_dir=./ ;;
  12182. */) ;;
  12183. *) as_dir=$as_dir/ ;;
  12184. esac
  12185. for ac_exec_ext in '' $ac_executable_extensions; do
  12186. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12187. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12188. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12189. break 2
  12190. fi
  12191. done
  12192. done
  12193. IFS=$as_save_IFS
  12194. fi
  12195. fi
  12196. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12197. if test -n "$ac_ct_CXX"; then
  12198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12199. printf "%s\n" "$ac_ct_CXX" >&6; }
  12200. else
  12201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12202. printf "%s\n" "no" >&6; }
  12203. fi
  12204. test -n "$ac_ct_CXX" && break
  12205. done
  12206. if test "x$ac_ct_CXX" = x; then
  12207. CXX="g++"
  12208. else
  12209. case $cross_compiling:$ac_tool_warned in
  12210. yes:)
  12211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12212. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12213. ac_tool_warned=yes ;;
  12214. esac
  12215. CXX=$ac_ct_CXX
  12216. fi
  12217. fi
  12218. fi
  12219. fi
  12220. # Provide some information about the compiler.
  12221. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12222. set X $ac_compile
  12223. ac_compiler=$2
  12224. for ac_option in --version -v -V -qversion; do
  12225. { { ac_try="$ac_compiler $ac_option >&5"
  12226. case "(($ac_try" in
  12227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12228. *) ac_try_echo=$ac_try;;
  12229. esac
  12230. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12231. printf "%s\n" "$ac_try_echo"; } >&5
  12232. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12233. ac_status=$?
  12234. if test -s conftest.err; then
  12235. sed '10a\
  12236. ... rest of stderr output deleted ...
  12237. 10q' conftest.err >conftest.er1
  12238. cat conftest.er1 >&5
  12239. fi
  12240. rm -f conftest.er1 conftest.err
  12241. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12242. test $ac_status = 0; }
  12243. done
  12244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12245. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12246. if test ${ac_cv_cxx_compiler_gnu+y}
  12247. then :
  12248. printf %s "(cached) " >&6
  12249. else $as_nop
  12250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12251. /* end confdefs.h. */
  12252. int
  12253. main (void)
  12254. {
  12255. #ifndef __GNUC__
  12256. choke me
  12257. #endif
  12258. ;
  12259. return 0;
  12260. }
  12261. _ACEOF
  12262. if ac_fn_cxx_try_compile "$LINENO"
  12263. then :
  12264. ac_compiler_gnu=yes
  12265. else $as_nop
  12266. ac_compiler_gnu=no
  12267. fi
  12268. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12269. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12270. fi
  12271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12272. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12273. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12274. if test $ac_compiler_gnu = yes; then
  12275. GXX=yes
  12276. else
  12277. GXX=
  12278. fi
  12279. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12280. ac_save_CXXFLAGS=$CXXFLAGS
  12281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12282. printf %s "checking whether $CXX accepts -g... " >&6; }
  12283. if test ${ac_cv_prog_cxx_g+y}
  12284. then :
  12285. printf %s "(cached) " >&6
  12286. else $as_nop
  12287. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12288. ac_cxx_werror_flag=yes
  12289. ac_cv_prog_cxx_g=no
  12290. CXXFLAGS="-g"
  12291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12292. /* end confdefs.h. */
  12293. int
  12294. main (void)
  12295. {
  12296. ;
  12297. return 0;
  12298. }
  12299. _ACEOF
  12300. if ac_fn_cxx_try_compile "$LINENO"
  12301. then :
  12302. ac_cv_prog_cxx_g=yes
  12303. else $as_nop
  12304. CXXFLAGS=""
  12305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12306. /* end confdefs.h. */
  12307. int
  12308. main (void)
  12309. {
  12310. ;
  12311. return 0;
  12312. }
  12313. _ACEOF
  12314. if ac_fn_cxx_try_compile "$LINENO"
  12315. then :
  12316. else $as_nop
  12317. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12318. CXXFLAGS="-g"
  12319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12320. /* end confdefs.h. */
  12321. int
  12322. main (void)
  12323. {
  12324. ;
  12325. return 0;
  12326. }
  12327. _ACEOF
  12328. if ac_fn_cxx_try_compile "$LINENO"
  12329. then :
  12330. ac_cv_prog_cxx_g=yes
  12331. fi
  12332. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12333. fi
  12334. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12335. fi
  12336. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12337. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12338. fi
  12339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12340. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12341. if test $ac_test_CXXFLAGS; then
  12342. CXXFLAGS=$ac_save_CXXFLAGS
  12343. elif test $ac_cv_prog_cxx_g = yes; then
  12344. if test "$GXX" = yes; then
  12345. CXXFLAGS="-g -O2"
  12346. else
  12347. CXXFLAGS="-g"
  12348. fi
  12349. else
  12350. if test "$GXX" = yes; then
  12351. CXXFLAGS="-O2"
  12352. else
  12353. CXXFLAGS=
  12354. fi
  12355. fi
  12356. ac_prog_cxx_stdcxx=no
  12357. if test x$ac_prog_cxx_stdcxx = xno
  12358. then :
  12359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12360. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12361. if test ${ac_cv_prog_cxx_11+y}
  12362. then :
  12363. printf %s "(cached) " >&6
  12364. else $as_nop
  12365. ac_cv_prog_cxx_11=no
  12366. ac_save_CXX=$CXX
  12367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12368. /* end confdefs.h. */
  12369. $ac_cxx_conftest_cxx11_program
  12370. _ACEOF
  12371. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12372. do
  12373. CXX="$ac_save_CXX $ac_arg"
  12374. if ac_fn_cxx_try_compile "$LINENO"
  12375. then :
  12376. ac_cv_prog_cxx_cxx11=$ac_arg
  12377. fi
  12378. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12379. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12380. done
  12381. rm -f conftest.$ac_ext
  12382. CXX=$ac_save_CXX
  12383. fi
  12384. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12385. then :
  12386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12387. printf "%s\n" "unsupported" >&6; }
  12388. else $as_nop
  12389. if test "x$ac_cv_prog_cxx_cxx11" = x
  12390. then :
  12391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12392. printf "%s\n" "none needed" >&6; }
  12393. else $as_nop
  12394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12395. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12396. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12397. fi
  12398. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12399. ac_prog_cxx_stdcxx=cxx11
  12400. fi
  12401. fi
  12402. if test x$ac_prog_cxx_stdcxx = xno
  12403. then :
  12404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12405. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12406. if test ${ac_cv_prog_cxx_98+y}
  12407. then :
  12408. printf %s "(cached) " >&6
  12409. else $as_nop
  12410. ac_cv_prog_cxx_98=no
  12411. ac_save_CXX=$CXX
  12412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12413. /* end confdefs.h. */
  12414. $ac_cxx_conftest_cxx98_program
  12415. _ACEOF
  12416. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12417. do
  12418. CXX="$ac_save_CXX $ac_arg"
  12419. if ac_fn_cxx_try_compile "$LINENO"
  12420. then :
  12421. ac_cv_prog_cxx_cxx98=$ac_arg
  12422. fi
  12423. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12424. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12425. done
  12426. rm -f conftest.$ac_ext
  12427. CXX=$ac_save_CXX
  12428. fi
  12429. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12430. then :
  12431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12432. printf "%s\n" "unsupported" >&6; }
  12433. else $as_nop
  12434. if test "x$ac_cv_prog_cxx_cxx98" = x
  12435. then :
  12436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12437. printf "%s\n" "none needed" >&6; }
  12438. else $as_nop
  12439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12440. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12441. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12442. fi
  12443. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12444. ac_prog_cxx_stdcxx=cxx98
  12445. fi
  12446. fi
  12447. ac_ext=c
  12448. ac_cpp='$CPP $CPPFLAGS'
  12449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12452. func_stripname_cnf ()
  12453. {
  12454. case $2 in
  12455. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12456. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12457. esac
  12458. } # func_stripname_cnf
  12459. if test -n "$CXX" && ( test no != "$CXX" &&
  12460. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12461. (test g++ != "$CXX"))); then
  12462. ac_ext=cpp
  12463. ac_cpp='$CXXCPP $CPPFLAGS'
  12464. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12465. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12466. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12468. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12469. if test -z "$CXXCPP"; then
  12470. if test ${ac_cv_prog_CXXCPP+y}
  12471. then :
  12472. printf %s "(cached) " >&6
  12473. else $as_nop
  12474. # Double quotes because $CXX needs to be expanded
  12475. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12476. do
  12477. ac_preproc_ok=false
  12478. for ac_cxx_preproc_warn_flag in '' yes
  12479. do
  12480. # Use a header file that comes with gcc, so configuring glibc
  12481. # with a fresh cross-compiler works.
  12482. # On the NeXT, cc -E runs the code through the compiler's parser,
  12483. # not just through cpp. "Syntax error" is here to catch this case.
  12484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12485. /* end confdefs.h. */
  12486. #include <limits.h>
  12487. Syntax error
  12488. _ACEOF
  12489. if ac_fn_cxx_try_cpp "$LINENO"
  12490. then :
  12491. else $as_nop
  12492. # Broken: fails on valid input.
  12493. continue
  12494. fi
  12495. rm -f conftest.err conftest.i conftest.$ac_ext
  12496. # OK, works on sane cases. Now check whether nonexistent headers
  12497. # can be detected and how.
  12498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12499. /* end confdefs.h. */
  12500. #include <ac_nonexistent.h>
  12501. _ACEOF
  12502. if ac_fn_cxx_try_cpp "$LINENO"
  12503. then :
  12504. # Broken: success on invalid input.
  12505. continue
  12506. else $as_nop
  12507. # Passes both tests.
  12508. ac_preproc_ok=:
  12509. break
  12510. fi
  12511. rm -f conftest.err conftest.i conftest.$ac_ext
  12512. done
  12513. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12514. rm -f conftest.i conftest.err conftest.$ac_ext
  12515. if $ac_preproc_ok
  12516. then :
  12517. break
  12518. fi
  12519. done
  12520. ac_cv_prog_CXXCPP=$CXXCPP
  12521. fi
  12522. CXXCPP=$ac_cv_prog_CXXCPP
  12523. else
  12524. ac_cv_prog_CXXCPP=$CXXCPP
  12525. fi
  12526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12527. printf "%s\n" "$CXXCPP" >&6; }
  12528. ac_preproc_ok=false
  12529. for ac_cxx_preproc_warn_flag in '' yes
  12530. do
  12531. # Use a header file that comes with gcc, so configuring glibc
  12532. # with a fresh cross-compiler works.
  12533. # On the NeXT, cc -E runs the code through the compiler's parser,
  12534. # not just through cpp. "Syntax error" is here to catch this case.
  12535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12536. /* end confdefs.h. */
  12537. #include <limits.h>
  12538. Syntax error
  12539. _ACEOF
  12540. if ac_fn_cxx_try_cpp "$LINENO"
  12541. then :
  12542. else $as_nop
  12543. # Broken: fails on valid input.
  12544. continue
  12545. fi
  12546. rm -f conftest.err conftest.i conftest.$ac_ext
  12547. # OK, works on sane cases. Now check whether nonexistent headers
  12548. # can be detected and how.
  12549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12550. /* end confdefs.h. */
  12551. #include <ac_nonexistent.h>
  12552. _ACEOF
  12553. if ac_fn_cxx_try_cpp "$LINENO"
  12554. then :
  12555. # Broken: success on invalid input.
  12556. continue
  12557. else $as_nop
  12558. # Passes both tests.
  12559. ac_preproc_ok=:
  12560. break
  12561. fi
  12562. rm -f conftest.err conftest.i conftest.$ac_ext
  12563. done
  12564. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12565. rm -f conftest.i conftest.err conftest.$ac_ext
  12566. if $ac_preproc_ok
  12567. then :
  12568. else $as_nop
  12569. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12570. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12571. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12572. See \`config.log' for more details" "$LINENO" 5; }
  12573. fi
  12574. ac_ext=c
  12575. ac_cpp='$CPP $CPPFLAGS'
  12576. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12577. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12578. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12579. else
  12580. _lt_caught_CXX_error=yes
  12581. fi
  12582. ac_ext=cpp
  12583. ac_cpp='$CXXCPP $CPPFLAGS'
  12584. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12585. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12586. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12587. archive_cmds_need_lc_CXX=no
  12588. allow_undefined_flag_CXX=
  12589. always_export_symbols_CXX=no
  12590. archive_expsym_cmds_CXX=
  12591. compiler_needs_object_CXX=no
  12592. export_dynamic_flag_spec_CXX=
  12593. hardcode_direct_CXX=no
  12594. hardcode_direct_absolute_CXX=no
  12595. hardcode_libdir_flag_spec_CXX=
  12596. hardcode_libdir_separator_CXX=
  12597. hardcode_minus_L_CXX=no
  12598. hardcode_shlibpath_var_CXX=unsupported
  12599. hardcode_automatic_CXX=no
  12600. inherit_rpath_CXX=no
  12601. module_cmds_CXX=
  12602. module_expsym_cmds_CXX=
  12603. link_all_deplibs_CXX=unknown
  12604. old_archive_cmds_CXX=$old_archive_cmds
  12605. reload_flag_CXX=$reload_flag
  12606. reload_cmds_CXX=$reload_cmds
  12607. no_undefined_flag_CXX=
  12608. whole_archive_flag_spec_CXX=
  12609. enable_shared_with_static_runtimes_CXX=no
  12610. # Source file extension for C++ test sources.
  12611. ac_ext=cpp
  12612. # Object file extension for compiled C++ test sources.
  12613. objext=o
  12614. objext_CXX=$objext
  12615. # No sense in running all these tests if we already determined that
  12616. # the CXX compiler isn't working. Some variables (like enable_shared)
  12617. # are currently assumed to apply to all compilers on this platform,
  12618. # and will be corrupted by setting them based on a non-working compiler.
  12619. if test yes != "$_lt_caught_CXX_error"; then
  12620. # Code to be used in simple compile tests
  12621. lt_simple_compile_test_code="int some_variable = 0;"
  12622. # Code to be used in simple link tests
  12623. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12624. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12625. # If no C compiler was specified, use CC.
  12626. LTCC=${LTCC-"$CC"}
  12627. # If no C compiler flags were specified, use CFLAGS.
  12628. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12629. # Allow CC to be a program name with arguments.
  12630. compiler=$CC
  12631. # save warnings/boilerplate of simple test code
  12632. ac_outfile=conftest.$ac_objext
  12633. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12634. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12635. _lt_compiler_boilerplate=`cat conftest.err`
  12636. $RM conftest*
  12637. ac_outfile=conftest.$ac_objext
  12638. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12639. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12640. _lt_linker_boilerplate=`cat conftest.err`
  12641. $RM -r conftest*
  12642. # Allow CC to be a program name with arguments.
  12643. lt_save_CC=$CC
  12644. lt_save_CFLAGS=$CFLAGS
  12645. lt_save_LD=$LD
  12646. lt_save_GCC=$GCC
  12647. GCC=$GXX
  12648. lt_save_with_gnu_ld=$with_gnu_ld
  12649. lt_save_path_LD=$lt_cv_path_LD
  12650. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12651. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12652. else
  12653. $as_unset lt_cv_prog_gnu_ld
  12654. fi
  12655. if test -n "${lt_cv_path_LDCXX+set}"; then
  12656. lt_cv_path_LD=$lt_cv_path_LDCXX
  12657. else
  12658. $as_unset lt_cv_path_LD
  12659. fi
  12660. test -z "${LDCXX+set}" || LD=$LDCXX
  12661. CC=${CXX-"c++"}
  12662. CFLAGS=$CXXFLAGS
  12663. compiler=$CC
  12664. compiler_CXX=$CC
  12665. func_cc_basename $compiler
  12666. cc_basename=$func_cc_basename_result
  12667. if test -n "$compiler"; then
  12668. # We don't want -fno-exception when compiling C++ code, so set the
  12669. # no_builtin_flag separately
  12670. if test yes = "$GXX"; then
  12671. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12672. else
  12673. lt_prog_compiler_no_builtin_flag_CXX=
  12674. fi
  12675. if test yes = "$GXX"; then
  12676. # Set up default GNU C++ configuration
  12677. # Check whether --with-gnu-ld was given.
  12678. if test ${with_gnu_ld+y}
  12679. then :
  12680. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12681. else $as_nop
  12682. with_gnu_ld=no
  12683. fi
  12684. ac_prog=ld
  12685. if test yes = "$GCC"; then
  12686. # Check if gcc -print-prog-name=ld gives a path.
  12687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12688. printf %s "checking for ld used by $CC... " >&6; }
  12689. case $host in
  12690. *-*-mingw* | *-*-windows*)
  12691. # gcc leaves a trailing carriage return, which upsets mingw
  12692. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12693. *)
  12694. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12695. esac
  12696. case $ac_prog in
  12697. # Accept absolute paths.
  12698. [\\/]* | ?:[\\/]*)
  12699. re_direlt='/[^/][^/]*/\.\./'
  12700. # Canonicalize the pathname of ld
  12701. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12702. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12703. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12704. done
  12705. test -z "$LD" && LD=$ac_prog
  12706. ;;
  12707. "")
  12708. # If it fails, then pretend we aren't using GCC.
  12709. ac_prog=ld
  12710. ;;
  12711. *)
  12712. # If it is relative, then search for the first ld in PATH.
  12713. with_gnu_ld=unknown
  12714. ;;
  12715. esac
  12716. elif test yes = "$with_gnu_ld"; then
  12717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12718. printf %s "checking for GNU ld... " >&6; }
  12719. else
  12720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12721. printf %s "checking for non-GNU ld... " >&6; }
  12722. fi
  12723. if test ${lt_cv_path_LD+y}
  12724. then :
  12725. printf %s "(cached) " >&6
  12726. else $as_nop
  12727. if test -z "$LD"; then
  12728. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12729. for ac_dir in $PATH; do
  12730. IFS=$lt_save_ifs
  12731. test -z "$ac_dir" && ac_dir=.
  12732. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12733. lt_cv_path_LD=$ac_dir/$ac_prog
  12734. # Check to see if the program is GNU ld. I'd rather use --version,
  12735. # but apparently some variants of GNU ld only accept -v.
  12736. # Break only if it was the GNU/non-GNU ld that we prefer.
  12737. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12738. *GNU* | *'with BFD'*)
  12739. test no != "$with_gnu_ld" && break
  12740. ;;
  12741. *)
  12742. test yes != "$with_gnu_ld" && break
  12743. ;;
  12744. esac
  12745. fi
  12746. done
  12747. IFS=$lt_save_ifs
  12748. else
  12749. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12750. fi
  12751. fi
  12752. LD=$lt_cv_path_LD
  12753. if test -n "$LD"; then
  12754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12755. printf "%s\n" "$LD" >&6; }
  12756. else
  12757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12758. printf "%s\n" "no" >&6; }
  12759. fi
  12760. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12762. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12763. if test ${lt_cv_prog_gnu_ld+y}
  12764. then :
  12765. printf %s "(cached) " >&6
  12766. else $as_nop
  12767. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12768. case `$LD -v 2>&1 </dev/null` in
  12769. *GNU* | *'with BFD'*)
  12770. lt_cv_prog_gnu_ld=yes
  12771. ;;
  12772. *)
  12773. lt_cv_prog_gnu_ld=no
  12774. ;;
  12775. esac
  12776. fi
  12777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12778. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12779. with_gnu_ld=$lt_cv_prog_gnu_ld
  12780. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12781. # archiving commands below assume that GNU ld is being used.
  12782. if test yes = "$with_gnu_ld"; then
  12783. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12784. 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'
  12785. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12786. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12787. # If archive_cmds runs LD, not CC, wlarc should be empty
  12788. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12789. # investigate it a little bit more. (MM)
  12790. wlarc='$wl'
  12791. # ancient GNU ld didn't support --whole-archive et. al.
  12792. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12793. $GREP 'no-whole-archive' > /dev/null; then
  12794. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12795. else
  12796. whole_archive_flag_spec_CXX=
  12797. fi
  12798. else
  12799. with_gnu_ld=no
  12800. wlarc=
  12801. # A generic and very simple default shared library creation
  12802. # command for GNU C++ for the case where it uses the native
  12803. # linker, instead of GNU ld. If possible, this setting should
  12804. # overridden to take advantage of the native linker features on
  12805. # the platform it is being used on.
  12806. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12807. fi
  12808. # Commands to make compiler produce verbose output that lists
  12809. # what "hidden" libraries, object files and flags are used when
  12810. # linking a shared library.
  12811. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  12812. else
  12813. GXX=no
  12814. with_gnu_ld=no
  12815. wlarc=
  12816. fi
  12817. # PORTME: fill in a description of your system's C++ link characteristics
  12818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12819. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12820. ld_shlibs_CXX=yes
  12821. case $host_os in
  12822. aix3*)
  12823. # FIXME: insert proper C++ library support
  12824. ld_shlibs_CXX=no
  12825. ;;
  12826. aix[4-9]*)
  12827. if test ia64 = "$host_cpu"; then
  12828. # On IA64, the linker does run time linking by default, so we don't
  12829. # have to do anything special.
  12830. aix_use_runtimelinking=no
  12831. exp_sym_flag='-Bexport'
  12832. no_entry_flag=
  12833. else
  12834. aix_use_runtimelinking=no
  12835. # Test if we are trying to use run time linking or normal
  12836. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12837. # have runtime linking enabled, and use it for executables.
  12838. # For shared libraries, we enable/disable runtime linking
  12839. # depending on the kind of the shared library created -
  12840. # when "with_aix_soname,aix_use_runtimelinking" is:
  12841. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12842. # "aix,yes" lib.so shared, rtl:yes, for executables
  12843. # lib.a static archive
  12844. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12845. # lib.a(lib.so.V) shared, rtl:no, for executables
  12846. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12847. # lib.a(lib.so.V) shared, rtl:no
  12848. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12849. # lib.a static archive
  12850. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12851. for ld_flag in $LDFLAGS; do
  12852. case $ld_flag in
  12853. *-brtl*)
  12854. aix_use_runtimelinking=yes
  12855. break
  12856. ;;
  12857. esac
  12858. done
  12859. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12860. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12861. # so we don't have lib.a shared libs to link our executables.
  12862. # We have to force runtime linking in this case.
  12863. aix_use_runtimelinking=yes
  12864. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12865. fi
  12866. ;;
  12867. esac
  12868. exp_sym_flag='-bexport'
  12869. no_entry_flag='-bnoentry'
  12870. fi
  12871. # When large executables or shared objects are built, AIX ld can
  12872. # have problems creating the table of contents. If linking a library
  12873. # or program results in "error TOC overflow" add -mminimal-toc to
  12874. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12875. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12876. archive_cmds_CXX=''
  12877. hardcode_direct_CXX=yes
  12878. hardcode_direct_absolute_CXX=yes
  12879. hardcode_libdir_separator_CXX=':'
  12880. link_all_deplibs_CXX=yes
  12881. file_list_spec_CXX='$wl-f,'
  12882. case $with_aix_soname,$aix_use_runtimelinking in
  12883. aix,*) ;; # no import file
  12884. svr4,* | *,yes) # use import file
  12885. # The Import File defines what to hardcode.
  12886. hardcode_direct_CXX=no
  12887. hardcode_direct_absolute_CXX=no
  12888. ;;
  12889. esac
  12890. if test yes = "$GXX"; then
  12891. case $host_os in aix4.[012]|aix4.[012].*)
  12892. # We only want to do this on AIX 4.2 and lower, the check
  12893. # below for broken collect2 doesn't work under 4.3+
  12894. collect2name=`$CC -print-prog-name=collect2`
  12895. if test -f "$collect2name" &&
  12896. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12897. then
  12898. # We have reworked collect2
  12899. :
  12900. else
  12901. # We have old collect2
  12902. hardcode_direct_CXX=unsupported
  12903. # It fails to find uninstalled libraries when the uninstalled
  12904. # path is not listed in the libpath. Setting hardcode_minus_L
  12905. # to unsupported forces relinking
  12906. hardcode_minus_L_CXX=yes
  12907. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12908. hardcode_libdir_separator_CXX=
  12909. fi
  12910. esac
  12911. shared_flag='-shared'
  12912. if test yes = "$aix_use_runtimelinking"; then
  12913. shared_flag=$shared_flag' $wl-G'
  12914. fi
  12915. # Need to ensure runtime linking is disabled for the traditional
  12916. # shared library, or the linker may eventually find shared libraries
  12917. # /with/ Import File - we do not want to mix them.
  12918. shared_flag_aix='-shared'
  12919. shared_flag_svr4='-shared $wl-G'
  12920. else
  12921. # not using gcc
  12922. if test ia64 = "$host_cpu"; then
  12923. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12924. # chokes on -Wl,-G. The following line is correct:
  12925. shared_flag='-G'
  12926. else
  12927. if test yes = "$aix_use_runtimelinking"; then
  12928. shared_flag='$wl-G'
  12929. else
  12930. shared_flag='$wl-bM:SRE'
  12931. fi
  12932. shared_flag_aix='$wl-bM:SRE'
  12933. shared_flag_svr4='$wl-G'
  12934. fi
  12935. fi
  12936. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12937. # It seems that -bexpall does not export symbols beginning with
  12938. # underscore (_), so it is better to generate a list of symbols to
  12939. # export.
  12940. always_export_symbols_CXX=yes
  12941. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12942. # Warning - without using the other runtime loading flags (-brtl),
  12943. # -berok will link without error, but may produce a broken library.
  12944. # The "-G" linker flag allows undefined symbols.
  12945. no_undefined_flag_CXX='-bernotok'
  12946. # Determine the default libpath from the value encoded in an empty
  12947. # executable.
  12948. if test set = "${lt_cv_aix_libpath+set}"; then
  12949. aix_libpath=$lt_cv_aix_libpath
  12950. else
  12951. if test ${lt_cv_aix_libpath__CXX+y}
  12952. then :
  12953. printf %s "(cached) " >&6
  12954. else $as_nop
  12955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12956. /* end confdefs.h. */
  12957. int
  12958. main (void)
  12959. {
  12960. ;
  12961. return 0;
  12962. }
  12963. _ACEOF
  12964. if ac_fn_cxx_try_link "$LINENO"
  12965. then :
  12966. lt_aix_libpath_sed='
  12967. /Import File Strings/,/^$/ {
  12968. /^0/ {
  12969. s/^0 *\([^ ]*\) *$/\1/
  12970. p
  12971. }
  12972. }'
  12973. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12974. # Check for a 64-bit object if we didn't find anything.
  12975. if test -z "$lt_cv_aix_libpath__CXX"; then
  12976. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12977. fi
  12978. fi
  12979. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12980. conftest$ac_exeext conftest.$ac_ext
  12981. if test -z "$lt_cv_aix_libpath__CXX"; then
  12982. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12983. fi
  12984. fi
  12985. aix_libpath=$lt_cv_aix_libpath__CXX
  12986. fi
  12987. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12988. 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
  12989. else
  12990. if test ia64 = "$host_cpu"; then
  12991. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12992. allow_undefined_flag_CXX="-z nodefs"
  12993. 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"
  12994. else
  12995. # Determine the default libpath from the value encoded in an
  12996. # empty executable.
  12997. if test set = "${lt_cv_aix_libpath+set}"; then
  12998. aix_libpath=$lt_cv_aix_libpath
  12999. else
  13000. if test ${lt_cv_aix_libpath__CXX+y}
  13001. then :
  13002. printf %s "(cached) " >&6
  13003. else $as_nop
  13004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13005. /* end confdefs.h. */
  13006. int
  13007. main (void)
  13008. {
  13009. ;
  13010. return 0;
  13011. }
  13012. _ACEOF
  13013. if ac_fn_cxx_try_link "$LINENO"
  13014. then :
  13015. lt_aix_libpath_sed='
  13016. /Import File Strings/,/^$/ {
  13017. /^0/ {
  13018. s/^0 *\([^ ]*\) *$/\1/
  13019. p
  13020. }
  13021. }'
  13022. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13023. # Check for a 64-bit object if we didn't find anything.
  13024. if test -z "$lt_cv_aix_libpath__CXX"; then
  13025. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13026. fi
  13027. fi
  13028. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13029. conftest$ac_exeext conftest.$ac_ext
  13030. if test -z "$lt_cv_aix_libpath__CXX"; then
  13031. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13032. fi
  13033. fi
  13034. aix_libpath=$lt_cv_aix_libpath__CXX
  13035. fi
  13036. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13037. # Warning - without using the other run time loading flags,
  13038. # -berok will link without error, but may produce a broken library.
  13039. no_undefined_flag_CXX=' $wl-bernotok'
  13040. allow_undefined_flag_CXX=' $wl-berok'
  13041. if test yes = "$with_gnu_ld"; then
  13042. # We only use this code for GNU lds that support --whole-archive.
  13043. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13044. else
  13045. # Exported symbols can be pulled into shared objects from archives
  13046. whole_archive_flag_spec_CXX='$convenience'
  13047. fi
  13048. archive_cmds_need_lc_CXX=yes
  13049. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13050. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13051. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13052. if test svr4 != "$with_aix_soname"; then
  13053. # This is similar to how AIX traditionally builds its shared
  13054. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13055. 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'
  13056. fi
  13057. if test aix != "$with_aix_soname"; then
  13058. 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'
  13059. else
  13060. # used by -dlpreopen to get the symbols
  13061. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13062. fi
  13063. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13064. fi
  13065. fi
  13066. ;;
  13067. beos*)
  13068. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13069. allow_undefined_flag_CXX=unsupported
  13070. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13071. # support --undefined. This deserves some investigation. FIXME
  13072. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13073. else
  13074. ld_shlibs_CXX=no
  13075. fi
  13076. ;;
  13077. chorus*)
  13078. case $cc_basename in
  13079. *)
  13080. # FIXME: insert proper C++ library support
  13081. ld_shlibs_CXX=no
  13082. ;;
  13083. esac
  13084. ;;
  13085. cygwin* | mingw* | windows* | pw32* | cegcc*)
  13086. case $GXX,$cc_basename in
  13087. ,cl* | no,cl* | ,icl* | no,icl*)
  13088. # Native MSVC or ICC
  13089. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13090. # no search path for DLLs.
  13091. hardcode_libdir_flag_spec_CXX=' '
  13092. allow_undefined_flag_CXX=unsupported
  13093. always_export_symbols_CXX=yes
  13094. file_list_spec_CXX='@'
  13095. # Tell ltmain to make .lib files, not .a files.
  13096. libext=lib
  13097. # Tell ltmain to make .dll files, not .so files.
  13098. shrext_cmds=.dll
  13099. # FIXME: Setting linknames here is a bad hack.
  13100. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13101. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13102. cp "$export_symbols" "$output_objdir/$soname.def";
  13103. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13104. else
  13105. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13106. fi~
  13107. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13108. linknames='
  13109. # The linker will not automatically build a static lib if we build a DLL.
  13110. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13111. enable_shared_with_static_runtimes_CXX=yes
  13112. # Don't use ranlib
  13113. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13114. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13115. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13116. case $lt_outputfile in
  13117. *.exe|*.EXE) ;;
  13118. *)
  13119. lt_outputfile=$lt_outputfile.exe
  13120. lt_tool_outputfile=$lt_tool_outputfile.exe
  13121. ;;
  13122. esac~
  13123. func_to_tool_file "$lt_outputfile"~
  13124. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13125. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13126. $RM "$lt_outputfile.manifest";
  13127. fi'
  13128. ;;
  13129. *)
  13130. # g++
  13131. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13132. # as there is no search path for DLLs.
  13133. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13134. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13135. allow_undefined_flag_CXX=unsupported
  13136. always_export_symbols_CXX=no
  13137. enable_shared_with_static_runtimes_CXX=yes
  13138. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13139. 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'
  13140. # If the export-symbols file already is a .def file, use it as
  13141. # is; otherwise, prepend EXPORTS...
  13142. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13143. cp $export_symbols $output_objdir/$soname.def;
  13144. else
  13145. echo EXPORTS > $output_objdir/$soname.def;
  13146. cat $export_symbols >> $output_objdir/$soname.def;
  13147. fi~
  13148. $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'
  13149. else
  13150. ld_shlibs_CXX=no
  13151. fi
  13152. ;;
  13153. esac
  13154. ;;
  13155. darwin* | rhapsody*)
  13156. archive_cmds_need_lc_CXX=no
  13157. hardcode_direct_CXX=no
  13158. hardcode_automatic_CXX=yes
  13159. hardcode_shlibpath_var_CXX=unsupported
  13160. if test yes = "$lt_cv_ld_force_load"; then
  13161. 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\"`'
  13162. else
  13163. whole_archive_flag_spec_CXX=''
  13164. fi
  13165. link_all_deplibs_CXX=yes
  13166. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13167. case $cc_basename in
  13168. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13169. *) _lt_dar_can_shared=$GCC ;;
  13170. esac
  13171. if test yes = "$_lt_dar_can_shared"; then
  13172. output_verbose_link_cmd=func_echo_all
  13173. 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"
  13174. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13175. 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"
  13176. 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"
  13177. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13178. 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"
  13179. 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"
  13180. fi
  13181. else
  13182. ld_shlibs_CXX=no
  13183. fi
  13184. ;;
  13185. os2*)
  13186. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13187. hardcode_minus_L_CXX=yes
  13188. allow_undefined_flag_CXX=unsupported
  13189. shrext_cmds=.dll
  13190. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13191. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13192. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13193. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13194. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13195. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13196. emximp -o $lib $output_objdir/$libname.def'
  13197. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13198. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13199. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13200. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13201. prefix_cmds="$SED"~
  13202. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13203. prefix_cmds="$prefix_cmds -e 1d";
  13204. fi~
  13205. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13206. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13207. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13208. emximp -o $lib $output_objdir/$libname.def'
  13209. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13210. enable_shared_with_static_runtimes_CXX=yes
  13211. file_list_spec_CXX='@'
  13212. ;;
  13213. dgux*)
  13214. case $cc_basename in
  13215. ec++*)
  13216. # FIXME: insert proper C++ library support
  13217. ld_shlibs_CXX=no
  13218. ;;
  13219. ghcx*)
  13220. # Green Hills C++ Compiler
  13221. # FIXME: insert proper C++ library support
  13222. ld_shlibs_CXX=no
  13223. ;;
  13224. *)
  13225. # FIXME: insert proper C++ library support
  13226. ld_shlibs_CXX=no
  13227. ;;
  13228. esac
  13229. ;;
  13230. freebsd2.*)
  13231. # C++ shared libraries reported to be fairly broken before
  13232. # switch to ELF
  13233. ld_shlibs_CXX=no
  13234. ;;
  13235. freebsd-elf*)
  13236. archive_cmds_need_lc_CXX=no
  13237. ;;
  13238. freebsd* | dragonfly* | midnightbsd*)
  13239. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13240. # conventions
  13241. ld_shlibs_CXX=yes
  13242. ;;
  13243. haiku*)
  13244. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13245. link_all_deplibs_CXX=yes
  13246. ;;
  13247. hpux9*)
  13248. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13249. hardcode_libdir_separator_CXX=:
  13250. export_dynamic_flag_spec_CXX='$wl-E'
  13251. hardcode_direct_CXX=yes
  13252. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13253. # but as the default
  13254. # location of the library.
  13255. case $cc_basename in
  13256. CC*)
  13257. # FIXME: insert proper C++ library support
  13258. ld_shlibs_CXX=no
  13259. ;;
  13260. aCC*)
  13261. 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'
  13262. # Commands to make compiler produce verbose output that lists
  13263. # what "hidden" libraries, object files and flags are used when
  13264. # linking a shared library.
  13265. #
  13266. # There doesn't appear to be a way to prevent this compiler from
  13267. # explicitly linking system object files so we need to strip them
  13268. # from the output so that they don't get included in the library
  13269. # dependencies.
  13270. 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"'
  13271. ;;
  13272. *)
  13273. if test yes = "$GXX"; then
  13274. 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'
  13275. else
  13276. # FIXME: insert proper C++ library support
  13277. ld_shlibs_CXX=no
  13278. fi
  13279. ;;
  13280. esac
  13281. ;;
  13282. hpux10*|hpux11*)
  13283. if test no = "$with_gnu_ld"; then
  13284. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13285. hardcode_libdir_separator_CXX=:
  13286. case $host_cpu in
  13287. hppa*64*|ia64*)
  13288. ;;
  13289. *)
  13290. export_dynamic_flag_spec_CXX='$wl-E'
  13291. ;;
  13292. esac
  13293. fi
  13294. case $host_cpu in
  13295. hppa*64*|ia64*)
  13296. hardcode_direct_CXX=no
  13297. hardcode_shlibpath_var_CXX=no
  13298. ;;
  13299. *)
  13300. hardcode_direct_CXX=yes
  13301. hardcode_direct_absolute_CXX=yes
  13302. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13303. # but as the default
  13304. # location of the library.
  13305. ;;
  13306. esac
  13307. case $cc_basename in
  13308. CC*)
  13309. # FIXME: insert proper C++ library support
  13310. ld_shlibs_CXX=no
  13311. ;;
  13312. aCC*)
  13313. case $host_cpu in
  13314. hppa*64*)
  13315. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13316. ;;
  13317. ia64*)
  13318. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13319. ;;
  13320. *)
  13321. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13322. ;;
  13323. esac
  13324. # Commands to make compiler produce verbose output that lists
  13325. # what "hidden" libraries, object files and flags are used when
  13326. # linking a shared library.
  13327. #
  13328. # There doesn't appear to be a way to prevent this compiler from
  13329. # explicitly linking system object files so we need to strip them
  13330. # from the output so that they don't get included in the library
  13331. # dependencies.
  13332. 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"'
  13333. ;;
  13334. *)
  13335. if test yes = "$GXX"; then
  13336. if test no = "$with_gnu_ld"; then
  13337. case $host_cpu in
  13338. hppa*64*)
  13339. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13340. ;;
  13341. ia64*)
  13342. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13343. ;;
  13344. *)
  13345. 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'
  13346. ;;
  13347. esac
  13348. fi
  13349. else
  13350. # FIXME: insert proper C++ library support
  13351. ld_shlibs_CXX=no
  13352. fi
  13353. ;;
  13354. esac
  13355. ;;
  13356. interix[3-9]*)
  13357. hardcode_direct_CXX=no
  13358. hardcode_shlibpath_var_CXX=no
  13359. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13360. export_dynamic_flag_spec_CXX='$wl-E'
  13361. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13362. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13363. # default) and relocated if they conflict, which is a slow very memory
  13364. # consuming and fragmenting process. To avoid this, we pick a random,
  13365. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13366. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13367. 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'
  13368. 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'
  13369. ;;
  13370. irix5* | irix6*)
  13371. case $cc_basename in
  13372. CC*)
  13373. # SGI C++
  13374. 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'
  13375. # Archives containing C++ object files must be created using
  13376. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13377. # necessary to make sure instantiated templates are included
  13378. # in the archive.
  13379. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13380. ;;
  13381. *)
  13382. if test yes = "$GXX"; then
  13383. if test no = "$with_gnu_ld"; then
  13384. 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'
  13385. else
  13386. 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'
  13387. fi
  13388. fi
  13389. link_all_deplibs_CXX=yes
  13390. ;;
  13391. esac
  13392. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13393. hardcode_libdir_separator_CXX=:
  13394. inherit_rpath_CXX=yes
  13395. ;;
  13396. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13397. case $cc_basename in
  13398. KCC*)
  13399. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13400. # KCC will only create a shared library if the output file
  13401. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13402. # to its proper name (with version) after linking.
  13403. 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'
  13404. 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'
  13405. # Commands to make compiler produce verbose output that lists
  13406. # what "hidden" libraries, object files and flags are used when
  13407. # linking a shared library.
  13408. #
  13409. # There doesn't appear to be a way to prevent this compiler from
  13410. # explicitly linking system object files so we need to strip them
  13411. # from the output so that they don't get included in the library
  13412. # dependencies.
  13413. 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"'
  13414. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13415. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13416. # Archives containing C++ object files must be created using
  13417. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13418. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13419. ;;
  13420. icpc* | ecpc* )
  13421. # Intel C++
  13422. with_gnu_ld=yes
  13423. # version 8.0 and above of icpc choke on multiply defined symbols
  13424. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13425. # earlier do not add the objects themselves.
  13426. case `$CC -V 2>&1` in
  13427. *"Version 7."*)
  13428. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13429. 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'
  13430. ;;
  13431. *) # Version 8.0 or newer
  13432. tmp_idyn=
  13433. case $host_cpu in
  13434. ia64*) tmp_idyn=' -i_dynamic';;
  13435. esac
  13436. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13437. 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'
  13438. ;;
  13439. esac
  13440. archive_cmds_need_lc_CXX=no
  13441. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13442. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13443. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13444. ;;
  13445. pgCC* | pgcpp*)
  13446. # Portland Group C++ compiler
  13447. case `$CC -V` in
  13448. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13449. prelink_cmds_CXX='tpldir=Template.dir~
  13450. rm -rf $tpldir~
  13451. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13452. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13453. old_archive_cmds_CXX='tpldir=Template.dir~
  13454. rm -rf $tpldir~
  13455. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13456. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13457. $RANLIB $oldlib'
  13458. archive_cmds_CXX='tpldir=Template.dir~
  13459. rm -rf $tpldir~
  13460. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13461. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13462. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13463. rm -rf $tpldir~
  13464. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13465. $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'
  13466. ;;
  13467. *) # Version 6 and above use weak symbols
  13468. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13469. 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'
  13470. ;;
  13471. esac
  13472. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13473. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13474. 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'
  13475. ;;
  13476. cxx*)
  13477. # Compaq C++
  13478. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13479. 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'
  13480. runpath_var=LD_RUN_PATH
  13481. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13482. hardcode_libdir_separator_CXX=:
  13483. # Commands to make compiler produce verbose output that lists
  13484. # what "hidden" libraries, object files and flags are used when
  13485. # linking a shared library.
  13486. #
  13487. # There doesn't appear to be a way to prevent this compiler from
  13488. # explicitly linking system object files so we need to strip them
  13489. # from the output so that they don't get included in the library
  13490. # dependencies.
  13491. 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'
  13492. ;;
  13493. xl* | mpixl* | bgxl*)
  13494. # IBM XL 8.0 on PPC, with GNU ld
  13495. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13496. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13497. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13498. if test yes = "$supports_anon_versioning"; then
  13499. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13500. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13501. echo "local: *; };" >> $output_objdir/$libname.ver~
  13502. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13503. fi
  13504. ;;
  13505. *)
  13506. case `$CC -V 2>&1 | sed 5q` in
  13507. *Sun\ C*)
  13508. # Sun C++ 5.9
  13509. no_undefined_flag_CXX=' -zdefs'
  13510. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13511. 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'
  13512. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13513. 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'
  13514. compiler_needs_object_CXX=yes
  13515. # Not sure whether something based on
  13516. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13517. # would be better.
  13518. output_verbose_link_cmd='func_echo_all'
  13519. # Archives containing C++ object files must be created using
  13520. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13521. # necessary to make sure instantiated templates are included
  13522. # in the archive.
  13523. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13524. ;;
  13525. esac
  13526. ;;
  13527. esac
  13528. ;;
  13529. lynxos*)
  13530. # FIXME: insert proper C++ library support
  13531. ld_shlibs_CXX=no
  13532. ;;
  13533. m88k*)
  13534. # FIXME: insert proper C++ library support
  13535. ld_shlibs_CXX=no
  13536. ;;
  13537. mvs*)
  13538. case $cc_basename in
  13539. cxx*)
  13540. # FIXME: insert proper C++ library support
  13541. ld_shlibs_CXX=no
  13542. ;;
  13543. *)
  13544. # FIXME: insert proper C++ library support
  13545. ld_shlibs_CXX=no
  13546. ;;
  13547. esac
  13548. ;;
  13549. netbsd*)
  13550. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13551. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13552. wlarc=
  13553. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13554. hardcode_direct_CXX=yes
  13555. hardcode_shlibpath_var_CXX=no
  13556. fi
  13557. # Workaround some broken pre-1.5 toolchains
  13558. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13559. ;;
  13560. *nto* | *qnx*)
  13561. ld_shlibs_CXX=yes
  13562. ;;
  13563. openbsd* | bitrig*)
  13564. if test -f /usr/libexec/ld.so; then
  13565. hardcode_direct_CXX=yes
  13566. hardcode_shlibpath_var_CXX=no
  13567. hardcode_direct_absolute_CXX=yes
  13568. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13569. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13570. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13571. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13572. export_dynamic_flag_spec_CXX='$wl-E'
  13573. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13574. fi
  13575. output_verbose_link_cmd=func_echo_all
  13576. else
  13577. ld_shlibs_CXX=no
  13578. fi
  13579. ;;
  13580. osf3* | osf4* | osf5*)
  13581. case $cc_basename in
  13582. KCC*)
  13583. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13584. # KCC will only create a shared library if the output file
  13585. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13586. # to its proper name (with version) after linking.
  13587. 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'
  13588. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13589. hardcode_libdir_separator_CXX=:
  13590. # Archives containing C++ object files must be created using
  13591. # the KAI C++ compiler.
  13592. case $host in
  13593. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13594. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13595. esac
  13596. ;;
  13597. RCC*)
  13598. # Rational C++ 2.4.1
  13599. # FIXME: insert proper C++ library support
  13600. ld_shlibs_CXX=no
  13601. ;;
  13602. cxx*)
  13603. case $host in
  13604. osf3*)
  13605. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13606. 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'
  13607. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13608. ;;
  13609. *)
  13610. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13611. 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'
  13612. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13613. echo "-hidden">> $lib.exp~
  13614. $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~
  13615. $RM $lib.exp'
  13616. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13617. ;;
  13618. esac
  13619. hardcode_libdir_separator_CXX=:
  13620. # Commands to make compiler produce verbose output that lists
  13621. # what "hidden" libraries, object files and flags are used when
  13622. # linking a shared library.
  13623. #
  13624. # There doesn't appear to be a way to prevent this compiler from
  13625. # explicitly linking system object files so we need to strip them
  13626. # from the output so that they don't get included in the library
  13627. # dependencies.
  13628. 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"'
  13629. ;;
  13630. *)
  13631. if test yes,no = "$GXX,$with_gnu_ld"; then
  13632. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13633. case $host in
  13634. osf3*)
  13635. 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'
  13636. ;;
  13637. *)
  13638. 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'
  13639. ;;
  13640. esac
  13641. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13642. hardcode_libdir_separator_CXX=:
  13643. # Commands to make compiler produce verbose output that lists
  13644. # what "hidden" libraries, object files and flags are used when
  13645. # linking a shared library.
  13646. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13647. else
  13648. # FIXME: insert proper C++ library support
  13649. ld_shlibs_CXX=no
  13650. fi
  13651. ;;
  13652. esac
  13653. ;;
  13654. psos*)
  13655. # FIXME: insert proper C++ library support
  13656. ld_shlibs_CXX=no
  13657. ;;
  13658. sunos4*)
  13659. case $cc_basename in
  13660. CC*)
  13661. # Sun C++ 4.x
  13662. # FIXME: insert proper C++ library support
  13663. ld_shlibs_CXX=no
  13664. ;;
  13665. lcc*)
  13666. # Lucid
  13667. # FIXME: insert proper C++ library support
  13668. ld_shlibs_CXX=no
  13669. ;;
  13670. *)
  13671. # FIXME: insert proper C++ library support
  13672. ld_shlibs_CXX=no
  13673. ;;
  13674. esac
  13675. ;;
  13676. solaris*)
  13677. case $cc_basename in
  13678. CC* | sunCC*)
  13679. # Sun C++ 4.2, 5.x and Centerline C++
  13680. archive_cmds_need_lc_CXX=yes
  13681. no_undefined_flag_CXX=' -zdefs'
  13682. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13683. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13684. $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'
  13685. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13686. hardcode_shlibpath_var_CXX=no
  13687. case $host_os in
  13688. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13689. *)
  13690. # The compiler driver will combine and reorder linker options,
  13691. # but understands '-z linker_flag'.
  13692. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13693. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13694. ;;
  13695. esac
  13696. link_all_deplibs_CXX=yes
  13697. output_verbose_link_cmd='func_echo_all'
  13698. # Archives containing C++ object files must be created using
  13699. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13700. # necessary to make sure instantiated templates are included
  13701. # in the archive.
  13702. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13703. ;;
  13704. gcx*)
  13705. # Green Hills C++ Compiler
  13706. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13707. # The C++ compiler must be used to create the archive.
  13708. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13709. ;;
  13710. *)
  13711. # GNU C++ compiler with Solaris linker
  13712. if test yes,no = "$GXX,$with_gnu_ld"; then
  13713. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13714. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13715. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13716. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13717. $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'
  13718. # Commands to make compiler produce verbose output that lists
  13719. # what "hidden" libraries, object files and flags are used when
  13720. # linking a shared library.
  13721. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13722. else
  13723. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13724. # platform.
  13725. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13726. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13727. $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'
  13728. # Commands to make compiler produce verbose output that lists
  13729. # what "hidden" libraries, object files and flags are used when
  13730. # linking a shared library.
  13731. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13732. fi
  13733. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13734. case $host_os in
  13735. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13736. *)
  13737. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13738. ;;
  13739. esac
  13740. fi
  13741. ;;
  13742. esac
  13743. ;;
  13744. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13745. no_undefined_flag_CXX='$wl-z,text'
  13746. archive_cmds_need_lc_CXX=no
  13747. hardcode_shlibpath_var_CXX=no
  13748. runpath_var='LD_RUN_PATH'
  13749. case $cc_basename in
  13750. CC*)
  13751. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13752. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13753. ;;
  13754. *)
  13755. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13756. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13757. ;;
  13758. esac
  13759. ;;
  13760. sysv5* | sco3.2v5* | sco5v6*)
  13761. # Note: We CANNOT use -z defs as we might desire, because we do not
  13762. # link with -lc, and that would cause any symbols used from libc to
  13763. # always be unresolved, which means just about no library would
  13764. # ever link correctly. If we're not using GNU ld we use -z text
  13765. # though, which does catch some bad symbols but isn't as heavy-handed
  13766. # as -z defs.
  13767. no_undefined_flag_CXX='$wl-z,text'
  13768. allow_undefined_flag_CXX='$wl-z,nodefs'
  13769. archive_cmds_need_lc_CXX=no
  13770. hardcode_shlibpath_var_CXX=no
  13771. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13772. hardcode_libdir_separator_CXX=':'
  13773. link_all_deplibs_CXX=yes
  13774. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13775. runpath_var='LD_RUN_PATH'
  13776. case $cc_basename in
  13777. CC*)
  13778. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13779. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13780. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13781. '"$old_archive_cmds_CXX"
  13782. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13783. '"$reload_cmds_CXX"
  13784. ;;
  13785. *)
  13786. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13787. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13788. ;;
  13789. esac
  13790. ;;
  13791. tandem*)
  13792. case $cc_basename in
  13793. NCC*)
  13794. # NonStop-UX NCC 3.20
  13795. # FIXME: insert proper C++ library support
  13796. ld_shlibs_CXX=no
  13797. ;;
  13798. *)
  13799. # FIXME: insert proper C++ library support
  13800. ld_shlibs_CXX=no
  13801. ;;
  13802. esac
  13803. ;;
  13804. vxworks*)
  13805. # FIXME: insert proper C++ library support
  13806. ld_shlibs_CXX=no
  13807. ;;
  13808. *)
  13809. # FIXME: insert proper C++ library support
  13810. ld_shlibs_CXX=no
  13811. ;;
  13812. esac
  13813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13814. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13815. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13816. GCC_CXX=$GXX
  13817. LD_CXX=$LD
  13818. ## CAVEAT EMPTOR:
  13819. ## There is no encapsulation within the following macros, do not change
  13820. ## the running order or otherwise move them around unless you know exactly
  13821. ## what you are doing...
  13822. # Dependencies to place before and after the object being linked:
  13823. predep_objects_CXX=
  13824. postdep_objects_CXX=
  13825. predeps_CXX=
  13826. postdeps_CXX=
  13827. compiler_lib_search_path_CXX=
  13828. cat > conftest.$ac_ext <<_LT_EOF
  13829. class Foo
  13830. {
  13831. public:
  13832. Foo (void) { a = 0; }
  13833. private:
  13834. int a;
  13835. };
  13836. _LT_EOF
  13837. _lt_libdeps_save_CFLAGS=$CFLAGS
  13838. case "$CC $CFLAGS " in #(
  13839. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13840. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13841. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13842. esac
  13843. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13844. (eval $ac_compile) 2>&5
  13845. ac_status=$?
  13846. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13847. test $ac_status = 0; }; then
  13848. # Parse the compiler output and extract the necessary
  13849. # objects, libraries and library flags.
  13850. # Sentinel used to keep track of whether or not we are before
  13851. # the conftest object file.
  13852. pre_test_object_deps_done=no
  13853. for p in `eval "$output_verbose_link_cmd"`; do
  13854. case $prev$p in
  13855. -L* | -R* | -l*)
  13856. # Some compilers place space between "-{L,R}" and the path.
  13857. # Remove the space.
  13858. if test x-L = "x$p" ||
  13859. test x-R = "x$p" ||
  13860. test x-l = "x$p"; then
  13861. prev=$p
  13862. continue
  13863. fi
  13864. # Expand the sysroot to ease extracting the directories later.
  13865. if test -z "$prev"; then
  13866. case $p in
  13867. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13868. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13869. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13870. esac
  13871. fi
  13872. case $p in
  13873. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13874. esac
  13875. if test no = "$pre_test_object_deps_done"; then
  13876. case $prev in
  13877. -L | -R)
  13878. # Internal compiler library paths should come after those
  13879. # provided the user. The postdeps already come after the
  13880. # user supplied libs so there is no need to process them.
  13881. if test -z "$compiler_lib_search_path_CXX"; then
  13882. compiler_lib_search_path_CXX=$prev$p
  13883. else
  13884. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13885. fi
  13886. ;;
  13887. # The "-l" case would never come before the object being
  13888. # linked, so don't bother handling this case.
  13889. esac
  13890. else
  13891. if test -z "$postdeps_CXX"; then
  13892. postdeps_CXX=$prev$p
  13893. else
  13894. postdeps_CXX="${postdeps_CXX} $prev$p"
  13895. fi
  13896. fi
  13897. prev=
  13898. ;;
  13899. *.lto.$objext) ;; # Ignore GCC LTO objects
  13900. *.$objext)
  13901. # This assumes that the test object file only shows up
  13902. # once in the compiler output.
  13903. if test "$p" = "conftest.$objext"; then
  13904. pre_test_object_deps_done=yes
  13905. continue
  13906. fi
  13907. if test no = "$pre_test_object_deps_done"; then
  13908. if test -z "$predep_objects_CXX"; then
  13909. predep_objects_CXX=$p
  13910. else
  13911. predep_objects_CXX="$predep_objects_CXX $p"
  13912. fi
  13913. else
  13914. if test -z "$postdep_objects_CXX"; then
  13915. postdep_objects_CXX=$p
  13916. else
  13917. postdep_objects_CXX="$postdep_objects_CXX $p"
  13918. fi
  13919. fi
  13920. ;;
  13921. *) ;; # Ignore the rest.
  13922. esac
  13923. done
  13924. # Clean up.
  13925. rm -f a.out a.exe
  13926. else
  13927. echo "libtool.m4: error: problem compiling CXX test program"
  13928. fi
  13929. $RM -f confest.$objext
  13930. CFLAGS=$_lt_libdeps_save_CFLAGS
  13931. # PORTME: override above test on systems where it is broken
  13932. case $host_os in
  13933. interix[3-9]*)
  13934. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13935. # hack all around it, let's just trust "g++" to DTRT.
  13936. predep_objects_CXX=
  13937. postdep_objects_CXX=
  13938. postdeps_CXX=
  13939. ;;
  13940. esac
  13941. case " $postdeps_CXX " in
  13942. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13943. esac
  13944. compiler_lib_search_dirs_CXX=
  13945. if test -n "${compiler_lib_search_path_CXX}"; then
  13946. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13947. fi
  13948. lt_prog_compiler_wl_CXX=
  13949. lt_prog_compiler_pic_CXX=
  13950. lt_prog_compiler_static_CXX=
  13951. # C++ specific cases for pic, static, wl, etc.
  13952. if test yes = "$GXX"; then
  13953. lt_prog_compiler_wl_CXX='-Wl,'
  13954. lt_prog_compiler_static_CXX='-static'
  13955. case $host_os in
  13956. aix*)
  13957. # All AIX code is PIC.
  13958. if test ia64 = "$host_cpu"; then
  13959. # AIX 5 now supports IA64 processor
  13960. lt_prog_compiler_static_CXX='-Bstatic'
  13961. fi
  13962. lt_prog_compiler_pic_CXX='-fPIC'
  13963. ;;
  13964. amigaos*)
  13965. case $host_cpu in
  13966. powerpc)
  13967. # see comment about AmigaOS4 .so support
  13968. lt_prog_compiler_pic_CXX='-fPIC'
  13969. ;;
  13970. m68k)
  13971. # FIXME: we need at least 68020 code to build shared libraries, but
  13972. # adding the '-m68020' flag to GCC prevents building anything better,
  13973. # like '-m68040'.
  13974. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13975. ;;
  13976. esac
  13977. ;;
  13978. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13979. # PIC is the default for these OSes.
  13980. ;;
  13981. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  13982. # This hack is so that the source file can tell whether it is being
  13983. # built for inclusion in a dll (and should export symbols for example).
  13984. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13985. # (--disable-auto-import) libraries
  13986. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13987. case $host_os in
  13988. os2*)
  13989. lt_prog_compiler_static_CXX='$wl-static'
  13990. ;;
  13991. esac
  13992. ;;
  13993. darwin* | rhapsody*)
  13994. # PIC is the default on this platform
  13995. # Common symbols not allowed in MH_DYLIB files
  13996. lt_prog_compiler_pic_CXX='-fno-common'
  13997. ;;
  13998. *djgpp*)
  13999. # DJGPP does not support shared libraries at all
  14000. lt_prog_compiler_pic_CXX=
  14001. ;;
  14002. haiku*)
  14003. # PIC is the default for Haiku.
  14004. # The "-static" flag exists, but is broken.
  14005. lt_prog_compiler_static_CXX=
  14006. ;;
  14007. interix[3-9]*)
  14008. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14009. # Instead, we relocate shared libraries at runtime.
  14010. ;;
  14011. sysv4*MP*)
  14012. if test -d /usr/nec; then
  14013. lt_prog_compiler_pic_CXX=-Kconform_pic
  14014. fi
  14015. ;;
  14016. hpux*)
  14017. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14018. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14019. # sets the default TLS model and affects inlining.
  14020. case $host_cpu in
  14021. hppa*64*)
  14022. ;;
  14023. *)
  14024. lt_prog_compiler_pic_CXX='-fPIC'
  14025. ;;
  14026. esac
  14027. ;;
  14028. *qnx* | *nto*)
  14029. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14030. # it will coredump.
  14031. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14032. ;;
  14033. *)
  14034. lt_prog_compiler_pic_CXX='-fPIC'
  14035. ;;
  14036. esac
  14037. else
  14038. case $host_os in
  14039. aix[4-9]*)
  14040. # All AIX code is PIC.
  14041. if test ia64 = "$host_cpu"; then
  14042. # AIX 5 now supports IA64 processor
  14043. lt_prog_compiler_static_CXX='-Bstatic'
  14044. else
  14045. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14046. fi
  14047. ;;
  14048. chorus*)
  14049. case $cc_basename in
  14050. cxch68*)
  14051. # Green Hills C++ Compiler
  14052. # _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"
  14053. ;;
  14054. esac
  14055. ;;
  14056. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  14057. # This hack is so that the source file can tell whether it is being
  14058. # built for inclusion in a dll (and should export symbols for example).
  14059. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14060. ;;
  14061. dgux*)
  14062. case $cc_basename in
  14063. ec++*)
  14064. lt_prog_compiler_pic_CXX='-KPIC'
  14065. ;;
  14066. ghcx*)
  14067. # Green Hills C++ Compiler
  14068. lt_prog_compiler_pic_CXX='-pic'
  14069. ;;
  14070. *)
  14071. ;;
  14072. esac
  14073. ;;
  14074. freebsd* | dragonfly* | midnightbsd*)
  14075. # FreeBSD uses GNU C++
  14076. ;;
  14077. hpux9* | hpux10* | hpux11*)
  14078. case $cc_basename in
  14079. CC*)
  14080. lt_prog_compiler_wl_CXX='-Wl,'
  14081. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14082. if test ia64 != "$host_cpu"; then
  14083. lt_prog_compiler_pic_CXX='+Z'
  14084. fi
  14085. ;;
  14086. aCC*)
  14087. lt_prog_compiler_wl_CXX='-Wl,'
  14088. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14089. case $host_cpu in
  14090. hppa*64*|ia64*)
  14091. # +Z the default
  14092. ;;
  14093. *)
  14094. lt_prog_compiler_pic_CXX='+Z'
  14095. ;;
  14096. esac
  14097. ;;
  14098. *)
  14099. ;;
  14100. esac
  14101. ;;
  14102. interix*)
  14103. # This is c89, which is MS Visual C++ (no shared libs)
  14104. # Anyone wants to do a port?
  14105. ;;
  14106. irix5* | irix6* | nonstopux*)
  14107. case $cc_basename in
  14108. CC*)
  14109. lt_prog_compiler_wl_CXX='-Wl,'
  14110. lt_prog_compiler_static_CXX='-non_shared'
  14111. # CC pic flag -KPIC is the default.
  14112. ;;
  14113. *)
  14114. ;;
  14115. esac
  14116. ;;
  14117. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14118. case $cc_basename in
  14119. KCC*)
  14120. # KAI C++ Compiler
  14121. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14122. lt_prog_compiler_pic_CXX='-fPIC'
  14123. ;;
  14124. ecpc* )
  14125. # old Intel C++ for x86_64, which still supported -KPIC.
  14126. lt_prog_compiler_wl_CXX='-Wl,'
  14127. lt_prog_compiler_pic_CXX='-KPIC'
  14128. lt_prog_compiler_static_CXX='-static'
  14129. ;;
  14130. icpc* )
  14131. # Intel C++, used to be incompatible with GCC.
  14132. # ICC 10 doesn't accept -KPIC any more.
  14133. lt_prog_compiler_wl_CXX='-Wl,'
  14134. lt_prog_compiler_pic_CXX='-fPIC'
  14135. lt_prog_compiler_static_CXX='-static'
  14136. ;;
  14137. pgCC* | pgcpp*)
  14138. # Portland Group C++ compiler
  14139. lt_prog_compiler_wl_CXX='-Wl,'
  14140. lt_prog_compiler_pic_CXX='-fpic'
  14141. lt_prog_compiler_static_CXX='-Bstatic'
  14142. ;;
  14143. cxx*)
  14144. # Compaq C++
  14145. # Make sure the PIC flag is empty. It appears that all Alpha
  14146. # Linux and Compaq Tru64 Unix objects are PIC.
  14147. lt_prog_compiler_pic_CXX=
  14148. lt_prog_compiler_static_CXX='-non_shared'
  14149. ;;
  14150. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14151. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14152. lt_prog_compiler_wl_CXX='-Wl,'
  14153. lt_prog_compiler_pic_CXX='-qpic'
  14154. lt_prog_compiler_static_CXX='-qstaticlink'
  14155. ;;
  14156. *)
  14157. case `$CC -V 2>&1 | sed 5q` in
  14158. *Sun\ C*)
  14159. # Sun C++ 5.9
  14160. lt_prog_compiler_pic_CXX='-KPIC'
  14161. lt_prog_compiler_static_CXX='-Bstatic'
  14162. lt_prog_compiler_wl_CXX='-Qoption ld '
  14163. ;;
  14164. esac
  14165. ;;
  14166. esac
  14167. ;;
  14168. lynxos*)
  14169. ;;
  14170. m88k*)
  14171. ;;
  14172. mvs*)
  14173. case $cc_basename in
  14174. cxx*)
  14175. lt_prog_compiler_pic_CXX='-W c,exportall'
  14176. ;;
  14177. *)
  14178. ;;
  14179. esac
  14180. ;;
  14181. netbsd*)
  14182. ;;
  14183. *qnx* | *nto*)
  14184. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14185. # it will coredump.
  14186. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14187. ;;
  14188. osf3* | osf4* | osf5*)
  14189. case $cc_basename in
  14190. KCC*)
  14191. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14192. ;;
  14193. RCC*)
  14194. # Rational C++ 2.4.1
  14195. lt_prog_compiler_pic_CXX='-pic'
  14196. ;;
  14197. cxx*)
  14198. # Digital/Compaq C++
  14199. lt_prog_compiler_wl_CXX='-Wl,'
  14200. # Make sure the PIC flag is empty. It appears that all Alpha
  14201. # Linux and Compaq Tru64 Unix objects are PIC.
  14202. lt_prog_compiler_pic_CXX=
  14203. lt_prog_compiler_static_CXX='-non_shared'
  14204. ;;
  14205. *)
  14206. ;;
  14207. esac
  14208. ;;
  14209. psos*)
  14210. ;;
  14211. solaris*)
  14212. case $cc_basename in
  14213. CC* | sunCC*)
  14214. # Sun C++ 4.2, 5.x and Centerline C++
  14215. lt_prog_compiler_pic_CXX='-KPIC'
  14216. lt_prog_compiler_static_CXX='-Bstatic'
  14217. lt_prog_compiler_wl_CXX='-Qoption ld '
  14218. ;;
  14219. gcx*)
  14220. # Green Hills C++ Compiler
  14221. lt_prog_compiler_pic_CXX='-PIC'
  14222. ;;
  14223. *)
  14224. ;;
  14225. esac
  14226. ;;
  14227. sunos4*)
  14228. case $cc_basename in
  14229. CC*)
  14230. # Sun C++ 4.x
  14231. lt_prog_compiler_pic_CXX='-pic'
  14232. lt_prog_compiler_static_CXX='-Bstatic'
  14233. ;;
  14234. lcc*)
  14235. # Lucid
  14236. lt_prog_compiler_pic_CXX='-pic'
  14237. ;;
  14238. *)
  14239. ;;
  14240. esac
  14241. ;;
  14242. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14243. case $cc_basename in
  14244. CC*)
  14245. lt_prog_compiler_wl_CXX='-Wl,'
  14246. lt_prog_compiler_pic_CXX='-KPIC'
  14247. lt_prog_compiler_static_CXX='-Bstatic'
  14248. ;;
  14249. esac
  14250. ;;
  14251. tandem*)
  14252. case $cc_basename in
  14253. NCC*)
  14254. # NonStop-UX NCC 3.20
  14255. lt_prog_compiler_pic_CXX='-KPIC'
  14256. ;;
  14257. *)
  14258. ;;
  14259. esac
  14260. ;;
  14261. vxworks*)
  14262. ;;
  14263. *)
  14264. lt_prog_compiler_can_build_shared_CXX=no
  14265. ;;
  14266. esac
  14267. fi
  14268. case $host_os in
  14269. # For platforms that do not support PIC, -DPIC is meaningless:
  14270. *djgpp*)
  14271. lt_prog_compiler_pic_CXX=
  14272. ;;
  14273. *)
  14274. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14275. ;;
  14276. esac
  14277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14278. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14279. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14280. then :
  14281. printf %s "(cached) " >&6
  14282. else $as_nop
  14283. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14284. fi
  14285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14286. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14287. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14288. #
  14289. # Check to make sure the PIC flag actually works.
  14290. #
  14291. if test -n "$lt_prog_compiler_pic_CXX"; then
  14292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14293. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14294. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14295. then :
  14296. printf %s "(cached) " >&6
  14297. else $as_nop
  14298. lt_cv_prog_compiler_pic_works_CXX=no
  14299. ac_outfile=conftest.$ac_objext
  14300. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14301. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14302. # Insert the option either (1) after the last *FLAGS variable, or
  14303. # (2) before a word containing "conftest.", or (3) at the end.
  14304. # Note that $ac_compile itself does not contain backslashes and begins
  14305. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14306. # The option is referenced via a variable to avoid confusing sed.
  14307. lt_compile=`echo "$ac_compile" | $SED \
  14308. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14309. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14310. -e 's:$: $lt_compiler_flag:'`
  14311. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14312. (eval "$lt_compile" 2>conftest.err)
  14313. ac_status=$?
  14314. cat conftest.err >&5
  14315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14316. if (exit $ac_status) && test -s "$ac_outfile"; then
  14317. # The compiler can only warn and ignore the option if not recognized
  14318. # So say no if there are warnings other than the usual output.
  14319. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14320. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14321. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14322. lt_cv_prog_compiler_pic_works_CXX=yes
  14323. fi
  14324. fi
  14325. $RM conftest*
  14326. fi
  14327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14328. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14329. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14330. case $lt_prog_compiler_pic_CXX in
  14331. "" | " "*) ;;
  14332. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14333. esac
  14334. else
  14335. lt_prog_compiler_pic_CXX=
  14336. lt_prog_compiler_can_build_shared_CXX=no
  14337. fi
  14338. fi
  14339. #
  14340. # Check to make sure the static flag actually works.
  14341. #
  14342. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14344. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14345. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14346. then :
  14347. printf %s "(cached) " >&6
  14348. else $as_nop
  14349. lt_cv_prog_compiler_static_works_CXX=no
  14350. save_LDFLAGS=$LDFLAGS
  14351. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14352. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14353. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14354. # The linker can only warn and ignore the option if not recognized
  14355. # So say no if there are warnings
  14356. if test -s conftest.err; then
  14357. # Append any errors to the config.log.
  14358. cat conftest.err 1>&5
  14359. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14360. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14361. if diff conftest.exp conftest.er2 >/dev/null; then
  14362. lt_cv_prog_compiler_static_works_CXX=yes
  14363. fi
  14364. else
  14365. lt_cv_prog_compiler_static_works_CXX=yes
  14366. fi
  14367. fi
  14368. $RM -r conftest*
  14369. LDFLAGS=$save_LDFLAGS
  14370. fi
  14371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14372. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14373. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14374. :
  14375. else
  14376. lt_prog_compiler_static_CXX=
  14377. fi
  14378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14379. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14380. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14381. then :
  14382. printf %s "(cached) " >&6
  14383. else $as_nop
  14384. lt_cv_prog_compiler_c_o_CXX=no
  14385. $RM -r conftest 2>/dev/null
  14386. mkdir conftest
  14387. cd conftest
  14388. mkdir out
  14389. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14390. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14391. # Insert the option either (1) after the last *FLAGS variable, or
  14392. # (2) before a word containing "conftest.", or (3) at the end.
  14393. # Note that $ac_compile itself does not contain backslashes and begins
  14394. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14395. lt_compile=`echo "$ac_compile" | $SED \
  14396. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14397. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14398. -e 's:$: $lt_compiler_flag:'`
  14399. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14400. (eval "$lt_compile" 2>out/conftest.err)
  14401. ac_status=$?
  14402. cat out/conftest.err >&5
  14403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14404. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14405. then
  14406. # The compiler can only warn and ignore the option if not recognized
  14407. # So say no if there are warnings
  14408. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14409. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14410. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14411. lt_cv_prog_compiler_c_o_CXX=yes
  14412. fi
  14413. fi
  14414. chmod u+w . 2>&5
  14415. $RM conftest*
  14416. # SGI C++ compiler will create directory out/ii_files/ for
  14417. # template instantiation
  14418. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14419. $RM out/* && rmdir out
  14420. cd ..
  14421. $RM -r conftest
  14422. $RM conftest*
  14423. fi
  14424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14425. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14427. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14428. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14429. then :
  14430. printf %s "(cached) " >&6
  14431. else $as_nop
  14432. lt_cv_prog_compiler_c_o_CXX=no
  14433. $RM -r conftest 2>/dev/null
  14434. mkdir conftest
  14435. cd conftest
  14436. mkdir out
  14437. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14438. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14439. # Insert the option either (1) after the last *FLAGS variable, or
  14440. # (2) before a word containing "conftest.", or (3) at the end.
  14441. # Note that $ac_compile itself does not contain backslashes and begins
  14442. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14443. lt_compile=`echo "$ac_compile" | $SED \
  14444. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14445. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14446. -e 's:$: $lt_compiler_flag:'`
  14447. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14448. (eval "$lt_compile" 2>out/conftest.err)
  14449. ac_status=$?
  14450. cat out/conftest.err >&5
  14451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14452. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14453. then
  14454. # The compiler can only warn and ignore the option if not recognized
  14455. # So say no if there are warnings
  14456. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14457. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14458. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14459. lt_cv_prog_compiler_c_o_CXX=yes
  14460. fi
  14461. fi
  14462. chmod u+w . 2>&5
  14463. $RM conftest*
  14464. # SGI C++ compiler will create directory out/ii_files/ for
  14465. # template instantiation
  14466. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14467. $RM out/* && rmdir out
  14468. cd ..
  14469. $RM -r conftest
  14470. $RM conftest*
  14471. fi
  14472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14473. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14474. hard_links=nottested
  14475. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14476. # do not overwrite the value of need_locks provided by the user
  14477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14478. printf %s "checking if we can lock with hard links... " >&6; }
  14479. hard_links=yes
  14480. $RM conftest*
  14481. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14482. touch conftest.a
  14483. ln conftest.a conftest.b 2>&5 || hard_links=no
  14484. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14486. printf "%s\n" "$hard_links" >&6; }
  14487. if test no = "$hard_links"; then
  14488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14489. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14490. need_locks=warn
  14491. fi
  14492. else
  14493. need_locks=no
  14494. fi
  14495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14496. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14497. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14498. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14499. case $host_os in
  14500. aix[4-9]*)
  14501. # If we're using GNU nm, then we don't want the "-C" option.
  14502. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14503. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14504. # weak defined symbols like other global defined symbols, whereas
  14505. # GNU nm marks them as "W".
  14506. # While the 'weak' keyword is ignored in the Export File, we need
  14507. # it in the Import File for the 'aix-soname' feature, so we have
  14508. # to replace the "-B" option with "-P" for AIX nm.
  14509. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14510. 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'
  14511. else
  14512. 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'
  14513. fi
  14514. ;;
  14515. pw32*)
  14516. export_symbols_cmds_CXX=$ltdll_cmds
  14517. ;;
  14518. cygwin* | mingw* | windows* | cegcc*)
  14519. case $cc_basename in
  14520. cl* | icl*)
  14521. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14522. ;;
  14523. *)
  14524. 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'
  14525. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14526. ;;
  14527. esac
  14528. ;;
  14529. *)
  14530. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14531. ;;
  14532. esac
  14533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14534. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14535. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14536. with_gnu_ld_CXX=$with_gnu_ld
  14537. #
  14538. # Do we need to explicitly link libc?
  14539. #
  14540. case "x$archive_cmds_need_lc_CXX" in
  14541. x|xyes)
  14542. # Assume -lc should be added
  14543. archive_cmds_need_lc_CXX=yes
  14544. if test yes,yes = "$GCC,$enable_shared"; then
  14545. case $archive_cmds_CXX in
  14546. *'~'*)
  14547. # FIXME: we may have to deal with multi-command sequences.
  14548. ;;
  14549. '$CC '*)
  14550. # Test whether the compiler implicitly links with -lc since on some
  14551. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14552. # to ld, don't add -lc before -lgcc.
  14553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14554. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14555. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14556. then :
  14557. printf %s "(cached) " >&6
  14558. else $as_nop
  14559. $RM conftest*
  14560. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14561. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14562. (eval $ac_compile) 2>&5
  14563. ac_status=$?
  14564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14565. test $ac_status = 0; } 2>conftest.err; then
  14566. soname=conftest
  14567. lib=conftest
  14568. libobjs=conftest.$ac_objext
  14569. deplibs=
  14570. wl=$lt_prog_compiler_wl_CXX
  14571. pic_flag=$lt_prog_compiler_pic_CXX
  14572. compiler_flags=-v
  14573. linker_flags=-v
  14574. verstring=
  14575. output_objdir=.
  14576. libname=conftest
  14577. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14578. allow_undefined_flag_CXX=
  14579. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14580. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14581. ac_status=$?
  14582. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14583. test $ac_status = 0; }
  14584. then
  14585. lt_cv_archive_cmds_need_lc_CXX=no
  14586. else
  14587. lt_cv_archive_cmds_need_lc_CXX=yes
  14588. fi
  14589. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14590. else
  14591. cat conftest.err 1>&5
  14592. fi
  14593. $RM conftest*
  14594. fi
  14595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14596. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14597. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14598. ;;
  14599. esac
  14600. fi
  14601. ;;
  14602. esac
  14603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14604. printf %s "checking dynamic linker characteristics... " >&6; }
  14605. library_names_spec=
  14606. libname_spec='lib$name'
  14607. soname_spec=
  14608. shrext_cmds=.so
  14609. postinstall_cmds=
  14610. postuninstall_cmds=
  14611. finish_cmds=
  14612. finish_eval=
  14613. shlibpath_var=
  14614. shlibpath_overrides_runpath=unknown
  14615. version_type=none
  14616. dynamic_linker="$host_os ld.so"
  14617. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14618. need_lib_prefix=unknown
  14619. hardcode_into_libs=no
  14620. # when you set need_version to no, make sure it does not cause -set_version
  14621. # flags to be left without arguments
  14622. need_version=unknown
  14623. case $host_os in
  14624. aix3*)
  14625. version_type=linux # correct to gnu/linux during the next big refactor
  14626. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14627. shlibpath_var=LIBPATH
  14628. # AIX 3 has no versioning support, so we append a major version to the name.
  14629. soname_spec='$libname$release$shared_ext$major'
  14630. ;;
  14631. aix[4-9]*)
  14632. version_type=linux # correct to gnu/linux during the next big refactor
  14633. need_lib_prefix=no
  14634. need_version=no
  14635. hardcode_into_libs=yes
  14636. if test ia64 = "$host_cpu"; then
  14637. # AIX 5 supports IA64
  14638. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14639. shlibpath_var=LD_LIBRARY_PATH
  14640. else
  14641. # With GCC up to 2.95.x, collect2 would create an import file
  14642. # for dependence libraries. The import file would start with
  14643. # the line '#! .'. This would cause the generated library to
  14644. # depend on '.', always an invalid library. This was fixed in
  14645. # development snapshots of GCC prior to 3.0.
  14646. case $host_os in
  14647. aix4 | aix4.[01] | aix4.[01].*)
  14648. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14649. echo ' yes '
  14650. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14651. :
  14652. else
  14653. can_build_shared=no
  14654. fi
  14655. ;;
  14656. esac
  14657. # Using Import Files as archive members, it is possible to support
  14658. # filename-based versioning of shared library archives on AIX. While
  14659. # this would work for both with and without runtime linking, it will
  14660. # prevent static linking of such archives. So we do filename-based
  14661. # shared library versioning with .so extension only, which is used
  14662. # when both runtime linking and shared linking is enabled.
  14663. # Unfortunately, runtime linking may impact performance, so we do
  14664. # not want this to be the default eventually. Also, we use the
  14665. # versioned .so libs for executables only if there is the -brtl
  14666. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14667. # To allow for filename-based versioning support, we need to create
  14668. # libNAME.so.V as an archive file, containing:
  14669. # *) an Import File, referring to the versioned filename of the
  14670. # archive as well as the shared archive member, telling the
  14671. # bitwidth (32 or 64) of that shared object, and providing the
  14672. # list of exported symbols of that shared object, eventually
  14673. # decorated with the 'weak' keyword
  14674. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14675. # it being seen by the linker.
  14676. # At run time we better use the real file rather than another symlink,
  14677. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14678. case $with_aix_soname,$aix_use_runtimelinking in
  14679. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14680. # soname into executable. Probably we can add versioning support to
  14681. # collect2, so additional links can be useful in future.
  14682. aix,yes) # traditional libtool
  14683. dynamic_linker='AIX unversionable lib.so'
  14684. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14685. # instead of lib<name>.a to let people know that these are not
  14686. # typical AIX shared libraries.
  14687. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14688. ;;
  14689. aix,no) # traditional AIX only
  14690. dynamic_linker='AIX lib.a(lib.so.V)'
  14691. # We preserve .a as extension for shared libraries through AIX4.2
  14692. # and later when we are not doing run time linking.
  14693. library_names_spec='$libname$release.a $libname.a'
  14694. soname_spec='$libname$release$shared_ext$major'
  14695. ;;
  14696. svr4,*) # full svr4 only
  14697. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14698. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14699. # We do not specify a path in Import Files, so LIBPATH fires.
  14700. shlibpath_overrides_runpath=yes
  14701. ;;
  14702. *,yes) # both, prefer svr4
  14703. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14704. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14705. # unpreferred sharedlib libNAME.a needs extra handling
  14706. 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"'
  14707. 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"'
  14708. # We do not specify a path in Import Files, so LIBPATH fires.
  14709. shlibpath_overrides_runpath=yes
  14710. ;;
  14711. *,no) # both, prefer aix
  14712. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14713. library_names_spec='$libname$release.a $libname.a'
  14714. soname_spec='$libname$release$shared_ext$major'
  14715. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14716. 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)'
  14717. 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"'
  14718. ;;
  14719. esac
  14720. shlibpath_var=LIBPATH
  14721. fi
  14722. ;;
  14723. amigaos*)
  14724. case $host_cpu in
  14725. powerpc)
  14726. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14727. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14728. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14729. ;;
  14730. m68k)
  14731. library_names_spec='$libname.ixlibrary $libname.a'
  14732. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14733. 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'
  14734. ;;
  14735. esac
  14736. ;;
  14737. beos*)
  14738. library_names_spec='$libname$shared_ext'
  14739. dynamic_linker="$host_os ld.so"
  14740. shlibpath_var=LIBRARY_PATH
  14741. ;;
  14742. bsdi[45]*)
  14743. version_type=linux # correct to gnu/linux during the next big refactor
  14744. need_version=no
  14745. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14746. soname_spec='$libname$release$shared_ext$major'
  14747. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14748. shlibpath_var=LD_LIBRARY_PATH
  14749. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14750. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14751. # the default ld.so.conf also contains /usr/contrib/lib and
  14752. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14753. # libtool to hard-code these into programs
  14754. ;;
  14755. cygwin* | mingw* | windows* | pw32* | cegcc*)
  14756. version_type=windows
  14757. shrext_cmds=.dll
  14758. need_version=no
  14759. need_lib_prefix=no
  14760. case $GCC,$cc_basename in
  14761. yes,*)
  14762. # gcc
  14763. library_names_spec='$libname.dll.a'
  14764. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14765. postinstall_cmds='base_file=`basename \$file`~
  14766. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14767. dldir=$destdir/`dirname \$dlpath`~
  14768. test -d \$dldir || mkdir -p \$dldir~
  14769. $install_prog $dir/$dlname \$dldir/$dlname~
  14770. chmod a+x \$dldir/$dlname~
  14771. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14772. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14773. fi'
  14774. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14775. dlpath=$dir/\$dldll~
  14776. $RM \$dlpath'
  14777. shlibpath_overrides_runpath=yes
  14778. case $host_os in
  14779. cygwin*)
  14780. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14781. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14782. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization.
  14783. ;;
  14784. mingw* | windows* | cegcc*)
  14785. # MinGW DLLs use traditional 'lib' prefix
  14786. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14787. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization.
  14788. ;;
  14789. pw32*)
  14790. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14791. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14792. ;;
  14793. esac
  14794. dynamic_linker='Win32 ld.exe'
  14795. ;;
  14796. *,cl* | *,icl*)
  14797. # Native MSVC or ICC
  14798. libname_spec='$name'
  14799. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14800. library_names_spec='$libname.dll.lib'
  14801. case $build_os in
  14802. mingw* | windows*)
  14803. sys_lib_search_path_spec=
  14804. lt_save_ifs=$IFS
  14805. IFS=';'
  14806. for lt_path in $LIB
  14807. do
  14808. IFS=$lt_save_ifs
  14809. # Let DOS variable expansion print the short 8.3 style file name.
  14810. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14811. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14812. done
  14813. IFS=$lt_save_ifs
  14814. # Convert to MSYS style.
  14815. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14816. ;;
  14817. cygwin*)
  14818. # Convert to unix form, then to dos form, then back to unix form
  14819. # but this time dos style (no spaces!) so that the unix form looks
  14820. # like /cygdrive/c/PROGRA~1:/cygdr...
  14821. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14822. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14823. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14824. ;;
  14825. *)
  14826. sys_lib_search_path_spec=$LIB
  14827. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14828. # It is most probably a Windows format PATH.
  14829. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14830. else
  14831. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14832. fi
  14833. # FIXME: find the short name or the path components, as spaces are
  14834. # common. (e.g. "Program Files" -> "PROGRA~1")
  14835. ;;
  14836. esac
  14837. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14838. postinstall_cmds='base_file=`basename \$file`~
  14839. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14840. dldir=$destdir/`dirname \$dlpath`~
  14841. test -d \$dldir || mkdir -p \$dldir~
  14842. $install_prog $dir/$dlname \$dldir/$dlname'
  14843. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14844. dlpath=$dir/\$dldll~
  14845. $RM \$dlpath'
  14846. shlibpath_overrides_runpath=yes
  14847. dynamic_linker='Win32 link.exe'
  14848. ;;
  14849. *)
  14850. # Assume MSVC and ICC wrapper
  14851. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14852. dynamic_linker='Win32 ld.exe'
  14853. ;;
  14854. esac
  14855. # FIXME: first we should search . and the directory the executable is in
  14856. shlibpath_var=PATH
  14857. ;;
  14858. darwin* | rhapsody*)
  14859. dynamic_linker="$host_os dyld"
  14860. version_type=darwin
  14861. need_lib_prefix=no
  14862. need_version=no
  14863. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14864. soname_spec='$libname$release$major$shared_ext'
  14865. shlibpath_overrides_runpath=yes
  14866. shlibpath_var=DYLD_LIBRARY_PATH
  14867. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14868. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14869. ;;
  14870. dgux*)
  14871. version_type=linux # correct to gnu/linux during the next big refactor
  14872. need_lib_prefix=no
  14873. need_version=no
  14874. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14875. soname_spec='$libname$release$shared_ext$major'
  14876. shlibpath_var=LD_LIBRARY_PATH
  14877. ;;
  14878. freebsd* | dragonfly* | midnightbsd*)
  14879. # DragonFly does not have aout. When/if they implement a new
  14880. # versioning mechanism, adjust this.
  14881. if test -x /usr/bin/objformat; then
  14882. objformat=`/usr/bin/objformat`
  14883. else
  14884. case $host_os in
  14885. freebsd[23].*) objformat=aout ;;
  14886. *) objformat=elf ;;
  14887. esac
  14888. fi
  14889. version_type=freebsd-$objformat
  14890. case $version_type in
  14891. freebsd-elf*)
  14892. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14893. soname_spec='$libname$release$shared_ext$major'
  14894. need_version=no
  14895. need_lib_prefix=no
  14896. ;;
  14897. freebsd-*)
  14898. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14899. need_version=yes
  14900. ;;
  14901. esac
  14902. shlibpath_var=LD_LIBRARY_PATH
  14903. case $host_os in
  14904. freebsd2.*)
  14905. shlibpath_overrides_runpath=yes
  14906. ;;
  14907. freebsd3.[01]* | freebsdelf3.[01]*)
  14908. shlibpath_overrides_runpath=yes
  14909. hardcode_into_libs=yes
  14910. ;;
  14911. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14912. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14913. shlibpath_overrides_runpath=no
  14914. hardcode_into_libs=yes
  14915. ;;
  14916. *) # from 4.6 on, and DragonFly
  14917. shlibpath_overrides_runpath=yes
  14918. hardcode_into_libs=yes
  14919. ;;
  14920. esac
  14921. ;;
  14922. haiku*)
  14923. version_type=linux # correct to gnu/linux during the next big refactor
  14924. need_lib_prefix=no
  14925. need_version=no
  14926. dynamic_linker="$host_os runtime_loader"
  14927. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14928. soname_spec='$libname$release$shared_ext$major'
  14929. shlibpath_var=LIBRARY_PATH
  14930. shlibpath_overrides_runpath=no
  14931. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14932. hardcode_into_libs=yes
  14933. ;;
  14934. hpux9* | hpux10* | hpux11*)
  14935. # Give a soname corresponding to the major version so that dld.sl refuses to
  14936. # link against other versions.
  14937. version_type=sunos
  14938. need_lib_prefix=no
  14939. need_version=no
  14940. case $host_cpu in
  14941. ia64*)
  14942. shrext_cmds='.so'
  14943. hardcode_into_libs=yes
  14944. dynamic_linker="$host_os dld.so"
  14945. shlibpath_var=LD_LIBRARY_PATH
  14946. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14947. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14948. soname_spec='$libname$release$shared_ext$major'
  14949. if test 32 = "$HPUX_IA64_MODE"; then
  14950. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14951. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14952. else
  14953. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14954. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14955. fi
  14956. ;;
  14957. hppa*64*)
  14958. shrext_cmds='.sl'
  14959. hardcode_into_libs=yes
  14960. dynamic_linker="$host_os dld.sl"
  14961. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14962. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14963. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14964. soname_spec='$libname$release$shared_ext$major'
  14965. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14966. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14967. ;;
  14968. *)
  14969. shrext_cmds='.sl'
  14970. dynamic_linker="$host_os dld.sl"
  14971. shlibpath_var=SHLIB_PATH
  14972. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14973. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14974. soname_spec='$libname$release$shared_ext$major'
  14975. ;;
  14976. esac
  14977. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14978. postinstall_cmds='chmod 555 $lib'
  14979. # or fails outright, so override atomically:
  14980. install_override_mode=555
  14981. ;;
  14982. interix[3-9]*)
  14983. version_type=linux # correct to gnu/linux during the next big refactor
  14984. need_lib_prefix=no
  14985. need_version=no
  14986. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14987. soname_spec='$libname$release$shared_ext$major'
  14988. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14989. shlibpath_var=LD_LIBRARY_PATH
  14990. shlibpath_overrides_runpath=no
  14991. hardcode_into_libs=yes
  14992. ;;
  14993. irix5* | irix6* | nonstopux*)
  14994. case $host_os in
  14995. nonstopux*) version_type=nonstopux ;;
  14996. *)
  14997. if test yes = "$lt_cv_prog_gnu_ld"; then
  14998. version_type=linux # correct to gnu/linux during the next big refactor
  14999. else
  15000. version_type=irix
  15001. fi ;;
  15002. esac
  15003. need_lib_prefix=no
  15004. need_version=no
  15005. soname_spec='$libname$release$shared_ext$major'
  15006. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  15007. case $host_os in
  15008. irix5* | nonstopux*)
  15009. libsuff= shlibsuff=
  15010. ;;
  15011. *)
  15012. case $LD in # libtool.m4 will add one of these switches to LD
  15013. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15014. libsuff= shlibsuff= libmagic=32-bit;;
  15015. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15016. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15017. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15018. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15019. *) libsuff= shlibsuff= libmagic=never-match;;
  15020. esac
  15021. ;;
  15022. esac
  15023. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15024. shlibpath_overrides_runpath=no
  15025. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  15026. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  15027. hardcode_into_libs=yes
  15028. ;;
  15029. # No shared lib support for Linux oldld, aout, or coff.
  15030. linux*oldld* | linux*aout* | linux*coff*)
  15031. dynamic_linker=no
  15032. ;;
  15033. linux*android*)
  15034. version_type=none # Android doesn't support versioned libraries.
  15035. need_lib_prefix=no
  15036. need_version=no
  15037. library_names_spec='$libname$release$shared_ext'
  15038. soname_spec='$libname$release$shared_ext'
  15039. finish_cmds=
  15040. shlibpath_var=LD_LIBRARY_PATH
  15041. shlibpath_overrides_runpath=yes
  15042. # This implies no fast_install, which is unacceptable.
  15043. # Some rework will be needed to allow for fast_install
  15044. # before this can be enabled.
  15045. hardcode_into_libs=yes
  15046. dynamic_linker='Android linker'
  15047. # Don't embed -rpath directories since the linker doesn't support them.
  15048. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15049. ;;
  15050. # This must be glibc/ELF.
  15051. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15052. version_type=linux # correct to gnu/linux during the next big refactor
  15053. need_lib_prefix=no
  15054. need_version=no
  15055. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15056. soname_spec='$libname$release$shared_ext$major'
  15057. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15058. shlibpath_var=LD_LIBRARY_PATH
  15059. shlibpath_overrides_runpath=no
  15060. # Some binutils ld are patched to set DT_RUNPATH
  15061. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15062. then :
  15063. printf %s "(cached) " >&6
  15064. else $as_nop
  15065. lt_cv_shlibpath_overrides_runpath=no
  15066. save_LDFLAGS=$LDFLAGS
  15067. save_libdir=$libdir
  15068. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15069. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15071. /* end confdefs.h. */
  15072. int
  15073. main (void)
  15074. {
  15075. ;
  15076. return 0;
  15077. }
  15078. _ACEOF
  15079. if ac_fn_cxx_try_link "$LINENO"
  15080. then :
  15081. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15082. then :
  15083. lt_cv_shlibpath_overrides_runpath=yes
  15084. fi
  15085. fi
  15086. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15087. conftest$ac_exeext conftest.$ac_ext
  15088. LDFLAGS=$save_LDFLAGS
  15089. libdir=$save_libdir
  15090. fi
  15091. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15092. # This implies no fast_install, which is unacceptable.
  15093. # Some rework will be needed to allow for fast_install
  15094. # before this can be enabled.
  15095. hardcode_into_libs=yes
  15096. # Add ABI-specific directories to the system library path.
  15097. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15098. # Ideally, we could use ldconfig to report *all* directores which are
  15099. # searched for libraries, however this is still not possible. Aside from not
  15100. # being certain /sbin/ldconfig is available, command
  15101. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15102. # even though it is searched at run-time. Try to do the best guess by
  15103. # appending ld.so.conf contents (and includes) to the search path.
  15104. if test -f /etc/ld.so.conf; then
  15105. 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' ' '`
  15106. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15107. fi
  15108. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15109. # powerpc, because MkLinux only supported shared libraries with the
  15110. # GNU dynamic linker. Since this was broken with cross compilers,
  15111. # most powerpc-linux boxes support dynamic linking these days and
  15112. # people can always --disable-shared, the test was removed, and we
  15113. # assume the GNU/Linux dynamic linker is in use.
  15114. dynamic_linker='GNU/Linux ld.so'
  15115. ;;
  15116. netbsd*)
  15117. version_type=sunos
  15118. need_lib_prefix=no
  15119. need_version=no
  15120. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15121. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15122. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15123. dynamic_linker='NetBSD (a.out) ld.so'
  15124. else
  15125. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15126. soname_spec='$libname$release$shared_ext$major'
  15127. dynamic_linker='NetBSD ld.elf_so'
  15128. fi
  15129. shlibpath_var=LD_LIBRARY_PATH
  15130. shlibpath_overrides_runpath=yes
  15131. hardcode_into_libs=yes
  15132. ;;
  15133. newsos6)
  15134. version_type=linux # correct to gnu/linux during the next big refactor
  15135. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15136. shlibpath_var=LD_LIBRARY_PATH
  15137. shlibpath_overrides_runpath=yes
  15138. ;;
  15139. *nto* | *qnx*)
  15140. version_type=qnx
  15141. need_lib_prefix=no
  15142. need_version=no
  15143. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15144. soname_spec='$libname$release$shared_ext$major'
  15145. shlibpath_var=LD_LIBRARY_PATH
  15146. shlibpath_overrides_runpath=no
  15147. hardcode_into_libs=yes
  15148. dynamic_linker='ldqnx.so'
  15149. ;;
  15150. openbsd* | bitrig*)
  15151. version_type=sunos
  15152. sys_lib_dlsearch_path_spec=/usr/lib
  15153. need_lib_prefix=no
  15154. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15155. need_version=no
  15156. else
  15157. need_version=yes
  15158. fi
  15159. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15160. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15161. shlibpath_var=LD_LIBRARY_PATH
  15162. shlibpath_overrides_runpath=yes
  15163. ;;
  15164. os2*)
  15165. libname_spec='$name'
  15166. shrext_cmds=.dll
  15167. need_lib_prefix=no
  15168. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15169. # SDL customization: removed versioning support.
  15170. # version_type=windows
  15171. # need_version=no
  15172. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15173. # v=$($ECHO $release$versuffix | tr -d .-);
  15174. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15175. # $ECHO $n$v`$shared_ext'
  15176. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15177. library_names_spec='${libname}_dll.$libext'
  15178. dynamic_linker='OS/2 ld.exe'
  15179. shlibpath_var=BEGINLIBPATH
  15180. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15181. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15182. postinstall_cmds='base_file=`basename \$file`~
  15183. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15184. dldir=$destdir/`dirname \$dlpath`~
  15185. test -d \$dldir || mkdir -p \$dldir~
  15186. $install_prog $dir/$dlname \$dldir/$dlname~
  15187. chmod a+x \$dldir/$dlname~
  15188. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15189. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15190. fi'
  15191. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15192. dlpath=$dir/\$dldll~
  15193. $RM \$dlpath'
  15194. ;;
  15195. osf3* | osf4* | osf5*)
  15196. version_type=osf
  15197. need_lib_prefix=no
  15198. need_version=no
  15199. soname_spec='$libname$release$shared_ext$major'
  15200. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15201. shlibpath_var=LD_LIBRARY_PATH
  15202. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15203. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15204. ;;
  15205. rdos*)
  15206. dynamic_linker=no
  15207. ;;
  15208. solaris*)
  15209. version_type=linux # correct to gnu/linux during the next big refactor
  15210. need_lib_prefix=no
  15211. need_version=no
  15212. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15213. soname_spec='$libname$release$shared_ext$major'
  15214. shlibpath_var=LD_LIBRARY_PATH
  15215. shlibpath_overrides_runpath=yes
  15216. hardcode_into_libs=yes
  15217. # ldd complains unless libraries are executable
  15218. postinstall_cmds='chmod +x $lib'
  15219. ;;
  15220. sunos4*)
  15221. version_type=sunos
  15222. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15223. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15224. shlibpath_var=LD_LIBRARY_PATH
  15225. shlibpath_overrides_runpath=yes
  15226. if test yes = "$with_gnu_ld"; then
  15227. need_lib_prefix=no
  15228. fi
  15229. need_version=yes
  15230. ;;
  15231. sysv4 | sysv4.3*)
  15232. version_type=linux # correct to gnu/linux during the next big refactor
  15233. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15234. soname_spec='$libname$release$shared_ext$major'
  15235. shlibpath_var=LD_LIBRARY_PATH
  15236. case $host_vendor in
  15237. sni)
  15238. shlibpath_overrides_runpath=no
  15239. need_lib_prefix=no
  15240. runpath_var=LD_RUN_PATH
  15241. ;;
  15242. siemens)
  15243. need_lib_prefix=no
  15244. ;;
  15245. motorola)
  15246. need_lib_prefix=no
  15247. need_version=no
  15248. shlibpath_overrides_runpath=no
  15249. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15250. ;;
  15251. esac
  15252. ;;
  15253. sysv4*MP*)
  15254. if test -d /usr/nec; then
  15255. version_type=linux # correct to gnu/linux during the next big refactor
  15256. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15257. soname_spec='$libname$shared_ext.$major'
  15258. shlibpath_var=LD_LIBRARY_PATH
  15259. fi
  15260. ;;
  15261. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15262. version_type=sco
  15263. need_lib_prefix=no
  15264. need_version=no
  15265. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15266. soname_spec='$libname$release$shared_ext$major'
  15267. shlibpath_var=LD_LIBRARY_PATH
  15268. shlibpath_overrides_runpath=yes
  15269. hardcode_into_libs=yes
  15270. if test yes = "$with_gnu_ld"; then
  15271. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15272. else
  15273. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15274. case $host_os in
  15275. sco3.2v5*)
  15276. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15277. ;;
  15278. esac
  15279. fi
  15280. sys_lib_dlsearch_path_spec='/usr/lib'
  15281. ;;
  15282. tpf*)
  15283. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15284. version_type=linux # correct to gnu/linux during the next big refactor
  15285. need_lib_prefix=no
  15286. need_version=no
  15287. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15288. shlibpath_var=LD_LIBRARY_PATH
  15289. shlibpath_overrides_runpath=no
  15290. hardcode_into_libs=yes
  15291. ;;
  15292. uts4*)
  15293. version_type=linux # correct to gnu/linux during the next big refactor
  15294. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15295. soname_spec='$libname$release$shared_ext$major'
  15296. shlibpath_var=LD_LIBRARY_PATH
  15297. ;;
  15298. *)
  15299. dynamic_linker=no
  15300. ;;
  15301. esac
  15302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15303. printf "%s\n" "$dynamic_linker" >&6; }
  15304. test no = "$dynamic_linker" && can_build_shared=no
  15305. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15306. if test yes = "$GCC"; then
  15307. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15308. fi
  15309. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15310. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15311. fi
  15312. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15313. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15314. fi
  15315. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15316. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15317. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15318. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15319. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15320. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15322. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15323. hardcode_action_CXX=
  15324. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15325. test -n "$runpath_var_CXX" ||
  15326. test yes = "$hardcode_automatic_CXX"; then
  15327. # We can hardcode non-existent directories.
  15328. if test no != "$hardcode_direct_CXX" &&
  15329. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15330. # have to relink, otherwise we might link with an installed library
  15331. # when we should be linking with a yet-to-be-installed one
  15332. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15333. test no != "$hardcode_minus_L_CXX"; then
  15334. # Linking always hardcodes the temporary library directory.
  15335. hardcode_action_CXX=relink
  15336. else
  15337. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15338. hardcode_action_CXX=immediate
  15339. fi
  15340. else
  15341. # We cannot hardcode anything, or else we can only hardcode existing
  15342. # directories.
  15343. hardcode_action_CXX=unsupported
  15344. fi
  15345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15346. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15347. if test relink = "$hardcode_action_CXX" ||
  15348. test yes = "$inherit_rpath_CXX"; then
  15349. # Fast installation is not supported
  15350. enable_fast_install=no
  15351. elif test yes = "$shlibpath_overrides_runpath" ||
  15352. test no = "$enable_shared"; then
  15353. # Fast installation is not necessary
  15354. enable_fast_install=needless
  15355. fi
  15356. fi # test -n "$compiler"
  15357. CC=$lt_save_CC
  15358. CFLAGS=$lt_save_CFLAGS
  15359. LDCXX=$LD
  15360. LD=$lt_save_LD
  15361. GCC=$lt_save_GCC
  15362. with_gnu_ld=$lt_save_with_gnu_ld
  15363. lt_cv_path_LDCXX=$lt_cv_path_LD
  15364. lt_cv_path_LD=$lt_save_path_LD
  15365. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15366. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15367. fi # test yes != "$_lt_caught_CXX_error"
  15368. ac_ext=c
  15369. ac_cpp='$CPP $CPPFLAGS'
  15370. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15371. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15372. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15374. printf %s "checking for egrep... " >&6; }
  15375. if test ${ac_cv_path_EGREP+y}
  15376. then :
  15377. printf %s "(cached) " >&6
  15378. else $as_nop
  15379. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15380. then ac_cv_path_EGREP="$GREP -E"
  15381. else
  15382. if test -z "$EGREP"; then
  15383. ac_path_EGREP_found=false
  15384. # Loop through the user's path and test for each of PROGNAME-LIST
  15385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15386. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15387. do
  15388. IFS=$as_save_IFS
  15389. case $as_dir in #(((
  15390. '') as_dir=./ ;;
  15391. */) ;;
  15392. *) as_dir=$as_dir/ ;;
  15393. esac
  15394. for ac_prog in egrep
  15395. do
  15396. for ac_exec_ext in '' $ac_executable_extensions; do
  15397. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15398. as_fn_executable_p "$ac_path_EGREP" || continue
  15399. # Check for GNU ac_path_EGREP and select it if it is found.
  15400. # Check for GNU $ac_path_EGREP
  15401. case `"$ac_path_EGREP" --version 2>&1` in
  15402. *GNU*)
  15403. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15404. *)
  15405. ac_count=0
  15406. printf %s 0123456789 >"conftest.in"
  15407. while :
  15408. do
  15409. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15410. mv "conftest.tmp" "conftest.in"
  15411. cp "conftest.in" "conftest.nl"
  15412. printf "%s\n" 'EGREP' >> "conftest.nl"
  15413. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15414. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15415. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15416. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15417. # Best one so far, save it but keep looking for a better one
  15418. ac_cv_path_EGREP="$ac_path_EGREP"
  15419. ac_path_EGREP_max=$ac_count
  15420. fi
  15421. # 10*(2^10) chars as input seems more than enough
  15422. test $ac_count -gt 10 && break
  15423. done
  15424. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15425. esac
  15426. $ac_path_EGREP_found && break 3
  15427. done
  15428. done
  15429. done
  15430. IFS=$as_save_IFS
  15431. if test -z "$ac_cv_path_EGREP"; then
  15432. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15433. fi
  15434. else
  15435. ac_cv_path_EGREP=$EGREP
  15436. fi
  15437. fi
  15438. fi
  15439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15440. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15441. EGREP="$ac_cv_path_EGREP"
  15442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  15443. printf %s "checking for fgrep... " >&6; }
  15444. if test ${ac_cv_path_FGREP+y}
  15445. then :
  15446. printf %s "(cached) " >&6
  15447. else $as_nop
  15448. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  15449. then ac_cv_path_FGREP="$GREP -F"
  15450. else
  15451. if test -z "$FGREP"; then
  15452. ac_path_FGREP_found=false
  15453. # Loop through the user's path and test for each of PROGNAME-LIST
  15454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15455. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15456. do
  15457. IFS=$as_save_IFS
  15458. case $as_dir in #(((
  15459. '') as_dir=./ ;;
  15460. */) ;;
  15461. *) as_dir=$as_dir/ ;;
  15462. esac
  15463. for ac_prog in fgrep
  15464. do
  15465. for ac_exec_ext in '' $ac_executable_extensions; do
  15466. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  15467. as_fn_executable_p "$ac_path_FGREP" || continue
  15468. # Check for GNU ac_path_FGREP and select it if it is found.
  15469. # Check for GNU $ac_path_FGREP
  15470. case `"$ac_path_FGREP" --version 2>&1` in
  15471. *GNU*)
  15472. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  15473. *)
  15474. ac_count=0
  15475. printf %s 0123456789 >"conftest.in"
  15476. while :
  15477. do
  15478. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15479. mv "conftest.tmp" "conftest.in"
  15480. cp "conftest.in" "conftest.nl"
  15481. printf "%s\n" 'FGREP' >> "conftest.nl"
  15482. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15483. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15484. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15485. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  15486. # Best one so far, save it but keep looking for a better one
  15487. ac_cv_path_FGREP="$ac_path_FGREP"
  15488. ac_path_FGREP_max=$ac_count
  15489. fi
  15490. # 10*(2^10) chars as input seems more than enough
  15491. test $ac_count -gt 10 && break
  15492. done
  15493. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15494. esac
  15495. $ac_path_FGREP_found && break 3
  15496. done
  15497. done
  15498. done
  15499. IFS=$as_save_IFS
  15500. if test -z "$ac_cv_path_FGREP"; then
  15501. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15502. fi
  15503. else
  15504. ac_cv_path_FGREP=$FGREP
  15505. fi
  15506. fi
  15507. fi
  15508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  15509. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  15510. FGREP="$ac_cv_path_FGREP"
  15511. # Find a good install program. We prefer a C program (faster),
  15512. # so one script is as good as another. But avoid the broken or
  15513. # incompatible versions:
  15514. # SysV /etc/install, /usr/sbin/install
  15515. # SunOS /usr/etc/install
  15516. # IRIX /sbin/install
  15517. # AIX /bin/install
  15518. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15519. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15520. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15521. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15522. # OS/2's system install, which has a completely different semantic
  15523. # ./install, which can be erroneously created by make from ./install.sh.
  15524. # Reject install programs that cannot install multiple files.
  15525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15526. printf %s "checking for a BSD-compatible install... " >&6; }
  15527. if test -z "$INSTALL"; then
  15528. if test ${ac_cv_path_install+y}
  15529. then :
  15530. printf %s "(cached) " >&6
  15531. else $as_nop
  15532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15533. for as_dir in $PATH
  15534. do
  15535. IFS=$as_save_IFS
  15536. case $as_dir in #(((
  15537. '') as_dir=./ ;;
  15538. */) ;;
  15539. *) as_dir=$as_dir/ ;;
  15540. esac
  15541. # Account for fact that we put trailing slashes in our PATH walk.
  15542. case $as_dir in #((
  15543. ./ | /[cC]/* | \
  15544. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15545. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15546. /usr/ucb/* ) ;;
  15547. *)
  15548. # OSF1 and SCO ODT 3.0 have their own names for install.
  15549. # Don't use installbsd from OSF since it installs stuff as root
  15550. # by default.
  15551. for ac_prog in ginstall scoinst install; do
  15552. for ac_exec_ext in '' $ac_executable_extensions; do
  15553. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15554. if test $ac_prog = install &&
  15555. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15556. # AIX install. It has an incompatible calling convention.
  15557. :
  15558. elif test $ac_prog = install &&
  15559. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15560. # program-specific install script used by HP pwplus--don't use.
  15561. :
  15562. else
  15563. rm -rf conftest.one conftest.two conftest.dir
  15564. echo one > conftest.one
  15565. echo two > conftest.two
  15566. mkdir conftest.dir
  15567. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15568. test -s conftest.one && test -s conftest.two &&
  15569. test -s conftest.dir/conftest.one &&
  15570. test -s conftest.dir/conftest.two
  15571. then
  15572. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15573. break 3
  15574. fi
  15575. fi
  15576. fi
  15577. done
  15578. done
  15579. ;;
  15580. esac
  15581. done
  15582. IFS=$as_save_IFS
  15583. rm -rf conftest.one conftest.two conftest.dir
  15584. fi
  15585. if test ${ac_cv_path_install+y}; then
  15586. INSTALL=$ac_cv_path_install
  15587. else
  15588. # As a last resort, use the slow shell script. Don't cache a
  15589. # value for INSTALL within a source directory, because that will
  15590. # break other packages using the cache if that directory is
  15591. # removed, or if the value is a relative name.
  15592. INSTALL=$ac_install_sh
  15593. fi
  15594. fi
  15595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15596. printf "%s\n" "$INSTALL" >&6; }
  15597. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15598. # It thinks the first close brace ends the variable substitution.
  15599. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15600. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15601. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15603. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15604. set x ${MAKE-make}
  15605. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15606. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15607. then :
  15608. printf %s "(cached) " >&6
  15609. else $as_nop
  15610. cat >conftest.make <<\_ACEOF
  15611. SHELL = /bin/sh
  15612. all:
  15613. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15614. _ACEOF
  15615. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15616. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15617. *@@@%%%=?*=@@@%%%*)
  15618. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15619. *)
  15620. eval ac_cv_prog_make_${ac_make}_set=no;;
  15621. esac
  15622. rm -f conftest.make
  15623. fi
  15624. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15626. printf "%s\n" "yes" >&6; }
  15627. SET_MAKE=
  15628. else
  15629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15630. printf "%s\n" "no" >&6; }
  15631. SET_MAKE="MAKE=${MAKE-make}"
  15632. fi
  15633. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15634. if test -n "$ac_tool_prefix"; then
  15635. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15636. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15638. printf %s "checking for $ac_word... " >&6; }
  15639. if test ${ac_cv_path_PKG_CONFIG+y}
  15640. then :
  15641. printf %s "(cached) " >&6
  15642. else $as_nop
  15643. case $PKG_CONFIG in
  15644. [\\/]* | ?:[\\/]*)
  15645. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15646. ;;
  15647. *)
  15648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15649. for as_dir in $PATH
  15650. do
  15651. IFS=$as_save_IFS
  15652. case $as_dir in #(((
  15653. '') as_dir=./ ;;
  15654. */) ;;
  15655. *) as_dir=$as_dir/ ;;
  15656. esac
  15657. for ac_exec_ext in '' $ac_executable_extensions; do
  15658. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15659. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15660. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15661. break 2
  15662. fi
  15663. done
  15664. done
  15665. IFS=$as_save_IFS
  15666. ;;
  15667. esac
  15668. fi
  15669. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15670. if test -n "$PKG_CONFIG"; then
  15671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15672. printf "%s\n" "$PKG_CONFIG" >&6; }
  15673. else
  15674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15675. printf "%s\n" "no" >&6; }
  15676. fi
  15677. fi
  15678. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15679. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15680. # Extract the first word of "pkg-config", so it can be a program name with args.
  15681. set dummy pkg-config; ac_word=$2
  15682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15683. printf %s "checking for $ac_word... " >&6; }
  15684. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15685. then :
  15686. printf %s "(cached) " >&6
  15687. else $as_nop
  15688. case $ac_pt_PKG_CONFIG in
  15689. [\\/]* | ?:[\\/]*)
  15690. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15691. ;;
  15692. *)
  15693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15694. for as_dir in $PATH
  15695. do
  15696. IFS=$as_save_IFS
  15697. case $as_dir in #(((
  15698. '') as_dir=./ ;;
  15699. */) ;;
  15700. *) as_dir=$as_dir/ ;;
  15701. esac
  15702. for ac_exec_ext in '' $ac_executable_extensions; do
  15703. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15704. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15705. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15706. break 2
  15707. fi
  15708. done
  15709. done
  15710. IFS=$as_save_IFS
  15711. ;;
  15712. esac
  15713. fi
  15714. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15715. if test -n "$ac_pt_PKG_CONFIG"; then
  15716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15717. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15718. else
  15719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15720. printf "%s\n" "no" >&6; }
  15721. fi
  15722. if test "x$ac_pt_PKG_CONFIG" = x; then
  15723. PKG_CONFIG=""
  15724. else
  15725. case $cross_compiling:$ac_tool_warned in
  15726. yes:)
  15727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15728. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15729. ac_tool_warned=yes ;;
  15730. esac
  15731. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15732. fi
  15733. else
  15734. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15735. fi
  15736. fi
  15737. if test -n "$PKG_CONFIG"; then
  15738. _pkg_min_version=0.9.0
  15739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15740. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15741. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15743. printf "%s\n" "yes" >&6; }
  15744. else
  15745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15746. printf "%s\n" "no" >&6; }
  15747. PKG_CONFIG=""
  15748. fi
  15749. fi
  15750. if test -z "$AWK" ; then
  15751. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15752. fi
  15753. for ac_prog in gsort sort
  15754. do
  15755. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15756. set dummy $ac_prog; ac_word=$2
  15757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15758. printf %s "checking for $ac_word... " >&6; }
  15759. if test ${ac_cv_prog_SORT+y}
  15760. then :
  15761. printf %s "(cached) " >&6
  15762. else $as_nop
  15763. if test -n "$SORT"; then
  15764. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15765. else
  15766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15767. for as_dir in $PATH
  15768. do
  15769. IFS=$as_save_IFS
  15770. case $as_dir in #(((
  15771. '') as_dir=./ ;;
  15772. */) ;;
  15773. *) as_dir=$as_dir/ ;;
  15774. esac
  15775. for ac_exec_ext in '' $ac_executable_extensions; do
  15776. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15777. ac_cv_prog_SORT="$ac_prog"
  15778. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15779. break 2
  15780. fi
  15781. done
  15782. done
  15783. IFS=$as_save_IFS
  15784. fi
  15785. fi
  15786. SORT=$ac_cv_prog_SORT
  15787. if test -n "$SORT"; then
  15788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15789. printf "%s\n" "$SORT" >&6; }
  15790. else
  15791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15792. printf "%s\n" "no" >&6; }
  15793. fi
  15794. test -n "$SORT" && break
  15795. done
  15796. test -n "$SORT" || SORT="false"
  15797. if ! "$SORT" -V </dev/null >/dev/null
  15798. then :
  15799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15800. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15801. fi
  15802. # Check whether --enable-largefile was given.
  15803. if test ${enable_largefile+y}
  15804. then :
  15805. enableval=$enable_largefile;
  15806. fi
  15807. if test "$enable_largefile" != no; then
  15808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15809. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15810. if test ${ac_cv_sys_largefile_CC+y}
  15811. then :
  15812. printf %s "(cached) " >&6
  15813. else $as_nop
  15814. ac_cv_sys_largefile_CC=no
  15815. if test "$GCC" != yes; then
  15816. ac_save_CC=$CC
  15817. while :; do
  15818. # IRIX 6.2 and later do not support large files by default,
  15819. # so use the C compiler's -n32 option if that helps.
  15820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15821. /* end confdefs.h. */
  15822. #include <sys/types.h>
  15823. /* Check that off_t can represent 2**63 - 1 correctly.
  15824. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15825. since some C++ compilers masquerading as C compilers
  15826. incorrectly reject 9223372036854775807. */
  15827. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15828. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15829. && LARGE_OFF_T % 2147483647 == 1)
  15830. ? 1 : -1];
  15831. int
  15832. main (void)
  15833. {
  15834. ;
  15835. return 0;
  15836. }
  15837. _ACEOF
  15838. if ac_fn_c_try_compile "$LINENO"
  15839. then :
  15840. break
  15841. fi
  15842. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15843. CC="$CC -n32"
  15844. if ac_fn_c_try_compile "$LINENO"
  15845. then :
  15846. ac_cv_sys_largefile_CC=' -n32'; break
  15847. fi
  15848. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15849. break
  15850. done
  15851. CC=$ac_save_CC
  15852. rm -f conftest.$ac_ext
  15853. fi
  15854. fi
  15855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15856. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15857. if test "$ac_cv_sys_largefile_CC" != no; then
  15858. CC=$CC$ac_cv_sys_largefile_CC
  15859. fi
  15860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15861. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15862. if test ${ac_cv_sys_file_offset_bits+y}
  15863. then :
  15864. printf %s "(cached) " >&6
  15865. else $as_nop
  15866. while :; do
  15867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15868. /* end confdefs.h. */
  15869. #include <sys/types.h>
  15870. /* Check that off_t can represent 2**63 - 1 correctly.
  15871. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15872. since some C++ compilers masquerading as C compilers
  15873. incorrectly reject 9223372036854775807. */
  15874. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15875. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15876. && LARGE_OFF_T % 2147483647 == 1)
  15877. ? 1 : -1];
  15878. int
  15879. main (void)
  15880. {
  15881. ;
  15882. return 0;
  15883. }
  15884. _ACEOF
  15885. if ac_fn_c_try_compile "$LINENO"
  15886. then :
  15887. ac_cv_sys_file_offset_bits=no; break
  15888. fi
  15889. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15891. /* end confdefs.h. */
  15892. #define _FILE_OFFSET_BITS 64
  15893. #include <sys/types.h>
  15894. /* Check that off_t can represent 2**63 - 1 correctly.
  15895. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15896. since some C++ compilers masquerading as C compilers
  15897. incorrectly reject 9223372036854775807. */
  15898. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15899. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15900. && LARGE_OFF_T % 2147483647 == 1)
  15901. ? 1 : -1];
  15902. int
  15903. main (void)
  15904. {
  15905. ;
  15906. return 0;
  15907. }
  15908. _ACEOF
  15909. if ac_fn_c_try_compile "$LINENO"
  15910. then :
  15911. ac_cv_sys_file_offset_bits=64; break
  15912. fi
  15913. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15914. ac_cv_sys_file_offset_bits=unknown
  15915. break
  15916. done
  15917. fi
  15918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15919. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15920. case $ac_cv_sys_file_offset_bits in #(
  15921. no | unknown) ;;
  15922. *)
  15923. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15924. ;;
  15925. esac
  15926. rm -rf conftest*
  15927. if test $ac_cv_sys_file_offset_bits = unknown; then
  15928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15929. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15930. if test ${ac_cv_sys_large_files+y}
  15931. then :
  15932. printf %s "(cached) " >&6
  15933. else $as_nop
  15934. while :; do
  15935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15936. /* end confdefs.h. */
  15937. #include <sys/types.h>
  15938. /* Check that off_t can represent 2**63 - 1 correctly.
  15939. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15940. since some C++ compilers masquerading as C compilers
  15941. incorrectly reject 9223372036854775807. */
  15942. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15943. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15944. && LARGE_OFF_T % 2147483647 == 1)
  15945. ? 1 : -1];
  15946. int
  15947. main (void)
  15948. {
  15949. ;
  15950. return 0;
  15951. }
  15952. _ACEOF
  15953. if ac_fn_c_try_compile "$LINENO"
  15954. then :
  15955. ac_cv_sys_large_files=no; break
  15956. fi
  15957. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15959. /* end confdefs.h. */
  15960. #define _LARGE_FILES 1
  15961. #include <sys/types.h>
  15962. /* Check that off_t can represent 2**63 - 1 correctly.
  15963. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15964. since some C++ compilers masquerading as C compilers
  15965. incorrectly reject 9223372036854775807. */
  15966. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15967. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15968. && LARGE_OFF_T % 2147483647 == 1)
  15969. ? 1 : -1];
  15970. int
  15971. main (void)
  15972. {
  15973. ;
  15974. return 0;
  15975. }
  15976. _ACEOF
  15977. if ac_fn_c_try_compile "$LINENO"
  15978. then :
  15979. ac_cv_sys_large_files=1; break
  15980. fi
  15981. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15982. ac_cv_sys_large_files=unknown
  15983. break
  15984. done
  15985. fi
  15986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15987. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15988. case $ac_cv_sys_large_files in #(
  15989. no | unknown) ;;
  15990. *)
  15991. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15992. ;;
  15993. esac
  15994. rm -rf conftest*
  15995. fi
  15996. fi
  15997. case "$host" in
  15998. *-*-mingw*)
  15999. # Except on msys, where make can't handle full pathnames (bug 1972)
  16000. ;;
  16001. *)
  16002. srcdir=`cd $srcdir && pwd`
  16003. ;;
  16004. esac
  16005. INCLUDE="-I$srcdir/include"
  16006. case "$host" in
  16007. *-*-nto-qnx*)
  16008. ;;
  16009. *)
  16010. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  16011. ;;
  16012. esac
  16013. case "$host" in
  16014. *-*-haiku*)
  16015. LINKER='$(CXX)'
  16016. LIBTOOLLINKERTAG='CXX'
  16017. ;;
  16018. *)
  16019. LINKER='$(CC)'
  16020. LIBTOOLLINKERTAG='CC'
  16021. ;;
  16022. esac
  16023. if test x$srcdir != x.; then
  16024. INCLUDE="-Iinclude $INCLUDE"
  16025. elif test -d .git; then
  16026. as_fn_error $? "
  16027. *** When building from a git clone you should configure and build in a
  16028. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  16029. " "$LINENO" 5
  16030. fi
  16031. BASE_CFLAGS=""
  16032. BASE_LDFLAGS=""
  16033. case "$host" in
  16034. *-*-cygwin*)
  16035. # We build SDL on cygwin without the UNIX emulation layer
  16036. save_CFLAGS="$CFLAGS"
  16037. have_no_cygwin=no
  16038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  16039. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  16040. CFLAGS="$save_CFLAGS -mno-cygwin"
  16041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16042. /* end confdefs.h. */
  16043. int
  16044. main (void)
  16045. {
  16046. ;
  16047. return 0;
  16048. }
  16049. _ACEOF
  16050. if ac_fn_c_try_compile "$LINENO"
  16051. then :
  16052. have_no_cygwin=yes
  16053. fi
  16054. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  16056. printf "%s\n" "$have_no_cygwin" >&6; }
  16057. CFLAGS="$save_CFLAGS"
  16058. if test x$have_no_cygwin = xyes; then
  16059. BASE_CFLAGS="-mno-cygwin"
  16060. BASE_LDFLAGS="-mno-cygwin"
  16061. fi
  16062. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  16063. ;;
  16064. esac
  16065. # Uncomment the following line if you want to force SDL and applications
  16066. # built with it to be compiled for a particular architecture.
  16067. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  16068. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  16069. # The default optimization for SDL is -O3 (Bug #31)
  16070. if test "x$orig_CFLAGS" = x; then
  16071. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  16072. fi
  16073. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  16074. BUILD_LDFLAGS="$LDFLAGS"
  16075. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  16076. ## These are common directories to find software packages
  16077. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  16078. # if test -d $path/include; then
  16079. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  16080. # fi
  16081. # if test -d $path/lib; then
  16082. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  16083. # fi
  16084. #done
  16085. SDL_CFLAGS="$BASE_CFLAGS"
  16086. SDL_LIBS="-lSDL2"
  16087. if test "x$BASE_LDFLAGS" != x; then
  16088. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  16089. fi
  16090. if test "x$EXTRA_CFLAGS" != x; then
  16091. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  16092. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  16093. fi
  16094. if test "x$EXTRA_LDFLAGS" != x; then
  16095. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  16096. fi
  16097. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  16098. find_lib()
  16099. {
  16100. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16101. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16102. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  16103. if test "$cross_compiling" = yes; then
  16104. host_lib_path=""
  16105. else
  16106. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  16107. fi
  16108. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  16109. 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`
  16110. if test x$lib != x; then
  16111. echo $lib
  16112. return
  16113. fi
  16114. done
  16115. }
  16116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16117. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16118. if test ${ac_cv_c_const+y}
  16119. then :
  16120. printf %s "(cached) " >&6
  16121. else $as_nop
  16122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16123. /* end confdefs.h. */
  16124. int
  16125. main (void)
  16126. {
  16127. #ifndef __cplusplus
  16128. /* Ultrix mips cc rejects this sort of thing. */
  16129. typedef int charset[2];
  16130. const charset cs = { 0, 0 };
  16131. /* SunOS 4.1.1 cc rejects this. */
  16132. char const *const *pcpcc;
  16133. char **ppc;
  16134. /* NEC SVR4.0.2 mips cc rejects this. */
  16135. struct point {int x, y;};
  16136. static struct point const zero = {0,0};
  16137. /* IBM XL C 1.02.0.0 rejects this.
  16138. It does not let you subtract one const X* pointer from another in
  16139. an arm of an if-expression whose if-part is not a constant
  16140. expression */
  16141. const char *g = "string";
  16142. pcpcc = &g + (g ? g-g : 0);
  16143. /* HPUX 7.0 cc rejects these. */
  16144. ++pcpcc;
  16145. ppc = (char**) pcpcc;
  16146. pcpcc = (char const *const *) ppc;
  16147. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16148. char tx;
  16149. char *t = &tx;
  16150. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16151. *t++ = 0;
  16152. if (s) return 0;
  16153. }
  16154. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16155. int x[] = {25, 17};
  16156. const int *foo = &x[0];
  16157. ++foo;
  16158. }
  16159. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16160. typedef const int *iptr;
  16161. iptr p = 0;
  16162. ++p;
  16163. }
  16164. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16165. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16166. struct s { int j; const int *ap[3]; } bx;
  16167. struct s *b = &bx; b->j = 5;
  16168. }
  16169. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16170. const int foo = 10;
  16171. if (!foo) return 0;
  16172. }
  16173. return !cs[0] && !zero.x;
  16174. #endif
  16175. ;
  16176. return 0;
  16177. }
  16178. _ACEOF
  16179. if ac_fn_c_try_compile "$LINENO"
  16180. then :
  16181. ac_cv_c_const=yes
  16182. else $as_nop
  16183. ac_cv_c_const=no
  16184. fi
  16185. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16186. fi
  16187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16188. printf "%s\n" "$ac_cv_c_const" >&6; }
  16189. if test $ac_cv_c_const = no; then
  16190. printf "%s\n" "#define const /**/" >>confdefs.h
  16191. fi
  16192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16193. printf %s "checking for inline... " >&6; }
  16194. if test ${ac_cv_c_inline+y}
  16195. then :
  16196. printf %s "(cached) " >&6
  16197. else $as_nop
  16198. ac_cv_c_inline=no
  16199. for ac_kw in inline __inline__ __inline; do
  16200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16201. /* end confdefs.h. */
  16202. #ifndef __cplusplus
  16203. typedef int foo_t;
  16204. static $ac_kw foo_t static_foo (void) {return 0; }
  16205. $ac_kw foo_t foo (void) {return 0; }
  16206. #endif
  16207. _ACEOF
  16208. if ac_fn_c_try_compile "$LINENO"
  16209. then :
  16210. ac_cv_c_inline=$ac_kw
  16211. fi
  16212. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16213. test "$ac_cv_c_inline" != no && break
  16214. done
  16215. fi
  16216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16217. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16218. case $ac_cv_c_inline in
  16219. inline | yes) ;;
  16220. *)
  16221. case $ac_cv_c_inline in
  16222. no) ac_val=;;
  16223. *) ac_val=$ac_cv_c_inline;;
  16224. esac
  16225. cat >>confdefs.h <<_ACEOF
  16226. #ifndef __cplusplus
  16227. #define inline $ac_val
  16228. #endif
  16229. _ACEOF
  16230. ;;
  16231. esac
  16232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16233. printf %s "checking for working volatile... " >&6; }
  16234. if test ${ac_cv_c_volatile+y}
  16235. then :
  16236. printf %s "(cached) " >&6
  16237. else $as_nop
  16238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16239. /* end confdefs.h. */
  16240. int
  16241. main (void)
  16242. {
  16243. volatile int x;
  16244. int * volatile y = (int *) 0;
  16245. return !x && !y;
  16246. ;
  16247. return 0;
  16248. }
  16249. _ACEOF
  16250. if ac_fn_c_try_compile "$LINENO"
  16251. then :
  16252. ac_cv_c_volatile=yes
  16253. else $as_nop
  16254. ac_cv_c_volatile=no
  16255. fi
  16256. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16257. fi
  16258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16259. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16260. if test $ac_cv_c_volatile = no; then
  16261. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16262. fi
  16263. # Check whether --enable-assertions was given.
  16264. if test ${enable_assertions+y}
  16265. then :
  16266. enableval=$enable_assertions;
  16267. else $as_nop
  16268. enable_assertions=auto
  16269. fi
  16270. case "$enable_assertions" in
  16271. auto) # Use optimization settings to determine assertion level
  16272. ;;
  16273. disabled)
  16274. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16275. ;;
  16276. release)
  16277. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16278. ;;
  16279. enabled)
  16280. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16281. ;;
  16282. paranoid)
  16283. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16284. ;;
  16285. *)
  16286. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16287. ;;
  16288. esac
  16289. 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"
  16290. # Check whether --enable-dependency-tracking was given.
  16291. if test ${enable_dependency_tracking+y}
  16292. then :
  16293. enableval=$enable_dependency_tracking;
  16294. else $as_nop
  16295. enable_dependency_tracking=yes
  16296. fi
  16297. if test x$enable_dependency_tracking = xyes; then
  16298. have_gcc_mmd_mt=no
  16299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16300. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16302. /* end confdefs.h. */
  16303. #if !defined(__GNUC__) || __GNUC__ < 3
  16304. #error Dependency tracking requires GCC 3.0 or newer
  16305. #endif
  16306. int
  16307. main (void)
  16308. {
  16309. ;
  16310. return 0;
  16311. }
  16312. _ACEOF
  16313. if ac_fn_c_try_compile "$LINENO"
  16314. then :
  16315. have_gcc_mmd_mt=yes
  16316. fi
  16317. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16319. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16320. if test x$have_gcc_mmd_mt = xyes; then
  16321. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16322. fi
  16323. fi
  16324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16325. printf %s "checking for linker option --no-undefined... " >&6; }
  16326. have_no_undefined=no
  16327. case "$host" in
  16328. *-*-openbsd*)
  16329. ;;
  16330. *)
  16331. save_LDFLAGS="$LDFLAGS"
  16332. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16334. /* end confdefs.h. */
  16335. int
  16336. main (void)
  16337. {
  16338. ;
  16339. return 0;
  16340. }
  16341. _ACEOF
  16342. if ac_fn_c_try_link "$LINENO"
  16343. then :
  16344. have_no_undefined=yes
  16345. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16346. fi
  16347. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16348. conftest$ac_exeext conftest.$ac_ext
  16349. LDFLAGS="$save_LDFLAGS"
  16350. ;;
  16351. esac
  16352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16353. printf "%s\n" "$have_no_undefined" >&6; }
  16354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16355. printf %s "checking for linker option --dynamicbase... " >&6; }
  16356. have_dynamicbase=no
  16357. case "$host" in
  16358. *)
  16359. save_LDFLAGS="$LDFLAGS"
  16360. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16362. /* end confdefs.h. */
  16363. int
  16364. main (void)
  16365. {
  16366. ;
  16367. return 0;
  16368. }
  16369. _ACEOF
  16370. if ac_fn_c_try_link "$LINENO"
  16371. then :
  16372. have_dynamicbase=yes
  16373. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16374. fi
  16375. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16376. conftest$ac_exeext conftest.$ac_ext
  16377. LDFLAGS="$save_LDFLAGS"
  16378. ;;
  16379. esac
  16380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16381. printf "%s\n" "$have_dynamicbase" >&6; }
  16382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16383. printf %s "checking for linker option --nxcompat... " >&6; }
  16384. have_nxcompat=no
  16385. case "$host" in
  16386. *)
  16387. save_LDFLAGS="$LDFLAGS"
  16388. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16390. /* end confdefs.h. */
  16391. int
  16392. main (void)
  16393. {
  16394. ;
  16395. return 0;
  16396. }
  16397. _ACEOF
  16398. if ac_fn_c_try_link "$LINENO"
  16399. then :
  16400. have_nxcompat=yes
  16401. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16402. fi
  16403. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16404. conftest$ac_exeext conftest.$ac_ext
  16405. LDFLAGS="$save_LDFLAGS"
  16406. ;;
  16407. esac
  16408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16409. printf "%s\n" "$have_nxcompat" >&6; }
  16410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16411. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16412. have_high_entropy_va=no
  16413. case "$host" in
  16414. *)
  16415. save_LDFLAGS="$LDFLAGS"
  16416. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16418. /* end confdefs.h. */
  16419. int
  16420. main (void)
  16421. {
  16422. ;
  16423. return 0;
  16424. }
  16425. _ACEOF
  16426. if ac_fn_c_try_link "$LINENO"
  16427. then :
  16428. have_high_entropy_va=yes
  16429. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16430. fi
  16431. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16432. conftest$ac_exeext conftest.$ac_ext
  16433. LDFLAGS="$save_LDFLAGS"
  16434. ;;
  16435. esac
  16436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16437. printf "%s\n" "$have_high_entropy_va" >&6; }
  16438. # Check whether --enable-libc was given.
  16439. if test ${enable_libc+y}
  16440. then :
  16441. enableval=$enable_libc;
  16442. else $as_nop
  16443. enable_libc=yes
  16444. fi
  16445. enable_system_iconv_default=yes
  16446. case "$host" in
  16447. *-*-cygwin*|*-*-mingw*|*-*-darwin*|*-ios-*)
  16448. enable_system_iconv_default=no
  16449. ;;
  16450. esac
  16451. # Check whether --enable-system-iconv was given.
  16452. if test ${enable_system_iconv+y}
  16453. then :
  16454. enableval=$enable_system_iconv;
  16455. else $as_nop
  16456. enable_system_iconv=$enable_system_iconv_default
  16457. fi
  16458. # Check whether --enable-libiconv was given.
  16459. if test ${enable_libiconv+y}
  16460. then :
  16461. enableval=$enable_libiconv;
  16462. else $as_nop
  16463. enable_libiconv=no
  16464. fi
  16465. if test x$enable_libc = xyes; then
  16466. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16467. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16468. if test "x$ac_cv_header_sys_types_h" = xyes
  16469. then :
  16470. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16471. fi
  16472. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16473. if test "x$ac_cv_header_stdio_h" = xyes
  16474. then :
  16475. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16476. fi
  16477. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16478. if test "x$ac_cv_header_stdlib_h" = xyes
  16479. then :
  16480. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16481. fi
  16482. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16483. if test "x$ac_cv_header_stddef_h" = xyes
  16484. then :
  16485. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16486. fi
  16487. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16488. if test "x$ac_cv_header_stdarg_h" = xyes
  16489. then :
  16490. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16491. fi
  16492. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16493. if test "x$ac_cv_header_malloc_h" = xyes
  16494. then :
  16495. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16496. fi
  16497. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16498. if test "x$ac_cv_header_memory_h" = xyes
  16499. then :
  16500. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16501. fi
  16502. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16503. if test "x$ac_cv_header_string_h" = xyes
  16504. then :
  16505. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16506. fi
  16507. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16508. if test "x$ac_cv_header_strings_h" = xyes
  16509. then :
  16510. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16511. fi
  16512. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16513. if test "x$ac_cv_header_wchar_h" = xyes
  16514. then :
  16515. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16516. fi
  16517. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16518. if test "x$ac_cv_header_inttypes_h" = xyes
  16519. then :
  16520. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16521. fi
  16522. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16523. if test "x$ac_cv_header_stdint_h" = xyes
  16524. then :
  16525. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16526. fi
  16527. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16528. if test "x$ac_cv_header_limits_h" = xyes
  16529. then :
  16530. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16531. fi
  16532. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16533. if test "x$ac_cv_header_ctype_h" = xyes
  16534. then :
  16535. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16536. fi
  16537. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16538. if test "x$ac_cv_header_math_h" = xyes
  16539. then :
  16540. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16541. fi
  16542. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16543. if test "x$ac_cv_header_float_h" = xyes
  16544. then :
  16545. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16546. fi
  16547. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16548. if test "x$ac_cv_header_iconv_h" = xyes
  16549. then :
  16550. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16551. fi
  16552. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16553. if test "x$ac_cv_header_signal_h" = xyes
  16554. then :
  16555. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16556. fi
  16557. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16558. if test "x$ac_cv_type_size_t" = xyes
  16559. then :
  16560. else $as_nop
  16561. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16562. fi
  16563. ac_ext=c
  16564. ac_cpp='$CPP $CPPFLAGS'
  16565. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16566. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16567. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16569. printf %s "checking how to run the C preprocessor... " >&6; }
  16570. # On Suns, sometimes $CPP names a directory.
  16571. if test -n "$CPP" && test -d "$CPP"; then
  16572. CPP=
  16573. fi
  16574. if test -z "$CPP"; then
  16575. if test ${ac_cv_prog_CPP+y}
  16576. then :
  16577. printf %s "(cached) " >&6
  16578. else $as_nop
  16579. # Double quotes because $CC needs to be expanded
  16580. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16581. do
  16582. ac_preproc_ok=false
  16583. for ac_c_preproc_warn_flag in '' yes
  16584. do
  16585. # Use a header file that comes with gcc, so configuring glibc
  16586. # with a fresh cross-compiler works.
  16587. # On the NeXT, cc -E runs the code through the compiler's parser,
  16588. # not just through cpp. "Syntax error" is here to catch this case.
  16589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16590. /* end confdefs.h. */
  16591. #include <limits.h>
  16592. Syntax error
  16593. _ACEOF
  16594. if ac_fn_c_try_cpp "$LINENO"
  16595. then :
  16596. else $as_nop
  16597. # Broken: fails on valid input.
  16598. continue
  16599. fi
  16600. rm -f conftest.err conftest.i conftest.$ac_ext
  16601. # OK, works on sane cases. Now check whether nonexistent headers
  16602. # can be detected and how.
  16603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16604. /* end confdefs.h. */
  16605. #include <ac_nonexistent.h>
  16606. _ACEOF
  16607. if ac_fn_c_try_cpp "$LINENO"
  16608. then :
  16609. # Broken: success on invalid input.
  16610. continue
  16611. else $as_nop
  16612. # Passes both tests.
  16613. ac_preproc_ok=:
  16614. break
  16615. fi
  16616. rm -f conftest.err conftest.i conftest.$ac_ext
  16617. done
  16618. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16619. rm -f conftest.i conftest.err conftest.$ac_ext
  16620. if $ac_preproc_ok
  16621. then :
  16622. break
  16623. fi
  16624. done
  16625. ac_cv_prog_CPP=$CPP
  16626. fi
  16627. CPP=$ac_cv_prog_CPP
  16628. else
  16629. ac_cv_prog_CPP=$CPP
  16630. fi
  16631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16632. printf "%s\n" "$CPP" >&6; }
  16633. ac_preproc_ok=false
  16634. for ac_c_preproc_warn_flag in '' yes
  16635. do
  16636. # Use a header file that comes with gcc, so configuring glibc
  16637. # with a fresh cross-compiler works.
  16638. # On the NeXT, cc -E runs the code through the compiler's parser,
  16639. # not just through cpp. "Syntax error" is here to catch this case.
  16640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16641. /* end confdefs.h. */
  16642. #include <limits.h>
  16643. Syntax error
  16644. _ACEOF
  16645. if ac_fn_c_try_cpp "$LINENO"
  16646. then :
  16647. else $as_nop
  16648. # Broken: fails on valid input.
  16649. continue
  16650. fi
  16651. rm -f conftest.err conftest.i conftest.$ac_ext
  16652. # OK, works on sane cases. Now check whether nonexistent headers
  16653. # can be detected and how.
  16654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16655. /* end confdefs.h. */
  16656. #include <ac_nonexistent.h>
  16657. _ACEOF
  16658. if ac_fn_c_try_cpp "$LINENO"
  16659. then :
  16660. # Broken: success on invalid input.
  16661. continue
  16662. else $as_nop
  16663. # Passes both tests.
  16664. ac_preproc_ok=:
  16665. break
  16666. fi
  16667. rm -f conftest.err conftest.i conftest.$ac_ext
  16668. done
  16669. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16670. rm -f conftest.i conftest.err conftest.$ac_ext
  16671. if $ac_preproc_ok
  16672. then :
  16673. else $as_nop
  16674. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16675. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16676. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16677. See \`config.log' for more details" "$LINENO" 5; }
  16678. fi
  16679. ac_ext=c
  16680. ac_cpp='$CPP $CPPFLAGS'
  16681. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16682. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16683. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16685. printf %s "checking for M_PI in math.h... " >&6; }
  16686. if test ${ac_cv_define_M_PI+y}
  16687. then :
  16688. printf %s "(cached) " >&6
  16689. else $as_nop
  16690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16691. /* end confdefs.h. */
  16692. #include <math.h>
  16693. #ifdef M_PI
  16694. YES_IS_DEFINED
  16695. #endif
  16696. _ACEOF
  16697. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16698. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16699. then :
  16700. ac_cv_define_M_PI=yes
  16701. else $as_nop
  16702. ac_cv_define_M_PI=no
  16703. fi
  16704. rm -rf conftest*
  16705. fi
  16706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16707. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16708. if test "$ac_cv_define_M_PI" = "yes" ; then
  16709. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16710. fi
  16711. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16712. # for constant arguments. Useless!
  16713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16714. printf %s "checking for working alloca.h... " >&6; }
  16715. if test ${ac_cv_working_alloca_h+y}
  16716. then :
  16717. printf %s "(cached) " >&6
  16718. else $as_nop
  16719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16720. /* end confdefs.h. */
  16721. #include <alloca.h>
  16722. int
  16723. main (void)
  16724. {
  16725. char *p = (char *) alloca (2 * sizeof (int));
  16726. if (p) return 0;
  16727. ;
  16728. return 0;
  16729. }
  16730. _ACEOF
  16731. if ac_fn_c_try_link "$LINENO"
  16732. then :
  16733. ac_cv_working_alloca_h=yes
  16734. else $as_nop
  16735. ac_cv_working_alloca_h=no
  16736. fi
  16737. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16738. conftest$ac_exeext conftest.$ac_ext
  16739. fi
  16740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16741. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16742. if test $ac_cv_working_alloca_h = yes; then
  16743. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16744. fi
  16745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16746. printf %s "checking for alloca... " >&6; }
  16747. if test ${ac_cv_func_alloca_works+y}
  16748. then :
  16749. printf %s "(cached) " >&6
  16750. else $as_nop
  16751. if test $ac_cv_working_alloca_h = yes; then
  16752. ac_cv_func_alloca_works=yes
  16753. else
  16754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16755. /* end confdefs.h. */
  16756. #include <stdlib.h>
  16757. #include <stddef.h>
  16758. #ifndef alloca
  16759. # ifdef __GNUC__
  16760. # define alloca __builtin_alloca
  16761. # elif defined _MSC_VER
  16762. # include <malloc.h>
  16763. # define alloca _alloca
  16764. # else
  16765. # ifdef __cplusplus
  16766. extern "C"
  16767. # endif
  16768. void *alloca (size_t);
  16769. # endif
  16770. #endif
  16771. int
  16772. main (void)
  16773. {
  16774. char *p = (char *) alloca (1);
  16775. if (p) return 0;
  16776. ;
  16777. return 0;
  16778. }
  16779. _ACEOF
  16780. if ac_fn_c_try_link "$LINENO"
  16781. then :
  16782. ac_cv_func_alloca_works=yes
  16783. else $as_nop
  16784. ac_cv_func_alloca_works=no
  16785. fi
  16786. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16787. conftest$ac_exeext conftest.$ac_ext
  16788. fi
  16789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16790. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16791. fi
  16792. if test $ac_cv_func_alloca_works = yes; then
  16793. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16794. else
  16795. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16796. # that cause trouble. Some versions do not even contain alloca or
  16797. # contain a buggy version. If you still want to use their alloca,
  16798. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16799. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16800. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16802. printf %s "checking stack direction for C alloca... " >&6; }
  16803. if test ${ac_cv_c_stack_direction+y}
  16804. then :
  16805. printf %s "(cached) " >&6
  16806. else $as_nop
  16807. if test "$cross_compiling" = yes
  16808. then :
  16809. ac_cv_c_stack_direction=0
  16810. else $as_nop
  16811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16812. /* end confdefs.h. */
  16813. $ac_includes_default
  16814. int
  16815. find_stack_direction (int *addr, int depth)
  16816. {
  16817. int dir, dummy = 0;
  16818. if (! addr)
  16819. addr = &dummy;
  16820. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16821. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16822. return dir + dummy;
  16823. }
  16824. int
  16825. main (int argc, char **argv)
  16826. {
  16827. return find_stack_direction (0, argc + !argv + 20) < 0;
  16828. }
  16829. _ACEOF
  16830. if ac_fn_c_try_run "$LINENO"
  16831. then :
  16832. ac_cv_c_stack_direction=1
  16833. else $as_nop
  16834. ac_cv_c_stack_direction=-1
  16835. fi
  16836. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16837. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16838. fi
  16839. fi
  16840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16841. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16842. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16843. fi
  16844. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16845. if test "x$ac_cv_func_mprotect" = xyes
  16846. then :
  16847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16848. /* end confdefs.h. */
  16849. #include <sys/types.h>
  16850. #include <sys/mman.h>
  16851. int
  16852. main (void)
  16853. {
  16854. ;
  16855. return 0;
  16856. }
  16857. _ACEOF
  16858. if ac_fn_c_try_compile "$LINENO"
  16859. then :
  16860. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16861. fi
  16862. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16863. fi
  16864. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16865. if test "x$ac_cv_func_malloc" = xyes
  16866. then :
  16867. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16868. fi
  16869. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16870. if test "x$ac_cv_func_calloc" = xyes
  16871. then :
  16872. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16873. fi
  16874. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16875. if test "x$ac_cv_func_realloc" = xyes
  16876. then :
  16877. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16878. fi
  16879. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16880. if test "x$ac_cv_func_free" = xyes
  16881. then :
  16882. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16883. fi
  16884. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16885. if test "x$ac_cv_func_getenv" = xyes
  16886. then :
  16887. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16888. fi
  16889. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16890. if test "x$ac_cv_func_setenv" = xyes
  16891. then :
  16892. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16893. fi
  16894. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16895. if test "x$ac_cv_func_putenv" = xyes
  16896. then :
  16897. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16898. fi
  16899. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16900. if test "x$ac_cv_func_unsetenv" = xyes
  16901. then :
  16902. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16903. fi
  16904. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16905. if test "x$ac_cv_func_bsearch" = xyes
  16906. then :
  16907. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16908. fi
  16909. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16910. if test "x$ac_cv_func_qsort" = xyes
  16911. then :
  16912. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16913. fi
  16914. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16915. if test "x$ac_cv_func_abs" = xyes
  16916. then :
  16917. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16918. fi
  16919. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16920. if test "x$ac_cv_func_bcopy" = xyes
  16921. then :
  16922. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16923. fi
  16924. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16925. if test "x$ac_cv_func_memset" = xyes
  16926. then :
  16927. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16928. fi
  16929. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16930. if test "x$ac_cv_func_memcmp" = xyes
  16931. then :
  16932. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16933. fi
  16934. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16935. if test "x$ac_cv_func_memcpy" = xyes
  16936. then :
  16937. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16938. fi
  16939. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16940. if test "x$ac_cv_func_memmove" = xyes
  16941. then :
  16942. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16943. fi
  16944. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16945. if test "x$ac_cv_func_wcslen" = xyes
  16946. then :
  16947. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16948. fi
  16949. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16950. if test "x$ac_cv_func_wcslcpy" = xyes
  16951. then :
  16952. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16953. fi
  16954. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16955. if test "x$ac_cv_func_wcslcat" = xyes
  16956. then :
  16957. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16958. fi
  16959. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16960. if test "x$ac_cv_func__wcsdup" = xyes
  16961. then :
  16962. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16963. fi
  16964. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16965. if test "x$ac_cv_func_wcsdup" = xyes
  16966. then :
  16967. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16968. fi
  16969. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16970. if test "x$ac_cv_func_wcsstr" = xyes
  16971. then :
  16972. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16973. fi
  16974. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16975. if test "x$ac_cv_func_wcscmp" = xyes
  16976. then :
  16977. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16978. fi
  16979. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16980. if test "x$ac_cv_func_wcsncmp" = xyes
  16981. then :
  16982. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16983. fi
  16984. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16985. if test "x$ac_cv_func_wcscasecmp" = xyes
  16986. then :
  16987. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16988. fi
  16989. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16990. if test "x$ac_cv_func__wcsicmp" = xyes
  16991. then :
  16992. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16993. fi
  16994. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16995. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16996. then :
  16997. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16998. fi
  16999. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  17000. if test "x$ac_cv_func__wcsnicmp" = xyes
  17001. then :
  17002. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  17003. fi
  17004. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  17005. if test "x$ac_cv_func_strlen" = xyes
  17006. then :
  17007. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  17008. fi
  17009. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  17010. if test "x$ac_cv_func_strlcpy" = xyes
  17011. then :
  17012. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  17013. fi
  17014. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  17015. if test "x$ac_cv_func_strlcat" = xyes
  17016. then :
  17017. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  17018. fi
  17019. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  17020. if test "x$ac_cv_func__strrev" = xyes
  17021. then :
  17022. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  17023. fi
  17024. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  17025. if test "x$ac_cv_func__strupr" = xyes
  17026. then :
  17027. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  17028. fi
  17029. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  17030. if test "x$ac_cv_func__strlwr" = xyes
  17031. then :
  17032. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  17033. fi
  17034. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  17035. if test "x$ac_cv_func_index" = xyes
  17036. then :
  17037. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  17038. fi
  17039. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  17040. if test "x$ac_cv_func_rindex" = xyes
  17041. then :
  17042. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  17043. fi
  17044. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  17045. if test "x$ac_cv_func_strchr" = xyes
  17046. then :
  17047. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  17048. fi
  17049. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  17050. if test "x$ac_cv_func_strrchr" = xyes
  17051. then :
  17052. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  17053. fi
  17054. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  17055. if test "x$ac_cv_func_strstr" = xyes
  17056. then :
  17057. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  17058. fi
  17059. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  17060. if test "x$ac_cv_func_strtok_r" = xyes
  17061. then :
  17062. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  17063. fi
  17064. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  17065. if test "x$ac_cv_func_itoa" = xyes
  17066. then :
  17067. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  17068. fi
  17069. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  17070. if test "x$ac_cv_func__ltoa" = xyes
  17071. then :
  17072. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  17073. fi
  17074. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  17075. if test "x$ac_cv_func__uitoa" = xyes
  17076. then :
  17077. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  17078. fi
  17079. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17080. if test "x$ac_cv_func__ultoa" = xyes
  17081. then :
  17082. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17083. fi
  17084. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  17085. if test "x$ac_cv_func_strtod" = xyes
  17086. then :
  17087. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  17088. fi
  17089. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17090. if test "x$ac_cv_func_strtol" = xyes
  17091. then :
  17092. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17093. fi
  17094. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17095. if test "x$ac_cv_func_strtoul" = xyes
  17096. then :
  17097. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17098. fi
  17099. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17100. if test "x$ac_cv_func__i64toa" = xyes
  17101. then :
  17102. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17103. fi
  17104. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17105. if test "x$ac_cv_func__ui64toa" = xyes
  17106. then :
  17107. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17108. fi
  17109. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17110. if test "x$ac_cv_func_strtoll" = xyes
  17111. then :
  17112. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17113. fi
  17114. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17115. if test "x$ac_cv_func_strtoull" = xyes
  17116. then :
  17117. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17118. fi
  17119. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17120. if test "x$ac_cv_func_atoi" = xyes
  17121. then :
  17122. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17123. fi
  17124. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17125. if test "x$ac_cv_func_atof" = xyes
  17126. then :
  17127. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17128. fi
  17129. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17130. if test "x$ac_cv_func_strcmp" = xyes
  17131. then :
  17132. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17133. fi
  17134. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17135. if test "x$ac_cv_func_strncmp" = xyes
  17136. then :
  17137. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17138. fi
  17139. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17140. if test "x$ac_cv_func__stricmp" = xyes
  17141. then :
  17142. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17143. fi
  17144. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17145. if test "x$ac_cv_func_strcasecmp" = xyes
  17146. then :
  17147. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17148. fi
  17149. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17150. if test "x$ac_cv_func__strnicmp" = xyes
  17151. then :
  17152. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17153. fi
  17154. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17155. if test "x$ac_cv_func_strncasecmp" = xyes
  17156. then :
  17157. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17158. fi
  17159. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17160. if test "x$ac_cv_func_strcasestr" = xyes
  17161. then :
  17162. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17163. fi
  17164. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17165. if test "x$ac_cv_func_vsscanf" = xyes
  17166. then :
  17167. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17168. fi
  17169. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17170. if test "x$ac_cv_func_vsnprintf" = xyes
  17171. then :
  17172. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17173. fi
  17174. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17175. if test "x$ac_cv_func_fopen64" = xyes
  17176. then :
  17177. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17178. fi
  17179. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17180. if test "x$ac_cv_func_fseeko" = xyes
  17181. then :
  17182. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17183. fi
  17184. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17185. if test "x$ac_cv_func_fseeko64" = xyes
  17186. then :
  17187. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17188. fi
  17189. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17190. if test "x$ac_cv_func_sigaction" = xyes
  17191. then :
  17192. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17193. fi
  17194. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17195. if test "x$ac_cv_func_setjmp" = xyes
  17196. then :
  17197. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17198. fi
  17199. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17200. if test "x$ac_cv_func_nanosleep" = xyes
  17201. then :
  17202. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17203. fi
  17204. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17205. if test "x$ac_cv_func_sysconf" = xyes
  17206. then :
  17207. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17208. fi
  17209. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17210. if test "x$ac_cv_func_sysctlbyname" = xyes
  17211. then :
  17212. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17213. fi
  17214. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17215. if test "x$ac_cv_func_getauxval" = xyes
  17216. then :
  17217. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17218. fi
  17219. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17220. if test "x$ac_cv_func_elf_aux_info" = xyes
  17221. then :
  17222. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17223. fi
  17224. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17225. if test "x$ac_cv_func_poll" = xyes
  17226. then :
  17227. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17228. fi
  17229. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  17230. if test "x$ac_cv_func_memfd_create" = xyes
  17231. then :
  17232. printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
  17233. fi
  17234. ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  17235. if test "x$ac_cv_func_posix_fallocate" = xyes
  17236. then :
  17237. printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
  17238. fi
  17239. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17240. if test "x$ac_cv_func__Exit" = xyes
  17241. then :
  17242. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17243. fi
  17244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17245. printf %s "checking for pow in -lm... " >&6; }
  17246. if test ${ac_cv_lib_m_pow+y}
  17247. then :
  17248. printf %s "(cached) " >&6
  17249. else $as_nop
  17250. ac_check_lib_save_LIBS=$LIBS
  17251. LIBS="-lm $LIBS"
  17252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17253. /* end confdefs.h. */
  17254. /* Override any GCC internal prototype to avoid an error.
  17255. Use char because int might match the return type of a GCC
  17256. builtin and then its argument prototype would still apply. */
  17257. char pow ();
  17258. int
  17259. main (void)
  17260. {
  17261. return pow ();
  17262. ;
  17263. return 0;
  17264. }
  17265. _ACEOF
  17266. if ac_fn_c_try_link "$LINENO"
  17267. then :
  17268. ac_cv_lib_m_pow=yes
  17269. else $as_nop
  17270. ac_cv_lib_m_pow=no
  17271. fi
  17272. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17273. conftest$ac_exeext conftest.$ac_ext
  17274. LIBS=$ac_check_lib_save_LIBS
  17275. fi
  17276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17277. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17278. if test "x$ac_cv_lib_m_pow" = xyes
  17279. then :
  17280. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17281. fi
  17282. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17283. if test "x$ac_cv_func_acos" = xyes
  17284. then :
  17285. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17286. fi
  17287. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17288. if test "x$ac_cv_func_acosf" = xyes
  17289. then :
  17290. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17291. fi
  17292. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17293. if test "x$ac_cv_func_asin" = xyes
  17294. then :
  17295. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17296. fi
  17297. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17298. if test "x$ac_cv_func_asinf" = xyes
  17299. then :
  17300. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17301. fi
  17302. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17303. if test "x$ac_cv_func_atan" = xyes
  17304. then :
  17305. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17306. fi
  17307. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17308. if test "x$ac_cv_func_atanf" = xyes
  17309. then :
  17310. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17311. fi
  17312. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17313. if test "x$ac_cv_func_atan2" = xyes
  17314. then :
  17315. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17316. fi
  17317. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17318. if test "x$ac_cv_func_atan2f" = xyes
  17319. then :
  17320. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17321. fi
  17322. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17323. if test "x$ac_cv_func_ceil" = xyes
  17324. then :
  17325. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17326. fi
  17327. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17328. if test "x$ac_cv_func_ceilf" = xyes
  17329. then :
  17330. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17331. fi
  17332. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17333. if test "x$ac_cv_func_copysign" = xyes
  17334. then :
  17335. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17336. fi
  17337. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17338. if test "x$ac_cv_func_copysignf" = xyes
  17339. then :
  17340. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17341. fi
  17342. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17343. if test "x$ac_cv_func_cos" = xyes
  17344. then :
  17345. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17346. fi
  17347. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17348. if test "x$ac_cv_func_cosf" = xyes
  17349. then :
  17350. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17351. fi
  17352. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17353. if test "x$ac_cv_func_exp" = xyes
  17354. then :
  17355. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17356. fi
  17357. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17358. if test "x$ac_cv_func_expf" = xyes
  17359. then :
  17360. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17361. fi
  17362. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17363. if test "x$ac_cv_func_fabs" = xyes
  17364. then :
  17365. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17366. fi
  17367. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17368. if test "x$ac_cv_func_fabsf" = xyes
  17369. then :
  17370. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17371. fi
  17372. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17373. if test "x$ac_cv_func_floor" = xyes
  17374. then :
  17375. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17376. fi
  17377. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17378. if test "x$ac_cv_func_floorf" = xyes
  17379. then :
  17380. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17381. fi
  17382. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17383. if test "x$ac_cv_func_trunc" = xyes
  17384. then :
  17385. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17386. fi
  17387. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17388. if test "x$ac_cv_func_truncf" = xyes
  17389. then :
  17390. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17391. fi
  17392. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17393. if test "x$ac_cv_func_fmod" = xyes
  17394. then :
  17395. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17396. fi
  17397. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17398. if test "x$ac_cv_func_fmodf" = xyes
  17399. then :
  17400. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17401. fi
  17402. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17403. if test "x$ac_cv_func_log" = xyes
  17404. then :
  17405. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17406. fi
  17407. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17408. if test "x$ac_cv_func_logf" = xyes
  17409. then :
  17410. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17411. fi
  17412. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17413. if test "x$ac_cv_func_log10" = xyes
  17414. then :
  17415. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17416. fi
  17417. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17418. if test "x$ac_cv_func_log10f" = xyes
  17419. then :
  17420. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17421. fi
  17422. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17423. if test "x$ac_cv_func_lround" = xyes
  17424. then :
  17425. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17426. fi
  17427. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17428. if test "x$ac_cv_func_lroundf" = xyes
  17429. then :
  17430. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17431. fi
  17432. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17433. if test "x$ac_cv_func_pow" = xyes
  17434. then :
  17435. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17436. fi
  17437. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17438. if test "x$ac_cv_func_powf" = xyes
  17439. then :
  17440. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17441. fi
  17442. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17443. if test "x$ac_cv_func_round" = xyes
  17444. then :
  17445. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17446. fi
  17447. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17448. if test "x$ac_cv_func_roundf" = xyes
  17449. then :
  17450. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17451. fi
  17452. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17453. if test "x$ac_cv_func_scalbn" = xyes
  17454. then :
  17455. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17456. fi
  17457. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17458. if test "x$ac_cv_func_scalbnf" = xyes
  17459. then :
  17460. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17461. fi
  17462. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17463. if test "x$ac_cv_func_sin" = xyes
  17464. then :
  17465. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17466. fi
  17467. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17468. if test "x$ac_cv_func_sinf" = xyes
  17469. then :
  17470. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17471. fi
  17472. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17473. if test "x$ac_cv_func_sqrt" = xyes
  17474. then :
  17475. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17476. fi
  17477. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17478. if test "x$ac_cv_func_sqrtf" = xyes
  17479. then :
  17480. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17481. fi
  17482. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17483. if test "x$ac_cv_func_tan" = xyes
  17484. then :
  17485. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17486. fi
  17487. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17488. if test "x$ac_cv_func_tanf" = xyes
  17489. then :
  17490. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17491. fi
  17492. if test x$enable_system_iconv = xyes; then
  17493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libc" >&5
  17494. printf %s "checking for iconv in libc... " >&6; }
  17495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17496. /* end confdefs.h. */
  17497. #define LIBICONV_PLUG 1 /* in case libiconv header is in include path */
  17498. #include <stddef.h>
  17499. #include <iconv.h>
  17500. int
  17501. main (void)
  17502. {
  17503. iconv_open(NULL,NULL);
  17504. ;
  17505. return 0;
  17506. }
  17507. _ACEOF
  17508. if ac_fn_c_try_link "$LINENO"
  17509. then :
  17510. have_libc_iconv=yes
  17511. else $as_nop
  17512. have_libc_iconv=no
  17513. fi
  17514. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17515. conftest$ac_exeext conftest.$ac_ext
  17516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libc_iconv" >&5
  17517. printf "%s\n" "$have_libc_iconv" >&6; }
  17518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libiconv" >&5
  17519. printf %s "checking for iconv in libiconv... " >&6; }
  17520. save_LIBS="$LIBS"
  17521. LIBS="$LIBS -liconv"
  17522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17523. /* end confdefs.h. */
  17524. #include <stddef.h>
  17525. #include <iconv.h>
  17526. int
  17527. main (void)
  17528. {
  17529. iconv_open(NULL,NULL);
  17530. ;
  17531. return 0;
  17532. }
  17533. _ACEOF
  17534. if ac_fn_c_try_link "$LINENO"
  17535. then :
  17536. have_libiconv=yes
  17537. else $as_nop
  17538. have_libiconv=no
  17539. fi
  17540. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17541. conftest$ac_exeext conftest.$ac_ext
  17542. LIBS="$save_LIBS"
  17543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libiconv" >&5
  17544. printf "%s\n" "$have_libiconv" >&6; }
  17545. if test x$have_libc_iconv = xyes || test x$have_libiconv = xyes; then
  17546. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17547. if test x$have_libiconv = xyes; then
  17548. if test x$have_libc_iconv != xyes; then
  17549. use_libiconv=yes
  17550. elif test x$enable_libiconv = xyes; then
  17551. use_libiconv=yes
  17552. fi
  17553. fi
  17554. if test x$use_libiconv = xyes; then
  17555. printf "%s\n" "#define SDL_USE_LIBICONV 1" >>confdefs.h
  17556. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17557. echo "-- Using iconv from libiconv"
  17558. else
  17559. echo "-- Using iconv from libc"
  17560. fi
  17561. fi
  17562. fi
  17563. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17564. "
  17565. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17566. then :
  17567. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17568. fi
  17569. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17570. if test "x$ac_cv_header_libunwind_h" = xyes
  17571. then :
  17572. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17573. fi
  17574. fi
  17575. # Check whether --enable-gcc-atomics was given.
  17576. if test ${enable_gcc_atomics+y}
  17577. then :
  17578. enableval=$enable_gcc_atomics;
  17579. else $as_nop
  17580. enable_gcc_atomics=yes
  17581. fi
  17582. if test x$enable_gcc_atomics = xyes; then
  17583. have_gcc_atomics=no
  17584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17585. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17587. /* end confdefs.h. */
  17588. int
  17589. main (void)
  17590. {
  17591. int a;
  17592. void *x, *y, *z;
  17593. __sync_lock_test_and_set(&a, 4);
  17594. __sync_lock_test_and_set(&x, y);
  17595. __sync_fetch_and_add(&a, 1);
  17596. __sync_bool_compare_and_swap(&a, 5, 10);
  17597. __sync_bool_compare_and_swap(&x, y, z);
  17598. ;
  17599. return 0;
  17600. }
  17601. _ACEOF
  17602. if ac_fn_c_try_link "$LINENO"
  17603. then :
  17604. have_gcc_atomics=yes
  17605. fi
  17606. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17607. conftest$ac_exeext conftest.$ac_ext
  17608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17609. printf "%s\n" "$have_gcc_atomics" >&6; }
  17610. if test x$have_gcc_atomics = xyes; then
  17611. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17612. else
  17613. # See if we have the minimum operation needed for GCC atomics
  17614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17615. /* end confdefs.h. */
  17616. int
  17617. main (void)
  17618. {
  17619. int a;
  17620. __sync_lock_test_and_set(&a, 1);
  17621. __sync_lock_release(&a);
  17622. ;
  17623. return 0;
  17624. }
  17625. _ACEOF
  17626. if ac_fn_c_try_link "$LINENO"
  17627. then :
  17628. have_gcc_sync_lock_test_and_set=yes
  17629. fi
  17630. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17631. conftest$ac_exeext conftest.$ac_ext
  17632. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17633. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17634. fi
  17635. fi
  17636. fi
  17637. # Standard C sources
  17638. SOURCES="$SOURCES $srcdir/src/*.c"
  17639. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17640. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17641. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17642. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17643. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17644. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17645. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17646. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17647. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17648. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17649. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17650. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17651. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17652. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17653. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17654. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17655. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17656. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17657. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17658. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17659. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17660. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17661. case "$host" in
  17662. *-*-emscripten*)
  17663. default_atomic=no
  17664. ;;
  17665. *)
  17666. default_atomic=yes
  17667. ;;
  17668. esac
  17669. # Check whether --enable-atomic was given.
  17670. if test ${enable_atomic+y}
  17671. then :
  17672. enableval=$enable_atomic;
  17673. else $as_nop
  17674. enable_atomic=$default_atomic
  17675. fi
  17676. if test x$enable_atomic != xyes; then
  17677. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17678. else
  17679. SUMMARY_modules="${SUMMARY_modules} atomic"
  17680. fi
  17681. # Check whether --enable-audio was given.
  17682. if test ${enable_audio+y}
  17683. then :
  17684. enableval=$enable_audio;
  17685. else $as_nop
  17686. enable_audio=yes
  17687. fi
  17688. if test x$enable_audio != xyes; then
  17689. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17690. else
  17691. SUMMARY_modules="${SUMMARY_modules} audio"
  17692. fi
  17693. # Check whether --enable-video was given.
  17694. if test ${enable_video+y}
  17695. then :
  17696. enableval=$enable_video;
  17697. else $as_nop
  17698. enable_video=yes
  17699. fi
  17700. if test x$enable_video != xyes; then
  17701. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17702. else
  17703. SUMMARY_modules="${SUMMARY_modules} video"
  17704. fi
  17705. # Check whether --enable-render was given.
  17706. if test ${enable_render+y}
  17707. then :
  17708. enableval=$enable_render;
  17709. else $as_nop
  17710. enable_render=yes
  17711. fi
  17712. if test x$enable_render != xyes; then
  17713. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17714. else
  17715. SUMMARY_modules="${SUMMARY_modules} render"
  17716. fi
  17717. # Check whether --enable-events was given.
  17718. if test ${enable_events+y}
  17719. then :
  17720. enableval=$enable_events;
  17721. else $as_nop
  17722. enable_events=yes
  17723. fi
  17724. if test x$enable_events != xyes; then
  17725. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17726. else
  17727. SUMMARY_modules="${SUMMARY_modules} events"
  17728. fi
  17729. # Check whether --enable-joystick was given.
  17730. if test ${enable_joystick+y}
  17731. then :
  17732. enableval=$enable_joystick;
  17733. else $as_nop
  17734. enable_joystick=yes
  17735. fi
  17736. if test x$enable_joystick != xyes; then
  17737. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17738. else
  17739. SUMMARY_modules="${SUMMARY_modules} joystick"
  17740. fi
  17741. # Check whether --enable-haptic was given.
  17742. if test ${enable_haptic+y}
  17743. then :
  17744. enableval=$enable_haptic;
  17745. else $as_nop
  17746. enable_haptic=yes
  17747. fi
  17748. if test x$enable_haptic != xyes; then
  17749. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17750. else
  17751. SUMMARY_modules="${SUMMARY_modules} haptic"
  17752. fi
  17753. # Check whether --enable-hidapi was given.
  17754. if test ${enable_hidapi+y}
  17755. then :
  17756. enableval=$enable_hidapi;
  17757. else $as_nop
  17758. enable_hidapi=yes
  17759. fi
  17760. if test x$enable_hidapi != xyes; then
  17761. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17762. else
  17763. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17764. fi
  17765. # Check whether --enable-sensor was given.
  17766. if test ${enable_sensor+y}
  17767. then :
  17768. enableval=$enable_sensor;
  17769. else $as_nop
  17770. enable_sensor=yes
  17771. fi
  17772. if test x$enable_sensor != xyes; then
  17773. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17774. else
  17775. SUMMARY_modules="${SUMMARY_modules} sensor"
  17776. fi
  17777. # Check whether --enable-power was given.
  17778. if test ${enable_power+y}
  17779. then :
  17780. enableval=$enable_power;
  17781. else $as_nop
  17782. enable_power=yes
  17783. fi
  17784. if test x$enable_power != xyes; then
  17785. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17786. else
  17787. SUMMARY_modules="${SUMMARY_modules} power"
  17788. fi
  17789. # Check whether --enable-filesystem was given.
  17790. if test ${enable_filesystem+y}
  17791. then :
  17792. enableval=$enable_filesystem;
  17793. else $as_nop
  17794. enable_filesystem=yes
  17795. fi
  17796. if test x$enable_filesystem != xyes; then
  17797. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17798. else
  17799. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17800. fi
  17801. # Many subsystems depend on threads, so leave them enabled by default
  17802. #AC_ARG_ENABLE(threads,
  17803. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17804. # , enable_threads=yes)
  17805. enable_threads=yes
  17806. if test x$enable_threads != xyes; then
  17807. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17808. else
  17809. SUMMARY_modules="${SUMMARY_modules} threads"
  17810. fi
  17811. # Check whether --enable-timers was given.
  17812. if test ${enable_timers+y}
  17813. then :
  17814. enableval=$enable_timers;
  17815. else $as_nop
  17816. enable_timers=yes
  17817. fi
  17818. if test x$enable_timers != xyes; then
  17819. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17820. else
  17821. SUMMARY_modules="${SUMMARY_modules} timers"
  17822. fi
  17823. # Check whether --enable-file was given.
  17824. if test ${enable_file+y}
  17825. then :
  17826. enableval=$enable_file;
  17827. else $as_nop
  17828. enable_file=yes
  17829. fi
  17830. if test x$enable_file != xyes; then
  17831. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17832. else
  17833. SUMMARY_modules="${SUMMARY_modules} file"
  17834. fi
  17835. # Check whether --enable-misc was given.
  17836. if test ${enable_misc+y}
  17837. then :
  17838. enableval=$enable_misc;
  17839. else $as_nop
  17840. enable_misc=yes
  17841. fi
  17842. if test x$enable_misc != xyes; then
  17843. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17844. else
  17845. SUMMARY_modules="${SUMMARY_modules} misc"
  17846. fi
  17847. # Check whether --enable-locale was given.
  17848. if test ${enable_locale+y}
  17849. then :
  17850. enableval=$enable_locale;
  17851. else $as_nop
  17852. enable_locale=yes
  17853. fi
  17854. if test x$enable_locale != xyes; then
  17855. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17856. else
  17857. SUMMARY_modules="${SUMMARY_modules} locale"
  17858. fi
  17859. # Check whether --enable-loadso was given.
  17860. if test ${enable_loadso+y}
  17861. then :
  17862. enableval=$enable_loadso;
  17863. else $as_nop
  17864. enable_loadso=yes
  17865. fi
  17866. if test x$enable_loadso != xyes; then
  17867. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17868. else
  17869. SUMMARY_modules="${SUMMARY_modules} loadso"
  17870. fi
  17871. # Check whether --enable-cpuinfo was given.
  17872. if test ${enable_cpuinfo+y}
  17873. then :
  17874. enableval=$enable_cpuinfo;
  17875. else $as_nop
  17876. enable_cpuinfo=yes
  17877. fi
  17878. if test x$enable_cpuinfo != xyes; then
  17879. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17880. else
  17881. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17882. fi
  17883. # Check whether --enable-assembly was given.
  17884. if test ${enable_assembly+y}
  17885. then :
  17886. enableval=$enable_assembly;
  17887. else $as_nop
  17888. enable_assembly=yes
  17889. fi
  17890. if test x$enable_assembly = xyes; then
  17891. SUMMARY_modules="${SUMMARY_modules} assembly"
  17892. # Make sure that we don't generate floating point code that would
  17893. # cause illegal instruction exceptions on older processors
  17894. case "$host" in
  17895. *-*-darwin*)
  17896. # Don't need to worry about Apple hardware, it's all SSE capable
  17897. default_ssemath=yes
  17898. ;;
  17899. *64-*-*)
  17900. # x86 64-bit architectures all have SSE instructions
  17901. default_ssemath=yes
  17902. ;;
  17903. *)
  17904. default_ssemath=no
  17905. ;;
  17906. esac
  17907. # Check whether --enable-ssemath was given.
  17908. if test ${enable_ssemath+y}
  17909. then :
  17910. enableval=$enable_ssemath;
  17911. else $as_nop
  17912. enable_ssemath=$default_ssemath
  17913. fi
  17914. if test x$enable_ssemath = xno; then
  17915. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17916. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17917. fi
  17918. fi
  17919. # Check whether --enable-mmx was given.
  17920. if test ${enable_mmx+y}
  17921. then :
  17922. enableval=$enable_mmx;
  17923. else $as_nop
  17924. enable_mmx=yes
  17925. fi
  17926. if test x$enable_mmx = xyes; then
  17927. save_CFLAGS="$CFLAGS"
  17928. have_gcc_mmx=no
  17929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17930. printf %s "checking for GCC -mmmx option... " >&6; }
  17931. mmx_CFLAGS="-mmmx"
  17932. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17934. /* end confdefs.h. */
  17935. #ifdef __MINGW32__
  17936. #include <_mingw.h>
  17937. #ifdef __MINGW64_VERSION_MAJOR
  17938. #include <intrin.h>
  17939. #else
  17940. #include <mmintrin.h>
  17941. #endif
  17942. #else
  17943. #include <mmintrin.h>
  17944. #endif
  17945. #ifndef __MMX__
  17946. #error Assembler CPP flag not enabled
  17947. #endif
  17948. int
  17949. main (void)
  17950. {
  17951. ;
  17952. return 0;
  17953. }
  17954. _ACEOF
  17955. if ac_fn_c_try_compile "$LINENO"
  17956. then :
  17957. have_gcc_mmx=yes
  17958. fi
  17959. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17961. printf "%s\n" "$have_gcc_mmx" >&6; }
  17962. CFLAGS="$save_CFLAGS"
  17963. if test x$have_gcc_mmx = xyes; then
  17964. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17965. SUMMARY_math="${SUMMARY_math} mmx"
  17966. fi
  17967. fi
  17968. # Check whether --enable-3dnow was given.
  17969. if test ${enable_3dnow+y}
  17970. then :
  17971. enableval=$enable_3dnow;
  17972. else $as_nop
  17973. enable_3dnow=no
  17974. fi
  17975. if test x$enable_3dnow = xyes; then
  17976. save_CFLAGS="$CFLAGS"
  17977. have_gcc_3dnow=no
  17978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17979. printf %s "checking for GCC -m3dnow option... " >&6; }
  17980. amd3dnow_CFLAGS="-m3dnow"
  17981. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17983. /* end confdefs.h. */
  17984. #include <mm3dnow.h>
  17985. #ifndef __3dNOW__
  17986. #error Assembler CPP flag not enabled
  17987. #endif
  17988. int
  17989. main (void)
  17990. {
  17991. void *p = 0;
  17992. _m_prefetch(p);
  17993. ;
  17994. return 0;
  17995. }
  17996. _ACEOF
  17997. if ac_fn_c_try_link "$LINENO"
  17998. then :
  17999. have_gcc_3dnow=yes
  18000. fi
  18001. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18002. conftest$ac_exeext conftest.$ac_ext
  18003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  18004. printf "%s\n" "$have_gcc_3dnow" >&6; }
  18005. CFLAGS="$save_CFLAGS"
  18006. if test x$have_gcc_3dnow = xyes; then
  18007. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  18008. SUMMARY_math="${SUMMARY_math} 3dnow"
  18009. fi
  18010. fi
  18011. # Check whether --enable-sse was given.
  18012. if test ${enable_sse+y}
  18013. then :
  18014. enableval=$enable_sse;
  18015. else $as_nop
  18016. enable_sse=yes
  18017. fi
  18018. if test x$enable_sse = xyes; then
  18019. save_CFLAGS="$CFLAGS"
  18020. have_gcc_sse=no
  18021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  18022. printf %s "checking for GCC -msse option... " >&6; }
  18023. sse_CFLAGS="-msse"
  18024. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  18025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18026. /* end confdefs.h. */
  18027. #ifdef __MINGW32__
  18028. #include <_mingw.h>
  18029. #ifdef __MINGW64_VERSION_MAJOR
  18030. #include <intrin.h>
  18031. #else
  18032. #include <xmmintrin.h>
  18033. #endif
  18034. #else
  18035. #include <xmmintrin.h>
  18036. #endif
  18037. #ifndef __SSE__
  18038. #error Assembler CPP flag not enabled
  18039. #endif
  18040. int
  18041. main (void)
  18042. {
  18043. ;
  18044. return 0;
  18045. }
  18046. _ACEOF
  18047. if ac_fn_c_try_compile "$LINENO"
  18048. then :
  18049. have_gcc_sse=yes
  18050. fi
  18051. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  18053. printf "%s\n" "$have_gcc_sse" >&6; }
  18054. CFLAGS="$save_CFLAGS"
  18055. if test x$have_gcc_sse = xyes; then
  18056. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  18057. SUMMARY_math="${SUMMARY_math} sse"
  18058. fi
  18059. fi
  18060. # Check whether --enable-sse2 was given.
  18061. if test ${enable_sse2+y}
  18062. then :
  18063. enableval=$enable_sse2;
  18064. else $as_nop
  18065. enable_sse2=$default_ssemath
  18066. fi
  18067. if test x$enable_sse2 = xyes; then
  18068. save_CFLAGS="$CFLAGS"
  18069. have_gcc_sse2=no
  18070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  18071. printf %s "checking for GCC -msse2 option... " >&6; }
  18072. sse2_CFLAGS="-msse2"
  18073. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  18074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18075. /* end confdefs.h. */
  18076. #ifdef __MINGW32__
  18077. #include <_mingw.h>
  18078. #ifdef __MINGW64_VERSION_MAJOR
  18079. #include <intrin.h>
  18080. #else
  18081. #include <emmintrin.h>
  18082. #endif
  18083. #else
  18084. #include <emmintrin.h>
  18085. #endif
  18086. #ifndef __SSE2__
  18087. #error Assembler CPP flag not enabled
  18088. #endif
  18089. int
  18090. main (void)
  18091. {
  18092. ;
  18093. return 0;
  18094. }
  18095. _ACEOF
  18096. if ac_fn_c_try_compile "$LINENO"
  18097. then :
  18098. have_gcc_sse2=yes
  18099. fi
  18100. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  18102. printf "%s\n" "$have_gcc_sse2" >&6; }
  18103. CFLAGS="$save_CFLAGS"
  18104. if test x$have_gcc_sse2 = xyes; then
  18105. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  18106. SUMMARY_math="${SUMMARY_math} sse2"
  18107. fi
  18108. fi
  18109. # Check whether --enable-sse3 was given.
  18110. if test ${enable_sse3+y}
  18111. then :
  18112. enableval=$enable_sse3;
  18113. else $as_nop
  18114. enable_sse3=$default_ssemath
  18115. fi
  18116. if test x$enable_sse3 = xyes; then
  18117. save_CFLAGS="$CFLAGS"
  18118. have_gcc_sse3=no
  18119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  18120. printf %s "checking for GCC -msse3 option... " >&6; }
  18121. sse3_CFLAGS="-msse3"
  18122. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18124. /* end confdefs.h. */
  18125. #ifdef __MINGW32__
  18126. #include <_mingw.h>
  18127. #ifdef __MINGW64_VERSION_MAJOR
  18128. #include <intrin.h>
  18129. #else
  18130. #include <pmmintrin.h>
  18131. #endif
  18132. #else
  18133. #include <pmmintrin.h>
  18134. #endif
  18135. #ifndef __SSE2__
  18136. #error Assembler CPP flag not enabled
  18137. #endif
  18138. int
  18139. main (void)
  18140. {
  18141. ;
  18142. return 0;
  18143. }
  18144. _ACEOF
  18145. if ac_fn_c_try_compile "$LINENO"
  18146. then :
  18147. have_gcc_sse3=yes
  18148. fi
  18149. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18151. printf "%s\n" "$have_gcc_sse3" >&6; }
  18152. CFLAGS="$save_CFLAGS"
  18153. if test x$have_gcc_sse3 = xyes; then
  18154. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18155. SUMMARY_math="${SUMMARY_math} sse3"
  18156. fi
  18157. fi
  18158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18159. printf %s "checking for immintrin.h... " >&6; }
  18160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18161. /* end confdefs.h. */
  18162. #include <immintrin.h>
  18163. int
  18164. main (void)
  18165. {
  18166. ;
  18167. return 0;
  18168. }
  18169. _ACEOF
  18170. if ac_fn_c_try_compile "$LINENO"
  18171. then :
  18172. have_immintrin_h_hdr=yes
  18173. else $as_nop
  18174. have_immintrin_h_hdr=no
  18175. fi
  18176. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18178. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18179. if test x$have_immintrin_h_hdr = xyes; then
  18180. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18181. fi
  18182. # Check whether --enable-altivec was given.
  18183. if test ${enable_altivec+y}
  18184. then :
  18185. enableval=$enable_altivec;
  18186. else $as_nop
  18187. enable_altivec=yes
  18188. fi
  18189. if test x$enable_altivec = xyes; then
  18190. save_CFLAGS="$CFLAGS"
  18191. have_gcc_altivec=no
  18192. have_altivec_h_hdr=no
  18193. altivec_CFLAGS="-maltivec"
  18194. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18196. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18198. /* end confdefs.h. */
  18199. #include <altivec.h>
  18200. vector unsigned int vzero() {
  18201. return vec_splat_u32(0);
  18202. }
  18203. int
  18204. main (void)
  18205. {
  18206. ;
  18207. return 0;
  18208. }
  18209. _ACEOF
  18210. if ac_fn_c_try_compile "$LINENO"
  18211. then :
  18212. have_gcc_altivec=yes
  18213. have_altivec_h_hdr=yes
  18214. fi
  18215. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18217. printf "%s\n" "$have_gcc_altivec" >&6; }
  18218. if test x$have_gcc_altivec = xno; then
  18219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18220. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18222. /* end confdefs.h. */
  18223. vector unsigned int vzero() {
  18224. return vec_splat_u32(0);
  18225. }
  18226. int
  18227. main (void)
  18228. {
  18229. ;
  18230. return 0;
  18231. }
  18232. _ACEOF
  18233. if ac_fn_c_try_compile "$LINENO"
  18234. then :
  18235. have_gcc_altivec=yes
  18236. fi
  18237. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18239. printf "%s\n" "$have_gcc_altivec" >&6; }
  18240. fi
  18241. if test x$have_gcc_altivec = xno; then
  18242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18243. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18244. altivec_CFLAGS="-faltivec"
  18245. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18247. /* end confdefs.h. */
  18248. #include <altivec.h>
  18249. vector unsigned int vzero() {
  18250. return vec_splat_u32(0);
  18251. }
  18252. int
  18253. main (void)
  18254. {
  18255. ;
  18256. return 0;
  18257. }
  18258. _ACEOF
  18259. if ac_fn_c_try_compile "$LINENO"
  18260. then :
  18261. have_gcc_altivec=yes
  18262. have_altivec_h_hdr=yes
  18263. fi
  18264. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18266. printf "%s\n" "$have_gcc_altivec" >&6; }
  18267. fi
  18268. if test x$have_gcc_altivec = xno; then
  18269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18270. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18272. /* end confdefs.h. */
  18273. vector unsigned int vzero() {
  18274. return vec_splat_u32(0);
  18275. }
  18276. int
  18277. main (void)
  18278. {
  18279. ;
  18280. return 0;
  18281. }
  18282. _ACEOF
  18283. if ac_fn_c_try_compile "$LINENO"
  18284. then :
  18285. have_gcc_altivec=yes
  18286. fi
  18287. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18289. printf "%s\n" "$have_gcc_altivec" >&6; }
  18290. fi
  18291. CFLAGS="$save_CFLAGS"
  18292. if test x$have_gcc_altivec = xyes; then
  18293. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18294. if test x$have_altivec_h_hdr = xyes; then
  18295. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18296. fi
  18297. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18298. SUMMARY_math="${SUMMARY_math} altivec"
  18299. fi
  18300. fi
  18301. fi
  18302. # Check whether --enable-lsx was given.
  18303. if test ${enable_lsx+y}
  18304. then :
  18305. enableval=$enable_lsx;
  18306. else $as_nop
  18307. enable_lsx=yes
  18308. fi
  18309. if test x$enable_lsx = xyes; then
  18310. save_CFLAGS="$CFLAGS"
  18311. have_gcc_lsx=no
  18312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18313. printf %s "checking for GCC -mlsx option... " >&6; }
  18314. lsx_CFLAGS="-mlsx"
  18315. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18317. /* end confdefs.h. */
  18318. #ifndef __loongarch_sx
  18319. #error Assembler CPP flag not enabled
  18320. #endif
  18321. int
  18322. main (void)
  18323. {
  18324. ;
  18325. return 0;
  18326. }
  18327. _ACEOF
  18328. if ac_fn_c_try_compile "$LINENO"
  18329. then :
  18330. have_gcc_lsx=yes
  18331. fi
  18332. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18334. printf "%s\n" "$have_gcc_lsx" >&6; }
  18335. CFLAGS="$save_CFLAGS"
  18336. if test x$have_gcc_lsx = xyes; then
  18337. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18338. SUMMARY_math="${SUMMARY_math} lsx"
  18339. fi
  18340. fi
  18341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18342. printf %s "checking for lsxintrin.h... " >&6; }
  18343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18344. /* end confdefs.h. */
  18345. #include <lsxintrin.h>
  18346. int
  18347. main (void)
  18348. {
  18349. ;
  18350. return 0;
  18351. }
  18352. _ACEOF
  18353. if ac_fn_c_try_compile "$LINENO"
  18354. then :
  18355. have_lsxintrin_h_hdr=yes
  18356. else $as_nop
  18357. have_lsxintrin_h_hdr=no
  18358. fi
  18359. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18361. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18362. if test x$have_lsxintrin_h_hdr = xyes; then
  18363. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18364. fi
  18365. CheckOSS()
  18366. {
  18367. # Check whether --enable-oss was given.
  18368. if test ${enable_oss+y}
  18369. then :
  18370. enableval=$enable_oss;
  18371. else $as_nop
  18372. enable_oss=maybe
  18373. fi
  18374. if test x$enable_oss = xmaybe; then
  18375. enable_oss=yes
  18376. fi
  18377. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18379. printf %s "checking for OSS audio support... " >&6; }
  18380. have_oss=no
  18381. if test x$have_oss != xyes; then
  18382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18383. /* end confdefs.h. */
  18384. #include <sys/soundcard.h>
  18385. int
  18386. main (void)
  18387. {
  18388. int arg = SNDCTL_DSP_SETFRAGMENT;
  18389. ;
  18390. return 0;
  18391. }
  18392. _ACEOF
  18393. if ac_fn_c_try_compile "$LINENO"
  18394. then :
  18395. have_oss=yes
  18396. fi
  18397. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18398. fi
  18399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18400. printf "%s\n" "$have_oss" >&6; }
  18401. if test x$have_oss = xyes; then
  18402. SUMMARY_audio="${SUMMARY_audio} oss"
  18403. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18404. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18405. have_audio=yes
  18406. # We may need to link with ossaudio emulation library
  18407. case "$host" in
  18408. *-*-netbsd*)
  18409. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18410. esac
  18411. fi
  18412. fi
  18413. }
  18414. CheckALSA()
  18415. {
  18416. # Check whether --enable-alsa was given.
  18417. if test ${enable_alsa+y}
  18418. then :
  18419. enableval=$enable_alsa;
  18420. else $as_nop
  18421. enable_alsa=yes
  18422. fi
  18423. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18424. alsa_save_CFLAGS="$CFLAGS"
  18425. alsa_save_LDFLAGS="$LDFLAGS"
  18426. alsa_save_LIBS="$LIBS"
  18427. alsa_found=yes
  18428. # Check whether --with-alsa-prefix was given.
  18429. if test ${with_alsa_prefix+y}
  18430. then :
  18431. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18432. else $as_nop
  18433. alsa_prefix=""
  18434. fi
  18435. # Check whether --with-alsa-inc-prefix was given.
  18436. if test ${with_alsa_inc_prefix+y}
  18437. then :
  18438. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18439. else $as_nop
  18440. alsa_inc_prefix=""
  18441. fi
  18442. # Check whether --enable-alsatest was given.
  18443. if test ${enable_alsatest+y}
  18444. then :
  18445. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18446. else $as_nop
  18447. enable_alsatest=yes
  18448. fi
  18449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18450. printf %s "checking for ALSA CFLAGS... " >&6; }
  18451. if test "$alsa_inc_prefix" != "" ; then
  18452. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18453. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18454. fi
  18455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18456. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18458. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18459. if test "$alsa_prefix" != "" ; then
  18460. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18461. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18462. fi
  18463. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18464. LIBS=`echo $LIBS | sed 's/-lm//'`
  18465. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18466. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18467. LIBS=`echo $LIBS | sed 's/ //'`
  18468. LIBS="$ALSA_LIBS $LIBS"
  18469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18470. printf "%s\n" "$ALSA_LIBS" >&6; }
  18471. min_alsa_version=1.0.11
  18472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18473. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18474. no_alsa=""
  18475. alsa_min_major_version=`echo $min_alsa_version | \
  18476. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18477. alsa_min_minor_version=`echo $min_alsa_version | \
  18478. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18479. alsa_min_micro_version=`echo $min_alsa_version | \
  18480. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18481. ac_ext=c
  18482. ac_cpp='$CPP $CPPFLAGS'
  18483. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18484. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18485. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18487. /* end confdefs.h. */
  18488. #include <alsa/asoundlib.h>
  18489. int
  18490. main (void)
  18491. {
  18492. /* ensure backward compatibility */
  18493. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18494. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18495. #endif
  18496. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18497. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18498. #endif
  18499. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18500. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18501. #endif
  18502. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18503. exit(0);
  18504. # else
  18505. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18506. # error not present
  18507. # endif
  18508. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18509. exit(0);
  18510. # else
  18511. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18512. # error not present
  18513. # endif
  18514. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18515. # error not present
  18516. # endif
  18517. # endif
  18518. # endif
  18519. exit(0);
  18520. ;
  18521. return 0;
  18522. }
  18523. _ACEOF
  18524. if ac_fn_c_try_compile "$LINENO"
  18525. then :
  18526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18527. printf "%s\n" "found." >&6; }
  18528. else $as_nop
  18529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18530. printf "%s\n" "not present." >&6; }
  18531. alsa_found=no
  18532. fi
  18533. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18534. ac_ext=c
  18535. ac_cpp='$CPP $CPPFLAGS'
  18536. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18537. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18538. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18539. if test "x$enable_alsatest" = "xyes"; then
  18540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18541. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18542. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18543. then :
  18544. printf %s "(cached) " >&6
  18545. else $as_nop
  18546. ac_check_lib_save_LIBS=$LIBS
  18547. LIBS="-lasound $LIBS"
  18548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18549. /* end confdefs.h. */
  18550. /* Override any GCC internal prototype to avoid an error.
  18551. Use char because int might match the return type of a GCC
  18552. builtin and then its argument prototype would still apply. */
  18553. char snd_ctl_open ();
  18554. int
  18555. main (void)
  18556. {
  18557. return snd_ctl_open ();
  18558. ;
  18559. return 0;
  18560. }
  18561. _ACEOF
  18562. if ac_fn_c_try_link "$LINENO"
  18563. then :
  18564. ac_cv_lib_asound_snd_ctl_open=yes
  18565. else $as_nop
  18566. ac_cv_lib_asound_snd_ctl_open=no
  18567. fi
  18568. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18569. conftest$ac_exeext conftest.$ac_ext
  18570. LIBS=$ac_check_lib_save_LIBS
  18571. fi
  18572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18573. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18574. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18575. then :
  18576. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18577. LIBS="-lasound $LIBS"
  18578. else $as_nop
  18579. alsa_found=no
  18580. fi
  18581. fi
  18582. if test "x$alsa_found" = "xyes" ; then
  18583. have_alsa=yes
  18584. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18585. LIBS=`echo $LIBS | sed 's/ //'`
  18586. LIBS="-lasound $LIBS"
  18587. fi
  18588. if test "x$alsa_found" = "xno" ; then
  18589. have_alsa=no
  18590. CFLAGS="$alsa_save_CFLAGS"
  18591. LDFLAGS="$alsa_save_LDFLAGS"
  18592. LIBS="$alsa_save_LIBS"
  18593. ALSA_CFLAGS=""
  18594. ALSA_LIBS=""
  18595. fi
  18596. # Restore all flags from before the ALSA detection runs
  18597. CFLAGS="$alsa_save_CFLAGS"
  18598. LDFLAGS="$alsa_save_LDFLAGS"
  18599. LIBS="$alsa_save_LIBS"
  18600. if test x$have_alsa = xyes; then
  18601. # Check whether --enable-alsa-shared was given.
  18602. if test ${enable_alsa_shared+y}
  18603. then :
  18604. enableval=$enable_alsa_shared;
  18605. else $as_nop
  18606. enable_alsa_shared=yes
  18607. fi
  18608. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18609. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18610. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18611. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18612. if test x$have_loadso != xyes && \
  18613. test x$enable_alsa_shared = xyes; then
  18614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18615. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18616. fi
  18617. if test x$have_loadso = xyes && \
  18618. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18619. echo "-- dynamic libasound -> $alsa_lib"
  18620. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18621. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18622. else
  18623. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18624. SUMMARY_audio="${SUMMARY_audio} alsa"
  18625. fi
  18626. have_audio=yes
  18627. fi
  18628. fi
  18629. }
  18630. CheckJACK()
  18631. {
  18632. # Check whether --enable-jack was given.
  18633. if test ${enable_jack+y}
  18634. then :
  18635. enableval=$enable_jack;
  18636. else $as_nop
  18637. enable_jack=yes
  18638. fi
  18639. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18640. pkg_failed=no
  18641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18642. printf %s "checking for jack >= 0.125... " >&6; }
  18643. if test -n "$JACK_CFLAGS"; then
  18644. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18645. elif test -n "$PKG_CONFIG"; then
  18646. if test -n "$PKG_CONFIG" && \
  18647. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18648. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18649. ac_status=$?
  18650. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18651. test $ac_status = 0; }; then
  18652. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18653. test "x$?" != "x0" && pkg_failed=yes
  18654. else
  18655. pkg_failed=yes
  18656. fi
  18657. else
  18658. pkg_failed=untried
  18659. fi
  18660. if test -n "$JACK_LIBS"; then
  18661. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18662. elif test -n "$PKG_CONFIG"; then
  18663. if test -n "$PKG_CONFIG" && \
  18664. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18665. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18666. ac_status=$?
  18667. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18668. test $ac_status = 0; }; then
  18669. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18670. test "x$?" != "x0" && pkg_failed=yes
  18671. else
  18672. pkg_failed=yes
  18673. fi
  18674. else
  18675. pkg_failed=untried
  18676. fi
  18677. if test $pkg_failed = yes; then
  18678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18679. printf "%s\n" "no" >&6; }
  18680. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18681. _pkg_short_errors_supported=yes
  18682. else
  18683. _pkg_short_errors_supported=no
  18684. fi
  18685. if test $_pkg_short_errors_supported = yes; then
  18686. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18687. else
  18688. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18689. fi
  18690. # Put the nasty error message in config.log where it belongs
  18691. echo "$JACK_PKG_ERRORS" >&5
  18692. audio_jack=no
  18693. elif test $pkg_failed = untried; then
  18694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18695. printf "%s\n" "no" >&6; }
  18696. audio_jack=no
  18697. else
  18698. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18699. JACK_LIBS=$pkg_cv_JACK_LIBS
  18700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18701. printf "%s\n" "yes" >&6; }
  18702. audio_jack=yes
  18703. fi
  18704. if test x$audio_jack = xyes; then
  18705. # Check whether --enable-jack-shared was given.
  18706. if test ${enable_jack_shared+y}
  18707. then :
  18708. enableval=$enable_jack_shared;
  18709. else $as_nop
  18710. enable_jack_shared=yes
  18711. fi
  18712. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18713. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18714. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18715. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18716. if test x$have_loadso != xyes && \
  18717. test x$enable_jack_shared = xyes; then
  18718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18719. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18720. fi
  18721. if test x$have_loadso = xyes && \
  18722. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18723. echo "-- dynamic libjack -> $jack_lib"
  18724. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18725. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18726. case "$host" in
  18727. # On Solaris, jack must be linked deferred explicitly
  18728. # to prevent undefined symbol failures.
  18729. *-*-solaris*)
  18730. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18731. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18732. esac
  18733. else
  18734. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18735. SUMMARY_audio="${SUMMARY_audio} jack"
  18736. fi
  18737. have_audio=yes
  18738. fi
  18739. fi
  18740. }
  18741. CheckESD()
  18742. {
  18743. # Check whether --enable-esd was given.
  18744. if test ${enable_esd+y}
  18745. then :
  18746. enableval=$enable_esd;
  18747. else $as_nop
  18748. enable_esd=yes
  18749. fi
  18750. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18751. pkg_failed=no
  18752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18753. printf %s "checking for esound >= 0.2.8... " >&6; }
  18754. if test -n "$ESD_CFLAGS"; then
  18755. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18756. elif test -n "$PKG_CONFIG"; then
  18757. if test -n "$PKG_CONFIG" && \
  18758. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18759. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18760. ac_status=$?
  18761. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18762. test $ac_status = 0; }; then
  18763. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18764. test "x$?" != "x0" && pkg_failed=yes
  18765. else
  18766. pkg_failed=yes
  18767. fi
  18768. else
  18769. pkg_failed=untried
  18770. fi
  18771. if test -n "$ESD_LIBS"; then
  18772. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18773. elif test -n "$PKG_CONFIG"; then
  18774. if test -n "$PKG_CONFIG" && \
  18775. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18776. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18777. ac_status=$?
  18778. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18779. test $ac_status = 0; }; then
  18780. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18781. test "x$?" != "x0" && pkg_failed=yes
  18782. else
  18783. pkg_failed=yes
  18784. fi
  18785. else
  18786. pkg_failed=untried
  18787. fi
  18788. if test $pkg_failed = yes; then
  18789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18790. printf "%s\n" "no" >&6; }
  18791. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18792. _pkg_short_errors_supported=yes
  18793. else
  18794. _pkg_short_errors_supported=no
  18795. fi
  18796. if test $_pkg_short_errors_supported = yes; then
  18797. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18798. else
  18799. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18800. fi
  18801. # Put the nasty error message in config.log where it belongs
  18802. echo "$ESD_PKG_ERRORS" >&5
  18803. have_esd=no
  18804. elif test $pkg_failed = untried; then
  18805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18806. printf "%s\n" "no" >&6; }
  18807. have_esd=no
  18808. else
  18809. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18810. ESD_LIBS=$pkg_cv_ESD_LIBS
  18811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18812. printf "%s\n" "yes" >&6; }
  18813. have_esd=yes
  18814. fi
  18815. if test x$have_esd = xno; then
  18816. # Check whether --with-esd-prefix was given.
  18817. if test ${with_esd_prefix+y}
  18818. then :
  18819. withval=$with_esd_prefix; esd_prefix="$withval"
  18820. else $as_nop
  18821. esd_prefix=""
  18822. fi
  18823. # Check whether --with-esd-exec-prefix was given.
  18824. if test ${with_esd_exec_prefix+y}
  18825. then :
  18826. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18827. else $as_nop
  18828. esd_exec_prefix=""
  18829. fi
  18830. # Check whether --enable-esdtest was given.
  18831. if test ${enable_esdtest+y}
  18832. then :
  18833. enableval=$enable_esdtest;
  18834. else $as_nop
  18835. enable_esdtest=yes
  18836. fi
  18837. if test x$esd_exec_prefix != x ; then
  18838. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18839. if test x${ESD_CONFIG+set} != xset ; then
  18840. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18841. fi
  18842. fi
  18843. if test x$esd_prefix != x ; then
  18844. esd_args="$esd_args --prefix=$esd_prefix"
  18845. if test x${ESD_CONFIG+set} != xset ; then
  18846. ESD_CONFIG=$esd_prefix/bin/esd-config
  18847. fi
  18848. fi
  18849. # Extract the first word of "esd-config", so it can be a program name with args.
  18850. set dummy esd-config; ac_word=$2
  18851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18852. printf %s "checking for $ac_word... " >&6; }
  18853. if test ${ac_cv_path_ESD_CONFIG+y}
  18854. then :
  18855. printf %s "(cached) " >&6
  18856. else $as_nop
  18857. case $ESD_CONFIG in
  18858. [\\/]* | ?:[\\/]*)
  18859. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18860. ;;
  18861. *)
  18862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18863. for as_dir in $PATH
  18864. do
  18865. IFS=$as_save_IFS
  18866. case $as_dir in #(((
  18867. '') as_dir=./ ;;
  18868. */) ;;
  18869. *) as_dir=$as_dir/ ;;
  18870. esac
  18871. for ac_exec_ext in '' $ac_executable_extensions; do
  18872. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18873. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18874. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18875. break 2
  18876. fi
  18877. done
  18878. done
  18879. IFS=$as_save_IFS
  18880. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18881. ;;
  18882. esac
  18883. fi
  18884. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18885. if test -n "$ESD_CONFIG"; then
  18886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18887. printf "%s\n" "$ESD_CONFIG" >&6; }
  18888. else
  18889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18890. printf "%s\n" "no" >&6; }
  18891. fi
  18892. min_esd_version=0.2.8
  18893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18894. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18895. no_esd=""
  18896. if test "$ESD_CONFIG" = "no" ; then
  18897. no_esd=yes
  18898. else
  18899. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18900. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18901. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18902. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18903. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18904. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18905. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18906. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18907. if test "x$enable_esdtest" = "xyes" ; then
  18908. ac_ext=c
  18909. ac_cpp='$CPP $CPPFLAGS'
  18910. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18911. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18912. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18913. ac_save_CFLAGS="$CFLAGS"
  18914. ac_save_LIBS="$LIBS"
  18915. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18916. LIBS="$LIBS $ESD_LIBS"
  18917. rm -f conf.esdtest
  18918. if test "$cross_compiling" = yes
  18919. then :
  18920. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18921. else $as_nop
  18922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18923. /* end confdefs.h. */
  18924. #include <stdio.h>
  18925. #include <stdlib.h>
  18926. #include <esd.h>
  18927. int main (void)
  18928. {
  18929. int major, minor, micro;
  18930. FILE *fp = fopen("conf.esdtest", "w");
  18931. if (fp) fclose(fp);
  18932. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18933. printf("%s, bad version string\n", "$min_esd_version");
  18934. exit(1);
  18935. }
  18936. if (($esd_major_version > major) ||
  18937. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18938. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18939. {
  18940. return 0;
  18941. }
  18942. else
  18943. {
  18944. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18945. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18946. printf("*** best to upgrade to the required version.\n");
  18947. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18948. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18949. printf("*** config.cache before re-running configure\n");
  18950. return 1;
  18951. }
  18952. }
  18953. _ACEOF
  18954. if ac_fn_c_try_run "$LINENO"
  18955. then :
  18956. else $as_nop
  18957. no_esd=yes
  18958. fi
  18959. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18960. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18961. fi
  18962. CFLAGS="$ac_save_CFLAGS"
  18963. LIBS="$ac_save_LIBS"
  18964. ac_ext=c
  18965. ac_cpp='$CPP $CPPFLAGS'
  18966. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18967. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18968. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18969. fi
  18970. fi
  18971. if test "x$no_esd" = x ; then
  18972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18973. printf "%s\n" "yes" >&6; }
  18974. have_esd=yes
  18975. else
  18976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18977. printf "%s\n" "no" >&6; }
  18978. if test "$ESD_CONFIG" = "no" ; then
  18979. :
  18980. else
  18981. if test -f conf.esdtest ; then
  18982. :
  18983. else
  18984. echo "*** Could not run ESD test program, checking why..."
  18985. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18986. LIBS="$LIBS $ESD_LIBS"
  18987. ac_ext=c
  18988. ac_cpp='$CPP $CPPFLAGS'
  18989. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18990. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18991. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18993. /* end confdefs.h. */
  18994. #include <stdio.h>
  18995. #include <esd.h>
  18996. int
  18997. main (void)
  18998. {
  18999. return 0;
  19000. ;
  19001. return 0;
  19002. }
  19003. _ACEOF
  19004. if ac_fn_c_try_link "$LINENO"
  19005. then :
  19006. echo "*** The test program compiled, but did not run. This usually means"
  19007. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  19008. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  19009. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  19010. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  19011. echo "*** is required on your system"
  19012. echo "***"
  19013. echo "*** If you have an old version installed, it is best to remove it, although"
  19014. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  19015. else $as_nop
  19016. echo "*** The test program failed to compile or link. See the file config.log for the"
  19017. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  19018. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  19019. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  19020. fi
  19021. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19022. conftest$ac_exeext conftest.$ac_ext
  19023. CFLAGS="$ac_save_CFLAGS"
  19024. LIBS="$ac_save_LIBS"
  19025. ac_ext=c
  19026. ac_cpp='$CPP $CPPFLAGS'
  19027. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19028. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19029. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19030. fi
  19031. fi
  19032. ESD_CFLAGS=""
  19033. ESD_LIBS=""
  19034. have_esd=no
  19035. fi
  19036. rm -f conf.esdtest
  19037. fi
  19038. if test x$have_esd = xyes; then
  19039. # Check whether --enable-esd-shared was given.
  19040. if test ${enable_esd_shared+y}
  19041. then :
  19042. enableval=$enable_esd_shared;
  19043. else $as_nop
  19044. enable_esd_shared=yes
  19045. fi
  19046. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19047. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  19048. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  19049. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  19050. if test x$have_loadso != xyes && \
  19051. test x$enable_esd_shared = xyes; then
  19052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  19053. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  19054. fi
  19055. if test x$have_loadso = xyes && \
  19056. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  19057. echo "-- dynamic libesd -> $esd_lib"
  19058. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  19059. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  19060. else
  19061. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  19062. SUMMARY_audio="${SUMMARY_audio} esd"
  19063. fi
  19064. have_audio=yes
  19065. fi
  19066. fi
  19067. }
  19068. CheckPipewire()
  19069. {
  19070. # Check whether --enable-pipewire was given.
  19071. if test ${enable_pipewire+y}
  19072. then :
  19073. enableval=$enable_pipewire;
  19074. else $as_nop
  19075. enable_pipewire=yes
  19076. fi
  19077. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19078. pkg_failed=no
  19079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19080. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19081. if test -n "$PIPEWIRE_CFLAGS"; then
  19082. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19083. elif test -n "$PKG_CONFIG"; then
  19084. if test -n "$PKG_CONFIG" && \
  19085. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19086. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19087. ac_status=$?
  19088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19089. test $ac_status = 0; }; then
  19090. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19091. test "x$?" != "x0" && pkg_failed=yes
  19092. else
  19093. pkg_failed=yes
  19094. fi
  19095. else
  19096. pkg_failed=untried
  19097. fi
  19098. if test -n "$PIPEWIRE_LIBS"; then
  19099. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19100. elif test -n "$PKG_CONFIG"; then
  19101. if test -n "$PKG_CONFIG" && \
  19102. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19103. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19104. ac_status=$?
  19105. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19106. test $ac_status = 0; }; then
  19107. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19108. test "x$?" != "x0" && pkg_failed=yes
  19109. else
  19110. pkg_failed=yes
  19111. fi
  19112. else
  19113. pkg_failed=untried
  19114. fi
  19115. if test $pkg_failed = yes; then
  19116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19117. printf "%s\n" "no" >&6; }
  19118. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19119. _pkg_short_errors_supported=yes
  19120. else
  19121. _pkg_short_errors_supported=no
  19122. fi
  19123. if test $_pkg_short_errors_supported = yes; then
  19124. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19125. else
  19126. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19127. fi
  19128. # Put the nasty error message in config.log where it belongs
  19129. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19130. audio_pipewire=no
  19131. elif test $pkg_failed = untried; then
  19132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19133. printf "%s\n" "no" >&6; }
  19134. audio_pipewire=no
  19135. else
  19136. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19137. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19139. printf "%s\n" "yes" >&6; }
  19140. audio_pipewire=yes
  19141. fi
  19142. if test x$audio_pipewire = xyes; then
  19143. # Check whether --enable-pipewire-shared was given.
  19144. if test ${enable_pipewire_shared+y}
  19145. then :
  19146. enableval=$enable_pipewire_shared;
  19147. else $as_nop
  19148. enable_pipewire_shared=yes
  19149. fi
  19150. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19151. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19152. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19153. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19154. if test x$have_loadso != xyes && \
  19155. test x$enable_pipewire_shared = xyes; then
  19156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19157. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19158. fi
  19159. if test x$have_loadso = xyes && \
  19160. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19161. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19162. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19163. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19164. else
  19165. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19166. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19167. fi
  19168. have_audio=yes
  19169. fi
  19170. fi
  19171. }
  19172. CheckPulseAudio()
  19173. {
  19174. # Check whether --enable-pulseaudio was given.
  19175. if test ${enable_pulseaudio+y}
  19176. then :
  19177. enableval=$enable_pulseaudio;
  19178. else $as_nop
  19179. enable_pulseaudio=yes
  19180. fi
  19181. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19182. pkg_failed=no
  19183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse >= 0.9.15" >&5
  19184. printf %s "checking for libpulse >= 0.9.15... " >&6; }
  19185. if test -n "$PULSEAUDIO_CFLAGS"; then
  19186. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19187. elif test -n "$PKG_CONFIG"; then
  19188. if test -n "$PKG_CONFIG" && \
  19189. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19190. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19191. ac_status=$?
  19192. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19193. test $ac_status = 0; }; then
  19194. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.15" 2>/dev/null`
  19195. test "x$?" != "x0" && pkg_failed=yes
  19196. else
  19197. pkg_failed=yes
  19198. fi
  19199. else
  19200. pkg_failed=untried
  19201. fi
  19202. if test -n "$PULSEAUDIO_LIBS"; then
  19203. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19204. elif test -n "$PKG_CONFIG"; then
  19205. if test -n "$PKG_CONFIG" && \
  19206. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19207. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19208. ac_status=$?
  19209. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19210. test $ac_status = 0; }; then
  19211. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.15" 2>/dev/null`
  19212. test "x$?" != "x0" && pkg_failed=yes
  19213. else
  19214. pkg_failed=yes
  19215. fi
  19216. else
  19217. pkg_failed=untried
  19218. fi
  19219. if test $pkg_failed = yes; then
  19220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19221. printf "%s\n" "no" >&6; }
  19222. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19223. _pkg_short_errors_supported=yes
  19224. else
  19225. _pkg_short_errors_supported=no
  19226. fi
  19227. if test $_pkg_short_errors_supported = yes; then
  19228. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19229. else
  19230. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19231. fi
  19232. # Put the nasty error message in config.log where it belongs
  19233. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19234. audio_pulseaudio=no
  19235. elif test $pkg_failed = untried; then
  19236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19237. printf "%s\n" "no" >&6; }
  19238. audio_pulseaudio=no
  19239. else
  19240. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19241. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19243. printf "%s\n" "yes" >&6; }
  19244. audio_pulseaudio=yes
  19245. fi
  19246. if test x$audio_pulseaudio = xyes; then
  19247. # Check whether --enable-pulseaudio-shared was given.
  19248. if test ${enable_pulseaudio_shared+y}
  19249. then :
  19250. enableval=$enable_pulseaudio_shared;
  19251. else $as_nop
  19252. enable_pulseaudio_shared=yes
  19253. fi
  19254. pulseaudio_lib=`find_lib "libpulse.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19255. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19256. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19257. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19258. if test x$have_loadso != xyes && \
  19259. test x$enable_pulseaudio_shared = xyes; then
  19260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19261. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19262. fi
  19263. if test x$have_loadso = xyes && \
  19264. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19265. echo "-- dynamic libpulse -> $pulseaudio_lib"
  19266. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19267. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19268. case "$host" in
  19269. # On Solaris, pulseaudio must be linked deferred explicitly
  19270. # to prevent undefined symbol failures.
  19271. *-*-solaris*)
  19272. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19273. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19274. esac
  19275. else
  19276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19277. SUMMARY_audio="${SUMMARY_audio} pulse"
  19278. fi
  19279. have_audio=yes
  19280. fi
  19281. fi
  19282. }
  19283. CheckARTSC()
  19284. {
  19285. # Check whether --enable-arts was given.
  19286. if test ${enable_arts+y}
  19287. then :
  19288. enableval=$enable_arts;
  19289. else $as_nop
  19290. enable_arts=yes
  19291. fi
  19292. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19293. # Extract the first word of "artsc-config", so it can be a program name with args.
  19294. set dummy artsc-config; ac_word=$2
  19295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19296. printf %s "checking for $ac_word... " >&6; }
  19297. if test ${ac_cv_path_ARTSCONFIG+y}
  19298. then :
  19299. printf %s "(cached) " >&6
  19300. else $as_nop
  19301. case $ARTSCONFIG in
  19302. [\\/]* | ?:[\\/]*)
  19303. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19304. ;;
  19305. *)
  19306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19307. for as_dir in $PATH
  19308. do
  19309. IFS=$as_save_IFS
  19310. case $as_dir in #(((
  19311. '') as_dir=./ ;;
  19312. */) ;;
  19313. *) as_dir=$as_dir/ ;;
  19314. esac
  19315. for ac_exec_ext in '' $ac_executable_extensions; do
  19316. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19317. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19318. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19319. break 2
  19320. fi
  19321. done
  19322. done
  19323. IFS=$as_save_IFS
  19324. ;;
  19325. esac
  19326. fi
  19327. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19328. if test -n "$ARTSCONFIG"; then
  19329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19330. printf "%s\n" "$ARTSCONFIG" >&6; }
  19331. else
  19332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19333. printf "%s\n" "no" >&6; }
  19334. fi
  19335. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19336. : # arts isn't installed
  19337. else
  19338. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19339. ARTS_LIBS=`$ARTSCONFIG --libs`
  19340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19341. printf %s "checking for aRts development environment... " >&6; }
  19342. audio_arts=no
  19343. save_CFLAGS="$CFLAGS"
  19344. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19346. /* end confdefs.h. */
  19347. #include <artsc.h>
  19348. int
  19349. main (void)
  19350. {
  19351. arts_stream_t stream;
  19352. ;
  19353. return 0;
  19354. }
  19355. _ACEOF
  19356. if ac_fn_c_try_compile "$LINENO"
  19357. then :
  19358. audio_arts=yes
  19359. fi
  19360. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19361. CFLAGS="$save_CFLAGS"
  19362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19363. printf "%s\n" "$audio_arts" >&6; }
  19364. if test x$audio_arts = xyes; then
  19365. # Check whether --enable-arts-shared was given.
  19366. if test ${enable_arts_shared+y}
  19367. then :
  19368. enableval=$enable_arts_shared;
  19369. else $as_nop
  19370. enable_arts_shared=yes
  19371. fi
  19372. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19373. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19374. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19375. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19376. if test x$have_loadso != xyes && \
  19377. test x$enable_arts_shared = xyes; then
  19378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19379. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19380. fi
  19381. if test x$have_loadso = xyes && \
  19382. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19383. echo "-- dynamic libartsc -> $arts_lib"
  19384. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19385. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19386. else
  19387. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19388. SUMMARY_audio="${SUMMARY_audio} arts"
  19389. fi
  19390. have_audio=yes
  19391. fi
  19392. fi
  19393. fi
  19394. }
  19395. CheckNAS()
  19396. {
  19397. # Check whether --enable-nas was given.
  19398. if test ${enable_nas+y}
  19399. then :
  19400. enableval=$enable_nas;
  19401. else $as_nop
  19402. enable_nas=yes
  19403. fi
  19404. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19405. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19406. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19407. then :
  19408. have_nas_hdr=yes
  19409. fi
  19410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19411. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19412. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19413. then :
  19414. printf %s "(cached) " >&6
  19415. else $as_nop
  19416. ac_check_lib_save_LIBS=$LIBS
  19417. LIBS="-laudio $LIBS"
  19418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19419. /* end confdefs.h. */
  19420. /* Override any GCC internal prototype to avoid an error.
  19421. Use char because int might match the return type of a GCC
  19422. builtin and then its argument prototype would still apply. */
  19423. char AuOpenServer ();
  19424. int
  19425. main (void)
  19426. {
  19427. return AuOpenServer ();
  19428. ;
  19429. return 0;
  19430. }
  19431. _ACEOF
  19432. if ac_fn_c_try_link "$LINENO"
  19433. then :
  19434. ac_cv_lib_audio_AuOpenServer=yes
  19435. else $as_nop
  19436. ac_cv_lib_audio_AuOpenServer=no
  19437. fi
  19438. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19439. conftest$ac_exeext conftest.$ac_ext
  19440. LIBS=$ac_check_lib_save_LIBS
  19441. fi
  19442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19443. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19444. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19445. then :
  19446. have_nas_lib=yes
  19447. fi
  19448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19449. printf %s "checking for NAS audio support... " >&6; }
  19450. have_nas=no
  19451. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19452. have_nas=yes
  19453. NAS_LIBS="-laudio"
  19454. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19455. have_nas=yes
  19456. NAS_CFLAGS="-I/usr/X11R6/include/"
  19457. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19458. fi
  19459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19460. printf "%s\n" "$have_nas" >&6; }
  19461. if test x$have_nas = xyes; then
  19462. # Check whether --enable-nas-shared was given.
  19463. if test ${enable_nas_shared+y}
  19464. then :
  19465. enableval=$enable_nas_shared;
  19466. else $as_nop
  19467. enable_nas_shared=yes
  19468. fi
  19469. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19470. if test x$have_loadso != xyes && \
  19471. test x$enable_nas_shared = xyes; then
  19472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19473. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19474. fi
  19475. if test x$have_loadso = xyes && \
  19476. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19477. echo "-- dynamic libaudio -> $nas_lib"
  19478. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19479. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19480. else
  19481. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19482. SUMMARY_audio="${SUMMARY_audio} nas"
  19483. fi
  19484. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19485. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19486. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19487. have_audio=yes
  19488. fi
  19489. fi
  19490. }
  19491. CheckSNDIO()
  19492. {
  19493. # Check whether --enable-sndio was given.
  19494. if test ${enable_sndio+y}
  19495. then :
  19496. enableval=$enable_sndio;
  19497. else $as_nop
  19498. enable_sndio=yes
  19499. fi
  19500. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19501. pkg_failed=no
  19502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19503. printf %s "checking for sndio... " >&6; }
  19504. if test -n "$SNDIO_CFLAGS"; then
  19505. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19506. elif test -n "$PKG_CONFIG"; then
  19507. if test -n "$PKG_CONFIG" && \
  19508. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19509. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19510. ac_status=$?
  19511. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19512. test $ac_status = 0; }; then
  19513. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19514. test "x$?" != "x0" && pkg_failed=yes
  19515. else
  19516. pkg_failed=yes
  19517. fi
  19518. else
  19519. pkg_failed=untried
  19520. fi
  19521. if test -n "$SNDIO_LIBS"; then
  19522. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19523. elif test -n "$PKG_CONFIG"; then
  19524. if test -n "$PKG_CONFIG" && \
  19525. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19526. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19527. ac_status=$?
  19528. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19529. test $ac_status = 0; }; then
  19530. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19531. test "x$?" != "x0" && pkg_failed=yes
  19532. else
  19533. pkg_failed=yes
  19534. fi
  19535. else
  19536. pkg_failed=untried
  19537. fi
  19538. if test $pkg_failed = yes; then
  19539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19540. printf "%s\n" "no" >&6; }
  19541. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19542. _pkg_short_errors_supported=yes
  19543. else
  19544. _pkg_short_errors_supported=no
  19545. fi
  19546. if test $_pkg_short_errors_supported = yes; then
  19547. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19548. else
  19549. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19550. fi
  19551. # Put the nasty error message in config.log where it belongs
  19552. echo "$SNDIO_PKG_ERRORS" >&5
  19553. audio_sndio=no
  19554. elif test $pkg_failed = untried; then
  19555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19556. printf "%s\n" "no" >&6; }
  19557. audio_sndio=no
  19558. else
  19559. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19560. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19562. printf "%s\n" "yes" >&6; }
  19563. audio_sndio=yes
  19564. fi
  19565. if test x$audio_sndio = xyes; then
  19566. # Check whether --enable-sndio-shared was given.
  19567. if test ${enable_sndio_shared+y}
  19568. then :
  19569. enableval=$enable_sndio_shared;
  19570. else $as_nop
  19571. enable_sndio_shared=yes
  19572. fi
  19573. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19574. if test x$have_loadso != xyes && \
  19575. test x$enable_sndio_shared = xyes; then
  19576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19577. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19578. fi
  19579. if test x$have_loadso = xyes && \
  19580. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19581. echo "-- dynamic libsndio -> $sndio_lib"
  19582. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19583. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19584. else
  19585. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19586. SUMMARY_audio="${SUMMARY_audio} sndio"
  19587. fi
  19588. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19589. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19590. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19591. have_audio=yes
  19592. fi
  19593. fi
  19594. }
  19595. CheckFusionSound()
  19596. {
  19597. # Check whether --enable-fusionsound was given.
  19598. if test ${enable_fusionsound+y}
  19599. then :
  19600. enableval=$enable_fusionsound;
  19601. else $as_nop
  19602. enable_fusionsound=no
  19603. fi
  19604. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19605. pkg_failed=no
  19606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19607. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19608. if test -n "$FUSIONSOUND_CFLAGS"; then
  19609. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19610. elif test -n "$PKG_CONFIG"; then
  19611. if test -n "$PKG_CONFIG" && \
  19612. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19613. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19614. ac_status=$?
  19615. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19616. test $ac_status = 0; }; then
  19617. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19618. test "x$?" != "x0" && pkg_failed=yes
  19619. else
  19620. pkg_failed=yes
  19621. fi
  19622. else
  19623. pkg_failed=untried
  19624. fi
  19625. if test -n "$FUSIONSOUND_LIBS"; then
  19626. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19627. elif test -n "$PKG_CONFIG"; then
  19628. if test -n "$PKG_CONFIG" && \
  19629. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19630. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19631. ac_status=$?
  19632. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19633. test $ac_status = 0; }; then
  19634. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19635. test "x$?" != "x0" && pkg_failed=yes
  19636. else
  19637. pkg_failed=yes
  19638. fi
  19639. else
  19640. pkg_failed=untried
  19641. fi
  19642. if test $pkg_failed = yes; then
  19643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19644. printf "%s\n" "no" >&6; }
  19645. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19646. _pkg_short_errors_supported=yes
  19647. else
  19648. _pkg_short_errors_supported=no
  19649. fi
  19650. if test $_pkg_short_errors_supported = yes; then
  19651. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19652. else
  19653. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19654. fi
  19655. # Put the nasty error message in config.log where it belongs
  19656. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19657. fusionsound=no
  19658. elif test $pkg_failed = untried; then
  19659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19660. printf "%s\n" "no" >&6; }
  19661. fusionsound=no
  19662. else
  19663. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19664. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19666. printf "%s\n" "yes" >&6; }
  19667. fusionsound=yes
  19668. fi
  19669. if test x$fusionsound = xyes; then
  19670. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19671. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19672. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19673. # Check whether --enable-fusionsound-shared was given.
  19674. if test ${enable_fusionsound_shared+y}
  19675. then :
  19676. enableval=$enable_fusionsound_shared;
  19677. else $as_nop
  19678. enable_fusionsound_shared=yes
  19679. fi
  19680. fusionsound_shared=no
  19681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19682. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19683. if test x$have_loadso != xyes && \
  19684. test x$enable_fusionsound_shared = xyes; then
  19685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19686. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19687. fi
  19688. if test x$have_loadso = xyes && \
  19689. test x$enable_fusionsound_shared = xyes; then
  19690. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19691. fusionsound_shared=yes
  19692. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19693. else
  19694. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19695. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19696. fi
  19697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19698. printf "%s\n" "$fusionsound_shared" >&6; }
  19699. have_audio=yes
  19700. fi
  19701. fi
  19702. }
  19703. CheckDiskAudio()
  19704. {
  19705. # Check whether --enable-diskaudio was given.
  19706. if test ${enable_diskaudio+y}
  19707. then :
  19708. enableval=$enable_diskaudio;
  19709. else $as_nop
  19710. enable_diskaudio=yes
  19711. fi
  19712. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19713. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19714. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19715. SUMMARY_audio="${SUMMARY_audio} disk"
  19716. have_audio=yes
  19717. fi
  19718. }
  19719. CheckDummyAudio()
  19720. {
  19721. # Check whether --enable-dummyaudio was given.
  19722. if test ${enable_dummyaudio+y}
  19723. then :
  19724. enableval=$enable_dummyaudio;
  19725. else $as_nop
  19726. enable_dummyaudio=yes
  19727. fi
  19728. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19729. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19730. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19731. SUMMARY_audio="${SUMMARY_audio} dummy"
  19732. have_audio=yes
  19733. fi
  19734. }
  19735. CheckLibSampleRate()
  19736. {
  19737. # Check whether --enable-libsamplerate was given.
  19738. if test ${enable_libsamplerate+y}
  19739. then :
  19740. enableval=$enable_libsamplerate;
  19741. else $as_nop
  19742. enable_libsamplerate=yes
  19743. fi
  19744. if test x$enable_libsamplerate = xyes; then
  19745. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19746. if test "x$ac_cv_header_samplerate_h" = xyes
  19747. then :
  19748. have_samplerate_h_hdr=yes
  19749. else $as_nop
  19750. have_samplerate_h_hdr=no
  19751. fi
  19752. if test x$have_samplerate_h_hdr = xyes; then
  19753. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19754. # Check whether --enable-libsamplerate-shared was given.
  19755. if test ${enable_libsamplerate_shared+y}
  19756. then :
  19757. enableval=$enable_libsamplerate_shared;
  19758. else $as_nop
  19759. enable_libsamplerate_shared=yes
  19760. fi
  19761. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19762. if test x$have_loadso != xyes && \
  19763. test x$enable_libsamplerate_shared = xyes; then
  19764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19765. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19766. fi
  19767. if test x$have_loadso = xyes && \
  19768. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19769. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19770. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19771. else
  19772. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19773. fi
  19774. fi
  19775. fi
  19776. }
  19777. CheckARM()
  19778. {
  19779. # Check whether --enable-arm-simd was given.
  19780. if test ${enable_arm_simd+y}
  19781. then :
  19782. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19783. else $as_nop
  19784. enable_arm_simd=no
  19785. fi
  19786. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19787. save_CFLAGS="$CFLAGS"
  19788. have_arm_simd=no
  19789. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19791. printf %s "checking for ARM SIMD... " >&6; }
  19792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19793. /* end confdefs.h. */
  19794. .text
  19795. .arch armv6
  19796. .object_arch armv4
  19797. .arm
  19798. .altmacro
  19799. #ifndef __ARM_EABI__
  19800. #error EABI is required (to be sure that calling conventions are compatible)
  19801. #endif
  19802. pld [r0]
  19803. uqadd8 r0, r0, r0
  19804. _ACEOF
  19805. if ac_fn_c_try_compile "$LINENO"
  19806. then :
  19807. have_arm_simd=yes
  19808. fi
  19809. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19811. printf "%s\n" "$have_arm_simd" >&6; }
  19812. CFLAGS="$save_CFLAGS"
  19813. if test x$have_arm_simd = xyes; then
  19814. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19815. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19816. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19817. fi
  19818. fi
  19819. }
  19820. CheckNEON()
  19821. {
  19822. # Check whether --enable-arm-neon was given.
  19823. if test ${enable_arm_neon+y}
  19824. then :
  19825. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19826. else $as_nop
  19827. enable_arm_neon=no
  19828. fi
  19829. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19830. save_CFLAGS="$CFLAGS"
  19831. have_arm_neon=no
  19832. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19834. printf %s "checking for ARM NEON... " >&6; }
  19835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19836. /* end confdefs.h. */
  19837. .text
  19838. .fpu neon
  19839. .arch armv7a
  19840. .object_arch armv4
  19841. .eabi_attribute 10, 0
  19842. .arm
  19843. .altmacro
  19844. #ifndef __ARM_EABI__
  19845. #error EABI is required (to be sure that calling conventions are compatible)
  19846. #endif
  19847. pld [r0]
  19848. vmovn.u16 d0, q0
  19849. _ACEOF
  19850. if ac_fn_c_try_compile "$LINENO"
  19851. then :
  19852. have_arm_neon=yes
  19853. fi
  19854. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19856. printf "%s\n" "$have_arm_neon" >&6; }
  19857. CFLAGS="$save_CFLAGS"
  19858. if test x$have_arm_neon = xyes; then
  19859. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19860. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19861. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19862. fi
  19863. fi
  19864. }
  19865. CheckObjectiveCARC()
  19866. {
  19867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19868. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19869. have_clang_objc_arc=no
  19870. save_CFLAGS="$CFLAGS"
  19871. CFLAGS="$save_CFLAGS -fobjc-arc"
  19872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19873. /* end confdefs.h. */
  19874. int x = 0;
  19875. int
  19876. main (void)
  19877. {
  19878. ;
  19879. return 0;
  19880. }
  19881. _ACEOF
  19882. if ac_fn_c_try_compile "$LINENO"
  19883. then :
  19884. have_clang_objc_arc=yes
  19885. fi
  19886. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19888. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19889. CFLAGS="$save_CFLAGS"
  19890. if test x$have_clang_objc_arc = xyes; then
  19891. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19892. fi
  19893. }
  19894. CheckGDwarf4()
  19895. {
  19896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19897. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19898. have_gcc_gdwarf4=no
  19899. save_CFLAGS="$CFLAGS"
  19900. CFLAGS="$save_CFLAGS -gdwarf-4"
  19901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19902. /* end confdefs.h. */
  19903. int x = 0;
  19904. int
  19905. main (void)
  19906. {
  19907. ;
  19908. return 0;
  19909. }
  19910. _ACEOF
  19911. if ac_fn_c_try_compile "$LINENO"
  19912. then :
  19913. have_gcc_gdwarf4=yes
  19914. fi
  19915. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19917. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19918. CFLAGS="$save_CFLAGS"
  19919. if test x$have_gcc_gdwarf4 = xyes; then
  19920. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19921. fi
  19922. }
  19923. CheckVisibilityHidden()
  19924. {
  19925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19926. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19927. have_gcc_fvisibility=no
  19928. visibility_CFLAGS="-fvisibility=hidden"
  19929. save_CFLAGS="$CFLAGS"
  19930. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19932. /* end confdefs.h. */
  19933. #if !defined(__GNUC__) || __GNUC__ < 4
  19934. #error SDL only uses visibility attributes in GCC 4 or newer
  19935. #endif
  19936. int
  19937. main (void)
  19938. {
  19939. ;
  19940. return 0;
  19941. }
  19942. _ACEOF
  19943. if ac_fn_c_try_compile "$LINENO"
  19944. then :
  19945. have_gcc_fvisibility=yes
  19946. fi
  19947. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19949. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19950. CFLAGS="$save_CFLAGS"
  19951. if test x$have_gcc_fvisibility = xyes; then
  19952. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19953. fi
  19954. }
  19955. CheckNoStrictAliasing()
  19956. {
  19957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19958. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19959. have_gcc_no_strict_aliasing=no
  19960. save_CFLAGS="$CFLAGS"
  19961. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19963. /* end confdefs.h. */
  19964. int x = 0;
  19965. int
  19966. main (void)
  19967. {
  19968. ;
  19969. return 0;
  19970. }
  19971. _ACEOF
  19972. if ac_fn_c_try_compile "$LINENO"
  19973. then :
  19974. have_gcc_no_strict_aliasing=yes
  19975. fi
  19976. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19978. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19979. CFLAGS="$save_CFLAGS"
  19980. if test x$have_gcc_no_strict_aliasing = xyes; then
  19981. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19982. fi
  19983. }
  19984. CheckWerror()
  19985. {
  19986. # Check whether --enable-werror was given.
  19987. if test ${enable_werror+y}
  19988. then :
  19989. enableval=$enable_werror; enable_werror=$enableval
  19990. else $as_nop
  19991. enable_werror=no
  19992. fi
  19993. if test x$enable_werror = xyes; then
  19994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19995. printf %s "checking for GCC -Werror option... " >&6; }
  19996. have_gcc_werror=no
  19997. save_CFLAGS="$CFLAGS"
  19998. CFLAGS="$save_CFLAGS -Werror"
  19999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20000. /* end confdefs.h. */
  20001. int x = 0;
  20002. int
  20003. main (void)
  20004. {
  20005. ;
  20006. return 0;
  20007. }
  20008. _ACEOF
  20009. if ac_fn_c_try_compile "$LINENO"
  20010. then :
  20011. have_gcc_werror=yes
  20012. fi
  20013. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20015. printf "%s\n" "$have_gcc_werror" >&6; }
  20016. CFLAGS="$save_CFLAGS"
  20017. if test x$have_gcc_werror = xyes; then
  20018. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  20019. fi
  20020. fi
  20021. }
  20022. CheckNoErrorDeprecatedDeclarationsWerror()
  20023. {
  20024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  20025. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  20026. have_gcc_no_werror_deprecated_declarations=no
  20027. save_CFLAGS="$CFLAGS"
  20028. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  20029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20030. /* end confdefs.h. */
  20031. int x = 0;
  20032. int
  20033. main (void)
  20034. {
  20035. ;
  20036. return 0;
  20037. }
  20038. _ACEOF
  20039. if ac_fn_c_try_compile "$LINENO"
  20040. then :
  20041. have_gcc_no_werror_deprecated_declarations=yes
  20042. fi
  20043. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20045. printf "%s\n" "$have_gcc_werror" >&6; }
  20046. CFLAGS="$save_CFLAGS"
  20047. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20048. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20049. fi
  20050. }
  20051. CheckDeclarationAfterStatement()
  20052. {
  20053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20054. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20055. have_gcc_declaration_after_statement=no
  20056. save_CFLAGS="$CFLAGS"
  20057. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20059. /* end confdefs.h. */
  20060. int x = 0;
  20061. int
  20062. main (void)
  20063. {
  20064. ;
  20065. return 0;
  20066. }
  20067. _ACEOF
  20068. if ac_fn_c_try_compile "$LINENO"
  20069. then :
  20070. have_gcc_declaration_after_statement=yes
  20071. fi
  20072. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20074. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20075. CFLAGS="$save_CFLAGS"
  20076. if test x$have_gcc_declaration_after_statement = xyes; then
  20077. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20078. fi
  20079. }
  20080. CheckWarnAll()
  20081. {
  20082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20083. printf %s "checking for GCC -Wall option... " >&6; }
  20084. have_gcc_Wall=no
  20085. save_CFLAGS="$CFLAGS"
  20086. CFLAGS="$save_CFLAGS -Wall"
  20087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20088. /* end confdefs.h. */
  20089. int x = 0;
  20090. int
  20091. main (void)
  20092. {
  20093. ;
  20094. return 0;
  20095. }
  20096. _ACEOF
  20097. if ac_fn_c_try_compile "$LINENO"
  20098. then :
  20099. have_gcc_Wall=yes
  20100. fi
  20101. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20103. printf "%s\n" "$have_gcc_Wall" >&6; }
  20104. CFLAGS="$save_CFLAGS"
  20105. if test x$have_gcc_Wall = xyes; then
  20106. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20108. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20109. need_gcc_Wno_multichar=no
  20110. case "$host" in
  20111. *-*-haiku*)
  20112. need_gcc_Wno_multichar=yes
  20113. ;;
  20114. esac
  20115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20116. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20117. if test x$need_gcc_Wno_multichar = xyes; then
  20118. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20119. fi
  20120. fi
  20121. }
  20122. CheckUnusedLocalTypedefs()
  20123. {
  20124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wunused-local-typedefs option" >&5
  20125. printf %s "checking for GCC -Wunused-local-typedefs option... " >&6; }
  20126. have_gcc_unused_local_typedefs=no
  20127. save_CFLAGS="$CFLAGS"
  20128. CFLAGS="$save_CFLAGS -Wunused-local-typedefs"
  20129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20130. /* end confdefs.h. */
  20131. int x = 0;
  20132. int
  20133. main (void)
  20134. {
  20135. ;
  20136. return 0;
  20137. }
  20138. _ACEOF
  20139. if ac_fn_c_try_compile "$LINENO"
  20140. then :
  20141. have_gcc_unused_local_typedefs=yes
  20142. fi
  20143. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_unused_local_typedefs" >&5
  20145. printf "%s\n" "$have_gcc_unused_local_typedefs" >&6; }
  20146. CFLAGS="$save_CFLAGS"
  20147. if test x$have_gcc_unused_local_typedefs = xyes; then
  20148. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-unused-local-typedefs"
  20149. fi
  20150. }
  20151. CheckWayland()
  20152. {
  20153. # Check whether --enable-video-wayland was given.
  20154. if test ${enable_video_wayland+y}
  20155. then :
  20156. enableval=$enable_video_wayland;
  20157. else $as_nop
  20158. enable_video_wayland=yes
  20159. fi
  20160. # Check whether --enable-video-wayland-qt-touch was given.
  20161. if test ${enable_video_wayland_qt_touch+y}
  20162. then :
  20163. enableval=$enable_video_wayland_qt_touch;
  20164. else $as_nop
  20165. enable_video_wayland_qt_touch=yes
  20166. fi
  20167. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20169. printf %s "checking for Wayland support... " >&6; }
  20170. video_wayland=no
  20171. if test x$video_opengl_egl = xyes && \
  20172. test x$video_opengles_v2 = xyes; then
  20173. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20174. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20175. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20176. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20177. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20178. then :
  20179. WAYLAND_SCANNER_CODE_MODE=private-code
  20180. else $as_nop
  20181. WAYLAND_SCANNER_CODE_MODE=code
  20182. fi
  20183. video_wayland=yes
  20184. fi
  20185. fi
  20186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20187. printf "%s\n" "$video_wayland" >&6; }
  20188. if test x$video_wayland = xyes; then
  20189. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20190. if test x$enable_video_wayland_qt_touch = xyes; then
  20191. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20192. fi
  20193. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20194. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20195. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20196. # Check whether --enable-wayland-shared was given.
  20197. if test ${enable_wayland_shared+y}
  20198. then :
  20199. enableval=$enable_wayland_shared;
  20200. else $as_nop
  20201. enable_wayland_shared=maybe
  20202. fi
  20203. case "$host" in
  20204. *)
  20205. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20206. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20207. if test x$wayland_egl_lib = x; then
  20208. # This works in Ubuntu 13.10, maybe others
  20209. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20210. fi
  20211. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20212. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20213. ;;
  20214. esac
  20215. if test x$enable_wayland_shared = xmaybe; then
  20216. enable_wayland_shared=yes
  20217. fi
  20218. if test x$have_loadso != xyes && \
  20219. test x$enable_wayland_shared = xyes; then
  20220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20221. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20222. enable_wayland_shared=no
  20223. fi
  20224. if test x$have_loadso = xyes && \
  20225. test x$enable_wayland_shared = xyes && \
  20226. test x$wayland_client_lib != x && \
  20227. test x$wayland_egl_lib != x && \
  20228. test x$wayland_cursor_lib != x && \
  20229. test x$xkbcommon_lib != x; then
  20230. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20231. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20232. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20233. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20234. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20235. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20236. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20237. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20238. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20239. else
  20240. enable_wayland_shared=no
  20241. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20242. SUMMARY_video="${SUMMARY_video} wayland"
  20243. fi
  20244. have_video=yes
  20245. # Check whether --enable-libdecor was given.
  20246. if test ${enable_libdecor+y}
  20247. then :
  20248. enableval=$enable_libdecor;
  20249. else $as_nop
  20250. enable_libdecor=yes
  20251. fi
  20252. if test x$enable_libdecor = xyes; then
  20253. pkg_failed=no
  20254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20255. printf %s "checking for libdecor-0... " >&6; }
  20256. if test -n "$DECOR_CFLAGS"; then
  20257. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20258. elif test -n "$PKG_CONFIG"; then
  20259. if test -n "$PKG_CONFIG" && \
  20260. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20261. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20262. ac_status=$?
  20263. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20264. test $ac_status = 0; }; then
  20265. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20266. test "x$?" != "x0" && pkg_failed=yes
  20267. else
  20268. pkg_failed=yes
  20269. fi
  20270. else
  20271. pkg_failed=untried
  20272. fi
  20273. if test -n "$DECOR_LIBS"; then
  20274. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20275. elif test -n "$PKG_CONFIG"; then
  20276. if test -n "$PKG_CONFIG" && \
  20277. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20278. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20279. ac_status=$?
  20280. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20281. test $ac_status = 0; }; then
  20282. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20283. test "x$?" != "x0" && pkg_failed=yes
  20284. else
  20285. pkg_failed=yes
  20286. fi
  20287. else
  20288. pkg_failed=untried
  20289. fi
  20290. if test $pkg_failed = yes; then
  20291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20292. printf "%s\n" "no" >&6; }
  20293. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20294. _pkg_short_errors_supported=yes
  20295. else
  20296. _pkg_short_errors_supported=no
  20297. fi
  20298. if test $_pkg_short_errors_supported = yes; then
  20299. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20300. else
  20301. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20302. fi
  20303. # Put the nasty error message in config.log where it belongs
  20304. echo "$DECOR_PKG_ERRORS" >&5
  20305. video_libdecor=no
  20306. elif test $pkg_failed = untried; then
  20307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20308. printf "%s\n" "no" >&6; }
  20309. video_libdecor=no
  20310. else
  20311. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20312. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20314. printf "%s\n" "yes" >&6; }
  20315. video_libdecor=yes
  20316. fi
  20317. if test x$video_libdecor = xyes; then
  20318. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20319. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20320. # Check whether --enable-libdecor-shared was given.
  20321. if test ${enable_libdecor_shared+y}
  20322. then :
  20323. enableval=$enable_libdecor_shared;
  20324. else $as_nop
  20325. enable_libdecor_shared=yes
  20326. fi
  20327. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20328. if test x$enable_wayland_shared != xyes; then
  20329. enable_libdecor_shared=no
  20330. fi
  20331. if test x$have_loadso != xyes && \
  20332. test x$enable_libdecor_shared = xyes; then
  20333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20334. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20335. fi
  20336. if test x$have_loadso = xyes && \
  20337. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20338. echo "-- dynamic libdecor -> $decor_lib"
  20339. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20340. else
  20341. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20342. fi
  20343. saved_cflags=$CFLAGS
  20344. CFLAGS="$CFLAGS $DECOR_CFLAGS"
  20345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  20346. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  20347. if test ${ac_cv_c_undeclared_builtin_options+y}
  20348. then :
  20349. printf %s "(cached) " >&6
  20350. else $as_nop
  20351. ac_save_CFLAGS=$CFLAGS
  20352. ac_cv_c_undeclared_builtin_options='cannot detect'
  20353. for ac_arg in '' -fno-builtin; do
  20354. CFLAGS="$ac_save_CFLAGS $ac_arg"
  20355. # This test program should *not* compile successfully.
  20356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20357. /* end confdefs.h. */
  20358. int
  20359. main (void)
  20360. {
  20361. (void) strchr;
  20362. ;
  20363. return 0;
  20364. }
  20365. _ACEOF
  20366. if ac_fn_c_try_compile "$LINENO"
  20367. then :
  20368. else $as_nop
  20369. # This test program should compile successfully.
  20370. # No library function is consistently available on
  20371. # freestanding implementations, so test against a dummy
  20372. # declaration. Include always-available headers on the
  20373. # off chance that they somehow elicit warnings.
  20374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20375. /* end confdefs.h. */
  20376. #include <float.h>
  20377. #include <limits.h>
  20378. #include <stdarg.h>
  20379. #include <stddef.h>
  20380. extern void ac_decl (int, char *);
  20381. int
  20382. main (void)
  20383. {
  20384. (void) ac_decl (0, (char *) 0);
  20385. (void) ac_decl;
  20386. ;
  20387. return 0;
  20388. }
  20389. _ACEOF
  20390. if ac_fn_c_try_compile "$LINENO"
  20391. then :
  20392. if test x"$ac_arg" = x
  20393. then :
  20394. ac_cv_c_undeclared_builtin_options='none needed'
  20395. else $as_nop
  20396. ac_cv_c_undeclared_builtin_options=$ac_arg
  20397. fi
  20398. break
  20399. fi
  20400. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20401. fi
  20402. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20403. done
  20404. CFLAGS=$ac_save_CFLAGS
  20405. fi
  20406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  20407. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  20408. case $ac_cv_c_undeclared_builtin_options in #(
  20409. 'cannot detect') :
  20410. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20411. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20412. as_fn_error $? "cannot make $CC report undeclared builtins
  20413. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  20414. 'none needed') :
  20415. ac_c_undeclared_builtin_options='' ;; #(
  20416. *) :
  20417. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  20418. esac
  20419. ac_fn_check_decl "$LINENO" "libdecor_frame_get_min_content_size" "ac_cv_have_decl_libdecor_frame_get_min_content_size" "#include <libdecor.h>
  20420. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20421. if test "x$ac_cv_have_decl_libdecor_frame_get_min_content_size" = xyes
  20422. then :
  20423. ac_have_decl=1
  20424. else $as_nop
  20425. ac_have_decl=0
  20426. fi
  20427. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MIN_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20428. if test $ac_have_decl = 1
  20429. then :
  20430. libdecor_get_min_max=yes
  20431. fi
  20432. ac_fn_check_decl "$LINENO" "libdecor_frame_get_max_content_size" "ac_cv_have_decl_libdecor_frame_get_max_content_size" "#include <libdecor.h>
  20433. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20434. if test "x$ac_cv_have_decl_libdecor_frame_get_max_content_size" = xyes
  20435. then :
  20436. ac_have_decl=1
  20437. else $as_nop
  20438. ac_have_decl=0
  20439. fi
  20440. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MAX_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20441. if test $ac_have_decl = 1
  20442. then :
  20443. libdecor_get_min_max=yes
  20444. fi
  20445. if test x$libdecor_get_min_max = xyes; then
  20446. printf "%s\n" "#define SDL_HAVE_LIBDECOR_GET_MIN_MAX 1" >>confdefs.h
  20447. fi
  20448. CFLAGS="$saved_cflags"
  20449. fi
  20450. fi
  20451. fi
  20452. fi
  20453. }
  20454. CheckNativeClient()
  20455. {
  20456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20457. /* end confdefs.h. */
  20458. #if !defined(__native_client__)
  20459. #error "NO NACL"
  20460. #endif
  20461. int
  20462. main (void)
  20463. {
  20464. ;
  20465. return 0;
  20466. }
  20467. _ACEOF
  20468. if ac_fn_c_try_compile "$LINENO"
  20469. then :
  20470. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20471. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20472. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20473. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20474. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20475. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20476. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20477. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20478. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20479. SUMMARY_audio="${SUMMARY_audio} nacl"
  20480. have_audio=yes
  20481. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20482. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20483. have_video=yes
  20484. fi
  20485. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20486. }
  20487. CheckRPI()
  20488. {
  20489. # Check whether --enable-video-rpi was given.
  20490. if test ${enable_video_rpi+y}
  20491. then :
  20492. enableval=$enable_video_rpi;
  20493. else $as_nop
  20494. enable_video_rpi=yes
  20495. fi
  20496. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20497. pkg_failed=no
  20498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host" >&5
  20499. printf %s "checking for bcm_host... " >&6; }
  20500. if test -n "$RPI_CFLAGS"; then
  20501. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20502. elif test -n "$PKG_CONFIG"; then
  20503. if test -n "$PKG_CONFIG" && \
  20504. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20505. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20506. ac_status=$?
  20507. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20508. test $ac_status = 0; }; then
  20509. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host" 2>/dev/null`
  20510. test "x$?" != "x0" && pkg_failed=yes
  20511. else
  20512. pkg_failed=yes
  20513. fi
  20514. else
  20515. pkg_failed=untried
  20516. fi
  20517. if test -n "$RPI_LIBS"; then
  20518. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20519. elif test -n "$PKG_CONFIG"; then
  20520. if test -n "$PKG_CONFIG" && \
  20521. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20522. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20523. ac_status=$?
  20524. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20525. test $ac_status = 0; }; then
  20526. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host" 2>/dev/null`
  20527. test "x$?" != "x0" && pkg_failed=yes
  20528. else
  20529. pkg_failed=yes
  20530. fi
  20531. else
  20532. pkg_failed=untried
  20533. fi
  20534. if test $pkg_failed = yes; then
  20535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20536. printf "%s\n" "no" >&6; }
  20537. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20538. _pkg_short_errors_supported=yes
  20539. else
  20540. _pkg_short_errors_supported=no
  20541. fi
  20542. if test $_pkg_short_errors_supported = yes; then
  20543. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host" 2>&1`
  20544. else
  20545. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host" 2>&1`
  20546. fi
  20547. # Put the nasty error message in config.log where it belongs
  20548. echo "$RPI_PKG_ERRORS" >&5
  20549. video_rpi=no
  20550. elif test $pkg_failed = untried; then
  20551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20552. printf "%s\n" "no" >&6; }
  20553. video_rpi=no
  20554. else
  20555. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20556. RPI_LIBS=$pkg_cv_RPI_LIBS
  20557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20558. printf "%s\n" "yes" >&6; }
  20559. video_rpi=yes
  20560. fi
  20561. pkg_failed=no
  20562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for brcmegl" >&5
  20563. printf %s "checking for brcmegl... " >&6; }
  20564. if test -n "$RPI_EGL_CFLAGS"; then
  20565. pkg_cv_RPI_EGL_CFLAGS="$RPI_EGL_CFLAGS"
  20566. elif test -n "$PKG_CONFIG"; then
  20567. if test -n "$PKG_CONFIG" && \
  20568. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20569. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20570. ac_status=$?
  20571. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20572. test $ac_status = 0; }; then
  20573. pkg_cv_RPI_EGL_CFLAGS=`$PKG_CONFIG --cflags "brcmegl" 2>/dev/null`
  20574. test "x$?" != "x0" && pkg_failed=yes
  20575. else
  20576. pkg_failed=yes
  20577. fi
  20578. else
  20579. pkg_failed=untried
  20580. fi
  20581. if test -n "$RPI_EGL_LIBS"; then
  20582. pkg_cv_RPI_EGL_LIBS="$RPI_EGL_LIBS"
  20583. elif test -n "$PKG_CONFIG"; then
  20584. if test -n "$PKG_CONFIG" && \
  20585. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20586. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20587. ac_status=$?
  20588. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20589. test $ac_status = 0; }; then
  20590. pkg_cv_RPI_EGL_LIBS=`$PKG_CONFIG --libs "brcmegl" 2>/dev/null`
  20591. test "x$?" != "x0" && pkg_failed=yes
  20592. else
  20593. pkg_failed=yes
  20594. fi
  20595. else
  20596. pkg_failed=untried
  20597. fi
  20598. if test $pkg_failed = yes; then
  20599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20600. printf "%s\n" "no" >&6; }
  20601. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20602. _pkg_short_errors_supported=yes
  20603. else
  20604. _pkg_short_errors_supported=no
  20605. fi
  20606. if test $_pkg_short_errors_supported = yes; then
  20607. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "brcmegl" 2>&1`
  20608. else
  20609. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "brcmegl" 2>&1`
  20610. fi
  20611. # Put the nasty error message in config.log where it belongs
  20612. echo "$RPI_EGL_PKG_ERRORS" >&5
  20613. video_rpi_egl=no
  20614. elif test $pkg_failed = untried; then
  20615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20616. printf "%s\n" "no" >&6; }
  20617. video_rpi_egl=no
  20618. else
  20619. RPI_EGL_CFLAGS=$pkg_cv_RPI_EGL_CFLAGS
  20620. RPI_EGL_LIBS=$pkg_cv_RPI_EGL_LIBS
  20621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20622. printf "%s\n" "yes" >&6; }
  20623. video_rpi_egl=yes
  20624. fi
  20625. if test x$video_rpi = xno; then
  20626. if test x$ARCH = xnetbsd; then
  20627. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20628. RPI_LIBS="-L/usr/pkg/lib -lbcm_host"
  20629. else
  20630. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20631. RPI_LIBS="-L/opt/vc/lib -lbcm_host"
  20632. fi
  20633. fi
  20634. if test x$video_rpi_egl = xno; then
  20635. if test x$ARCH = xnetbsd; then
  20636. RPI_EGL_LIBS="-Wl,-R/usr/pkg/lib"
  20637. else
  20638. RPI_EGL_LIBS="-Wl,-rpath,/opt/vc/lib"
  20639. fi
  20640. fi
  20641. # Save the original compiler flags and libraries
  20642. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20643. # Add the Raspberry Pi compiler flags and libraries
  20644. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_EGL_LIBS $RPI_LIBS"
  20645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 0-3" >&5
  20646. printf %s "checking for Raspberry Pi 0-3... " >&6; }
  20647. have_video_rpi=no
  20648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20649. /* end confdefs.h. */
  20650. #include <bcm_host.h>
  20651. int
  20652. main (void)
  20653. {
  20654. bcm_host_init();
  20655. ;
  20656. return 0;
  20657. }
  20658. _ACEOF
  20659. if ac_fn_c_try_link "$LINENO"
  20660. then :
  20661. have_video_rpi=yes
  20662. fi
  20663. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20664. conftest$ac_exeext conftest.$ac_ext
  20665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20666. printf "%s\n" "$have_video_rpi" >&6; }
  20667. # Restore the compiler flags and libraries
  20668. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20669. if test x$have_video_rpi = xyes; then
  20670. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20671. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20672. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20673. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_EGL_LIBS $RPI_LIBS"
  20674. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20675. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20676. SUMMARY_video="${SUMMARY_video} rpi"
  20677. have_video=yes
  20678. fi
  20679. fi
  20680. }
  20681. CheckX11()
  20682. {
  20683. # Check whether --enable-video-x11 was given.
  20684. if test ${enable_video_x11+y}
  20685. then :
  20686. enableval=$enable_video_x11;
  20687. else $as_nop
  20688. enable_video_x11=yes
  20689. case "$host" in
  20690. *-*-darwin*|*-ios-*)
  20691. enable_video_x11=no
  20692. ;;
  20693. esac
  20694. fi
  20695. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20696. case "$host" in
  20697. *-*-darwin*)
  20698. # This isn't necessary for X11, but fixes GLX detection
  20699. if test "x$x_includes" = xNONE && \
  20700. test "x$x_libraries" = xNONE && \
  20701. test -d /opt/X11/include && \
  20702. test -d /opt/X11/lib; then
  20703. x_includes="/opt/X11/include"
  20704. x_libraries="/opt/X11/lib"
  20705. fi
  20706. ;;
  20707. esac
  20708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20709. printf %s "checking for X... " >&6; }
  20710. # Check whether --with-x was given.
  20711. if test ${with_x+y}
  20712. then :
  20713. withval=$with_x;
  20714. fi
  20715. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20716. if test "x$with_x" = xno; then
  20717. # The user explicitly disabled X.
  20718. have_x=disabled
  20719. else
  20720. case $x_includes,$x_libraries in #(
  20721. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20722. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20723. then :
  20724. printf %s "(cached) " >&6
  20725. else $as_nop
  20726. # One or both of the vars are not set, and there is no cached value.
  20727. ac_x_includes=no
  20728. ac_x_libraries=no
  20729. # Do we need to do anything special at all?
  20730. ac_save_LIBS=$LIBS
  20731. LIBS="-lX11 $LIBS"
  20732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20733. /* end confdefs.h. */
  20734. #include <X11/Xlib.h>
  20735. int
  20736. main (void)
  20737. {
  20738. XrmInitialize ()
  20739. ;
  20740. return 0;
  20741. }
  20742. _ACEOF
  20743. if ac_fn_c_try_link "$LINENO"
  20744. then :
  20745. # We can compile and link X programs with no special options.
  20746. ac_x_includes=
  20747. ac_x_libraries=
  20748. fi
  20749. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20750. conftest$ac_exeext conftest.$ac_ext
  20751. LIBS="$ac_save_LIBS"
  20752. # If that didn't work, only try xmkmf and file system searches
  20753. # for native compilation.
  20754. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20755. then :
  20756. rm -f -r conftest.dir
  20757. if mkdir conftest.dir; then
  20758. cd conftest.dir
  20759. cat >Imakefile <<'_ACEOF'
  20760. incroot:
  20761. @echo incroot='${INCROOT}'
  20762. usrlibdir:
  20763. @echo usrlibdir='${USRLIBDIR}'
  20764. libdir:
  20765. @echo libdir='${LIBDIR}'
  20766. _ACEOF
  20767. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20768. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20769. for ac_var in incroot usrlibdir libdir; do
  20770. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20771. done
  20772. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20773. for ac_extension in a so sl dylib la dll; do
  20774. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20775. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20776. ac_im_usrlibdir=$ac_im_libdir; break
  20777. fi
  20778. done
  20779. # Screen out bogus values from the imake configuration. They are
  20780. # bogus both because they are the default anyway, and because
  20781. # using them would break gcc on systems where it needs fixed includes.
  20782. case $ac_im_incroot in
  20783. /usr/include) ac_x_includes= ;;
  20784. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20785. esac
  20786. case $ac_im_usrlibdir in
  20787. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20788. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20789. esac
  20790. fi
  20791. cd ..
  20792. rm -f -r conftest.dir
  20793. fi
  20794. # Standard set of common directories for X headers.
  20795. # Check X11 before X11Rn because it is often a symlink to the current release.
  20796. ac_x_header_dirs='
  20797. /usr/X11/include
  20798. /usr/X11R7/include
  20799. /usr/X11R6/include
  20800. /usr/X11R5/include
  20801. /usr/X11R4/include
  20802. /usr/include/X11
  20803. /usr/include/X11R7
  20804. /usr/include/X11R6
  20805. /usr/include/X11R5
  20806. /usr/include/X11R4
  20807. /usr/local/X11/include
  20808. /usr/local/X11R7/include
  20809. /usr/local/X11R6/include
  20810. /usr/local/X11R5/include
  20811. /usr/local/X11R4/include
  20812. /usr/local/include/X11
  20813. /usr/local/include/X11R7
  20814. /usr/local/include/X11R6
  20815. /usr/local/include/X11R5
  20816. /usr/local/include/X11R4
  20817. /opt/X11/include
  20818. /usr/X386/include
  20819. /usr/x386/include
  20820. /usr/XFree86/include/X11
  20821. /usr/include
  20822. /usr/local/include
  20823. /usr/unsupported/include
  20824. /usr/athena/include
  20825. /usr/local/x11r5/include
  20826. /usr/lpp/Xamples/include
  20827. /usr/openwin/include
  20828. /usr/openwin/share/include'
  20829. if test "$ac_x_includes" = no; then
  20830. # Guess where to find include files, by looking for Xlib.h.
  20831. # First, try using that file with no special directory specified.
  20832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20833. /* end confdefs.h. */
  20834. #include <X11/Xlib.h>
  20835. _ACEOF
  20836. if ac_fn_c_try_cpp "$LINENO"
  20837. then :
  20838. # We can compile using X headers with no special include directory.
  20839. ac_x_includes=
  20840. else $as_nop
  20841. for ac_dir in $ac_x_header_dirs; do
  20842. if test -r "$ac_dir/X11/Xlib.h"; then
  20843. ac_x_includes=$ac_dir
  20844. break
  20845. fi
  20846. done
  20847. fi
  20848. rm -f conftest.err conftest.i conftest.$ac_ext
  20849. fi # $ac_x_includes = no
  20850. if test "$ac_x_libraries" = no; then
  20851. # Check for the libraries.
  20852. # See if we find them without any special options.
  20853. # Don't add to $LIBS permanently.
  20854. ac_save_LIBS=$LIBS
  20855. LIBS="-lX11 $LIBS"
  20856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20857. /* end confdefs.h. */
  20858. #include <X11/Xlib.h>
  20859. int
  20860. main (void)
  20861. {
  20862. XrmInitialize ()
  20863. ;
  20864. return 0;
  20865. }
  20866. _ACEOF
  20867. if ac_fn_c_try_link "$LINENO"
  20868. then :
  20869. LIBS=$ac_save_LIBS
  20870. # We can link X programs with no special library path.
  20871. ac_x_libraries=
  20872. else $as_nop
  20873. LIBS=$ac_save_LIBS
  20874. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20875. do
  20876. # Don't even attempt the hair of trying to link an X program!
  20877. for ac_extension in a so sl dylib la dll; do
  20878. if test -r "$ac_dir/libX11.$ac_extension"; then
  20879. ac_x_libraries=$ac_dir
  20880. break 2
  20881. fi
  20882. done
  20883. done
  20884. fi
  20885. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20886. conftest$ac_exeext conftest.$ac_ext
  20887. fi # $ac_x_libraries = no
  20888. fi
  20889. # Record the results.
  20890. case $ac_x_includes,$ac_x_libraries in #(
  20891. no,* | *,no | *\'*) :
  20892. # Didn't find X, or a directory has "'" in its name.
  20893. ac_cv_have_x="have_x=no" ;; #(
  20894. *) :
  20895. # Record where we found X for the cache.
  20896. ac_cv_have_x="have_x=yes\
  20897. ac_x_includes='$ac_x_includes'\
  20898. ac_x_libraries='$ac_x_libraries'" ;;
  20899. esac
  20900. fi
  20901. ;; #(
  20902. *) have_x=yes;;
  20903. esac
  20904. eval "$ac_cv_have_x"
  20905. fi # $with_x != no
  20906. if test "$have_x" != yes; then
  20907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20908. printf "%s\n" "$have_x" >&6; }
  20909. no_x=yes
  20910. else
  20911. # If each of the values was on the command line, it overrides each guess.
  20912. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20913. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20914. # Update the cache value to reflect the command line values.
  20915. ac_cv_have_x="have_x=yes\
  20916. ac_x_includes='$x_includes'\
  20917. ac_x_libraries='$x_libraries'"
  20918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20919. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20920. fi
  20921. if test "$no_x" = yes; then
  20922. # Not all programs may use this symbol, but it does not hurt to define it.
  20923. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20924. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20925. else
  20926. if test -n "$x_includes"; then
  20927. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20928. fi
  20929. # It would also be nice to do this for all -L options, not just this one.
  20930. if test -n "$x_libraries"; then
  20931. X_LIBS="$X_LIBS -L$x_libraries"
  20932. # For Solaris; some versions of Sun CC require a space after -R and
  20933. # others require no space. Words are not sufficient . . . .
  20934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20935. printf %s "checking whether -R must be followed by a space... " >&6; }
  20936. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20937. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20938. ac_c_werror_flag=yes
  20939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20940. /* end confdefs.h. */
  20941. int
  20942. main (void)
  20943. {
  20944. ;
  20945. return 0;
  20946. }
  20947. _ACEOF
  20948. if ac_fn_c_try_link "$LINENO"
  20949. then :
  20950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20951. printf "%s\n" "no" >&6; }
  20952. X_LIBS="$X_LIBS -R$x_libraries"
  20953. else $as_nop
  20954. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20956. /* end confdefs.h. */
  20957. int
  20958. main (void)
  20959. {
  20960. ;
  20961. return 0;
  20962. }
  20963. _ACEOF
  20964. if ac_fn_c_try_link "$LINENO"
  20965. then :
  20966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20967. printf "%s\n" "yes" >&6; }
  20968. X_LIBS="$X_LIBS -R $x_libraries"
  20969. else $as_nop
  20970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20971. printf "%s\n" "neither works" >&6; }
  20972. fi
  20973. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20974. conftest$ac_exeext conftest.$ac_ext
  20975. fi
  20976. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20977. conftest$ac_exeext conftest.$ac_ext
  20978. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20979. LIBS=$ac_xsave_LIBS
  20980. fi
  20981. # Check for system-dependent libraries X programs must link with.
  20982. # Do this before checking for the system-independent R6 libraries
  20983. # (-lICE), since we may need -lsocket or whatever for X linking.
  20984. if test "$ISC" = yes; then
  20985. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20986. else
  20987. # Martyn Johnson says this is needed for Ultrix, if the X
  20988. # libraries were built with DECnet support. And Karl Berry says
  20989. # the Alpha needs dnet_stub (dnet does not exist).
  20990. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20992. /* end confdefs.h. */
  20993. /* Override any GCC internal prototype to avoid an error.
  20994. Use char because int might match the return type of a GCC
  20995. builtin and then its argument prototype would still apply. */
  20996. char XOpenDisplay ();
  20997. int
  20998. main (void)
  20999. {
  21000. return XOpenDisplay ();
  21001. ;
  21002. return 0;
  21003. }
  21004. _ACEOF
  21005. if ac_fn_c_try_link "$LINENO"
  21006. then :
  21007. else $as_nop
  21008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  21009. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  21010. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  21011. then :
  21012. printf %s "(cached) " >&6
  21013. else $as_nop
  21014. ac_check_lib_save_LIBS=$LIBS
  21015. LIBS="-ldnet $LIBS"
  21016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21017. /* end confdefs.h. */
  21018. /* Override any GCC internal prototype to avoid an error.
  21019. Use char because int might match the return type of a GCC
  21020. builtin and then its argument prototype would still apply. */
  21021. char dnet_ntoa ();
  21022. int
  21023. main (void)
  21024. {
  21025. return dnet_ntoa ();
  21026. ;
  21027. return 0;
  21028. }
  21029. _ACEOF
  21030. if ac_fn_c_try_link "$LINENO"
  21031. then :
  21032. ac_cv_lib_dnet_dnet_ntoa=yes
  21033. else $as_nop
  21034. ac_cv_lib_dnet_dnet_ntoa=no
  21035. fi
  21036. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21037. conftest$ac_exeext conftest.$ac_ext
  21038. LIBS=$ac_check_lib_save_LIBS
  21039. fi
  21040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  21041. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  21042. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  21043. then :
  21044. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  21045. fi
  21046. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  21047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  21048. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  21049. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  21050. then :
  21051. printf %s "(cached) " >&6
  21052. else $as_nop
  21053. ac_check_lib_save_LIBS=$LIBS
  21054. LIBS="-ldnet_stub $LIBS"
  21055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21056. /* end confdefs.h. */
  21057. /* Override any GCC internal prototype to avoid an error.
  21058. Use char because int might match the return type of a GCC
  21059. builtin and then its argument prototype would still apply. */
  21060. char dnet_ntoa ();
  21061. int
  21062. main (void)
  21063. {
  21064. return dnet_ntoa ();
  21065. ;
  21066. return 0;
  21067. }
  21068. _ACEOF
  21069. if ac_fn_c_try_link "$LINENO"
  21070. then :
  21071. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  21072. else $as_nop
  21073. ac_cv_lib_dnet_stub_dnet_ntoa=no
  21074. fi
  21075. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21076. conftest$ac_exeext conftest.$ac_ext
  21077. LIBS=$ac_check_lib_save_LIBS
  21078. fi
  21079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  21080. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  21081. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  21082. then :
  21083. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  21084. fi
  21085. fi
  21086. fi
  21087. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21088. conftest$ac_exeext conftest.$ac_ext
  21089. LIBS="$ac_xsave_LIBS"
  21090. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  21091. # to get the SysV transport functions.
  21092. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  21093. # needs -lnsl.
  21094. # The nsl library prevents programs from opening the X display
  21095. # on Irix 5.2, according to T.E. Dickey.
  21096. # The functions gethostbyname, getservbyname, and inet_addr are
  21097. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  21098. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  21099. if test "x$ac_cv_func_gethostbyname" = xyes
  21100. then :
  21101. fi
  21102. if test $ac_cv_func_gethostbyname = no; then
  21103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  21104. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  21105. if test ${ac_cv_lib_nsl_gethostbyname+y}
  21106. then :
  21107. printf %s "(cached) " >&6
  21108. else $as_nop
  21109. ac_check_lib_save_LIBS=$LIBS
  21110. LIBS="-lnsl $LIBS"
  21111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21112. /* end confdefs.h. */
  21113. /* Override any GCC internal prototype to avoid an error.
  21114. Use char because int might match the return type of a GCC
  21115. builtin and then its argument prototype would still apply. */
  21116. char gethostbyname ();
  21117. int
  21118. main (void)
  21119. {
  21120. return gethostbyname ();
  21121. ;
  21122. return 0;
  21123. }
  21124. _ACEOF
  21125. if ac_fn_c_try_link "$LINENO"
  21126. then :
  21127. ac_cv_lib_nsl_gethostbyname=yes
  21128. else $as_nop
  21129. ac_cv_lib_nsl_gethostbyname=no
  21130. fi
  21131. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21132. conftest$ac_exeext conftest.$ac_ext
  21133. LIBS=$ac_check_lib_save_LIBS
  21134. fi
  21135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21136. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21137. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  21138. then :
  21139. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21140. fi
  21141. if test $ac_cv_lib_nsl_gethostbyname = no; then
  21142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  21143. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  21144. if test ${ac_cv_lib_bsd_gethostbyname+y}
  21145. then :
  21146. printf %s "(cached) " >&6
  21147. else $as_nop
  21148. ac_check_lib_save_LIBS=$LIBS
  21149. LIBS="-lbsd $LIBS"
  21150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21151. /* end confdefs.h. */
  21152. /* Override any GCC internal prototype to avoid an error.
  21153. Use char because int might match the return type of a GCC
  21154. builtin and then its argument prototype would still apply. */
  21155. char gethostbyname ();
  21156. int
  21157. main (void)
  21158. {
  21159. return gethostbyname ();
  21160. ;
  21161. return 0;
  21162. }
  21163. _ACEOF
  21164. if ac_fn_c_try_link "$LINENO"
  21165. then :
  21166. ac_cv_lib_bsd_gethostbyname=yes
  21167. else $as_nop
  21168. ac_cv_lib_bsd_gethostbyname=no
  21169. fi
  21170. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21171. conftest$ac_exeext conftest.$ac_ext
  21172. LIBS=$ac_check_lib_save_LIBS
  21173. fi
  21174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21175. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  21176. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  21177. then :
  21178. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21179. fi
  21180. fi
  21181. fi
  21182. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  21183. # socket/setsockopt and other routines are undefined under SCO ODT
  21184. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  21185. # on later versions), says Simon Leinen: it contains gethostby*
  21186. # variants that don't use the name server (or something). -lsocket
  21187. # must be given before -lnsl if both are needed. We assume that
  21188. # if connect needs -lnsl, so does gethostbyname.
  21189. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  21190. if test "x$ac_cv_func_connect" = xyes
  21191. then :
  21192. fi
  21193. if test $ac_cv_func_connect = no; then
  21194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  21195. printf %s "checking for connect in -lsocket... " >&6; }
  21196. if test ${ac_cv_lib_socket_connect+y}
  21197. then :
  21198. printf %s "(cached) " >&6
  21199. else $as_nop
  21200. ac_check_lib_save_LIBS=$LIBS
  21201. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21203. /* end confdefs.h. */
  21204. /* Override any GCC internal prototype to avoid an error.
  21205. Use char because int might match the return type of a GCC
  21206. builtin and then its argument prototype would still apply. */
  21207. char connect ();
  21208. int
  21209. main (void)
  21210. {
  21211. return connect ();
  21212. ;
  21213. return 0;
  21214. }
  21215. _ACEOF
  21216. if ac_fn_c_try_link "$LINENO"
  21217. then :
  21218. ac_cv_lib_socket_connect=yes
  21219. else $as_nop
  21220. ac_cv_lib_socket_connect=no
  21221. fi
  21222. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21223. conftest$ac_exeext conftest.$ac_ext
  21224. LIBS=$ac_check_lib_save_LIBS
  21225. fi
  21226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  21227. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  21228. if test "x$ac_cv_lib_socket_connect" = xyes
  21229. then :
  21230. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21231. fi
  21232. fi
  21233. # Guillermo Gomez says -lposix is necessary on A/UX.
  21234. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  21235. if test "x$ac_cv_func_remove" = xyes
  21236. then :
  21237. fi
  21238. if test $ac_cv_func_remove = no; then
  21239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  21240. printf %s "checking for remove in -lposix... " >&6; }
  21241. if test ${ac_cv_lib_posix_remove+y}
  21242. then :
  21243. printf %s "(cached) " >&6
  21244. else $as_nop
  21245. ac_check_lib_save_LIBS=$LIBS
  21246. LIBS="-lposix $LIBS"
  21247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21248. /* end confdefs.h. */
  21249. /* Override any GCC internal prototype to avoid an error.
  21250. Use char because int might match the return type of a GCC
  21251. builtin and then its argument prototype would still apply. */
  21252. char remove ();
  21253. int
  21254. main (void)
  21255. {
  21256. return remove ();
  21257. ;
  21258. return 0;
  21259. }
  21260. _ACEOF
  21261. if ac_fn_c_try_link "$LINENO"
  21262. then :
  21263. ac_cv_lib_posix_remove=yes
  21264. else $as_nop
  21265. ac_cv_lib_posix_remove=no
  21266. fi
  21267. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21268. conftest$ac_exeext conftest.$ac_ext
  21269. LIBS=$ac_check_lib_save_LIBS
  21270. fi
  21271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21272. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21273. if test "x$ac_cv_lib_posix_remove" = xyes
  21274. then :
  21275. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21276. fi
  21277. fi
  21278. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21279. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21280. if test "x$ac_cv_func_shmat" = xyes
  21281. then :
  21282. fi
  21283. if test $ac_cv_func_shmat = no; then
  21284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21285. printf %s "checking for shmat in -lipc... " >&6; }
  21286. if test ${ac_cv_lib_ipc_shmat+y}
  21287. then :
  21288. printf %s "(cached) " >&6
  21289. else $as_nop
  21290. ac_check_lib_save_LIBS=$LIBS
  21291. LIBS="-lipc $LIBS"
  21292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21293. /* end confdefs.h. */
  21294. /* Override any GCC internal prototype to avoid an error.
  21295. Use char because int might match the return type of a GCC
  21296. builtin and then its argument prototype would still apply. */
  21297. char shmat ();
  21298. int
  21299. main (void)
  21300. {
  21301. return shmat ();
  21302. ;
  21303. return 0;
  21304. }
  21305. _ACEOF
  21306. if ac_fn_c_try_link "$LINENO"
  21307. then :
  21308. ac_cv_lib_ipc_shmat=yes
  21309. else $as_nop
  21310. ac_cv_lib_ipc_shmat=no
  21311. fi
  21312. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21313. conftest$ac_exeext conftest.$ac_ext
  21314. LIBS=$ac_check_lib_save_LIBS
  21315. fi
  21316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21317. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21318. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21319. then :
  21320. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21321. fi
  21322. fi
  21323. fi
  21324. # Check for libraries that X11R6 Xt/Xaw programs need.
  21325. ac_save_LDFLAGS=$LDFLAGS
  21326. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21327. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21328. # check for ICE first), but we must link in the order -lSM -lICE or
  21329. # we get undefined symbols. So assume we have SM if we have ICE.
  21330. # These have to be linked with before -lX11, unlike the other
  21331. # libraries we check for below, so use a different variable.
  21332. # John Interrante, Karl Berry
  21333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21334. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21335. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21336. then :
  21337. printf %s "(cached) " >&6
  21338. else $as_nop
  21339. ac_check_lib_save_LIBS=$LIBS
  21340. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21342. /* end confdefs.h. */
  21343. /* Override any GCC internal prototype to avoid an error.
  21344. Use char because int might match the return type of a GCC
  21345. builtin and then its argument prototype would still apply. */
  21346. char IceConnectionNumber ();
  21347. int
  21348. main (void)
  21349. {
  21350. return IceConnectionNumber ();
  21351. ;
  21352. return 0;
  21353. }
  21354. _ACEOF
  21355. if ac_fn_c_try_link "$LINENO"
  21356. then :
  21357. ac_cv_lib_ICE_IceConnectionNumber=yes
  21358. else $as_nop
  21359. ac_cv_lib_ICE_IceConnectionNumber=no
  21360. fi
  21361. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21362. conftest$ac_exeext conftest.$ac_ext
  21363. LIBS=$ac_check_lib_save_LIBS
  21364. fi
  21365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21366. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21367. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21368. then :
  21369. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21370. fi
  21371. LDFLAGS=$ac_save_LDFLAGS
  21372. fi
  21373. if test x$have_x = xyes; then
  21374. # Check whether --enable-x11-shared was given.
  21375. if test ${enable_x11_shared+y}
  21376. then :
  21377. enableval=$enable_x11_shared;
  21378. else $as_nop
  21379. enable_x11_shared=maybe
  21380. fi
  21381. case "$host" in
  21382. *-*-darwin*)
  21383. # Apple now puts this in /opt/X11
  21384. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21385. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21386. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21387. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21388. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21389. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21390. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21391. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21392. ;;
  21393. *-*-openbsd*)
  21394. x11_lib='libX11.so'
  21395. x11ext_lib='libXext.so'
  21396. xcursor_lib='libXcursor.so'
  21397. xinput_lib='libXi.so'
  21398. xfixes_lib='libXfixes.so'
  21399. xrandr_lib='libXrandr.so'
  21400. xrender_lib='libXrender.so'
  21401. xss_lib='libXss.so'
  21402. ;;
  21403. *)
  21404. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21405. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21406. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21407. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21408. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21409. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21410. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21411. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21412. ;;
  21413. esac
  21414. if test x$ac_cv_func_shmat != xyes; then
  21415. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21416. fi
  21417. CFLAGS="$CFLAGS $X_CFLAGS"
  21418. LDFLAGS="$LDFLAGS $X_LIBS"
  21419. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21420. #include <X11/Xproto.h>
  21421. "
  21422. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21423. then :
  21424. have_xext_h_hdr=yes
  21425. else $as_nop
  21426. have_xext_h_hdr=no
  21427. fi
  21428. if test x$have_xext_h_hdr != xyes; then
  21429. as_fn_error $? "
  21430. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21431. " "$LINENO" 5
  21432. fi
  21433. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21434. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21435. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21436. # Needed so SDL applications can include SDL_syswm.h
  21437. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21438. if test x$enable_x11_shared = xmaybe; then
  21439. enable_x11_shared=yes
  21440. fi
  21441. if test x$have_loadso != xyes && \
  21442. test x$enable_x11_shared = xyes; then
  21443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21444. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21445. enable_x11_shared=no
  21446. fi
  21447. if test x$have_loadso = xyes && \
  21448. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21449. echo "-- dynamic libX11 -> $x11_lib"
  21450. echo "-- dynamic libX11ext -> $x11ext_lib"
  21451. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21452. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21453. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21454. else
  21455. enable_x11_shared=no
  21456. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21457. SUMMARY_video="${SUMMARY_video} x11"
  21458. fi
  21459. have_video=yes
  21460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21461. printf %s "checking for XGenericEvent... " >&6; }
  21462. have_XGenericEvent=no
  21463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21464. /* end confdefs.h. */
  21465. #include <X11/Xlib.h>
  21466. int
  21467. main (void)
  21468. {
  21469. Display *display;
  21470. XEvent event;
  21471. XGenericEventCookie *cookie = &event.xcookie;
  21472. XNextEvent(display, &event);
  21473. XGetEventData(display, cookie);
  21474. XFreeEventData(display, cookie);
  21475. ;
  21476. return 0;
  21477. }
  21478. _ACEOF
  21479. if ac_fn_c_try_compile "$LINENO"
  21480. then :
  21481. have_XGenericEvent=yes
  21482. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21483. fi
  21484. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21486. printf "%s\n" "$have_XGenericEvent" >&6; }
  21487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21488. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21489. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21490. then :
  21491. printf %s "(cached) " >&6
  21492. else $as_nop
  21493. ac_check_lib_save_LIBS=$LIBS
  21494. LIBS="-lX11 $LIBS"
  21495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21496. /* end confdefs.h. */
  21497. /* Override any GCC internal prototype to avoid an error.
  21498. Use char because int might match the return type of a GCC
  21499. builtin and then its argument prototype would still apply. */
  21500. char XkbKeycodeToKeysym ();
  21501. int
  21502. main (void)
  21503. {
  21504. return XkbKeycodeToKeysym ();
  21505. ;
  21506. return 0;
  21507. }
  21508. _ACEOF
  21509. if ac_fn_c_try_link "$LINENO"
  21510. then :
  21511. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21512. else $as_nop
  21513. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21514. fi
  21515. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21516. conftest$ac_exeext conftest.$ac_ext
  21517. LIBS=$ac_check_lib_save_LIBS
  21518. fi
  21519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21520. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21521. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21522. then :
  21523. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21524. fi
  21525. # Check whether --enable-video-x11-xcursor was given.
  21526. if test ${enable_video_x11_xcursor+y}
  21527. then :
  21528. enableval=$enable_video_x11_xcursor;
  21529. else $as_nop
  21530. enable_video_x11_xcursor=yes
  21531. fi
  21532. if test x$enable_video_x11_xcursor = xyes; then
  21533. definitely_enable_video_x11_xcursor=no
  21534. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21535. "
  21536. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21537. then :
  21538. have_xcursor_h_hdr=yes
  21539. else $as_nop
  21540. have_xcursor_h_hdr=no
  21541. fi
  21542. if test x$have_xcursor_h_hdr = xyes; then
  21543. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21544. echo "-- dynamic libXcursor -> $xcursor_lib"
  21545. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21546. definitely_enable_video_x11_xcursor=yes
  21547. else
  21548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21549. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21550. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21551. then :
  21552. printf %s "(cached) " >&6
  21553. else $as_nop
  21554. ac_check_lib_save_LIBS=$LIBS
  21555. LIBS="-lXcursor $LIBS"
  21556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21557. /* end confdefs.h. */
  21558. /* Override any GCC internal prototype to avoid an error.
  21559. Use char because int might match the return type of a GCC
  21560. builtin and then its argument prototype would still apply. */
  21561. char XcursorImageCreate ();
  21562. int
  21563. main (void)
  21564. {
  21565. return XcursorImageCreate ();
  21566. ;
  21567. return 0;
  21568. }
  21569. _ACEOF
  21570. if ac_fn_c_try_link "$LINENO"
  21571. then :
  21572. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21573. else $as_nop
  21574. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21575. fi
  21576. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21577. conftest$ac_exeext conftest.$ac_ext
  21578. LIBS=$ac_check_lib_save_LIBS
  21579. fi
  21580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21581. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21582. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21583. then :
  21584. have_xcursor_lib=yes
  21585. fi
  21586. if test x$have_xcursor_lib = xyes ; then
  21587. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21588. definitely_enable_video_x11_xcursor=yes
  21589. fi
  21590. fi
  21591. fi
  21592. fi
  21593. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21594. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21595. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21596. fi
  21597. # Check whether --enable-video-x11-xdbe was given.
  21598. if test ${enable_video_x11_xdbe+y}
  21599. then :
  21600. enableval=$enable_video_x11_xdbe;
  21601. else $as_nop
  21602. enable_video_x11_xdbe=yes
  21603. fi
  21604. if test x$enable_video_x11_xdbe = xyes; then
  21605. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21606. "
  21607. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21608. then :
  21609. have_dbe_h_hdr=yes
  21610. else $as_nop
  21611. have_dbe_h_hdr=no
  21612. fi
  21613. if test x$have_dbe_h_hdr = xyes; then
  21614. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21615. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21616. fi
  21617. fi
  21618. # Check whether --enable-video-x11-xinput was given.
  21619. if test ${enable_video_x11_xinput+y}
  21620. then :
  21621. enableval=$enable_video_x11_xinput;
  21622. else $as_nop
  21623. enable_video_x11_xinput=yes
  21624. fi
  21625. if test x$enable_video_x11_xinput = xyes; then
  21626. definitely_enable_video_x11_xinput=no
  21627. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21628. "
  21629. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21630. then :
  21631. have_xinput_h_hdr=yes
  21632. else $as_nop
  21633. have_xinput_h_hdr=no
  21634. fi
  21635. if test x$have_xinput_h_hdr = xyes; then
  21636. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21637. echo "-- dynamic libXi -> $xinput_lib"
  21638. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21639. definitely_enable_video_x11_xinput=yes
  21640. else
  21641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21642. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21643. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21644. then :
  21645. printf %s "(cached) " >&6
  21646. else $as_nop
  21647. ac_check_lib_save_LIBS=$LIBS
  21648. LIBS="-lXi $LIBS"
  21649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21650. /* end confdefs.h. */
  21651. /* Override any GCC internal prototype to avoid an error.
  21652. Use char because int might match the return type of a GCC
  21653. builtin and then its argument prototype would still apply. */
  21654. char XOpenDevice ();
  21655. int
  21656. main (void)
  21657. {
  21658. return XOpenDevice ();
  21659. ;
  21660. return 0;
  21661. }
  21662. _ACEOF
  21663. if ac_fn_c_try_link "$LINENO"
  21664. then :
  21665. ac_cv_lib_Xi_XOpenDevice=yes
  21666. else $as_nop
  21667. ac_cv_lib_Xi_XOpenDevice=no
  21668. fi
  21669. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21670. conftest$ac_exeext conftest.$ac_ext
  21671. LIBS=$ac_check_lib_save_LIBS
  21672. fi
  21673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21674. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21675. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21676. then :
  21677. have_xinput_lib=yes
  21678. fi
  21679. if test x$have_xinput_lib = xyes ; then
  21680. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21681. definitely_enable_video_x11_xinput=yes
  21682. fi
  21683. fi
  21684. fi
  21685. fi
  21686. if test x$definitely_enable_video_x11_xinput = xyes; then
  21687. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21688. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21690. printf %s "checking for xinput2 multitouch... " >&6; }
  21691. have_xinput2_multitouch=no
  21692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21693. /* end confdefs.h. */
  21694. #include <X11/Xlib.h>
  21695. #include <X11/Xproto.h>
  21696. #include <X11/extensions/XInput2.h>
  21697. int
  21698. main (void)
  21699. {
  21700. int event_type = XI_TouchBegin;
  21701. XITouchClassInfo *t;
  21702. ;
  21703. return 0;
  21704. }
  21705. _ACEOF
  21706. if ac_fn_c_try_compile "$LINENO"
  21707. then :
  21708. have_xinput2_multitouch=yes
  21709. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21710. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21711. fi
  21712. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21714. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21715. fi
  21716. # Check whether --enable-video-x11-xfixes was given.
  21717. if test ${enable_video_x11_xfixes+y}
  21718. then :
  21719. enableval=$enable_video_x11_xfixes;
  21720. else $as_nop
  21721. enable_video_x11_xfixes=yes
  21722. fi
  21723. if test x$enable_video_x11_xfixes = xyes; then
  21724. definitely_enable_video_x11_xfixes=no
  21725. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21727. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21729. /* end confdefs.h. */
  21730. #include <X11/Xlib.h>
  21731. #include <X11/Xproto.h>
  21732. #include <X11/extensions/XInput2.h>
  21733. #include <X11/extensions/Xfixes.h>
  21734. int
  21735. main (void)
  21736. {
  21737. BarrierEventID b;
  21738. ;
  21739. return 0;
  21740. }
  21741. _ACEOF
  21742. if ac_fn_c_try_compile "$LINENO"
  21743. then :
  21744. have_xfixes_h_hdr=yes
  21745. else $as_nop
  21746. have_xfixes_h_hdr=no
  21747. fi
  21748. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21750. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21751. if test x$have_xfixes_h_hdr = xyes; then
  21752. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21753. echo "-- dynamic libXfixes -> $xfixes_lib"
  21754. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21755. definitely_enable_video_x11_xfixes=yes
  21756. else
  21757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21758. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21759. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21760. then :
  21761. printf %s "(cached) " >&6
  21762. else $as_nop
  21763. ac_check_lib_save_LIBS=$LIBS
  21764. LIBS="-lXfixes $LIBS"
  21765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21766. /* end confdefs.h. */
  21767. /* Override any GCC internal prototype to avoid an error.
  21768. Use char because int might match the return type of a GCC
  21769. builtin and then its argument prototype would still apply. */
  21770. char XFixesCreatePointerBarrier ();
  21771. int
  21772. main (void)
  21773. {
  21774. return XFixesCreatePointerBarrier ();
  21775. ;
  21776. return 0;
  21777. }
  21778. _ACEOF
  21779. if ac_fn_c_try_link "$LINENO"
  21780. then :
  21781. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21782. else $as_nop
  21783. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21784. fi
  21785. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21786. conftest$ac_exeext conftest.$ac_ext
  21787. LIBS=$ac_check_lib_save_LIBS
  21788. fi
  21789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21790. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21791. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21792. then :
  21793. have_xfixes_lib=yes
  21794. fi
  21795. if test x$have_xfixes_lib = xyes ; then
  21796. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21797. definitely_enable_video_x11_xfixes=yes
  21798. fi
  21799. fi
  21800. fi
  21801. fi
  21802. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21803. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21804. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21805. fi
  21806. # Check whether --enable-video-x11-xrandr was given.
  21807. if test ${enable_video_x11_xrandr+y}
  21808. then :
  21809. enableval=$enable_video_x11_xrandr;
  21810. else $as_nop
  21811. enable_video_x11_xrandr=yes
  21812. fi
  21813. if test x$enable_video_x11_xrandr = xyes; then
  21814. definitely_enable_video_x11_xrandr=no
  21815. have_xrandr_h_hdr=no
  21816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21817. /* end confdefs.h. */
  21818. #include <X11/Xlib.h>
  21819. #include <X11/extensions/Xrandr.h>
  21820. int
  21821. main (void)
  21822. {
  21823. XRRScreenResources *res = NULL;
  21824. ;
  21825. return 0;
  21826. }
  21827. _ACEOF
  21828. if ac_fn_c_try_compile "$LINENO"
  21829. then :
  21830. have_xrandr_h_hdr=yes
  21831. fi
  21832. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21833. if test x$have_xrandr_h_hdr = xyes; then
  21834. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21835. echo "-- dynamic libXrandr -> $xrandr_lib"
  21836. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21837. definitely_enable_video_x11_xrandr=yes
  21838. else
  21839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21840. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21841. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21842. then :
  21843. printf %s "(cached) " >&6
  21844. else $as_nop
  21845. ac_check_lib_save_LIBS=$LIBS
  21846. LIBS="-lXrandr $LIBS"
  21847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21848. /* end confdefs.h. */
  21849. /* Override any GCC internal prototype to avoid an error.
  21850. Use char because int might match the return type of a GCC
  21851. builtin and then its argument prototype would still apply. */
  21852. char XRRQueryExtension ();
  21853. int
  21854. main (void)
  21855. {
  21856. return XRRQueryExtension ();
  21857. ;
  21858. return 0;
  21859. }
  21860. _ACEOF
  21861. if ac_fn_c_try_link "$LINENO"
  21862. then :
  21863. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21864. else $as_nop
  21865. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21866. fi
  21867. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21868. conftest$ac_exeext conftest.$ac_ext
  21869. LIBS=$ac_check_lib_save_LIBS
  21870. fi
  21871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21872. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21873. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21874. then :
  21875. have_xrandr_lib=yes
  21876. fi
  21877. if test x$have_xrandr_lib = xyes ; then
  21878. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21879. definitely_enable_video_x11_xrandr=yes
  21880. fi
  21881. fi
  21882. fi
  21883. fi
  21884. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21885. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21886. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21887. fi
  21888. # Check whether --enable-video-x11-scrnsaver was given.
  21889. if test ${enable_video_x11_scrnsaver+y}
  21890. then :
  21891. enableval=$enable_video_x11_scrnsaver;
  21892. else $as_nop
  21893. enable_video_x11_scrnsaver=yes
  21894. fi
  21895. if test x$enable_video_x11_scrnsaver = xyes; then
  21896. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21897. "
  21898. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21899. then :
  21900. have_scrnsaver_h_hdr=yes
  21901. else $as_nop
  21902. have_scrnsaver_h_hdr=no
  21903. fi
  21904. if test x$have_scrnsaver_h_hdr = xyes; then
  21905. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21906. echo "-- dynamic libXss -> $xss_lib"
  21907. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21908. definitely_enable_video_x11_scrnsaver=yes
  21909. else
  21910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21911. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21912. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21913. then :
  21914. printf %s "(cached) " >&6
  21915. else $as_nop
  21916. ac_check_lib_save_LIBS=$LIBS
  21917. LIBS="-lXss $LIBS"
  21918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21919. /* end confdefs.h. */
  21920. /* Override any GCC internal prototype to avoid an error.
  21921. Use char because int might match the return type of a GCC
  21922. builtin and then its argument prototype would still apply. */
  21923. char XScreenSaverSuspend ();
  21924. int
  21925. main (void)
  21926. {
  21927. return XScreenSaverSuspend ();
  21928. ;
  21929. return 0;
  21930. }
  21931. _ACEOF
  21932. if ac_fn_c_try_link "$LINENO"
  21933. then :
  21934. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21935. else $as_nop
  21936. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21937. fi
  21938. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21939. conftest$ac_exeext conftest.$ac_ext
  21940. LIBS=$ac_check_lib_save_LIBS
  21941. fi
  21942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21943. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21944. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21945. then :
  21946. have_xss_lib=yes
  21947. fi
  21948. if test x$have_xss_lib = xyes ; then
  21949. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21950. definitely_enable_video_x11_scrnsaver=yes
  21951. fi
  21952. fi
  21953. fi
  21954. fi
  21955. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21956. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21957. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21958. fi
  21959. # Check whether --enable-video-x11-xshape was given.
  21960. if test ${enable_video_x11_xshape+y}
  21961. then :
  21962. enableval=$enable_video_x11_xshape;
  21963. else $as_nop
  21964. enable_video_x11_xshape=yes
  21965. fi
  21966. if test x$enable_video_x11_xshape = xyes; then
  21967. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21968. "
  21969. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21970. then :
  21971. have_shape_h_hdr=yes
  21972. else $as_nop
  21973. have_shape_h_hdr=no
  21974. fi
  21975. if test x$have_shape_h_hdr = xyes; then
  21976. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21977. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21978. fi
  21979. fi
  21980. fi
  21981. fi
  21982. if test x$have_x != xyes; then
  21983. # Prevent Mesa from including X11 headers
  21984. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21985. fi
  21986. }
  21987. CheckVivanteVideo()
  21988. {
  21989. # Check whether --enable-video-vivante was given.
  21990. if test ${enable_video_vivante+y}
  21991. then :
  21992. enableval=$enable_video_vivante;
  21993. else $as_nop
  21994. enable_video_vivante=yes
  21995. fi
  21996. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21998. printf %s "checking for Vivante VDK API... " >&6; }
  21999. have_vivante_vdk=no
  22000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22001. /* end confdefs.h. */
  22002. #define LINUX
  22003. #define EGL_API_FB
  22004. #include <gc_vdk.h>
  22005. int
  22006. main (void)
  22007. {
  22008. ;
  22009. return 0;
  22010. }
  22011. _ACEOF
  22012. if ac_fn_c_try_compile "$LINENO"
  22013. then :
  22014. have_vivante_vdk=yes
  22015. fi
  22016. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  22018. printf "%s\n" "$have_vivante_vdk" >&6; }
  22019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  22020. printf %s "checking for Vivante FB API... " >&6; }
  22021. have_vivante_egl=no
  22022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22023. /* end confdefs.h. */
  22024. #define LINUX
  22025. #define EGL_API_FB
  22026. #include <EGL/eglvivante.h>
  22027. int
  22028. main (void)
  22029. {
  22030. ;
  22031. return 0;
  22032. }
  22033. _ACEOF
  22034. if ac_fn_c_try_compile "$LINENO"
  22035. then :
  22036. have_vivante_egl=yes
  22037. fi
  22038. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  22040. printf "%s\n" "$have_vivante_egl" >&6; }
  22041. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  22042. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  22043. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  22044. if test x$have_vivante_vdk = xyes; then
  22045. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  22046. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  22047. fi
  22048. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  22049. SUMMARY_video="${SUMMARY_video} vivante"
  22050. have_video=yes
  22051. fi
  22052. fi
  22053. }
  22054. CheckHaikuVideo()
  22055. {
  22056. if test x$enable_video = xyes; then
  22057. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  22058. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  22059. have_video=yes
  22060. SUMMARY_video="${SUMMARY_video} haiku"
  22061. fi
  22062. }
  22063. CheckCOCOA()
  22064. {
  22065. # Check whether --enable-video-cocoa was given.
  22066. if test ${enable_video_cocoa+y}
  22067. then :
  22068. enableval=$enable_video_cocoa;
  22069. else $as_nop
  22070. enable_video_cocoa=yes
  22071. fi
  22072. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  22073. save_CFLAGS="$CFLAGS"
  22074. CFLAGS="$CFLAGS -x objective-c"
  22075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  22076. printf %s "checking for Cocoa framework... " >&6; }
  22077. have_cocoa=no
  22078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22079. /* end confdefs.h. */
  22080. #import <Cocoa/Cocoa.h>
  22081. int
  22082. main (void)
  22083. {
  22084. ;
  22085. return 0;
  22086. }
  22087. _ACEOF
  22088. if ac_fn_c_try_compile "$LINENO"
  22089. then :
  22090. have_cocoa=yes
  22091. fi
  22092. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  22094. printf "%s\n" "$have_cocoa" >&6; }
  22095. CFLAGS="$save_CFLAGS"
  22096. if test x$have_cocoa = xyes; then
  22097. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  22098. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  22099. SUMMARY_video="${SUMMARY_video} cocoa"
  22100. have_video=yes
  22101. fi
  22102. fi
  22103. }
  22104. CheckMETAL()
  22105. {
  22106. # Check whether --enable-video-metal was given.
  22107. if test ${enable_video_metal+y}
  22108. then :
  22109. enableval=$enable_video_metal;
  22110. else $as_nop
  22111. enable_video_metal=yes
  22112. fi
  22113. # Check whether --enable-render-metal was given.
  22114. if test ${enable_render_metal+y}
  22115. then :
  22116. enableval=$enable_render_metal;
  22117. else $as_nop
  22118. enable_render_metal=yes
  22119. fi
  22120. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  22121. save_CFLAGS="$CFLAGS"
  22122. CFLAGS="$CFLAGS -x objective-c"
  22123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  22124. printf %s "checking for Metal framework... " >&6; }
  22125. have_metal=no
  22126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22127. /* end confdefs.h. */
  22128. #import <Cocoa/Cocoa.h>
  22129. #import <Metal/Metal.h>
  22130. #import <QuartzCore/CAMetalLayer.h>
  22131. #if TARGET_CPU_X86
  22132. #error Metal doesn't work on this configuration
  22133. #endif
  22134. int
  22135. main (void)
  22136. {
  22137. ;
  22138. return 0;
  22139. }
  22140. _ACEOF
  22141. if ac_fn_c_try_compile "$LINENO"
  22142. then :
  22143. have_metal=yes
  22144. fi
  22145. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22146. CFLAGS="$save_CFLAGS"
  22147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  22148. printf "%s\n" "$have_metal" >&6; }
  22149. if test x$have_metal = xyes; then
  22150. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  22151. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  22152. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  22153. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  22154. fi
  22155. SUMMARY_video="${SUMMARY_video} metal"
  22156. else
  22157. enable_video_metal=no
  22158. enable_render_metal=no
  22159. fi
  22160. fi
  22161. }
  22162. CheckDirectFB()
  22163. {
  22164. # Check whether --enable-video-directfb was given.
  22165. if test ${enable_video_directfb+y}
  22166. then :
  22167. enableval=$enable_video_directfb;
  22168. else $as_nop
  22169. enable_video_directfb=no
  22170. fi
  22171. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  22172. pkg_failed=no
  22173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  22174. printf %s "checking for directfb >= 1.0.0... " >&6; }
  22175. if test -n "$DIRECTFB_CFLAGS"; then
  22176. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  22177. elif test -n "$PKG_CONFIG"; then
  22178. if test -n "$PKG_CONFIG" && \
  22179. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22180. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22181. ac_status=$?
  22182. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22183. test $ac_status = 0; }; then
  22184. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  22185. test "x$?" != "x0" && pkg_failed=yes
  22186. else
  22187. pkg_failed=yes
  22188. fi
  22189. else
  22190. pkg_failed=untried
  22191. fi
  22192. if test -n "$DIRECTFB_LIBS"; then
  22193. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  22194. elif test -n "$PKG_CONFIG"; then
  22195. if test -n "$PKG_CONFIG" && \
  22196. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22197. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22198. ac_status=$?
  22199. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22200. test $ac_status = 0; }; then
  22201. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  22202. test "x$?" != "x0" && pkg_failed=yes
  22203. else
  22204. pkg_failed=yes
  22205. fi
  22206. else
  22207. pkg_failed=untried
  22208. fi
  22209. if test $pkg_failed = yes; then
  22210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22211. printf "%s\n" "no" >&6; }
  22212. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22213. _pkg_short_errors_supported=yes
  22214. else
  22215. _pkg_short_errors_supported=no
  22216. fi
  22217. if test $_pkg_short_errors_supported = yes; then
  22218. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22219. else
  22220. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22221. fi
  22222. # Put the nasty error message in config.log where it belongs
  22223. echo "$DIRECTFB_PKG_ERRORS" >&5
  22224. video_directfb=no
  22225. elif test $pkg_failed = untried; then
  22226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22227. printf "%s\n" "no" >&6; }
  22228. video_directfb=no
  22229. else
  22230. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  22231. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  22232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22233. printf "%s\n" "yes" >&6; }
  22234. video_directfb=yes
  22235. fi
  22236. if test x$video_directfb = xyes; then
  22237. # SuSE 11.1 installs directfb-config without directfb-devel
  22238. save_CPPFLAGS="$CPPFLAGS"
  22239. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  22240. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  22241. if test "x$ac_cv_header_directfb_h" = xyes
  22242. then :
  22243. have_directfb_hdr=yes
  22244. else $as_nop
  22245. have_directfb_hdr=no
  22246. fi
  22247. CPPFLAGS="$save_CPPFLAGS"
  22248. video_directfb=$have_directfb_hdr
  22249. fi
  22250. if test x$video_directfb = xyes; then
  22251. # Check whether --enable-directfb-shared was given.
  22252. if test ${enable_directfb_shared+y}
  22253. then :
  22254. enableval=$enable_directfb_shared;
  22255. else $as_nop
  22256. enable_directfb_shared=yes
  22257. fi
  22258. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22259. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22260. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22261. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22262. directfb_shared=no
  22263. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22264. if test x$have_loadso != xyes && \
  22265. test x$enable_directfb_shared = xyes; then
  22266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22267. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22268. fi
  22269. if test x$have_loadso = xyes && \
  22270. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22271. directfb_shared=yes
  22272. echo "-- dynamic libdirectfb -> $directfb_lib"
  22273. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22274. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22275. else
  22276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22277. SUMMARY_video="${SUMMARY_video} directfb"
  22278. fi
  22279. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22280. have_video=yes
  22281. fi
  22282. fi
  22283. }
  22284. CheckKMSDRM()
  22285. {
  22286. # Check whether --enable-video-kmsdrm was given.
  22287. if test ${enable_video_kmsdrm+y}
  22288. then :
  22289. enableval=$enable_video_kmsdrm;
  22290. else $as_nop
  22291. enable_video_kmsdrm=yes
  22292. fi
  22293. if test x$enable_video = xyes && \
  22294. test x$enable_video_kmsdrm = xyes && \
  22295. test x$video_opengl_egl = xyes; then
  22296. video_kmsdrm=no
  22297. pkg_failed=no
  22298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22299. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22300. if test -n "$LIBDRM_CFLAGS"; then
  22301. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22302. elif test -n "$PKG_CONFIG"; then
  22303. if test -n "$PKG_CONFIG" && \
  22304. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22305. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22306. ac_status=$?
  22307. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22308. test $ac_status = 0; }; then
  22309. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22310. test "x$?" != "x0" && pkg_failed=yes
  22311. else
  22312. pkg_failed=yes
  22313. fi
  22314. else
  22315. pkg_failed=untried
  22316. fi
  22317. if test -n "$LIBDRM_LIBS"; then
  22318. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22319. elif test -n "$PKG_CONFIG"; then
  22320. if test -n "$PKG_CONFIG" && \
  22321. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22322. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22323. ac_status=$?
  22324. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22325. test $ac_status = 0; }; then
  22326. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22327. test "x$?" != "x0" && pkg_failed=yes
  22328. else
  22329. pkg_failed=yes
  22330. fi
  22331. else
  22332. pkg_failed=untried
  22333. fi
  22334. if test $pkg_failed = yes; then
  22335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22336. printf "%s\n" "no" >&6; }
  22337. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22338. _pkg_short_errors_supported=yes
  22339. else
  22340. _pkg_short_errors_supported=no
  22341. fi
  22342. if test $_pkg_short_errors_supported = yes; then
  22343. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22344. else
  22345. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22346. fi
  22347. # Put the nasty error message in config.log where it belongs
  22348. echo "$LIBDRM_PKG_ERRORS" >&5
  22349. libdrm_avail=no
  22350. elif test $pkg_failed = untried; then
  22351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22352. printf "%s\n" "no" >&6; }
  22353. libdrm_avail=no
  22354. else
  22355. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22356. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22358. printf "%s\n" "yes" >&6; }
  22359. libdrm_avail=yes
  22360. fi
  22361. pkg_failed=no
  22362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22363. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22364. if test -n "$LIBGBM_CFLAGS"; then
  22365. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22366. elif test -n "$PKG_CONFIG"; then
  22367. if test -n "$PKG_CONFIG" && \
  22368. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22369. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22370. ac_status=$?
  22371. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22372. test $ac_status = 0; }; then
  22373. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22374. test "x$?" != "x0" && pkg_failed=yes
  22375. else
  22376. pkg_failed=yes
  22377. fi
  22378. else
  22379. pkg_failed=untried
  22380. fi
  22381. if test -n "$LIBGBM_LIBS"; then
  22382. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22383. elif test -n "$PKG_CONFIG"; then
  22384. if test -n "$PKG_CONFIG" && \
  22385. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22386. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22387. ac_status=$?
  22388. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22389. test $ac_status = 0; }; then
  22390. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22391. test "x$?" != "x0" && pkg_failed=yes
  22392. else
  22393. pkg_failed=yes
  22394. fi
  22395. else
  22396. pkg_failed=untried
  22397. fi
  22398. if test $pkg_failed = yes; then
  22399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22400. printf "%s\n" "no" >&6; }
  22401. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22402. _pkg_short_errors_supported=yes
  22403. else
  22404. _pkg_short_errors_supported=no
  22405. fi
  22406. if test $_pkg_short_errors_supported = yes; then
  22407. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22408. else
  22409. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22410. fi
  22411. # Put the nasty error message in config.log where it belongs
  22412. echo "$LIBGBM_PKG_ERRORS" >&5
  22413. libgbm_avail=no
  22414. elif test $pkg_failed = untried; then
  22415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22416. printf "%s\n" "no" >&6; }
  22417. libgbm_avail=no
  22418. else
  22419. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22420. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22422. printf "%s\n" "yes" >&6; }
  22423. libgbm_avail=yes
  22424. fi
  22425. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22426. video_kmsdrm=yes
  22427. fi
  22428. if test x$video_kmsdrm = xyes; then
  22429. # Check whether --enable-kmsdrm-shared was given.
  22430. if test ${enable_kmsdrm_shared+y}
  22431. then :
  22432. enableval=$enable_kmsdrm_shared;
  22433. else $as_nop
  22434. enable_kmsdrm_shared=yes
  22435. fi
  22436. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22437. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22438. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22440. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22441. kmsdrm_shared=no
  22442. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22443. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22444. if test x$have_loadso != xyes && \
  22445. test x$enable_kmsdrm_shared = xyes; then
  22446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22447. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22448. fi
  22449. if test x$have_loadso = xyes && \
  22450. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22451. kmsdrm_shared=yes
  22452. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22453. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22454. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22455. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22456. else
  22457. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22458. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22459. fi
  22460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22461. printf "%s\n" "$kmsdrm_shared" >&6; }
  22462. if test x$kmsdrm_shared = xyes; then
  22463. echo "-- dynamic libdrm -> $drm_lib"
  22464. echo "-- dynamic libgbm -> $gbm_lib"
  22465. fi
  22466. have_video=yes
  22467. fi
  22468. fi
  22469. }
  22470. CheckDummyVideo()
  22471. {
  22472. # Check whether --enable-video-dummy was given.
  22473. if test ${enable_video_dummy+y}
  22474. then :
  22475. enableval=$enable_video_dummy;
  22476. else $as_nop
  22477. enable_video_dummy=yes
  22478. fi
  22479. if test x$enable_video_dummy = xyes; then
  22480. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22481. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22482. have_video=yes
  22483. SUMMARY_video="${SUMMARY_video} dummy"
  22484. fi
  22485. }
  22486. CheckOffscreenVideo()
  22487. {
  22488. # Check whether --enable-video-offscreen was given.
  22489. if test ${enable_video_offscreen+y}
  22490. then :
  22491. enableval=$enable_video_offscreen;
  22492. else $as_nop
  22493. enable_video_offscreen=yes
  22494. fi
  22495. if test x$enable_video_offscreen = xyes; then
  22496. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22497. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22498. have_video=yes
  22499. SUMMARY_video="${SUMMARY_video} offscreen"
  22500. fi
  22501. }
  22502. CheckQNXVideo()
  22503. {
  22504. if test x$enable_video = xyes; then
  22505. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22506. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22507. have_video=yes
  22508. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22509. SUMMARY_video="${SUMMARY_video} qnx"
  22510. fi
  22511. }
  22512. CheckQNXAudio()
  22513. {
  22514. if test x$enable_audio = xyes; then
  22515. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22516. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22517. have_audio=yes
  22518. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22519. SUMMARY_audio="${SUMMARY_audio} qsa"
  22520. fi
  22521. }
  22522. # Check whether --enable-video-opengl was given.
  22523. if test ${enable_video_opengl+y}
  22524. then :
  22525. enableval=$enable_video_opengl;
  22526. else $as_nop
  22527. enable_video_opengl=yes
  22528. fi
  22529. CheckGLX()
  22530. {
  22531. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22533. printf %s "checking for GLX support... " >&6; }
  22534. video_opengl_glx=no
  22535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22536. /* end confdefs.h. */
  22537. #include <GL/glx.h>
  22538. int
  22539. main (void)
  22540. {
  22541. ;
  22542. return 0;
  22543. }
  22544. _ACEOF
  22545. if ac_fn_c_try_compile "$LINENO"
  22546. then :
  22547. video_opengl_glx=yes
  22548. fi
  22549. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22551. printf "%s\n" "$video_opengl_glx" >&6; }
  22552. if test x$video_opengl_glx = xyes; then
  22553. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22554. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22555. fi
  22556. fi
  22557. }
  22558. # Check whether --enable-video-opengles was given.
  22559. if test ${enable_video_opengles+y}
  22560. then :
  22561. enableval=$enable_video_opengles;
  22562. else $as_nop
  22563. enable_video_opengles=yes
  22564. fi
  22565. # Check whether --enable-video-opengles1 was given.
  22566. if test ${enable_video_opengles1+y}
  22567. then :
  22568. enableval=$enable_video_opengles1;
  22569. else $as_nop
  22570. enable_video_opengles1=yes
  22571. fi
  22572. # Check whether --enable-video-opengles2 was given.
  22573. if test ${enable_video_opengles2+y}
  22574. then :
  22575. enableval=$enable_video_opengles2;
  22576. else $as_nop
  22577. enable_video_opengles2=yes
  22578. fi
  22579. CheckEGL()
  22580. {
  22581. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22583. printf %s "checking for EGL support... " >&6; }
  22584. video_opengl_egl=no
  22585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22586. /* end confdefs.h. */
  22587. #define LINUX
  22588. #define EGL_API_FB
  22589. #define MESA_EGL_NO_X11_HEADERS
  22590. #define EGL_NO_X11
  22591. #include <EGL/egl.h>
  22592. #include <EGL/eglext.h>
  22593. int
  22594. main (void)
  22595. {
  22596. ;
  22597. return 0;
  22598. }
  22599. _ACEOF
  22600. if ac_fn_c_try_compile "$LINENO"
  22601. then :
  22602. video_opengl_egl=yes
  22603. fi
  22604. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22606. printf "%s\n" "$video_opengl_egl" >&6; }
  22607. if test x$video_opengl_egl = xyes; then
  22608. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22609. fi
  22610. fi
  22611. }
  22612. CheckOpenGL()
  22613. {
  22614. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22616. printf %s "checking for OpenGL headers... " >&6; }
  22617. video_opengl=no
  22618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22619. /* end confdefs.h. */
  22620. #include <GL/gl.h>
  22621. #include <GL/glext.h>
  22622. int
  22623. main (void)
  22624. {
  22625. ;
  22626. return 0;
  22627. }
  22628. _ACEOF
  22629. if ac_fn_c_try_compile "$LINENO"
  22630. then :
  22631. video_opengl=yes
  22632. fi
  22633. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22635. printf "%s\n" "$video_opengl" >&6; }
  22636. if test x$video_opengl = xyes; then
  22637. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22638. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22639. SUMMARY_video="${SUMMARY_video} opengl"
  22640. fi
  22641. fi
  22642. }
  22643. CheckOpenGLES()
  22644. {
  22645. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22646. if test x$enable_video_opengles1 = xyes; then
  22647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22648. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22649. video_opengles_v1=no
  22650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22651. /* end confdefs.h. */
  22652. #include <GLES/gl.h>
  22653. #include <GLES/glext.h>
  22654. int
  22655. main (void)
  22656. {
  22657. ;
  22658. return 0;
  22659. }
  22660. _ACEOF
  22661. if ac_fn_c_try_compile "$LINENO"
  22662. then :
  22663. video_opengles_v1=yes
  22664. fi
  22665. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22667. printf "%s\n" "$video_opengles_v1" >&6; }
  22668. if test x$video_opengles_v1 = xyes; then
  22669. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22670. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22671. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22672. fi
  22673. fi
  22674. if test x$enable_video_opengles2 = xyes; then
  22675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22676. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22677. video_opengles_v2=no
  22678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22679. /* end confdefs.h. */
  22680. #include <GLES2/gl2.h>
  22681. #include <GLES2/gl2ext.h>
  22682. int
  22683. main (void)
  22684. {
  22685. ;
  22686. return 0;
  22687. }
  22688. _ACEOF
  22689. if ac_fn_c_try_compile "$LINENO"
  22690. then :
  22691. video_opengles_v2=yes
  22692. fi
  22693. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22695. printf "%s\n" "$video_opengles_v2" >&6; }
  22696. if test x$video_opengles_v2 = xyes; then
  22697. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22698. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22699. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22700. fi
  22701. fi
  22702. fi
  22703. }
  22704. CheckWINDOWSGL()
  22705. {
  22706. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22707. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22708. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22709. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22710. SUMMARY_video="${SUMMARY_video} opengl"
  22711. fi
  22712. }
  22713. CheckWINDOWSGLES()
  22714. {
  22715. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22717. printf %s "checking for EGL support... " >&6; }
  22718. video_opengl_egl=no
  22719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22720. /* end confdefs.h. */
  22721. #include <EGL/egl.h>
  22722. int
  22723. main (void)
  22724. {
  22725. ;
  22726. return 0;
  22727. }
  22728. _ACEOF
  22729. if ac_fn_c_try_compile "$LINENO"
  22730. then :
  22731. video_opengl_egl=yes
  22732. fi
  22733. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22735. printf "%s\n" "$video_opengl_egl" >&6; }
  22736. if test x$video_opengl_egl = xyes; then
  22737. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22738. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22739. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22740. fi
  22741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22742. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22743. video_opengles_v2=no
  22744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22745. /* end confdefs.h. */
  22746. #include <GLES2/gl2.h>
  22747. #include <GLES2/gl2ext.h>
  22748. int
  22749. main (void)
  22750. {
  22751. ;
  22752. return 0;
  22753. }
  22754. _ACEOF
  22755. if ac_fn_c_try_compile "$LINENO"
  22756. then :
  22757. video_opengles_v2=yes
  22758. fi
  22759. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22761. printf "%s\n" "$video_opengles_v2" >&6; }
  22762. if test x$video_opengles_v2 = xyes; then
  22763. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22764. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22765. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22766. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22767. fi
  22768. fi
  22769. }
  22770. CheckHaikuGL()
  22771. {
  22772. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22773. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22774. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22775. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22776. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22777. SUMMARY_video="${SUMMARY_video} opengl"
  22778. fi
  22779. }
  22780. CheckMacGL()
  22781. {
  22782. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22783. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22784. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22785. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22786. SUMMARY_video="${SUMMARY_video} opengl"
  22787. fi
  22788. }
  22789. CheckMacGLES()
  22790. {
  22791. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22792. video_opengl_egl=yes
  22793. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22794. video_opengles_v2=yes
  22795. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22796. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22797. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22798. fi
  22799. }
  22800. CheckEmscriptenGLES()
  22801. {
  22802. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22804. printf %s "checking for EGL support... " >&6; }
  22805. video_opengl_egl=no
  22806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22807. /* end confdefs.h. */
  22808. #include <EGL/egl.h>
  22809. int
  22810. main (void)
  22811. {
  22812. ;
  22813. return 0;
  22814. }
  22815. _ACEOF
  22816. if ac_fn_c_try_compile "$LINENO"
  22817. then :
  22818. video_opengl_egl=yes
  22819. fi
  22820. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22822. printf "%s\n" "$video_opengl_egl" >&6; }
  22823. if test x$video_opengl_egl = xyes; then
  22824. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22825. fi
  22826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22827. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22828. video_opengles_v2=no
  22829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22830. /* end confdefs.h. */
  22831. #include <GLES2/gl2.h>
  22832. #include <GLES2/gl2ext.h>
  22833. int
  22834. main (void)
  22835. {
  22836. ;
  22837. return 0;
  22838. }
  22839. _ACEOF
  22840. if ac_fn_c_try_compile "$LINENO"
  22841. then :
  22842. video_opengles_v2=yes
  22843. fi
  22844. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22846. printf "%s\n" "$video_opengles_v2" >&6; }
  22847. if test x$video_opengles_v2 = xyes; then
  22848. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22849. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22850. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22851. fi
  22852. fi
  22853. }
  22854. # Check whether --enable-video-vulkan was given.
  22855. if test ${enable_video_vulkan+y}
  22856. then :
  22857. enableval=$enable_video_vulkan;
  22858. else $as_nop
  22859. enable_video_vulkan=yes
  22860. fi
  22861. CheckVulkan()
  22862. {
  22863. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22864. case "$host" in
  22865. *-*-android*)
  22866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22867. /* end confdefs.h. */
  22868. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22869. #error Vulkan doesn't work on this configuration
  22870. #endif
  22871. int
  22872. main (void)
  22873. {
  22874. ;
  22875. return 0;
  22876. }
  22877. _ACEOF
  22878. if ac_fn_c_try_compile "$LINENO"
  22879. then :
  22880. else $as_nop
  22881. enable_video_vulkan=no
  22882. fi
  22883. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22884. ;;
  22885. *-*-solaris*)
  22886. enable_video_vulkan=no
  22887. ;;
  22888. *-*-darwin*)
  22889. save_CFLAGS="$CFLAGS"
  22890. CFLAGS="$CFLAGS -x objective-c"
  22891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22892. /* end confdefs.h. */
  22893. #include <Cocoa/Cocoa.h>
  22894. #include <Metal/Metal.h>
  22895. #include <QuartzCore/CAMetalLayer.h>
  22896. #if TARGET_CPU_X86
  22897. #error Vulkan doesn't work on this configuration
  22898. #endif
  22899. int
  22900. main (void)
  22901. {
  22902. ;
  22903. return 0;
  22904. }
  22905. _ACEOF
  22906. if ac_fn_c_try_compile "$LINENO"
  22907. then :
  22908. else $as_nop
  22909. enable_video_vulkan=no
  22910. fi
  22911. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22912. CFLAGS="$save_CFLAGS"
  22913. ;;
  22914. *)
  22915. ;;
  22916. esac
  22917. if test x$enable_video_vulkan = xno; then
  22918. # For reasons I am totally unable to see, I get an undefined macro error if
  22919. # I put this in the AC_TRY_COMPILE.
  22920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22921. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22922. fi
  22923. fi
  22924. if test x$have_loadso != xyes; then
  22925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22926. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22927. enable_video_vulkan=no
  22928. fi
  22929. if test x$enable_video_vulkan = xyes; then
  22930. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22931. SUMMARY_video="${SUMMARY_video} vulkan"
  22932. fi
  22933. }
  22934. CheckInputEvents()
  22935. {
  22936. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  22937. if test "x$ac_cv_header_linux_input_h" = xyes
  22938. then :
  22939. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  22940. fi
  22941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22942. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22943. use_input_events=no
  22944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22945. /* end confdefs.h. */
  22946. #include <linux/input.h>
  22947. int
  22948. main (void)
  22949. {
  22950. #ifndef EVIOCGNAME
  22951. #error EVIOCGNAME() ioctl not available
  22952. #endif
  22953. ;
  22954. return 0;
  22955. }
  22956. _ACEOF
  22957. if ac_fn_c_try_compile "$LINENO"
  22958. then :
  22959. use_input_events=yes
  22960. fi
  22961. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22963. printf "%s\n" "$use_input_events" >&6; }
  22964. if test x$use_input_events = xyes; then
  22965. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22966. SUMMARY_input="${SUMMARY_input} linuxev"
  22967. fi
  22968. }
  22969. CheckInputKD()
  22970. {
  22971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22972. printf %s "checking for Linux kd.h... " >&6; }
  22973. use_input_kd=no
  22974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22975. /* end confdefs.h. */
  22976. #include <linux/kd.h>
  22977. #include <linux/keyboard.h>
  22978. #include <sys/ioctl.h>
  22979. int
  22980. main (void)
  22981. {
  22982. struct kbentry kbe;
  22983. kbe.kb_table = KG_CTRL;
  22984. ioctl(0, KDGKBENT, &kbe);
  22985. ;
  22986. return 0;
  22987. }
  22988. _ACEOF
  22989. if ac_fn_c_try_compile "$LINENO"
  22990. then :
  22991. use_input_kd=yes
  22992. fi
  22993. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22995. printf "%s\n" "$use_input_kd" >&6; }
  22996. if test x$use_input_kd = xyes; then
  22997. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22998. SUMMARY_input="${SUMMARY_input} linuxkd"
  22999. fi
  23000. }
  23001. CheckInputKBIO()
  23002. {
  23003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  23004. printf %s "checking for FreeBSD kbio.h... " >&6; }
  23005. use_input_kbio=no
  23006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23007. /* end confdefs.h. */
  23008. #include <sys/kbio.h>
  23009. #include <sys/ioctl.h>
  23010. int
  23011. main (void)
  23012. {
  23013. accentmap_t accTable;
  23014. ioctl(0, KDENABIO, 1);
  23015. ;
  23016. return 0;
  23017. }
  23018. _ACEOF
  23019. if ac_fn_c_try_compile "$LINENO"
  23020. then :
  23021. use_input_kbio=yes
  23022. fi
  23023. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  23025. printf "%s\n" "$use_input_kbio" >&6; }
  23026. if test x$use_input_kbio = xyes; then
  23027. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  23028. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  23029. fi
  23030. }
  23031. CheckInputWSCONS()
  23032. {
  23033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  23034. printf %s "checking for OpenBSD wscons... " >&6; }
  23035. use_input_wscons=no
  23036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23037. /* end confdefs.h. */
  23038. #include <sys/time.h>
  23039. #include <dev/wscons/wsconsio.h>
  23040. #include <dev/wscons/wsksymdef.h>
  23041. #include <dev/wscons/wsksymvar.h>
  23042. #include <sys/ioctl.h>
  23043. int
  23044. main (void)
  23045. {
  23046. struct wskbd_map_data data;
  23047. ioctl(0, WSKBDIO_GETMAP, &data);
  23048. ;
  23049. return 0;
  23050. }
  23051. _ACEOF
  23052. if ac_fn_c_try_compile "$LINENO"
  23053. then :
  23054. use_input_wscons=yes
  23055. fi
  23056. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  23058. printf "%s\n" "$use_input_wscons" >&6; }
  23059. if test x$use_input_wscons = xyes; then
  23060. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  23061. SUMMARY_input="${SUMMARY_input} wscons"
  23062. fi
  23063. }
  23064. CheckLibUDev()
  23065. {
  23066. # Check whether --enable-libudev was given.
  23067. if test ${enable_libudev+y}
  23068. then :
  23069. enableval=$enable_libudev;
  23070. else $as_nop
  23071. enable_libudev=yes
  23072. fi
  23073. if test x$enable_libudev = xyes; then
  23074. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  23075. if test "x$ac_cv_header_libudev_h" = xyes
  23076. then :
  23077. have_libudev_h_hdr=yes
  23078. else $as_nop
  23079. have_libudev_h_hdr=no
  23080. fi
  23081. if test x$have_libudev_h_hdr = xyes; then
  23082. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  23083. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23084. if test x$udev_lib != x; then
  23085. echo "-- dynamic udev -> $udev_lib"
  23086. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  23087. fi
  23088. fi
  23089. fi
  23090. }
  23091. CheckDBus()
  23092. {
  23093. # Check whether --enable-dbus was given.
  23094. if test ${enable_dbus+y}
  23095. then :
  23096. enableval=$enable_dbus;
  23097. else $as_nop
  23098. enable_dbus=yes
  23099. fi
  23100. if test x$enable_dbus = xyes; then
  23101. pkg_failed=no
  23102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  23103. printf %s "checking for dbus-1... " >&6; }
  23104. if test -n "$DBUS_CFLAGS"; then
  23105. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  23106. elif test -n "$PKG_CONFIG"; then
  23107. if test -n "$PKG_CONFIG" && \
  23108. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23109. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23110. ac_status=$?
  23111. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23112. test $ac_status = 0; }; then
  23113. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  23114. test "x$?" != "x0" && pkg_failed=yes
  23115. else
  23116. pkg_failed=yes
  23117. fi
  23118. else
  23119. pkg_failed=untried
  23120. fi
  23121. if test -n "$DBUS_LIBS"; then
  23122. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  23123. elif test -n "$PKG_CONFIG"; then
  23124. if test -n "$PKG_CONFIG" && \
  23125. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23126. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23127. ac_status=$?
  23128. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23129. test $ac_status = 0; }; then
  23130. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  23131. test "x$?" != "x0" && pkg_failed=yes
  23132. else
  23133. pkg_failed=yes
  23134. fi
  23135. else
  23136. pkg_failed=untried
  23137. fi
  23138. if test $pkg_failed = yes; then
  23139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23140. printf "%s\n" "no" >&6; }
  23141. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23142. _pkg_short_errors_supported=yes
  23143. else
  23144. _pkg_short_errors_supported=no
  23145. fi
  23146. if test $_pkg_short_errors_supported = yes; then
  23147. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  23148. else
  23149. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  23150. fi
  23151. # Put the nasty error message in config.log where it belongs
  23152. echo "$DBUS_PKG_ERRORS" >&5
  23153. have_dbus=no
  23154. elif test $pkg_failed = untried; then
  23155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23156. printf "%s\n" "no" >&6; }
  23157. have_dbus=no
  23158. else
  23159. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  23160. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  23161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23162. printf "%s\n" "yes" >&6; }
  23163. have_dbus=yes
  23164. fi
  23165. save_CPPFLAGS="$CPPFLAGS"
  23166. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  23167. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  23168. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  23169. then :
  23170. have_dbus_dbus_h_hdr=yes
  23171. else $as_nop
  23172. have_dbus_dbus_h_hdr=no
  23173. fi
  23174. CPPFLAGS="$save_CPPFLAGS"
  23175. if test x$have_dbus_dbus_h_hdr = xyes; then
  23176. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  23177. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  23178. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  23179. fi
  23180. fi
  23181. }
  23182. CheckIME()
  23183. {
  23184. # Check whether --enable-ime was given.
  23185. if test ${enable_ime+y}
  23186. then :
  23187. enableval=$enable_ime;
  23188. else $as_nop
  23189. enable_ime=yes
  23190. fi
  23191. if test x$enable_ime = xyes; then
  23192. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  23193. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  23194. fi
  23195. }
  23196. CheckInotify()
  23197. {
  23198. save_LIBS="$LIBS"
  23199. case "$host" in
  23200. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  23201. ;;
  23202. esac
  23203. for ac_header in sys/inotify.h
  23204. do :
  23205. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  23206. if test "x$ac_cv_header_sys_inotify_h" = xyes
  23207. then :
  23208. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  23209. have_inotify_inotify_h_hdr=yes
  23210. fi
  23211. done
  23212. for ac_func in inotify_init
  23213. do :
  23214. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  23215. if test "x$ac_cv_func_inotify_init" = xyes
  23216. then :
  23217. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  23218. have_inotify=yes
  23219. fi
  23220. done
  23221. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  23222. if test "x$ac_cv_func_inotify_init1" = xyes
  23223. then :
  23224. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  23225. fi
  23226. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  23227. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  23228. case "$host" in
  23229. *-*-freebsd*|*-*-dragonfly*)
  23230. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  23231. ;;
  23232. esac
  23233. fi
  23234. LIBS="$save_LIBS"
  23235. }
  23236. CheckIBus()
  23237. {
  23238. # Check whether --enable-ibus was given.
  23239. if test ${enable_ibus+y}
  23240. then :
  23241. enableval=$enable_ibus;
  23242. else $as_nop
  23243. enable_ibus=yes
  23244. fi
  23245. if test x$enable_ibus = xyes; then
  23246. pkg_failed=no
  23247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  23248. printf %s "checking for ibus-1.0... " >&6; }
  23249. if test -n "$IBUS_CFLAGS"; then
  23250. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23251. elif test -n "$PKG_CONFIG"; then
  23252. if test -n "$PKG_CONFIG" && \
  23253. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23254. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23255. ac_status=$?
  23256. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23257. test $ac_status = 0; }; then
  23258. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23259. test "x$?" != "x0" && pkg_failed=yes
  23260. else
  23261. pkg_failed=yes
  23262. fi
  23263. else
  23264. pkg_failed=untried
  23265. fi
  23266. if test -n "$IBUS_LIBS"; then
  23267. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23268. elif test -n "$PKG_CONFIG"; then
  23269. if test -n "$PKG_CONFIG" && \
  23270. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23271. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23272. ac_status=$?
  23273. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23274. test $ac_status = 0; }; then
  23275. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23276. test "x$?" != "x0" && pkg_failed=yes
  23277. else
  23278. pkg_failed=yes
  23279. fi
  23280. else
  23281. pkg_failed=untried
  23282. fi
  23283. if test $pkg_failed = yes; then
  23284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23285. printf "%s\n" "no" >&6; }
  23286. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23287. _pkg_short_errors_supported=yes
  23288. else
  23289. _pkg_short_errors_supported=no
  23290. fi
  23291. if test $_pkg_short_errors_supported = yes; then
  23292. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23293. else
  23294. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23295. fi
  23296. # Put the nasty error message in config.log where it belongs
  23297. echo "$IBUS_PKG_ERRORS" >&5
  23298. have_ibus=no
  23299. elif test $pkg_failed = untried; then
  23300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23301. printf "%s\n" "no" >&6; }
  23302. have_ibus=no
  23303. else
  23304. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23305. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23307. printf "%s\n" "yes" >&6; }
  23308. have_ibus=yes
  23309. fi
  23310. save_CPPFLAGS="$CPPFLAGS"
  23311. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23312. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23313. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23314. then :
  23315. have_ibus_ibus_h_hdr=yes
  23316. else $as_nop
  23317. have_ibus_ibus_h_hdr=no
  23318. fi
  23319. CPPFLAGS="$save_CPPFLAGS"
  23320. if test x$have_ibus_ibus_h_hdr = xyes; then
  23321. if test x$enable_ime != xyes; then
  23322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23323. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23324. have_ibus_ibus_h_hdr=no
  23325. elif test x$enable_dbus != xyes; then
  23326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23327. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23328. have_ibus_ibus_h_hdr=no
  23329. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23331. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23332. have_ibus_ibus_h_hdr=no
  23333. else
  23334. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23335. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23336. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23337. fi
  23338. fi
  23339. fi
  23340. }
  23341. CheckFcitx()
  23342. {
  23343. # Check whether --enable-fcitx was given.
  23344. if test ${enable_fcitx+y}
  23345. then :
  23346. enableval=$enable_fcitx;
  23347. else $as_nop
  23348. enable_fcitx=yes
  23349. fi
  23350. if test x$enable_fcitx = xyes; then
  23351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23352. printf %s "checking for fcitx support... " >&6; }
  23353. have_fcitx=no
  23354. if test x$enable_ime != xyes; then
  23355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23356. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23357. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23359. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23360. else
  23361. have_fcitx=yes
  23362. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23363. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23364. fi
  23365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23366. printf "%s\n" "$have_fcitx" >&6; }
  23367. fi
  23368. }
  23369. CheckJoystickMFI()
  23370. {
  23371. # Check whether --enable-joystick-mfi was given.
  23372. if test ${enable_joystick_mfi+y}
  23373. then :
  23374. enableval=$enable_joystick_mfi;
  23375. else $as_nop
  23376. enable_joystick_mfi=yes
  23377. fi
  23378. if test x$enable_joystick_mfi = xyes; then
  23379. save_CFLAGS="$CFLAGS"
  23380. save_LDFLAGS="$LDFLAGS"
  23381. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23382. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23384. printf %s "checking for GameController framework... " >&6; }
  23385. enable_joystick_mfi=no
  23386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23387. /* end confdefs.h. */
  23388. #include <AvailabilityMacros.h>
  23389. #include <TargetConditionals.h>
  23390. #import <GameController/GameController.h>
  23391. int
  23392. main (void)
  23393. {
  23394. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23395. #error GameController framework doesn't work on this configuration
  23396. #endif
  23397. #if TARGET_CPU_X86
  23398. #error GameController framework doesn't work on this configuration
  23399. #endif
  23400. ;
  23401. return 0;
  23402. }
  23403. _ACEOF
  23404. if ac_fn_c_try_link "$LINENO"
  23405. then :
  23406. enable_joystick_mfi=yes
  23407. fi
  23408. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23409. conftest$ac_exeext conftest.$ac_ext
  23410. CFLAGS="$save_CFLAGS"
  23411. LDFLAGS="$save_LDFLAGS"
  23412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23413. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23414. if test x$enable_joystick_mfi = xyes; then
  23415. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23416. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23417. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23418. fi
  23419. fi
  23420. }
  23421. CheckPTHREAD()
  23422. {
  23423. case "$host" in
  23424. *-*-emscripten*)
  23425. enable_pthreads_default=no
  23426. ;;
  23427. *)
  23428. enable_pthreads_default=yes
  23429. ;;
  23430. esac
  23431. # Check whether --enable-pthreads was given.
  23432. if test ${enable_pthreads+y}
  23433. then :
  23434. enableval=$enable_pthreads;
  23435. else $as_nop
  23436. enable_pthreads=maybe
  23437. fi
  23438. # Check whether --enable-pthread-sem was given.
  23439. if test ${enable_pthread_sem+y}
  23440. then :
  23441. enableval=$enable_pthread_sem;
  23442. else $as_nop
  23443. enable_pthread_sem=maybe
  23444. fi
  23445. if test x$enable_pthreads = xmaybe; then
  23446. enable_pthreads=$enable_pthreads_default
  23447. fi
  23448. if test x$enable_pthread_sem = xmaybe; then
  23449. enable_pthread_sem=$enable_pthreads
  23450. fi
  23451. case "$host" in
  23452. *-*-android*)
  23453. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23454. pthread_lib=""
  23455. ;;
  23456. *-*-linux*|*-*-uclinux*)
  23457. pthread_cflags="-D_REENTRANT"
  23458. pthread_lib="-lpthread"
  23459. ;;
  23460. *-*-bsdi*)
  23461. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23462. pthread_lib=""
  23463. ;;
  23464. *-*-darwin*)
  23465. pthread_cflags="-D_THREAD_SAFE"
  23466. # causes Carbon.p complaints?
  23467. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23468. ;;
  23469. *-*-freebsd*|*-*-dragonfly*)
  23470. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23471. pthread_lib="-pthread"
  23472. ;;
  23473. *-*-netbsd*)
  23474. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23475. pthread_lib="-lpthread"
  23476. ;;
  23477. *-*-openbsd*)
  23478. pthread_cflags="-D_REENTRANT"
  23479. pthread_lib="-lpthread"
  23480. ;;
  23481. *-*-solaris2.9)
  23482. # From Solaris 9+, posix4's preferred name is rt.
  23483. pthread_cflags="-D_REENTRANT"
  23484. pthread_lib="-lpthread -lrt"
  23485. ;;
  23486. *-*-solaris2.10)
  23487. # Solaris 10+ merged pthread into libc.
  23488. pthread_cflags="-D_REENTRANT"
  23489. pthread_lib="-lrt"
  23490. ;;
  23491. *-*-solaris*)
  23492. # Solaris 11+ merged rt into libc.
  23493. pthread_cflags="-D_REENTRANT"
  23494. pthread_lib=""
  23495. ;;
  23496. *-*-sysv5*)
  23497. pthread_cflags="-D_REENTRANT -Kthread"
  23498. pthread_lib=""
  23499. ;;
  23500. *-*-aix*)
  23501. pthread_cflags="-D_REENTRANT -mthreads"
  23502. pthread_lib="-lpthread"
  23503. ;;
  23504. *-*-hpux11*)
  23505. pthread_cflags="-D_REENTRANT"
  23506. pthread_lib="-L/usr/lib -lpthread"
  23507. ;;
  23508. *-*-haiku*)
  23509. pthread_cflags="-D_REENTRANT"
  23510. pthread_lib=""
  23511. ;;
  23512. *-*-nto*)
  23513. pthread_cflags="-D_REENTRANT"
  23514. pthread_lib=""
  23515. ;;
  23516. *-*-emscripten*)
  23517. pthread_cflags="-D_REENTRANT -pthread"
  23518. pthread_lib="-pthread"
  23519. ;;
  23520. *)
  23521. pthread_cflags="-D_REENTRANT"
  23522. pthread_lib="-lpthread"
  23523. ;;
  23524. esac
  23525. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23526. # Save the original compiler flags and libraries
  23527. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23528. # Add the pthread compiler flags and libraries
  23529. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23530. # Check to see if we have pthread support on this system
  23531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23532. printf %s "checking for pthreads... " >&6; }
  23533. use_pthreads=no
  23534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23535. /* end confdefs.h. */
  23536. #include <pthread.h>
  23537. int
  23538. main (void)
  23539. {
  23540. pthread_attr_t type;
  23541. pthread_attr_init(&type);
  23542. ;
  23543. return 0;
  23544. }
  23545. _ACEOF
  23546. if ac_fn_c_try_link "$LINENO"
  23547. then :
  23548. use_pthreads=yes
  23549. fi
  23550. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23551. conftest$ac_exeext conftest.$ac_ext
  23552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23553. printf "%s\n" "$use_pthreads" >&6; }
  23554. # Restore the compiler flags and libraries
  23555. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23556. # Do futher testing if we have pthread support...
  23557. if test x$use_pthreads = xyes; then
  23558. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23559. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23560. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23561. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23562. # Save the original compiler flags and libraries
  23563. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23564. # Add the pthread compiler flags and libraries
  23565. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23566. # Check to see if recursive mutexes are available
  23567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23568. printf %s "checking for recursive mutexes... " >&6; }
  23569. has_recursive_mutexes=no
  23570. if test x$has_recursive_mutexes = xno; then
  23571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23572. /* end confdefs.h. */
  23573. #define _GNU_SOURCE 1
  23574. #include <pthread.h>
  23575. int
  23576. main (void)
  23577. {
  23578. pthread_mutexattr_t attr;
  23579. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23580. ;
  23581. return 0;
  23582. }
  23583. _ACEOF
  23584. if ac_fn_c_try_link "$LINENO"
  23585. then :
  23586. has_recursive_mutexes=yes
  23587. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23588. fi
  23589. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23590. conftest$ac_exeext conftest.$ac_ext
  23591. fi
  23592. if test x$has_recursive_mutexes = xno; then
  23593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23594. /* end confdefs.h. */
  23595. #define _GNU_SOURCE 1
  23596. #include <pthread.h>
  23597. int
  23598. main (void)
  23599. {
  23600. pthread_mutexattr_t attr;
  23601. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23602. ;
  23603. return 0;
  23604. }
  23605. _ACEOF
  23606. if ac_fn_c_try_link "$LINENO"
  23607. then :
  23608. has_recursive_mutexes=yes
  23609. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23610. fi
  23611. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23612. conftest$ac_exeext conftest.$ac_ext
  23613. fi
  23614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23615. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23616. # Check to see if pthread semaphore support is missing
  23617. if test x$enable_pthread_sem = xyes; then
  23618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23619. printf %s "checking for pthread semaphores... " >&6; }
  23620. have_pthread_sem=no
  23621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23622. /* end confdefs.h. */
  23623. #include <pthread.h>
  23624. #include <semaphore.h>
  23625. int
  23626. main (void)
  23627. {
  23628. ;
  23629. return 0;
  23630. }
  23631. _ACEOF
  23632. if ac_fn_c_try_compile "$LINENO"
  23633. then :
  23634. have_pthread_sem=yes
  23635. fi
  23636. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23638. printf "%s\n" "$have_pthread_sem" >&6; }
  23639. fi
  23640. if test x$have_pthread_sem = xyes; then
  23641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23642. printf %s "checking for sem_timedwait... " >&6; }
  23643. have_sem_timedwait=no
  23644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23645. /* end confdefs.h. */
  23646. #include <pthread.h>
  23647. #include <semaphore.h>
  23648. int
  23649. main (void)
  23650. {
  23651. sem_timedwait(NULL, NULL);
  23652. ;
  23653. return 0;
  23654. }
  23655. _ACEOF
  23656. if ac_fn_c_try_link "$LINENO"
  23657. then :
  23658. have_sem_timedwait=yes
  23659. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23660. fi
  23661. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23662. conftest$ac_exeext conftest.$ac_ext
  23663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23664. printf "%s\n" "$have_sem_timedwait" >&6; }
  23665. fi
  23666. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23667. "
  23668. if test "x$ac_cv_header_pthread_np_h" = xyes
  23669. then :
  23670. have_pthread_np_h=yes
  23671. else $as_nop
  23672. have_pthread_np_h=no
  23673. fi
  23674. if test x$have_pthread_np_h = xyes; then
  23675. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23676. fi
  23677. # Check to see if pthread naming is available
  23678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23679. printf %s "checking for pthread_setname_np... " >&6; }
  23680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23681. /* end confdefs.h. */
  23682. /* Override any GCC internal prototype to avoid an error.
  23683. Use char because int might match the return type of a GCC
  23684. builtin and then its argument prototype would still apply. */
  23685. char pthread_setname_np ();
  23686. int
  23687. main (void)
  23688. {
  23689. return pthread_setname_np ();
  23690. ;
  23691. return 0;
  23692. }
  23693. _ACEOF
  23694. if ac_fn_c_try_link "$LINENO"
  23695. then :
  23696. has_pthread_setname_np=yes
  23697. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23698. else $as_nop
  23699. has_pthread_setname_np=no
  23700. fi
  23701. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23702. conftest$ac_exeext conftest.$ac_ext
  23703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23704. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23706. printf %s "checking for pthread_set_name_np... " >&6; }
  23707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23708. /* end confdefs.h. */
  23709. /* Override any GCC internal prototype to avoid an error.
  23710. Use char because int might match the return type of a GCC
  23711. builtin and then its argument prototype would still apply. */
  23712. char pthread_set_name_np ();
  23713. int
  23714. main (void)
  23715. {
  23716. return pthread_set_name_np ();
  23717. ;
  23718. return 0;
  23719. }
  23720. _ACEOF
  23721. if ac_fn_c_try_link "$LINENO"
  23722. then :
  23723. has_pthread_set_name_np=yes
  23724. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23725. else $as_nop
  23726. has_pthread_set_name_np=no
  23727. fi
  23728. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23729. conftest$ac_exeext conftest.$ac_ext
  23730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23731. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23732. # Restore the compiler flags and libraries
  23733. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23734. # Basic thread creation functions
  23735. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23736. # Semaphores
  23737. # We can fake these with mutexes and condition variables if necessary
  23738. if test x$have_pthread_sem = xyes; then
  23739. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23740. else
  23741. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23742. fi
  23743. # Mutexes
  23744. # We can fake these with semaphores if necessary
  23745. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23746. # Condition variables
  23747. # We can fake these with semaphores and mutexes if necessary
  23748. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23749. # Thread local storage
  23750. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23751. have_threads=yes
  23752. fi
  23753. fi
  23754. }
  23755. CheckWINDOWS()
  23756. {
  23757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23758. printf %s "checking Windows compiler... " >&6; }
  23759. have_win32_gcc=no
  23760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23761. /* end confdefs.h. */
  23762. #include <windows.h>
  23763. int
  23764. main (void)
  23765. {
  23766. ;
  23767. return 0;
  23768. }
  23769. _ACEOF
  23770. if ac_fn_c_try_compile "$LINENO"
  23771. then :
  23772. have_win32_gcc=yes
  23773. fi
  23774. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23776. printf "%s\n" "$have_win32_gcc" >&6; }
  23777. if test x$have_win32_gcc != xyes; then
  23778. as_fn_error $? "
  23779. *** Your compiler ($CC) does not produce Windows executables!
  23780. " "$LINENO" 5
  23781. fi
  23782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23783. printf %s "checking Windows CE... " >&6; }
  23784. have_wince=no
  23785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23786. /* end confdefs.h. */
  23787. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23788. #error This is not Windows CE
  23789. #endif
  23790. int
  23791. main (void)
  23792. {
  23793. ;
  23794. return 0;
  23795. }
  23796. _ACEOF
  23797. if ac_fn_c_try_compile "$LINENO"
  23798. then :
  23799. have_wince=yes
  23800. as_fn_error $? "
  23801. *** Sorry, Windows CE is no longer supported.
  23802. " "$LINENO" 5
  23803. fi
  23804. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23806. printf "%s\n" "$have_wince" >&6; }
  23807. # headers needed elsewhere
  23808. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23809. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23810. then :
  23811. have_tpcshrd_h=yes
  23812. fi
  23813. if test x$have_tpcshrd_h = xyes; then
  23814. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23815. fi
  23816. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23817. if test "x$ac_cv_header_roapi_h" = xyes
  23818. then :
  23819. have_roapi_h=yes
  23820. fi
  23821. if test x$have_roapi_h = xyes; then
  23822. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23823. fi
  23824. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23825. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23826. then :
  23827. have_shellscalingapi_h=yes
  23828. fi
  23829. if test x$shellscalingapi_h = xyes; then
  23830. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23831. fi
  23832. }
  23833. CheckOS2()
  23834. {
  23835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23836. printf %s "checking OS/2 compiler... " >&6; }
  23837. have_os2_gcc=no
  23838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23839. /* end confdefs.h. */
  23840. #include <os2.h>
  23841. int
  23842. main (void)
  23843. {
  23844. ;
  23845. return 0;
  23846. }
  23847. _ACEOF
  23848. if ac_fn_c_try_compile "$LINENO"
  23849. then :
  23850. have_os2_gcc=yes
  23851. fi
  23852. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23854. printf "%s\n" "$have_os2_gcc" >&6; }
  23855. if test x$have_os2_gcc != xyes; then
  23856. as_fn_error $? "
  23857. *** Your compiler ($CC) does not produce OS/2 executables!
  23858. " "$LINENO" 5
  23859. fi
  23860. }
  23861. CheckDIRECTX()
  23862. {
  23863. # Check whether --enable-directx was given.
  23864. if test ${enable_directx+y}
  23865. then :
  23866. enableval=$enable_directx;
  23867. else $as_nop
  23868. enable_directx=yes
  23869. fi
  23870. if test x$enable_directx = xyes; then
  23871. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23872. if test "x$ac_cv_header_d3d9_h" = xyes
  23873. then :
  23874. have_d3d=yes
  23875. fi
  23876. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23877. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23878. then :
  23879. have_d3d11=yes
  23880. fi
  23881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compatible d3d12 headers" >&5
  23882. printf %s "checking for compatible d3d12 headers... " >&6; }
  23883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23884. /* end confdefs.h. */
  23885. #include <d3d12.h>
  23886. #include <d3d12sdklayers.h>
  23887. ID3D12Device1 *device;
  23888. int
  23889. main (void)
  23890. {
  23891. ;
  23892. return 0;
  23893. }
  23894. _ACEOF
  23895. if ac_fn_c_try_compile "$LINENO"
  23896. then :
  23897. have_d3d12=yes
  23898. else $as_nop
  23899. have_d3d12=no
  23900. fi
  23901. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23903. printf "%s\n" "$have_d3d12" >&6; }
  23904. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23905. if test "x$ac_cv_header_ddraw_h" = xyes
  23906. then :
  23907. have_ddraw=yes
  23908. fi
  23909. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23910. if test "x$ac_cv_header_dsound_h" = xyes
  23911. then :
  23912. have_dsound=yes
  23913. fi
  23914. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23915. if test "x$ac_cv_header_dinput_h" = xyes
  23916. then :
  23917. have_dinput=yes
  23918. fi
  23919. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23920. if test "x$ac_cv_header_dxgi_h" = xyes
  23921. then :
  23922. have_dxgi=yes
  23923. fi
  23924. if test x$have_ddraw = xyes; then
  23925. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23926. fi
  23927. if test x$have_dinput = xyes; then
  23928. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23929. fi
  23930. if test x$have_dsound = xyes; then
  23931. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23932. fi
  23933. if test x$have_dxgi = xyes; then
  23934. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23935. fi
  23936. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23937. # FIXME: ...so force it off for now.
  23938. case "$host" in
  23939. *-*-cygwin*)
  23940. have_dinput=false
  23941. ;;
  23942. esac
  23943. fi
  23944. # Check whether --enable-xinput was given.
  23945. if test ${enable_xinput+y}
  23946. then :
  23947. enableval=$enable_xinput;
  23948. else $as_nop
  23949. enable_xinput=yes
  23950. fi
  23951. if test x$enable_xinput = xyes; then
  23952. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23953. if test "x$ac_cv_header_xinput_h" = xyes
  23954. then :
  23955. have_xinput=yes
  23956. fi
  23957. if test x$have_xinput = xyes; then
  23958. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23959. fi
  23960. fi
  23961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23962. printf %s "checking for windows.gaming.input.h... " >&6; }
  23963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23964. /* end confdefs.h. */
  23965. #define COBJMACROS
  23966. #include <windows.gaming.input.h>
  23967. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23968. int
  23969. main (void)
  23970. {
  23971. ;
  23972. return 0;
  23973. }
  23974. _ACEOF
  23975. if ac_fn_c_try_compile "$LINENO"
  23976. then :
  23977. have_wgi=yes
  23978. else $as_nop
  23979. have_wgi=no
  23980. fi
  23981. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23983. printf "%s\n" "$have_wgi" >&6; }
  23984. if test x$have_wgi = xyes; then
  23985. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23986. fi
  23987. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23988. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23989. then :
  23990. have_wasapi=yes
  23991. fi
  23992. if test x$have_wasapi = xyes; then
  23993. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23994. fi
  23995. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23996. if test "x$ac_cv_header_audioclient_h" = xyes
  23997. then :
  23998. else $as_nop
  23999. have_wasapi=no
  24000. fi
  24001. if test x$have_wasapi = xyes; then
  24002. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  24003. fi
  24004. # Check whether --enable-wasapi was given.
  24005. if test ${enable_wasapi+y}
  24006. then :
  24007. enableval=$enable_wasapi;
  24008. else $as_nop
  24009. enable_wasapi=yes
  24010. fi
  24011. }
  24012. CheckDLOPEN()
  24013. {
  24014. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  24015. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  24016. if test "x$ac_cv_header_dlfcn_h" = xyes
  24017. then :
  24018. have_dlfcn_h=yes
  24019. else $as_nop
  24020. have_dlfcn_h=no
  24021. fi
  24022. have_dlopen=no
  24023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  24024. printf %s "checking for dlopen in -lc... " >&6; }
  24025. if test ${ac_cv_lib_c_dlopen+y}
  24026. then :
  24027. printf %s "(cached) " >&6
  24028. else $as_nop
  24029. ac_check_lib_save_LIBS=$LIBS
  24030. LIBS="-lc $LIBS"
  24031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24032. /* end confdefs.h. */
  24033. /* Override any GCC internal prototype to avoid an error.
  24034. Use char because int might match the return type of a GCC
  24035. builtin and then its argument prototype would still apply. */
  24036. char dlopen ();
  24037. int
  24038. main (void)
  24039. {
  24040. return dlopen ();
  24041. ;
  24042. return 0;
  24043. }
  24044. _ACEOF
  24045. if ac_fn_c_try_link "$LINENO"
  24046. then :
  24047. ac_cv_lib_c_dlopen=yes
  24048. else $as_nop
  24049. ac_cv_lib_c_dlopen=no
  24050. fi
  24051. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24052. conftest$ac_exeext conftest.$ac_ext
  24053. LIBS=$ac_check_lib_save_LIBS
  24054. fi
  24055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  24056. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  24057. if test "x$ac_cv_lib_c_dlopen" = xyes
  24058. then :
  24059. have_dlopen=yes
  24060. else $as_nop
  24061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  24062. printf %s "checking for dlopen in -ldl... " >&6; }
  24063. if test ${ac_cv_lib_dl_dlopen+y}
  24064. then :
  24065. printf %s "(cached) " >&6
  24066. else $as_nop
  24067. ac_check_lib_save_LIBS=$LIBS
  24068. LIBS="-ldl $LIBS"
  24069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24070. /* end confdefs.h. */
  24071. /* Override any GCC internal prototype to avoid an error.
  24072. Use char because int might match the return type of a GCC
  24073. builtin and then its argument prototype would still apply. */
  24074. char dlopen ();
  24075. int
  24076. main (void)
  24077. {
  24078. return dlopen ();
  24079. ;
  24080. return 0;
  24081. }
  24082. _ACEOF
  24083. if ac_fn_c_try_link "$LINENO"
  24084. then :
  24085. ac_cv_lib_dl_dlopen=yes
  24086. else $as_nop
  24087. ac_cv_lib_dl_dlopen=no
  24088. fi
  24089. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24090. conftest$ac_exeext conftest.$ac_ext
  24091. LIBS=$ac_check_lib_save_LIBS
  24092. fi
  24093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  24094. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  24095. if test "x$ac_cv_lib_dl_dlopen" = xyes
  24096. then :
  24097. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  24098. fi
  24099. fi
  24100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  24101. printf %s "checking for dlopen... " >&6; }
  24102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  24103. printf "%s\n" "$have_dlopen" >&6; }
  24104. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  24105. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  24106. if test x$enable_loadso = xyes; then
  24107. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  24108. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  24109. have_loadso=yes
  24110. fi
  24111. fi
  24112. }
  24113. CheckO_CLOEXEC()
  24114. {
  24115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  24116. printf %s "checking for O_CLOEXEC... " >&6; }
  24117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24118. /* end confdefs.h. */
  24119. #include <fcntl.h>
  24120. int flag = O_CLOEXEC;
  24121. int
  24122. main (void)
  24123. {
  24124. ;
  24125. return 0;
  24126. }
  24127. _ACEOF
  24128. if ac_fn_c_try_compile "$LINENO"
  24129. then :
  24130. have_o_cloexec=yes
  24131. else $as_nop
  24132. have_o_cloexec=no
  24133. fi
  24134. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  24136. printf "%s\n" "$have_o_cloexec" >&6; }
  24137. if test $have_o_cloexec = yes; then
  24138. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  24139. fi
  24140. }
  24141. CheckUSBHID()
  24142. {
  24143. case "$host" in
  24144. *-*-*bsd*|*-*-dragonfly*)
  24145. if test x$enable_joystick = xyes; then
  24146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  24147. printf %s "checking for hid_init in -lusbhid... " >&6; }
  24148. if test ${ac_cv_lib_usbhid_hid_init+y}
  24149. then :
  24150. printf %s "(cached) " >&6
  24151. else $as_nop
  24152. ac_check_lib_save_LIBS=$LIBS
  24153. LIBS="-lusbhid $LIBS"
  24154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24155. /* end confdefs.h. */
  24156. /* Override any GCC internal prototype to avoid an error.
  24157. Use char because int might match the return type of a GCC
  24158. builtin and then its argument prototype would still apply. */
  24159. char hid_init ();
  24160. int
  24161. main (void)
  24162. {
  24163. return hid_init ();
  24164. ;
  24165. return 0;
  24166. }
  24167. _ACEOF
  24168. if ac_fn_c_try_link "$LINENO"
  24169. then :
  24170. ac_cv_lib_usbhid_hid_init=yes
  24171. else $as_nop
  24172. ac_cv_lib_usbhid_hid_init=no
  24173. fi
  24174. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24175. conftest$ac_exeext conftest.$ac_ext
  24176. LIBS=$ac_check_lib_save_LIBS
  24177. fi
  24178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  24179. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  24180. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  24181. then :
  24182. have_libusbhid=yes
  24183. fi
  24184. if test x$have_libusbhid = xyes; then
  24185. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  24186. if test "x$ac_cv_header_usbhid_h" = xyes
  24187. then :
  24188. USB_CFLAGS="-DHAVE_USBHID_H"
  24189. fi
  24190. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  24191. if test "x$ac_cv_header_libusbhid_h" = xyes
  24192. then :
  24193. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  24194. fi
  24195. USB_LIBS="$USB_LIBS -lusbhid"
  24196. else
  24197. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24198. if test "x$ac_cv_header_usb_h" = xyes
  24199. then :
  24200. USB_CFLAGS="-DHAVE_USB_H"
  24201. fi
  24202. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24203. if test "x$ac_cv_header_libusb_h" = xyes
  24204. then :
  24205. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24206. fi
  24207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24208. printf %s "checking for hid_init in -lusb... " >&6; }
  24209. if test ${ac_cv_lib_usb_hid_init+y}
  24210. then :
  24211. printf %s "(cached) " >&6
  24212. else $as_nop
  24213. ac_check_lib_save_LIBS=$LIBS
  24214. LIBS="-lusb $LIBS"
  24215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24216. /* end confdefs.h. */
  24217. /* Override any GCC internal prototype to avoid an error.
  24218. Use char because int might match the return type of a GCC
  24219. builtin and then its argument prototype would still apply. */
  24220. char hid_init ();
  24221. int
  24222. main (void)
  24223. {
  24224. return hid_init ();
  24225. ;
  24226. return 0;
  24227. }
  24228. _ACEOF
  24229. if ac_fn_c_try_link "$LINENO"
  24230. then :
  24231. ac_cv_lib_usb_hid_init=yes
  24232. else $as_nop
  24233. ac_cv_lib_usb_hid_init=no
  24234. fi
  24235. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24236. conftest$ac_exeext conftest.$ac_ext
  24237. LIBS=$ac_check_lib_save_LIBS
  24238. fi
  24239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24240. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24241. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24242. then :
  24243. USB_LIBS="$USB_LIBS -lusb"
  24244. fi
  24245. fi
  24246. save_CFLAGS="$CFLAGS"
  24247. CFLAGS="$CFLAGS $USB_CFLAGS"
  24248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24249. printf %s "checking for usbhid... " >&6; }
  24250. have_usbhid=no
  24251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24252. /* end confdefs.h. */
  24253. #include <sys/types.h>
  24254. #if defined(HAVE_USB_H)
  24255. #include <usb.h>
  24256. #endif
  24257. #ifdef __DragonFly__
  24258. # include <bus/u4b/usb.h>
  24259. # include <bus/u4b/usbhid.h>
  24260. #else
  24261. # include <dev/usb/usb.h>
  24262. # include <dev/usb/usbhid.h>
  24263. #endif
  24264. #if defined(HAVE_USBHID_H)
  24265. #include <usbhid.h>
  24266. #elif defined(HAVE_LIBUSB_H)
  24267. #include <libusb.h>
  24268. #elif defined(HAVE_LIBUSBHID_H)
  24269. #include <libusbhid.h>
  24270. #endif
  24271. int
  24272. main (void)
  24273. {
  24274. struct report_desc *repdesc;
  24275. struct usb_ctl_report *repbuf;
  24276. hid_kind_t hidkind;
  24277. ;
  24278. return 0;
  24279. }
  24280. _ACEOF
  24281. if ac_fn_c_try_compile "$LINENO"
  24282. then :
  24283. have_usbhid=yes
  24284. fi
  24285. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24287. printf "%s\n" "$have_usbhid" >&6; }
  24288. if test x$have_usbhid = xyes; then
  24289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24290. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24291. have_usbhid_ucr_data=no
  24292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24293. /* end confdefs.h. */
  24294. #include <sys/types.h>
  24295. #if defined(HAVE_USB_H)
  24296. #include <usb.h>
  24297. #endif
  24298. #ifdef __DragonFly__
  24299. # include <bus/u4b/usb.h>
  24300. # include <bus/u4b/usbhid.h>
  24301. #else
  24302. # include <dev/usb/usb.h>
  24303. # include <dev/usb/usbhid.h>
  24304. #endif
  24305. #if defined(HAVE_USBHID_H)
  24306. #include <usbhid.h>
  24307. #elif defined(HAVE_LIBUSB_H)
  24308. #include <libusb.h>
  24309. #elif defined(HAVE_LIBUSBHID_H)
  24310. #include <libusbhid.h>
  24311. #endif
  24312. int
  24313. main (void)
  24314. {
  24315. struct usb_ctl_report buf;
  24316. if (buf.ucr_data) { }
  24317. ;
  24318. return 0;
  24319. }
  24320. _ACEOF
  24321. if ac_fn_c_try_compile "$LINENO"
  24322. then :
  24323. have_usbhid_ucr_data=yes
  24324. fi
  24325. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24326. if test x$have_usbhid_ucr_data = xyes; then
  24327. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24328. fi
  24329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24330. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24332. printf %s "checking for new usbhid API... " >&6; }
  24333. have_usbhid_new=no
  24334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24335. /* end confdefs.h. */
  24336. #include <sys/types.h>
  24337. #if defined(HAVE_USB_H)
  24338. #include <usb.h>
  24339. #endif
  24340. #ifdef __DragonFly__
  24341. #include <bus/u4b/usb.h>
  24342. #include <bus/u4b/usbhid.h>
  24343. #else
  24344. #include <dev/usb/usb.h>
  24345. #include <dev/usb/usbhid.h>
  24346. #endif
  24347. #if defined(HAVE_USBHID_H)
  24348. #include <usbhid.h>
  24349. #elif defined(HAVE_LIBUSB_H)
  24350. #include <libusb.h>
  24351. #elif defined(HAVE_LIBUSBHID_H)
  24352. #include <libusbhid.h>
  24353. #endif
  24354. int
  24355. main (void)
  24356. {
  24357. report_desc_t d;
  24358. hid_start_parse(d, 1, 1);
  24359. ;
  24360. return 0;
  24361. }
  24362. _ACEOF
  24363. if ac_fn_c_try_compile "$LINENO"
  24364. then :
  24365. have_usbhid_new=yes
  24366. fi
  24367. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24368. if test x$have_usbhid_new = xyes; then
  24369. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24370. fi
  24371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24372. printf "%s\n" "$have_usbhid_new" >&6; }
  24373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24374. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24375. have_machine_joystick=no
  24376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24377. /* end confdefs.h. */
  24378. #include <machine/joystick.h>
  24379. int
  24380. main (void)
  24381. {
  24382. struct joystick t;
  24383. ;
  24384. return 0;
  24385. }
  24386. _ACEOF
  24387. if ac_fn_c_try_compile "$LINENO"
  24388. then :
  24389. have_machine_joystick=yes
  24390. fi
  24391. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24392. if test x$have_machine_joystick = xyes; then
  24393. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24394. fi
  24395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24396. printf "%s\n" "$have_machine_joystick" >&6; }
  24397. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24398. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24399. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24400. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24401. have_joystick=yes
  24402. fi
  24403. CFLAGS="$save_CFLAGS"
  24404. fi
  24405. ;;
  24406. esac
  24407. }
  24408. CheckHIDAPI()
  24409. {
  24410. # Check whether --enable-hidapi-joystick was given.
  24411. if test ${enable_hidapi_joystick+y}
  24412. then :
  24413. enableval=$enable_hidapi_joystick;
  24414. else $as_nop
  24415. enable_hidapi_joystick=yes
  24416. fi
  24417. # Check whether --enable-hidapi-libusb was given.
  24418. if test ${enable_hidapi_libusb+y}
  24419. then :
  24420. enableval=$enable_hidapi_libusb;
  24421. else $as_nop
  24422. enable_hidapi_libusb=maybe
  24423. fi
  24424. if test x$enable_hidapi = xyes; then
  24425. case "$host" in
  24426. # libusb does not support iOS
  24427. *-ios-* )
  24428. enable_hidapi_libusb=no
  24429. ;;
  24430. # On the other hand, *BSD specifically uses libusb only
  24431. *-*-*bsd* )
  24432. enable_hidapi_libusb=yes
  24433. require_hidapi_libusb=yes
  24434. ;;
  24435. *-*-os2* )
  24436. enable_hidapi_libusb=yes
  24437. ;;
  24438. esac
  24439. hidapi_support=yes
  24440. if test x$enable_hidapi_libusb = xyes; then
  24441. pkg_failed=no
  24442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24443. printf %s "checking for libusb-1.0... " >&6; }
  24444. if test -n "$LIBUSB_CFLAGS"; then
  24445. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24446. elif test -n "$PKG_CONFIG"; then
  24447. if test -n "$PKG_CONFIG" && \
  24448. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24449. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24450. ac_status=$?
  24451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24452. test $ac_status = 0; }; then
  24453. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24454. test "x$?" != "x0" && pkg_failed=yes
  24455. else
  24456. pkg_failed=yes
  24457. fi
  24458. else
  24459. pkg_failed=untried
  24460. fi
  24461. if test -n "$LIBUSB_LIBS"; then
  24462. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24463. elif test -n "$PKG_CONFIG"; then
  24464. if test -n "$PKG_CONFIG" && \
  24465. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24466. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24467. ac_status=$?
  24468. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24469. test $ac_status = 0; }; then
  24470. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24471. test "x$?" != "x0" && pkg_failed=yes
  24472. else
  24473. pkg_failed=yes
  24474. fi
  24475. else
  24476. pkg_failed=untried
  24477. fi
  24478. if test $pkg_failed = yes; then
  24479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24480. printf "%s\n" "no" >&6; }
  24481. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24482. _pkg_short_errors_supported=yes
  24483. else
  24484. _pkg_short_errors_supported=no
  24485. fi
  24486. if test $_pkg_short_errors_supported = yes; then
  24487. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24488. else
  24489. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24490. fi
  24491. # Put the nasty error message in config.log where it belongs
  24492. echo "$LIBUSB_PKG_ERRORS" >&5
  24493. have_libusb=no
  24494. elif test $pkg_failed = untried; then
  24495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24496. printf "%s\n" "no" >&6; }
  24497. have_libusb=no
  24498. else
  24499. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24500. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24502. printf "%s\n" "yes" >&6; }
  24503. have_libusb=yes
  24504. fi
  24505. save_CPPFLAGS="$CPPFLAGS"
  24506. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24507. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24508. if test "x$ac_cv_header_libusb_h" = xyes
  24509. then :
  24510. have_libusb_h=yes
  24511. else $as_nop
  24512. have_libusb_h=no
  24513. fi
  24514. CPPFLAGS="$save_CPPFLAGS"
  24515. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24516. hidapi_support=no
  24517. fi
  24518. fi
  24519. if test x$hidapi_support = xyes; then
  24520. if test x$have_libusb_h = xyes; then
  24521. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24522. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24523. if test x$require_hidapi_libusb = xyes; then
  24524. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24525. else
  24526. if test x$have_loadso != xyes; then
  24527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24528. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24529. fi
  24530. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24531. libusb_lib=""
  24532. case "$host" in
  24533. *-*-darwin* )
  24534. libusb_lib="libusb-1.0.0.dylib"
  24535. ;;
  24536. *-*-cygwin* | *-*-mingw* )
  24537. libusb_lib="libusb-1.0.dll"
  24538. ;;
  24539. *-*-os2* )
  24540. libusb_lib="usb100.dll"
  24541. ;;
  24542. esac
  24543. if test x$libusb_lib = x; then
  24544. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24545. fi
  24546. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24547. fi
  24548. fi
  24549. fi
  24550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24551. printf %s "checking for hidapi joystick support... " >&6; }
  24552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24553. printf "%s\n" "$hidapi_support" >&6; }
  24554. fi
  24555. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24556. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24557. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24558. fi
  24559. }
  24560. CheckClockGettime()
  24561. {
  24562. # Check whether --enable-clock_gettime was given.
  24563. if test ${enable_clock_gettime+y}
  24564. then :
  24565. enableval=$enable_clock_gettime;
  24566. else $as_nop
  24567. enable_clock_gettime=yes
  24568. fi
  24569. if test x$enable_clock_gettime = xyes; then
  24570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24571. printf %s "checking for clock_gettime in -lc... " >&6; }
  24572. if test ${ac_cv_lib_c_clock_gettime+y}
  24573. then :
  24574. printf %s "(cached) " >&6
  24575. else $as_nop
  24576. ac_check_lib_save_LIBS=$LIBS
  24577. LIBS="-lc $LIBS"
  24578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24579. /* end confdefs.h. */
  24580. /* Override any GCC internal prototype to avoid an error.
  24581. Use char because int might match the return type of a GCC
  24582. builtin and then its argument prototype would still apply. */
  24583. char clock_gettime ();
  24584. int
  24585. main (void)
  24586. {
  24587. return clock_gettime ();
  24588. ;
  24589. return 0;
  24590. }
  24591. _ACEOF
  24592. if ac_fn_c_try_link "$LINENO"
  24593. then :
  24594. ac_cv_lib_c_clock_gettime=yes
  24595. else $as_nop
  24596. ac_cv_lib_c_clock_gettime=no
  24597. fi
  24598. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24599. conftest$ac_exeext conftest.$ac_ext
  24600. LIBS=$ac_check_lib_save_LIBS
  24601. fi
  24602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24603. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24604. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24605. then :
  24606. have_clock_gettime=yes
  24607. fi
  24608. if test x$have_clock_gettime = xyes; then
  24609. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24610. else
  24611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24612. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24613. if test ${ac_cv_lib_rt_clock_gettime+y}
  24614. then :
  24615. printf %s "(cached) " >&6
  24616. else $as_nop
  24617. ac_check_lib_save_LIBS=$LIBS
  24618. LIBS="-lrt $LIBS"
  24619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24620. /* end confdefs.h. */
  24621. /* Override any GCC internal prototype to avoid an error.
  24622. Use char because int might match the return type of a GCC
  24623. builtin and then its argument prototype would still apply. */
  24624. char clock_gettime ();
  24625. int
  24626. main (void)
  24627. {
  24628. return clock_gettime ();
  24629. ;
  24630. return 0;
  24631. }
  24632. _ACEOF
  24633. if ac_fn_c_try_link "$LINENO"
  24634. then :
  24635. ac_cv_lib_rt_clock_gettime=yes
  24636. else $as_nop
  24637. ac_cv_lib_rt_clock_gettime=no
  24638. fi
  24639. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24640. conftest$ac_exeext conftest.$ac_ext
  24641. LIBS=$ac_check_lib_save_LIBS
  24642. fi
  24643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24644. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24645. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24646. then :
  24647. have_clock_gettime=yes
  24648. fi
  24649. if test x$have_clock_gettime = xyes; then
  24650. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24651. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24652. fi
  24653. fi
  24654. fi
  24655. }
  24656. CheckLinuxVersion()
  24657. {
  24658. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24659. if test "x$ac_cv_header_linux_version_h" = xyes
  24660. then :
  24661. have_linux_version_h=yes
  24662. fi
  24663. if test x$have_linux_version_h = xyes; then
  24664. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24665. fi
  24666. }
  24667. CheckRPATH()
  24668. {
  24669. # Check whether --enable-rpath was given.
  24670. if test ${enable_rpath+y}
  24671. then :
  24672. enableval=$enable_rpath;
  24673. else $as_nop
  24674. enable_rpath=yes
  24675. fi
  24676. }
  24677. CheckEventSignals()
  24678. {
  24679. # Check whether --enable-backgrounding-signal was given.
  24680. if test ${enable_backgrounding_signal+y}
  24681. then :
  24682. enableval=$enable_backgrounding_signal;
  24683. else $as_nop
  24684. enable_backgrounding_signal=no
  24685. fi
  24686. if test x$enable_backgrounding_signal != xno; then
  24687. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24688. fi
  24689. # Check whether --enable-foregrounding-signal was given.
  24690. if test ${enable_foregrounding_signal+y}
  24691. then :
  24692. enableval=$enable_foregrounding_signal;
  24693. else $as_nop
  24694. enable_foregrounding_signal=no
  24695. fi
  24696. if test x$enable_foregrounding_signal != xno; then
  24697. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24698. fi
  24699. }
  24700. CheckVirtualJoystick()
  24701. {
  24702. # Check whether --enable-joystick-virtual was given.
  24703. if test ${enable_joystick_virtual+y}
  24704. then :
  24705. enableval=$enable_joystick_virtual;
  24706. else $as_nop
  24707. enable_joystick_virtual=yes
  24708. fi
  24709. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24710. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24711. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24712. have_joystick_virtual=yes
  24713. fi
  24714. }
  24715. CheckWarnAll
  24716. CheckUnusedLocalTypedefs
  24717. CheckNoStrictAliasing
  24718. CheckEventSignals
  24719. have_locale=no
  24720. case "$host" in
  24721. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24722. case "$host" in
  24723. *-*-android*)
  24724. # Android
  24725. ARCH=android
  24726. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24727. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24728. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24729. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24730. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24731. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24732. if test x$enable_video = xyes; then
  24733. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24734. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24735. SUMMARY_video="${SUMMARY_video} android"
  24736. have_video=yes
  24737. fi
  24738. ;;
  24739. *-*-linux*) ARCH=linux ;;
  24740. *-*-uclinux*) ARCH=linux ;;
  24741. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24742. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24743. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24744. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24745. *-*-bsdi*) ARCH=bsdi ;;
  24746. *-*-freebsd*) ARCH=freebsd ;;
  24747. *-*-dragonfly*) ARCH=freebsd ;;
  24748. *-*-netbsd*) ARCH=netbsd ;;
  24749. *-*-openbsd*) ARCH=openbsd ;;
  24750. *-*-sysv5*) ARCH=sysv5 ;;
  24751. *-*-solaris*) ARCH=solaris ;;
  24752. *-*-hpux*) ARCH=hpux ;;
  24753. *-*-aix*) ARCH=aix ;;
  24754. *-*-minix*) ARCH=minix ;;
  24755. *-*-nto*) ARCH=nto
  24756. CheckQNXVideo
  24757. ;;
  24758. esac
  24759. CheckVisibilityHidden
  24760. CheckWerror
  24761. CheckDeclarationAfterStatement
  24762. CheckDummyVideo
  24763. CheckOffscreenVideo
  24764. CheckDiskAudio
  24765. CheckDummyAudio
  24766. CheckDLOPEN
  24767. CheckARM
  24768. CheckNEON
  24769. CheckO_CLOEXEC
  24770. CheckOSS
  24771. CheckALSA
  24772. CheckPipewire
  24773. CheckPulseAudio
  24774. CheckJACK
  24775. CheckARTSC
  24776. CheckESD
  24777. CheckNAS
  24778. CheckSNDIO
  24779. CheckFusionSound
  24780. CheckLibSampleRate
  24781. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24782. CheckRPI
  24783. CheckX11
  24784. CheckDirectFB
  24785. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24786. CheckEGL
  24787. CheckKMSDRM
  24788. CheckGLX
  24789. CheckOpenGL
  24790. CheckOpenGLES
  24791. CheckVulkan
  24792. CheckWayland
  24793. CheckInputEvents
  24794. CheckLibUDev
  24795. CheckDBus
  24796. CheckIME
  24797. CheckInotify
  24798. CheckIBus
  24799. CheckFcitx
  24800. case $ARCH in
  24801. linux)
  24802. CheckInputKD
  24803. ;;
  24804. freebsd)
  24805. CheckInputKBIO
  24806. ;;
  24807. openbsd|netbsd)
  24808. CheckInputWSCONS
  24809. ;;
  24810. esac
  24811. CheckUSBHID
  24812. CheckHIDAPI
  24813. CheckPTHREAD
  24814. CheckClockGettime
  24815. CheckLinuxVersion
  24816. CheckRPATH
  24817. CheckVivanteVideo
  24818. # Set up files for the misc library
  24819. if test x$enable_misc = xyes; then
  24820. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24821. have_misc=yes
  24822. fi
  24823. # Set up files for the locale library
  24824. if test x$enable_locale = xyes; then
  24825. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24826. have_locale=yes
  24827. fi
  24828. # Set up files for the audio library
  24829. if test x$enable_audio = xyes; then
  24830. case $ARCH in
  24831. sysv5|solaris|hpux)
  24832. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24833. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24834. SUMMARY_audio="${SUMMARY_audio} sun"
  24835. have_audio=yes
  24836. ;;
  24837. netbsd) # Don't use this on OpenBSD, it's busted.
  24838. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24839. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24840. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24841. have_audio=yes
  24842. ;;
  24843. aix)
  24844. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24845. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24846. SUMMARY_audio="${SUMMARY_audio} paudio"
  24847. have_audio=yes
  24848. ;;
  24849. android)
  24850. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24851. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24852. SUMMARY_audio="${SUMMARY_audio} android"
  24853. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24854. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24855. SUMMARY_audio="${SUMMARY_audio} openslES"
  24856. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24857. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24858. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24859. have_audio=yes
  24860. ;;
  24861. nto)
  24862. CheckQNXAudio
  24863. ;;
  24864. esac
  24865. fi
  24866. # Set up files for the joystick library
  24867. if test x$enable_joystick = xyes; then
  24868. case $ARCH in
  24869. linux)
  24870. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24871. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24872. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24873. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24874. have_joystick=yes
  24875. fi
  24876. ;;
  24877. freebsd)
  24878. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24879. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24880. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24881. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24882. have_joystick=yes
  24883. fi
  24884. ;;
  24885. android)
  24886. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24887. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24888. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24889. have_joystick=yes
  24890. ;;
  24891. esac
  24892. fi
  24893. # Set up files for the haptic library
  24894. if test x$enable_haptic = xyes; then
  24895. case $ARCH in
  24896. linux|freebsd)
  24897. if test x$use_input_events = xyes; then
  24898. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24899. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24900. have_haptic=yes
  24901. fi
  24902. ;;
  24903. android)
  24904. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24905. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24906. have_haptic=yes
  24907. ;;
  24908. esac
  24909. fi
  24910. # Set up files for the sensor library
  24911. if test x$enable_sensor = xyes; then
  24912. case $ARCH in
  24913. android)
  24914. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24915. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24916. have_sensor=yes
  24917. ;;
  24918. esac
  24919. fi
  24920. # Set up files for the power library
  24921. if test x$enable_power = xyes; then
  24922. case $ARCH in
  24923. linux)
  24924. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24925. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24926. have_power=yes
  24927. ;;
  24928. android)
  24929. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24930. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24931. have_power=yes
  24932. ;;
  24933. esac
  24934. fi
  24935. # Set up files for the filesystem library
  24936. if test x$enable_filesystem = xyes; then
  24937. case $ARCH in
  24938. android)
  24939. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24940. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24941. have_filesystem=yes
  24942. ;;
  24943. *)
  24944. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24945. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24946. have_filesystem=yes
  24947. ;;
  24948. esac
  24949. fi
  24950. # Set up files for the timer library
  24951. if test x$enable_timers = xyes; then
  24952. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24953. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24954. have_timers=yes
  24955. fi
  24956. # Set up files for udev hotplugging support
  24957. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24958. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24959. fi
  24960. # Set up files for evdev input
  24961. if test x$use_input_events = xyes; then
  24962. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24963. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24964. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24965. fi
  24966. # Set up files for wscons input
  24967. if test x$use_input_wscons = xyes; then
  24968. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24969. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24970. fi
  24971. # Set up other core UNIX files
  24972. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24973. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24974. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24975. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24976. ;;
  24977. *-*-cygwin* | *-*-mingw*)
  24978. ARCH=win32
  24979. if test "$build" != "$host"; then # cross-compiling
  24980. # Default cross-compile location
  24981. ac_default_prefix=/usr/local/cross-tools/$host
  24982. else
  24983. # Look for the location of the tools and install there
  24984. if test "$BUILD_PREFIX" != ""; then
  24985. ac_default_prefix=$BUILD_PREFIX
  24986. fi
  24987. fi
  24988. if test x$enable_loadso = xyes; then
  24989. have_loadso=yes
  24990. fi
  24991. CheckGDwarf4
  24992. CheckWerror
  24993. CheckDeclarationAfterStatement
  24994. CheckDummyVideo
  24995. CheckOffscreenVideo
  24996. CheckDiskAudio
  24997. CheckDummyAudio
  24998. CheckWINDOWS
  24999. CheckWINDOWSGL
  25000. CheckWINDOWSGLES
  25001. CheckVulkan
  25002. CheckDIRECTX
  25003. CheckHIDAPI
  25004. # Set up the core platform files
  25005. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  25006. # Set up files for the misc library
  25007. if test x$enable_misc = xyes; then
  25008. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  25009. have_misc=yes
  25010. fi
  25011. # Use the Windows locale APIs.
  25012. if test x$enable_locale = xyes; then
  25013. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  25014. have_locale=yes
  25015. fi
  25016. # Set up files for the video library
  25017. if test x$enable_video = xyes; then
  25018. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  25019. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  25020. have_video=yes
  25021. # Check whether --enable-render-d3d was given.
  25022. if test ${enable_render_d3d+y}
  25023. then :
  25024. enableval=$enable_render_d3d;
  25025. else $as_nop
  25026. enable_render_d3d=yes
  25027. fi
  25028. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  25029. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  25030. SUMMARY_video="${SUMMARY_video} d3d9"
  25031. fi
  25032. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  25033. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  25034. SUMMARY_video="${SUMMARY_video} d3d11"
  25035. fi
  25036. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  25037. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  25038. SUMMARY_video="${SUMMARY_video} d3d12"
  25039. fi
  25040. fi
  25041. # Set up files for the audio library
  25042. if test x$enable_audio = xyes; then
  25043. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  25044. SUMMARY_audio="${SUMMARY_audio} winmm"
  25045. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  25046. if test x$have_dsound = xyes; then
  25047. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  25048. SUMMARY_audio="${SUMMARY_audio} directsound"
  25049. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  25050. fi
  25051. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  25052. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  25053. SUMMARY_audio="${SUMMARY_audio} wasapi"
  25054. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  25055. fi
  25056. have_audio=yes
  25057. fi
  25058. # Set up files for the joystick library
  25059. if test x$enable_joystick = xyes; then
  25060. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  25061. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  25062. if test x$have_xinput = xyes; then
  25063. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  25064. fi
  25065. if test x$have_wgi = xyes; then
  25066. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  25067. fi
  25068. if test x$have_dinput = xyes; then
  25069. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  25070. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  25071. fi
  25072. fi
  25073. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  25074. have_joystick=yes
  25075. fi
  25076. if test x$enable_haptic = xyes; then
  25077. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  25078. if test x$have_xinput = xyes; then
  25079. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  25080. fi
  25081. if test x$have_dinput = xyes; then
  25082. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  25083. fi
  25084. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  25085. have_haptic=yes
  25086. fi
  25087. fi
  25088. # Set up files for the sensor library
  25089. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  25090. if test "x$ac_cv_header_sensorsapi_h" = xyes
  25091. then :
  25092. have_winsensors=yes
  25093. else $as_nop
  25094. have_winsensors=no
  25095. fi
  25096. if test x$have_winsensors = xyes; then
  25097. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  25098. fi
  25099. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  25100. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  25101. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  25102. have_sensor=yes
  25103. fi
  25104. # Set up files for the power library
  25105. if test x$enable_power = xyes; then
  25106. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  25107. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  25108. have_power=yes
  25109. fi
  25110. # Set up files for the filesystem library
  25111. if test x$enable_filesystem = xyes; then
  25112. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  25113. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  25114. have_filesystem=yes
  25115. fi
  25116. # Set up files for the thread library
  25117. if test x$enable_threads = xyes; then
  25118. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  25119. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  25120. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  25121. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25122. have_threads=yes
  25123. fi
  25124. # Set up files for the timer library
  25125. if test x$enable_timers = xyes; then
  25126. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  25127. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  25128. have_timers=yes
  25129. fi
  25130. # Set up files for the shared object loading library
  25131. if test x$enable_loadso = xyes; then
  25132. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  25133. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  25134. fi
  25135. # Set up the system libraries we need
  25136. if test -f /lib/w32api/libuuid.a; then
  25137. LIBUUID=/lib/w32api/libuuid.a
  25138. else
  25139. LIBUUID=-luuid
  25140. fi
  25141. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  25142. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  25143. # The Windows platform requires special setup
  25144. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  25145. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  25146. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  25147. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  25148. # Check to see if this is a mingw or cygwin build
  25149. have_mingw32=
  25150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  25151. printf %s "checking for main in -lmingw32... " >&6; }
  25152. if test ${ac_cv_lib_mingw32_main+y}
  25153. then :
  25154. printf %s "(cached) " >&6
  25155. else $as_nop
  25156. ac_check_lib_save_LIBS=$LIBS
  25157. LIBS="-lmingw32 $LIBS"
  25158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25159. /* end confdefs.h. */
  25160. int
  25161. main (void)
  25162. {
  25163. return main ();
  25164. ;
  25165. return 0;
  25166. }
  25167. _ACEOF
  25168. if ac_fn_c_try_link "$LINENO"
  25169. then :
  25170. ac_cv_lib_mingw32_main=yes
  25171. else $as_nop
  25172. ac_cv_lib_mingw32_main=no
  25173. fi
  25174. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25175. conftest$ac_exeext conftest.$ac_ext
  25176. LIBS=$ac_check_lib_save_LIBS
  25177. fi
  25178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  25179. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  25180. if test "x$ac_cv_lib_mingw32_main" = xyes
  25181. then :
  25182. have_mingw32=yes
  25183. fi
  25184. if test x$have_mingw32 = xyes; then
  25185. SDL_LIBS="-lmingw32 $SDL_LIBS"
  25186. else
  25187. SDL_LIBS="-lcygwin $SDL_LIBS"
  25188. fi
  25189. ;;
  25190. *-*-beos*)
  25191. as_fn_error $? "
  25192. *** BeOS support has been removed as of SDL 2.0.2.
  25193. " "$LINENO" 5
  25194. ;;
  25195. *-*-haiku*)
  25196. ARCH=haiku
  25197. ac_default_prefix=/boot/system
  25198. CheckDummyVideo
  25199. CheckOffscreenVideo
  25200. CheckDiskAudio
  25201. CheckDummyAudio
  25202. CheckDLOPEN
  25203. CheckO_CLOEXEC
  25204. CheckHaikuVideo
  25205. CheckHaikuGL
  25206. CheckPTHREAD
  25207. # Set up files for the audio library
  25208. if test x$enable_audio = xyes; then
  25209. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25210. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25211. SUMMARY_audio="${SUMMARY_audio} haiku"
  25212. have_audio=yes
  25213. fi
  25214. # Set up files for the joystick library
  25215. if test x$enable_joystick = xyes; then
  25216. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25217. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25218. have_joystick=yes
  25219. fi
  25220. # Set up files for the timer library
  25221. if test x$enable_timers = xyes; then
  25222. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25223. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25224. have_timers=yes
  25225. fi
  25226. # Set up files for the system power library
  25227. if test x$enable_power = xyes; then
  25228. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25229. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25230. have_power=yes
  25231. fi
  25232. # Set up files for the system filesystem library
  25233. if test x$enable_filesystem = xyes; then
  25234. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25235. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25236. have_filesystem=yes
  25237. fi
  25238. # Set up files for the misc library
  25239. if test x$enable_misc = xyes; then
  25240. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25241. have_misc=yes
  25242. fi
  25243. # Set up files for the locale library
  25244. if test x$enable_locale = xyes; then
  25245. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25246. have_locale=yes
  25247. fi
  25248. # The Haiku platform requires special setup.
  25249. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25250. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25251. ;;
  25252. *-ios-*)
  25253. ARCH=ios
  25254. CheckVisibilityHidden
  25255. CheckWerror
  25256. CheckNoErrorDeprecatedDeclarationsWerror
  25257. CheckDeclarationAfterStatement
  25258. CheckDummyVideo
  25259. CheckOffscreenVideo
  25260. CheckDiskAudio
  25261. CheckDummyAudio
  25262. CheckDLOPEN
  25263. CheckO_CLOEXEC
  25264. CheckMETAL
  25265. CheckVulkan
  25266. CheckPTHREAD
  25267. # Set up files for the misc library
  25268. if test x$enable_misc = xyes; then
  25269. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25270. have_misc=yes
  25271. fi
  25272. # Set up files for the locale library
  25273. if test x$enable_locale = xyes; then
  25274. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25275. have_locale=yes
  25276. fi
  25277. # Set up files for the audio library
  25278. if test x$enable_audio = xyes; then
  25279. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25280. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25281. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25282. have_audio=yes
  25283. fi
  25284. # Set up files for the joystick library
  25285. if test x$enable_joystick = xyes; then
  25286. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25287. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25288. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25289. have_joystick=yes
  25290. else
  25291. # Need this code for accelerometer as joystick support
  25292. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25293. fi
  25294. # Set up files for the haptic library
  25295. #if test x$enable_haptic = xyes; then
  25296. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25297. # have_haptic=yes
  25298. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25299. #fi
  25300. # Set up files for the sensor library
  25301. if test x$enable_sensor = xyes; then
  25302. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25303. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25304. have_sensor=yes
  25305. fi
  25306. # Set up files for the power library
  25307. if test x$enable_power = xyes; then
  25308. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25309. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25310. have_power=yes
  25311. fi
  25312. # Set up files for the filesystem library
  25313. if test x$enable_filesystem = xyes; then
  25314. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25315. have_filesystem=yes
  25316. fi
  25317. # Set up additional files for the file library
  25318. if test x$enable_file = xyes; then
  25319. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25320. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25321. fi
  25322. # Set up files for the timer library
  25323. if test x$enable_timers = xyes; then
  25324. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25325. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25326. have_timers=yes
  25327. fi
  25328. # Set up other core UNIX files
  25329. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25330. # The iOS platform requires special setup.
  25331. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25332. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25333. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25334. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25335. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25336. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25337. SUMMARY_video="${SUMMARY_video} uikit"
  25338. have_video=yes
  25339. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25340. if test x$enable_system_iconv = xyes; then
  25341. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25342. fi
  25343. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25344. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25345. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25346. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25347. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25348. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25349. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25350. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25351. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25352. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25353. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25354. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25355. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25356. fi
  25357. ;;
  25358. *-*-darwin* )
  25359. # This could be either full "Mac OS X", or plain "Darwin" which is
  25360. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25361. # Next line is broken, and a few files below require Mac OS X (full)
  25362. ARCH=macosx
  25363. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25364. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25365. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25366. CheckObjectiveCARC
  25367. CheckVisibilityHidden
  25368. CheckWerror
  25369. CheckNoErrorDeprecatedDeclarationsWerror
  25370. CheckDeclarationAfterStatement
  25371. CheckDummyVideo
  25372. CheckOffscreenVideo
  25373. CheckDiskAudio
  25374. CheckDummyAudio
  25375. CheckDLOPEN
  25376. CheckO_CLOEXEC
  25377. CheckCOCOA
  25378. CheckMETAL
  25379. CheckX11
  25380. CheckMacGL
  25381. CheckMacGLES
  25382. CheckGLX
  25383. CheckOpenGL
  25384. CheckVulkan
  25385. CheckPTHREAD
  25386. CheckHIDAPI
  25387. # Set up files for the misc library
  25388. if test x$enable_misc = xyes; then
  25389. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25390. have_misc=yes
  25391. fi
  25392. # Set up files for the locale library
  25393. if test x$enable_locale = xyes; then
  25394. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25395. have_locale=yes
  25396. fi
  25397. # Set up files for the audio library
  25398. if test x$enable_audio = xyes; then
  25399. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25400. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25401. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25402. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25403. have_audio=yes
  25404. fi
  25405. # Set up files for the joystick library
  25406. if test x$enable_joystick = xyes; then
  25407. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25408. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25409. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25410. CheckJoystickMFI
  25411. have_joystick=yes
  25412. fi
  25413. # Set up files for the haptic library
  25414. if test x$enable_haptic = xyes; then
  25415. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25416. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25417. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25418. have_haptic=yes
  25419. fi
  25420. # Set up files for the power library
  25421. if test x$enable_power = xyes; then
  25422. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25423. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25424. have_power=yes
  25425. fi
  25426. # Set up files for the filesystem library
  25427. if test x$enable_filesystem = xyes; then
  25428. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25429. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25430. have_filesystem=yes
  25431. fi
  25432. # Set up files for the timer library
  25433. if test x$enable_timers = xyes; then
  25434. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25435. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25436. have_timers=yes
  25437. fi
  25438. # Set up additional files for the file library
  25439. if test x$enable_file = xyes; then
  25440. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25441. fi
  25442. # Set up other core UNIX files
  25443. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25444. # The Mac OS X platform requires special setup.
  25445. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25446. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25447. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25448. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25449. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25450. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25451. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25452. fi
  25453. ;;
  25454. *-nacl|*-pnacl)
  25455. ARCH=nacl
  25456. CheckNativeClient
  25457. CheckDummyAudio
  25458. CheckDummyVideo
  25459. CheckOffscreenVideo
  25460. CheckInputEvents
  25461. CheckPTHREAD
  25462. CheckO_CLOEXEC
  25463. # Set up files for the timer library
  25464. if test x$enable_timers = xyes; then
  25465. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25466. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25467. have_timers=yes
  25468. fi
  25469. if test x$enable_filesystem = xyes; then
  25470. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25471. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25472. have_filesystem=yes
  25473. fi
  25474. ;;
  25475. *-*-emscripten* )
  25476. if test x$enable_video = xyes; then
  25477. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25478. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25479. have_video=yes
  25480. SUMMARY_video="${SUMMARY_video} emscripten"
  25481. fi
  25482. if test x$enable_audio = xyes; then
  25483. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25484. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25485. have_audio=yes
  25486. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25487. fi
  25488. CheckVisibilityHidden
  25489. CheckWerror
  25490. CheckDeclarationAfterStatement
  25491. CheckDummyVideo
  25492. CheckOffscreenVideo
  25493. CheckDiskAudio
  25494. CheckDummyAudio
  25495. CheckPTHREAD
  25496. CheckDLOPEN
  25497. CheckClockGettime
  25498. CheckEmscriptenGLES
  25499. # Set up files for the misc library
  25500. if test x$enable_misc = xyes; then
  25501. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25502. have_misc=yes
  25503. fi
  25504. # Set up files for the power library
  25505. if test x$enable_power = xyes; then
  25506. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25507. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25508. have_power=yes
  25509. fi
  25510. # Set up files for the joystick library
  25511. if test x$enable_joystick = xyes; then
  25512. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25513. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25514. have_joystick=yes
  25515. fi
  25516. # Set up files for the filesystem library
  25517. if test x$enable_filesystem = xyes; then
  25518. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25519. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25520. have_filesystem=yes
  25521. fi
  25522. # Set up files for the timer library
  25523. if test x$enable_timers = xyes; then
  25524. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25525. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25526. have_timers=yes
  25527. fi
  25528. # Set up files for the locale library
  25529. if test x$enable_locale = xyes; then
  25530. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25531. have_locale=yes
  25532. fi
  25533. ;;
  25534. *-*-riscos*)
  25535. ARCH=riscos
  25536. CheckVisibilityHidden
  25537. CheckWerror
  25538. CheckDeclarationAfterStatement
  25539. CheckDummyVideo
  25540. CheckOffscreenVideo
  25541. CheckDiskAudio
  25542. CheckDummyAudio
  25543. CheckDLOPEN
  25544. CheckO_CLOEXEC
  25545. CheckOSS
  25546. CheckPTHREAD
  25547. CheckClockGettime
  25548. # Set up files for the misc library
  25549. if test x$enable_misc = xyes; then
  25550. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25551. have_misc=yes
  25552. fi
  25553. # Set up files for the video library
  25554. if test x$enable_video = xyes; then
  25555. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25556. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25557. have_video=yes
  25558. SUMMARY_video="${SUMMARY_video} riscos"
  25559. fi
  25560. # Set up files for the filesystem library
  25561. if test x$enable_filesystem = xyes; then
  25562. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25563. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25564. have_filesystem=yes
  25565. fi
  25566. # Set up files for the timer library
  25567. if test x$enable_timers = xyes; then
  25568. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25569. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25570. have_timers=yes
  25571. fi
  25572. ;;
  25573. *-*-os2*)
  25574. ARCH=os2
  25575. if test "$build" != "$host"; then # cross-compiling
  25576. # Default cross-compile location
  25577. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25578. else
  25579. # Look for the location of the tools and install there
  25580. if test "$BUILD_PREFIX" != ""; then
  25581. ac_default_prefix=$BUILD_PREFIX
  25582. fi
  25583. fi
  25584. enable_static=no # disable static builds
  25585. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25586. CheckOS2
  25587. CheckWerror
  25588. CheckDeclarationAfterStatement
  25589. CheckDummyVideo
  25590. CheckDiskAudio
  25591. CheckDummyAudio
  25592. CheckHIDAPI
  25593. # Set up the core platform files
  25594. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25595. if test x$enable_system_iconv = xyes; then
  25596. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25597. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25598. fi
  25599. fi
  25600. # Use the Unix locale APIs.
  25601. if test x$enable_locale = xyes; then
  25602. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25603. have_locale=yes
  25604. fi
  25605. # Set up files for the video library
  25606. if test x$enable_video = xyes; then
  25607. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25608. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25609. have_video=yes
  25610. SUMMARY_video="${SUMMARY_video} OS/2"
  25611. fi
  25612. # Set up files for the audio library
  25613. if test x$enable_audio = xyes; then
  25614. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25615. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25616. have_audio=yes
  25617. SUMMARY_audio="${SUMMARY_audio} OS/2"
  25618. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25619. fi
  25620. # Set up files for the thread library
  25621. if test x$enable_threads = xyes; then
  25622. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25623. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25624. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25625. have_threads=yes
  25626. fi
  25627. # Set up files for the timer library
  25628. if test x$enable_timers = xyes; then
  25629. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25630. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25631. have_timers=yes
  25632. fi
  25633. # Set up files for the shared object loading library
  25634. if test x$enable_loadso = xyes; then
  25635. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25636. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25637. have_loadso=yes
  25638. fi
  25639. # Set up files for the filesystem library
  25640. if test x$enable_filesystem = xyes; then
  25641. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25642. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25643. have_filesystem=yes
  25644. fi
  25645. # Set up files for the joystick library
  25646. if test x$enable_joystick = xyes; then
  25647. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25648. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25649. have_joystick=yes
  25650. fi
  25651. ;;
  25652. *)
  25653. as_fn_error $? "
  25654. *** Unsupported host: Please add to configure.ac
  25655. " "$LINENO" 5
  25656. ;;
  25657. esac
  25658. CheckVirtualJoystick
  25659. # Check whether to install sdl2-config
  25660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25661. printf %s "checking whether to install sdl2-config... " >&6; }
  25662. # Check whether --enable-sdl2-config was given.
  25663. if test ${enable_sdl2_config+y}
  25664. then :
  25665. enableval=$enable_sdl2_config; case "${enableval}" in
  25666. yes) enable_sdl2_config="TRUE" ;;
  25667. no) enable_sdl2_config="FALSE" ;;
  25668. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25669. esac
  25670. else $as_nop
  25671. enable_sdl2_config="TRUE"
  25672. fi
  25673. if test "$enable_sdl2_config" = "TRUE"; then
  25674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25675. printf "%s\n" "yes" >&6; }
  25676. else
  25677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25678. printf "%s\n" "no" >&6; }
  25679. fi
  25680. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25681. # Check whether --enable-vendor-info was given.
  25682. if test ${enable_vendor_info+y}
  25683. then :
  25684. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25685. else $as_nop
  25686. enable_vendor_info=
  25687. fi
  25688. if test "$enable_vendor_info" = no
  25689. then :
  25690. enable_vendor_info=
  25691. fi
  25692. SDL_VENDOR_INFO=$enable_vendor_info
  25693. # Verify that we have all the platform specific files we need
  25694. if test x$have_audio != xyes; then
  25695. if test x$enable_audio = xyes; then
  25696. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25697. fi
  25698. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25699. fi
  25700. if test x$have_video != xyes; then
  25701. if test x$enable_video = xyes; then
  25702. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25703. fi
  25704. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25705. fi
  25706. if test x$have_misc != xyes; then
  25707. if test x$enable_misc = xyes; then
  25708. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25709. fi
  25710. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25711. fi
  25712. if test x$have_locale != xyes; then
  25713. if test x$enable_locale = xyes; then
  25714. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25715. fi
  25716. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25717. fi
  25718. if test x$have_joystick != xyes; then
  25719. if test x$enable_joystick = xyes; then
  25720. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25721. fi
  25722. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25723. fi
  25724. if test x$have_haptic != xyes; then
  25725. if test x$enable_haptic = xyes; then
  25726. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25727. fi
  25728. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25729. fi
  25730. if test x$have_sensor != xyes; then
  25731. if test x$enable_sensor = xyes; then
  25732. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25733. fi
  25734. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25735. fi
  25736. if test x$have_threads != xyes; then
  25737. if test x$enable_threads = xyes; then
  25738. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25739. fi
  25740. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25741. fi
  25742. if test x$have_timers != xyes; then
  25743. if test x$enable_timers = xyes; then
  25744. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25745. fi
  25746. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25747. fi
  25748. if test x$have_filesystem != xyes; then
  25749. if test x$enable_filesystem = xyes; then
  25750. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25751. fi
  25752. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25753. fi
  25754. if test x$have_loadso != xyes; then
  25755. if test x$enable_loadso = xyes; then
  25756. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25757. fi
  25758. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25759. fi
  25760. if test x$SDLMAIN_SOURCES = x; then
  25761. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25762. fi
  25763. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25764. if test x$video_wayland = xyes; then
  25765. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25766. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25767. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25768. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25769. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25770. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25771. echo ;\
  25772. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25773. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25774. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25775. echo ;\
  25776. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25777. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25778. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25779. echo ;\
  25780. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25781. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25782. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25783. done ;\
  25784. echo ;\
  25785. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25786. fi
  25787. OBJECTS=`echo $SOURCES`
  25788. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25789. for EXT in asm cc m c S; do
  25790. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25791. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25792. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25793. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25794. done
  25795. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25796. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25797. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25798. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25799. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25800. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25801. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25802. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25803. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25804. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25805. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25806. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25807. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25808. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25809. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25810. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25811. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25812. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25813. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25814. # Set runtime shared library paths as needed
  25815. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25816. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25817. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25819. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25820. have_enable_new_dtags=no
  25821. save_LDFLAGS="$LDFLAGS"
  25822. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25824. /* end confdefs.h. */
  25825. int
  25826. main (void)
  25827. {
  25828. ;
  25829. return 0;
  25830. }
  25831. _ACEOF
  25832. if ac_fn_c_try_link "$LINENO"
  25833. then :
  25834. have_enable_new_dtags=yes
  25835. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25836. fi
  25837. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25838. conftest$ac_exeext conftest.$ac_ext
  25839. LDFLAGS="$save_LDFLAGS"
  25840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25841. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25842. fi
  25843. if test $ARCH = solaris; then
  25844. SDL_RLD_FLAGS="-R\${libdir}"
  25845. fi
  25846. else
  25847. SDL_RLD_FLAGS=""
  25848. fi
  25849. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25850. pkg_cmakedir='$libdir/cmake/SDL2'
  25851. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25852. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25853. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25854. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25855. _lcl_receval="$_lcl_from"
  25856. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25857. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25858. _lcl_receval_old=''
  25859. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25860. _lcl_receval_old="$_lcl_receval"
  25861. eval _lcl_receval="\"$_lcl_receval\""
  25862. done
  25863. echo "$_lcl_receval")`
  25864. _lcl_receval="$_lcl_to"
  25865. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25866. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25867. _lcl_receval_old=''
  25868. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25869. _lcl_receval_old="$_lcl_receval"
  25870. eval _lcl_receval="\"$_lcl_receval\""
  25871. done
  25872. echo "$_lcl_receval")`
  25873. _lcl_notation="$_lcl_from$_lcl_to"
  25874. case ":$_lcl_from:" in
  25875. # change empty paths to '.'
  25876. ::) _lcl_from='.' ;;
  25877. # strip trailing slashes
  25878. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25879. :*:) ;;
  25880. esac
  25881. # squeeze repeated slashes
  25882. case '/' in
  25883. # if the path contains any backslashes, turn slashes into backslashes
  25884. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25885. # if the path contains slashes, also turn backslashes into slashes
  25886. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25887. esac
  25888. case ":$_lcl_to:" in
  25889. # change empty paths to '.'
  25890. ::) _lcl_to='.' ;;
  25891. # strip trailing slashes
  25892. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25893. :*:) ;;
  25894. esac
  25895. # squeeze repeated slashes
  25896. case '/' in
  25897. # if the path contains any backslashes, turn slashes into backslashes
  25898. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25899. # if the path contains slashes, also turn backslashes into slashes
  25900. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25901. esac
  25902. _lcl_common_prefix=''
  25903. _lcl_second_prefix_match=''
  25904. while test "$_lcl_second_prefix_match" != 0; do
  25905. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25906. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25907. if test "$_lcl_second_prefix_match" != 0; then
  25908. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25909. _lcl_common_prefix="$_lcl_first_prefix"
  25910. else
  25911. _lcl_second_prefix_match=0
  25912. fi
  25913. fi
  25914. done
  25915. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25916. _lcl_first_rel=''
  25917. _lcl_tmp='xxx'
  25918. while test "$_lcl_tmp" != ''; do
  25919. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25920. if test "$_lcl_first_suffix" != ''; then
  25921. _lcl_first_suffix="$_lcl_tmp"
  25922. _lcl_first_rel="../$_lcl_first_rel"
  25923. fi
  25924. done
  25925. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25926. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25927. case ":$_lcl_result_tmp:" in
  25928. # change empty paths to '.'
  25929. ::) _lcl_result_tmp='.' ;;
  25930. # strip trailing slashes
  25931. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25932. :*:) ;;
  25933. esac
  25934. # squeeze repeated slashes
  25935. case "$_lcl_notation" in
  25936. # if the path contains any backslashes, turn slashes into backslashes
  25937. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25938. # if the path contains slashes, also turn backslashes into slashes
  25939. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25940. esac
  25941. eval $_lcl_result_var='$_lcl_result_tmp'
  25942. done
  25943. PKGCONFIG_DEPENDS=""
  25944. if test x$enable_shared = xyes; then
  25945. PKGCONFIG_LIBS_PRIV="
  25946. Libs.private:"
  25947. ENABLE_SHARED_TRUE=
  25948. ENABLE_SHARED_FALSE="#"
  25949. else
  25950. PKGCONFIG_LIBS_PRIV=
  25951. ENABLE_SHARED_TRUE="#"
  25952. ENABLE_SHARED_FALSE=
  25953. fi
  25954. if test x$enable_static = xyes; then
  25955. ENABLE_STATIC_TRUE=
  25956. ENABLE_STATIC_FALSE="#"
  25957. else
  25958. ENABLE_STATIC_TRUE="#"
  25959. ENABLE_STATIC_FALSE=
  25960. fi
  25961. cat >Makefile.rules <<__EOF__
  25962. # Build rules for objects
  25963. -include \$(OBJECTS:.lo=.d)
  25964. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25965. $srcdir/src/SDL.c: update-revision
  25966. $DEPENDS
  25967. $VERSION_DEPENDS
  25968. $SDLMAIN_DEPENDS
  25969. $SDLTEST_DEPENDS
  25970. $WAYLAND_PROTOCOLS_DEPENDS
  25971. __EOF__
  25972. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25973. ac_config_commands="$ac_config_commands sdl2_config"
  25974. SUMMARY="SDL2 Configure Summary:\n"
  25975. if test x$enable_shared = xyes; then
  25976. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25977. fi
  25978. if test x$enable_static = xyes; then
  25979. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25980. fi
  25981. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25982. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25983. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25984. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25985. if test x$have_x = xyes; then
  25986. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25987. fi
  25988. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25989. if test x$have_joystick_virtual = xyes; then
  25990. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25991. else
  25992. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25993. fi
  25994. if test x$have_samplerate_h_hdr = xyes; then
  25995. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25996. else
  25997. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25998. fi
  25999. if test x$have_libudev_h_hdr = xyes; then
  26000. SUMMARY="${SUMMARY}Using libudev : YES\n"
  26001. else
  26002. SUMMARY="${SUMMARY}Using libudev : NO\n"
  26003. fi
  26004. if test x$have_dbus_dbus_h_hdr = xyes; then
  26005. SUMMARY="${SUMMARY}Using dbus : YES\n"
  26006. else
  26007. SUMMARY="${SUMMARY}Using dbus : NO\n"
  26008. fi
  26009. if test x$enable_ime = xyes; then
  26010. SUMMARY="${SUMMARY}Using ime : YES\n"
  26011. else
  26012. SUMMARY="${SUMMARY}Using ime : NO\n"
  26013. fi
  26014. if test x$have_ibus_ibus_h_hdr = xyes; then
  26015. SUMMARY="${SUMMARY}Using ibus : YES\n"
  26016. else
  26017. SUMMARY="${SUMMARY}Using ibus : NO\n"
  26018. fi
  26019. if test x$have_fcitx = xyes; then
  26020. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  26021. else
  26022. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  26023. fi
  26024. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  26025. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  26026. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  26027. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26028. SUMMARY="${SUMMARY}configure script with:\n"
  26029. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  26030. fi
  26031. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  26032. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  26033. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  26034. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26035. SUMMARY="${SUMMARY}configure script with:\n"
  26036. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  26037. fi
  26038. ac_config_commands="$ac_config_commands summary"
  26039. cat >confcache <<\_ACEOF
  26040. # This file is a shell script that caches the results of configure
  26041. # tests run on this system so they can be shared between configure
  26042. # scripts and configure runs, see configure's option --config-cache.
  26043. # It is not useful on other systems. If it contains results you don't
  26044. # want to keep, you may remove or edit it.
  26045. #
  26046. # config.status only pays attention to the cache file if you give it
  26047. # the --recheck option to rerun configure.
  26048. #
  26049. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26050. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26051. # following values.
  26052. _ACEOF
  26053. # The following way of writing the cache mishandles newlines in values,
  26054. # but we know of no workaround that is simple, portable, and efficient.
  26055. # So, we kill variables containing newlines.
  26056. # Ultrix sh set writes to stderr and can't be redirected directly,
  26057. # and sets the high bit in the cache file unless we assign to the vars.
  26058. (
  26059. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26060. eval ac_val=\$$ac_var
  26061. case $ac_val in #(
  26062. *${as_nl}*)
  26063. case $ac_var in #(
  26064. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26065. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26066. esac
  26067. case $ac_var in #(
  26068. _ | IFS | as_nl) ;; #(
  26069. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26070. *) { eval $ac_var=; unset $ac_var;} ;;
  26071. esac ;;
  26072. esac
  26073. done
  26074. (set) 2>&1 |
  26075. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26076. *${as_nl}ac_space=\ *)
  26077. # `set' does not quote correctly, so add quotes: double-quote
  26078. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26079. sed -n \
  26080. "s/'/'\\\\''/g;
  26081. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26082. ;; #(
  26083. *)
  26084. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26085. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26086. ;;
  26087. esac |
  26088. sort
  26089. ) |
  26090. sed '
  26091. /^ac_cv_env_/b end
  26092. t clear
  26093. :clear
  26094. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  26095. t end
  26096. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26097. :end' >>confcache
  26098. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26099. if test -w "$cache_file"; then
  26100. if test "x$cache_file" != "x/dev/null"; then
  26101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26102. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  26103. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26104. cat confcache >"$cache_file"
  26105. else
  26106. case $cache_file in #(
  26107. */* | ?:*)
  26108. mv -f confcache "$cache_file"$$ &&
  26109. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26110. *)
  26111. mv -f confcache "$cache_file" ;;
  26112. esac
  26113. fi
  26114. fi
  26115. else
  26116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26117. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  26118. fi
  26119. fi
  26120. rm -f confcache
  26121. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26122. # Let make expand exec_prefix.
  26123. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26124. DEFS=-DHAVE_CONFIG_H
  26125. ac_libobjs=
  26126. ac_ltlibobjs=
  26127. U=
  26128. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26129. # 1. Remove the extension, and $U if already installed.
  26130. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26131. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  26132. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26133. # will be set to the directory where LIBOBJS objects are built.
  26134. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26135. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26136. done
  26137. LIBOBJS=$ac_libobjs
  26138. LTLIBOBJS=$ac_ltlibobjs
  26139. : "${CONFIG_STATUS=./config.status}"
  26140. ac_write_fail=0
  26141. ac_clean_files_save=$ac_clean_files
  26142. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26144. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  26145. as_write_fail=0
  26146. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26147. #! $SHELL
  26148. # Generated by $as_me.
  26149. # Run this file to recreate the current configuration.
  26150. # Compiler output produced by configure, useful for debugging
  26151. # configure, is in config.log if it exists.
  26152. debug=false
  26153. ac_cs_recheck=false
  26154. ac_cs_silent=false
  26155. SHELL=\${CONFIG_SHELL-$SHELL}
  26156. export SHELL
  26157. _ASEOF
  26158. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26159. ## -------------------- ##
  26160. ## M4sh Initialization. ##
  26161. ## -------------------- ##
  26162. # Be more Bourne compatible
  26163. DUALCASE=1; export DUALCASE # for MKS sh
  26164. as_nop=:
  26165. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  26166. then :
  26167. emulate sh
  26168. NULLCMD=:
  26169. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26170. # is contrary to our usage. Disable this feature.
  26171. alias -g '${1+"$@"}'='"$@"'
  26172. setopt NO_GLOB_SUBST
  26173. else $as_nop
  26174. case `(set -o) 2>/dev/null` in #(
  26175. *posix*) :
  26176. set -o posix ;; #(
  26177. *) :
  26178. ;;
  26179. esac
  26180. fi
  26181. # Reset variables that may have inherited troublesome values from
  26182. # the environment.
  26183. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  26184. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  26185. # side effect of setting IFS to empty, thus disabling word splitting.)
  26186. # Quoting is to prevent editors from complaining about space-tab.
  26187. as_nl='
  26188. '
  26189. export as_nl
  26190. IFS=" "" $as_nl"
  26191. PS1='$ '
  26192. PS2='> '
  26193. PS4='+ '
  26194. # Ensure predictable behavior from utilities with locale-dependent output.
  26195. LC_ALL=C
  26196. export LC_ALL
  26197. LANGUAGE=C
  26198. export LANGUAGE
  26199. # We cannot yet rely on "unset" to work, but we need these variables
  26200. # to be unset--not just set to an empty or harmless value--now, to
  26201. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26202. # also avoids known problems related to "unset" and subshell syntax
  26203. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26204. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26205. do eval test \${$as_var+y} \
  26206. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26207. done
  26208. # Ensure that fds 0, 1, and 2 are open.
  26209. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26210. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26211. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26212. # The user is always right.
  26213. if ${PATH_SEPARATOR+false} :; then
  26214. PATH_SEPARATOR=:
  26215. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26216. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26217. PATH_SEPARATOR=';'
  26218. }
  26219. fi
  26220. # Find who we are. Look in the path if we contain no directory separator.
  26221. as_myself=
  26222. case $0 in #((
  26223. *[\\/]* ) as_myself=$0 ;;
  26224. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26225. for as_dir in $PATH
  26226. do
  26227. IFS=$as_save_IFS
  26228. case $as_dir in #(((
  26229. '') as_dir=./ ;;
  26230. */) ;;
  26231. *) as_dir=$as_dir/ ;;
  26232. esac
  26233. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26234. done
  26235. IFS=$as_save_IFS
  26236. ;;
  26237. esac
  26238. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26239. # in which case we are not to be found in the path.
  26240. if test "x$as_myself" = x; then
  26241. as_myself=$0
  26242. fi
  26243. if test ! -f "$as_myself"; then
  26244. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26245. exit 1
  26246. fi
  26247. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26248. # ----------------------------------------
  26249. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26250. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26251. # script with STATUS, using 1 if that was 0.
  26252. as_fn_error ()
  26253. {
  26254. as_status=$1; test $as_status -eq 0 && as_status=1
  26255. if test "$4"; then
  26256. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26257. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26258. fi
  26259. printf "%s\n" "$as_me: error: $2" >&2
  26260. as_fn_exit $as_status
  26261. } # as_fn_error
  26262. # as_fn_set_status STATUS
  26263. # -----------------------
  26264. # Set $? to STATUS, without forking.
  26265. as_fn_set_status ()
  26266. {
  26267. return $1
  26268. } # as_fn_set_status
  26269. # as_fn_exit STATUS
  26270. # -----------------
  26271. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26272. as_fn_exit ()
  26273. {
  26274. set +e
  26275. as_fn_set_status $1
  26276. exit $1
  26277. } # as_fn_exit
  26278. # as_fn_unset VAR
  26279. # ---------------
  26280. # Portably unset VAR.
  26281. as_fn_unset ()
  26282. {
  26283. { eval $1=; unset $1;}
  26284. }
  26285. as_unset=as_fn_unset
  26286. # as_fn_append VAR VALUE
  26287. # ----------------------
  26288. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26289. # advantage of any shell optimizations that allow amortized linear growth over
  26290. # repeated appends, instead of the typical quadratic growth present in naive
  26291. # implementations.
  26292. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26293. then :
  26294. eval 'as_fn_append ()
  26295. {
  26296. eval $1+=\$2
  26297. }'
  26298. else $as_nop
  26299. as_fn_append ()
  26300. {
  26301. eval $1=\$$1\$2
  26302. }
  26303. fi # as_fn_append
  26304. # as_fn_arith ARG...
  26305. # ------------------
  26306. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26307. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26308. # must be portable across $(()) and expr.
  26309. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26310. then :
  26311. eval 'as_fn_arith ()
  26312. {
  26313. as_val=$(( $* ))
  26314. }'
  26315. else $as_nop
  26316. as_fn_arith ()
  26317. {
  26318. as_val=`expr "$@" || test $? -eq 1`
  26319. }
  26320. fi # as_fn_arith
  26321. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26322. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26323. as_expr=expr
  26324. else
  26325. as_expr=false
  26326. fi
  26327. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26328. as_basename=basename
  26329. else
  26330. as_basename=false
  26331. fi
  26332. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26333. as_dirname=dirname
  26334. else
  26335. as_dirname=false
  26336. fi
  26337. as_me=`$as_basename -- "$0" ||
  26338. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26339. X"$0" : 'X\(//\)$' \| \
  26340. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26341. printf "%s\n" X/"$0" |
  26342. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26343. s//\1/
  26344. q
  26345. }
  26346. /^X\/\(\/\/\)$/{
  26347. s//\1/
  26348. q
  26349. }
  26350. /^X\/\(\/\).*/{
  26351. s//\1/
  26352. q
  26353. }
  26354. s/.*/./; q'`
  26355. # Avoid depending upon Character Ranges.
  26356. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26357. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26358. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26359. as_cr_digits='0123456789'
  26360. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26361. # Determine whether it's possible to make 'echo' print without a newline.
  26362. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26363. # for compatibility with existing Makefiles.
  26364. ECHO_C= ECHO_N= ECHO_T=
  26365. case `echo -n x` in #(((((
  26366. -n*)
  26367. case `echo 'xy\c'` in
  26368. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26369. xy) ECHO_C='\c';;
  26370. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26371. ECHO_T=' ';;
  26372. esac;;
  26373. *)
  26374. ECHO_N='-n';;
  26375. esac
  26376. # For backward compatibility with old third-party macros, we provide
  26377. # the shell variables $as_echo and $as_echo_n. New code should use
  26378. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26379. as_echo='printf %s\n'
  26380. as_echo_n='printf %s'
  26381. rm -f conf$$ conf$$.exe conf$$.file
  26382. if test -d conf$$.dir; then
  26383. rm -f conf$$.dir/conf$$.file
  26384. else
  26385. rm -f conf$$.dir
  26386. mkdir conf$$.dir 2>/dev/null
  26387. fi
  26388. if (echo >conf$$.file) 2>/dev/null; then
  26389. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26390. as_ln_s='ln -s'
  26391. # ... but there are two gotchas:
  26392. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26393. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26394. # In both cases, we have to default to `cp -pR'.
  26395. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26396. as_ln_s='cp -pR'
  26397. elif ln conf$$.file conf$$ 2>/dev/null; then
  26398. as_ln_s=ln
  26399. else
  26400. as_ln_s='cp -pR'
  26401. fi
  26402. else
  26403. as_ln_s='cp -pR'
  26404. fi
  26405. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26406. rmdir conf$$.dir 2>/dev/null
  26407. # as_fn_mkdir_p
  26408. # -------------
  26409. # Create "$as_dir" as a directory, including parents if necessary.
  26410. as_fn_mkdir_p ()
  26411. {
  26412. case $as_dir in #(
  26413. -*) as_dir=./$as_dir;;
  26414. esac
  26415. test -d "$as_dir" || eval $as_mkdir_p || {
  26416. as_dirs=
  26417. while :; do
  26418. case $as_dir in #(
  26419. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26420. *) as_qdir=$as_dir;;
  26421. esac
  26422. as_dirs="'$as_qdir' $as_dirs"
  26423. as_dir=`$as_dirname -- "$as_dir" ||
  26424. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26425. X"$as_dir" : 'X\(//\)[^/]' \| \
  26426. X"$as_dir" : 'X\(//\)$' \| \
  26427. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26428. printf "%s\n" X"$as_dir" |
  26429. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26430. s//\1/
  26431. q
  26432. }
  26433. /^X\(\/\/\)[^/].*/{
  26434. s//\1/
  26435. q
  26436. }
  26437. /^X\(\/\/\)$/{
  26438. s//\1/
  26439. q
  26440. }
  26441. /^X\(\/\).*/{
  26442. s//\1/
  26443. q
  26444. }
  26445. s/.*/./; q'`
  26446. test -d "$as_dir" && break
  26447. done
  26448. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26449. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26450. } # as_fn_mkdir_p
  26451. if mkdir -p . 2>/dev/null; then
  26452. as_mkdir_p='mkdir -p "$as_dir"'
  26453. else
  26454. test -d ./-p && rmdir ./-p
  26455. as_mkdir_p=false
  26456. fi
  26457. # as_fn_executable_p FILE
  26458. # -----------------------
  26459. # Test if FILE is an executable regular file.
  26460. as_fn_executable_p ()
  26461. {
  26462. test -f "$1" && test -x "$1"
  26463. } # as_fn_executable_p
  26464. as_test_x='test -x'
  26465. as_executable_p=as_fn_executable_p
  26466. # Sed expression to map a string onto a valid CPP name.
  26467. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26468. # Sed expression to map a string onto a valid variable name.
  26469. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26470. exec 6>&1
  26471. ## ----------------------------------- ##
  26472. ## Main body of $CONFIG_STATUS script. ##
  26473. ## ----------------------------------- ##
  26474. _ASEOF
  26475. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26476. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26477. # Save the log message, to keep $0 and so on meaningful, and to
  26478. # report actual input values of CONFIG_FILES etc. instead of their
  26479. # values after options handling.
  26480. ac_log="
  26481. This file was extended by $as_me, which was
  26482. generated by GNU Autoconf 2.71. Invocation command line was
  26483. CONFIG_FILES = $CONFIG_FILES
  26484. CONFIG_HEADERS = $CONFIG_HEADERS
  26485. CONFIG_LINKS = $CONFIG_LINKS
  26486. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26487. $ $0 $@
  26488. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26489. "
  26490. _ACEOF
  26491. case $ac_config_files in *"
  26492. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26493. esac
  26494. case $ac_config_headers in *"
  26495. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26496. esac
  26497. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26498. # Files that config.status was made for.
  26499. config_files="$ac_config_files"
  26500. config_headers="$ac_config_headers"
  26501. config_commands="$ac_config_commands"
  26502. _ACEOF
  26503. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26504. ac_cs_usage="\
  26505. \`$as_me' instantiates files and other configuration actions
  26506. from templates according to the current configuration. Unless the files
  26507. and actions are specified as TAGs, all are instantiated by default.
  26508. Usage: $0 [OPTION]... [TAG]...
  26509. -h, --help print this help, then exit
  26510. -V, --version print version number and configuration settings, then exit
  26511. --config print configuration, then exit
  26512. -q, --quiet, --silent
  26513. do not print progress messages
  26514. -d, --debug don't remove temporary files
  26515. --recheck update $as_me by reconfiguring in the same conditions
  26516. --file=FILE[:TEMPLATE]
  26517. instantiate the configuration file FILE
  26518. --header=FILE[:TEMPLATE]
  26519. instantiate the configuration header FILE
  26520. Configuration files:
  26521. $config_files
  26522. Configuration headers:
  26523. $config_headers
  26524. Configuration commands:
  26525. $config_commands
  26526. Report bugs to the package provider."
  26527. _ACEOF
  26528. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26529. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26530. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26531. ac_cs_config='$ac_cs_config_escaped'
  26532. ac_cs_version="\\
  26533. config.status
  26534. configured by $0, generated by GNU Autoconf 2.71,
  26535. with options \\"\$ac_cs_config\\"
  26536. Copyright (C) 2021 Free Software Foundation, Inc.
  26537. This config.status script is free software; the Free Software Foundation
  26538. gives unlimited permission to copy, distribute and modify it."
  26539. ac_pwd='$ac_pwd'
  26540. srcdir='$srcdir'
  26541. INSTALL='$INSTALL'
  26542. AWK='$AWK'
  26543. test -n "\$AWK" || AWK=awk
  26544. _ACEOF
  26545. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26546. # The default lists apply if the user does not specify any file.
  26547. ac_need_defaults=:
  26548. while test $# != 0
  26549. do
  26550. case $1 in
  26551. --*=?*)
  26552. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26553. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26554. ac_shift=:
  26555. ;;
  26556. --*=)
  26557. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26558. ac_optarg=
  26559. ac_shift=:
  26560. ;;
  26561. *)
  26562. ac_option=$1
  26563. ac_optarg=$2
  26564. ac_shift=shift
  26565. ;;
  26566. esac
  26567. case $ac_option in
  26568. # Handling of the options.
  26569. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26570. ac_cs_recheck=: ;;
  26571. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26572. printf "%s\n" "$ac_cs_version"; exit ;;
  26573. --config | --confi | --conf | --con | --co | --c )
  26574. printf "%s\n" "$ac_cs_config"; exit ;;
  26575. --debug | --debu | --deb | --de | --d | -d )
  26576. debug=: ;;
  26577. --file | --fil | --fi | --f )
  26578. $ac_shift
  26579. case $ac_optarg in
  26580. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26581. '') as_fn_error $? "missing file argument" ;;
  26582. esac
  26583. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26584. ac_need_defaults=false;;
  26585. --header | --heade | --head | --hea )
  26586. $ac_shift
  26587. case $ac_optarg in
  26588. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26589. esac
  26590. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26591. ac_need_defaults=false;;
  26592. --he | --h)
  26593. # Conflict between --help and --header
  26594. as_fn_error $? "ambiguous option: \`$1'
  26595. Try \`$0 --help' for more information.";;
  26596. --help | --hel | -h )
  26597. printf "%s\n" "$ac_cs_usage"; exit ;;
  26598. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26599. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26600. ac_cs_silent=: ;;
  26601. # This is an error.
  26602. -*) as_fn_error $? "unrecognized option: \`$1'
  26603. Try \`$0 --help' for more information." ;;
  26604. *) as_fn_append ac_config_targets " $1"
  26605. ac_need_defaults=false ;;
  26606. esac
  26607. shift
  26608. done
  26609. ac_configure_extra_args=
  26610. if $ac_cs_silent; then
  26611. exec 6>/dev/null
  26612. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26613. fi
  26614. _ACEOF
  26615. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26616. if \$ac_cs_recheck; then
  26617. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26618. shift
  26619. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26620. CONFIG_SHELL='$SHELL'
  26621. export CONFIG_SHELL
  26622. exec "\$@"
  26623. fi
  26624. _ACEOF
  26625. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26626. exec 5>>config.log
  26627. {
  26628. echo
  26629. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26630. ## Running $as_me. ##
  26631. _ASBOX
  26632. printf "%s\n" "$ac_log"
  26633. } >&5
  26634. _ACEOF
  26635. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26636. #
  26637. # INIT-COMMANDS
  26638. #
  26639. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26640. # if CDPATH is set.
  26641. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26642. sed_quote_subst='$sed_quote_subst'
  26643. double_quote_subst='$double_quote_subst'
  26644. delay_variable_subst='$delay_variable_subst'
  26645. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26646. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26647. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26648. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26649. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26650. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26651. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26652. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26653. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26654. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26655. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26656. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26657. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26658. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26659. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26660. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26661. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26662. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26663. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26664. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26665. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26666. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26667. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26668. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26669. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26670. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26671. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26672. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26673. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26674. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26675. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26676. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26677. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26678. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26679. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26680. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26681. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26682. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26683. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26684. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26685. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26686. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26687. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26688. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26689. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26690. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26691. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26692. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26693. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26694. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26695. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26696. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26697. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26698. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26699. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26700. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26701. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26702. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26703. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26704. 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"`'
  26705. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26706. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26707. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26708. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26709. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26710. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26711. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26712. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26713. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26714. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26715. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26716. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26717. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26718. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26719. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26720. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26721. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26722. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26723. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26724. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26725. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26726. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26727. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26728. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26729. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26730. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26731. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26732. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26733. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26734. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26735. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26736. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26737. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26738. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26739. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26740. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26741. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26742. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26743. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26744. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26745. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26746. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26747. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26748. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26749. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26750. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26751. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26752. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26753. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26754. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26755. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26756. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26757. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26758. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26759. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26760. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26761. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26762. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26763. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26764. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26765. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26766. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26767. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26768. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26769. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26770. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26771. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26772. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26773. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26774. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26775. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26776. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26777. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26778. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26779. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26780. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26781. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26782. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26783. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26784. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26785. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26786. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26787. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26788. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26789. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26790. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26791. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26792. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26793. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26794. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26795. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26796. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26797. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26798. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26799. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26800. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26801. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26802. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26803. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26804. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26805. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26806. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26807. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26808. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26809. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26810. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26811. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26812. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26813. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26814. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26815. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26816. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26817. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26818. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26819. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26820. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26821. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26822. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26823. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26824. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26825. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26826. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26827. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26828. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26829. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26830. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26831. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26832. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26833. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26834. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26835. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26836. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26837. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26838. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26839. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26840. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26841. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26842. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26843. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26844. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26845. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26846. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26847. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26848. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26849. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26850. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26851. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26852. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26853. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26854. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26855. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26856. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26857. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26858. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26859. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26860. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26861. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26862. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26863. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26864. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26865. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26866. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26867. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26868. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26869. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26870. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26871. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26872. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26873. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26874. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26875. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26876. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26877. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26878. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26879. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26880. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26881. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26882. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26883. LTCC='$LTCC'
  26884. LTCFLAGS='$LTCFLAGS'
  26885. compiler='$compiler_DEFAULT'
  26886. # A function that is used when there is no print builtin or printf.
  26887. func_fallback_echo ()
  26888. {
  26889. eval 'cat <<_LTECHO_EOF
  26890. \$1
  26891. _LTECHO_EOF'
  26892. }
  26893. # Quote evaled strings.
  26894. for var in AS \
  26895. DLLTOOL \
  26896. OBJDUMP \
  26897. SHELL \
  26898. ECHO \
  26899. PATH_SEPARATOR \
  26900. SED \
  26901. GREP \
  26902. EGREP \
  26903. FGREP \
  26904. LD \
  26905. NM \
  26906. LN_S \
  26907. lt_SP2NL \
  26908. lt_NL2SP \
  26909. reload_flag \
  26910. deplibs_check_method \
  26911. file_magic_cmd \
  26912. file_magic_glob \
  26913. want_nocaseglob \
  26914. sharedlib_from_linklib_cmd \
  26915. AR \
  26916. AR_FLAGS \
  26917. archiver_list_spec \
  26918. STRIP \
  26919. RANLIB \
  26920. CC \
  26921. CFLAGS \
  26922. compiler \
  26923. lt_cv_sys_global_symbol_pipe \
  26924. lt_cv_sys_global_symbol_to_cdecl \
  26925. lt_cv_sys_global_symbol_to_import \
  26926. lt_cv_sys_global_symbol_to_c_name_address \
  26927. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26928. lt_cv_nm_interface \
  26929. nm_file_list_spec \
  26930. lt_cv_truncate_bin \
  26931. lt_prog_compiler_no_builtin_flag \
  26932. lt_prog_compiler_pic \
  26933. lt_prog_compiler_wl \
  26934. lt_prog_compiler_static \
  26935. lt_cv_prog_compiler_c_o \
  26936. need_locks \
  26937. MANIFEST_TOOL \
  26938. DSYMUTIL \
  26939. NMEDIT \
  26940. LIPO \
  26941. OTOOL \
  26942. OTOOL64 \
  26943. shrext_cmds \
  26944. export_dynamic_flag_spec \
  26945. whole_archive_flag_spec \
  26946. compiler_needs_object \
  26947. with_gnu_ld \
  26948. allow_undefined_flag \
  26949. no_undefined_flag \
  26950. hardcode_libdir_flag_spec \
  26951. hardcode_libdir_separator \
  26952. exclude_expsyms \
  26953. include_expsyms \
  26954. file_list_spec \
  26955. variables_saved_for_relink \
  26956. libname_spec \
  26957. library_names_spec \
  26958. soname_spec \
  26959. install_override_mode \
  26960. finish_eval \
  26961. old_striplib \
  26962. striplib \
  26963. compiler_lib_search_dirs \
  26964. predep_objects \
  26965. postdep_objects \
  26966. predeps \
  26967. postdeps \
  26968. compiler_lib_search_path \
  26969. LD_RC \
  26970. LD_CXX \
  26971. reload_flag_RC \
  26972. reload_flag_CXX \
  26973. compiler_RC \
  26974. compiler_CXX \
  26975. lt_prog_compiler_no_builtin_flag_RC \
  26976. lt_prog_compiler_no_builtin_flag_CXX \
  26977. lt_prog_compiler_pic_RC \
  26978. lt_prog_compiler_pic_CXX \
  26979. lt_prog_compiler_wl_RC \
  26980. lt_prog_compiler_wl_CXX \
  26981. lt_prog_compiler_static_RC \
  26982. lt_prog_compiler_static_CXX \
  26983. lt_cv_prog_compiler_c_o_RC \
  26984. lt_cv_prog_compiler_c_o_CXX \
  26985. export_dynamic_flag_spec_RC \
  26986. export_dynamic_flag_spec_CXX \
  26987. whole_archive_flag_spec_RC \
  26988. whole_archive_flag_spec_CXX \
  26989. compiler_needs_object_RC \
  26990. compiler_needs_object_CXX \
  26991. with_gnu_ld_RC \
  26992. with_gnu_ld_CXX \
  26993. allow_undefined_flag_RC \
  26994. allow_undefined_flag_CXX \
  26995. no_undefined_flag_RC \
  26996. no_undefined_flag_CXX \
  26997. hardcode_libdir_flag_spec_RC \
  26998. hardcode_libdir_flag_spec_CXX \
  26999. hardcode_libdir_separator_RC \
  27000. hardcode_libdir_separator_CXX \
  27001. exclude_expsyms_RC \
  27002. exclude_expsyms_CXX \
  27003. include_expsyms_RC \
  27004. include_expsyms_CXX \
  27005. file_list_spec_RC \
  27006. file_list_spec_CXX \
  27007. compiler_lib_search_dirs_RC \
  27008. compiler_lib_search_dirs_CXX \
  27009. predep_objects_RC \
  27010. predep_objects_CXX \
  27011. postdep_objects_RC \
  27012. postdep_objects_CXX \
  27013. predeps_RC \
  27014. predeps_CXX \
  27015. postdeps_RC \
  27016. postdeps_CXX \
  27017. compiler_lib_search_path_RC \
  27018. compiler_lib_search_path_CXX; do
  27019. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27020. *[\\\\\\\`\\"\\\$]*)
  27021. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27022. ;;
  27023. *)
  27024. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27025. ;;
  27026. esac
  27027. done
  27028. # Double-quote double-evaled strings.
  27029. for var in reload_cmds \
  27030. old_postinstall_cmds \
  27031. old_postuninstall_cmds \
  27032. old_archive_cmds \
  27033. extract_expsyms_cmds \
  27034. old_archive_from_new_cmds \
  27035. old_archive_from_expsyms_cmds \
  27036. archive_cmds \
  27037. archive_expsym_cmds \
  27038. module_cmds \
  27039. module_expsym_cmds \
  27040. export_symbols_cmds \
  27041. prelink_cmds \
  27042. postlink_cmds \
  27043. postinstall_cmds \
  27044. postuninstall_cmds \
  27045. finish_cmds \
  27046. sys_lib_search_path_spec \
  27047. configure_time_dlsearch_path \
  27048. configure_time_lt_sys_library_path \
  27049. reload_cmds_RC \
  27050. reload_cmds_CXX \
  27051. old_archive_cmds_RC \
  27052. old_archive_cmds_CXX \
  27053. old_archive_from_new_cmds_RC \
  27054. old_archive_from_new_cmds_CXX \
  27055. old_archive_from_expsyms_cmds_RC \
  27056. old_archive_from_expsyms_cmds_CXX \
  27057. archive_cmds_RC \
  27058. archive_cmds_CXX \
  27059. archive_expsym_cmds_RC \
  27060. archive_expsym_cmds_CXX \
  27061. module_cmds_RC \
  27062. module_cmds_CXX \
  27063. module_expsym_cmds_RC \
  27064. module_expsym_cmds_CXX \
  27065. export_symbols_cmds_RC \
  27066. export_symbols_cmds_CXX \
  27067. prelink_cmds_RC \
  27068. prelink_cmds_CXX \
  27069. postlink_cmds_RC \
  27070. postlink_cmds_CXX; do
  27071. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27072. *[\\\\\\\`\\"\\\$]*)
  27073. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27074. ;;
  27075. *)
  27076. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27077. ;;
  27078. esac
  27079. done
  27080. ac_aux_dir='$ac_aux_dir'
  27081. # See if we are running on zsh, and set the options that allow our
  27082. # commands through without removal of \ escapes INIT.
  27083. if test -n "\${ZSH_VERSION+set}"; then
  27084. setopt NO_GLOB_SUBST
  27085. fi
  27086. PACKAGE='$PACKAGE'
  27087. VERSION='$VERSION'
  27088. RM='$RM'
  27089. ofile='$ofile'
  27090. SUMMARY="$SUMMARY"
  27091. _ACEOF
  27092. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27093. # Handling of arguments.
  27094. for ac_config_target in $ac_config_targets
  27095. do
  27096. case $ac_config_target in
  27097. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  27098. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  27099. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  27100. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  27101. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  27102. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  27103. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  27104. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  27105. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  27106. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  27107. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27108. esac
  27109. done
  27110. # If the user did not use the arguments to specify the items to instantiate,
  27111. # then the envvar interface is used. Set only those that are not.
  27112. # We use the long form for the default assignment because of an extremely
  27113. # bizarre bug on SunOS 4.1.3.
  27114. if $ac_need_defaults; then
  27115. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  27116. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  27117. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  27118. fi
  27119. # Have a temporary directory for convenience. Make it in the build tree
  27120. # simply because there is no reason against having it here, and in addition,
  27121. # creating and moving files from /tmp can sometimes cause problems.
  27122. # Hook for its removal unless debugging.
  27123. # Note that there is a small window in which the directory will not be cleaned:
  27124. # after its creation but before its name has been assigned to `$tmp'.
  27125. $debug ||
  27126. {
  27127. tmp= ac_tmp=
  27128. trap 'exit_status=$?
  27129. : "${ac_tmp:=$tmp}"
  27130. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27131. ' 0
  27132. trap 'as_fn_exit 1' 1 2 13 15
  27133. }
  27134. # Create a (secure) tmp directory for tmp files.
  27135. {
  27136. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27137. test -d "$tmp"
  27138. } ||
  27139. {
  27140. tmp=./conf$$-$RANDOM
  27141. (umask 077 && mkdir "$tmp")
  27142. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27143. ac_tmp=$tmp
  27144. # Set up the scripts for CONFIG_FILES section.
  27145. # No need to generate them if there are no CONFIG_FILES.
  27146. # This happens for instance with `./config.status config.h'.
  27147. if test -n "$CONFIG_FILES"; then
  27148. ac_cr=`echo X | tr X '\015'`
  27149. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27150. # But we know of no other shell where ac_cr would be empty at this
  27151. # point, so we can use a bashism as a fallback.
  27152. if test "x$ac_cr" = x; then
  27153. eval ac_cr=\$\'\\r\'
  27154. fi
  27155. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27156. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27157. ac_cs_awk_cr='\\r'
  27158. else
  27159. ac_cs_awk_cr=$ac_cr
  27160. fi
  27161. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27162. _ACEOF
  27163. {
  27164. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27165. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27166. echo "_ACEOF"
  27167. } >conf$$subs.sh ||
  27168. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27169. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27170. ac_delim='%!_!# '
  27171. for ac_last_try in false false false false false :; do
  27172. . ./conf$$subs.sh ||
  27173. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27174. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27175. if test $ac_delim_n = $ac_delim_num; then
  27176. break
  27177. elif $ac_last_try; then
  27178. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27179. else
  27180. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27181. fi
  27182. done
  27183. rm -f conf$$subs.sh
  27184. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27185. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27186. _ACEOF
  27187. sed -n '
  27188. h
  27189. s/^/S["/; s/!.*/"]=/
  27190. p
  27191. g
  27192. s/^[^!]*!//
  27193. :repl
  27194. t repl
  27195. s/'"$ac_delim"'$//
  27196. t delim
  27197. :nl
  27198. h
  27199. s/\(.\{148\}\)..*/\1/
  27200. t more1
  27201. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27202. p
  27203. n
  27204. b repl
  27205. :more1
  27206. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27207. p
  27208. g
  27209. s/.\{148\}//
  27210. t nl
  27211. :delim
  27212. h
  27213. s/\(.\{148\}\)..*/\1/
  27214. t more2
  27215. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27216. p
  27217. b
  27218. :more2
  27219. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27220. p
  27221. g
  27222. s/.\{148\}//
  27223. t delim
  27224. ' <conf$$subs.awk | sed '
  27225. /^[^""]/{
  27226. N
  27227. s/\n//
  27228. }
  27229. ' >>$CONFIG_STATUS || ac_write_fail=1
  27230. rm -f conf$$subs.awk
  27231. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27232. _ACAWK
  27233. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27234. for (key in S) S_is_set[key] = 1
  27235. FS = ""
  27236. }
  27237. {
  27238. line = $ 0
  27239. nfields = split(line, field, "@")
  27240. substed = 0
  27241. len = length(field[1])
  27242. for (i = 2; i < nfields; i++) {
  27243. key = field[i]
  27244. keylen = length(key)
  27245. if (S_is_set[key]) {
  27246. value = S[key]
  27247. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27248. len += length(value) + length(field[++i])
  27249. substed = 1
  27250. } else
  27251. len += 1 + keylen
  27252. }
  27253. print line
  27254. }
  27255. _ACAWK
  27256. _ACEOF
  27257. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27258. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27259. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27260. else
  27261. cat
  27262. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27263. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27264. _ACEOF
  27265. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27266. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27267. # trailing colons and then remove the whole line if VPATH becomes empty
  27268. # (actually we leave an empty line to preserve line numbers).
  27269. if test "x$srcdir" = x.; then
  27270. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27271. h
  27272. s///
  27273. s/^/:/
  27274. s/[ ]*$/:/
  27275. s/:\$(srcdir):/:/g
  27276. s/:\${srcdir}:/:/g
  27277. s/:@srcdir@:/:/g
  27278. s/^:*//
  27279. s/:*$//
  27280. x
  27281. s/\(=[ ]*\).*/\1/
  27282. G
  27283. s/\n//
  27284. s/^[^=]*=[ ]*$//
  27285. }'
  27286. fi
  27287. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27288. fi # test -n "$CONFIG_FILES"
  27289. # Set up the scripts for CONFIG_HEADERS section.
  27290. # No need to generate them if there are no CONFIG_HEADERS.
  27291. # This happens for instance with `./config.status Makefile'.
  27292. if test -n "$CONFIG_HEADERS"; then
  27293. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27294. BEGIN {
  27295. _ACEOF
  27296. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27297. # here-document in config.status, that substitutes the proper values into
  27298. # config.h.in to produce config.h.
  27299. # Create a delimiter string that does not exist in confdefs.h, to ease
  27300. # handling of long lines.
  27301. ac_delim='%!_!# '
  27302. for ac_last_try in false false :; do
  27303. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27304. if test -z "$ac_tt"; then
  27305. break
  27306. elif $ac_last_try; then
  27307. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27308. else
  27309. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27310. fi
  27311. done
  27312. # For the awk script, D is an array of macro values keyed by name,
  27313. # likewise P contains macro parameters if any. Preserve backslash
  27314. # newline sequences.
  27315. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27316. sed -n '
  27317. s/.\{148\}/&'"$ac_delim"'/g
  27318. t rset
  27319. :rset
  27320. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27321. t def
  27322. d
  27323. :def
  27324. s/\\$//
  27325. t bsnl
  27326. s/["\\]/\\&/g
  27327. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27328. D["\1"]=" \3"/p
  27329. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27330. d
  27331. :bsnl
  27332. s/["\\]/\\&/g
  27333. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27334. D["\1"]=" \3\\\\\\n"\\/p
  27335. t cont
  27336. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27337. t cont
  27338. d
  27339. :cont
  27340. n
  27341. s/.\{148\}/&'"$ac_delim"'/g
  27342. t clear
  27343. :clear
  27344. s/\\$//
  27345. t bsnlc
  27346. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27347. d
  27348. :bsnlc
  27349. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27350. b cont
  27351. ' <confdefs.h | sed '
  27352. s/'"$ac_delim"'/"\\\
  27353. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27354. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27355. for (key in D) D_is_set[key] = 1
  27356. FS = ""
  27357. }
  27358. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27359. line = \$ 0
  27360. split(line, arg, " ")
  27361. if (arg[1] == "#") {
  27362. defundef = arg[2]
  27363. mac1 = arg[3]
  27364. } else {
  27365. defundef = substr(arg[1], 2)
  27366. mac1 = arg[2]
  27367. }
  27368. split(mac1, mac2, "(") #)
  27369. macro = mac2[1]
  27370. prefix = substr(line, 1, index(line, defundef) - 1)
  27371. if (D_is_set[macro]) {
  27372. # Preserve the white space surrounding the "#".
  27373. print prefix "define", macro P[macro] D[macro]
  27374. next
  27375. } else {
  27376. # Replace #undef with comments. This is necessary, for example,
  27377. # in the case of _POSIX_SOURCE, which is predefined and required
  27378. # on some systems where configure will not decide to define it.
  27379. if (defundef == "undef") {
  27380. print "/*", prefix defundef, macro, "*/"
  27381. next
  27382. }
  27383. }
  27384. }
  27385. { print }
  27386. _ACAWK
  27387. _ACEOF
  27388. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27389. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27390. fi # test -n "$CONFIG_HEADERS"
  27391. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27392. shift
  27393. for ac_tag
  27394. do
  27395. case $ac_tag in
  27396. :[FHLC]) ac_mode=$ac_tag; continue;;
  27397. esac
  27398. case $ac_mode$ac_tag in
  27399. :[FHL]*:*);;
  27400. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27401. :[FH]-) ac_tag=-:-;;
  27402. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27403. esac
  27404. ac_save_IFS=$IFS
  27405. IFS=:
  27406. set x $ac_tag
  27407. IFS=$ac_save_IFS
  27408. shift
  27409. ac_file=$1
  27410. shift
  27411. case $ac_mode in
  27412. :L) ac_source=$1;;
  27413. :[FH])
  27414. ac_file_inputs=
  27415. for ac_f
  27416. do
  27417. case $ac_f in
  27418. -) ac_f="$ac_tmp/stdin";;
  27419. *) # Look for the file first in the build tree, then in the source tree
  27420. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27421. # because $ac_f cannot contain `:'.
  27422. test -f "$ac_f" ||
  27423. case $ac_f in
  27424. [\\/$]*) false;;
  27425. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27426. esac ||
  27427. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27428. esac
  27429. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27430. as_fn_append ac_file_inputs " '$ac_f'"
  27431. done
  27432. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27433. # use $as_me), people would be surprised to read:
  27434. # /* config.h. Generated by config.status. */
  27435. configure_input='Generated from '`
  27436. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27437. `' by configure.'
  27438. if test x"$ac_file" != x-; then
  27439. configure_input="$ac_file. $configure_input"
  27440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27441. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27442. fi
  27443. # Neutralize special characters interpreted by sed in replacement strings.
  27444. case $configure_input in #(
  27445. *\&* | *\|* | *\\* )
  27446. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27447. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27448. *) ac_sed_conf_input=$configure_input;;
  27449. esac
  27450. case $ac_tag in
  27451. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27452. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27453. esac
  27454. ;;
  27455. esac
  27456. ac_dir=`$as_dirname -- "$ac_file" ||
  27457. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27458. X"$ac_file" : 'X\(//\)[^/]' \| \
  27459. X"$ac_file" : 'X\(//\)$' \| \
  27460. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27461. printf "%s\n" X"$ac_file" |
  27462. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27463. s//\1/
  27464. q
  27465. }
  27466. /^X\(\/\/\)[^/].*/{
  27467. s//\1/
  27468. q
  27469. }
  27470. /^X\(\/\/\)$/{
  27471. s//\1/
  27472. q
  27473. }
  27474. /^X\(\/\).*/{
  27475. s//\1/
  27476. q
  27477. }
  27478. s/.*/./; q'`
  27479. as_dir="$ac_dir"; as_fn_mkdir_p
  27480. ac_builddir=.
  27481. case "$ac_dir" in
  27482. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27483. *)
  27484. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27485. # A ".." for each directory in $ac_dir_suffix.
  27486. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27487. case $ac_top_builddir_sub in
  27488. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27489. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27490. esac ;;
  27491. esac
  27492. ac_abs_top_builddir=$ac_pwd
  27493. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27494. # for backward compatibility:
  27495. ac_top_builddir=$ac_top_build_prefix
  27496. case $srcdir in
  27497. .) # We are building in place.
  27498. ac_srcdir=.
  27499. ac_top_srcdir=$ac_top_builddir_sub
  27500. ac_abs_top_srcdir=$ac_pwd ;;
  27501. [\\/]* | ?:[\\/]* ) # Absolute name.
  27502. ac_srcdir=$srcdir$ac_dir_suffix;
  27503. ac_top_srcdir=$srcdir
  27504. ac_abs_top_srcdir=$srcdir ;;
  27505. *) # Relative name.
  27506. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27507. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27508. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27509. esac
  27510. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27511. case $ac_mode in
  27512. :F)
  27513. #
  27514. # CONFIG_FILE
  27515. #
  27516. case $INSTALL in
  27517. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27518. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27519. esac
  27520. _ACEOF
  27521. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27522. # If the template does not know about datarootdir, expand it.
  27523. # FIXME: This hack should be removed a few years after 2.60.
  27524. ac_datarootdir_hack=; ac_datarootdir_seen=
  27525. ac_sed_dataroot='
  27526. /datarootdir/ {
  27527. p
  27528. q
  27529. }
  27530. /@datadir@/p
  27531. /@docdir@/p
  27532. /@infodir@/p
  27533. /@localedir@/p
  27534. /@mandir@/p'
  27535. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27536. *datarootdir*) ac_datarootdir_seen=yes;;
  27537. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27539. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27540. _ACEOF
  27541. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27542. ac_datarootdir_hack='
  27543. s&@datadir@&$datadir&g
  27544. s&@docdir@&$docdir&g
  27545. s&@infodir@&$infodir&g
  27546. s&@localedir@&$localedir&g
  27547. s&@mandir@&$mandir&g
  27548. s&\\\${datarootdir}&$datarootdir&g' ;;
  27549. esac
  27550. _ACEOF
  27551. # Neutralize VPATH when `$srcdir' = `.'.
  27552. # Shell code in configure.ac might set extrasub.
  27553. # FIXME: do we really want to maintain this feature?
  27554. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27555. ac_sed_extra="$ac_vpsub
  27556. $extrasub
  27557. _ACEOF
  27558. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27559. :t
  27560. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27561. s|@configure_input@|$ac_sed_conf_input|;t t
  27562. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27563. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27564. s&@srcdir@&$ac_srcdir&;t t
  27565. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27566. s&@top_srcdir@&$ac_top_srcdir&;t t
  27567. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27568. s&@builddir@&$ac_builddir&;t t
  27569. s&@abs_builddir@&$ac_abs_builddir&;t t
  27570. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27571. s&@INSTALL@&$ac_INSTALL&;t t
  27572. $ac_datarootdir_hack
  27573. "
  27574. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27575. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27576. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27577. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27578. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27579. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27581. which seems to be undefined. Please make sure it is defined" >&5
  27582. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27583. which seems to be undefined. Please make sure it is defined" >&2;}
  27584. rm -f "$ac_tmp/stdin"
  27585. case $ac_file in
  27586. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27587. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27588. esac \
  27589. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27590. ;;
  27591. :H)
  27592. #
  27593. # CONFIG_HEADER
  27594. #
  27595. if test x"$ac_file" != x-; then
  27596. {
  27597. printf "%s\n" "/* $configure_input */" >&1 \
  27598. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27599. } >"$ac_tmp/config.h" \
  27600. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27601. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27603. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27604. else
  27605. rm -f "$ac_file"
  27606. mv "$ac_tmp/config.h" "$ac_file" \
  27607. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27608. fi
  27609. else
  27610. printf "%s\n" "/* $configure_input */" >&1 \
  27611. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27612. || as_fn_error $? "could not create -" "$LINENO" 5
  27613. fi
  27614. ;;
  27615. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27616. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27617. ;;
  27618. esac
  27619. case $ac_file$ac_mode in
  27620. "libtool":C)
  27621. # See if we are running on zsh, and set the options that allow our
  27622. # commands through without removal of \ escapes.
  27623. if test -n "${ZSH_VERSION+set}"; then
  27624. setopt NO_GLOB_SUBST
  27625. fi
  27626. cfgfile=${ofile}T
  27627. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27628. $RM "$cfgfile"
  27629. cat <<_LT_EOF >> "$cfgfile"
  27630. #! $SHELL
  27631. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27632. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27633. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27634. # Provide generalized library-building support services.
  27635. # Written by Gordon Matzigkeit, 1996
  27636. # Copyright (C) 2014 Free Software Foundation, Inc.
  27637. # This is free software; see the source for copying conditions. There is NO
  27638. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27639. # GNU Libtool is free software; you can redistribute it and/or modify
  27640. # it under the terms of the GNU General Public License as published by
  27641. # the Free Software Foundation; either version 2 of of the License, or
  27642. # (at your option) any later version.
  27643. #
  27644. # As a special exception to the GNU General Public License, if you
  27645. # distribute this file as part of a program or library that is built
  27646. # using GNU Libtool, you may include this file under the same
  27647. # distribution terms that you use for the rest of that program.
  27648. #
  27649. # GNU Libtool is distributed in the hope that it will be useful, but
  27650. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27651. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27652. # GNU General Public License for more details.
  27653. #
  27654. # You should have received a copy of the GNU General Public License
  27655. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27656. # The names of the tagged configurations supported by this script.
  27657. available_tags='RC CXX '
  27658. # Configured defaults for sys_lib_dlsearch_path munging.
  27659. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27660. # ### BEGIN LIBTOOL CONFIG
  27661. # Which release of libtool.m4 was used?
  27662. macro_version=$macro_version
  27663. macro_revision=$macro_revision
  27664. # Assembler program.
  27665. AS=$lt_AS
  27666. # DLL creation program.
  27667. DLLTOOL=$lt_DLLTOOL
  27668. # Object dumper program.
  27669. OBJDUMP=$lt_OBJDUMP
  27670. # Whether or not to build shared libraries.
  27671. build_libtool_libs=$enable_shared
  27672. # Whether or not to build static libraries.
  27673. build_old_libs=$enable_static
  27674. # What type of objects to build.
  27675. pic_mode=$pic_mode
  27676. # Whether or not to optimize for fast installation.
  27677. fast_install=$enable_fast_install
  27678. # Shared archive member basename,for filename based shared library versioning on AIX.
  27679. shared_archive_member_spec=$shared_archive_member_spec
  27680. # Shell to use when invoking shell scripts.
  27681. SHELL=$lt_SHELL
  27682. # An echo program that protects backslashes.
  27683. ECHO=$lt_ECHO
  27684. # The PATH separator for the build system.
  27685. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27686. # The host system.
  27687. host_alias=$host_alias
  27688. host=$host
  27689. host_os=$host_os
  27690. # The build system.
  27691. build_alias=$build_alias
  27692. build=$build
  27693. build_os=$build_os
  27694. # A sed program that does not truncate output.
  27695. SED=$lt_SED
  27696. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27697. Xsed="\$SED -e 1s/^X//"
  27698. # A grep program that handles long lines.
  27699. GREP=$lt_GREP
  27700. # An ERE matcher.
  27701. EGREP=$lt_EGREP
  27702. # A literal string matcher.
  27703. FGREP=$lt_FGREP
  27704. # A BSD- or MS-compatible name lister.
  27705. NM=$lt_NM
  27706. # Whether we need soft or hard links.
  27707. LN_S=$lt_LN_S
  27708. # What is the maximum length of a command?
  27709. max_cmd_len=$max_cmd_len
  27710. # Object file suffix (normally "o").
  27711. objext=$ac_objext
  27712. # Executable file suffix (normally "").
  27713. exeext=$exeext
  27714. # whether the shell understands "unset".
  27715. lt_unset=$lt_unset
  27716. # turn spaces into newlines.
  27717. SP2NL=$lt_lt_SP2NL
  27718. # turn newlines into spaces.
  27719. NL2SP=$lt_lt_NL2SP
  27720. # convert \$build file names to \$host format.
  27721. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27722. # convert \$build files to toolchain format.
  27723. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27724. # Method to check whether dependent libraries are shared objects.
  27725. deplibs_check_method=$lt_deplibs_check_method
  27726. # Command to use when deplibs_check_method = "file_magic".
  27727. file_magic_cmd=$lt_file_magic_cmd
  27728. # How to find potential files when deplibs_check_method = "file_magic".
  27729. file_magic_glob=$lt_file_magic_glob
  27730. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27731. want_nocaseglob=$lt_want_nocaseglob
  27732. # Command to associate shared and link libraries.
  27733. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27734. # The archiver.
  27735. AR=$lt_AR
  27736. # Flags to create an archive.
  27737. AR_FLAGS=$lt_AR_FLAGS
  27738. # How to feed a file listing to the archiver.
  27739. archiver_list_spec=$lt_archiver_list_spec
  27740. # A symbol stripping program.
  27741. STRIP=$lt_STRIP
  27742. # Commands used to install an old-style archive.
  27743. RANLIB=$lt_RANLIB
  27744. old_postinstall_cmds=$lt_old_postinstall_cmds
  27745. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27746. # Whether to use a lock for old archive extraction.
  27747. lock_old_archive_extraction=$lock_old_archive_extraction
  27748. # A C compiler.
  27749. LTCC=$lt_CC
  27750. # LTCC compiler flags.
  27751. LTCFLAGS=$lt_CFLAGS
  27752. # Take the output of nm and produce a listing of raw symbols and C names.
  27753. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27754. # Transform the output of nm in a proper C declaration.
  27755. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27756. # Transform the output of nm into a list of symbols to manually relocate.
  27757. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27758. # Transform the output of nm in a C name address pair.
  27759. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27760. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27761. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27762. # The name lister interface.
  27763. nm_interface=$lt_lt_cv_nm_interface
  27764. # Specify filename containing input files for \$NM.
  27765. nm_file_list_spec=$lt_nm_file_list_spec
  27766. # The root where to search for dependent libraries,and where our libraries should be installed.
  27767. lt_sysroot=$lt_sysroot
  27768. # Command to truncate a binary pipe.
  27769. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27770. # The name of the directory that contains temporary libtool files.
  27771. objdir=$objdir
  27772. # Used to examine libraries when file_magic_cmd begins with "file".
  27773. MAGIC_CMD=$MAGIC_CMD
  27774. # Must we lock files when doing compilation?
  27775. need_locks=$lt_need_locks
  27776. # Manifest tool.
  27777. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27778. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27779. DSYMUTIL=$lt_DSYMUTIL
  27780. # Tool to change global to local symbols on Mac OS X.
  27781. NMEDIT=$lt_NMEDIT
  27782. # Tool to manipulate fat objects and archives on Mac OS X.
  27783. LIPO=$lt_LIPO
  27784. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27785. OTOOL=$lt_OTOOL
  27786. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27787. OTOOL64=$lt_OTOOL64
  27788. # Old archive suffix (normally "a").
  27789. libext=$libext
  27790. # Shared library suffix (normally ".so").
  27791. shrext_cmds=$lt_shrext_cmds
  27792. # The commands to extract the exported symbol list from a shared archive.
  27793. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27794. # Variables whose values should be saved in libtool wrapper scripts and
  27795. # restored at link time.
  27796. variables_saved_for_relink=$lt_variables_saved_for_relink
  27797. # Do we need the "lib" prefix for modules?
  27798. need_lib_prefix=$need_lib_prefix
  27799. # Do we need a version for libraries?
  27800. need_version=$need_version
  27801. # Library versioning type.
  27802. version_type=$version_type
  27803. # Shared library runtime path variable.
  27804. runpath_var=$runpath_var
  27805. # Shared library path variable.
  27806. shlibpath_var=$shlibpath_var
  27807. # Is shlibpath searched before the hard-coded library search path?
  27808. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27809. # Format of library name prefix.
  27810. libname_spec=$lt_libname_spec
  27811. # List of archive names. First name is the real one, the rest are links.
  27812. # The last name is the one that the linker finds with -lNAME
  27813. library_names_spec=$lt_library_names_spec
  27814. # The coded name of the library, if different from the real name.
  27815. soname_spec=$lt_soname_spec
  27816. # Permission mode override for installation of shared libraries.
  27817. install_override_mode=$lt_install_override_mode
  27818. # Command to use after installation of a shared archive.
  27819. postinstall_cmds=$lt_postinstall_cmds
  27820. # Command to use after uninstallation of a shared archive.
  27821. postuninstall_cmds=$lt_postuninstall_cmds
  27822. # Commands used to finish a libtool library installation in a directory.
  27823. finish_cmds=$lt_finish_cmds
  27824. # As "finish_cmds", except a single script fragment to be evaled but
  27825. # not shown.
  27826. finish_eval=$lt_finish_eval
  27827. # Whether we should hardcode library paths into libraries.
  27828. hardcode_into_libs=$hardcode_into_libs
  27829. # Compile-time system search path for libraries.
  27830. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27831. # Detected run-time system search path for libraries.
  27832. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27833. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27834. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27835. # Whether dlopen is supported.
  27836. dlopen_support=$enable_dlopen
  27837. # Whether dlopen of programs is supported.
  27838. dlopen_self=$enable_dlopen_self
  27839. # Whether dlopen of statically linked programs is supported.
  27840. dlopen_self_static=$enable_dlopen_self_static
  27841. # Commands to strip libraries.
  27842. old_striplib=$lt_old_striplib
  27843. striplib=$lt_striplib
  27844. # The linker used to build libraries.
  27845. LD=$lt_LD
  27846. # How to create reloadable object files.
  27847. reload_flag=$lt_reload_flag
  27848. reload_cmds=$lt_reload_cmds
  27849. # Commands used to build an old-style archive.
  27850. old_archive_cmds=$lt_old_archive_cmds
  27851. # A language specific compiler.
  27852. CC=$lt_compiler
  27853. # Is the compiler the GNU compiler?
  27854. with_gcc=$GCC
  27855. # Compiler flag to turn off builtin functions.
  27856. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27857. # Additional compiler flags for building library objects.
  27858. pic_flag=$lt_lt_prog_compiler_pic
  27859. # How to pass a linker flag through the compiler.
  27860. wl=$lt_lt_prog_compiler_wl
  27861. # Compiler flag to prevent dynamic linking.
  27862. link_static_flag=$lt_lt_prog_compiler_static
  27863. # Does compiler simultaneously support -c and -o options?
  27864. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27865. # Whether or not to add -lc for building shared libraries.
  27866. build_libtool_need_lc=$archive_cmds_need_lc
  27867. # Whether or not to disallow shared libs when runtime libs are static.
  27868. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27869. # Compiler flag to allow reflexive dlopens.
  27870. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27871. # Compiler flag to generate shared objects directly from archives.
  27872. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27873. # Whether the compiler copes with passing no objects directly.
  27874. compiler_needs_object=$lt_compiler_needs_object
  27875. # Create an old-style archive from a shared archive.
  27876. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27877. # Create a temporary old-style archive to link instead of a shared archive.
  27878. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27879. # Commands used to build a shared archive.
  27880. archive_cmds=$lt_archive_cmds
  27881. archive_expsym_cmds=$lt_archive_expsym_cmds
  27882. # Commands used to build a loadable module if different from building
  27883. # a shared archive.
  27884. module_cmds=$lt_module_cmds
  27885. module_expsym_cmds=$lt_module_expsym_cmds
  27886. # Whether we are building with GNU ld or not.
  27887. with_gnu_ld=$lt_with_gnu_ld
  27888. # Flag that allows shared libraries with undefined symbols to be built.
  27889. allow_undefined_flag=$lt_allow_undefined_flag
  27890. # Flag that enforces no undefined symbols.
  27891. no_undefined_flag=$lt_no_undefined_flag
  27892. # Flag to hardcode \$libdir into a binary during linking.
  27893. # This must work even if \$libdir does not exist
  27894. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27895. # Whether we need a single "-rpath" flag with a separated argument.
  27896. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27897. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27898. # DIR into the resulting binary.
  27899. hardcode_direct=$hardcode_direct
  27900. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27901. # DIR into the resulting binary and the resulting library dependency is
  27902. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27903. # library is relocated.
  27904. hardcode_direct_absolute=$hardcode_direct_absolute
  27905. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27906. # into the resulting binary.
  27907. hardcode_minus_L=$hardcode_minus_L
  27908. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27909. # into the resulting binary.
  27910. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27911. # Set to "yes" if building a shared library automatically hardcodes DIR
  27912. # into the library and all subsequent libraries and executables linked
  27913. # against it.
  27914. hardcode_automatic=$hardcode_automatic
  27915. # Set to yes if linker adds runtime paths of dependent libraries
  27916. # to runtime path list.
  27917. inherit_rpath=$inherit_rpath
  27918. # Whether libtool must link a program against all its dependency libraries.
  27919. link_all_deplibs=$link_all_deplibs
  27920. # Set to "yes" if exported symbols are required.
  27921. always_export_symbols=$always_export_symbols
  27922. # The commands to list exported symbols.
  27923. export_symbols_cmds=$lt_export_symbols_cmds
  27924. # Symbols that should not be listed in the preloaded symbols.
  27925. exclude_expsyms=$lt_exclude_expsyms
  27926. # Symbols that must always be exported.
  27927. include_expsyms=$lt_include_expsyms
  27928. # Commands necessary for linking programs (against libraries) with templates.
  27929. prelink_cmds=$lt_prelink_cmds
  27930. # Commands necessary for finishing linking programs.
  27931. postlink_cmds=$lt_postlink_cmds
  27932. # Specify filename containing input files.
  27933. file_list_spec=$lt_file_list_spec
  27934. # How to hardcode a shared library path into an executable.
  27935. hardcode_action=$hardcode_action
  27936. # The directories searched by this compiler when creating a shared library.
  27937. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27938. # Dependencies to place before and after the objects being linked to
  27939. # create a shared library.
  27940. predep_objects=$lt_predep_objects
  27941. postdep_objects=$lt_postdep_objects
  27942. predeps=$lt_predeps
  27943. postdeps=$lt_postdeps
  27944. # The library search path used internally by the compiler when linking
  27945. # a shared library.
  27946. compiler_lib_search_path=$lt_compiler_lib_search_path
  27947. # ### END LIBTOOL CONFIG
  27948. _LT_EOF
  27949. cat <<'_LT_EOF' >> "$cfgfile"
  27950. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27951. # func_munge_path_list VARIABLE PATH
  27952. # -----------------------------------
  27953. # VARIABLE is name of variable containing _space_ separated list of
  27954. # directories to be munged by the contents of PATH, which is string
  27955. # having a format:
  27956. # "DIR[:DIR]:"
  27957. # string "DIR[ DIR]" will be prepended to VARIABLE
  27958. # ":DIR[:DIR]"
  27959. # string "DIR[ DIR]" will be appended to VARIABLE
  27960. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27961. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27962. # "DIRA[ DIRA]" will be appended to VARIABLE
  27963. # "DIR[:DIR]"
  27964. # VARIABLE will be replaced by "DIR[ DIR]"
  27965. func_munge_path_list ()
  27966. {
  27967. case x$2 in
  27968. x)
  27969. ;;
  27970. *:)
  27971. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27972. ;;
  27973. x:*)
  27974. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27975. ;;
  27976. *::*)
  27977. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27978. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27979. ;;
  27980. *)
  27981. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27982. ;;
  27983. esac
  27984. }
  27985. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27986. func_cc_basename ()
  27987. {
  27988. for cc_temp in $*""; do
  27989. case $cc_temp in
  27990. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27991. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27992. \-*) ;;
  27993. *) break;;
  27994. esac
  27995. done
  27996. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27997. }
  27998. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27999. _LT_EOF
  28000. case $host_os in
  28001. aix3*)
  28002. cat <<\_LT_EOF >> "$cfgfile"
  28003. # AIX sometimes has problems with the GCC collect2 program. For some
  28004. # reason, if we set the COLLECT_NAMES environment variable, the problems
  28005. # vanish in a puff of smoke.
  28006. if test set != "${COLLECT_NAMES+set}"; then
  28007. COLLECT_NAMES=
  28008. export COLLECT_NAMES
  28009. fi
  28010. _LT_EOF
  28011. ;;
  28012. esac
  28013. ltmain=$ac_aux_dir/ltmain.sh
  28014. # We use sed instead of cat because bash on DJGPP gets confused if
  28015. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  28016. # text mode, it properly converts lines to CR/LF. This bash problem
  28017. # is reportedly fixed, but why not run on old versions too?
  28018. sed '$q' "$ltmain" >> "$cfgfile" \
  28019. || (rm -f "$cfgfile"; exit 1)
  28020. mv -f "$cfgfile" "$ofile" ||
  28021. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  28022. chmod +x "$ofile"
  28023. cat <<_LT_EOF >> "$ofile"
  28024. # ### BEGIN LIBTOOL TAG CONFIG: RC
  28025. # The linker used to build libraries.
  28026. LD=$lt_LD_RC
  28027. # How to create reloadable object files.
  28028. reload_flag=$lt_reload_flag_RC
  28029. reload_cmds=$lt_reload_cmds_RC
  28030. # Commands used to build an old-style archive.
  28031. old_archive_cmds=$lt_old_archive_cmds_RC
  28032. # A language specific compiler.
  28033. CC=$lt_compiler_RC
  28034. # Is the compiler the GNU compiler?
  28035. with_gcc=$GCC_RC
  28036. # Compiler flag to turn off builtin functions.
  28037. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  28038. # Additional compiler flags for building library objects.
  28039. pic_flag=$lt_lt_prog_compiler_pic_RC
  28040. # How to pass a linker flag through the compiler.
  28041. wl=$lt_lt_prog_compiler_wl_RC
  28042. # Compiler flag to prevent dynamic linking.
  28043. link_static_flag=$lt_lt_prog_compiler_static_RC
  28044. # Does compiler simultaneously support -c and -o options?
  28045. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  28046. # Whether or not to add -lc for building shared libraries.
  28047. build_libtool_need_lc=$archive_cmds_need_lc_RC
  28048. # Whether or not to disallow shared libs when runtime libs are static.
  28049. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  28050. # Compiler flag to allow reflexive dlopens.
  28051. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  28052. # Compiler flag to generate shared objects directly from archives.
  28053. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  28054. # Whether the compiler copes with passing no objects directly.
  28055. compiler_needs_object=$lt_compiler_needs_object_RC
  28056. # Create an old-style archive from a shared archive.
  28057. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  28058. # Create a temporary old-style archive to link instead of a shared archive.
  28059. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  28060. # Commands used to build a shared archive.
  28061. archive_cmds=$lt_archive_cmds_RC
  28062. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  28063. # Commands used to build a loadable module if different from building
  28064. # a shared archive.
  28065. module_cmds=$lt_module_cmds_RC
  28066. module_expsym_cmds=$lt_module_expsym_cmds_RC
  28067. # Whether we are building with GNU ld or not.
  28068. with_gnu_ld=$lt_with_gnu_ld_RC
  28069. # Flag that allows shared libraries with undefined symbols to be built.
  28070. allow_undefined_flag=$lt_allow_undefined_flag_RC
  28071. # Flag that enforces no undefined symbols.
  28072. no_undefined_flag=$lt_no_undefined_flag_RC
  28073. # Flag to hardcode \$libdir into a binary during linking.
  28074. # This must work even if \$libdir does not exist
  28075. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  28076. # Whether we need a single "-rpath" flag with a separated argument.
  28077. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  28078. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28079. # DIR into the resulting binary.
  28080. hardcode_direct=$hardcode_direct_RC
  28081. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28082. # DIR into the resulting binary and the resulting library dependency is
  28083. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28084. # library is relocated.
  28085. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  28086. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28087. # into the resulting binary.
  28088. hardcode_minus_L=$hardcode_minus_L_RC
  28089. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28090. # into the resulting binary.
  28091. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  28092. # Set to "yes" if building a shared library automatically hardcodes DIR
  28093. # into the library and all subsequent libraries and executables linked
  28094. # against it.
  28095. hardcode_automatic=$hardcode_automatic_RC
  28096. # Set to yes if linker adds runtime paths of dependent libraries
  28097. # to runtime path list.
  28098. inherit_rpath=$inherit_rpath_RC
  28099. # Whether libtool must link a program against all its dependency libraries.
  28100. link_all_deplibs=$link_all_deplibs_RC
  28101. # Set to "yes" if exported symbols are required.
  28102. always_export_symbols=$always_export_symbols_RC
  28103. # The commands to list exported symbols.
  28104. export_symbols_cmds=$lt_export_symbols_cmds_RC
  28105. # Symbols that should not be listed in the preloaded symbols.
  28106. exclude_expsyms=$lt_exclude_expsyms_RC
  28107. # Symbols that must always be exported.
  28108. include_expsyms=$lt_include_expsyms_RC
  28109. # Commands necessary for linking programs (against libraries) with templates.
  28110. prelink_cmds=$lt_prelink_cmds_RC
  28111. # Commands necessary for finishing linking programs.
  28112. postlink_cmds=$lt_postlink_cmds_RC
  28113. # Specify filename containing input files.
  28114. file_list_spec=$lt_file_list_spec_RC
  28115. # How to hardcode a shared library path into an executable.
  28116. hardcode_action=$hardcode_action_RC
  28117. # The directories searched by this compiler when creating a shared library.
  28118. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  28119. # Dependencies to place before and after the objects being linked to
  28120. # create a shared library.
  28121. predep_objects=$lt_predep_objects_RC
  28122. postdep_objects=$lt_postdep_objects_RC
  28123. predeps=$lt_predeps_RC
  28124. postdeps=$lt_postdeps_RC
  28125. # The library search path used internally by the compiler when linking
  28126. # a shared library.
  28127. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  28128. # ### END LIBTOOL TAG CONFIG: RC
  28129. _LT_EOF
  28130. cat <<_LT_EOF >> "$ofile"
  28131. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  28132. # The linker used to build libraries.
  28133. LD=$lt_LD_CXX
  28134. # How to create reloadable object files.
  28135. reload_flag=$lt_reload_flag_CXX
  28136. reload_cmds=$lt_reload_cmds_CXX
  28137. # Commands used to build an old-style archive.
  28138. old_archive_cmds=$lt_old_archive_cmds_CXX
  28139. # A language specific compiler.
  28140. CC=$lt_compiler_CXX
  28141. # Is the compiler the GNU compiler?
  28142. with_gcc=$GCC_CXX
  28143. # Compiler flag to turn off builtin functions.
  28144. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  28145. # Additional compiler flags for building library objects.
  28146. pic_flag=$lt_lt_prog_compiler_pic_CXX
  28147. # How to pass a linker flag through the compiler.
  28148. wl=$lt_lt_prog_compiler_wl_CXX
  28149. # Compiler flag to prevent dynamic linking.
  28150. link_static_flag=$lt_lt_prog_compiler_static_CXX
  28151. # Does compiler simultaneously support -c and -o options?
  28152. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  28153. # Whether or not to add -lc for building shared libraries.
  28154. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  28155. # Whether or not to disallow shared libs when runtime libs are static.
  28156. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  28157. # Compiler flag to allow reflexive dlopens.
  28158. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  28159. # Compiler flag to generate shared objects directly from archives.
  28160. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  28161. # Whether the compiler copes with passing no objects directly.
  28162. compiler_needs_object=$lt_compiler_needs_object_CXX
  28163. # Create an old-style archive from a shared archive.
  28164. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  28165. # Create a temporary old-style archive to link instead of a shared archive.
  28166. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  28167. # Commands used to build a shared archive.
  28168. archive_cmds=$lt_archive_cmds_CXX
  28169. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  28170. # Commands used to build a loadable module if different from building
  28171. # a shared archive.
  28172. module_cmds=$lt_module_cmds_CXX
  28173. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  28174. # Whether we are building with GNU ld or not.
  28175. with_gnu_ld=$lt_with_gnu_ld_CXX
  28176. # Flag that allows shared libraries with undefined symbols to be built.
  28177. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  28178. # Flag that enforces no undefined symbols.
  28179. no_undefined_flag=$lt_no_undefined_flag_CXX
  28180. # Flag to hardcode \$libdir into a binary during linking.
  28181. # This must work even if \$libdir does not exist
  28182. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  28183. # Whether we need a single "-rpath" flag with a separated argument.
  28184. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  28185. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28186. # DIR into the resulting binary.
  28187. hardcode_direct=$hardcode_direct_CXX
  28188. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28189. # DIR into the resulting binary and the resulting library dependency is
  28190. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28191. # library is relocated.
  28192. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  28193. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28194. # into the resulting binary.
  28195. hardcode_minus_L=$hardcode_minus_L_CXX
  28196. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28197. # into the resulting binary.
  28198. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28199. # Set to "yes" if building a shared library automatically hardcodes DIR
  28200. # into the library and all subsequent libraries and executables linked
  28201. # against it.
  28202. hardcode_automatic=$hardcode_automatic_CXX
  28203. # Set to yes if linker adds runtime paths of dependent libraries
  28204. # to runtime path list.
  28205. inherit_rpath=$inherit_rpath_CXX
  28206. # Whether libtool must link a program against all its dependency libraries.
  28207. link_all_deplibs=$link_all_deplibs_CXX
  28208. # Set to "yes" if exported symbols are required.
  28209. always_export_symbols=$always_export_symbols_CXX
  28210. # The commands to list exported symbols.
  28211. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28212. # Symbols that should not be listed in the preloaded symbols.
  28213. exclude_expsyms=$lt_exclude_expsyms_CXX
  28214. # Symbols that must always be exported.
  28215. include_expsyms=$lt_include_expsyms_CXX
  28216. # Commands necessary for linking programs (against libraries) with templates.
  28217. prelink_cmds=$lt_prelink_cmds_CXX
  28218. # Commands necessary for finishing linking programs.
  28219. postlink_cmds=$lt_postlink_cmds_CXX
  28220. # Specify filename containing input files.
  28221. file_list_spec=$lt_file_list_spec_CXX
  28222. # How to hardcode a shared library path into an executable.
  28223. hardcode_action=$hardcode_action_CXX
  28224. # The directories searched by this compiler when creating a shared library.
  28225. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28226. # Dependencies to place before and after the objects being linked to
  28227. # create a shared library.
  28228. predep_objects=$lt_predep_objects_CXX
  28229. postdep_objects=$lt_postdep_objects_CXX
  28230. predeps=$lt_predeps_CXX
  28231. postdeps=$lt_postdeps_CXX
  28232. # The library search path used internally by the compiler when linking
  28233. # a shared library.
  28234. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28235. # ### END LIBTOOL TAG CONFIG: CXX
  28236. _LT_EOF
  28237. ;;
  28238. "sdl2_config":C) chmod a+x sdl2-config ;;
  28239. "summary":C) printf "$SUMMARY" ;;
  28240. esac
  28241. done # for ac_tag
  28242. as_fn_exit 0
  28243. _ACEOF
  28244. ac_clean_files=$ac_clean_files_save
  28245. test $ac_write_fail = 0 ||
  28246. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28247. # configure is writing to config.log, and then calls config.status.
  28248. # config.status does its own redirection, appending to config.log.
  28249. # Unfortunately, on DOS this fails, as config.log is still kept open
  28250. # by configure, so config.status won't be able to write to it; its
  28251. # output is simply discarded. So we exec the FD to /dev/null,
  28252. # effectively closing config.log, so it can be properly (re)opened and
  28253. # appended to by config.status. When coming back to configure, we
  28254. # need to make the FD available again.
  28255. if test "$no_create" != yes; then
  28256. ac_cs_success=:
  28257. ac_config_status_args=
  28258. test "$silent" = yes &&
  28259. ac_config_status_args="$ac_config_status_args --quiet"
  28260. exec 5>/dev/null
  28261. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28262. exec 5>>config.log
  28263. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28264. # would make configure fail if this is the last instruction.
  28265. $ac_cs_success || as_fn_exit 1
  28266. fi
  28267. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28269. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28270. fi