configure 964 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858
  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=yes]
  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=31
  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)'
  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. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
  7289. if test yes = "$lt_cv_support_no_fixup_chains"; then
  7290. _lt_dar_allow_undefined='$_lt_dar_allow_undefined $wl-no_fixup_chains'
  7291. fi
  7292. ;;
  7293. esac
  7294. ;;
  7295. esac
  7296. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7297. _lt_dar_single_mod='$single_module'
  7298. fi
  7299. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7300. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7301. else
  7302. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7303. fi
  7304. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7305. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7306. else
  7307. _lt_dsymutil=
  7308. fi
  7309. ;;
  7310. esac
  7311. # func_munge_path_list VARIABLE PATH
  7312. # -----------------------------------
  7313. # VARIABLE is name of variable containing _space_ separated list of
  7314. # directories to be munged by the contents of PATH, which is string
  7315. # having a format:
  7316. # "DIR[:DIR]:"
  7317. # string "DIR[ DIR]" will be prepended to VARIABLE
  7318. # ":DIR[:DIR]"
  7319. # string "DIR[ DIR]" will be appended to VARIABLE
  7320. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7321. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7322. # "DIRA[ DIRA]" will be appended to VARIABLE
  7323. # "DIR[:DIR]"
  7324. # VARIABLE will be replaced by "DIR[ DIR]"
  7325. func_munge_path_list ()
  7326. {
  7327. case x$2 in
  7328. x)
  7329. ;;
  7330. *:)
  7331. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7332. ;;
  7333. x:*)
  7334. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7335. ;;
  7336. *::*)
  7337. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7338. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7339. ;;
  7340. *)
  7341. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7342. ;;
  7343. esac
  7344. }
  7345. ac_header= ac_cache=
  7346. for ac_item in $ac_header_c_list
  7347. do
  7348. if test $ac_cache; then
  7349. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7350. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7351. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7352. fi
  7353. ac_header= ac_cache=
  7354. elif test $ac_header; then
  7355. ac_cache=$ac_item
  7356. else
  7357. ac_header=$ac_item
  7358. fi
  7359. done
  7360. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7361. then :
  7362. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7363. fi
  7364. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7365. "
  7366. if test "x$ac_cv_header_dlfcn_h" = xyes
  7367. then :
  7368. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7369. fi
  7370. # Set options
  7371. enable_win32_dll=yes
  7372. case $host in
  7373. *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
  7374. if test -n "$ac_tool_prefix"; then
  7375. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7376. set dummy ${ac_tool_prefix}as; ac_word=$2
  7377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7378. printf %s "checking for $ac_word... " >&6; }
  7379. if test ${ac_cv_prog_AS+y}
  7380. then :
  7381. printf %s "(cached) " >&6
  7382. else $as_nop
  7383. if test -n "$AS"; then
  7384. ac_cv_prog_AS="$AS" # Let the user override the test.
  7385. else
  7386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7387. for as_dir in $PATH
  7388. do
  7389. IFS=$as_save_IFS
  7390. case $as_dir in #(((
  7391. '') as_dir=./ ;;
  7392. */) ;;
  7393. *) as_dir=$as_dir/ ;;
  7394. esac
  7395. for ac_exec_ext in '' $ac_executable_extensions; do
  7396. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7397. ac_cv_prog_AS="${ac_tool_prefix}as"
  7398. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7399. break 2
  7400. fi
  7401. done
  7402. done
  7403. IFS=$as_save_IFS
  7404. fi
  7405. fi
  7406. AS=$ac_cv_prog_AS
  7407. if test -n "$AS"; then
  7408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7409. printf "%s\n" "$AS" >&6; }
  7410. else
  7411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7412. printf "%s\n" "no" >&6; }
  7413. fi
  7414. fi
  7415. if test -z "$ac_cv_prog_AS"; then
  7416. ac_ct_AS=$AS
  7417. # Extract the first word of "as", so it can be a program name with args.
  7418. set dummy as; ac_word=$2
  7419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7420. printf %s "checking for $ac_word... " >&6; }
  7421. if test ${ac_cv_prog_ac_ct_AS+y}
  7422. then :
  7423. printf %s "(cached) " >&6
  7424. else $as_nop
  7425. if test -n "$ac_ct_AS"; then
  7426. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7427. else
  7428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7429. for as_dir in $PATH
  7430. do
  7431. IFS=$as_save_IFS
  7432. case $as_dir in #(((
  7433. '') as_dir=./ ;;
  7434. */) ;;
  7435. *) as_dir=$as_dir/ ;;
  7436. esac
  7437. for ac_exec_ext in '' $ac_executable_extensions; do
  7438. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7439. ac_cv_prog_ac_ct_AS="as"
  7440. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7441. break 2
  7442. fi
  7443. done
  7444. done
  7445. IFS=$as_save_IFS
  7446. fi
  7447. fi
  7448. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7449. if test -n "$ac_ct_AS"; then
  7450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7451. printf "%s\n" "$ac_ct_AS" >&6; }
  7452. else
  7453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7454. printf "%s\n" "no" >&6; }
  7455. fi
  7456. if test "x$ac_ct_AS" = x; then
  7457. AS="false"
  7458. else
  7459. case $cross_compiling:$ac_tool_warned in
  7460. yes:)
  7461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7462. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7463. ac_tool_warned=yes ;;
  7464. esac
  7465. AS=$ac_ct_AS
  7466. fi
  7467. else
  7468. AS="$ac_cv_prog_AS"
  7469. fi
  7470. if test -n "$ac_tool_prefix"; then
  7471. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7472. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7474. printf %s "checking for $ac_word... " >&6; }
  7475. if test ${ac_cv_prog_DLLTOOL+y}
  7476. then :
  7477. printf %s "(cached) " >&6
  7478. else $as_nop
  7479. if test -n "$DLLTOOL"; then
  7480. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7481. else
  7482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7483. for as_dir in $PATH
  7484. do
  7485. IFS=$as_save_IFS
  7486. case $as_dir in #(((
  7487. '') as_dir=./ ;;
  7488. */) ;;
  7489. *) as_dir=$as_dir/ ;;
  7490. esac
  7491. for ac_exec_ext in '' $ac_executable_extensions; do
  7492. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7493. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7494. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7495. break 2
  7496. fi
  7497. done
  7498. done
  7499. IFS=$as_save_IFS
  7500. fi
  7501. fi
  7502. DLLTOOL=$ac_cv_prog_DLLTOOL
  7503. if test -n "$DLLTOOL"; then
  7504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7505. printf "%s\n" "$DLLTOOL" >&6; }
  7506. else
  7507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7508. printf "%s\n" "no" >&6; }
  7509. fi
  7510. fi
  7511. if test -z "$ac_cv_prog_DLLTOOL"; then
  7512. ac_ct_DLLTOOL=$DLLTOOL
  7513. # Extract the first word of "dlltool", so it can be a program name with args.
  7514. set dummy dlltool; ac_word=$2
  7515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7516. printf %s "checking for $ac_word... " >&6; }
  7517. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7518. then :
  7519. printf %s "(cached) " >&6
  7520. else $as_nop
  7521. if test -n "$ac_ct_DLLTOOL"; then
  7522. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7523. else
  7524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7525. for as_dir in $PATH
  7526. do
  7527. IFS=$as_save_IFS
  7528. case $as_dir in #(((
  7529. '') as_dir=./ ;;
  7530. */) ;;
  7531. *) as_dir=$as_dir/ ;;
  7532. esac
  7533. for ac_exec_ext in '' $ac_executable_extensions; do
  7534. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7535. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7536. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7537. break 2
  7538. fi
  7539. done
  7540. done
  7541. IFS=$as_save_IFS
  7542. fi
  7543. fi
  7544. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7545. if test -n "$ac_ct_DLLTOOL"; then
  7546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7547. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7548. else
  7549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7550. printf "%s\n" "no" >&6; }
  7551. fi
  7552. if test "x$ac_ct_DLLTOOL" = x; then
  7553. DLLTOOL="false"
  7554. else
  7555. case $cross_compiling:$ac_tool_warned in
  7556. yes:)
  7557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7558. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7559. ac_tool_warned=yes ;;
  7560. esac
  7561. DLLTOOL=$ac_ct_DLLTOOL
  7562. fi
  7563. else
  7564. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7565. fi
  7566. if test -n "$ac_tool_prefix"; then
  7567. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7568. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7570. printf %s "checking for $ac_word... " >&6; }
  7571. if test ${ac_cv_prog_OBJDUMP+y}
  7572. then :
  7573. printf %s "(cached) " >&6
  7574. else $as_nop
  7575. if test -n "$OBJDUMP"; then
  7576. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7577. else
  7578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7579. for as_dir in $PATH
  7580. do
  7581. IFS=$as_save_IFS
  7582. case $as_dir in #(((
  7583. '') as_dir=./ ;;
  7584. */) ;;
  7585. *) as_dir=$as_dir/ ;;
  7586. esac
  7587. for ac_exec_ext in '' $ac_executable_extensions; do
  7588. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7589. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7590. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7591. break 2
  7592. fi
  7593. done
  7594. done
  7595. IFS=$as_save_IFS
  7596. fi
  7597. fi
  7598. OBJDUMP=$ac_cv_prog_OBJDUMP
  7599. if test -n "$OBJDUMP"; then
  7600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7601. printf "%s\n" "$OBJDUMP" >&6; }
  7602. else
  7603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7604. printf "%s\n" "no" >&6; }
  7605. fi
  7606. fi
  7607. if test -z "$ac_cv_prog_OBJDUMP"; then
  7608. ac_ct_OBJDUMP=$OBJDUMP
  7609. # Extract the first word of "objdump", so it can be a program name with args.
  7610. set dummy objdump; ac_word=$2
  7611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7612. printf %s "checking for $ac_word... " >&6; }
  7613. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7614. then :
  7615. printf %s "(cached) " >&6
  7616. else $as_nop
  7617. if test -n "$ac_ct_OBJDUMP"; then
  7618. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7619. else
  7620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7621. for as_dir in $PATH
  7622. do
  7623. IFS=$as_save_IFS
  7624. case $as_dir in #(((
  7625. '') as_dir=./ ;;
  7626. */) ;;
  7627. *) as_dir=$as_dir/ ;;
  7628. esac
  7629. for ac_exec_ext in '' $ac_executable_extensions; do
  7630. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7631. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7632. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7633. break 2
  7634. fi
  7635. done
  7636. done
  7637. IFS=$as_save_IFS
  7638. fi
  7639. fi
  7640. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7641. if test -n "$ac_ct_OBJDUMP"; then
  7642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7643. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7644. else
  7645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7646. printf "%s\n" "no" >&6; }
  7647. fi
  7648. if test "x$ac_ct_OBJDUMP" = x; then
  7649. OBJDUMP="false"
  7650. else
  7651. case $cross_compiling:$ac_tool_warned in
  7652. yes:)
  7653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7654. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7655. ac_tool_warned=yes ;;
  7656. esac
  7657. OBJDUMP=$ac_ct_OBJDUMP
  7658. fi
  7659. else
  7660. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7661. fi
  7662. ;;
  7663. esac
  7664. test -z "$AS" && AS=as
  7665. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7666. test -z "$OBJDUMP" && OBJDUMP=objdump
  7667. enable_dlopen=no
  7668. # Check whether --enable-shared was given.
  7669. if test ${enable_shared+y}
  7670. then :
  7671. enableval=$enable_shared; p=${PACKAGE-default}
  7672. case $enableval in
  7673. yes) enable_shared=yes ;;
  7674. no) enable_shared=no ;;
  7675. *)
  7676. enable_shared=no
  7677. # Look at the argument we got. We use all the common list separators.
  7678. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7679. for pkg in $enableval; do
  7680. IFS=$lt_save_ifs
  7681. if test "X$pkg" = "X$p"; then
  7682. enable_shared=yes
  7683. fi
  7684. done
  7685. IFS=$lt_save_ifs
  7686. ;;
  7687. esac
  7688. else $as_nop
  7689. enable_shared=yes
  7690. fi
  7691. # Check whether --enable-static was given.
  7692. if test ${enable_static+y}
  7693. then :
  7694. enableval=$enable_static; p=${PACKAGE-default}
  7695. case $enableval in
  7696. yes) enable_static=yes ;;
  7697. no) enable_static=no ;;
  7698. *)
  7699. enable_static=no
  7700. # Look at the argument we got. We use all the common list separators.
  7701. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7702. for pkg in $enableval; do
  7703. IFS=$lt_save_ifs
  7704. if test "X$pkg" = "X$p"; then
  7705. enable_static=yes
  7706. fi
  7707. done
  7708. IFS=$lt_save_ifs
  7709. ;;
  7710. esac
  7711. else $as_nop
  7712. enable_static=yes
  7713. fi
  7714. # Check whether --with-pic was given.
  7715. if test ${with_pic+y}
  7716. then :
  7717. withval=$with_pic; lt_p=${PACKAGE-default}
  7718. case $withval in
  7719. yes|no) pic_mode=$withval ;;
  7720. *)
  7721. pic_mode=default
  7722. # Look at the argument we got. We use all the common list separators.
  7723. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7724. for lt_pkg in $withval; do
  7725. IFS=$lt_save_ifs
  7726. if test "X$lt_pkg" = "X$lt_p"; then
  7727. pic_mode=yes
  7728. fi
  7729. done
  7730. IFS=$lt_save_ifs
  7731. ;;
  7732. esac
  7733. else $as_nop
  7734. pic_mode=default
  7735. fi
  7736. # Check whether --enable-fast-install was given.
  7737. if test ${enable_fast_install+y}
  7738. then :
  7739. enableval=$enable_fast_install; p=${PACKAGE-default}
  7740. case $enableval in
  7741. yes) enable_fast_install=yes ;;
  7742. no) enable_fast_install=no ;;
  7743. *)
  7744. enable_fast_install=no
  7745. # Look at the argument we got. We use all the common list separators.
  7746. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7747. for pkg in $enableval; do
  7748. IFS=$lt_save_ifs
  7749. if test "X$pkg" = "X$p"; then
  7750. enable_fast_install=yes
  7751. fi
  7752. done
  7753. IFS=$lt_save_ifs
  7754. ;;
  7755. esac
  7756. else $as_nop
  7757. enable_fast_install=yes
  7758. fi
  7759. shared_archive_member_spec=
  7760. case $host,$enable_shared in
  7761. power*-*-aix[5-9]*,yes)
  7762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7763. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7764. # Check whether --with-aix-soname was given.
  7765. if test ${with_aix_soname+y}
  7766. then :
  7767. withval=$with_aix_soname; case $withval in
  7768. aix|svr4|both)
  7769. ;;
  7770. *)
  7771. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7772. ;;
  7773. esac
  7774. lt_cv_with_aix_soname=$with_aix_soname
  7775. else $as_nop
  7776. if test ${lt_cv_with_aix_soname+y}
  7777. then :
  7778. printf %s "(cached) " >&6
  7779. else $as_nop
  7780. lt_cv_with_aix_soname=aix
  7781. fi
  7782. with_aix_soname=$lt_cv_with_aix_soname
  7783. fi
  7784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7785. printf "%s\n" "$with_aix_soname" >&6; }
  7786. if test aix != "$with_aix_soname"; then
  7787. # For the AIX way of multilib, we name the shared archive member
  7788. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7789. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7790. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7791. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7792. if test 64 = "${OBJECT_MODE-32}"; then
  7793. shared_archive_member_spec=shr_64
  7794. else
  7795. shared_archive_member_spec=shr
  7796. fi
  7797. fi
  7798. ;;
  7799. *)
  7800. with_aix_soname=aix
  7801. ;;
  7802. esac
  7803. # This can be used to rebuild libtool when needed
  7804. LIBTOOL_DEPS=$ltmain
  7805. # Always use our own libtool.
  7806. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7807. test -z "$LN_S" && LN_S="ln -s"
  7808. if test -n "${ZSH_VERSION+set}"; then
  7809. setopt NO_GLOB_SUBST
  7810. fi
  7811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7812. printf %s "checking for objdir... " >&6; }
  7813. if test ${lt_cv_objdir+y}
  7814. then :
  7815. printf %s "(cached) " >&6
  7816. else $as_nop
  7817. rm -f .libs 2>/dev/null
  7818. mkdir .libs 2>/dev/null
  7819. if test -d .libs; then
  7820. lt_cv_objdir=.libs
  7821. else
  7822. # MS-DOS does not allow filenames that begin with a dot.
  7823. lt_cv_objdir=_libs
  7824. fi
  7825. rmdir .libs 2>/dev/null
  7826. fi
  7827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7828. printf "%s\n" "$lt_cv_objdir" >&6; }
  7829. objdir=$lt_cv_objdir
  7830. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7831. case $host_os in
  7832. aix3*)
  7833. # AIX sometimes has problems with the GCC collect2 program. For some
  7834. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7835. # vanish in a puff of smoke.
  7836. if test set != "${COLLECT_NAMES+set}"; then
  7837. COLLECT_NAMES=
  7838. export COLLECT_NAMES
  7839. fi
  7840. ;;
  7841. esac
  7842. # Global variables:
  7843. ofile=libtool
  7844. can_build_shared=yes
  7845. # All known linkers require a '.a' archive for static linking (except MSVC and
  7846. # ICC, which need '.lib').
  7847. libext=a
  7848. with_gnu_ld=$lt_cv_prog_gnu_ld
  7849. old_CC=$CC
  7850. old_CFLAGS=$CFLAGS
  7851. # Set sane defaults for various variables
  7852. test -z "$CC" && CC=cc
  7853. test -z "$LTCC" && LTCC=$CC
  7854. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7855. test -z "$LD" && LD=ld
  7856. test -z "$ac_objext" && ac_objext=o
  7857. func_cc_basename $compiler
  7858. cc_basename=$func_cc_basename_result
  7859. # Only perform the check for file, if the check method requires it
  7860. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7861. case $deplibs_check_method in
  7862. file_magic*)
  7863. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7865. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7866. if test ${lt_cv_path_MAGIC_CMD+y}
  7867. then :
  7868. printf %s "(cached) " >&6
  7869. else $as_nop
  7870. case $MAGIC_CMD in
  7871. [\\/*] | ?:[\\/]*)
  7872. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7873. ;;
  7874. *)
  7875. lt_save_MAGIC_CMD=$MAGIC_CMD
  7876. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7877. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7878. for ac_dir in $ac_dummy; do
  7879. IFS=$lt_save_ifs
  7880. test -z "$ac_dir" && ac_dir=.
  7881. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7882. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7883. if test -n "$file_magic_test_file"; then
  7884. case $deplibs_check_method in
  7885. "file_magic "*)
  7886. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7887. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7888. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7889. $EGREP "$file_magic_regex" > /dev/null; then
  7890. :
  7891. else
  7892. cat <<_LT_EOF 1>&2
  7893. *** Warning: the command libtool uses to detect shared libraries,
  7894. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7895. *** The result is that libtool may fail to recognize shared libraries
  7896. *** as such. This will affect the creation of libtool libraries that
  7897. *** depend on shared libraries, but programs linked with such libtool
  7898. *** libraries will work regardless of this problem. Nevertheless, you
  7899. *** may want to report the problem to your system manager and/or to
  7900. *** bug-libtool@gnu.org
  7901. _LT_EOF
  7902. fi ;;
  7903. esac
  7904. fi
  7905. break
  7906. fi
  7907. done
  7908. IFS=$lt_save_ifs
  7909. MAGIC_CMD=$lt_save_MAGIC_CMD
  7910. ;;
  7911. esac
  7912. fi
  7913. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7914. if test -n "$MAGIC_CMD"; then
  7915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7916. printf "%s\n" "$MAGIC_CMD" >&6; }
  7917. else
  7918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7919. printf "%s\n" "no" >&6; }
  7920. fi
  7921. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7922. if test -n "$ac_tool_prefix"; then
  7923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7924. printf %s "checking for file... " >&6; }
  7925. if test ${lt_cv_path_MAGIC_CMD+y}
  7926. then :
  7927. printf %s "(cached) " >&6
  7928. else $as_nop
  7929. case $MAGIC_CMD in
  7930. [\\/*] | ?:[\\/]*)
  7931. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7932. ;;
  7933. *)
  7934. lt_save_MAGIC_CMD=$MAGIC_CMD
  7935. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7936. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7937. for ac_dir in $ac_dummy; do
  7938. IFS=$lt_save_ifs
  7939. test -z "$ac_dir" && ac_dir=.
  7940. if test -f "$ac_dir/file"; then
  7941. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7942. if test -n "$file_magic_test_file"; then
  7943. case $deplibs_check_method in
  7944. "file_magic "*)
  7945. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7946. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7947. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7948. $EGREP "$file_magic_regex" > /dev/null; then
  7949. :
  7950. else
  7951. cat <<_LT_EOF 1>&2
  7952. *** Warning: the command libtool uses to detect shared libraries,
  7953. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7954. *** The result is that libtool may fail to recognize shared libraries
  7955. *** as such. This will affect the creation of libtool libraries that
  7956. *** depend on shared libraries, but programs linked with such libtool
  7957. *** libraries will work regardless of this problem. Nevertheless, you
  7958. *** may want to report the problem to your system manager and/or to
  7959. *** bug-libtool@gnu.org
  7960. _LT_EOF
  7961. fi ;;
  7962. esac
  7963. fi
  7964. break
  7965. fi
  7966. done
  7967. IFS=$lt_save_ifs
  7968. MAGIC_CMD=$lt_save_MAGIC_CMD
  7969. ;;
  7970. esac
  7971. fi
  7972. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7973. if test -n "$MAGIC_CMD"; then
  7974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7975. printf "%s\n" "$MAGIC_CMD" >&6; }
  7976. else
  7977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7978. printf "%s\n" "no" >&6; }
  7979. fi
  7980. else
  7981. MAGIC_CMD=:
  7982. fi
  7983. fi
  7984. fi
  7985. ;;
  7986. esac
  7987. # Use C for the default configuration in the libtool script
  7988. lt_save_CC=$CC
  7989. ac_ext=c
  7990. ac_cpp='$CPP $CPPFLAGS'
  7991. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7992. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7993. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7994. # Source file extension for C test sources.
  7995. ac_ext=c
  7996. # Object file extension for compiled C test sources.
  7997. objext=o
  7998. objext=$objext
  7999. # Code to be used in simple compile tests
  8000. lt_simple_compile_test_code="int some_variable = 0;"
  8001. # Code to be used in simple link tests
  8002. lt_simple_link_test_code='int main(void){return(0);}'
  8003. # If no C compiler was specified, use CC.
  8004. LTCC=${LTCC-"$CC"}
  8005. # If no C compiler flags were specified, use CFLAGS.
  8006. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8007. # Allow CC to be a program name with arguments.
  8008. compiler=$CC
  8009. # Save the default compiler, since it gets overwritten when the other
  8010. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8011. compiler_DEFAULT=$CC
  8012. # save warnings/boilerplate of simple test code
  8013. ac_outfile=conftest.$ac_objext
  8014. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8015. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8016. _lt_compiler_boilerplate=`cat conftest.err`
  8017. $RM conftest*
  8018. ac_outfile=conftest.$ac_objext
  8019. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8020. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8021. _lt_linker_boilerplate=`cat conftest.err`
  8022. $RM -r conftest*
  8023. ## CAVEAT EMPTOR:
  8024. ## There is no encapsulation within the following macros, do not change
  8025. ## the running order or otherwise move them around unless you know exactly
  8026. ## what you are doing...
  8027. if test -n "$compiler"; then
  8028. lt_prog_compiler_no_builtin_flag=
  8029. if test yes = "$GCC"; then
  8030. case $cc_basename in
  8031. nvcc*)
  8032. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8033. *)
  8034. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8035. esac
  8036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8037. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8038. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8039. then :
  8040. printf %s "(cached) " >&6
  8041. else $as_nop
  8042. lt_cv_prog_compiler_rtti_exceptions=no
  8043. ac_outfile=conftest.$ac_objext
  8044. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8045. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8046. # Insert the option either (1) after the last *FLAGS variable, or
  8047. # (2) before a word containing "conftest.", or (3) at the end.
  8048. # Note that $ac_compile itself does not contain backslashes and begins
  8049. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8050. # The option is referenced via a variable to avoid confusing sed.
  8051. lt_compile=`echo "$ac_compile" | $SED \
  8052. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8053. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8054. -e 's:$: $lt_compiler_flag:'`
  8055. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8056. (eval "$lt_compile" 2>conftest.err)
  8057. ac_status=$?
  8058. cat conftest.err >&5
  8059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8060. if (exit $ac_status) && test -s "$ac_outfile"; then
  8061. # The compiler can only warn and ignore the option if not recognized
  8062. # So say no if there are warnings other than the usual output.
  8063. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8064. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8065. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8066. lt_cv_prog_compiler_rtti_exceptions=yes
  8067. fi
  8068. fi
  8069. $RM conftest*
  8070. fi
  8071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8072. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8073. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8074. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8075. else
  8076. :
  8077. fi
  8078. fi
  8079. lt_prog_compiler_wl=
  8080. lt_prog_compiler_pic=
  8081. lt_prog_compiler_static=
  8082. if test yes = "$GCC"; then
  8083. lt_prog_compiler_wl='-Wl,'
  8084. lt_prog_compiler_static='-static'
  8085. case $host_os in
  8086. aix*)
  8087. # All AIX code is PIC.
  8088. if test ia64 = "$host_cpu"; then
  8089. # AIX 5 now supports IA64 processor
  8090. lt_prog_compiler_static='-Bstatic'
  8091. fi
  8092. lt_prog_compiler_pic='-fPIC'
  8093. ;;
  8094. amigaos*)
  8095. case $host_cpu in
  8096. powerpc)
  8097. # see comment about AmigaOS4 .so support
  8098. lt_prog_compiler_pic='-fPIC'
  8099. ;;
  8100. m68k)
  8101. # FIXME: we need at least 68020 code to build shared libraries, but
  8102. # adding the '-m68020' flag to GCC prevents building anything better,
  8103. # like '-m68040'.
  8104. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8105. ;;
  8106. esac
  8107. ;;
  8108. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8109. # PIC is the default for these OSes.
  8110. ;;
  8111. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8112. # This hack is so that the source file can tell whether it is being
  8113. # built for inclusion in a dll (and should export symbols for example).
  8114. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8115. # (--disable-auto-import) libraries
  8116. lt_prog_compiler_pic='-DDLL_EXPORT'
  8117. case $host_os in
  8118. os2*)
  8119. lt_prog_compiler_static='$wl-static'
  8120. ;;
  8121. esac
  8122. ;;
  8123. darwin* | rhapsody*)
  8124. # PIC is the default on this platform
  8125. # Common symbols not allowed in MH_DYLIB files
  8126. lt_prog_compiler_pic='-fno-common'
  8127. ;;
  8128. haiku*)
  8129. # PIC is the default for Haiku.
  8130. # The "-static" flag exists, but is broken.
  8131. lt_prog_compiler_static=
  8132. ;;
  8133. hpux*)
  8134. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8135. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8136. # sets the default TLS model and affects inlining.
  8137. case $host_cpu in
  8138. hppa*64*)
  8139. # +Z the default
  8140. ;;
  8141. *)
  8142. lt_prog_compiler_pic='-fPIC'
  8143. ;;
  8144. esac
  8145. ;;
  8146. interix[3-9]*)
  8147. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8148. # Instead, we relocate shared libraries at runtime.
  8149. ;;
  8150. msdosdjgpp*)
  8151. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8152. # on systems that don't support them.
  8153. lt_prog_compiler_can_build_shared=no
  8154. enable_shared=no
  8155. ;;
  8156. *nto* | *qnx*)
  8157. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8158. # it will coredump.
  8159. lt_prog_compiler_pic='-fPIC -shared'
  8160. ;;
  8161. sysv4*MP*)
  8162. if test -d /usr/nec; then
  8163. lt_prog_compiler_pic=-Kconform_pic
  8164. fi
  8165. ;;
  8166. *)
  8167. lt_prog_compiler_pic='-fPIC'
  8168. ;;
  8169. esac
  8170. case $cc_basename in
  8171. nvcc*) # Cuda Compiler Driver 2.2
  8172. lt_prog_compiler_wl='-Xlinker '
  8173. if test -n "$lt_prog_compiler_pic"; then
  8174. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8175. fi
  8176. ;;
  8177. esac
  8178. else
  8179. # PORTME Check for flag to pass linker flags through the system compiler.
  8180. case $host_os in
  8181. aix*)
  8182. lt_prog_compiler_wl='-Wl,'
  8183. if test ia64 = "$host_cpu"; then
  8184. # AIX 5 now supports IA64 processor
  8185. lt_prog_compiler_static='-Bstatic'
  8186. else
  8187. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8188. fi
  8189. ;;
  8190. darwin* | rhapsody*)
  8191. # PIC is the default on this platform
  8192. # Common symbols not allowed in MH_DYLIB files
  8193. lt_prog_compiler_pic='-fno-common'
  8194. case $cc_basename in
  8195. nagfor*)
  8196. # NAG Fortran compiler
  8197. lt_prog_compiler_wl='-Wl,-Wl,,'
  8198. lt_prog_compiler_pic='-PIC'
  8199. lt_prog_compiler_static='-Bstatic'
  8200. ;;
  8201. esac
  8202. ;;
  8203. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8204. # This hack is so that the source file can tell whether it is being
  8205. # built for inclusion in a dll (and should export symbols for example).
  8206. lt_prog_compiler_pic='-DDLL_EXPORT'
  8207. case $host_os in
  8208. os2*)
  8209. lt_prog_compiler_static='$wl-static'
  8210. ;;
  8211. esac
  8212. ;;
  8213. hpux9* | hpux10* | hpux11*)
  8214. lt_prog_compiler_wl='-Wl,'
  8215. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8216. # not for PA HP-UX.
  8217. case $host_cpu in
  8218. hppa*64*|ia64*)
  8219. # +Z the default
  8220. ;;
  8221. *)
  8222. lt_prog_compiler_pic='+Z'
  8223. ;;
  8224. esac
  8225. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8226. lt_prog_compiler_static='$wl-a ${wl}archive'
  8227. ;;
  8228. irix5* | irix6* | nonstopux*)
  8229. lt_prog_compiler_wl='-Wl,'
  8230. # PIC (with -KPIC) is the default.
  8231. lt_prog_compiler_static='-non_shared'
  8232. ;;
  8233. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8234. case $cc_basename in
  8235. # old Intel for x86_64, which still supported -KPIC.
  8236. ecc*)
  8237. lt_prog_compiler_wl='-Wl,'
  8238. lt_prog_compiler_pic='-KPIC'
  8239. lt_prog_compiler_static='-static'
  8240. ;;
  8241. # icc used to be incompatible with GCC.
  8242. # ICC 10 doesn't accept -KPIC any more.
  8243. icc* | ifort*)
  8244. lt_prog_compiler_wl='-Wl,'
  8245. lt_prog_compiler_pic='-fPIC'
  8246. lt_prog_compiler_static='-static'
  8247. ;;
  8248. # Lahey Fortran 8.1.
  8249. lf95*)
  8250. lt_prog_compiler_wl='-Wl,'
  8251. lt_prog_compiler_pic='--shared'
  8252. lt_prog_compiler_static='--static'
  8253. ;;
  8254. nagfor*)
  8255. # NAG Fortran compiler
  8256. lt_prog_compiler_wl='-Wl,-Wl,,'
  8257. lt_prog_compiler_pic='-PIC'
  8258. lt_prog_compiler_static='-Bstatic'
  8259. ;;
  8260. tcc*)
  8261. # Fabrice Bellard et al's Tiny C Compiler
  8262. lt_prog_compiler_wl='-Wl,'
  8263. lt_prog_compiler_pic='-fPIC'
  8264. lt_prog_compiler_static='-static'
  8265. ;;
  8266. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8267. # Portland Group compilers (*not* the Pentium gcc compiler,
  8268. # which looks to be a dead project)
  8269. lt_prog_compiler_wl='-Wl,'
  8270. lt_prog_compiler_pic='-fpic'
  8271. lt_prog_compiler_static='-Bstatic'
  8272. ;;
  8273. ccc*)
  8274. lt_prog_compiler_wl='-Wl,'
  8275. # All Alpha code is PIC.
  8276. lt_prog_compiler_static='-non_shared'
  8277. ;;
  8278. xl* | bgxl* | bgf* | mpixl*)
  8279. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8280. lt_prog_compiler_wl='-Wl,'
  8281. lt_prog_compiler_pic='-qpic'
  8282. lt_prog_compiler_static='-qstaticlink'
  8283. ;;
  8284. *)
  8285. case `$CC -V 2>&1 | sed 5q` in
  8286. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8287. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8288. lt_prog_compiler_pic='-KPIC'
  8289. lt_prog_compiler_static='-Bstatic'
  8290. lt_prog_compiler_wl=''
  8291. ;;
  8292. *Sun\ F* | *Sun*Fortran*)
  8293. lt_prog_compiler_pic='-KPIC'
  8294. lt_prog_compiler_static='-Bstatic'
  8295. lt_prog_compiler_wl='-Qoption ld '
  8296. ;;
  8297. *Sun\ C*)
  8298. # Sun C 5.9
  8299. lt_prog_compiler_pic='-KPIC'
  8300. lt_prog_compiler_static='-Bstatic'
  8301. lt_prog_compiler_wl='-Wl,'
  8302. ;;
  8303. *Intel*\ [CF]*Compiler*)
  8304. lt_prog_compiler_wl='-Wl,'
  8305. lt_prog_compiler_pic='-fPIC'
  8306. lt_prog_compiler_static='-static'
  8307. ;;
  8308. *Portland\ Group*)
  8309. lt_prog_compiler_wl='-Wl,'
  8310. lt_prog_compiler_pic='-fpic'
  8311. lt_prog_compiler_static='-Bstatic'
  8312. ;;
  8313. esac
  8314. ;;
  8315. esac
  8316. ;;
  8317. newsos6)
  8318. lt_prog_compiler_pic='-KPIC'
  8319. lt_prog_compiler_static='-Bstatic'
  8320. ;;
  8321. *nto* | *qnx*)
  8322. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8323. # it will coredump.
  8324. lt_prog_compiler_pic='-fPIC -shared'
  8325. ;;
  8326. osf3* | osf4* | osf5*)
  8327. lt_prog_compiler_wl='-Wl,'
  8328. # All OSF/1 code is PIC.
  8329. lt_prog_compiler_static='-non_shared'
  8330. ;;
  8331. rdos*)
  8332. lt_prog_compiler_static='-non_shared'
  8333. ;;
  8334. solaris*)
  8335. lt_prog_compiler_pic='-KPIC'
  8336. lt_prog_compiler_static='-Bstatic'
  8337. case $cc_basename in
  8338. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8339. lt_prog_compiler_wl='-Qoption ld ';;
  8340. *)
  8341. lt_prog_compiler_wl='-Wl,';;
  8342. esac
  8343. ;;
  8344. sunos4*)
  8345. lt_prog_compiler_wl='-Qoption ld '
  8346. lt_prog_compiler_pic='-PIC'
  8347. lt_prog_compiler_static='-Bstatic'
  8348. ;;
  8349. sysv4 | sysv4.2uw2* | sysv4.3*)
  8350. lt_prog_compiler_wl='-Wl,'
  8351. lt_prog_compiler_pic='-KPIC'
  8352. lt_prog_compiler_static='-Bstatic'
  8353. ;;
  8354. sysv4*MP*)
  8355. if test -d /usr/nec; then
  8356. lt_prog_compiler_pic='-Kconform_pic'
  8357. lt_prog_compiler_static='-Bstatic'
  8358. fi
  8359. ;;
  8360. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8361. lt_prog_compiler_wl='-Wl,'
  8362. lt_prog_compiler_pic='-KPIC'
  8363. lt_prog_compiler_static='-Bstatic'
  8364. ;;
  8365. unicos*)
  8366. lt_prog_compiler_wl='-Wl,'
  8367. lt_prog_compiler_can_build_shared=no
  8368. ;;
  8369. uts4*)
  8370. lt_prog_compiler_pic='-pic'
  8371. lt_prog_compiler_static='-Bstatic'
  8372. ;;
  8373. *)
  8374. lt_prog_compiler_can_build_shared=no
  8375. ;;
  8376. esac
  8377. fi
  8378. case $host_os in
  8379. # For platforms that do not support PIC, -DPIC is meaningless:
  8380. *djgpp*)
  8381. lt_prog_compiler_pic=
  8382. ;;
  8383. *)
  8384. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8385. ;;
  8386. esac
  8387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8388. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8389. if test ${lt_cv_prog_compiler_pic+y}
  8390. then :
  8391. printf %s "(cached) " >&6
  8392. else $as_nop
  8393. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8394. fi
  8395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8396. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8397. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8398. #
  8399. # Check to make sure the PIC flag actually works.
  8400. #
  8401. if test -n "$lt_prog_compiler_pic"; then
  8402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8403. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8404. if test ${lt_cv_prog_compiler_pic_works+y}
  8405. then :
  8406. printf %s "(cached) " >&6
  8407. else $as_nop
  8408. lt_cv_prog_compiler_pic_works=no
  8409. ac_outfile=conftest.$ac_objext
  8410. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8411. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8412. # Insert the option either (1) after the last *FLAGS variable, or
  8413. # (2) before a word containing "conftest.", or (3) at the end.
  8414. # Note that $ac_compile itself does not contain backslashes and begins
  8415. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8416. # The option is referenced via a variable to avoid confusing sed.
  8417. lt_compile=`echo "$ac_compile" | $SED \
  8418. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8419. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8420. -e 's:$: $lt_compiler_flag:'`
  8421. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8422. (eval "$lt_compile" 2>conftest.err)
  8423. ac_status=$?
  8424. cat conftest.err >&5
  8425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8426. if (exit $ac_status) && test -s "$ac_outfile"; then
  8427. # The compiler can only warn and ignore the option if not recognized
  8428. # So say no if there are warnings other than the usual output.
  8429. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8430. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8431. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8432. lt_cv_prog_compiler_pic_works=yes
  8433. fi
  8434. fi
  8435. $RM conftest*
  8436. fi
  8437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8438. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8439. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8440. case $lt_prog_compiler_pic in
  8441. "" | " "*) ;;
  8442. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8443. esac
  8444. else
  8445. lt_prog_compiler_pic=
  8446. lt_prog_compiler_can_build_shared=no
  8447. fi
  8448. fi
  8449. #
  8450. # Check to make sure the static flag actually works.
  8451. #
  8452. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8454. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8455. if test ${lt_cv_prog_compiler_static_works+y}
  8456. then :
  8457. printf %s "(cached) " >&6
  8458. else $as_nop
  8459. lt_cv_prog_compiler_static_works=no
  8460. save_LDFLAGS=$LDFLAGS
  8461. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8462. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8463. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8464. # The linker can only warn and ignore the option if not recognized
  8465. # So say no if there are warnings
  8466. if test -s conftest.err; then
  8467. # Append any errors to the config.log.
  8468. cat conftest.err 1>&5
  8469. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8470. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8471. if diff conftest.exp conftest.er2 >/dev/null; then
  8472. lt_cv_prog_compiler_static_works=yes
  8473. fi
  8474. else
  8475. lt_cv_prog_compiler_static_works=yes
  8476. fi
  8477. fi
  8478. $RM -r conftest*
  8479. LDFLAGS=$save_LDFLAGS
  8480. fi
  8481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8482. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8483. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8484. :
  8485. else
  8486. lt_prog_compiler_static=
  8487. fi
  8488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8489. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8490. if test ${lt_cv_prog_compiler_c_o+y}
  8491. then :
  8492. printf %s "(cached) " >&6
  8493. else $as_nop
  8494. lt_cv_prog_compiler_c_o=no
  8495. $RM -r conftest 2>/dev/null
  8496. mkdir conftest
  8497. cd conftest
  8498. mkdir out
  8499. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8500. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8501. # Insert the option either (1) after the last *FLAGS variable, or
  8502. # (2) before a word containing "conftest.", or (3) at the end.
  8503. # Note that $ac_compile itself does not contain backslashes and begins
  8504. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8505. lt_compile=`echo "$ac_compile" | $SED \
  8506. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8507. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8508. -e 's:$: $lt_compiler_flag:'`
  8509. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8510. (eval "$lt_compile" 2>out/conftest.err)
  8511. ac_status=$?
  8512. cat out/conftest.err >&5
  8513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8514. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8515. then
  8516. # The compiler can only warn and ignore the option if not recognized
  8517. # So say no if there are warnings
  8518. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8519. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8520. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8521. lt_cv_prog_compiler_c_o=yes
  8522. fi
  8523. fi
  8524. chmod u+w . 2>&5
  8525. $RM conftest*
  8526. # SGI C++ compiler will create directory out/ii_files/ for
  8527. # template instantiation
  8528. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8529. $RM out/* && rmdir out
  8530. cd ..
  8531. $RM -r conftest
  8532. $RM conftest*
  8533. fi
  8534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8535. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8537. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8538. if test ${lt_cv_prog_compiler_c_o+y}
  8539. then :
  8540. printf %s "(cached) " >&6
  8541. else $as_nop
  8542. lt_cv_prog_compiler_c_o=no
  8543. $RM -r conftest 2>/dev/null
  8544. mkdir conftest
  8545. cd conftest
  8546. mkdir out
  8547. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8548. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8549. # Insert the option either (1) after the last *FLAGS variable, or
  8550. # (2) before a word containing "conftest.", or (3) at the end.
  8551. # Note that $ac_compile itself does not contain backslashes and begins
  8552. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8553. lt_compile=`echo "$ac_compile" | $SED \
  8554. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8555. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8556. -e 's:$: $lt_compiler_flag:'`
  8557. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8558. (eval "$lt_compile" 2>out/conftest.err)
  8559. ac_status=$?
  8560. cat out/conftest.err >&5
  8561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8562. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8563. then
  8564. # The compiler can only warn and ignore the option if not recognized
  8565. # So say no if there are warnings
  8566. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8567. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8568. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8569. lt_cv_prog_compiler_c_o=yes
  8570. fi
  8571. fi
  8572. chmod u+w . 2>&5
  8573. $RM conftest*
  8574. # SGI C++ compiler will create directory out/ii_files/ for
  8575. # template instantiation
  8576. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8577. $RM out/* && rmdir out
  8578. cd ..
  8579. $RM -r conftest
  8580. $RM conftest*
  8581. fi
  8582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8583. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8584. hard_links=nottested
  8585. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8586. # do not overwrite the value of need_locks provided by the user
  8587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8588. printf %s "checking if we can lock with hard links... " >&6; }
  8589. hard_links=yes
  8590. $RM conftest*
  8591. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8592. touch conftest.a
  8593. ln conftest.a conftest.b 2>&5 || hard_links=no
  8594. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8596. printf "%s\n" "$hard_links" >&6; }
  8597. if test no = "$hard_links"; then
  8598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8599. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8600. need_locks=warn
  8601. fi
  8602. else
  8603. need_locks=no
  8604. fi
  8605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8606. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8607. runpath_var=
  8608. allow_undefined_flag=
  8609. always_export_symbols=no
  8610. archive_cmds=
  8611. archive_expsym_cmds=
  8612. compiler_needs_object=no
  8613. enable_shared_with_static_runtimes=no
  8614. export_dynamic_flag_spec=
  8615. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8616. hardcode_automatic=no
  8617. hardcode_direct=no
  8618. hardcode_direct_absolute=no
  8619. hardcode_libdir_flag_spec=
  8620. hardcode_libdir_separator=
  8621. hardcode_minus_L=no
  8622. hardcode_shlibpath_var=unsupported
  8623. inherit_rpath=no
  8624. link_all_deplibs=unknown
  8625. module_cmds=
  8626. module_expsym_cmds=
  8627. old_archive_from_new_cmds=
  8628. old_archive_from_expsyms_cmds=
  8629. thread_safe_flag_spec=
  8630. whole_archive_flag_spec=
  8631. # include_expsyms should be a list of space-separated symbols to be *always*
  8632. # included in the symbol list
  8633. include_expsyms=
  8634. # exclude_expsyms can be an extended regexp of symbols to exclude
  8635. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8636. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8637. # as well as any symbol that contains 'd'.
  8638. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8639. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8640. # platforms (ab)use it in PIC code, but their linkers get confused if
  8641. # the symbol is explicitly referenced. Since portable code cannot
  8642. # rely on this symbol name, it's probably fine to never include it in
  8643. # preloaded symbol tables.
  8644. # Exclude shared library initialization/finalization symbols.
  8645. extract_expsyms_cmds=
  8646. case $host_os in
  8647. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8648. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  8649. # When not using gcc, we currently assume that we are using
  8650. # Microsoft Visual C++ or Intel C++ Compiler.
  8651. if test yes != "$GCC"; then
  8652. with_gnu_ld=no
  8653. fi
  8654. ;;
  8655. interix*)
  8656. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  8657. with_gnu_ld=yes
  8658. ;;
  8659. openbsd* | bitrig*)
  8660. with_gnu_ld=no
  8661. ;;
  8662. esac
  8663. ld_shlibs=yes
  8664. # On some targets, GNU ld is compatible enough with the native linker
  8665. # that we're better off using the native interface for both.
  8666. lt_use_gnu_ld_interface=no
  8667. if test yes = "$with_gnu_ld"; then
  8668. case $host_os in
  8669. aix*)
  8670. # The AIX port of GNU ld has always aspired to compatibility
  8671. # with the native linker. However, as the warning in the GNU ld
  8672. # block says, versions before 2.19.5* couldn't really create working
  8673. # shared libraries, regardless of the interface used.
  8674. case `$LD -v 2>&1` in
  8675. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8676. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8677. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8678. *)
  8679. lt_use_gnu_ld_interface=yes
  8680. ;;
  8681. esac
  8682. ;;
  8683. *)
  8684. lt_use_gnu_ld_interface=yes
  8685. ;;
  8686. esac
  8687. fi
  8688. if test yes = "$lt_use_gnu_ld_interface"; then
  8689. # If archive_cmds runs LD, not CC, wlarc should be empty
  8690. wlarc='$wl'
  8691. # Set some defaults for GNU ld with shared library support. These
  8692. # are reset later if shared libraries are not supported. Putting them
  8693. # here allows them to be overridden if necessary.
  8694. runpath_var=LD_RUN_PATH
  8695. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8696. export_dynamic_flag_spec='$wl--export-dynamic'
  8697. # ancient GNU ld didn't support --whole-archive et. al.
  8698. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8699. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8700. else
  8701. whole_archive_flag_spec=
  8702. fi
  8703. supports_anon_versioning=no
  8704. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8705. *GNU\ gold*) supports_anon_versioning=yes ;;
  8706. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8707. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8708. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8709. *\ 2.11.*) ;; # other 2.11 versions
  8710. *) supports_anon_versioning=yes ;;
  8711. esac
  8712. # See if GNU ld supports shared libraries.
  8713. case $host_os in
  8714. aix[3-9]*)
  8715. # On AIX/PPC, the GNU linker is very broken
  8716. if test ia64 != "$host_cpu"; then
  8717. ld_shlibs=no
  8718. cat <<_LT_EOF 1>&2
  8719. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8720. *** to be unable to reliably create shared libraries on AIX.
  8721. *** Therefore, libtool is disabling shared libraries support. If you
  8722. *** really care for shared libraries, you may want to install binutils
  8723. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8724. *** You will then need to restart the configuration process.
  8725. _LT_EOF
  8726. fi
  8727. ;;
  8728. amigaos*)
  8729. case $host_cpu in
  8730. powerpc)
  8731. # see comment about AmigaOS4 .so support
  8732. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8733. archive_expsym_cmds=''
  8734. ;;
  8735. m68k)
  8736. 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)'
  8737. hardcode_libdir_flag_spec='-L$libdir'
  8738. hardcode_minus_L=yes
  8739. ;;
  8740. esac
  8741. ;;
  8742. beos*)
  8743. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8744. allow_undefined_flag=unsupported
  8745. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8746. # support --undefined. This deserves some investigation. FIXME
  8747. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8748. else
  8749. ld_shlibs=no
  8750. fi
  8751. ;;
  8752. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8753. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8754. # as there is no search path for DLLs.
  8755. hardcode_libdir_flag_spec='-L$libdir'
  8756. export_dynamic_flag_spec='$wl--export-all-symbols'
  8757. allow_undefined_flag=unsupported
  8758. always_export_symbols=no
  8759. enable_shared_with_static_runtimes=yes
  8760. 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'
  8761. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8762. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8763. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8764. # If the export-symbols file already is a .def file, use it as
  8765. # is; otherwise, prepend EXPORTS...
  8766. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8767. cp $export_symbols $output_objdir/$soname.def;
  8768. else
  8769. echo EXPORTS > $output_objdir/$soname.def;
  8770. cat $export_symbols >> $output_objdir/$soname.def;
  8771. fi~
  8772. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8773. else
  8774. ld_shlibs=no
  8775. fi
  8776. ;;
  8777. haiku*)
  8778. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8779. link_all_deplibs=yes
  8780. ;;
  8781. os2*)
  8782. hardcode_libdir_flag_spec='-L$libdir'
  8783. hardcode_minus_L=yes
  8784. allow_undefined_flag=unsupported
  8785. shrext_cmds=.dll
  8786. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8787. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8788. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8789. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8790. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8791. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8792. emximp -o $lib $output_objdir/$libname.def'
  8793. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8794. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8795. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8796. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8797. prefix_cmds="$SED"~
  8798. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8799. prefix_cmds="$prefix_cmds -e 1d";
  8800. fi~
  8801. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8802. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8803. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8804. emximp -o $lib $output_objdir/$libname.def'
  8805. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8806. enable_shared_with_static_runtimes=yes
  8807. file_list_spec='@'
  8808. ;;
  8809. interix[3-9]*)
  8810. hardcode_direct=no
  8811. hardcode_shlibpath_var=no
  8812. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8813. export_dynamic_flag_spec='$wl-E'
  8814. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8815. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8816. # default) and relocated if they conflict, which is a slow very memory
  8817. # consuming and fragmenting process. To avoid this, we pick a random,
  8818. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8819. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8820. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8821. 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'
  8822. ;;
  8823. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8824. tmp_diet=no
  8825. if test linux-dietlibc = "$host_os"; then
  8826. case $cc_basename in
  8827. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8828. esac
  8829. fi
  8830. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8831. && test no = "$tmp_diet"
  8832. then
  8833. tmp_addflag=' $pic_flag'
  8834. tmp_sharedflag='-shared'
  8835. case $cc_basename,$host_cpu in
  8836. pgcc*) # Portland Group C compiler
  8837. 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'
  8838. tmp_addflag=' $pic_flag'
  8839. ;;
  8840. pgf77* | pgf90* | pgf95* | pgfortran*)
  8841. # Portland Group f77 and f90 compilers
  8842. 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'
  8843. tmp_addflag=' $pic_flag -Mnomain' ;;
  8844. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8845. tmp_addflag=' -i_dynamic' ;;
  8846. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8847. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8848. ifc* | ifort*) # Intel Fortran compiler
  8849. tmp_addflag=' -nofor_main' ;;
  8850. lf95*) # Lahey Fortran 8.1
  8851. whole_archive_flag_spec=
  8852. tmp_sharedflag='--shared' ;;
  8853. nagfor*) # NAGFOR 5.3
  8854. tmp_sharedflag='-Wl,-shared' ;;
  8855. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8856. tmp_sharedflag='-qmkshrobj'
  8857. tmp_addflag= ;;
  8858. nvcc*) # Cuda Compiler Driver 2.2
  8859. 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'
  8860. compiler_needs_object=yes
  8861. ;;
  8862. esac
  8863. case `$CC -V 2>&1 | sed 5q` in
  8864. *Sun\ C*) # Sun C 5.9
  8865. 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'
  8866. compiler_needs_object=yes
  8867. tmp_sharedflag='-G' ;;
  8868. *Sun\ F*) # Sun Fortran 8.3
  8869. tmp_sharedflag='-G' ;;
  8870. esac
  8871. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8872. if test yes = "$supports_anon_versioning"; then
  8873. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8874. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8875. echo "local: *; };" >> $output_objdir/$libname.ver~
  8876. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8877. fi
  8878. case $cc_basename in
  8879. tcc*)
  8880. export_dynamic_flag_spec='-rdynamic'
  8881. ;;
  8882. xlf* | bgf* | bgxlf* | mpixlf*)
  8883. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8884. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8885. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8886. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8887. if test yes = "$supports_anon_versioning"; then
  8888. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8889. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8890. echo "local: *; };" >> $output_objdir/$libname.ver~
  8891. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8892. fi
  8893. ;;
  8894. esac
  8895. else
  8896. ld_shlibs=no
  8897. fi
  8898. ;;
  8899. netbsd*)
  8900. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8901. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8902. wlarc=
  8903. else
  8904. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8905. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8906. fi
  8907. ;;
  8908. solaris*)
  8909. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8910. ld_shlibs=no
  8911. cat <<_LT_EOF 1>&2
  8912. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8913. *** create shared libraries on Solaris systems. Therefore, libtool
  8914. *** is disabling shared libraries support. We urge you to upgrade GNU
  8915. *** binutils to release 2.9.1 or newer. Another option is to modify
  8916. *** your PATH or compiler configuration so that the native linker is
  8917. *** used, and then restart.
  8918. _LT_EOF
  8919. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8920. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8921. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8922. else
  8923. ld_shlibs=no
  8924. fi
  8925. ;;
  8926. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8927. case `$LD -v 2>&1` in
  8928. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8929. ld_shlibs=no
  8930. cat <<_LT_EOF 1>&2
  8931. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8932. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8933. *** is disabling shared libraries support. We urge you to upgrade GNU
  8934. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8935. *** your PATH or compiler configuration so that the native linker is
  8936. *** used, and then restart.
  8937. _LT_EOF
  8938. ;;
  8939. *)
  8940. # For security reasons, it is highly recommended that you always
  8941. # use absolute paths for naming shared libraries, and exclude the
  8942. # DT_RUNPATH tag from executables and libraries. But doing so
  8943. # requires that you compile everything twice, which is a pain.
  8944. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8945. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8946. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8947. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8948. else
  8949. ld_shlibs=no
  8950. fi
  8951. ;;
  8952. esac
  8953. ;;
  8954. sunos4*)
  8955. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8956. wlarc=
  8957. hardcode_direct=yes
  8958. hardcode_shlibpath_var=no
  8959. ;;
  8960. *)
  8961. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8962. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8963. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8964. else
  8965. ld_shlibs=no
  8966. fi
  8967. ;;
  8968. esac
  8969. if test no = "$ld_shlibs"; then
  8970. runpath_var=
  8971. hardcode_libdir_flag_spec=
  8972. export_dynamic_flag_spec=
  8973. whole_archive_flag_spec=
  8974. fi
  8975. else
  8976. # PORTME fill in a description of your system's linker (not GNU ld)
  8977. case $host_os in
  8978. aix3*)
  8979. allow_undefined_flag=unsupported
  8980. always_export_symbols=yes
  8981. 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'
  8982. # Note: this linker hardcodes the directories in LIBPATH if there
  8983. # are no directories specified by -L.
  8984. hardcode_minus_L=yes
  8985. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8986. # Neither direct hardcoding nor static linking is supported with a
  8987. # broken collect2.
  8988. hardcode_direct=unsupported
  8989. fi
  8990. ;;
  8991. aix[4-9]*)
  8992. if test ia64 = "$host_cpu"; then
  8993. # On IA64, the linker does run time linking by default, so we don't
  8994. # have to do anything special.
  8995. aix_use_runtimelinking=no
  8996. exp_sym_flag='-Bexport'
  8997. no_entry_flag=
  8998. else
  8999. # If we're using GNU nm, then we don't want the "-C" option.
  9000. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9001. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9002. # weak defined symbols like other global defined symbols, whereas
  9003. # GNU nm marks them as "W".
  9004. # While the 'weak' keyword is ignored in the Export File, we need
  9005. # it in the Import File for the 'aix-soname' feature, so we have
  9006. # to replace the "-B" option with "-P" for AIX nm.
  9007. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9008. 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'
  9009. else
  9010. 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'
  9011. fi
  9012. aix_use_runtimelinking=no
  9013. # Test if we are trying to use run time linking or normal
  9014. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9015. # have runtime linking enabled, and use it for executables.
  9016. # For shared libraries, we enable/disable runtime linking
  9017. # depending on the kind of the shared library created -
  9018. # when "with_aix_soname,aix_use_runtimelinking" is:
  9019. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9020. # "aix,yes" lib.so shared, rtl:yes, for executables
  9021. # lib.a static archive
  9022. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9023. # lib.a(lib.so.V) shared, rtl:no, for executables
  9024. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9025. # lib.a(lib.so.V) shared, rtl:no
  9026. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9027. # lib.a static archive
  9028. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9029. for ld_flag in $LDFLAGS; do
  9030. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9031. aix_use_runtimelinking=yes
  9032. break
  9033. fi
  9034. done
  9035. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9036. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9037. # so we don't have lib.a shared libs to link our executables.
  9038. # We have to force runtime linking in this case.
  9039. aix_use_runtimelinking=yes
  9040. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9041. fi
  9042. ;;
  9043. esac
  9044. exp_sym_flag='-bexport'
  9045. no_entry_flag='-bnoentry'
  9046. fi
  9047. # When large executables or shared objects are built, AIX ld can
  9048. # have problems creating the table of contents. If linking a library
  9049. # or program results in "error TOC overflow" add -mminimal-toc to
  9050. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9051. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9052. archive_cmds=''
  9053. hardcode_direct=yes
  9054. hardcode_direct_absolute=yes
  9055. hardcode_libdir_separator=':'
  9056. link_all_deplibs=yes
  9057. file_list_spec='$wl-f,'
  9058. case $with_aix_soname,$aix_use_runtimelinking in
  9059. aix,*) ;; # traditional, no import file
  9060. svr4,* | *,yes) # use import file
  9061. # The Import File defines what to hardcode.
  9062. hardcode_direct=no
  9063. hardcode_direct_absolute=no
  9064. ;;
  9065. esac
  9066. if test yes = "$GCC"; then
  9067. case $host_os in aix4.[012]|aix4.[012].*)
  9068. # We only want to do this on AIX 4.2 and lower, the check
  9069. # below for broken collect2 doesn't work under 4.3+
  9070. collect2name=`$CC -print-prog-name=collect2`
  9071. if test -f "$collect2name" &&
  9072. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9073. then
  9074. # We have reworked collect2
  9075. :
  9076. else
  9077. # We have old collect2
  9078. hardcode_direct=unsupported
  9079. # It fails to find uninstalled libraries when the uninstalled
  9080. # path is not listed in the libpath. Setting hardcode_minus_L
  9081. # to unsupported forces relinking
  9082. hardcode_minus_L=yes
  9083. hardcode_libdir_flag_spec='-L$libdir'
  9084. hardcode_libdir_separator=
  9085. fi
  9086. ;;
  9087. esac
  9088. shared_flag='-shared'
  9089. if test yes = "$aix_use_runtimelinking"; then
  9090. shared_flag="$shared_flag "'$wl-G'
  9091. fi
  9092. # Need to ensure runtime linking is disabled for the traditional
  9093. # shared library, or the linker may eventually find shared libraries
  9094. # /with/ Import File - we do not want to mix them.
  9095. shared_flag_aix='-shared'
  9096. shared_flag_svr4='-shared $wl-G'
  9097. else
  9098. # not using gcc
  9099. if test ia64 = "$host_cpu"; then
  9100. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9101. # chokes on -Wl,-G. The following line is correct:
  9102. shared_flag='-G'
  9103. else
  9104. if test yes = "$aix_use_runtimelinking"; then
  9105. shared_flag='$wl-G'
  9106. else
  9107. shared_flag='$wl-bM:SRE'
  9108. fi
  9109. shared_flag_aix='$wl-bM:SRE'
  9110. shared_flag_svr4='$wl-G'
  9111. fi
  9112. fi
  9113. export_dynamic_flag_spec='$wl-bexpall'
  9114. # It seems that -bexpall does not export symbols beginning with
  9115. # underscore (_), so it is better to generate a list of symbols to export.
  9116. always_export_symbols=yes
  9117. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9118. # Warning - without using the other runtime loading flags (-brtl),
  9119. # -berok will link without error, but may produce a broken library.
  9120. allow_undefined_flag='-berok'
  9121. # Determine the default libpath from the value encoded in an
  9122. # empty executable.
  9123. if test set = "${lt_cv_aix_libpath+set}"; then
  9124. aix_libpath=$lt_cv_aix_libpath
  9125. else
  9126. if test ${lt_cv_aix_libpath_+y}
  9127. then :
  9128. printf %s "(cached) " >&6
  9129. else $as_nop
  9130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9131. /* end confdefs.h. */
  9132. int
  9133. main (void)
  9134. {
  9135. ;
  9136. return 0;
  9137. }
  9138. _ACEOF
  9139. if ac_fn_c_try_link "$LINENO"
  9140. then :
  9141. lt_aix_libpath_sed='
  9142. /Import File Strings/,/^$/ {
  9143. /^0/ {
  9144. s/^0 *\([^ ]*\) *$/\1/
  9145. p
  9146. }
  9147. }'
  9148. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9149. # Check for a 64-bit object if we didn't find anything.
  9150. if test -z "$lt_cv_aix_libpath_"; then
  9151. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9152. fi
  9153. fi
  9154. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9155. conftest$ac_exeext conftest.$ac_ext
  9156. if test -z "$lt_cv_aix_libpath_"; then
  9157. lt_cv_aix_libpath_=/usr/lib:/lib
  9158. fi
  9159. fi
  9160. aix_libpath=$lt_cv_aix_libpath_
  9161. fi
  9162. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9163. 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
  9164. else
  9165. if test ia64 = "$host_cpu"; then
  9166. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9167. allow_undefined_flag="-z nodefs"
  9168. 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"
  9169. else
  9170. # Determine the default libpath from the value encoded in an
  9171. # empty executable.
  9172. if test set = "${lt_cv_aix_libpath+set}"; then
  9173. aix_libpath=$lt_cv_aix_libpath
  9174. else
  9175. if test ${lt_cv_aix_libpath_+y}
  9176. then :
  9177. printf %s "(cached) " >&6
  9178. else $as_nop
  9179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9180. /* end confdefs.h. */
  9181. int
  9182. main (void)
  9183. {
  9184. ;
  9185. return 0;
  9186. }
  9187. _ACEOF
  9188. if ac_fn_c_try_link "$LINENO"
  9189. then :
  9190. lt_aix_libpath_sed='
  9191. /Import File Strings/,/^$/ {
  9192. /^0/ {
  9193. s/^0 *\([^ ]*\) *$/\1/
  9194. p
  9195. }
  9196. }'
  9197. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9198. # Check for a 64-bit object if we didn't find anything.
  9199. if test -z "$lt_cv_aix_libpath_"; then
  9200. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9201. fi
  9202. fi
  9203. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9204. conftest$ac_exeext conftest.$ac_ext
  9205. if test -z "$lt_cv_aix_libpath_"; then
  9206. lt_cv_aix_libpath_=/usr/lib:/lib
  9207. fi
  9208. fi
  9209. aix_libpath=$lt_cv_aix_libpath_
  9210. fi
  9211. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9212. # Warning - without using the other run time loading flags,
  9213. # -berok will link without error, but may produce a broken library.
  9214. no_undefined_flag=' $wl-bernotok'
  9215. allow_undefined_flag=' $wl-berok'
  9216. if test yes = "$with_gnu_ld"; then
  9217. # We only use this code for GNU lds that support --whole-archive.
  9218. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9219. else
  9220. # Exported symbols can be pulled into shared objects from archives
  9221. whole_archive_flag_spec='$convenience'
  9222. fi
  9223. archive_cmds_need_lc=yes
  9224. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9225. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9226. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9227. if test svr4 != "$with_aix_soname"; then
  9228. # This is similar to how AIX traditionally builds its shared libraries.
  9229. 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'
  9230. fi
  9231. if test aix != "$with_aix_soname"; then
  9232. 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'
  9233. else
  9234. # used by -dlpreopen to get the symbols
  9235. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9236. fi
  9237. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9238. fi
  9239. fi
  9240. ;;
  9241. amigaos*)
  9242. case $host_cpu in
  9243. powerpc)
  9244. # see comment about AmigaOS4 .so support
  9245. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9246. archive_expsym_cmds=''
  9247. ;;
  9248. m68k)
  9249. 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)'
  9250. hardcode_libdir_flag_spec='-L$libdir'
  9251. hardcode_minus_L=yes
  9252. ;;
  9253. esac
  9254. ;;
  9255. bsdi[45]*)
  9256. export_dynamic_flag_spec=-rdynamic
  9257. ;;
  9258. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9259. # When not using gcc, we currently assume that we are using
  9260. # Microsoft Visual C++ or Intel C++ Compiler.
  9261. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9262. # no search path for DLLs.
  9263. case $cc_basename in
  9264. cl* | icl*)
  9265. # Native MSVC or ICC
  9266. hardcode_libdir_flag_spec=' '
  9267. allow_undefined_flag=unsupported
  9268. always_export_symbols=yes
  9269. file_list_spec='@'
  9270. # Tell ltmain to make .lib files, not .a files.
  9271. libext=lib
  9272. # Tell ltmain to make .dll files, not .so files.
  9273. shrext_cmds=.dll
  9274. # FIXME: Setting linknames here is a bad hack.
  9275. archive_cmds='$CC -Fe $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9276. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9277. cp "$export_symbols" "$output_objdir/$soname.def";
  9278. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9279. else
  9280. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9281. fi~
  9282. $CC -Fe $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9283. linknames='
  9284. # The linker will not automatically build a static lib if we build a DLL.
  9285. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9286. enable_shared_with_static_runtimes=yes
  9287. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9288. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9289. # Don't use ranlib
  9290. old_postinstall_cmds='chmod 644 $oldlib'
  9291. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9292. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9293. case $lt_outputfile in
  9294. *.exe|*.EXE) ;;
  9295. *)
  9296. lt_outputfile=$lt_outputfile.exe
  9297. lt_tool_outputfile=$lt_tool_outputfile.exe
  9298. ;;
  9299. esac~
  9300. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9301. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9302. $RM "$lt_outputfile.manifest";
  9303. fi'
  9304. ;;
  9305. *)
  9306. # Assume MSVC and ICC wrapper
  9307. hardcode_libdir_flag_spec=' '
  9308. allow_undefined_flag=unsupported
  9309. # Tell ltmain to make .lib files, not .a files.
  9310. libext=lib
  9311. # Tell ltmain to make .dll files, not .so files.
  9312. shrext_cmds=.dll
  9313. # FIXME: Setting linknames here is a bad hack.
  9314. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9315. # The linker will automatically build a .lib file if we build a DLL.
  9316. old_archive_from_new_cmds='true'
  9317. # FIXME: Should let the user specify the lib program.
  9318. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9319. enable_shared_with_static_runtimes=yes
  9320. ;;
  9321. esac
  9322. ;;
  9323. darwin* | rhapsody*)
  9324. archive_cmds_need_lc=no
  9325. hardcode_direct=no
  9326. hardcode_automatic=yes
  9327. hardcode_shlibpath_var=unsupported
  9328. if test yes = "$lt_cv_ld_force_load"; then
  9329. 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\"`'
  9330. else
  9331. whole_archive_flag_spec=''
  9332. fi
  9333. link_all_deplibs=yes
  9334. allow_undefined_flag=$_lt_dar_allow_undefined
  9335. case $cc_basename in
  9336. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9337. *) _lt_dar_can_shared=$GCC ;;
  9338. esac
  9339. if test yes = "$_lt_dar_can_shared"; then
  9340. output_verbose_link_cmd=func_echo_all
  9341. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9342. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9343. 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"
  9344. 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"
  9345. else
  9346. ld_shlibs=no
  9347. fi
  9348. ;;
  9349. dgux*)
  9350. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9351. hardcode_libdir_flag_spec='-L$libdir'
  9352. hardcode_shlibpath_var=no
  9353. ;;
  9354. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9355. # support. Future versions do this automatically, but an explicit c++rt0.o
  9356. # does not break anything, and helps significantly (at the cost of a little
  9357. # extra space).
  9358. freebsd2.2*)
  9359. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9360. hardcode_libdir_flag_spec='-R$libdir'
  9361. hardcode_direct=yes
  9362. hardcode_shlibpath_var=no
  9363. ;;
  9364. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9365. freebsd2.*)
  9366. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9367. hardcode_direct=yes
  9368. hardcode_minus_L=yes
  9369. hardcode_shlibpath_var=no
  9370. ;;
  9371. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9372. freebsd* | dragonfly* | midnightbsd*)
  9373. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9374. hardcode_libdir_flag_spec='-R$libdir'
  9375. hardcode_direct=yes
  9376. hardcode_shlibpath_var=no
  9377. ;;
  9378. hpux9*)
  9379. if test yes = "$GCC"; then
  9380. 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'
  9381. else
  9382. 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'
  9383. fi
  9384. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9385. hardcode_libdir_separator=:
  9386. hardcode_direct=yes
  9387. # hardcode_minus_L: Not really in the search PATH,
  9388. # but as the default location of the library.
  9389. hardcode_minus_L=yes
  9390. export_dynamic_flag_spec='$wl-E'
  9391. ;;
  9392. hpux10*)
  9393. if test yes,no = "$GCC,$with_gnu_ld"; then
  9394. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9395. else
  9396. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9397. fi
  9398. if test no = "$with_gnu_ld"; then
  9399. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9400. hardcode_libdir_separator=:
  9401. hardcode_direct=yes
  9402. hardcode_direct_absolute=yes
  9403. export_dynamic_flag_spec='$wl-E'
  9404. # hardcode_minus_L: Not really in the search PATH,
  9405. # but as the default location of the library.
  9406. hardcode_minus_L=yes
  9407. fi
  9408. ;;
  9409. hpux11*)
  9410. if test yes,no = "$GCC,$with_gnu_ld"; then
  9411. case $host_cpu in
  9412. hppa*64*)
  9413. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9414. ;;
  9415. ia64*)
  9416. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9417. ;;
  9418. *)
  9419. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9420. ;;
  9421. esac
  9422. else
  9423. case $host_cpu in
  9424. hppa*64*)
  9425. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9426. ;;
  9427. ia64*)
  9428. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9429. ;;
  9430. *)
  9431. # Older versions of the 11.00 compiler do not understand -b yet
  9432. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9434. printf %s "checking if $CC understands -b... " >&6; }
  9435. if test ${lt_cv_prog_compiler__b+y}
  9436. then :
  9437. printf %s "(cached) " >&6
  9438. else $as_nop
  9439. lt_cv_prog_compiler__b=no
  9440. save_LDFLAGS=$LDFLAGS
  9441. LDFLAGS="$LDFLAGS -b"
  9442. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9443. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9444. # The linker can only warn and ignore the option if not recognized
  9445. # So say no if there are warnings
  9446. if test -s conftest.err; then
  9447. # Append any errors to the config.log.
  9448. cat conftest.err 1>&5
  9449. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9450. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9451. if diff conftest.exp conftest.er2 >/dev/null; then
  9452. lt_cv_prog_compiler__b=yes
  9453. fi
  9454. else
  9455. lt_cv_prog_compiler__b=yes
  9456. fi
  9457. fi
  9458. $RM -r conftest*
  9459. LDFLAGS=$save_LDFLAGS
  9460. fi
  9461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9462. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9463. if test yes = "$lt_cv_prog_compiler__b"; then
  9464. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9465. else
  9466. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9467. fi
  9468. ;;
  9469. esac
  9470. fi
  9471. if test no = "$with_gnu_ld"; then
  9472. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9473. hardcode_libdir_separator=:
  9474. case $host_cpu in
  9475. hppa*64*|ia64*)
  9476. hardcode_direct=no
  9477. hardcode_shlibpath_var=no
  9478. ;;
  9479. *)
  9480. hardcode_direct=yes
  9481. hardcode_direct_absolute=yes
  9482. export_dynamic_flag_spec='$wl-E'
  9483. # hardcode_minus_L: Not really in the search PATH,
  9484. # but as the default location of the library.
  9485. hardcode_minus_L=yes
  9486. ;;
  9487. esac
  9488. fi
  9489. ;;
  9490. irix5* | irix6* | nonstopux*)
  9491. if test yes = "$GCC"; then
  9492. 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'
  9493. # Try to use the -exported_symbol ld option, if it does not
  9494. # work, assume that -exports_file does not work either and
  9495. # implicitly export all symbols.
  9496. # This should be the same for all languages, so no per-tag cache variable.
  9497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9498. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9499. if test ${lt_cv_irix_exported_symbol+y}
  9500. then :
  9501. printf %s "(cached) " >&6
  9502. else $as_nop
  9503. save_LDFLAGS=$LDFLAGS
  9504. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9506. /* end confdefs.h. */
  9507. int foo (void) { return 0; }
  9508. _ACEOF
  9509. if ac_fn_c_try_link "$LINENO"
  9510. then :
  9511. lt_cv_irix_exported_symbol=yes
  9512. else $as_nop
  9513. lt_cv_irix_exported_symbol=no
  9514. fi
  9515. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9516. conftest$ac_exeext conftest.$ac_ext
  9517. LDFLAGS=$save_LDFLAGS
  9518. fi
  9519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9520. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9521. if test yes = "$lt_cv_irix_exported_symbol"; then
  9522. 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'
  9523. fi
  9524. else
  9525. 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'
  9526. 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'
  9527. fi
  9528. archive_cmds_need_lc='no'
  9529. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9530. hardcode_libdir_separator=:
  9531. inherit_rpath=yes
  9532. link_all_deplibs=yes
  9533. ;;
  9534. linux*)
  9535. case $cc_basename in
  9536. tcc*)
  9537. # Fabrice Bellard et al's Tiny C Compiler
  9538. ld_shlibs=yes
  9539. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9540. ;;
  9541. esac
  9542. ;;
  9543. netbsd*)
  9544. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9545. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9546. else
  9547. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9548. fi
  9549. hardcode_libdir_flag_spec='-R$libdir'
  9550. hardcode_direct=yes
  9551. hardcode_shlibpath_var=no
  9552. ;;
  9553. newsos6)
  9554. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9555. hardcode_direct=yes
  9556. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9557. hardcode_libdir_separator=:
  9558. hardcode_shlibpath_var=no
  9559. ;;
  9560. *nto* | *qnx*)
  9561. ;;
  9562. openbsd* | bitrig*)
  9563. if test -f /usr/libexec/ld.so; then
  9564. hardcode_direct=yes
  9565. hardcode_shlibpath_var=no
  9566. hardcode_direct_absolute=yes
  9567. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9568. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9569. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9570. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9571. export_dynamic_flag_spec='$wl-E'
  9572. else
  9573. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9574. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9575. fi
  9576. else
  9577. ld_shlibs=no
  9578. fi
  9579. ;;
  9580. os2*)
  9581. hardcode_libdir_flag_spec='-L$libdir'
  9582. hardcode_minus_L=yes
  9583. allow_undefined_flag=unsupported
  9584. shrext_cmds=.dll
  9585. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9586. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9587. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9588. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9589. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9590. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9591. emximp -o $lib $output_objdir/$libname.def'
  9592. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9593. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9594. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9595. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9596. prefix_cmds="$SED"~
  9597. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9598. prefix_cmds="$prefix_cmds -e 1d";
  9599. fi~
  9600. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9601. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9602. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9603. emximp -o $lib $output_objdir/$libname.def'
  9604. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9605. enable_shared_with_static_runtimes=yes
  9606. file_list_spec='@'
  9607. ;;
  9608. osf3*)
  9609. if test yes = "$GCC"; then
  9610. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9611. 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'
  9612. else
  9613. allow_undefined_flag=' -expect_unresolved \*'
  9614. 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'
  9615. fi
  9616. archive_cmds_need_lc='no'
  9617. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9618. hardcode_libdir_separator=:
  9619. ;;
  9620. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9621. if test yes = "$GCC"; then
  9622. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9623. 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'
  9624. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9625. else
  9626. allow_undefined_flag=' -expect_unresolved \*'
  9627. 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'
  9628. 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~
  9629. $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'
  9630. # Both c and cxx compiler support -rpath directly
  9631. hardcode_libdir_flag_spec='-rpath $libdir'
  9632. fi
  9633. archive_cmds_need_lc='no'
  9634. hardcode_libdir_separator=:
  9635. ;;
  9636. solaris*)
  9637. no_undefined_flag=' -z defs'
  9638. if test yes = "$GCC"; then
  9639. wlarc='$wl'
  9640. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9641. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9642. $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'
  9643. else
  9644. case `$CC -V 2>&1` in
  9645. *"Compilers 5.0"*)
  9646. wlarc=''
  9647. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9648. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9649. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9650. ;;
  9651. *)
  9652. wlarc='$wl'
  9653. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9654. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9655. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9656. ;;
  9657. esac
  9658. fi
  9659. hardcode_libdir_flag_spec='-R$libdir'
  9660. hardcode_shlibpath_var=no
  9661. case $host_os in
  9662. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9663. *)
  9664. # The compiler driver will combine and reorder linker options,
  9665. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9666. # but is careful enough not to reorder.
  9667. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9668. if test yes = "$GCC"; then
  9669. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9670. else
  9671. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9672. fi
  9673. ;;
  9674. esac
  9675. link_all_deplibs=yes
  9676. ;;
  9677. sunos4*)
  9678. if test sequent = "$host_vendor"; then
  9679. # Use $CC to link under sequent, because it throws in some extra .o
  9680. # files that make .init and .fini sections work.
  9681. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9682. else
  9683. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9684. fi
  9685. hardcode_libdir_flag_spec='-L$libdir'
  9686. hardcode_direct=yes
  9687. hardcode_minus_L=yes
  9688. hardcode_shlibpath_var=no
  9689. ;;
  9690. sysv4)
  9691. case $host_vendor in
  9692. sni)
  9693. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9694. hardcode_direct=yes # is this really true???
  9695. ;;
  9696. siemens)
  9697. ## LD is ld it makes a PLAMLIB
  9698. ## CC just makes a GrossModule.
  9699. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9700. reload_cmds='$CC -r -o $output$reload_objs'
  9701. hardcode_direct=no
  9702. ;;
  9703. motorola)
  9704. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9705. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9706. ;;
  9707. esac
  9708. runpath_var='LD_RUN_PATH'
  9709. hardcode_shlibpath_var=no
  9710. ;;
  9711. sysv4.3*)
  9712. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9713. hardcode_shlibpath_var=no
  9714. export_dynamic_flag_spec='-Bexport'
  9715. ;;
  9716. sysv4*MP*)
  9717. if test -d /usr/nec; then
  9718. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9719. hardcode_shlibpath_var=no
  9720. runpath_var=LD_RUN_PATH
  9721. hardcode_runpath_var=yes
  9722. ld_shlibs=yes
  9723. fi
  9724. ;;
  9725. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9726. no_undefined_flag='$wl-z,text'
  9727. archive_cmds_need_lc=no
  9728. hardcode_shlibpath_var=no
  9729. runpath_var='LD_RUN_PATH'
  9730. if test yes = "$GCC"; then
  9731. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9732. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9733. else
  9734. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9735. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9736. fi
  9737. ;;
  9738. sysv5* | sco3.2v5* | sco5v6*)
  9739. # Note: We CANNOT use -z defs as we might desire, because we do not
  9740. # link with -lc, and that would cause any symbols used from libc to
  9741. # always be unresolved, which means just about no library would
  9742. # ever link correctly. If we're not using GNU ld we use -z text
  9743. # though, which does catch some bad symbols but isn't as heavy-handed
  9744. # as -z defs.
  9745. no_undefined_flag='$wl-z,text'
  9746. allow_undefined_flag='$wl-z,nodefs'
  9747. archive_cmds_need_lc=no
  9748. hardcode_shlibpath_var=no
  9749. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9750. hardcode_libdir_separator=':'
  9751. link_all_deplibs=yes
  9752. export_dynamic_flag_spec='$wl-Bexport'
  9753. runpath_var='LD_RUN_PATH'
  9754. if test yes = "$GCC"; then
  9755. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9756. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9757. else
  9758. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9759. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9760. fi
  9761. ;;
  9762. uts4*)
  9763. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9764. hardcode_libdir_flag_spec='-L$libdir'
  9765. hardcode_shlibpath_var=no
  9766. ;;
  9767. *)
  9768. ld_shlibs=no
  9769. ;;
  9770. esac
  9771. if test sni = "$host_vendor"; then
  9772. case $host in
  9773. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9774. export_dynamic_flag_spec='$wl-Blargedynsym'
  9775. ;;
  9776. esac
  9777. fi
  9778. fi
  9779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9780. printf "%s\n" "$ld_shlibs" >&6; }
  9781. test no = "$ld_shlibs" && can_build_shared=no
  9782. with_gnu_ld=$with_gnu_ld
  9783. #
  9784. # Do we need to explicitly link libc?
  9785. #
  9786. case "x$archive_cmds_need_lc" in
  9787. x|xyes)
  9788. # Assume -lc should be added
  9789. archive_cmds_need_lc=yes
  9790. if test yes,yes = "$GCC,$enable_shared"; then
  9791. case $archive_cmds in
  9792. *'~'*)
  9793. # FIXME: we may have to deal with multi-command sequences.
  9794. ;;
  9795. '$CC '*)
  9796. # Test whether the compiler implicitly links with -lc since on some
  9797. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9798. # to ld, don't add -lc before -lgcc.
  9799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9800. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9801. if test ${lt_cv_archive_cmds_need_lc+y}
  9802. then :
  9803. printf %s "(cached) " >&6
  9804. else $as_nop
  9805. $RM conftest*
  9806. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9807. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9808. (eval $ac_compile) 2>&5
  9809. ac_status=$?
  9810. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9811. test $ac_status = 0; } 2>conftest.err; then
  9812. soname=conftest
  9813. lib=conftest
  9814. libobjs=conftest.$ac_objext
  9815. deplibs=
  9816. wl=$lt_prog_compiler_wl
  9817. pic_flag=$lt_prog_compiler_pic
  9818. compiler_flags=-v
  9819. linker_flags=-v
  9820. verstring=
  9821. output_objdir=.
  9822. libname=conftest
  9823. lt_save_allow_undefined_flag=$allow_undefined_flag
  9824. allow_undefined_flag=
  9825. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9826. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9827. ac_status=$?
  9828. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9829. test $ac_status = 0; }
  9830. then
  9831. lt_cv_archive_cmds_need_lc=no
  9832. else
  9833. lt_cv_archive_cmds_need_lc=yes
  9834. fi
  9835. allow_undefined_flag=$lt_save_allow_undefined_flag
  9836. else
  9837. cat conftest.err 1>&5
  9838. fi
  9839. $RM conftest*
  9840. fi
  9841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9842. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9843. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9844. ;;
  9845. esac
  9846. fi
  9847. ;;
  9848. esac
  9849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9850. printf %s "checking dynamic linker characteristics... " >&6; }
  9851. if test yes = "$GCC"; then
  9852. case $host_os in
  9853. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9854. *) lt_awk_arg='/^libraries:/' ;;
  9855. esac
  9856. case $host_os in
  9857. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9858. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9859. esac
  9860. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9861. case $lt_search_path_spec in
  9862. *\;*)
  9863. # if the path contains ";" then we assume it to be the separator
  9864. # otherwise default to the standard path separator (i.e. ":") - it is
  9865. # assumed that no part of a normal pathname contains ";" but that should
  9866. # okay in the real world where ";" in dirpaths is itself problematic.
  9867. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9868. ;;
  9869. *)
  9870. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9871. ;;
  9872. esac
  9873. # Ok, now we have the path, separated by spaces, we can step through it
  9874. # and add multilib dir if necessary...
  9875. lt_tmp_lt_search_path_spec=
  9876. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9877. # ...but if some path component already ends with the multilib dir we assume
  9878. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9879. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9880. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9881. lt_multi_os_dir=
  9882. ;;
  9883. esac
  9884. for lt_sys_path in $lt_search_path_spec; do
  9885. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9886. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9887. elif test -n "$lt_multi_os_dir"; then
  9888. test -d "$lt_sys_path" && \
  9889. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9890. fi
  9891. done
  9892. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9893. BEGIN {RS = " "; FS = "/|\n";} {
  9894. lt_foo = "";
  9895. lt_count = 0;
  9896. for (lt_i = NF; lt_i > 0; lt_i--) {
  9897. if ($lt_i != "" && $lt_i != ".") {
  9898. if ($lt_i == "..") {
  9899. lt_count++;
  9900. } else {
  9901. if (lt_count == 0) {
  9902. lt_foo = "/" $lt_i lt_foo;
  9903. } else {
  9904. lt_count--;
  9905. }
  9906. }
  9907. }
  9908. }
  9909. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9910. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9911. }'`
  9912. # AWK program above erroneously prepends '/' to C:/dos/paths
  9913. # for these hosts.
  9914. case $host_os in
  9915. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9916. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9917. esac
  9918. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9919. else
  9920. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9921. fi
  9922. library_names_spec=
  9923. libname_spec='lib$name'
  9924. soname_spec=
  9925. shrext_cmds=.so
  9926. postinstall_cmds=
  9927. postuninstall_cmds=
  9928. finish_cmds=
  9929. finish_eval=
  9930. shlibpath_var=
  9931. shlibpath_overrides_runpath=unknown
  9932. version_type=none
  9933. dynamic_linker="$host_os ld.so"
  9934. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9935. need_lib_prefix=unknown
  9936. hardcode_into_libs=no
  9937. # when you set need_version to no, make sure it does not cause -set_version
  9938. # flags to be left without arguments
  9939. need_version=unknown
  9940. case $host_os in
  9941. aix3*)
  9942. version_type=linux # correct to gnu/linux during the next big refactor
  9943. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9944. shlibpath_var=LIBPATH
  9945. # AIX 3 has no versioning support, so we append a major version to the name.
  9946. soname_spec='$libname$release$shared_ext$major'
  9947. ;;
  9948. aix[4-9]*)
  9949. version_type=linux # correct to gnu/linux during the next big refactor
  9950. need_lib_prefix=no
  9951. need_version=no
  9952. hardcode_into_libs=yes
  9953. if test ia64 = "$host_cpu"; then
  9954. # AIX 5 supports IA64
  9955. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9956. shlibpath_var=LD_LIBRARY_PATH
  9957. else
  9958. # With GCC up to 2.95.x, collect2 would create an import file
  9959. # for dependence libraries. The import file would start with
  9960. # the line '#! .'. This would cause the generated library to
  9961. # depend on '.', always an invalid library. This was fixed in
  9962. # development snapshots of GCC prior to 3.0.
  9963. case $host_os in
  9964. aix4 | aix4.[01] | aix4.[01].*)
  9965. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9966. echo ' yes '
  9967. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9968. :
  9969. else
  9970. can_build_shared=no
  9971. fi
  9972. ;;
  9973. esac
  9974. # Using Import Files as archive members, it is possible to support
  9975. # filename-based versioning of shared library archives on AIX. While
  9976. # this would work for both with and without runtime linking, it will
  9977. # prevent static linking of such archives. So we do filename-based
  9978. # shared library versioning with .so extension only, which is used
  9979. # when both runtime linking and shared linking is enabled.
  9980. # Unfortunately, runtime linking may impact performance, so we do
  9981. # not want this to be the default eventually. Also, we use the
  9982. # versioned .so libs for executables only if there is the -brtl
  9983. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9984. # To allow for filename-based versioning support, we need to create
  9985. # libNAME.so.V as an archive file, containing:
  9986. # *) an Import File, referring to the versioned filename of the
  9987. # archive as well as the shared archive member, telling the
  9988. # bitwidth (32 or 64) of that shared object, and providing the
  9989. # list of exported symbols of that shared object, eventually
  9990. # decorated with the 'weak' keyword
  9991. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9992. # it being seen by the linker.
  9993. # At run time we better use the real file rather than another symlink,
  9994. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9995. case $with_aix_soname,$aix_use_runtimelinking in
  9996. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9997. # soname into executable. Probably we can add versioning support to
  9998. # collect2, so additional links can be useful in future.
  9999. aix,yes) # traditional libtool
  10000. dynamic_linker='AIX unversionable lib.so'
  10001. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10002. # instead of lib<name>.a to let people know that these are not
  10003. # typical AIX shared libraries.
  10004. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10005. ;;
  10006. aix,no) # traditional AIX only
  10007. dynamic_linker='AIX lib.a(lib.so.V)'
  10008. # We preserve .a as extension for shared libraries through AIX4.2
  10009. # and later when we are not doing run time linking.
  10010. library_names_spec='$libname$release.a $libname.a'
  10011. soname_spec='$libname$release$shared_ext$major'
  10012. ;;
  10013. svr4,*) # full svr4 only
  10014. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10015. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10016. # We do not specify a path in Import Files, so LIBPATH fires.
  10017. shlibpath_overrides_runpath=yes
  10018. ;;
  10019. *,yes) # both, prefer svr4
  10020. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10021. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10022. # unpreferred sharedlib libNAME.a needs extra handling
  10023. 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"'
  10024. 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"'
  10025. # We do not specify a path in Import Files, so LIBPATH fires.
  10026. shlibpath_overrides_runpath=yes
  10027. ;;
  10028. *,no) # both, prefer aix
  10029. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10030. library_names_spec='$libname$release.a $libname.a'
  10031. soname_spec='$libname$release$shared_ext$major'
  10032. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10033. 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)'
  10034. 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"'
  10035. ;;
  10036. esac
  10037. shlibpath_var=LIBPATH
  10038. fi
  10039. ;;
  10040. amigaos*)
  10041. case $host_cpu in
  10042. powerpc)
  10043. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10044. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10045. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10046. ;;
  10047. m68k)
  10048. library_names_spec='$libname.ixlibrary $libname.a'
  10049. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10050. 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'
  10051. ;;
  10052. esac
  10053. ;;
  10054. beos*)
  10055. library_names_spec='$libname$shared_ext'
  10056. dynamic_linker="$host_os ld.so"
  10057. shlibpath_var=LIBRARY_PATH
  10058. ;;
  10059. bsdi[45]*)
  10060. version_type=linux # correct to gnu/linux during the next big refactor
  10061. need_version=no
  10062. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10063. soname_spec='$libname$release$shared_ext$major'
  10064. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10065. shlibpath_var=LD_LIBRARY_PATH
  10066. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10067. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10068. # the default ld.so.conf also contains /usr/contrib/lib and
  10069. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10070. # libtool to hard-code these into programs
  10071. ;;
  10072. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10073. version_type=windows
  10074. shrext_cmds=.dll
  10075. need_version=no
  10076. need_lib_prefix=no
  10077. case $GCC,$cc_basename in
  10078. yes,*)
  10079. # gcc
  10080. library_names_spec='$libname.dll.a'
  10081. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10082. postinstall_cmds='base_file=`basename \$file`~
  10083. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10084. dldir=$destdir/`dirname \$dlpath`~
  10085. test -d \$dldir || mkdir -p \$dldir~
  10086. $install_prog $dir/$dlname \$dldir/$dlname~
  10087. chmod a+x \$dldir/$dlname~
  10088. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10089. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10090. fi'
  10091. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10092. dlpath=$dir/\$dldll~
  10093. $RM \$dlpath'
  10094. shlibpath_overrides_runpath=yes
  10095. case $host_os in
  10096. cygwin*)
  10097. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10098. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10099. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10100. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10101. ;;
  10102. mingw* | windows* | cegcc*)
  10103. # MinGW DLLs use traditional 'lib' prefix
  10104. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10105. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10106. ;;
  10107. pw32*)
  10108. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10109. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10110. ;;
  10111. esac
  10112. dynamic_linker='Win32 ld.exe'
  10113. ;;
  10114. *,cl* | *,icl*)
  10115. # Native MSVC or ICC
  10116. libname_spec='$name'
  10117. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10118. library_names_spec='$libname.dll.lib'
  10119. case $build_os in
  10120. mingw* | windows*)
  10121. sys_lib_search_path_spec=
  10122. lt_save_ifs=$IFS
  10123. IFS=';'
  10124. for lt_path in $LIB
  10125. do
  10126. IFS=$lt_save_ifs
  10127. # Let DOS variable expansion print the short 8.3 style file name.
  10128. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10129. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10130. done
  10131. IFS=$lt_save_ifs
  10132. # Convert to MSYS style.
  10133. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10134. ;;
  10135. cygwin*)
  10136. # Convert to unix form, then to dos form, then back to unix form
  10137. # but this time dos style (no spaces!) so that the unix form looks
  10138. # like /cygdrive/c/PROGRA~1:/cygdr...
  10139. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10140. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10141. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10142. ;;
  10143. *)
  10144. sys_lib_search_path_spec=$LIB
  10145. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10146. # It is most probably a Windows format PATH.
  10147. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10148. else
  10149. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10150. fi
  10151. # FIXME: find the short name or the path components, as spaces are
  10152. # common. (e.g. "Program Files" -> "PROGRA~1")
  10153. ;;
  10154. esac
  10155. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10156. postinstall_cmds='base_file=`basename \$file`~
  10157. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10158. dldir=$destdir/`dirname \$dlpath`~
  10159. test -d \$dldir || mkdir -p \$dldir~
  10160. $install_prog $dir/$dlname \$dldir/$dlname'
  10161. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10162. dlpath=$dir/\$dldll~
  10163. $RM \$dlpath'
  10164. shlibpath_overrides_runpath=yes
  10165. dynamic_linker='Win32 link.exe'
  10166. ;;
  10167. *)
  10168. # Assume MSVC and ICC wrapper
  10169. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10170. dynamic_linker='Win32 ld.exe'
  10171. ;;
  10172. esac
  10173. # FIXME: first we should search . and the directory the executable is in
  10174. shlibpath_var=PATH
  10175. ;;
  10176. darwin* | rhapsody*)
  10177. dynamic_linker="$host_os dyld"
  10178. version_type=darwin
  10179. need_lib_prefix=no
  10180. need_version=no
  10181. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10182. soname_spec='$libname$release$major$shared_ext'
  10183. shlibpath_overrides_runpath=yes
  10184. shlibpath_var=DYLD_LIBRARY_PATH
  10185. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10186. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10187. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10188. ;;
  10189. dgux*)
  10190. version_type=linux # correct to gnu/linux during the next big refactor
  10191. need_lib_prefix=no
  10192. need_version=no
  10193. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10194. soname_spec='$libname$release$shared_ext$major'
  10195. shlibpath_var=LD_LIBRARY_PATH
  10196. ;;
  10197. freebsd* | dragonfly* | midnightbsd*)
  10198. # DragonFly does not have aout. When/if they implement a new
  10199. # versioning mechanism, adjust this.
  10200. if test -x /usr/bin/objformat; then
  10201. objformat=`/usr/bin/objformat`
  10202. else
  10203. case $host_os in
  10204. freebsd[23].*) objformat=aout ;;
  10205. *) objformat=elf ;;
  10206. esac
  10207. fi
  10208. version_type=freebsd-$objformat
  10209. case $version_type in
  10210. freebsd-elf*)
  10211. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10212. soname_spec='$libname$release$shared_ext$major'
  10213. need_version=no
  10214. need_lib_prefix=no
  10215. ;;
  10216. freebsd-*)
  10217. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10218. need_version=yes
  10219. ;;
  10220. esac
  10221. shlibpath_var=LD_LIBRARY_PATH
  10222. case $host_os in
  10223. freebsd2.*)
  10224. shlibpath_overrides_runpath=yes
  10225. ;;
  10226. freebsd3.[01]* | freebsdelf3.[01]*)
  10227. shlibpath_overrides_runpath=yes
  10228. hardcode_into_libs=yes
  10229. ;;
  10230. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10231. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10232. shlibpath_overrides_runpath=no
  10233. hardcode_into_libs=yes
  10234. ;;
  10235. *) # from 4.6 on, and DragonFly
  10236. shlibpath_overrides_runpath=yes
  10237. hardcode_into_libs=yes
  10238. ;;
  10239. esac
  10240. ;;
  10241. haiku*)
  10242. version_type=linux # correct to gnu/linux during the next big refactor
  10243. need_lib_prefix=no
  10244. need_version=no
  10245. dynamic_linker="$host_os runtime_loader"
  10246. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10247. soname_spec='$libname$release$shared_ext$major'
  10248. shlibpath_var=LIBRARY_PATH
  10249. shlibpath_overrides_runpath=no
  10250. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10251. hardcode_into_libs=yes
  10252. ;;
  10253. hpux9* | hpux10* | hpux11*)
  10254. # Give a soname corresponding to the major version so that dld.sl refuses to
  10255. # link against other versions.
  10256. version_type=sunos
  10257. need_lib_prefix=no
  10258. need_version=no
  10259. case $host_cpu in
  10260. ia64*)
  10261. shrext_cmds='.so'
  10262. hardcode_into_libs=yes
  10263. dynamic_linker="$host_os dld.so"
  10264. shlibpath_var=LD_LIBRARY_PATH
  10265. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10266. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10267. soname_spec='$libname$release$shared_ext$major'
  10268. if test 32 = "$HPUX_IA64_MODE"; then
  10269. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10270. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10271. else
  10272. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10273. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10274. fi
  10275. ;;
  10276. hppa*64*)
  10277. shrext_cmds='.sl'
  10278. hardcode_into_libs=yes
  10279. dynamic_linker="$host_os dld.sl"
  10280. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10281. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10282. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10283. soname_spec='$libname$release$shared_ext$major'
  10284. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10285. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10286. ;;
  10287. *)
  10288. shrext_cmds='.sl'
  10289. dynamic_linker="$host_os dld.sl"
  10290. shlibpath_var=SHLIB_PATH
  10291. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10292. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10293. soname_spec='$libname$release$shared_ext$major'
  10294. ;;
  10295. esac
  10296. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10297. postinstall_cmds='chmod 555 $lib'
  10298. # or fails outright, so override atomically:
  10299. install_override_mode=555
  10300. ;;
  10301. interix[3-9]*)
  10302. version_type=linux # correct to gnu/linux during the next big refactor
  10303. need_lib_prefix=no
  10304. need_version=no
  10305. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10306. soname_spec='$libname$release$shared_ext$major'
  10307. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10308. shlibpath_var=LD_LIBRARY_PATH
  10309. shlibpath_overrides_runpath=no
  10310. hardcode_into_libs=yes
  10311. ;;
  10312. irix5* | irix6* | nonstopux*)
  10313. case $host_os in
  10314. nonstopux*) version_type=nonstopux ;;
  10315. *)
  10316. if test yes = "$lt_cv_prog_gnu_ld"; then
  10317. version_type=linux # correct to gnu/linux during the next big refactor
  10318. else
  10319. version_type=irix
  10320. fi ;;
  10321. esac
  10322. need_lib_prefix=no
  10323. need_version=no
  10324. soname_spec='$libname$release$shared_ext$major'
  10325. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10326. case $host_os in
  10327. irix5* | nonstopux*)
  10328. libsuff= shlibsuff=
  10329. ;;
  10330. *)
  10331. case $LD in # libtool.m4 will add one of these switches to LD
  10332. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10333. libsuff= shlibsuff= libmagic=32-bit;;
  10334. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10335. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10336. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10337. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10338. *) libsuff= shlibsuff= libmagic=never-match;;
  10339. esac
  10340. ;;
  10341. esac
  10342. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10343. shlibpath_overrides_runpath=no
  10344. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10345. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10346. hardcode_into_libs=yes
  10347. ;;
  10348. # No shared lib support for Linux oldld, aout, or coff.
  10349. linux*oldld* | linux*aout* | linux*coff*)
  10350. dynamic_linker=no
  10351. ;;
  10352. linux*android*)
  10353. version_type=none # Android doesn't support versioned libraries.
  10354. need_lib_prefix=no
  10355. need_version=no
  10356. library_names_spec='$libname$release$shared_ext'
  10357. soname_spec='$libname$release$shared_ext'
  10358. finish_cmds=
  10359. shlibpath_var=LD_LIBRARY_PATH
  10360. shlibpath_overrides_runpath=yes
  10361. # This implies no fast_install, which is unacceptable.
  10362. # Some rework will be needed to allow for fast_install
  10363. # before this can be enabled.
  10364. hardcode_into_libs=yes
  10365. dynamic_linker='Android linker'
  10366. # Don't embed -rpath directories since the linker doesn't support them.
  10367. hardcode_libdir_flag_spec='-L$libdir'
  10368. ;;
  10369. # This must be glibc/ELF.
  10370. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10371. version_type=linux # correct to gnu/linux during the next big refactor
  10372. need_lib_prefix=no
  10373. need_version=no
  10374. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10375. soname_spec='$libname$release$shared_ext$major'
  10376. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10377. shlibpath_var=LD_LIBRARY_PATH
  10378. shlibpath_overrides_runpath=no
  10379. # Some binutils ld are patched to set DT_RUNPATH
  10380. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10381. then :
  10382. printf %s "(cached) " >&6
  10383. else $as_nop
  10384. lt_cv_shlibpath_overrides_runpath=no
  10385. save_LDFLAGS=$LDFLAGS
  10386. save_libdir=$libdir
  10387. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10388. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10390. /* end confdefs.h. */
  10391. int
  10392. main (void)
  10393. {
  10394. ;
  10395. return 0;
  10396. }
  10397. _ACEOF
  10398. if ac_fn_c_try_link "$LINENO"
  10399. then :
  10400. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10401. then :
  10402. lt_cv_shlibpath_overrides_runpath=yes
  10403. fi
  10404. fi
  10405. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10406. conftest$ac_exeext conftest.$ac_ext
  10407. LDFLAGS=$save_LDFLAGS
  10408. libdir=$save_libdir
  10409. fi
  10410. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10411. # This implies no fast_install, which is unacceptable.
  10412. # Some rework will be needed to allow for fast_install
  10413. # before this can be enabled.
  10414. hardcode_into_libs=yes
  10415. # Add ABI-specific directories to the system library path.
  10416. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10417. # Ideally, we could use ldconfig to report *all* directores which are
  10418. # searched for libraries, however this is still not possible. Aside from not
  10419. # being certain /sbin/ldconfig is available, command
  10420. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10421. # even though it is searched at run-time. Try to do the best guess by
  10422. # appending ld.so.conf contents (and includes) to the search path.
  10423. if test -f /etc/ld.so.conf; then
  10424. 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' ' '`
  10425. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10426. fi
  10427. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10428. # powerpc, because MkLinux only supported shared libraries with the
  10429. # GNU dynamic linker. Since this was broken with cross compilers,
  10430. # most powerpc-linux boxes support dynamic linking these days and
  10431. # people can always --disable-shared, the test was removed, and we
  10432. # assume the GNU/Linux dynamic linker is in use.
  10433. dynamic_linker='GNU/Linux ld.so'
  10434. ;;
  10435. netbsd*)
  10436. version_type=sunos
  10437. need_lib_prefix=no
  10438. need_version=no
  10439. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10440. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10441. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10442. dynamic_linker='NetBSD (a.out) ld.so'
  10443. else
  10444. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10445. soname_spec='$libname$release$shared_ext$major'
  10446. dynamic_linker='NetBSD ld.elf_so'
  10447. fi
  10448. shlibpath_var=LD_LIBRARY_PATH
  10449. shlibpath_overrides_runpath=yes
  10450. hardcode_into_libs=yes
  10451. ;;
  10452. newsos6)
  10453. version_type=linux # correct to gnu/linux during the next big refactor
  10454. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10455. shlibpath_var=LD_LIBRARY_PATH
  10456. shlibpath_overrides_runpath=yes
  10457. ;;
  10458. *nto* | *qnx*)
  10459. version_type=qnx
  10460. need_lib_prefix=no
  10461. need_version=no
  10462. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10463. soname_spec='$libname$release$shared_ext$major'
  10464. shlibpath_var=LD_LIBRARY_PATH
  10465. shlibpath_overrides_runpath=no
  10466. hardcode_into_libs=yes
  10467. dynamic_linker='ldqnx.so'
  10468. ;;
  10469. openbsd* | bitrig*)
  10470. version_type=sunos
  10471. sys_lib_dlsearch_path_spec=/usr/lib
  10472. need_lib_prefix=no
  10473. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10474. need_version=no
  10475. else
  10476. need_version=yes
  10477. fi
  10478. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10479. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10480. shlibpath_var=LD_LIBRARY_PATH
  10481. shlibpath_overrides_runpath=yes
  10482. ;;
  10483. os2*)
  10484. libname_spec='$name'
  10485. shrext_cmds=.dll
  10486. need_lib_prefix=no
  10487. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10488. # SDL customization: removed versioning support.
  10489. # version_type=windows
  10490. # need_version=no
  10491. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10492. # v=$($ECHO $release$versuffix | tr -d .-);
  10493. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10494. # $ECHO $n$v`$shared_ext'
  10495. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10496. library_names_spec='${libname}_dll.$libext'
  10497. dynamic_linker='OS/2 ld.exe'
  10498. shlibpath_var=BEGINLIBPATH
  10499. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10500. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10501. postinstall_cmds='base_file=`basename \$file`~
  10502. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10503. dldir=$destdir/`dirname \$dlpath`~
  10504. test -d \$dldir || mkdir -p \$dldir~
  10505. $install_prog $dir/$dlname \$dldir/$dlname~
  10506. chmod a+x \$dldir/$dlname~
  10507. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10508. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10509. fi'
  10510. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10511. dlpath=$dir/\$dldll~
  10512. $RM \$dlpath'
  10513. ;;
  10514. osf3* | osf4* | osf5*)
  10515. version_type=osf
  10516. need_lib_prefix=no
  10517. need_version=no
  10518. soname_spec='$libname$release$shared_ext$major'
  10519. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10520. shlibpath_var=LD_LIBRARY_PATH
  10521. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10522. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10523. ;;
  10524. rdos*)
  10525. dynamic_linker=no
  10526. ;;
  10527. solaris*)
  10528. version_type=linux # correct to gnu/linux during the next big refactor
  10529. need_lib_prefix=no
  10530. need_version=no
  10531. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10532. soname_spec='$libname$release$shared_ext$major'
  10533. shlibpath_var=LD_LIBRARY_PATH
  10534. shlibpath_overrides_runpath=yes
  10535. hardcode_into_libs=yes
  10536. # ldd complains unless libraries are executable
  10537. postinstall_cmds='chmod +x $lib'
  10538. ;;
  10539. sunos4*)
  10540. version_type=sunos
  10541. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10542. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10543. shlibpath_var=LD_LIBRARY_PATH
  10544. shlibpath_overrides_runpath=yes
  10545. if test yes = "$with_gnu_ld"; then
  10546. need_lib_prefix=no
  10547. fi
  10548. need_version=yes
  10549. ;;
  10550. sysv4 | sysv4.3*)
  10551. version_type=linux # correct to gnu/linux during the next big refactor
  10552. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10553. soname_spec='$libname$release$shared_ext$major'
  10554. shlibpath_var=LD_LIBRARY_PATH
  10555. case $host_vendor in
  10556. sni)
  10557. shlibpath_overrides_runpath=no
  10558. need_lib_prefix=no
  10559. runpath_var=LD_RUN_PATH
  10560. ;;
  10561. siemens)
  10562. need_lib_prefix=no
  10563. ;;
  10564. motorola)
  10565. need_lib_prefix=no
  10566. need_version=no
  10567. shlibpath_overrides_runpath=no
  10568. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10569. ;;
  10570. esac
  10571. ;;
  10572. sysv4*MP*)
  10573. if test -d /usr/nec; then
  10574. version_type=linux # correct to gnu/linux during the next big refactor
  10575. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10576. soname_spec='$libname$shared_ext.$major'
  10577. shlibpath_var=LD_LIBRARY_PATH
  10578. fi
  10579. ;;
  10580. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10581. version_type=sco
  10582. need_lib_prefix=no
  10583. need_version=no
  10584. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10585. soname_spec='$libname$release$shared_ext$major'
  10586. shlibpath_var=LD_LIBRARY_PATH
  10587. shlibpath_overrides_runpath=yes
  10588. hardcode_into_libs=yes
  10589. if test yes = "$with_gnu_ld"; then
  10590. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10591. else
  10592. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10593. case $host_os in
  10594. sco3.2v5*)
  10595. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10596. ;;
  10597. esac
  10598. fi
  10599. sys_lib_dlsearch_path_spec='/usr/lib'
  10600. ;;
  10601. tpf*)
  10602. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10603. version_type=linux # correct to gnu/linux during the next big refactor
  10604. need_lib_prefix=no
  10605. need_version=no
  10606. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10607. shlibpath_var=LD_LIBRARY_PATH
  10608. shlibpath_overrides_runpath=no
  10609. hardcode_into_libs=yes
  10610. ;;
  10611. uts4*)
  10612. version_type=linux # correct to gnu/linux during the next big refactor
  10613. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10614. soname_spec='$libname$release$shared_ext$major'
  10615. shlibpath_var=LD_LIBRARY_PATH
  10616. ;;
  10617. *)
  10618. dynamic_linker=no
  10619. ;;
  10620. esac
  10621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10622. printf "%s\n" "$dynamic_linker" >&6; }
  10623. test no = "$dynamic_linker" && can_build_shared=no
  10624. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10625. if test yes = "$GCC"; then
  10626. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10627. fi
  10628. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10629. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10630. fi
  10631. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10632. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10633. fi
  10634. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10635. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10636. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10637. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10638. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10639. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10641. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10642. hardcode_action=
  10643. if test -n "$hardcode_libdir_flag_spec" ||
  10644. test -n "$runpath_var" ||
  10645. test yes = "$hardcode_automatic"; then
  10646. # We can hardcode non-existent directories.
  10647. if test no != "$hardcode_direct" &&
  10648. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10649. # have to relink, otherwise we might link with an installed library
  10650. # when we should be linking with a yet-to-be-installed one
  10651. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10652. test no != "$hardcode_minus_L"; then
  10653. # Linking always hardcodes the temporary library directory.
  10654. hardcode_action=relink
  10655. else
  10656. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10657. hardcode_action=immediate
  10658. fi
  10659. else
  10660. # We cannot hardcode anything, or else we can only hardcode existing
  10661. # directories.
  10662. hardcode_action=unsupported
  10663. fi
  10664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10665. printf "%s\n" "$hardcode_action" >&6; }
  10666. if test relink = "$hardcode_action" ||
  10667. test yes = "$inherit_rpath"; then
  10668. # Fast installation is not supported
  10669. enable_fast_install=no
  10670. elif test yes = "$shlibpath_overrides_runpath" ||
  10671. test no = "$enable_shared"; then
  10672. # Fast installation is not necessary
  10673. enable_fast_install=needless
  10674. fi
  10675. if test yes != "$enable_dlopen"; then
  10676. enable_dlopen=unknown
  10677. enable_dlopen_self=unknown
  10678. enable_dlopen_self_static=unknown
  10679. else
  10680. lt_cv_dlopen=no
  10681. lt_cv_dlopen_libs=
  10682. case $host_os in
  10683. beos*)
  10684. lt_cv_dlopen=load_add_on
  10685. lt_cv_dlopen_libs=
  10686. lt_cv_dlopen_self=yes
  10687. ;;
  10688. mingw* | windows* | pw32* | cegcc*)
  10689. lt_cv_dlopen=LoadLibrary
  10690. lt_cv_dlopen_libs=
  10691. ;;
  10692. cygwin*)
  10693. lt_cv_dlopen=dlopen
  10694. lt_cv_dlopen_libs=
  10695. ;;
  10696. darwin*)
  10697. # if libdl is installed we need to link against it
  10698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10699. printf %s "checking for dlopen in -ldl... " >&6; }
  10700. if test ${ac_cv_lib_dl_dlopen+y}
  10701. then :
  10702. printf %s "(cached) " >&6
  10703. else $as_nop
  10704. ac_check_lib_save_LIBS=$LIBS
  10705. LIBS="-ldl $LIBS"
  10706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10707. /* end confdefs.h. */
  10708. /* Override any GCC internal prototype to avoid an error.
  10709. Use char because int might match the return type of a GCC
  10710. builtin and then its argument prototype would still apply. */
  10711. char dlopen ();
  10712. int
  10713. main (void)
  10714. {
  10715. return dlopen ();
  10716. ;
  10717. return 0;
  10718. }
  10719. _ACEOF
  10720. if ac_fn_c_try_link "$LINENO"
  10721. then :
  10722. ac_cv_lib_dl_dlopen=yes
  10723. else $as_nop
  10724. ac_cv_lib_dl_dlopen=no
  10725. fi
  10726. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10727. conftest$ac_exeext conftest.$ac_ext
  10728. LIBS=$ac_check_lib_save_LIBS
  10729. fi
  10730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10731. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10732. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10733. then :
  10734. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10735. else $as_nop
  10736. lt_cv_dlopen=dyld
  10737. lt_cv_dlopen_libs=
  10738. lt_cv_dlopen_self=yes
  10739. fi
  10740. ;;
  10741. tpf*)
  10742. # Don't try to run any link tests for TPF. We know it's impossible
  10743. # because TPF is a cross-compiler, and we know how we open DSOs.
  10744. lt_cv_dlopen=dlopen
  10745. lt_cv_dlopen_libs=
  10746. lt_cv_dlopen_self=no
  10747. ;;
  10748. *)
  10749. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10750. if test "x$ac_cv_func_shl_load" = xyes
  10751. then :
  10752. lt_cv_dlopen=shl_load
  10753. else $as_nop
  10754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10755. printf %s "checking for shl_load in -ldld... " >&6; }
  10756. if test ${ac_cv_lib_dld_shl_load+y}
  10757. then :
  10758. printf %s "(cached) " >&6
  10759. else $as_nop
  10760. ac_check_lib_save_LIBS=$LIBS
  10761. LIBS="-ldld $LIBS"
  10762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10763. /* end confdefs.h. */
  10764. /* Override any GCC internal prototype to avoid an error.
  10765. Use char because int might match the return type of a GCC
  10766. builtin and then its argument prototype would still apply. */
  10767. char shl_load ();
  10768. int
  10769. main (void)
  10770. {
  10771. return shl_load ();
  10772. ;
  10773. return 0;
  10774. }
  10775. _ACEOF
  10776. if ac_fn_c_try_link "$LINENO"
  10777. then :
  10778. ac_cv_lib_dld_shl_load=yes
  10779. else $as_nop
  10780. ac_cv_lib_dld_shl_load=no
  10781. fi
  10782. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10783. conftest$ac_exeext conftest.$ac_ext
  10784. LIBS=$ac_check_lib_save_LIBS
  10785. fi
  10786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10787. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10788. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10789. then :
  10790. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10791. else $as_nop
  10792. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10793. if test "x$ac_cv_func_dlopen" = xyes
  10794. then :
  10795. lt_cv_dlopen=dlopen
  10796. else $as_nop
  10797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10798. printf %s "checking for dlopen in -ldl... " >&6; }
  10799. if test ${ac_cv_lib_dl_dlopen+y}
  10800. then :
  10801. printf %s "(cached) " >&6
  10802. else $as_nop
  10803. ac_check_lib_save_LIBS=$LIBS
  10804. LIBS="-ldl $LIBS"
  10805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10806. /* end confdefs.h. */
  10807. /* Override any GCC internal prototype to avoid an error.
  10808. Use char because int might match the return type of a GCC
  10809. builtin and then its argument prototype would still apply. */
  10810. char dlopen ();
  10811. int
  10812. main (void)
  10813. {
  10814. return dlopen ();
  10815. ;
  10816. return 0;
  10817. }
  10818. _ACEOF
  10819. if ac_fn_c_try_link "$LINENO"
  10820. then :
  10821. ac_cv_lib_dl_dlopen=yes
  10822. else $as_nop
  10823. ac_cv_lib_dl_dlopen=no
  10824. fi
  10825. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10826. conftest$ac_exeext conftest.$ac_ext
  10827. LIBS=$ac_check_lib_save_LIBS
  10828. fi
  10829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10830. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10831. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10832. then :
  10833. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10834. else $as_nop
  10835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10836. printf %s "checking for dlopen in -lsvld... " >&6; }
  10837. if test ${ac_cv_lib_svld_dlopen+y}
  10838. then :
  10839. printf %s "(cached) " >&6
  10840. else $as_nop
  10841. ac_check_lib_save_LIBS=$LIBS
  10842. LIBS="-lsvld $LIBS"
  10843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10844. /* end confdefs.h. */
  10845. /* Override any GCC internal prototype to avoid an error.
  10846. Use char because int might match the return type of a GCC
  10847. builtin and then its argument prototype would still apply. */
  10848. char dlopen ();
  10849. int
  10850. main (void)
  10851. {
  10852. return dlopen ();
  10853. ;
  10854. return 0;
  10855. }
  10856. _ACEOF
  10857. if ac_fn_c_try_link "$LINENO"
  10858. then :
  10859. ac_cv_lib_svld_dlopen=yes
  10860. else $as_nop
  10861. ac_cv_lib_svld_dlopen=no
  10862. fi
  10863. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10864. conftest$ac_exeext conftest.$ac_ext
  10865. LIBS=$ac_check_lib_save_LIBS
  10866. fi
  10867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10868. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10869. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10870. then :
  10871. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10872. else $as_nop
  10873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10874. printf %s "checking for dld_link in -ldld... " >&6; }
  10875. if test ${ac_cv_lib_dld_dld_link+y}
  10876. then :
  10877. printf %s "(cached) " >&6
  10878. else $as_nop
  10879. ac_check_lib_save_LIBS=$LIBS
  10880. LIBS="-ldld $LIBS"
  10881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10882. /* end confdefs.h. */
  10883. /* Override any GCC internal prototype to avoid an error.
  10884. Use char because int might match the return type of a GCC
  10885. builtin and then its argument prototype would still apply. */
  10886. char dld_link ();
  10887. int
  10888. main (void)
  10889. {
  10890. return dld_link ();
  10891. ;
  10892. return 0;
  10893. }
  10894. _ACEOF
  10895. if ac_fn_c_try_link "$LINENO"
  10896. then :
  10897. ac_cv_lib_dld_dld_link=yes
  10898. else $as_nop
  10899. ac_cv_lib_dld_dld_link=no
  10900. fi
  10901. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10902. conftest$ac_exeext conftest.$ac_ext
  10903. LIBS=$ac_check_lib_save_LIBS
  10904. fi
  10905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10906. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10907. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10908. then :
  10909. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10910. fi
  10911. fi
  10912. fi
  10913. fi
  10914. fi
  10915. fi
  10916. ;;
  10917. esac
  10918. if test no = "$lt_cv_dlopen"; then
  10919. enable_dlopen=no
  10920. else
  10921. enable_dlopen=yes
  10922. fi
  10923. case $lt_cv_dlopen in
  10924. dlopen)
  10925. save_CPPFLAGS=$CPPFLAGS
  10926. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10927. save_LDFLAGS=$LDFLAGS
  10928. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10929. save_LIBS=$LIBS
  10930. LIBS="$lt_cv_dlopen_libs $LIBS"
  10931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10932. printf %s "checking whether a program can dlopen itself... " >&6; }
  10933. if test ${lt_cv_dlopen_self+y}
  10934. then :
  10935. printf %s "(cached) " >&6
  10936. else $as_nop
  10937. if test yes = "$cross_compiling"; then :
  10938. lt_cv_dlopen_self=cross
  10939. else
  10940. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10941. lt_status=$lt_dlunknown
  10942. cat > conftest.$ac_ext <<_LT_EOF
  10943. #line $LINENO "configure"
  10944. #include "confdefs.h"
  10945. #if HAVE_DLFCN_H
  10946. #include <dlfcn.h>
  10947. #endif
  10948. #include <stdio.h>
  10949. #ifdef RTLD_GLOBAL
  10950. # define LT_DLGLOBAL RTLD_GLOBAL
  10951. #else
  10952. # ifdef DL_GLOBAL
  10953. # define LT_DLGLOBAL DL_GLOBAL
  10954. # else
  10955. # define LT_DLGLOBAL 0
  10956. # endif
  10957. #endif
  10958. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10959. find out it does not work in some platform. */
  10960. #ifndef LT_DLLAZY_OR_NOW
  10961. # ifdef RTLD_LAZY
  10962. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10963. # else
  10964. # ifdef DL_LAZY
  10965. # define LT_DLLAZY_OR_NOW DL_LAZY
  10966. # else
  10967. # ifdef RTLD_NOW
  10968. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10969. # else
  10970. # ifdef DL_NOW
  10971. # define LT_DLLAZY_OR_NOW DL_NOW
  10972. # else
  10973. # define LT_DLLAZY_OR_NOW 0
  10974. # endif
  10975. # endif
  10976. # endif
  10977. # endif
  10978. #endif
  10979. /* When -fvisibility=hidden is used, assume the code has been annotated
  10980. correspondingly for the symbols needed. */
  10981. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10982. int fnord (void) __attribute__((visibility("default")));
  10983. #endif
  10984. int fnord (void) { return 42; }
  10985. int main (void)
  10986. {
  10987. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10988. int status = $lt_dlunknown;
  10989. if (self)
  10990. {
  10991. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10992. else
  10993. {
  10994. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10995. else puts (dlerror ());
  10996. }
  10997. /* dlclose (self); */
  10998. }
  10999. else
  11000. puts (dlerror ());
  11001. return status;
  11002. }
  11003. _LT_EOF
  11004. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11005. (eval $ac_link) 2>&5
  11006. ac_status=$?
  11007. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11008. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11009. (./conftest; exit; ) >&5 2>/dev/null
  11010. lt_status=$?
  11011. case x$lt_status in
  11012. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11013. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11014. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11015. esac
  11016. else :
  11017. # compilation failed
  11018. lt_cv_dlopen_self=no
  11019. fi
  11020. fi
  11021. rm -fr conftest*
  11022. fi
  11023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11024. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11025. if test yes = "$lt_cv_dlopen_self"; then
  11026. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11028. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11029. if test ${lt_cv_dlopen_self_static+y}
  11030. then :
  11031. printf %s "(cached) " >&6
  11032. else $as_nop
  11033. if test yes = "$cross_compiling"; then :
  11034. lt_cv_dlopen_self_static=cross
  11035. else
  11036. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11037. lt_status=$lt_dlunknown
  11038. cat > conftest.$ac_ext <<_LT_EOF
  11039. #line $LINENO "configure"
  11040. #include "confdefs.h"
  11041. #if HAVE_DLFCN_H
  11042. #include <dlfcn.h>
  11043. #endif
  11044. #include <stdio.h>
  11045. #ifdef RTLD_GLOBAL
  11046. # define LT_DLGLOBAL RTLD_GLOBAL
  11047. #else
  11048. # ifdef DL_GLOBAL
  11049. # define LT_DLGLOBAL DL_GLOBAL
  11050. # else
  11051. # define LT_DLGLOBAL 0
  11052. # endif
  11053. #endif
  11054. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11055. find out it does not work in some platform. */
  11056. #ifndef LT_DLLAZY_OR_NOW
  11057. # ifdef RTLD_LAZY
  11058. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11059. # else
  11060. # ifdef DL_LAZY
  11061. # define LT_DLLAZY_OR_NOW DL_LAZY
  11062. # else
  11063. # ifdef RTLD_NOW
  11064. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11065. # else
  11066. # ifdef DL_NOW
  11067. # define LT_DLLAZY_OR_NOW DL_NOW
  11068. # else
  11069. # define LT_DLLAZY_OR_NOW 0
  11070. # endif
  11071. # endif
  11072. # endif
  11073. # endif
  11074. #endif
  11075. /* When -fvisibility=hidden is used, assume the code has been annotated
  11076. correspondingly for the symbols needed. */
  11077. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11078. int fnord (void) __attribute__((visibility("default")));
  11079. #endif
  11080. int fnord (void) { return 42; }
  11081. int main (void)
  11082. {
  11083. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11084. int status = $lt_dlunknown;
  11085. if (self)
  11086. {
  11087. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11088. else
  11089. {
  11090. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11091. else puts (dlerror ());
  11092. }
  11093. /* dlclose (self); */
  11094. }
  11095. else
  11096. puts (dlerror ());
  11097. return status;
  11098. }
  11099. _LT_EOF
  11100. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11101. (eval $ac_link) 2>&5
  11102. ac_status=$?
  11103. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11104. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11105. (./conftest; exit; ) >&5 2>/dev/null
  11106. lt_status=$?
  11107. case x$lt_status in
  11108. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11109. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11110. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11111. esac
  11112. else :
  11113. # compilation failed
  11114. lt_cv_dlopen_self_static=no
  11115. fi
  11116. fi
  11117. rm -fr conftest*
  11118. fi
  11119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11120. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11121. fi
  11122. CPPFLAGS=$save_CPPFLAGS
  11123. LDFLAGS=$save_LDFLAGS
  11124. LIBS=$save_LIBS
  11125. ;;
  11126. esac
  11127. case $lt_cv_dlopen_self in
  11128. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11129. *) enable_dlopen_self=unknown ;;
  11130. esac
  11131. case $lt_cv_dlopen_self_static in
  11132. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11133. *) enable_dlopen_self_static=unknown ;;
  11134. esac
  11135. fi
  11136. striplib=
  11137. old_striplib=
  11138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11139. printf %s "checking whether stripping libraries is possible... " >&6; }
  11140. if test -z "$STRIP"; then
  11141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11142. printf "%s\n" "no" >&6; }
  11143. else
  11144. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11145. old_striplib="$STRIP --strip-debug"
  11146. striplib="$STRIP --strip-unneeded"
  11147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11148. printf "%s\n" "yes" >&6; }
  11149. else
  11150. case $host_os in
  11151. darwin*)
  11152. # FIXME - insert some real tests, host_os isn't really good enough
  11153. striplib="$STRIP -x"
  11154. old_striplib="$STRIP -S"
  11155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11156. printf "%s\n" "yes" >&6; }
  11157. ;;
  11158. freebsd*)
  11159. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11160. old_striplib="$STRIP --strip-debug"
  11161. striplib="$STRIP --strip-unneeded"
  11162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11163. printf "%s\n" "yes" >&6; }
  11164. else
  11165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11166. printf "%s\n" "no" >&6; }
  11167. fi
  11168. ;;
  11169. *)
  11170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11171. printf "%s\n" "no" >&6; }
  11172. ;;
  11173. esac
  11174. fi
  11175. fi
  11176. # Report what library types will actually be built
  11177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11178. printf %s "checking if libtool supports shared libraries... " >&6; }
  11179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11180. printf "%s\n" "$can_build_shared" >&6; }
  11181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11182. printf %s "checking whether to build shared libraries... " >&6; }
  11183. test no = "$can_build_shared" && enable_shared=no
  11184. # On AIX, shared libraries and static libraries use the same namespace, and
  11185. # are all built from PIC.
  11186. case $host_os in
  11187. aix3*)
  11188. test yes = "$enable_shared" && enable_static=no
  11189. if test -n "$RANLIB"; then
  11190. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11191. postinstall_cmds='$RANLIB $lib'
  11192. fi
  11193. ;;
  11194. aix[4-9]*)
  11195. if test ia64 != "$host_cpu"; then
  11196. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11197. yes,aix,yes) ;; # shared object as lib.so file only
  11198. yes,svr4,*) ;; # shared object as lib.so archive member only
  11199. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11200. esac
  11201. fi
  11202. ;;
  11203. esac
  11204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11205. printf "%s\n" "$enable_shared" >&6; }
  11206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11207. printf %s "checking whether to build static libraries... " >&6; }
  11208. # Make sure either enable_shared or enable_static is yes.
  11209. test yes = "$enable_shared" || enable_static=yes
  11210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11211. printf "%s\n" "$enable_static" >&6; }
  11212. fi
  11213. ac_ext=c
  11214. ac_cpp='$CPP $CPPFLAGS'
  11215. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11216. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11217. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11218. CC=$lt_save_CC
  11219. ac_config_commands="$ac_config_commands libtool"
  11220. # Only expand once:
  11221. if test -n "$ac_tool_prefix"; then
  11222. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11223. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11225. printf %s "checking for $ac_word... " >&6; }
  11226. if test ${ac_cv_prog_RC+y}
  11227. then :
  11228. printf %s "(cached) " >&6
  11229. else $as_nop
  11230. if test -n "$RC"; then
  11231. ac_cv_prog_RC="$RC" # Let the user override the test.
  11232. else
  11233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11234. for as_dir in $PATH
  11235. do
  11236. IFS=$as_save_IFS
  11237. case $as_dir in #(((
  11238. '') as_dir=./ ;;
  11239. */) ;;
  11240. *) as_dir=$as_dir/ ;;
  11241. esac
  11242. for ac_exec_ext in '' $ac_executable_extensions; do
  11243. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11244. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11245. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11246. break 2
  11247. fi
  11248. done
  11249. done
  11250. IFS=$as_save_IFS
  11251. fi
  11252. fi
  11253. RC=$ac_cv_prog_RC
  11254. if test -n "$RC"; then
  11255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11256. printf "%s\n" "$RC" >&6; }
  11257. else
  11258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11259. printf "%s\n" "no" >&6; }
  11260. fi
  11261. fi
  11262. if test -z "$ac_cv_prog_RC"; then
  11263. ac_ct_RC=$RC
  11264. # Extract the first word of "windres", so it can be a program name with args.
  11265. set dummy windres; ac_word=$2
  11266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11267. printf %s "checking for $ac_word... " >&6; }
  11268. if test ${ac_cv_prog_ac_ct_RC+y}
  11269. then :
  11270. printf %s "(cached) " >&6
  11271. else $as_nop
  11272. if test -n "$ac_ct_RC"; then
  11273. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11274. else
  11275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11276. for as_dir in $PATH
  11277. do
  11278. IFS=$as_save_IFS
  11279. case $as_dir in #(((
  11280. '') as_dir=./ ;;
  11281. */) ;;
  11282. *) as_dir=$as_dir/ ;;
  11283. esac
  11284. for ac_exec_ext in '' $ac_executable_extensions; do
  11285. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11286. ac_cv_prog_ac_ct_RC="windres"
  11287. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11288. break 2
  11289. fi
  11290. done
  11291. done
  11292. IFS=$as_save_IFS
  11293. fi
  11294. fi
  11295. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11296. if test -n "$ac_ct_RC"; then
  11297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11298. printf "%s\n" "$ac_ct_RC" >&6; }
  11299. else
  11300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11301. printf "%s\n" "no" >&6; }
  11302. fi
  11303. if test "x$ac_ct_RC" = x; then
  11304. RC=""
  11305. else
  11306. case $cross_compiling:$ac_tool_warned in
  11307. yes:)
  11308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11309. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11310. ac_tool_warned=yes ;;
  11311. esac
  11312. RC=$ac_ct_RC
  11313. fi
  11314. else
  11315. RC="$ac_cv_prog_RC"
  11316. fi
  11317. # Source file extension for RC test sources.
  11318. ac_ext=rc
  11319. # Object file extension for compiled RC test sources.
  11320. objext=o
  11321. objext_RC=$objext
  11322. # Code to be used in simple compile tests
  11323. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11324. # Code to be used in simple link tests
  11325. lt_simple_link_test_code=$lt_simple_compile_test_code
  11326. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11327. # If no C compiler was specified, use CC.
  11328. LTCC=${LTCC-"$CC"}
  11329. # If no C compiler flags were specified, use CFLAGS.
  11330. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11331. # Allow CC to be a program name with arguments.
  11332. compiler=$CC
  11333. # save warnings/boilerplate of simple test code
  11334. ac_outfile=conftest.$ac_objext
  11335. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11336. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11337. _lt_compiler_boilerplate=`cat conftest.err`
  11338. $RM conftest*
  11339. ac_outfile=conftest.$ac_objext
  11340. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11341. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11342. _lt_linker_boilerplate=`cat conftest.err`
  11343. $RM -r conftest*
  11344. # Allow CC to be a program name with arguments.
  11345. lt_save_CC=$CC
  11346. lt_save_CFLAGS=$CFLAGS
  11347. lt_save_GCC=$GCC
  11348. GCC=
  11349. CC=${RC-"windres"}
  11350. CFLAGS=
  11351. compiler=$CC
  11352. compiler_RC=$CC
  11353. func_cc_basename $compiler
  11354. cc_basename=$func_cc_basename_result
  11355. lt_cv_prog_compiler_c_o_RC=yes
  11356. if test -n "$compiler"; then
  11357. :
  11358. fi
  11359. GCC=$lt_save_GCC
  11360. ac_ext=c
  11361. ac_cpp='$CPP $CPPFLAGS'
  11362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11365. CC=$lt_save_CC
  11366. CFLAGS=$lt_save_CFLAGS
  11367. # For historical reasons, the library name redundantly includes the major
  11368. # version twice: libSDL2-2.0.so.0.
  11369. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11370. LT_RELEASE=2.0
  11371. # Increment this if there is an incompatible change - but if that happens,
  11372. # we should rename the library from SDL2 to SDL3, at which point this would
  11373. # reset to 0 anyway.
  11374. LT_MAJOR=0
  11375. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11376. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11377. LT_REVISION=$SDL_INTERFACE_AGE
  11378. for ac_prog in gawk mawk nawk awk
  11379. do
  11380. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11381. set dummy $ac_prog; ac_word=$2
  11382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11383. printf %s "checking for $ac_word... " >&6; }
  11384. if test ${ac_cv_prog_AWK+y}
  11385. then :
  11386. printf %s "(cached) " >&6
  11387. else $as_nop
  11388. if test -n "$AWK"; then
  11389. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11390. else
  11391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11392. for as_dir in $PATH
  11393. do
  11394. IFS=$as_save_IFS
  11395. case $as_dir in #(((
  11396. '') as_dir=./ ;;
  11397. */) ;;
  11398. *) as_dir=$as_dir/ ;;
  11399. esac
  11400. for ac_exec_ext in '' $ac_executable_extensions; do
  11401. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11402. ac_cv_prog_AWK="$ac_prog"
  11403. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11404. break 2
  11405. fi
  11406. done
  11407. done
  11408. IFS=$as_save_IFS
  11409. fi
  11410. fi
  11411. AWK=$ac_cv_prog_AWK
  11412. if test -n "$AWK"; then
  11413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11414. printf "%s\n" "$AWK" >&6; }
  11415. else
  11416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11417. printf "%s\n" "no" >&6; }
  11418. fi
  11419. test -n "$AWK" && break
  11420. done
  11421. ac_ext=c
  11422. ac_cpp='$CPP $CPPFLAGS'
  11423. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11424. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11425. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11426. if test -n "$ac_tool_prefix"; then
  11427. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11428. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11430. printf %s "checking for $ac_word... " >&6; }
  11431. if test ${ac_cv_prog_CC+y}
  11432. then :
  11433. printf %s "(cached) " >&6
  11434. else $as_nop
  11435. if test -n "$CC"; then
  11436. ac_cv_prog_CC="$CC" # Let the user override the test.
  11437. else
  11438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11439. for as_dir in $PATH
  11440. do
  11441. IFS=$as_save_IFS
  11442. case $as_dir in #(((
  11443. '') as_dir=./ ;;
  11444. */) ;;
  11445. *) as_dir=$as_dir/ ;;
  11446. esac
  11447. for ac_exec_ext in '' $ac_executable_extensions; do
  11448. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11449. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11451. break 2
  11452. fi
  11453. done
  11454. done
  11455. IFS=$as_save_IFS
  11456. fi
  11457. fi
  11458. CC=$ac_cv_prog_CC
  11459. if test -n "$CC"; then
  11460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11461. printf "%s\n" "$CC" >&6; }
  11462. else
  11463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11464. printf "%s\n" "no" >&6; }
  11465. fi
  11466. fi
  11467. if test -z "$ac_cv_prog_CC"; then
  11468. ac_ct_CC=$CC
  11469. # Extract the first word of "gcc", so it can be a program name with args.
  11470. set dummy gcc; ac_word=$2
  11471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11472. printf %s "checking for $ac_word... " >&6; }
  11473. if test ${ac_cv_prog_ac_ct_CC+y}
  11474. then :
  11475. printf %s "(cached) " >&6
  11476. else $as_nop
  11477. if test -n "$ac_ct_CC"; then
  11478. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11479. else
  11480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11481. for as_dir in $PATH
  11482. do
  11483. IFS=$as_save_IFS
  11484. case $as_dir in #(((
  11485. '') as_dir=./ ;;
  11486. */) ;;
  11487. *) as_dir=$as_dir/ ;;
  11488. esac
  11489. for ac_exec_ext in '' $ac_executable_extensions; do
  11490. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11491. ac_cv_prog_ac_ct_CC="gcc"
  11492. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11493. break 2
  11494. fi
  11495. done
  11496. done
  11497. IFS=$as_save_IFS
  11498. fi
  11499. fi
  11500. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11501. if test -n "$ac_ct_CC"; then
  11502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11503. printf "%s\n" "$ac_ct_CC" >&6; }
  11504. else
  11505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11506. printf "%s\n" "no" >&6; }
  11507. fi
  11508. if test "x$ac_ct_CC" = x; then
  11509. CC=""
  11510. else
  11511. case $cross_compiling:$ac_tool_warned in
  11512. yes:)
  11513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11514. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11515. ac_tool_warned=yes ;;
  11516. esac
  11517. CC=$ac_ct_CC
  11518. fi
  11519. else
  11520. CC="$ac_cv_prog_CC"
  11521. fi
  11522. if test -z "$CC"; then
  11523. if test -n "$ac_tool_prefix"; then
  11524. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11525. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11527. printf %s "checking for $ac_word... " >&6; }
  11528. if test ${ac_cv_prog_CC+y}
  11529. then :
  11530. printf %s "(cached) " >&6
  11531. else $as_nop
  11532. if test -n "$CC"; then
  11533. ac_cv_prog_CC="$CC" # Let the user override the test.
  11534. else
  11535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11536. for as_dir in $PATH
  11537. do
  11538. IFS=$as_save_IFS
  11539. case $as_dir in #(((
  11540. '') as_dir=./ ;;
  11541. */) ;;
  11542. *) as_dir=$as_dir/ ;;
  11543. esac
  11544. for ac_exec_ext in '' $ac_executable_extensions; do
  11545. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11546. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11547. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11548. break 2
  11549. fi
  11550. done
  11551. done
  11552. IFS=$as_save_IFS
  11553. fi
  11554. fi
  11555. CC=$ac_cv_prog_CC
  11556. if test -n "$CC"; then
  11557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11558. printf "%s\n" "$CC" >&6; }
  11559. else
  11560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11561. printf "%s\n" "no" >&6; }
  11562. fi
  11563. fi
  11564. fi
  11565. if test -z "$CC"; then
  11566. # Extract the first word of "cc", so it can be a program name with args.
  11567. set dummy cc; ac_word=$2
  11568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11569. printf %s "checking for $ac_word... " >&6; }
  11570. if test ${ac_cv_prog_CC+y}
  11571. then :
  11572. printf %s "(cached) " >&6
  11573. else $as_nop
  11574. if test -n "$CC"; then
  11575. ac_cv_prog_CC="$CC" # Let the user override the test.
  11576. else
  11577. ac_prog_rejected=no
  11578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11579. for as_dir in $PATH
  11580. do
  11581. IFS=$as_save_IFS
  11582. case $as_dir in #(((
  11583. '') as_dir=./ ;;
  11584. */) ;;
  11585. *) as_dir=$as_dir/ ;;
  11586. esac
  11587. for ac_exec_ext in '' $ac_executable_extensions; do
  11588. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11589. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11590. ac_prog_rejected=yes
  11591. continue
  11592. fi
  11593. ac_cv_prog_CC="cc"
  11594. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11595. break 2
  11596. fi
  11597. done
  11598. done
  11599. IFS=$as_save_IFS
  11600. if test $ac_prog_rejected = yes; then
  11601. # We found a bogon in the path, so make sure we never use it.
  11602. set dummy $ac_cv_prog_CC
  11603. shift
  11604. if test $# != 0; then
  11605. # We chose a different compiler from the bogus one.
  11606. # However, it has the same basename, so the bogon will be chosen
  11607. # first if we set CC to just the basename; use the full file name.
  11608. shift
  11609. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11610. fi
  11611. fi
  11612. fi
  11613. fi
  11614. CC=$ac_cv_prog_CC
  11615. if test -n "$CC"; then
  11616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11617. printf "%s\n" "$CC" >&6; }
  11618. else
  11619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11620. printf "%s\n" "no" >&6; }
  11621. fi
  11622. fi
  11623. if test -z "$CC"; then
  11624. if test -n "$ac_tool_prefix"; then
  11625. for ac_prog in cl.exe
  11626. do
  11627. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11628. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11630. printf %s "checking for $ac_word... " >&6; }
  11631. if test ${ac_cv_prog_CC+y}
  11632. then :
  11633. printf %s "(cached) " >&6
  11634. else $as_nop
  11635. if test -n "$CC"; then
  11636. ac_cv_prog_CC="$CC" # Let the user override the test.
  11637. else
  11638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11639. for as_dir in $PATH
  11640. do
  11641. IFS=$as_save_IFS
  11642. case $as_dir in #(((
  11643. '') as_dir=./ ;;
  11644. */) ;;
  11645. *) as_dir=$as_dir/ ;;
  11646. esac
  11647. for ac_exec_ext in '' $ac_executable_extensions; do
  11648. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11649. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11650. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11651. break 2
  11652. fi
  11653. done
  11654. done
  11655. IFS=$as_save_IFS
  11656. fi
  11657. fi
  11658. CC=$ac_cv_prog_CC
  11659. if test -n "$CC"; then
  11660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11661. printf "%s\n" "$CC" >&6; }
  11662. else
  11663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11664. printf "%s\n" "no" >&6; }
  11665. fi
  11666. test -n "$CC" && break
  11667. done
  11668. fi
  11669. if test -z "$CC"; then
  11670. ac_ct_CC=$CC
  11671. for ac_prog in cl.exe
  11672. do
  11673. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11674. set dummy $ac_prog; ac_word=$2
  11675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11676. printf %s "checking for $ac_word... " >&6; }
  11677. if test ${ac_cv_prog_ac_ct_CC+y}
  11678. then :
  11679. printf %s "(cached) " >&6
  11680. else $as_nop
  11681. if test -n "$ac_ct_CC"; then
  11682. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11683. else
  11684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11685. for as_dir in $PATH
  11686. do
  11687. IFS=$as_save_IFS
  11688. case $as_dir in #(((
  11689. '') as_dir=./ ;;
  11690. */) ;;
  11691. *) as_dir=$as_dir/ ;;
  11692. esac
  11693. for ac_exec_ext in '' $ac_executable_extensions; do
  11694. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11695. ac_cv_prog_ac_ct_CC="$ac_prog"
  11696. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11697. break 2
  11698. fi
  11699. done
  11700. done
  11701. IFS=$as_save_IFS
  11702. fi
  11703. fi
  11704. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11705. if test -n "$ac_ct_CC"; then
  11706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11707. printf "%s\n" "$ac_ct_CC" >&6; }
  11708. else
  11709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11710. printf "%s\n" "no" >&6; }
  11711. fi
  11712. test -n "$ac_ct_CC" && break
  11713. done
  11714. if test "x$ac_ct_CC" = x; then
  11715. CC=""
  11716. else
  11717. case $cross_compiling:$ac_tool_warned in
  11718. yes:)
  11719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11720. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11721. ac_tool_warned=yes ;;
  11722. esac
  11723. CC=$ac_ct_CC
  11724. fi
  11725. fi
  11726. fi
  11727. if test -z "$CC"; then
  11728. if test -n "$ac_tool_prefix"; then
  11729. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11730. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11732. printf %s "checking for $ac_word... " >&6; }
  11733. if test ${ac_cv_prog_CC+y}
  11734. then :
  11735. printf %s "(cached) " >&6
  11736. else $as_nop
  11737. if test -n "$CC"; then
  11738. ac_cv_prog_CC="$CC" # Let the user override the test.
  11739. else
  11740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11741. for as_dir in $PATH
  11742. do
  11743. IFS=$as_save_IFS
  11744. case $as_dir in #(((
  11745. '') as_dir=./ ;;
  11746. */) ;;
  11747. *) as_dir=$as_dir/ ;;
  11748. esac
  11749. for ac_exec_ext in '' $ac_executable_extensions; do
  11750. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11751. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11752. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11753. break 2
  11754. fi
  11755. done
  11756. done
  11757. IFS=$as_save_IFS
  11758. fi
  11759. fi
  11760. CC=$ac_cv_prog_CC
  11761. if test -n "$CC"; then
  11762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11763. printf "%s\n" "$CC" >&6; }
  11764. else
  11765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11766. printf "%s\n" "no" >&6; }
  11767. fi
  11768. fi
  11769. if test -z "$ac_cv_prog_CC"; then
  11770. ac_ct_CC=$CC
  11771. # Extract the first word of "clang", so it can be a program name with args.
  11772. set dummy clang; ac_word=$2
  11773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11774. printf %s "checking for $ac_word... " >&6; }
  11775. if test ${ac_cv_prog_ac_ct_CC+y}
  11776. then :
  11777. printf %s "(cached) " >&6
  11778. else $as_nop
  11779. if test -n "$ac_ct_CC"; then
  11780. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11781. else
  11782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11783. for as_dir in $PATH
  11784. do
  11785. IFS=$as_save_IFS
  11786. case $as_dir in #(((
  11787. '') as_dir=./ ;;
  11788. */) ;;
  11789. *) as_dir=$as_dir/ ;;
  11790. esac
  11791. for ac_exec_ext in '' $ac_executable_extensions; do
  11792. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11793. ac_cv_prog_ac_ct_CC="clang"
  11794. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11795. break 2
  11796. fi
  11797. done
  11798. done
  11799. IFS=$as_save_IFS
  11800. fi
  11801. fi
  11802. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11803. if test -n "$ac_ct_CC"; then
  11804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11805. printf "%s\n" "$ac_ct_CC" >&6; }
  11806. else
  11807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11808. printf "%s\n" "no" >&6; }
  11809. fi
  11810. if test "x$ac_ct_CC" = x; then
  11811. CC=""
  11812. else
  11813. case $cross_compiling:$ac_tool_warned in
  11814. yes:)
  11815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11816. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11817. ac_tool_warned=yes ;;
  11818. esac
  11819. CC=$ac_ct_CC
  11820. fi
  11821. else
  11822. CC="$ac_cv_prog_CC"
  11823. fi
  11824. fi
  11825. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11826. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11827. as_fn_error $? "no acceptable C compiler found in \$PATH
  11828. See \`config.log' for more details" "$LINENO" 5; }
  11829. # Provide some information about the compiler.
  11830. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11831. set X $ac_compile
  11832. ac_compiler=$2
  11833. for ac_option in --version -v -V -qversion -version; do
  11834. { { ac_try="$ac_compiler $ac_option >&5"
  11835. case "(($ac_try" in
  11836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11837. *) ac_try_echo=$ac_try;;
  11838. esac
  11839. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11840. printf "%s\n" "$ac_try_echo"; } >&5
  11841. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11842. ac_status=$?
  11843. if test -s conftest.err; then
  11844. sed '10a\
  11845. ... rest of stderr output deleted ...
  11846. 10q' conftest.err >conftest.er1
  11847. cat conftest.er1 >&5
  11848. fi
  11849. rm -f conftest.er1 conftest.err
  11850. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11851. test $ac_status = 0; }
  11852. done
  11853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11854. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11855. if test ${ac_cv_c_compiler_gnu+y}
  11856. then :
  11857. printf %s "(cached) " >&6
  11858. else $as_nop
  11859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11860. /* end confdefs.h. */
  11861. int
  11862. main (void)
  11863. {
  11864. #ifndef __GNUC__
  11865. choke me
  11866. #endif
  11867. ;
  11868. return 0;
  11869. }
  11870. _ACEOF
  11871. if ac_fn_c_try_compile "$LINENO"
  11872. then :
  11873. ac_compiler_gnu=yes
  11874. else $as_nop
  11875. ac_compiler_gnu=no
  11876. fi
  11877. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11878. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11879. fi
  11880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11881. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11882. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11883. if test $ac_compiler_gnu = yes; then
  11884. GCC=yes
  11885. else
  11886. GCC=
  11887. fi
  11888. ac_test_CFLAGS=${CFLAGS+y}
  11889. ac_save_CFLAGS=$CFLAGS
  11890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11891. printf %s "checking whether $CC accepts -g... " >&6; }
  11892. if test ${ac_cv_prog_cc_g+y}
  11893. then :
  11894. printf %s "(cached) " >&6
  11895. else $as_nop
  11896. ac_save_c_werror_flag=$ac_c_werror_flag
  11897. ac_c_werror_flag=yes
  11898. ac_cv_prog_cc_g=no
  11899. CFLAGS="-g"
  11900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11901. /* end confdefs.h. */
  11902. int
  11903. main (void)
  11904. {
  11905. ;
  11906. return 0;
  11907. }
  11908. _ACEOF
  11909. if ac_fn_c_try_compile "$LINENO"
  11910. then :
  11911. ac_cv_prog_cc_g=yes
  11912. else $as_nop
  11913. CFLAGS=""
  11914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11915. /* end confdefs.h. */
  11916. int
  11917. main (void)
  11918. {
  11919. ;
  11920. return 0;
  11921. }
  11922. _ACEOF
  11923. if ac_fn_c_try_compile "$LINENO"
  11924. then :
  11925. else $as_nop
  11926. ac_c_werror_flag=$ac_save_c_werror_flag
  11927. CFLAGS="-g"
  11928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11929. /* end confdefs.h. */
  11930. int
  11931. main (void)
  11932. {
  11933. ;
  11934. return 0;
  11935. }
  11936. _ACEOF
  11937. if ac_fn_c_try_compile "$LINENO"
  11938. then :
  11939. ac_cv_prog_cc_g=yes
  11940. fi
  11941. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11942. fi
  11943. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11944. fi
  11945. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11946. ac_c_werror_flag=$ac_save_c_werror_flag
  11947. fi
  11948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11949. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11950. if test $ac_test_CFLAGS; then
  11951. CFLAGS=$ac_save_CFLAGS
  11952. elif test $ac_cv_prog_cc_g = yes; then
  11953. if test "$GCC" = yes; then
  11954. CFLAGS="-g -O2"
  11955. else
  11956. CFLAGS="-g"
  11957. fi
  11958. else
  11959. if test "$GCC" = yes; then
  11960. CFLAGS="-O2"
  11961. else
  11962. CFLAGS=
  11963. fi
  11964. fi
  11965. ac_prog_cc_stdc=no
  11966. if test x$ac_prog_cc_stdc = xno
  11967. then :
  11968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11969. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11970. if test ${ac_cv_prog_cc_c11+y}
  11971. then :
  11972. printf %s "(cached) " >&6
  11973. else $as_nop
  11974. ac_cv_prog_cc_c11=no
  11975. ac_save_CC=$CC
  11976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11977. /* end confdefs.h. */
  11978. $ac_c_conftest_c11_program
  11979. _ACEOF
  11980. for ac_arg in '' -std=gnu11
  11981. do
  11982. CC="$ac_save_CC $ac_arg"
  11983. if ac_fn_c_try_compile "$LINENO"
  11984. then :
  11985. ac_cv_prog_cc_c11=$ac_arg
  11986. fi
  11987. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11988. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11989. done
  11990. rm -f conftest.$ac_ext
  11991. CC=$ac_save_CC
  11992. fi
  11993. if test "x$ac_cv_prog_cc_c11" = xno
  11994. then :
  11995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11996. printf "%s\n" "unsupported" >&6; }
  11997. else $as_nop
  11998. if test "x$ac_cv_prog_cc_c11" = x
  11999. then :
  12000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12001. printf "%s\n" "none needed" >&6; }
  12002. else $as_nop
  12003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  12004. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  12005. CC="$CC $ac_cv_prog_cc_c11"
  12006. fi
  12007. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  12008. ac_prog_cc_stdc=c11
  12009. fi
  12010. fi
  12011. if test x$ac_prog_cc_stdc = xno
  12012. then :
  12013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  12014. printf %s "checking for $CC option to enable C99 features... " >&6; }
  12015. if test ${ac_cv_prog_cc_c99+y}
  12016. then :
  12017. printf %s "(cached) " >&6
  12018. else $as_nop
  12019. ac_cv_prog_cc_c99=no
  12020. ac_save_CC=$CC
  12021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12022. /* end confdefs.h. */
  12023. $ac_c_conftest_c99_program
  12024. _ACEOF
  12025. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  12026. do
  12027. CC="$ac_save_CC $ac_arg"
  12028. if ac_fn_c_try_compile "$LINENO"
  12029. then :
  12030. ac_cv_prog_cc_c99=$ac_arg
  12031. fi
  12032. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12033. test "x$ac_cv_prog_cc_c99" != "xno" && break
  12034. done
  12035. rm -f conftest.$ac_ext
  12036. CC=$ac_save_CC
  12037. fi
  12038. if test "x$ac_cv_prog_cc_c99" = xno
  12039. then :
  12040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12041. printf "%s\n" "unsupported" >&6; }
  12042. else $as_nop
  12043. if test "x$ac_cv_prog_cc_c99" = x
  12044. then :
  12045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12046. printf "%s\n" "none needed" >&6; }
  12047. else $as_nop
  12048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  12049. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  12050. CC="$CC $ac_cv_prog_cc_c99"
  12051. fi
  12052. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  12053. ac_prog_cc_stdc=c99
  12054. fi
  12055. fi
  12056. if test x$ac_prog_cc_stdc = xno
  12057. then :
  12058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  12059. printf %s "checking for $CC option to enable C89 features... " >&6; }
  12060. if test ${ac_cv_prog_cc_c89+y}
  12061. then :
  12062. printf %s "(cached) " >&6
  12063. else $as_nop
  12064. ac_cv_prog_cc_c89=no
  12065. ac_save_CC=$CC
  12066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12067. /* end confdefs.h. */
  12068. $ac_c_conftest_c89_program
  12069. _ACEOF
  12070. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12071. do
  12072. CC="$ac_save_CC $ac_arg"
  12073. if ac_fn_c_try_compile "$LINENO"
  12074. then :
  12075. ac_cv_prog_cc_c89=$ac_arg
  12076. fi
  12077. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12078. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12079. done
  12080. rm -f conftest.$ac_ext
  12081. CC=$ac_save_CC
  12082. fi
  12083. if test "x$ac_cv_prog_cc_c89" = xno
  12084. then :
  12085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12086. printf "%s\n" "unsupported" >&6; }
  12087. else $as_nop
  12088. if test "x$ac_cv_prog_cc_c89" = x
  12089. then :
  12090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12091. printf "%s\n" "none needed" >&6; }
  12092. else $as_nop
  12093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12094. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12095. CC="$CC $ac_cv_prog_cc_c89"
  12096. fi
  12097. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12098. ac_prog_cc_stdc=c89
  12099. fi
  12100. fi
  12101. ac_ext=c
  12102. ac_cpp='$CPP $CPPFLAGS'
  12103. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12104. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12105. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12106. ac_ext=cpp
  12107. ac_cpp='$CXXCPP $CPPFLAGS'
  12108. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12109. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12110. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12111. if test -z "$CXX"; then
  12112. if test -n "$CCC"; then
  12113. CXX=$CCC
  12114. else
  12115. if test -n "$ac_tool_prefix"; then
  12116. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12117. do
  12118. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12119. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12121. printf %s "checking for $ac_word... " >&6; }
  12122. if test ${ac_cv_prog_CXX+y}
  12123. then :
  12124. printf %s "(cached) " >&6
  12125. else $as_nop
  12126. if test -n "$CXX"; then
  12127. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12128. else
  12129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12130. for as_dir in $PATH
  12131. do
  12132. IFS=$as_save_IFS
  12133. case $as_dir in #(((
  12134. '') as_dir=./ ;;
  12135. */) ;;
  12136. *) as_dir=$as_dir/ ;;
  12137. esac
  12138. for ac_exec_ext in '' $ac_executable_extensions; do
  12139. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12140. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12141. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12142. break 2
  12143. fi
  12144. done
  12145. done
  12146. IFS=$as_save_IFS
  12147. fi
  12148. fi
  12149. CXX=$ac_cv_prog_CXX
  12150. if test -n "$CXX"; then
  12151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12152. printf "%s\n" "$CXX" >&6; }
  12153. else
  12154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12155. printf "%s\n" "no" >&6; }
  12156. fi
  12157. test -n "$CXX" && break
  12158. done
  12159. fi
  12160. if test -z "$CXX"; then
  12161. ac_ct_CXX=$CXX
  12162. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12163. do
  12164. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12165. set dummy $ac_prog; ac_word=$2
  12166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12167. printf %s "checking for $ac_word... " >&6; }
  12168. if test ${ac_cv_prog_ac_ct_CXX+y}
  12169. then :
  12170. printf %s "(cached) " >&6
  12171. else $as_nop
  12172. if test -n "$ac_ct_CXX"; then
  12173. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12174. else
  12175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12176. for as_dir in $PATH
  12177. do
  12178. IFS=$as_save_IFS
  12179. case $as_dir in #(((
  12180. '') as_dir=./ ;;
  12181. */) ;;
  12182. *) as_dir=$as_dir/ ;;
  12183. esac
  12184. for ac_exec_ext in '' $ac_executable_extensions; do
  12185. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12186. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12187. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12188. break 2
  12189. fi
  12190. done
  12191. done
  12192. IFS=$as_save_IFS
  12193. fi
  12194. fi
  12195. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12196. if test -n "$ac_ct_CXX"; then
  12197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12198. printf "%s\n" "$ac_ct_CXX" >&6; }
  12199. else
  12200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12201. printf "%s\n" "no" >&6; }
  12202. fi
  12203. test -n "$ac_ct_CXX" && break
  12204. done
  12205. if test "x$ac_ct_CXX" = x; then
  12206. CXX="g++"
  12207. else
  12208. case $cross_compiling:$ac_tool_warned in
  12209. yes:)
  12210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12211. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12212. ac_tool_warned=yes ;;
  12213. esac
  12214. CXX=$ac_ct_CXX
  12215. fi
  12216. fi
  12217. fi
  12218. fi
  12219. # Provide some information about the compiler.
  12220. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12221. set X $ac_compile
  12222. ac_compiler=$2
  12223. for ac_option in --version -v -V -qversion; do
  12224. { { ac_try="$ac_compiler $ac_option >&5"
  12225. case "(($ac_try" in
  12226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12227. *) ac_try_echo=$ac_try;;
  12228. esac
  12229. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12230. printf "%s\n" "$ac_try_echo"; } >&5
  12231. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12232. ac_status=$?
  12233. if test -s conftest.err; then
  12234. sed '10a\
  12235. ... rest of stderr output deleted ...
  12236. 10q' conftest.err >conftest.er1
  12237. cat conftest.er1 >&5
  12238. fi
  12239. rm -f conftest.er1 conftest.err
  12240. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12241. test $ac_status = 0; }
  12242. done
  12243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12244. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12245. if test ${ac_cv_cxx_compiler_gnu+y}
  12246. then :
  12247. printf %s "(cached) " >&6
  12248. else $as_nop
  12249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12250. /* end confdefs.h. */
  12251. int
  12252. main (void)
  12253. {
  12254. #ifndef __GNUC__
  12255. choke me
  12256. #endif
  12257. ;
  12258. return 0;
  12259. }
  12260. _ACEOF
  12261. if ac_fn_cxx_try_compile "$LINENO"
  12262. then :
  12263. ac_compiler_gnu=yes
  12264. else $as_nop
  12265. ac_compiler_gnu=no
  12266. fi
  12267. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12268. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12269. fi
  12270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12271. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12272. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12273. if test $ac_compiler_gnu = yes; then
  12274. GXX=yes
  12275. else
  12276. GXX=
  12277. fi
  12278. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12279. ac_save_CXXFLAGS=$CXXFLAGS
  12280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12281. printf %s "checking whether $CXX accepts -g... " >&6; }
  12282. if test ${ac_cv_prog_cxx_g+y}
  12283. then :
  12284. printf %s "(cached) " >&6
  12285. else $as_nop
  12286. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12287. ac_cxx_werror_flag=yes
  12288. ac_cv_prog_cxx_g=no
  12289. CXXFLAGS="-g"
  12290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12291. /* end confdefs.h. */
  12292. int
  12293. main (void)
  12294. {
  12295. ;
  12296. return 0;
  12297. }
  12298. _ACEOF
  12299. if ac_fn_cxx_try_compile "$LINENO"
  12300. then :
  12301. ac_cv_prog_cxx_g=yes
  12302. else $as_nop
  12303. CXXFLAGS=""
  12304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12305. /* end confdefs.h. */
  12306. int
  12307. main (void)
  12308. {
  12309. ;
  12310. return 0;
  12311. }
  12312. _ACEOF
  12313. if ac_fn_cxx_try_compile "$LINENO"
  12314. then :
  12315. else $as_nop
  12316. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12317. CXXFLAGS="-g"
  12318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12319. /* end confdefs.h. */
  12320. int
  12321. main (void)
  12322. {
  12323. ;
  12324. return 0;
  12325. }
  12326. _ACEOF
  12327. if ac_fn_cxx_try_compile "$LINENO"
  12328. then :
  12329. ac_cv_prog_cxx_g=yes
  12330. fi
  12331. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12332. fi
  12333. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12334. fi
  12335. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12336. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12337. fi
  12338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12339. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12340. if test $ac_test_CXXFLAGS; then
  12341. CXXFLAGS=$ac_save_CXXFLAGS
  12342. elif test $ac_cv_prog_cxx_g = yes; then
  12343. if test "$GXX" = yes; then
  12344. CXXFLAGS="-g -O2"
  12345. else
  12346. CXXFLAGS="-g"
  12347. fi
  12348. else
  12349. if test "$GXX" = yes; then
  12350. CXXFLAGS="-O2"
  12351. else
  12352. CXXFLAGS=
  12353. fi
  12354. fi
  12355. ac_prog_cxx_stdcxx=no
  12356. if test x$ac_prog_cxx_stdcxx = xno
  12357. then :
  12358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12359. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12360. if test ${ac_cv_prog_cxx_cxx11+y}
  12361. then :
  12362. printf %s "(cached) " >&6
  12363. else $as_nop
  12364. ac_cv_prog_cxx_cxx11=no
  12365. ac_save_CXX=$CXX
  12366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12367. /* end confdefs.h. */
  12368. $ac_cxx_conftest_cxx11_program
  12369. _ACEOF
  12370. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12371. do
  12372. CXX="$ac_save_CXX $ac_arg"
  12373. if ac_fn_cxx_try_compile "$LINENO"
  12374. then :
  12375. ac_cv_prog_cxx_cxx11=$ac_arg
  12376. fi
  12377. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12378. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12379. done
  12380. rm -f conftest.$ac_ext
  12381. CXX=$ac_save_CXX
  12382. fi
  12383. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12384. then :
  12385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12386. printf "%s\n" "unsupported" >&6; }
  12387. else $as_nop
  12388. if test "x$ac_cv_prog_cxx_cxx11" = x
  12389. then :
  12390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12391. printf "%s\n" "none needed" >&6; }
  12392. else $as_nop
  12393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12394. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12395. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12396. fi
  12397. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12398. ac_prog_cxx_stdcxx=cxx11
  12399. fi
  12400. fi
  12401. if test x$ac_prog_cxx_stdcxx = xno
  12402. then :
  12403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12404. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12405. if test ${ac_cv_prog_cxx_cxx98+y}
  12406. then :
  12407. printf %s "(cached) " >&6
  12408. else $as_nop
  12409. ac_cv_prog_cxx_cxx98=no
  12410. ac_save_CXX=$CXX
  12411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12412. /* end confdefs.h. */
  12413. $ac_cxx_conftest_cxx98_program
  12414. _ACEOF
  12415. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12416. do
  12417. CXX="$ac_save_CXX $ac_arg"
  12418. if ac_fn_cxx_try_compile "$LINENO"
  12419. then :
  12420. ac_cv_prog_cxx_cxx98=$ac_arg
  12421. fi
  12422. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12423. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12424. done
  12425. rm -f conftest.$ac_ext
  12426. CXX=$ac_save_CXX
  12427. fi
  12428. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12429. then :
  12430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12431. printf "%s\n" "unsupported" >&6; }
  12432. else $as_nop
  12433. if test "x$ac_cv_prog_cxx_cxx98" = x
  12434. then :
  12435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12436. printf "%s\n" "none needed" >&6; }
  12437. else $as_nop
  12438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12439. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12440. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12441. fi
  12442. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12443. ac_prog_cxx_stdcxx=cxx98
  12444. fi
  12445. fi
  12446. ac_ext=c
  12447. ac_cpp='$CPP $CPPFLAGS'
  12448. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12449. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12450. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12451. func_stripname_cnf ()
  12452. {
  12453. case $2 in
  12454. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12455. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12456. esac
  12457. } # func_stripname_cnf
  12458. if test -n "$CXX" && ( test no != "$CXX" &&
  12459. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12460. (test g++ != "$CXX"))); then
  12461. ac_ext=cpp
  12462. ac_cpp='$CXXCPP $CPPFLAGS'
  12463. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12464. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12465. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12467. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12468. if test -z "$CXXCPP"; then
  12469. if test ${ac_cv_prog_CXXCPP+y}
  12470. then :
  12471. printf %s "(cached) " >&6
  12472. else $as_nop
  12473. # Double quotes because $CXX needs to be expanded
  12474. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12475. do
  12476. ac_preproc_ok=false
  12477. for ac_cxx_preproc_warn_flag in '' yes
  12478. do
  12479. # Use a header file that comes with gcc, so configuring glibc
  12480. # with a fresh cross-compiler works.
  12481. # On the NeXT, cc -E runs the code through the compiler's parser,
  12482. # not just through cpp. "Syntax error" is here to catch this case.
  12483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12484. /* end confdefs.h. */
  12485. #include <limits.h>
  12486. Syntax error
  12487. _ACEOF
  12488. if ac_fn_cxx_try_cpp "$LINENO"
  12489. then :
  12490. else $as_nop
  12491. # Broken: fails on valid input.
  12492. continue
  12493. fi
  12494. rm -f conftest.err conftest.i conftest.$ac_ext
  12495. # OK, works on sane cases. Now check whether nonexistent headers
  12496. # can be detected and how.
  12497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12498. /* end confdefs.h. */
  12499. #include <ac_nonexistent.h>
  12500. _ACEOF
  12501. if ac_fn_cxx_try_cpp "$LINENO"
  12502. then :
  12503. # Broken: success on invalid input.
  12504. continue
  12505. else $as_nop
  12506. # Passes both tests.
  12507. ac_preproc_ok=:
  12508. break
  12509. fi
  12510. rm -f conftest.err conftest.i conftest.$ac_ext
  12511. done
  12512. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12513. rm -f conftest.i conftest.err conftest.$ac_ext
  12514. if $ac_preproc_ok
  12515. then :
  12516. break
  12517. fi
  12518. done
  12519. ac_cv_prog_CXXCPP=$CXXCPP
  12520. fi
  12521. CXXCPP=$ac_cv_prog_CXXCPP
  12522. else
  12523. ac_cv_prog_CXXCPP=$CXXCPP
  12524. fi
  12525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12526. printf "%s\n" "$CXXCPP" >&6; }
  12527. ac_preproc_ok=false
  12528. for ac_cxx_preproc_warn_flag in '' yes
  12529. do
  12530. # Use a header file that comes with gcc, so configuring glibc
  12531. # with a fresh cross-compiler works.
  12532. # On the NeXT, cc -E runs the code through the compiler's parser,
  12533. # not just through cpp. "Syntax error" is here to catch this case.
  12534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12535. /* end confdefs.h. */
  12536. #include <limits.h>
  12537. Syntax error
  12538. _ACEOF
  12539. if ac_fn_cxx_try_cpp "$LINENO"
  12540. then :
  12541. else $as_nop
  12542. # Broken: fails on valid input.
  12543. continue
  12544. fi
  12545. rm -f conftest.err conftest.i conftest.$ac_ext
  12546. # OK, works on sane cases. Now check whether nonexistent headers
  12547. # can be detected and how.
  12548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12549. /* end confdefs.h. */
  12550. #include <ac_nonexistent.h>
  12551. _ACEOF
  12552. if ac_fn_cxx_try_cpp "$LINENO"
  12553. then :
  12554. # Broken: success on invalid input.
  12555. continue
  12556. else $as_nop
  12557. # Passes both tests.
  12558. ac_preproc_ok=:
  12559. break
  12560. fi
  12561. rm -f conftest.err conftest.i conftest.$ac_ext
  12562. done
  12563. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12564. rm -f conftest.i conftest.err conftest.$ac_ext
  12565. if $ac_preproc_ok
  12566. then :
  12567. else $as_nop
  12568. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12569. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12570. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12571. See \`config.log' for more details" "$LINENO" 5; }
  12572. fi
  12573. ac_ext=c
  12574. ac_cpp='$CPP $CPPFLAGS'
  12575. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12576. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12577. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12578. else
  12579. _lt_caught_CXX_error=yes
  12580. fi
  12581. ac_ext=cpp
  12582. ac_cpp='$CXXCPP $CPPFLAGS'
  12583. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12584. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12585. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12586. archive_cmds_need_lc_CXX=no
  12587. allow_undefined_flag_CXX=
  12588. always_export_symbols_CXX=no
  12589. archive_expsym_cmds_CXX=
  12590. compiler_needs_object_CXX=no
  12591. export_dynamic_flag_spec_CXX=
  12592. hardcode_direct_CXX=no
  12593. hardcode_direct_absolute_CXX=no
  12594. hardcode_libdir_flag_spec_CXX=
  12595. hardcode_libdir_separator_CXX=
  12596. hardcode_minus_L_CXX=no
  12597. hardcode_shlibpath_var_CXX=unsupported
  12598. hardcode_automatic_CXX=no
  12599. inherit_rpath_CXX=no
  12600. module_cmds_CXX=
  12601. module_expsym_cmds_CXX=
  12602. link_all_deplibs_CXX=unknown
  12603. old_archive_cmds_CXX=$old_archive_cmds
  12604. reload_flag_CXX=$reload_flag
  12605. reload_cmds_CXX=$reload_cmds
  12606. no_undefined_flag_CXX=
  12607. whole_archive_flag_spec_CXX=
  12608. enable_shared_with_static_runtimes_CXX=no
  12609. # Source file extension for C++ test sources.
  12610. ac_ext=cpp
  12611. # Object file extension for compiled C++ test sources.
  12612. objext=o
  12613. objext_CXX=$objext
  12614. # No sense in running all these tests if we already determined that
  12615. # the CXX compiler isn't working. Some variables (like enable_shared)
  12616. # are currently assumed to apply to all compilers on this platform,
  12617. # and will be corrupted by setting them based on a non-working compiler.
  12618. if test yes != "$_lt_caught_CXX_error"; then
  12619. # Code to be used in simple compile tests
  12620. lt_simple_compile_test_code="int some_variable = 0;"
  12621. # Code to be used in simple link tests
  12622. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12623. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12624. # If no C compiler was specified, use CC.
  12625. LTCC=${LTCC-"$CC"}
  12626. # If no C compiler flags were specified, use CFLAGS.
  12627. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12628. # Allow CC to be a program name with arguments.
  12629. compiler=$CC
  12630. # save warnings/boilerplate of simple test code
  12631. ac_outfile=conftest.$ac_objext
  12632. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12633. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12634. _lt_compiler_boilerplate=`cat conftest.err`
  12635. $RM conftest*
  12636. ac_outfile=conftest.$ac_objext
  12637. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12638. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12639. _lt_linker_boilerplate=`cat conftest.err`
  12640. $RM -r conftest*
  12641. # Allow CC to be a program name with arguments.
  12642. lt_save_CC=$CC
  12643. lt_save_CFLAGS=$CFLAGS
  12644. lt_save_LD=$LD
  12645. lt_save_GCC=$GCC
  12646. GCC=$GXX
  12647. lt_save_with_gnu_ld=$with_gnu_ld
  12648. lt_save_path_LD=$lt_cv_path_LD
  12649. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12650. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12651. else
  12652. $as_unset lt_cv_prog_gnu_ld
  12653. fi
  12654. if test -n "${lt_cv_path_LDCXX+set}"; then
  12655. lt_cv_path_LD=$lt_cv_path_LDCXX
  12656. else
  12657. $as_unset lt_cv_path_LD
  12658. fi
  12659. test -z "${LDCXX+set}" || LD=$LDCXX
  12660. CC=${CXX-"c++"}
  12661. CFLAGS=$CXXFLAGS
  12662. compiler=$CC
  12663. compiler_CXX=$CC
  12664. func_cc_basename $compiler
  12665. cc_basename=$func_cc_basename_result
  12666. if test -n "$compiler"; then
  12667. # We don't want -fno-exception when compiling C++ code, so set the
  12668. # no_builtin_flag separately
  12669. if test yes = "$GXX"; then
  12670. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12671. else
  12672. lt_prog_compiler_no_builtin_flag_CXX=
  12673. fi
  12674. if test yes = "$GXX"; then
  12675. # Set up default GNU C++ configuration
  12676. # Check whether --with-gnu-ld was given.
  12677. if test ${with_gnu_ld+y}
  12678. then :
  12679. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12680. else $as_nop
  12681. with_gnu_ld=no
  12682. fi
  12683. ac_prog=ld
  12684. if test yes = "$GCC"; then
  12685. # Check if gcc -print-prog-name=ld gives a path.
  12686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12687. printf %s "checking for ld used by $CC... " >&6; }
  12688. case $host in
  12689. *-*-mingw* | *-*-windows*)
  12690. # gcc leaves a trailing carriage return, which upsets mingw
  12691. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12692. *)
  12693. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12694. esac
  12695. case $ac_prog in
  12696. # Accept absolute paths.
  12697. [\\/]* | ?:[\\/]*)
  12698. re_direlt='/[^/][^/]*/\.\./'
  12699. # Canonicalize the pathname of ld
  12700. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12701. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12702. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12703. done
  12704. test -z "$LD" && LD=$ac_prog
  12705. ;;
  12706. "")
  12707. # If it fails, then pretend we aren't using GCC.
  12708. ac_prog=ld
  12709. ;;
  12710. *)
  12711. # If it is relative, then search for the first ld in PATH.
  12712. with_gnu_ld=unknown
  12713. ;;
  12714. esac
  12715. elif test yes = "$with_gnu_ld"; then
  12716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12717. printf %s "checking for GNU ld... " >&6; }
  12718. else
  12719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12720. printf %s "checking for non-GNU ld... " >&6; }
  12721. fi
  12722. if test ${lt_cv_path_LD+y}
  12723. then :
  12724. printf %s "(cached) " >&6
  12725. else $as_nop
  12726. if test -z "$LD"; then
  12727. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12728. for ac_dir in $PATH; do
  12729. IFS=$lt_save_ifs
  12730. test -z "$ac_dir" && ac_dir=.
  12731. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12732. lt_cv_path_LD=$ac_dir/$ac_prog
  12733. # Check to see if the program is GNU ld. I'd rather use --version,
  12734. # but apparently some variants of GNU ld only accept -v.
  12735. # Break only if it was the GNU/non-GNU ld that we prefer.
  12736. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12737. *GNU* | *'with BFD'*)
  12738. test no != "$with_gnu_ld" && break
  12739. ;;
  12740. *)
  12741. test yes != "$with_gnu_ld" && break
  12742. ;;
  12743. esac
  12744. fi
  12745. done
  12746. IFS=$lt_save_ifs
  12747. else
  12748. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12749. fi
  12750. fi
  12751. LD=$lt_cv_path_LD
  12752. if test -n "$LD"; then
  12753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12754. printf "%s\n" "$LD" >&6; }
  12755. else
  12756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12757. printf "%s\n" "no" >&6; }
  12758. fi
  12759. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12761. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12762. if test ${lt_cv_prog_gnu_ld+y}
  12763. then :
  12764. printf %s "(cached) " >&6
  12765. else $as_nop
  12766. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12767. case `$LD -v 2>&1 </dev/null` in
  12768. *GNU* | *'with BFD'*)
  12769. lt_cv_prog_gnu_ld=yes
  12770. ;;
  12771. *)
  12772. lt_cv_prog_gnu_ld=no
  12773. ;;
  12774. esac
  12775. fi
  12776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12777. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12778. with_gnu_ld=$lt_cv_prog_gnu_ld
  12779. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12780. # archiving commands below assume that GNU ld is being used.
  12781. if test yes = "$with_gnu_ld"; then
  12782. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12783. 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'
  12784. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12785. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12786. # If archive_cmds runs LD, not CC, wlarc should be empty
  12787. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12788. # investigate it a little bit more. (MM)
  12789. wlarc='$wl'
  12790. # ancient GNU ld didn't support --whole-archive et. al.
  12791. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12792. $GREP 'no-whole-archive' > /dev/null; then
  12793. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12794. else
  12795. whole_archive_flag_spec_CXX=
  12796. fi
  12797. else
  12798. with_gnu_ld=no
  12799. wlarc=
  12800. # A generic and very simple default shared library creation
  12801. # command for GNU C++ for the case where it uses the native
  12802. # linker, instead of GNU ld. If possible, this setting should
  12803. # overridden to take advantage of the native linker features on
  12804. # the platform it is being used on.
  12805. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12806. fi
  12807. # Commands to make compiler produce verbose output that lists
  12808. # what "hidden" libraries, object files and flags are used when
  12809. # linking a shared library.
  12810. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  12811. else
  12812. GXX=no
  12813. with_gnu_ld=no
  12814. wlarc=
  12815. fi
  12816. # PORTME: fill in a description of your system's C++ link characteristics
  12817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12818. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12819. ld_shlibs_CXX=yes
  12820. case $host_os in
  12821. aix3*)
  12822. # FIXME: insert proper C++ library support
  12823. ld_shlibs_CXX=no
  12824. ;;
  12825. aix[4-9]*)
  12826. if test ia64 = "$host_cpu"; then
  12827. # On IA64, the linker does run time linking by default, so we don't
  12828. # have to do anything special.
  12829. aix_use_runtimelinking=no
  12830. exp_sym_flag='-Bexport'
  12831. no_entry_flag=
  12832. else
  12833. aix_use_runtimelinking=no
  12834. # Test if we are trying to use run time linking or normal
  12835. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12836. # have runtime linking enabled, and use it for executables.
  12837. # For shared libraries, we enable/disable runtime linking
  12838. # depending on the kind of the shared library created -
  12839. # when "with_aix_soname,aix_use_runtimelinking" is:
  12840. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12841. # "aix,yes" lib.so shared, rtl:yes, for executables
  12842. # lib.a static archive
  12843. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12844. # lib.a(lib.so.V) shared, rtl:no, for executables
  12845. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12846. # lib.a(lib.so.V) shared, rtl:no
  12847. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12848. # lib.a static archive
  12849. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12850. for ld_flag in $LDFLAGS; do
  12851. case $ld_flag in
  12852. *-brtl*)
  12853. aix_use_runtimelinking=yes
  12854. break
  12855. ;;
  12856. esac
  12857. done
  12858. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12859. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12860. # so we don't have lib.a shared libs to link our executables.
  12861. # We have to force runtime linking in this case.
  12862. aix_use_runtimelinking=yes
  12863. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12864. fi
  12865. ;;
  12866. esac
  12867. exp_sym_flag='-bexport'
  12868. no_entry_flag='-bnoentry'
  12869. fi
  12870. # When large executables or shared objects are built, AIX ld can
  12871. # have problems creating the table of contents. If linking a library
  12872. # or program results in "error TOC overflow" add -mminimal-toc to
  12873. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12874. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12875. archive_cmds_CXX=''
  12876. hardcode_direct_CXX=yes
  12877. hardcode_direct_absolute_CXX=yes
  12878. hardcode_libdir_separator_CXX=':'
  12879. link_all_deplibs_CXX=yes
  12880. file_list_spec_CXX='$wl-f,'
  12881. case $with_aix_soname,$aix_use_runtimelinking in
  12882. aix,*) ;; # no import file
  12883. svr4,* | *,yes) # use import file
  12884. # The Import File defines what to hardcode.
  12885. hardcode_direct_CXX=no
  12886. hardcode_direct_absolute_CXX=no
  12887. ;;
  12888. esac
  12889. if test yes = "$GXX"; then
  12890. case $host_os in aix4.[012]|aix4.[012].*)
  12891. # We only want to do this on AIX 4.2 and lower, the check
  12892. # below for broken collect2 doesn't work under 4.3+
  12893. collect2name=`$CC -print-prog-name=collect2`
  12894. if test -f "$collect2name" &&
  12895. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12896. then
  12897. # We have reworked collect2
  12898. :
  12899. else
  12900. # We have old collect2
  12901. hardcode_direct_CXX=unsupported
  12902. # It fails to find uninstalled libraries when the uninstalled
  12903. # path is not listed in the libpath. Setting hardcode_minus_L
  12904. # to unsupported forces relinking
  12905. hardcode_minus_L_CXX=yes
  12906. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12907. hardcode_libdir_separator_CXX=
  12908. fi
  12909. esac
  12910. shared_flag='-shared'
  12911. if test yes = "$aix_use_runtimelinking"; then
  12912. shared_flag=$shared_flag' $wl-G'
  12913. fi
  12914. # Need to ensure runtime linking is disabled for the traditional
  12915. # shared library, or the linker may eventually find shared libraries
  12916. # /with/ Import File - we do not want to mix them.
  12917. shared_flag_aix='-shared'
  12918. shared_flag_svr4='-shared $wl-G'
  12919. else
  12920. # not using gcc
  12921. if test ia64 = "$host_cpu"; then
  12922. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12923. # chokes on -Wl,-G. The following line is correct:
  12924. shared_flag='-G'
  12925. else
  12926. if test yes = "$aix_use_runtimelinking"; then
  12927. shared_flag='$wl-G'
  12928. else
  12929. shared_flag='$wl-bM:SRE'
  12930. fi
  12931. shared_flag_aix='$wl-bM:SRE'
  12932. shared_flag_svr4='$wl-G'
  12933. fi
  12934. fi
  12935. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12936. # It seems that -bexpall does not export symbols beginning with
  12937. # underscore (_), so it is better to generate a list of symbols to
  12938. # export.
  12939. always_export_symbols_CXX=yes
  12940. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12941. # Warning - without using the other runtime loading flags (-brtl),
  12942. # -berok will link without error, but may produce a broken library.
  12943. # The "-G" linker flag allows undefined symbols.
  12944. no_undefined_flag_CXX='-bernotok'
  12945. # Determine the default libpath from the value encoded in an empty
  12946. # executable.
  12947. if test set = "${lt_cv_aix_libpath+set}"; then
  12948. aix_libpath=$lt_cv_aix_libpath
  12949. else
  12950. if test ${lt_cv_aix_libpath__CXX+y}
  12951. then :
  12952. printf %s "(cached) " >&6
  12953. else $as_nop
  12954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12955. /* end confdefs.h. */
  12956. int
  12957. main (void)
  12958. {
  12959. ;
  12960. return 0;
  12961. }
  12962. _ACEOF
  12963. if ac_fn_cxx_try_link "$LINENO"
  12964. then :
  12965. lt_aix_libpath_sed='
  12966. /Import File Strings/,/^$/ {
  12967. /^0/ {
  12968. s/^0 *\([^ ]*\) *$/\1/
  12969. p
  12970. }
  12971. }'
  12972. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12973. # Check for a 64-bit object if we didn't find anything.
  12974. if test -z "$lt_cv_aix_libpath__CXX"; then
  12975. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12976. fi
  12977. fi
  12978. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12979. conftest$ac_exeext conftest.$ac_ext
  12980. if test -z "$lt_cv_aix_libpath__CXX"; then
  12981. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12982. fi
  12983. fi
  12984. aix_libpath=$lt_cv_aix_libpath__CXX
  12985. fi
  12986. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12987. 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
  12988. else
  12989. if test ia64 = "$host_cpu"; then
  12990. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12991. allow_undefined_flag_CXX="-z nodefs"
  12992. 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"
  12993. else
  12994. # Determine the default libpath from the value encoded in an
  12995. # empty executable.
  12996. if test set = "${lt_cv_aix_libpath+set}"; then
  12997. aix_libpath=$lt_cv_aix_libpath
  12998. else
  12999. if test ${lt_cv_aix_libpath__CXX+y}
  13000. then :
  13001. printf %s "(cached) " >&6
  13002. else $as_nop
  13003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13004. /* end confdefs.h. */
  13005. int
  13006. main (void)
  13007. {
  13008. ;
  13009. return 0;
  13010. }
  13011. _ACEOF
  13012. if ac_fn_cxx_try_link "$LINENO"
  13013. then :
  13014. lt_aix_libpath_sed='
  13015. /Import File Strings/,/^$/ {
  13016. /^0/ {
  13017. s/^0 *\([^ ]*\) *$/\1/
  13018. p
  13019. }
  13020. }'
  13021. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13022. # Check for a 64-bit object if we didn't find anything.
  13023. if test -z "$lt_cv_aix_libpath__CXX"; then
  13024. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13025. fi
  13026. fi
  13027. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13028. conftest$ac_exeext conftest.$ac_ext
  13029. if test -z "$lt_cv_aix_libpath__CXX"; then
  13030. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13031. fi
  13032. fi
  13033. aix_libpath=$lt_cv_aix_libpath__CXX
  13034. fi
  13035. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13036. # Warning - without using the other run time loading flags,
  13037. # -berok will link without error, but may produce a broken library.
  13038. no_undefined_flag_CXX=' $wl-bernotok'
  13039. allow_undefined_flag_CXX=' $wl-berok'
  13040. if test yes = "$with_gnu_ld"; then
  13041. # We only use this code for GNU lds that support --whole-archive.
  13042. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13043. else
  13044. # Exported symbols can be pulled into shared objects from archives
  13045. whole_archive_flag_spec_CXX='$convenience'
  13046. fi
  13047. archive_cmds_need_lc_CXX=yes
  13048. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13049. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13050. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13051. if test svr4 != "$with_aix_soname"; then
  13052. # This is similar to how AIX traditionally builds its shared
  13053. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13054. 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'
  13055. fi
  13056. if test aix != "$with_aix_soname"; then
  13057. 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'
  13058. else
  13059. # used by -dlpreopen to get the symbols
  13060. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13061. fi
  13062. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13063. fi
  13064. fi
  13065. ;;
  13066. beos*)
  13067. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13068. allow_undefined_flag_CXX=unsupported
  13069. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13070. # support --undefined. This deserves some investigation. FIXME
  13071. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13072. else
  13073. ld_shlibs_CXX=no
  13074. fi
  13075. ;;
  13076. chorus*)
  13077. case $cc_basename in
  13078. *)
  13079. # FIXME: insert proper C++ library support
  13080. ld_shlibs_CXX=no
  13081. ;;
  13082. esac
  13083. ;;
  13084. cygwin* | mingw* | windows* | pw32* | cegcc*)
  13085. case $GXX,$cc_basename in
  13086. ,cl* | no,cl* | ,icl* | no,icl*)
  13087. # Native MSVC or ICC
  13088. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13089. # no search path for DLLs.
  13090. hardcode_libdir_flag_spec_CXX=' '
  13091. allow_undefined_flag_CXX=unsupported
  13092. always_export_symbols_CXX=yes
  13093. file_list_spec_CXX='@'
  13094. # Tell ltmain to make .lib files, not .a files.
  13095. libext=lib
  13096. # Tell ltmain to make .dll files, not .so files.
  13097. shrext_cmds=.dll
  13098. # FIXME: Setting linknames here is a bad hack.
  13099. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13100. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13101. cp "$export_symbols" "$output_objdir/$soname.def";
  13102. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13103. else
  13104. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13105. fi~
  13106. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13107. linknames='
  13108. # The linker will not automatically build a static lib if we build a DLL.
  13109. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13110. enable_shared_with_static_runtimes_CXX=yes
  13111. # Don't use ranlib
  13112. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13113. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13114. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13115. case $lt_outputfile in
  13116. *.exe|*.EXE) ;;
  13117. *)
  13118. lt_outputfile=$lt_outputfile.exe
  13119. lt_tool_outputfile=$lt_tool_outputfile.exe
  13120. ;;
  13121. esac~
  13122. func_to_tool_file "$lt_outputfile"~
  13123. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13124. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13125. $RM "$lt_outputfile.manifest";
  13126. fi'
  13127. ;;
  13128. *)
  13129. # g++
  13130. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13131. # as there is no search path for DLLs.
  13132. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13133. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13134. allow_undefined_flag_CXX=unsupported
  13135. always_export_symbols_CXX=no
  13136. enable_shared_with_static_runtimes_CXX=yes
  13137. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13138. 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'
  13139. # If the export-symbols file already is a .def file, use it as
  13140. # is; otherwise, prepend EXPORTS...
  13141. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13142. cp $export_symbols $output_objdir/$soname.def;
  13143. else
  13144. echo EXPORTS > $output_objdir/$soname.def;
  13145. cat $export_symbols >> $output_objdir/$soname.def;
  13146. fi~
  13147. $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'
  13148. else
  13149. ld_shlibs_CXX=no
  13150. fi
  13151. ;;
  13152. esac
  13153. ;;
  13154. darwin* | rhapsody*)
  13155. archive_cmds_need_lc_CXX=no
  13156. hardcode_direct_CXX=no
  13157. hardcode_automatic_CXX=yes
  13158. hardcode_shlibpath_var_CXX=unsupported
  13159. if test yes = "$lt_cv_ld_force_load"; then
  13160. 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\"`'
  13161. else
  13162. whole_archive_flag_spec_CXX=''
  13163. fi
  13164. link_all_deplibs_CXX=yes
  13165. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13166. case $cc_basename in
  13167. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13168. *) _lt_dar_can_shared=$GCC ;;
  13169. esac
  13170. if test yes = "$_lt_dar_can_shared"; then
  13171. output_verbose_link_cmd=func_echo_all
  13172. 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"
  13173. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13174. 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"
  13175. 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"
  13176. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13177. 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"
  13178. 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"
  13179. fi
  13180. else
  13181. ld_shlibs_CXX=no
  13182. fi
  13183. ;;
  13184. os2*)
  13185. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13186. hardcode_minus_L_CXX=yes
  13187. allow_undefined_flag_CXX=unsupported
  13188. shrext_cmds=.dll
  13189. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13190. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13191. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13192. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13193. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13194. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13195. emximp -o $lib $output_objdir/$libname.def'
  13196. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13197. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13198. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13199. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13200. prefix_cmds="$SED"~
  13201. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13202. prefix_cmds="$prefix_cmds -e 1d";
  13203. fi~
  13204. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13205. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13206. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13207. emximp -o $lib $output_objdir/$libname.def'
  13208. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13209. enable_shared_with_static_runtimes_CXX=yes
  13210. file_list_spec_CXX='@'
  13211. ;;
  13212. dgux*)
  13213. case $cc_basename in
  13214. ec++*)
  13215. # FIXME: insert proper C++ library support
  13216. ld_shlibs_CXX=no
  13217. ;;
  13218. ghcx*)
  13219. # Green Hills C++ Compiler
  13220. # FIXME: insert proper C++ library support
  13221. ld_shlibs_CXX=no
  13222. ;;
  13223. *)
  13224. # FIXME: insert proper C++ library support
  13225. ld_shlibs_CXX=no
  13226. ;;
  13227. esac
  13228. ;;
  13229. freebsd2.*)
  13230. # C++ shared libraries reported to be fairly broken before
  13231. # switch to ELF
  13232. ld_shlibs_CXX=no
  13233. ;;
  13234. freebsd-elf*)
  13235. archive_cmds_need_lc_CXX=no
  13236. ;;
  13237. freebsd* | dragonfly* | midnightbsd*)
  13238. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13239. # conventions
  13240. ld_shlibs_CXX=yes
  13241. ;;
  13242. haiku*)
  13243. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13244. link_all_deplibs_CXX=yes
  13245. ;;
  13246. hpux9*)
  13247. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13248. hardcode_libdir_separator_CXX=:
  13249. export_dynamic_flag_spec_CXX='$wl-E'
  13250. hardcode_direct_CXX=yes
  13251. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13252. # but as the default
  13253. # location of the library.
  13254. case $cc_basename in
  13255. CC*)
  13256. # FIXME: insert proper C++ library support
  13257. ld_shlibs_CXX=no
  13258. ;;
  13259. aCC*)
  13260. 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'
  13261. # Commands to make compiler produce verbose output that lists
  13262. # what "hidden" libraries, object files and flags are used when
  13263. # linking a shared library.
  13264. #
  13265. # There doesn't appear to be a way to prevent this compiler from
  13266. # explicitly linking system object files so we need to strip them
  13267. # from the output so that they don't get included in the library
  13268. # dependencies.
  13269. 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"'
  13270. ;;
  13271. *)
  13272. if test yes = "$GXX"; then
  13273. 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'
  13274. else
  13275. # FIXME: insert proper C++ library support
  13276. ld_shlibs_CXX=no
  13277. fi
  13278. ;;
  13279. esac
  13280. ;;
  13281. hpux10*|hpux11*)
  13282. if test no = "$with_gnu_ld"; then
  13283. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13284. hardcode_libdir_separator_CXX=:
  13285. case $host_cpu in
  13286. hppa*64*|ia64*)
  13287. ;;
  13288. *)
  13289. export_dynamic_flag_spec_CXX='$wl-E'
  13290. ;;
  13291. esac
  13292. fi
  13293. case $host_cpu in
  13294. hppa*64*|ia64*)
  13295. hardcode_direct_CXX=no
  13296. hardcode_shlibpath_var_CXX=no
  13297. ;;
  13298. *)
  13299. hardcode_direct_CXX=yes
  13300. hardcode_direct_absolute_CXX=yes
  13301. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13302. # but as the default
  13303. # location of the library.
  13304. ;;
  13305. esac
  13306. case $cc_basename in
  13307. CC*)
  13308. # FIXME: insert proper C++ library support
  13309. ld_shlibs_CXX=no
  13310. ;;
  13311. aCC*)
  13312. case $host_cpu in
  13313. hppa*64*)
  13314. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13315. ;;
  13316. ia64*)
  13317. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13318. ;;
  13319. *)
  13320. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13321. ;;
  13322. esac
  13323. # Commands to make compiler produce verbose output that lists
  13324. # what "hidden" libraries, object files and flags are used when
  13325. # linking a shared library.
  13326. #
  13327. # There doesn't appear to be a way to prevent this compiler from
  13328. # explicitly linking system object files so we need to strip them
  13329. # from the output so that they don't get included in the library
  13330. # dependencies.
  13331. 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"'
  13332. ;;
  13333. *)
  13334. if test yes = "$GXX"; then
  13335. if test no = "$with_gnu_ld"; then
  13336. case $host_cpu in
  13337. hppa*64*)
  13338. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13339. ;;
  13340. ia64*)
  13341. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13342. ;;
  13343. *)
  13344. 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'
  13345. ;;
  13346. esac
  13347. fi
  13348. else
  13349. # FIXME: insert proper C++ library support
  13350. ld_shlibs_CXX=no
  13351. fi
  13352. ;;
  13353. esac
  13354. ;;
  13355. interix[3-9]*)
  13356. hardcode_direct_CXX=no
  13357. hardcode_shlibpath_var_CXX=no
  13358. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13359. export_dynamic_flag_spec_CXX='$wl-E'
  13360. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13361. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13362. # default) and relocated if they conflict, which is a slow very memory
  13363. # consuming and fragmenting process. To avoid this, we pick a random,
  13364. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13365. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13366. 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'
  13367. 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'
  13368. ;;
  13369. irix5* | irix6*)
  13370. case $cc_basename in
  13371. CC*)
  13372. # SGI C++
  13373. 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'
  13374. # Archives containing C++ object files must be created using
  13375. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13376. # necessary to make sure instantiated templates are included
  13377. # in the archive.
  13378. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13379. ;;
  13380. *)
  13381. if test yes = "$GXX"; then
  13382. if test no = "$with_gnu_ld"; then
  13383. 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'
  13384. else
  13385. 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'
  13386. fi
  13387. fi
  13388. link_all_deplibs_CXX=yes
  13389. ;;
  13390. esac
  13391. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13392. hardcode_libdir_separator_CXX=:
  13393. inherit_rpath_CXX=yes
  13394. ;;
  13395. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13396. case $cc_basename in
  13397. KCC*)
  13398. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13399. # KCC will only create a shared library if the output file
  13400. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13401. # to its proper name (with version) after linking.
  13402. 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'
  13403. 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'
  13404. # Commands to make compiler produce verbose output that lists
  13405. # what "hidden" libraries, object files and flags are used when
  13406. # linking a shared library.
  13407. #
  13408. # There doesn't appear to be a way to prevent this compiler from
  13409. # explicitly linking system object files so we need to strip them
  13410. # from the output so that they don't get included in the library
  13411. # dependencies.
  13412. 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"'
  13413. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13414. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13415. # Archives containing C++ object files must be created using
  13416. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13417. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13418. ;;
  13419. icpc* | ecpc* )
  13420. # Intel C++
  13421. with_gnu_ld=yes
  13422. # version 8.0 and above of icpc choke on multiply defined symbols
  13423. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13424. # earlier do not add the objects themselves.
  13425. case `$CC -V 2>&1` in
  13426. *"Version 7."*)
  13427. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13428. 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'
  13429. ;;
  13430. *) # Version 8.0 or newer
  13431. tmp_idyn=
  13432. case $host_cpu in
  13433. ia64*) tmp_idyn=' -i_dynamic';;
  13434. esac
  13435. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13436. 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'
  13437. ;;
  13438. esac
  13439. archive_cmds_need_lc_CXX=no
  13440. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13441. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13442. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13443. ;;
  13444. pgCC* | pgcpp*)
  13445. # Portland Group C++ compiler
  13446. case `$CC -V` in
  13447. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13448. prelink_cmds_CXX='tpldir=Template.dir~
  13449. rm -rf $tpldir~
  13450. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13451. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13452. old_archive_cmds_CXX='tpldir=Template.dir~
  13453. rm -rf $tpldir~
  13454. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13455. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13456. $RANLIB $oldlib'
  13457. archive_cmds_CXX='tpldir=Template.dir~
  13458. rm -rf $tpldir~
  13459. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13460. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13461. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13462. rm -rf $tpldir~
  13463. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13464. $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'
  13465. ;;
  13466. *) # Version 6 and above use weak symbols
  13467. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13468. 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'
  13469. ;;
  13470. esac
  13471. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13472. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13473. 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'
  13474. ;;
  13475. cxx*)
  13476. # Compaq C++
  13477. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13478. 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'
  13479. runpath_var=LD_RUN_PATH
  13480. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13481. hardcode_libdir_separator_CXX=:
  13482. # Commands to make compiler produce verbose output that lists
  13483. # what "hidden" libraries, object files and flags are used when
  13484. # linking a shared library.
  13485. #
  13486. # There doesn't appear to be a way to prevent this compiler from
  13487. # explicitly linking system object files so we need to strip them
  13488. # from the output so that they don't get included in the library
  13489. # dependencies.
  13490. 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'
  13491. ;;
  13492. xl* | mpixl* | bgxl*)
  13493. # IBM XL 8.0 on PPC, with GNU ld
  13494. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13495. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13496. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13497. if test yes = "$supports_anon_versioning"; then
  13498. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13499. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13500. echo "local: *; };" >> $output_objdir/$libname.ver~
  13501. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13502. fi
  13503. ;;
  13504. *)
  13505. case `$CC -V 2>&1 | sed 5q` in
  13506. *Sun\ C*)
  13507. # Sun C++ 5.9
  13508. no_undefined_flag_CXX=' -zdefs'
  13509. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13510. 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'
  13511. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13512. 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'
  13513. compiler_needs_object_CXX=yes
  13514. # Not sure whether something based on
  13515. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13516. # would be better.
  13517. output_verbose_link_cmd='func_echo_all'
  13518. # Archives containing C++ object files must be created using
  13519. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13520. # necessary to make sure instantiated templates are included
  13521. # in the archive.
  13522. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13523. ;;
  13524. esac
  13525. ;;
  13526. esac
  13527. ;;
  13528. lynxos*)
  13529. # FIXME: insert proper C++ library support
  13530. ld_shlibs_CXX=no
  13531. ;;
  13532. m88k*)
  13533. # FIXME: insert proper C++ library support
  13534. ld_shlibs_CXX=no
  13535. ;;
  13536. mvs*)
  13537. case $cc_basename in
  13538. cxx*)
  13539. # FIXME: insert proper C++ library support
  13540. ld_shlibs_CXX=no
  13541. ;;
  13542. *)
  13543. # FIXME: insert proper C++ library support
  13544. ld_shlibs_CXX=no
  13545. ;;
  13546. esac
  13547. ;;
  13548. netbsd*)
  13549. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13550. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13551. wlarc=
  13552. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13553. hardcode_direct_CXX=yes
  13554. hardcode_shlibpath_var_CXX=no
  13555. fi
  13556. # Workaround some broken pre-1.5 toolchains
  13557. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13558. ;;
  13559. *nto* | *qnx*)
  13560. ld_shlibs_CXX=yes
  13561. ;;
  13562. openbsd* | bitrig*)
  13563. if test -f /usr/libexec/ld.so; then
  13564. hardcode_direct_CXX=yes
  13565. hardcode_shlibpath_var_CXX=no
  13566. hardcode_direct_absolute_CXX=yes
  13567. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13568. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13569. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13570. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13571. export_dynamic_flag_spec_CXX='$wl-E'
  13572. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13573. fi
  13574. output_verbose_link_cmd=func_echo_all
  13575. else
  13576. ld_shlibs_CXX=no
  13577. fi
  13578. ;;
  13579. osf3* | osf4* | osf5*)
  13580. case $cc_basename in
  13581. KCC*)
  13582. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13583. # KCC will only create a shared library if the output file
  13584. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13585. # to its proper name (with version) after linking.
  13586. 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'
  13587. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13588. hardcode_libdir_separator_CXX=:
  13589. # Archives containing C++ object files must be created using
  13590. # the KAI C++ compiler.
  13591. case $host in
  13592. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13593. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13594. esac
  13595. ;;
  13596. RCC*)
  13597. # Rational C++ 2.4.1
  13598. # FIXME: insert proper C++ library support
  13599. ld_shlibs_CXX=no
  13600. ;;
  13601. cxx*)
  13602. case $host in
  13603. osf3*)
  13604. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13605. 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'
  13606. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13607. ;;
  13608. *)
  13609. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13610. 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'
  13611. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13612. echo "-hidden">> $lib.exp~
  13613. $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~
  13614. $RM $lib.exp'
  13615. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13616. ;;
  13617. esac
  13618. hardcode_libdir_separator_CXX=:
  13619. # Commands to make compiler produce verbose output that lists
  13620. # what "hidden" libraries, object files and flags are used when
  13621. # linking a shared library.
  13622. #
  13623. # There doesn't appear to be a way to prevent this compiler from
  13624. # explicitly linking system object files so we need to strip them
  13625. # from the output so that they don't get included in the library
  13626. # dependencies.
  13627. 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"'
  13628. ;;
  13629. *)
  13630. if test yes,no = "$GXX,$with_gnu_ld"; then
  13631. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13632. case $host in
  13633. osf3*)
  13634. 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'
  13635. ;;
  13636. *)
  13637. 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'
  13638. ;;
  13639. esac
  13640. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13641. hardcode_libdir_separator_CXX=:
  13642. # Commands to make compiler produce verbose output that lists
  13643. # what "hidden" libraries, object files and flags are used when
  13644. # linking a shared library.
  13645. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13646. else
  13647. # FIXME: insert proper C++ library support
  13648. ld_shlibs_CXX=no
  13649. fi
  13650. ;;
  13651. esac
  13652. ;;
  13653. psos*)
  13654. # FIXME: insert proper C++ library support
  13655. ld_shlibs_CXX=no
  13656. ;;
  13657. sunos4*)
  13658. case $cc_basename in
  13659. CC*)
  13660. # Sun C++ 4.x
  13661. # FIXME: insert proper C++ library support
  13662. ld_shlibs_CXX=no
  13663. ;;
  13664. lcc*)
  13665. # Lucid
  13666. # FIXME: insert proper C++ library support
  13667. ld_shlibs_CXX=no
  13668. ;;
  13669. *)
  13670. # FIXME: insert proper C++ library support
  13671. ld_shlibs_CXX=no
  13672. ;;
  13673. esac
  13674. ;;
  13675. solaris*)
  13676. case $cc_basename in
  13677. CC* | sunCC*)
  13678. # Sun C++ 4.2, 5.x and Centerline C++
  13679. archive_cmds_need_lc_CXX=yes
  13680. no_undefined_flag_CXX=' -zdefs'
  13681. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13682. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13683. $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'
  13684. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13685. hardcode_shlibpath_var_CXX=no
  13686. case $host_os in
  13687. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13688. *)
  13689. # The compiler driver will combine and reorder linker options,
  13690. # but understands '-z linker_flag'.
  13691. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13692. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13693. ;;
  13694. esac
  13695. link_all_deplibs_CXX=yes
  13696. output_verbose_link_cmd='func_echo_all'
  13697. # Archives containing C++ object files must be created using
  13698. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13699. # necessary to make sure instantiated templates are included
  13700. # in the archive.
  13701. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13702. ;;
  13703. gcx*)
  13704. # Green Hills C++ Compiler
  13705. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13706. # The C++ compiler must be used to create the archive.
  13707. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13708. ;;
  13709. *)
  13710. # GNU C++ compiler with Solaris linker
  13711. if test yes,no = "$GXX,$with_gnu_ld"; then
  13712. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13713. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13714. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13715. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13716. $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'
  13717. # Commands to make compiler produce verbose output that lists
  13718. # what "hidden" libraries, object files and flags are used when
  13719. # linking a shared library.
  13720. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13721. else
  13722. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13723. # platform.
  13724. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13725. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13726. $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'
  13727. # Commands to make compiler produce verbose output that lists
  13728. # what "hidden" libraries, object files and flags are used when
  13729. # linking a shared library.
  13730. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13731. fi
  13732. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13733. case $host_os in
  13734. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13735. *)
  13736. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13737. ;;
  13738. esac
  13739. fi
  13740. ;;
  13741. esac
  13742. ;;
  13743. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13744. no_undefined_flag_CXX='$wl-z,text'
  13745. archive_cmds_need_lc_CXX=no
  13746. hardcode_shlibpath_var_CXX=no
  13747. runpath_var='LD_RUN_PATH'
  13748. case $cc_basename in
  13749. CC*)
  13750. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13751. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13752. ;;
  13753. *)
  13754. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13755. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13756. ;;
  13757. esac
  13758. ;;
  13759. sysv5* | sco3.2v5* | sco5v6*)
  13760. # Note: We CANNOT use -z defs as we might desire, because we do not
  13761. # link with -lc, and that would cause any symbols used from libc to
  13762. # always be unresolved, which means just about no library would
  13763. # ever link correctly. If we're not using GNU ld we use -z text
  13764. # though, which does catch some bad symbols but isn't as heavy-handed
  13765. # as -z defs.
  13766. no_undefined_flag_CXX='$wl-z,text'
  13767. allow_undefined_flag_CXX='$wl-z,nodefs'
  13768. archive_cmds_need_lc_CXX=no
  13769. hardcode_shlibpath_var_CXX=no
  13770. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13771. hardcode_libdir_separator_CXX=':'
  13772. link_all_deplibs_CXX=yes
  13773. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13774. runpath_var='LD_RUN_PATH'
  13775. case $cc_basename in
  13776. CC*)
  13777. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13778. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13779. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13780. '"$old_archive_cmds_CXX"
  13781. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13782. '"$reload_cmds_CXX"
  13783. ;;
  13784. *)
  13785. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13786. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13787. ;;
  13788. esac
  13789. ;;
  13790. tandem*)
  13791. case $cc_basename in
  13792. NCC*)
  13793. # NonStop-UX NCC 3.20
  13794. # FIXME: insert proper C++ library support
  13795. ld_shlibs_CXX=no
  13796. ;;
  13797. *)
  13798. # FIXME: insert proper C++ library support
  13799. ld_shlibs_CXX=no
  13800. ;;
  13801. esac
  13802. ;;
  13803. vxworks*)
  13804. # FIXME: insert proper C++ library support
  13805. ld_shlibs_CXX=no
  13806. ;;
  13807. *)
  13808. # FIXME: insert proper C++ library support
  13809. ld_shlibs_CXX=no
  13810. ;;
  13811. esac
  13812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13813. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13814. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13815. GCC_CXX=$GXX
  13816. LD_CXX=$LD
  13817. ## CAVEAT EMPTOR:
  13818. ## There is no encapsulation within the following macros, do not change
  13819. ## the running order or otherwise move them around unless you know exactly
  13820. ## what you are doing...
  13821. # Dependencies to place before and after the object being linked:
  13822. predep_objects_CXX=
  13823. postdep_objects_CXX=
  13824. predeps_CXX=
  13825. postdeps_CXX=
  13826. compiler_lib_search_path_CXX=
  13827. cat > conftest.$ac_ext <<_LT_EOF
  13828. class Foo
  13829. {
  13830. public:
  13831. Foo (void) { a = 0; }
  13832. private:
  13833. int a;
  13834. };
  13835. _LT_EOF
  13836. _lt_libdeps_save_CFLAGS=$CFLAGS
  13837. case "$CC $CFLAGS " in #(
  13838. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13839. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13840. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13841. esac
  13842. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13843. (eval $ac_compile) 2>&5
  13844. ac_status=$?
  13845. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13846. test $ac_status = 0; }; then
  13847. # Parse the compiler output and extract the necessary
  13848. # objects, libraries and library flags.
  13849. # Sentinel used to keep track of whether or not we are before
  13850. # the conftest object file.
  13851. pre_test_object_deps_done=no
  13852. for p in `eval "$output_verbose_link_cmd"`; do
  13853. case $prev$p in
  13854. -L* | -R* | -l*)
  13855. # Some compilers place space between "-{L,R}" and the path.
  13856. # Remove the space.
  13857. if test x-L = "x$p" ||
  13858. test x-R = "x$p" ||
  13859. test x-l = "x$p"; then
  13860. prev=$p
  13861. continue
  13862. fi
  13863. # Expand the sysroot to ease extracting the directories later.
  13864. if test -z "$prev"; then
  13865. case $p in
  13866. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13867. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13868. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13869. esac
  13870. fi
  13871. case $p in
  13872. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13873. esac
  13874. if test no = "$pre_test_object_deps_done"; then
  13875. case $prev in
  13876. -L | -R)
  13877. # Internal compiler library paths should come after those
  13878. # provided the user. The postdeps already come after the
  13879. # user supplied libs so there is no need to process them.
  13880. if test -z "$compiler_lib_search_path_CXX"; then
  13881. compiler_lib_search_path_CXX=$prev$p
  13882. else
  13883. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13884. fi
  13885. ;;
  13886. # The "-l" case would never come before the object being
  13887. # linked, so don't bother handling this case.
  13888. esac
  13889. else
  13890. if test -z "$postdeps_CXX"; then
  13891. postdeps_CXX=$prev$p
  13892. else
  13893. postdeps_CXX="${postdeps_CXX} $prev$p"
  13894. fi
  13895. fi
  13896. prev=
  13897. ;;
  13898. *.lto.$objext) ;; # Ignore GCC LTO objects
  13899. *.$objext)
  13900. # This assumes that the test object file only shows up
  13901. # once in the compiler output.
  13902. if test "$p" = "conftest.$objext"; then
  13903. pre_test_object_deps_done=yes
  13904. continue
  13905. fi
  13906. if test no = "$pre_test_object_deps_done"; then
  13907. if test -z "$predep_objects_CXX"; then
  13908. predep_objects_CXX=$p
  13909. else
  13910. predep_objects_CXX="$predep_objects_CXX $p"
  13911. fi
  13912. else
  13913. if test -z "$postdep_objects_CXX"; then
  13914. postdep_objects_CXX=$p
  13915. else
  13916. postdep_objects_CXX="$postdep_objects_CXX $p"
  13917. fi
  13918. fi
  13919. ;;
  13920. *) ;; # Ignore the rest.
  13921. esac
  13922. done
  13923. # Clean up.
  13924. rm -f a.out a.exe
  13925. else
  13926. echo "libtool.m4: error: problem compiling CXX test program"
  13927. fi
  13928. $RM -f confest.$objext
  13929. CFLAGS=$_lt_libdeps_save_CFLAGS
  13930. # PORTME: override above test on systems where it is broken
  13931. case $host_os in
  13932. interix[3-9]*)
  13933. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13934. # hack all around it, let's just trust "g++" to DTRT.
  13935. predep_objects_CXX=
  13936. postdep_objects_CXX=
  13937. postdeps_CXX=
  13938. ;;
  13939. esac
  13940. case " $postdeps_CXX " in
  13941. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13942. esac
  13943. compiler_lib_search_dirs_CXX=
  13944. if test -n "${compiler_lib_search_path_CXX}"; then
  13945. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13946. fi
  13947. lt_prog_compiler_wl_CXX=
  13948. lt_prog_compiler_pic_CXX=
  13949. lt_prog_compiler_static_CXX=
  13950. # C++ specific cases for pic, static, wl, etc.
  13951. if test yes = "$GXX"; then
  13952. lt_prog_compiler_wl_CXX='-Wl,'
  13953. lt_prog_compiler_static_CXX='-static'
  13954. case $host_os in
  13955. aix*)
  13956. # All AIX code is PIC.
  13957. if test ia64 = "$host_cpu"; then
  13958. # AIX 5 now supports IA64 processor
  13959. lt_prog_compiler_static_CXX='-Bstatic'
  13960. fi
  13961. lt_prog_compiler_pic_CXX='-fPIC'
  13962. ;;
  13963. amigaos*)
  13964. case $host_cpu in
  13965. powerpc)
  13966. # see comment about AmigaOS4 .so support
  13967. lt_prog_compiler_pic_CXX='-fPIC'
  13968. ;;
  13969. m68k)
  13970. # FIXME: we need at least 68020 code to build shared libraries, but
  13971. # adding the '-m68020' flag to GCC prevents building anything better,
  13972. # like '-m68040'.
  13973. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13974. ;;
  13975. esac
  13976. ;;
  13977. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13978. # PIC is the default for these OSes.
  13979. ;;
  13980. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  13981. # This hack is so that the source file can tell whether it is being
  13982. # built for inclusion in a dll (and should export symbols for example).
  13983. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13984. # (--disable-auto-import) libraries
  13985. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13986. case $host_os in
  13987. os2*)
  13988. lt_prog_compiler_static_CXX='$wl-static'
  13989. ;;
  13990. esac
  13991. ;;
  13992. darwin* | rhapsody*)
  13993. # PIC is the default on this platform
  13994. # Common symbols not allowed in MH_DYLIB files
  13995. lt_prog_compiler_pic_CXX='-fno-common'
  13996. ;;
  13997. *djgpp*)
  13998. # DJGPP does not support shared libraries at all
  13999. lt_prog_compiler_pic_CXX=
  14000. ;;
  14001. haiku*)
  14002. # PIC is the default for Haiku.
  14003. # The "-static" flag exists, but is broken.
  14004. lt_prog_compiler_static_CXX=
  14005. ;;
  14006. interix[3-9]*)
  14007. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14008. # Instead, we relocate shared libraries at runtime.
  14009. ;;
  14010. sysv4*MP*)
  14011. if test -d /usr/nec; then
  14012. lt_prog_compiler_pic_CXX=-Kconform_pic
  14013. fi
  14014. ;;
  14015. hpux*)
  14016. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14017. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14018. # sets the default TLS model and affects inlining.
  14019. case $host_cpu in
  14020. hppa*64*)
  14021. ;;
  14022. *)
  14023. lt_prog_compiler_pic_CXX='-fPIC'
  14024. ;;
  14025. esac
  14026. ;;
  14027. *qnx* | *nto*)
  14028. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14029. # it will coredump.
  14030. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14031. ;;
  14032. *)
  14033. lt_prog_compiler_pic_CXX='-fPIC'
  14034. ;;
  14035. esac
  14036. else
  14037. case $host_os in
  14038. aix[4-9]*)
  14039. # All AIX code is PIC.
  14040. if test ia64 = "$host_cpu"; then
  14041. # AIX 5 now supports IA64 processor
  14042. lt_prog_compiler_static_CXX='-Bstatic'
  14043. else
  14044. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14045. fi
  14046. ;;
  14047. chorus*)
  14048. case $cc_basename in
  14049. cxch68*)
  14050. # Green Hills C++ Compiler
  14051. # _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"
  14052. ;;
  14053. esac
  14054. ;;
  14055. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  14056. # This hack is so that the source file can tell whether it is being
  14057. # built for inclusion in a dll (and should export symbols for example).
  14058. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14059. ;;
  14060. dgux*)
  14061. case $cc_basename in
  14062. ec++*)
  14063. lt_prog_compiler_pic_CXX='-KPIC'
  14064. ;;
  14065. ghcx*)
  14066. # Green Hills C++ Compiler
  14067. lt_prog_compiler_pic_CXX='-pic'
  14068. ;;
  14069. *)
  14070. ;;
  14071. esac
  14072. ;;
  14073. freebsd* | dragonfly* | midnightbsd*)
  14074. # FreeBSD uses GNU C++
  14075. ;;
  14076. hpux9* | hpux10* | hpux11*)
  14077. case $cc_basename in
  14078. CC*)
  14079. lt_prog_compiler_wl_CXX='-Wl,'
  14080. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14081. if test ia64 != "$host_cpu"; then
  14082. lt_prog_compiler_pic_CXX='+Z'
  14083. fi
  14084. ;;
  14085. aCC*)
  14086. lt_prog_compiler_wl_CXX='-Wl,'
  14087. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14088. case $host_cpu in
  14089. hppa*64*|ia64*)
  14090. # +Z the default
  14091. ;;
  14092. *)
  14093. lt_prog_compiler_pic_CXX='+Z'
  14094. ;;
  14095. esac
  14096. ;;
  14097. *)
  14098. ;;
  14099. esac
  14100. ;;
  14101. interix*)
  14102. # This is c89, which is MS Visual C++ (no shared libs)
  14103. # Anyone wants to do a port?
  14104. ;;
  14105. irix5* | irix6* | nonstopux*)
  14106. case $cc_basename in
  14107. CC*)
  14108. lt_prog_compiler_wl_CXX='-Wl,'
  14109. lt_prog_compiler_static_CXX='-non_shared'
  14110. # CC pic flag -KPIC is the default.
  14111. ;;
  14112. *)
  14113. ;;
  14114. esac
  14115. ;;
  14116. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14117. case $cc_basename in
  14118. KCC*)
  14119. # KAI C++ Compiler
  14120. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14121. lt_prog_compiler_pic_CXX='-fPIC'
  14122. ;;
  14123. ecpc* )
  14124. # old Intel C++ for x86_64, which still supported -KPIC.
  14125. lt_prog_compiler_wl_CXX='-Wl,'
  14126. lt_prog_compiler_pic_CXX='-KPIC'
  14127. lt_prog_compiler_static_CXX='-static'
  14128. ;;
  14129. icpc* )
  14130. # Intel C++, used to be incompatible with GCC.
  14131. # ICC 10 doesn't accept -KPIC any more.
  14132. lt_prog_compiler_wl_CXX='-Wl,'
  14133. lt_prog_compiler_pic_CXX='-fPIC'
  14134. lt_prog_compiler_static_CXX='-static'
  14135. ;;
  14136. pgCC* | pgcpp*)
  14137. # Portland Group C++ compiler
  14138. lt_prog_compiler_wl_CXX='-Wl,'
  14139. lt_prog_compiler_pic_CXX='-fpic'
  14140. lt_prog_compiler_static_CXX='-Bstatic'
  14141. ;;
  14142. cxx*)
  14143. # Compaq C++
  14144. # Make sure the PIC flag is empty. It appears that all Alpha
  14145. # Linux and Compaq Tru64 Unix objects are PIC.
  14146. lt_prog_compiler_pic_CXX=
  14147. lt_prog_compiler_static_CXX='-non_shared'
  14148. ;;
  14149. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14150. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14151. lt_prog_compiler_wl_CXX='-Wl,'
  14152. lt_prog_compiler_pic_CXX='-qpic'
  14153. lt_prog_compiler_static_CXX='-qstaticlink'
  14154. ;;
  14155. *)
  14156. case `$CC -V 2>&1 | sed 5q` in
  14157. *Sun\ C*)
  14158. # Sun C++ 5.9
  14159. lt_prog_compiler_pic_CXX='-KPIC'
  14160. lt_prog_compiler_static_CXX='-Bstatic'
  14161. lt_prog_compiler_wl_CXX='-Qoption ld '
  14162. ;;
  14163. esac
  14164. ;;
  14165. esac
  14166. ;;
  14167. lynxos*)
  14168. ;;
  14169. m88k*)
  14170. ;;
  14171. mvs*)
  14172. case $cc_basename in
  14173. cxx*)
  14174. lt_prog_compiler_pic_CXX='-W c,exportall'
  14175. ;;
  14176. *)
  14177. ;;
  14178. esac
  14179. ;;
  14180. netbsd*)
  14181. ;;
  14182. *qnx* | *nto*)
  14183. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14184. # it will coredump.
  14185. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14186. ;;
  14187. osf3* | osf4* | osf5*)
  14188. case $cc_basename in
  14189. KCC*)
  14190. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14191. ;;
  14192. RCC*)
  14193. # Rational C++ 2.4.1
  14194. lt_prog_compiler_pic_CXX='-pic'
  14195. ;;
  14196. cxx*)
  14197. # Digital/Compaq C++
  14198. lt_prog_compiler_wl_CXX='-Wl,'
  14199. # Make sure the PIC flag is empty. It appears that all Alpha
  14200. # Linux and Compaq Tru64 Unix objects are PIC.
  14201. lt_prog_compiler_pic_CXX=
  14202. lt_prog_compiler_static_CXX='-non_shared'
  14203. ;;
  14204. *)
  14205. ;;
  14206. esac
  14207. ;;
  14208. psos*)
  14209. ;;
  14210. solaris*)
  14211. case $cc_basename in
  14212. CC* | sunCC*)
  14213. # Sun C++ 4.2, 5.x and Centerline C++
  14214. lt_prog_compiler_pic_CXX='-KPIC'
  14215. lt_prog_compiler_static_CXX='-Bstatic'
  14216. lt_prog_compiler_wl_CXX='-Qoption ld '
  14217. ;;
  14218. gcx*)
  14219. # Green Hills C++ Compiler
  14220. lt_prog_compiler_pic_CXX='-PIC'
  14221. ;;
  14222. *)
  14223. ;;
  14224. esac
  14225. ;;
  14226. sunos4*)
  14227. case $cc_basename in
  14228. CC*)
  14229. # Sun C++ 4.x
  14230. lt_prog_compiler_pic_CXX='-pic'
  14231. lt_prog_compiler_static_CXX='-Bstatic'
  14232. ;;
  14233. lcc*)
  14234. # Lucid
  14235. lt_prog_compiler_pic_CXX='-pic'
  14236. ;;
  14237. *)
  14238. ;;
  14239. esac
  14240. ;;
  14241. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14242. case $cc_basename in
  14243. CC*)
  14244. lt_prog_compiler_wl_CXX='-Wl,'
  14245. lt_prog_compiler_pic_CXX='-KPIC'
  14246. lt_prog_compiler_static_CXX='-Bstatic'
  14247. ;;
  14248. esac
  14249. ;;
  14250. tandem*)
  14251. case $cc_basename in
  14252. NCC*)
  14253. # NonStop-UX NCC 3.20
  14254. lt_prog_compiler_pic_CXX='-KPIC'
  14255. ;;
  14256. *)
  14257. ;;
  14258. esac
  14259. ;;
  14260. vxworks*)
  14261. ;;
  14262. *)
  14263. lt_prog_compiler_can_build_shared_CXX=no
  14264. ;;
  14265. esac
  14266. fi
  14267. case $host_os in
  14268. # For platforms that do not support PIC, -DPIC is meaningless:
  14269. *djgpp*)
  14270. lt_prog_compiler_pic_CXX=
  14271. ;;
  14272. *)
  14273. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14274. ;;
  14275. esac
  14276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14277. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14278. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14279. then :
  14280. printf %s "(cached) " >&6
  14281. else $as_nop
  14282. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14283. fi
  14284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14285. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14286. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14287. #
  14288. # Check to make sure the PIC flag actually works.
  14289. #
  14290. if test -n "$lt_prog_compiler_pic_CXX"; then
  14291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14292. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14293. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14294. then :
  14295. printf %s "(cached) " >&6
  14296. else $as_nop
  14297. lt_cv_prog_compiler_pic_works_CXX=no
  14298. ac_outfile=conftest.$ac_objext
  14299. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14300. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14301. # Insert the option either (1) after the last *FLAGS variable, or
  14302. # (2) before a word containing "conftest.", or (3) at the end.
  14303. # Note that $ac_compile itself does not contain backslashes and begins
  14304. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14305. # The option is referenced via a variable to avoid confusing sed.
  14306. lt_compile=`echo "$ac_compile" | $SED \
  14307. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14308. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14309. -e 's:$: $lt_compiler_flag:'`
  14310. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14311. (eval "$lt_compile" 2>conftest.err)
  14312. ac_status=$?
  14313. cat conftest.err >&5
  14314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14315. if (exit $ac_status) && test -s "$ac_outfile"; then
  14316. # The compiler can only warn and ignore the option if not recognized
  14317. # So say no if there are warnings other than the usual output.
  14318. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14319. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14320. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14321. lt_cv_prog_compiler_pic_works_CXX=yes
  14322. fi
  14323. fi
  14324. $RM conftest*
  14325. fi
  14326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14327. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14328. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14329. case $lt_prog_compiler_pic_CXX in
  14330. "" | " "*) ;;
  14331. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14332. esac
  14333. else
  14334. lt_prog_compiler_pic_CXX=
  14335. lt_prog_compiler_can_build_shared_CXX=no
  14336. fi
  14337. fi
  14338. #
  14339. # Check to make sure the static flag actually works.
  14340. #
  14341. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14343. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14344. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14345. then :
  14346. printf %s "(cached) " >&6
  14347. else $as_nop
  14348. lt_cv_prog_compiler_static_works_CXX=no
  14349. save_LDFLAGS=$LDFLAGS
  14350. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14351. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14352. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14353. # The linker can only warn and ignore the option if not recognized
  14354. # So say no if there are warnings
  14355. if test -s conftest.err; then
  14356. # Append any errors to the config.log.
  14357. cat conftest.err 1>&5
  14358. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14359. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14360. if diff conftest.exp conftest.er2 >/dev/null; then
  14361. lt_cv_prog_compiler_static_works_CXX=yes
  14362. fi
  14363. else
  14364. lt_cv_prog_compiler_static_works_CXX=yes
  14365. fi
  14366. fi
  14367. $RM -r conftest*
  14368. LDFLAGS=$save_LDFLAGS
  14369. fi
  14370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14371. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14372. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14373. :
  14374. else
  14375. lt_prog_compiler_static_CXX=
  14376. fi
  14377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14378. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14379. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14380. then :
  14381. printf %s "(cached) " >&6
  14382. else $as_nop
  14383. lt_cv_prog_compiler_c_o_CXX=no
  14384. $RM -r conftest 2>/dev/null
  14385. mkdir conftest
  14386. cd conftest
  14387. mkdir out
  14388. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14389. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14390. # Insert the option either (1) after the last *FLAGS variable, or
  14391. # (2) before a word containing "conftest.", or (3) at the end.
  14392. # Note that $ac_compile itself does not contain backslashes and begins
  14393. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14394. lt_compile=`echo "$ac_compile" | $SED \
  14395. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14396. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14397. -e 's:$: $lt_compiler_flag:'`
  14398. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14399. (eval "$lt_compile" 2>out/conftest.err)
  14400. ac_status=$?
  14401. cat out/conftest.err >&5
  14402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14403. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14404. then
  14405. # The compiler can only warn and ignore the option if not recognized
  14406. # So say no if there are warnings
  14407. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14408. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14409. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14410. lt_cv_prog_compiler_c_o_CXX=yes
  14411. fi
  14412. fi
  14413. chmod u+w . 2>&5
  14414. $RM conftest*
  14415. # SGI C++ compiler will create directory out/ii_files/ for
  14416. # template instantiation
  14417. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14418. $RM out/* && rmdir out
  14419. cd ..
  14420. $RM -r conftest
  14421. $RM conftest*
  14422. fi
  14423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14424. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14426. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14427. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14428. then :
  14429. printf %s "(cached) " >&6
  14430. else $as_nop
  14431. lt_cv_prog_compiler_c_o_CXX=no
  14432. $RM -r conftest 2>/dev/null
  14433. mkdir conftest
  14434. cd conftest
  14435. mkdir out
  14436. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14437. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14438. # Insert the option either (1) after the last *FLAGS variable, or
  14439. # (2) before a word containing "conftest.", or (3) at the end.
  14440. # Note that $ac_compile itself does not contain backslashes and begins
  14441. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14442. lt_compile=`echo "$ac_compile" | $SED \
  14443. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14444. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14445. -e 's:$: $lt_compiler_flag:'`
  14446. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14447. (eval "$lt_compile" 2>out/conftest.err)
  14448. ac_status=$?
  14449. cat out/conftest.err >&5
  14450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14451. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14452. then
  14453. # The compiler can only warn and ignore the option if not recognized
  14454. # So say no if there are warnings
  14455. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14456. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14457. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14458. lt_cv_prog_compiler_c_o_CXX=yes
  14459. fi
  14460. fi
  14461. chmod u+w . 2>&5
  14462. $RM conftest*
  14463. # SGI C++ compiler will create directory out/ii_files/ for
  14464. # template instantiation
  14465. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14466. $RM out/* && rmdir out
  14467. cd ..
  14468. $RM -r conftest
  14469. $RM conftest*
  14470. fi
  14471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14472. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14473. hard_links=nottested
  14474. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14475. # do not overwrite the value of need_locks provided by the user
  14476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14477. printf %s "checking if we can lock with hard links... " >&6; }
  14478. hard_links=yes
  14479. $RM conftest*
  14480. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14481. touch conftest.a
  14482. ln conftest.a conftest.b 2>&5 || hard_links=no
  14483. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14485. printf "%s\n" "$hard_links" >&6; }
  14486. if test no = "$hard_links"; then
  14487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14488. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14489. need_locks=warn
  14490. fi
  14491. else
  14492. need_locks=no
  14493. fi
  14494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14495. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14496. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14497. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14498. case $host_os in
  14499. aix[4-9]*)
  14500. # If we're using GNU nm, then we don't want the "-C" option.
  14501. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14502. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14503. # weak defined symbols like other global defined symbols, whereas
  14504. # GNU nm marks them as "W".
  14505. # While the 'weak' keyword is ignored in the Export File, we need
  14506. # it in the Import File for the 'aix-soname' feature, so we have
  14507. # to replace the "-B" option with "-P" for AIX nm.
  14508. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14509. 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'
  14510. else
  14511. 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'
  14512. fi
  14513. ;;
  14514. pw32*)
  14515. export_symbols_cmds_CXX=$ltdll_cmds
  14516. ;;
  14517. cygwin* | mingw* | windows* | cegcc*)
  14518. case $cc_basename in
  14519. cl* | icl*)
  14520. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14521. ;;
  14522. *)
  14523. 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'
  14524. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14525. ;;
  14526. esac
  14527. ;;
  14528. *)
  14529. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14530. ;;
  14531. esac
  14532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14533. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14534. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14535. with_gnu_ld_CXX=$with_gnu_ld
  14536. #
  14537. # Do we need to explicitly link libc?
  14538. #
  14539. case "x$archive_cmds_need_lc_CXX" in
  14540. x|xyes)
  14541. # Assume -lc should be added
  14542. archive_cmds_need_lc_CXX=yes
  14543. if test yes,yes = "$GCC,$enable_shared"; then
  14544. case $archive_cmds_CXX in
  14545. *'~'*)
  14546. # FIXME: we may have to deal with multi-command sequences.
  14547. ;;
  14548. '$CC '*)
  14549. # Test whether the compiler implicitly links with -lc since on some
  14550. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14551. # to ld, don't add -lc before -lgcc.
  14552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14553. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14554. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14555. then :
  14556. printf %s "(cached) " >&6
  14557. else $as_nop
  14558. $RM conftest*
  14559. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14560. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14561. (eval $ac_compile) 2>&5
  14562. ac_status=$?
  14563. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14564. test $ac_status = 0; } 2>conftest.err; then
  14565. soname=conftest
  14566. lib=conftest
  14567. libobjs=conftest.$ac_objext
  14568. deplibs=
  14569. wl=$lt_prog_compiler_wl_CXX
  14570. pic_flag=$lt_prog_compiler_pic_CXX
  14571. compiler_flags=-v
  14572. linker_flags=-v
  14573. verstring=
  14574. output_objdir=.
  14575. libname=conftest
  14576. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14577. allow_undefined_flag_CXX=
  14578. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14579. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14580. ac_status=$?
  14581. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14582. test $ac_status = 0; }
  14583. then
  14584. lt_cv_archive_cmds_need_lc_CXX=no
  14585. else
  14586. lt_cv_archive_cmds_need_lc_CXX=yes
  14587. fi
  14588. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14589. else
  14590. cat conftest.err 1>&5
  14591. fi
  14592. $RM conftest*
  14593. fi
  14594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14595. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14596. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14597. ;;
  14598. esac
  14599. fi
  14600. ;;
  14601. esac
  14602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14603. printf %s "checking dynamic linker characteristics... " >&6; }
  14604. library_names_spec=
  14605. libname_spec='lib$name'
  14606. soname_spec=
  14607. shrext_cmds=.so
  14608. postinstall_cmds=
  14609. postuninstall_cmds=
  14610. finish_cmds=
  14611. finish_eval=
  14612. shlibpath_var=
  14613. shlibpath_overrides_runpath=unknown
  14614. version_type=none
  14615. dynamic_linker="$host_os ld.so"
  14616. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14617. need_lib_prefix=unknown
  14618. hardcode_into_libs=no
  14619. # when you set need_version to no, make sure it does not cause -set_version
  14620. # flags to be left without arguments
  14621. need_version=unknown
  14622. case $host_os in
  14623. aix3*)
  14624. version_type=linux # correct to gnu/linux during the next big refactor
  14625. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14626. shlibpath_var=LIBPATH
  14627. # AIX 3 has no versioning support, so we append a major version to the name.
  14628. soname_spec='$libname$release$shared_ext$major'
  14629. ;;
  14630. aix[4-9]*)
  14631. version_type=linux # correct to gnu/linux during the next big refactor
  14632. need_lib_prefix=no
  14633. need_version=no
  14634. hardcode_into_libs=yes
  14635. if test ia64 = "$host_cpu"; then
  14636. # AIX 5 supports IA64
  14637. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14638. shlibpath_var=LD_LIBRARY_PATH
  14639. else
  14640. # With GCC up to 2.95.x, collect2 would create an import file
  14641. # for dependence libraries. The import file would start with
  14642. # the line '#! .'. This would cause the generated library to
  14643. # depend on '.', always an invalid library. This was fixed in
  14644. # development snapshots of GCC prior to 3.0.
  14645. case $host_os in
  14646. aix4 | aix4.[01] | aix4.[01].*)
  14647. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14648. echo ' yes '
  14649. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14650. :
  14651. else
  14652. can_build_shared=no
  14653. fi
  14654. ;;
  14655. esac
  14656. # Using Import Files as archive members, it is possible to support
  14657. # filename-based versioning of shared library archives on AIX. While
  14658. # this would work for both with and without runtime linking, it will
  14659. # prevent static linking of such archives. So we do filename-based
  14660. # shared library versioning with .so extension only, which is used
  14661. # when both runtime linking and shared linking is enabled.
  14662. # Unfortunately, runtime linking may impact performance, so we do
  14663. # not want this to be the default eventually. Also, we use the
  14664. # versioned .so libs for executables only if there is the -brtl
  14665. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14666. # To allow for filename-based versioning support, we need to create
  14667. # libNAME.so.V as an archive file, containing:
  14668. # *) an Import File, referring to the versioned filename of the
  14669. # archive as well as the shared archive member, telling the
  14670. # bitwidth (32 or 64) of that shared object, and providing the
  14671. # list of exported symbols of that shared object, eventually
  14672. # decorated with the 'weak' keyword
  14673. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14674. # it being seen by the linker.
  14675. # At run time we better use the real file rather than another symlink,
  14676. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14677. case $with_aix_soname,$aix_use_runtimelinking in
  14678. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14679. # soname into executable. Probably we can add versioning support to
  14680. # collect2, so additional links can be useful in future.
  14681. aix,yes) # traditional libtool
  14682. dynamic_linker='AIX unversionable lib.so'
  14683. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14684. # instead of lib<name>.a to let people know that these are not
  14685. # typical AIX shared libraries.
  14686. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14687. ;;
  14688. aix,no) # traditional AIX only
  14689. dynamic_linker='AIX lib.a(lib.so.V)'
  14690. # We preserve .a as extension for shared libraries through AIX4.2
  14691. # and later when we are not doing run time linking.
  14692. library_names_spec='$libname$release.a $libname.a'
  14693. soname_spec='$libname$release$shared_ext$major'
  14694. ;;
  14695. svr4,*) # full svr4 only
  14696. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14697. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14698. # We do not specify a path in Import Files, so LIBPATH fires.
  14699. shlibpath_overrides_runpath=yes
  14700. ;;
  14701. *,yes) # both, prefer svr4
  14702. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14703. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14704. # unpreferred sharedlib libNAME.a needs extra handling
  14705. 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"'
  14706. 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"'
  14707. # We do not specify a path in Import Files, so LIBPATH fires.
  14708. shlibpath_overrides_runpath=yes
  14709. ;;
  14710. *,no) # both, prefer aix
  14711. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14712. library_names_spec='$libname$release.a $libname.a'
  14713. soname_spec='$libname$release$shared_ext$major'
  14714. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14715. 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)'
  14716. 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"'
  14717. ;;
  14718. esac
  14719. shlibpath_var=LIBPATH
  14720. fi
  14721. ;;
  14722. amigaos*)
  14723. case $host_cpu in
  14724. powerpc)
  14725. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14726. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14727. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14728. ;;
  14729. m68k)
  14730. library_names_spec='$libname.ixlibrary $libname.a'
  14731. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14732. 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'
  14733. ;;
  14734. esac
  14735. ;;
  14736. beos*)
  14737. library_names_spec='$libname$shared_ext'
  14738. dynamic_linker="$host_os ld.so"
  14739. shlibpath_var=LIBRARY_PATH
  14740. ;;
  14741. bsdi[45]*)
  14742. version_type=linux # correct to gnu/linux during the next big refactor
  14743. need_version=no
  14744. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14745. soname_spec='$libname$release$shared_ext$major'
  14746. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14747. shlibpath_var=LD_LIBRARY_PATH
  14748. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14749. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14750. # the default ld.so.conf also contains /usr/contrib/lib and
  14751. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14752. # libtool to hard-code these into programs
  14753. ;;
  14754. cygwin* | mingw* | windows* | pw32* | cegcc*)
  14755. version_type=windows
  14756. shrext_cmds=.dll
  14757. need_version=no
  14758. need_lib_prefix=no
  14759. case $GCC,$cc_basename in
  14760. yes,*)
  14761. # gcc
  14762. library_names_spec='$libname.dll.a'
  14763. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14764. postinstall_cmds='base_file=`basename \$file`~
  14765. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14766. dldir=$destdir/`dirname \$dlpath`~
  14767. test -d \$dldir || mkdir -p \$dldir~
  14768. $install_prog $dir/$dlname \$dldir/$dlname~
  14769. chmod a+x \$dldir/$dlname~
  14770. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14771. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14772. fi'
  14773. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14774. dlpath=$dir/\$dldll~
  14775. $RM \$dlpath'
  14776. shlibpath_overrides_runpath=yes
  14777. case $host_os in
  14778. cygwin*)
  14779. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14780. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14781. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14782. ;;
  14783. mingw* | windows* | cegcc*)
  14784. # MinGW DLLs use traditional 'lib' prefix
  14785. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14786. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14787. ;;
  14788. pw32*)
  14789. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14790. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14791. ;;
  14792. esac
  14793. dynamic_linker='Win32 ld.exe'
  14794. ;;
  14795. *,cl* | *,icl*)
  14796. # Native MSVC or ICC
  14797. libname_spec='$name'
  14798. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14799. library_names_spec='$libname.dll.lib'
  14800. case $build_os in
  14801. mingw* | windows*)
  14802. sys_lib_search_path_spec=
  14803. lt_save_ifs=$IFS
  14804. IFS=';'
  14805. for lt_path in $LIB
  14806. do
  14807. IFS=$lt_save_ifs
  14808. # Let DOS variable expansion print the short 8.3 style file name.
  14809. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14810. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14811. done
  14812. IFS=$lt_save_ifs
  14813. # Convert to MSYS style.
  14814. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14815. ;;
  14816. cygwin*)
  14817. # Convert to unix form, then to dos form, then back to unix form
  14818. # but this time dos style (no spaces!) so that the unix form looks
  14819. # like /cygdrive/c/PROGRA~1:/cygdr...
  14820. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14821. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14822. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14823. ;;
  14824. *)
  14825. sys_lib_search_path_spec=$LIB
  14826. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14827. # It is most probably a Windows format PATH.
  14828. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14829. else
  14830. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14831. fi
  14832. # FIXME: find the short name or the path components, as spaces are
  14833. # common. (e.g. "Program Files" -> "PROGRA~1")
  14834. ;;
  14835. esac
  14836. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14837. postinstall_cmds='base_file=`basename \$file`~
  14838. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14839. dldir=$destdir/`dirname \$dlpath`~
  14840. test -d \$dldir || mkdir -p \$dldir~
  14841. $install_prog $dir/$dlname \$dldir/$dlname'
  14842. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14843. dlpath=$dir/\$dldll~
  14844. $RM \$dlpath'
  14845. shlibpath_overrides_runpath=yes
  14846. dynamic_linker='Win32 link.exe'
  14847. ;;
  14848. *)
  14849. # Assume MSVC and ICC wrapper
  14850. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14851. dynamic_linker='Win32 ld.exe'
  14852. ;;
  14853. esac
  14854. # FIXME: first we should search . and the directory the executable is in
  14855. shlibpath_var=PATH
  14856. ;;
  14857. darwin* | rhapsody*)
  14858. dynamic_linker="$host_os dyld"
  14859. version_type=darwin
  14860. need_lib_prefix=no
  14861. need_version=no
  14862. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14863. soname_spec='$libname$release$major$shared_ext'
  14864. shlibpath_overrides_runpath=yes
  14865. shlibpath_var=DYLD_LIBRARY_PATH
  14866. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14867. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14868. ;;
  14869. dgux*)
  14870. version_type=linux # correct to gnu/linux during the next big refactor
  14871. need_lib_prefix=no
  14872. need_version=no
  14873. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14874. soname_spec='$libname$release$shared_ext$major'
  14875. shlibpath_var=LD_LIBRARY_PATH
  14876. ;;
  14877. freebsd* | dragonfly* | midnightbsd*)
  14878. # DragonFly does not have aout. When/if they implement a new
  14879. # versioning mechanism, adjust this.
  14880. if test -x /usr/bin/objformat; then
  14881. objformat=`/usr/bin/objformat`
  14882. else
  14883. case $host_os in
  14884. freebsd[23].*) objformat=aout ;;
  14885. *) objformat=elf ;;
  14886. esac
  14887. fi
  14888. version_type=freebsd-$objformat
  14889. case $version_type in
  14890. freebsd-elf*)
  14891. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14892. soname_spec='$libname$release$shared_ext$major'
  14893. need_version=no
  14894. need_lib_prefix=no
  14895. ;;
  14896. freebsd-*)
  14897. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14898. need_version=yes
  14899. ;;
  14900. esac
  14901. shlibpath_var=LD_LIBRARY_PATH
  14902. case $host_os in
  14903. freebsd2.*)
  14904. shlibpath_overrides_runpath=yes
  14905. ;;
  14906. freebsd3.[01]* | freebsdelf3.[01]*)
  14907. shlibpath_overrides_runpath=yes
  14908. hardcode_into_libs=yes
  14909. ;;
  14910. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14911. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14912. shlibpath_overrides_runpath=no
  14913. hardcode_into_libs=yes
  14914. ;;
  14915. *) # from 4.6 on, and DragonFly
  14916. shlibpath_overrides_runpath=yes
  14917. hardcode_into_libs=yes
  14918. ;;
  14919. esac
  14920. ;;
  14921. haiku*)
  14922. version_type=linux # correct to gnu/linux during the next big refactor
  14923. need_lib_prefix=no
  14924. need_version=no
  14925. dynamic_linker="$host_os runtime_loader"
  14926. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14927. soname_spec='$libname$release$shared_ext$major'
  14928. shlibpath_var=LIBRARY_PATH
  14929. shlibpath_overrides_runpath=no
  14930. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14931. hardcode_into_libs=yes
  14932. ;;
  14933. hpux9* | hpux10* | hpux11*)
  14934. # Give a soname corresponding to the major version so that dld.sl refuses to
  14935. # link against other versions.
  14936. version_type=sunos
  14937. need_lib_prefix=no
  14938. need_version=no
  14939. case $host_cpu in
  14940. ia64*)
  14941. shrext_cmds='.so'
  14942. hardcode_into_libs=yes
  14943. dynamic_linker="$host_os dld.so"
  14944. shlibpath_var=LD_LIBRARY_PATH
  14945. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14946. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14947. soname_spec='$libname$release$shared_ext$major'
  14948. if test 32 = "$HPUX_IA64_MODE"; then
  14949. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14950. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14951. else
  14952. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14953. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14954. fi
  14955. ;;
  14956. hppa*64*)
  14957. shrext_cmds='.sl'
  14958. hardcode_into_libs=yes
  14959. dynamic_linker="$host_os dld.sl"
  14960. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14961. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14962. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14963. soname_spec='$libname$release$shared_ext$major'
  14964. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14965. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14966. ;;
  14967. *)
  14968. shrext_cmds='.sl'
  14969. dynamic_linker="$host_os dld.sl"
  14970. shlibpath_var=SHLIB_PATH
  14971. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14972. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14973. soname_spec='$libname$release$shared_ext$major'
  14974. ;;
  14975. esac
  14976. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14977. postinstall_cmds='chmod 555 $lib'
  14978. # or fails outright, so override atomically:
  14979. install_override_mode=555
  14980. ;;
  14981. interix[3-9]*)
  14982. version_type=linux # correct to gnu/linux during the next big refactor
  14983. need_lib_prefix=no
  14984. need_version=no
  14985. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14986. soname_spec='$libname$release$shared_ext$major'
  14987. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14988. shlibpath_var=LD_LIBRARY_PATH
  14989. shlibpath_overrides_runpath=no
  14990. hardcode_into_libs=yes
  14991. ;;
  14992. irix5* | irix6* | nonstopux*)
  14993. case $host_os in
  14994. nonstopux*) version_type=nonstopux ;;
  14995. *)
  14996. if test yes = "$lt_cv_prog_gnu_ld"; then
  14997. version_type=linux # correct to gnu/linux during the next big refactor
  14998. else
  14999. version_type=irix
  15000. fi ;;
  15001. esac
  15002. need_lib_prefix=no
  15003. need_version=no
  15004. soname_spec='$libname$release$shared_ext$major'
  15005. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  15006. case $host_os in
  15007. irix5* | nonstopux*)
  15008. libsuff= shlibsuff=
  15009. ;;
  15010. *)
  15011. case $LD in # libtool.m4 will add one of these switches to LD
  15012. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15013. libsuff= shlibsuff= libmagic=32-bit;;
  15014. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15015. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15016. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15017. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15018. *) libsuff= shlibsuff= libmagic=never-match;;
  15019. esac
  15020. ;;
  15021. esac
  15022. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15023. shlibpath_overrides_runpath=no
  15024. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  15025. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  15026. hardcode_into_libs=yes
  15027. ;;
  15028. # No shared lib support for Linux oldld, aout, or coff.
  15029. linux*oldld* | linux*aout* | linux*coff*)
  15030. dynamic_linker=no
  15031. ;;
  15032. linux*android*)
  15033. version_type=none # Android doesn't support versioned libraries.
  15034. need_lib_prefix=no
  15035. need_version=no
  15036. library_names_spec='$libname$release$shared_ext'
  15037. soname_spec='$libname$release$shared_ext'
  15038. finish_cmds=
  15039. shlibpath_var=LD_LIBRARY_PATH
  15040. shlibpath_overrides_runpath=yes
  15041. # This implies no fast_install, which is unacceptable.
  15042. # Some rework will be needed to allow for fast_install
  15043. # before this can be enabled.
  15044. hardcode_into_libs=yes
  15045. dynamic_linker='Android linker'
  15046. # Don't embed -rpath directories since the linker doesn't support them.
  15047. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15048. ;;
  15049. # This must be glibc/ELF.
  15050. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15051. version_type=linux # correct to gnu/linux during the next big refactor
  15052. need_lib_prefix=no
  15053. need_version=no
  15054. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15055. soname_spec='$libname$release$shared_ext$major'
  15056. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15057. shlibpath_var=LD_LIBRARY_PATH
  15058. shlibpath_overrides_runpath=no
  15059. # Some binutils ld are patched to set DT_RUNPATH
  15060. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15061. then :
  15062. printf %s "(cached) " >&6
  15063. else $as_nop
  15064. lt_cv_shlibpath_overrides_runpath=no
  15065. save_LDFLAGS=$LDFLAGS
  15066. save_libdir=$libdir
  15067. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15068. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15070. /* end confdefs.h. */
  15071. int
  15072. main (void)
  15073. {
  15074. ;
  15075. return 0;
  15076. }
  15077. _ACEOF
  15078. if ac_fn_cxx_try_link "$LINENO"
  15079. then :
  15080. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15081. then :
  15082. lt_cv_shlibpath_overrides_runpath=yes
  15083. fi
  15084. fi
  15085. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15086. conftest$ac_exeext conftest.$ac_ext
  15087. LDFLAGS=$save_LDFLAGS
  15088. libdir=$save_libdir
  15089. fi
  15090. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15091. # This implies no fast_install, which is unacceptable.
  15092. # Some rework will be needed to allow for fast_install
  15093. # before this can be enabled.
  15094. hardcode_into_libs=yes
  15095. # Add ABI-specific directories to the system library path.
  15096. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15097. # Ideally, we could use ldconfig to report *all* directores which are
  15098. # searched for libraries, however this is still not possible. Aside from not
  15099. # being certain /sbin/ldconfig is available, command
  15100. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15101. # even though it is searched at run-time. Try to do the best guess by
  15102. # appending ld.so.conf contents (and includes) to the search path.
  15103. if test -f /etc/ld.so.conf; then
  15104. 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' ' '`
  15105. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15106. fi
  15107. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15108. # powerpc, because MkLinux only supported shared libraries with the
  15109. # GNU dynamic linker. Since this was broken with cross compilers,
  15110. # most powerpc-linux boxes support dynamic linking these days and
  15111. # people can always --disable-shared, the test was removed, and we
  15112. # assume the GNU/Linux dynamic linker is in use.
  15113. dynamic_linker='GNU/Linux ld.so'
  15114. ;;
  15115. netbsd*)
  15116. version_type=sunos
  15117. need_lib_prefix=no
  15118. need_version=no
  15119. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15120. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15121. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15122. dynamic_linker='NetBSD (a.out) ld.so'
  15123. else
  15124. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15125. soname_spec='$libname$release$shared_ext$major'
  15126. dynamic_linker='NetBSD ld.elf_so'
  15127. fi
  15128. shlibpath_var=LD_LIBRARY_PATH
  15129. shlibpath_overrides_runpath=yes
  15130. hardcode_into_libs=yes
  15131. ;;
  15132. newsos6)
  15133. version_type=linux # correct to gnu/linux during the next big refactor
  15134. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15135. shlibpath_var=LD_LIBRARY_PATH
  15136. shlibpath_overrides_runpath=yes
  15137. ;;
  15138. *nto* | *qnx*)
  15139. version_type=qnx
  15140. need_lib_prefix=no
  15141. need_version=no
  15142. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15143. soname_spec='$libname$release$shared_ext$major'
  15144. shlibpath_var=LD_LIBRARY_PATH
  15145. shlibpath_overrides_runpath=no
  15146. hardcode_into_libs=yes
  15147. dynamic_linker='ldqnx.so'
  15148. ;;
  15149. openbsd* | bitrig*)
  15150. version_type=sunos
  15151. sys_lib_dlsearch_path_spec=/usr/lib
  15152. need_lib_prefix=no
  15153. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15154. need_version=no
  15155. else
  15156. need_version=yes
  15157. fi
  15158. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15159. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15160. shlibpath_var=LD_LIBRARY_PATH
  15161. shlibpath_overrides_runpath=yes
  15162. ;;
  15163. os2*)
  15164. libname_spec='$name'
  15165. shrext_cmds=.dll
  15166. need_lib_prefix=no
  15167. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15168. # SDL customization: removed versioning support.
  15169. # version_type=windows
  15170. # need_version=no
  15171. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15172. # v=$($ECHO $release$versuffix | tr -d .-);
  15173. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15174. # $ECHO $n$v`$shared_ext'
  15175. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15176. library_names_spec='${libname}_dll.$libext'
  15177. dynamic_linker='OS/2 ld.exe'
  15178. shlibpath_var=BEGINLIBPATH
  15179. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15180. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15181. postinstall_cmds='base_file=`basename \$file`~
  15182. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15183. dldir=$destdir/`dirname \$dlpath`~
  15184. test -d \$dldir || mkdir -p \$dldir~
  15185. $install_prog $dir/$dlname \$dldir/$dlname~
  15186. chmod a+x \$dldir/$dlname~
  15187. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15188. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15189. fi'
  15190. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15191. dlpath=$dir/\$dldll~
  15192. $RM \$dlpath'
  15193. ;;
  15194. osf3* | osf4* | osf5*)
  15195. version_type=osf
  15196. need_lib_prefix=no
  15197. need_version=no
  15198. soname_spec='$libname$release$shared_ext$major'
  15199. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15200. shlibpath_var=LD_LIBRARY_PATH
  15201. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15202. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15203. ;;
  15204. rdos*)
  15205. dynamic_linker=no
  15206. ;;
  15207. solaris*)
  15208. version_type=linux # correct to gnu/linux during the next big refactor
  15209. need_lib_prefix=no
  15210. need_version=no
  15211. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15212. soname_spec='$libname$release$shared_ext$major'
  15213. shlibpath_var=LD_LIBRARY_PATH
  15214. shlibpath_overrides_runpath=yes
  15215. hardcode_into_libs=yes
  15216. # ldd complains unless libraries are executable
  15217. postinstall_cmds='chmod +x $lib'
  15218. ;;
  15219. sunos4*)
  15220. version_type=sunos
  15221. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15222. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15223. shlibpath_var=LD_LIBRARY_PATH
  15224. shlibpath_overrides_runpath=yes
  15225. if test yes = "$with_gnu_ld"; then
  15226. need_lib_prefix=no
  15227. fi
  15228. need_version=yes
  15229. ;;
  15230. sysv4 | sysv4.3*)
  15231. version_type=linux # correct to gnu/linux during the next big refactor
  15232. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15233. soname_spec='$libname$release$shared_ext$major'
  15234. shlibpath_var=LD_LIBRARY_PATH
  15235. case $host_vendor in
  15236. sni)
  15237. shlibpath_overrides_runpath=no
  15238. need_lib_prefix=no
  15239. runpath_var=LD_RUN_PATH
  15240. ;;
  15241. siemens)
  15242. need_lib_prefix=no
  15243. ;;
  15244. motorola)
  15245. need_lib_prefix=no
  15246. need_version=no
  15247. shlibpath_overrides_runpath=no
  15248. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15249. ;;
  15250. esac
  15251. ;;
  15252. sysv4*MP*)
  15253. if test -d /usr/nec; then
  15254. version_type=linux # correct to gnu/linux during the next big refactor
  15255. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15256. soname_spec='$libname$shared_ext.$major'
  15257. shlibpath_var=LD_LIBRARY_PATH
  15258. fi
  15259. ;;
  15260. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15261. version_type=sco
  15262. need_lib_prefix=no
  15263. need_version=no
  15264. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15265. soname_spec='$libname$release$shared_ext$major'
  15266. shlibpath_var=LD_LIBRARY_PATH
  15267. shlibpath_overrides_runpath=yes
  15268. hardcode_into_libs=yes
  15269. if test yes = "$with_gnu_ld"; then
  15270. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15271. else
  15272. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15273. case $host_os in
  15274. sco3.2v5*)
  15275. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15276. ;;
  15277. esac
  15278. fi
  15279. sys_lib_dlsearch_path_spec='/usr/lib'
  15280. ;;
  15281. tpf*)
  15282. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15283. version_type=linux # correct to gnu/linux during the next big refactor
  15284. need_lib_prefix=no
  15285. need_version=no
  15286. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15287. shlibpath_var=LD_LIBRARY_PATH
  15288. shlibpath_overrides_runpath=no
  15289. hardcode_into_libs=yes
  15290. ;;
  15291. uts4*)
  15292. version_type=linux # correct to gnu/linux during the next big refactor
  15293. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15294. soname_spec='$libname$release$shared_ext$major'
  15295. shlibpath_var=LD_LIBRARY_PATH
  15296. ;;
  15297. *)
  15298. dynamic_linker=no
  15299. ;;
  15300. esac
  15301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15302. printf "%s\n" "$dynamic_linker" >&6; }
  15303. test no = "$dynamic_linker" && can_build_shared=no
  15304. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15305. if test yes = "$GCC"; then
  15306. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15307. fi
  15308. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15309. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15310. fi
  15311. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15312. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15313. fi
  15314. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15315. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15316. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15317. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15318. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15319. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15321. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15322. hardcode_action_CXX=
  15323. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15324. test -n "$runpath_var_CXX" ||
  15325. test yes = "$hardcode_automatic_CXX"; then
  15326. # We can hardcode non-existent directories.
  15327. if test no != "$hardcode_direct_CXX" &&
  15328. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15329. # have to relink, otherwise we might link with an installed library
  15330. # when we should be linking with a yet-to-be-installed one
  15331. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15332. test no != "$hardcode_minus_L_CXX"; then
  15333. # Linking always hardcodes the temporary library directory.
  15334. hardcode_action_CXX=relink
  15335. else
  15336. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15337. hardcode_action_CXX=immediate
  15338. fi
  15339. else
  15340. # We cannot hardcode anything, or else we can only hardcode existing
  15341. # directories.
  15342. hardcode_action_CXX=unsupported
  15343. fi
  15344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15345. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15346. if test relink = "$hardcode_action_CXX" ||
  15347. test yes = "$inherit_rpath_CXX"; then
  15348. # Fast installation is not supported
  15349. enable_fast_install=no
  15350. elif test yes = "$shlibpath_overrides_runpath" ||
  15351. test no = "$enable_shared"; then
  15352. # Fast installation is not necessary
  15353. enable_fast_install=needless
  15354. fi
  15355. fi # test -n "$compiler"
  15356. CC=$lt_save_CC
  15357. CFLAGS=$lt_save_CFLAGS
  15358. LDCXX=$LD
  15359. LD=$lt_save_LD
  15360. GCC=$lt_save_GCC
  15361. with_gnu_ld=$lt_save_with_gnu_ld
  15362. lt_cv_path_LDCXX=$lt_cv_path_LD
  15363. lt_cv_path_LD=$lt_save_path_LD
  15364. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15365. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15366. fi # test yes != "$_lt_caught_CXX_error"
  15367. ac_ext=c
  15368. ac_cpp='$CPP $CPPFLAGS'
  15369. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15370. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15371. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15373. printf %s "checking for egrep... " >&6; }
  15374. if test ${ac_cv_path_EGREP+y}
  15375. then :
  15376. printf %s "(cached) " >&6
  15377. else $as_nop
  15378. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15379. then ac_cv_path_EGREP="$GREP -E"
  15380. else
  15381. if test -z "$EGREP"; then
  15382. ac_path_EGREP_found=false
  15383. # Loop through the user's path and test for each of PROGNAME-LIST
  15384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15385. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15386. do
  15387. IFS=$as_save_IFS
  15388. case $as_dir in #(((
  15389. '') as_dir=./ ;;
  15390. */) ;;
  15391. *) as_dir=$as_dir/ ;;
  15392. esac
  15393. for ac_prog in egrep
  15394. do
  15395. for ac_exec_ext in '' $ac_executable_extensions; do
  15396. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15397. as_fn_executable_p "$ac_path_EGREP" || continue
  15398. # Check for GNU ac_path_EGREP and select it if it is found.
  15399. # Check for GNU $ac_path_EGREP
  15400. case `"$ac_path_EGREP" --version 2>&1` in
  15401. *GNU*)
  15402. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15403. *)
  15404. ac_count=0
  15405. printf %s 0123456789 >"conftest.in"
  15406. while :
  15407. do
  15408. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15409. mv "conftest.tmp" "conftest.in"
  15410. cp "conftest.in" "conftest.nl"
  15411. printf "%s\n" 'EGREP' >> "conftest.nl"
  15412. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15413. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15414. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15415. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15416. # Best one so far, save it but keep looking for a better one
  15417. ac_cv_path_EGREP="$ac_path_EGREP"
  15418. ac_path_EGREP_max=$ac_count
  15419. fi
  15420. # 10*(2^10) chars as input seems more than enough
  15421. test $ac_count -gt 10 && break
  15422. done
  15423. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15424. esac
  15425. $ac_path_EGREP_found && break 3
  15426. done
  15427. done
  15428. done
  15429. IFS=$as_save_IFS
  15430. if test -z "$ac_cv_path_EGREP"; then
  15431. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15432. fi
  15433. else
  15434. ac_cv_path_EGREP=$EGREP
  15435. fi
  15436. fi
  15437. fi
  15438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15439. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15440. EGREP="$ac_cv_path_EGREP"
  15441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  15442. printf %s "checking for fgrep... " >&6; }
  15443. if test ${ac_cv_path_FGREP+y}
  15444. then :
  15445. printf %s "(cached) " >&6
  15446. else $as_nop
  15447. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  15448. then ac_cv_path_FGREP="$GREP -F"
  15449. else
  15450. if test -z "$FGREP"; then
  15451. ac_path_FGREP_found=false
  15452. # Loop through the user's path and test for each of PROGNAME-LIST
  15453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15454. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15455. do
  15456. IFS=$as_save_IFS
  15457. case $as_dir in #(((
  15458. '') as_dir=./ ;;
  15459. */) ;;
  15460. *) as_dir=$as_dir/ ;;
  15461. esac
  15462. for ac_prog in fgrep
  15463. do
  15464. for ac_exec_ext in '' $ac_executable_extensions; do
  15465. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  15466. as_fn_executable_p "$ac_path_FGREP" || continue
  15467. # Check for GNU ac_path_FGREP and select it if it is found.
  15468. # Check for GNU $ac_path_FGREP
  15469. case `"$ac_path_FGREP" --version 2>&1` in
  15470. *GNU*)
  15471. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  15472. *)
  15473. ac_count=0
  15474. printf %s 0123456789 >"conftest.in"
  15475. while :
  15476. do
  15477. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15478. mv "conftest.tmp" "conftest.in"
  15479. cp "conftest.in" "conftest.nl"
  15480. printf "%s\n" 'FGREP' >> "conftest.nl"
  15481. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15482. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15483. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15484. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  15485. # Best one so far, save it but keep looking for a better one
  15486. ac_cv_path_FGREP="$ac_path_FGREP"
  15487. ac_path_FGREP_max=$ac_count
  15488. fi
  15489. # 10*(2^10) chars as input seems more than enough
  15490. test $ac_count -gt 10 && break
  15491. done
  15492. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15493. esac
  15494. $ac_path_FGREP_found && break 3
  15495. done
  15496. done
  15497. done
  15498. IFS=$as_save_IFS
  15499. if test -z "$ac_cv_path_FGREP"; then
  15500. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15501. fi
  15502. else
  15503. ac_cv_path_FGREP=$FGREP
  15504. fi
  15505. fi
  15506. fi
  15507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  15508. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  15509. FGREP="$ac_cv_path_FGREP"
  15510. # Find a good install program. We prefer a C program (faster),
  15511. # so one script is as good as another. But avoid the broken or
  15512. # incompatible versions:
  15513. # SysV /etc/install, /usr/sbin/install
  15514. # SunOS /usr/etc/install
  15515. # IRIX /sbin/install
  15516. # AIX /bin/install
  15517. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15518. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15519. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15520. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15521. # OS/2's system install, which has a completely different semantic
  15522. # ./install, which can be erroneously created by make from ./install.sh.
  15523. # Reject install programs that cannot install multiple files.
  15524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15525. printf %s "checking for a BSD-compatible install... " >&6; }
  15526. if test -z "$INSTALL"; then
  15527. if test ${ac_cv_path_install+y}
  15528. then :
  15529. printf %s "(cached) " >&6
  15530. else $as_nop
  15531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15532. for as_dir in $PATH
  15533. do
  15534. IFS=$as_save_IFS
  15535. case $as_dir in #(((
  15536. '') as_dir=./ ;;
  15537. */) ;;
  15538. *) as_dir=$as_dir/ ;;
  15539. esac
  15540. # Account for fact that we put trailing slashes in our PATH walk.
  15541. case $as_dir in #((
  15542. ./ | /[cC]/* | \
  15543. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15544. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15545. /usr/ucb/* ) ;;
  15546. *)
  15547. # OSF1 and SCO ODT 3.0 have their own names for install.
  15548. # Don't use installbsd from OSF since it installs stuff as root
  15549. # by default.
  15550. for ac_prog in ginstall scoinst install; do
  15551. for ac_exec_ext in '' $ac_executable_extensions; do
  15552. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15553. if test $ac_prog = install &&
  15554. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15555. # AIX install. It has an incompatible calling convention.
  15556. :
  15557. elif test $ac_prog = install &&
  15558. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15559. # program-specific install script used by HP pwplus--don't use.
  15560. :
  15561. else
  15562. rm -rf conftest.one conftest.two conftest.dir
  15563. echo one > conftest.one
  15564. echo two > conftest.two
  15565. mkdir conftest.dir
  15566. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15567. test -s conftest.one && test -s conftest.two &&
  15568. test -s conftest.dir/conftest.one &&
  15569. test -s conftest.dir/conftest.two
  15570. then
  15571. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15572. break 3
  15573. fi
  15574. fi
  15575. fi
  15576. done
  15577. done
  15578. ;;
  15579. esac
  15580. done
  15581. IFS=$as_save_IFS
  15582. rm -rf conftest.one conftest.two conftest.dir
  15583. fi
  15584. if test ${ac_cv_path_install+y}; then
  15585. INSTALL=$ac_cv_path_install
  15586. else
  15587. # As a last resort, use the slow shell script. Don't cache a
  15588. # value for INSTALL within a source directory, because that will
  15589. # break other packages using the cache if that directory is
  15590. # removed, or if the value is a relative name.
  15591. INSTALL=$ac_install_sh
  15592. fi
  15593. fi
  15594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15595. printf "%s\n" "$INSTALL" >&6; }
  15596. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15597. # It thinks the first close brace ends the variable substitution.
  15598. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15599. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15600. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15602. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15603. set x ${MAKE-make}
  15604. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15605. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15606. then :
  15607. printf %s "(cached) " >&6
  15608. else $as_nop
  15609. cat >conftest.make <<\_ACEOF
  15610. SHELL = /bin/sh
  15611. all:
  15612. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15613. _ACEOF
  15614. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15615. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15616. *@@@%%%=?*=@@@%%%*)
  15617. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15618. *)
  15619. eval ac_cv_prog_make_${ac_make}_set=no;;
  15620. esac
  15621. rm -f conftest.make
  15622. fi
  15623. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15625. printf "%s\n" "yes" >&6; }
  15626. SET_MAKE=
  15627. else
  15628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15629. printf "%s\n" "no" >&6; }
  15630. SET_MAKE="MAKE=${MAKE-make}"
  15631. fi
  15632. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15633. if test -n "$ac_tool_prefix"; then
  15634. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15635. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15637. printf %s "checking for $ac_word... " >&6; }
  15638. if test ${ac_cv_path_PKG_CONFIG+y}
  15639. then :
  15640. printf %s "(cached) " >&6
  15641. else $as_nop
  15642. case $PKG_CONFIG in
  15643. [\\/]* | ?:[\\/]*)
  15644. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15645. ;;
  15646. *)
  15647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15648. for as_dir in $PATH
  15649. do
  15650. IFS=$as_save_IFS
  15651. case $as_dir in #(((
  15652. '') as_dir=./ ;;
  15653. */) ;;
  15654. *) as_dir=$as_dir/ ;;
  15655. esac
  15656. for ac_exec_ext in '' $ac_executable_extensions; do
  15657. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15658. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15659. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15660. break 2
  15661. fi
  15662. done
  15663. done
  15664. IFS=$as_save_IFS
  15665. ;;
  15666. esac
  15667. fi
  15668. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15669. if test -n "$PKG_CONFIG"; then
  15670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15671. printf "%s\n" "$PKG_CONFIG" >&6; }
  15672. else
  15673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15674. printf "%s\n" "no" >&6; }
  15675. fi
  15676. fi
  15677. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15678. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15679. # Extract the first word of "pkg-config", so it can be a program name with args.
  15680. set dummy pkg-config; ac_word=$2
  15681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15682. printf %s "checking for $ac_word... " >&6; }
  15683. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15684. then :
  15685. printf %s "(cached) " >&6
  15686. else $as_nop
  15687. case $ac_pt_PKG_CONFIG in
  15688. [\\/]* | ?:[\\/]*)
  15689. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15690. ;;
  15691. *)
  15692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15693. for as_dir in $PATH
  15694. do
  15695. IFS=$as_save_IFS
  15696. case $as_dir in #(((
  15697. '') as_dir=./ ;;
  15698. */) ;;
  15699. *) as_dir=$as_dir/ ;;
  15700. esac
  15701. for ac_exec_ext in '' $ac_executable_extensions; do
  15702. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15703. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15704. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15705. break 2
  15706. fi
  15707. done
  15708. done
  15709. IFS=$as_save_IFS
  15710. ;;
  15711. esac
  15712. fi
  15713. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15714. if test -n "$ac_pt_PKG_CONFIG"; then
  15715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15716. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15717. else
  15718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15719. printf "%s\n" "no" >&6; }
  15720. fi
  15721. if test "x$ac_pt_PKG_CONFIG" = x; then
  15722. PKG_CONFIG=""
  15723. else
  15724. case $cross_compiling:$ac_tool_warned in
  15725. yes:)
  15726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15727. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15728. ac_tool_warned=yes ;;
  15729. esac
  15730. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15731. fi
  15732. else
  15733. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15734. fi
  15735. fi
  15736. if test -n "$PKG_CONFIG"; then
  15737. _pkg_min_version=0.9.0
  15738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15739. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15740. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15742. printf "%s\n" "yes" >&6; }
  15743. else
  15744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15745. printf "%s\n" "no" >&6; }
  15746. PKG_CONFIG=""
  15747. fi
  15748. fi
  15749. if test -z "$AWK" ; then
  15750. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15751. fi
  15752. for ac_prog in gsort sort
  15753. do
  15754. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15755. set dummy $ac_prog; ac_word=$2
  15756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15757. printf %s "checking for $ac_word... " >&6; }
  15758. if test ${ac_cv_prog_SORT+y}
  15759. then :
  15760. printf %s "(cached) " >&6
  15761. else $as_nop
  15762. if test -n "$SORT"; then
  15763. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15764. else
  15765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15766. for as_dir in $PATH
  15767. do
  15768. IFS=$as_save_IFS
  15769. case $as_dir in #(((
  15770. '') as_dir=./ ;;
  15771. */) ;;
  15772. *) as_dir=$as_dir/ ;;
  15773. esac
  15774. for ac_exec_ext in '' $ac_executable_extensions; do
  15775. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15776. ac_cv_prog_SORT="$ac_prog"
  15777. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15778. break 2
  15779. fi
  15780. done
  15781. done
  15782. IFS=$as_save_IFS
  15783. fi
  15784. fi
  15785. SORT=$ac_cv_prog_SORT
  15786. if test -n "$SORT"; then
  15787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15788. printf "%s\n" "$SORT" >&6; }
  15789. else
  15790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15791. printf "%s\n" "no" >&6; }
  15792. fi
  15793. test -n "$SORT" && break
  15794. done
  15795. test -n "$SORT" || SORT="false"
  15796. if ! "$SORT" -V </dev/null >/dev/null
  15797. then :
  15798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15799. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15800. fi
  15801. # Check whether --enable-largefile was given.
  15802. if test ${enable_largefile+y}
  15803. then :
  15804. enableval=$enable_largefile;
  15805. fi
  15806. if test "$enable_largefile" != no; then
  15807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15808. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15809. if test ${ac_cv_sys_largefile_CC+y}
  15810. then :
  15811. printf %s "(cached) " >&6
  15812. else $as_nop
  15813. ac_cv_sys_largefile_CC=no
  15814. if test "$GCC" != yes; then
  15815. ac_save_CC=$CC
  15816. while :; do
  15817. # IRIX 6.2 and later do not support large files by default,
  15818. # so use the C compiler's -n32 option if that helps.
  15819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15820. /* end confdefs.h. */
  15821. #include <sys/types.h>
  15822. /* Check that off_t can represent 2**63 - 1 correctly.
  15823. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15824. since some C++ compilers masquerading as C compilers
  15825. incorrectly reject 9223372036854775807. */
  15826. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15827. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15828. && LARGE_OFF_T % 2147483647 == 1)
  15829. ? 1 : -1];
  15830. int
  15831. main (void)
  15832. {
  15833. ;
  15834. return 0;
  15835. }
  15836. _ACEOF
  15837. if ac_fn_c_try_compile "$LINENO"
  15838. then :
  15839. break
  15840. fi
  15841. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15842. CC="$CC -n32"
  15843. if ac_fn_c_try_compile "$LINENO"
  15844. then :
  15845. ac_cv_sys_largefile_CC=' -n32'; break
  15846. fi
  15847. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15848. break
  15849. done
  15850. CC=$ac_save_CC
  15851. rm -f conftest.$ac_ext
  15852. fi
  15853. fi
  15854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15855. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15856. if test "$ac_cv_sys_largefile_CC" != no; then
  15857. CC=$CC$ac_cv_sys_largefile_CC
  15858. fi
  15859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15860. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15861. if test ${ac_cv_sys_file_offset_bits+y}
  15862. then :
  15863. printf %s "(cached) " >&6
  15864. else $as_nop
  15865. while :; do
  15866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15867. /* end confdefs.h. */
  15868. #include <sys/types.h>
  15869. /* Check that off_t can represent 2**63 - 1 correctly.
  15870. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15871. since some C++ compilers masquerading as C compilers
  15872. incorrectly reject 9223372036854775807. */
  15873. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15874. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15875. && LARGE_OFF_T % 2147483647 == 1)
  15876. ? 1 : -1];
  15877. int
  15878. main (void)
  15879. {
  15880. ;
  15881. return 0;
  15882. }
  15883. _ACEOF
  15884. if ac_fn_c_try_compile "$LINENO"
  15885. then :
  15886. ac_cv_sys_file_offset_bits=no; break
  15887. fi
  15888. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15890. /* end confdefs.h. */
  15891. #define _FILE_OFFSET_BITS 64
  15892. #include <sys/types.h>
  15893. /* Check that off_t can represent 2**63 - 1 correctly.
  15894. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15895. since some C++ compilers masquerading as C compilers
  15896. incorrectly reject 9223372036854775807. */
  15897. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15898. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15899. && LARGE_OFF_T % 2147483647 == 1)
  15900. ? 1 : -1];
  15901. int
  15902. main (void)
  15903. {
  15904. ;
  15905. return 0;
  15906. }
  15907. _ACEOF
  15908. if ac_fn_c_try_compile "$LINENO"
  15909. then :
  15910. ac_cv_sys_file_offset_bits=64; break
  15911. fi
  15912. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15913. ac_cv_sys_file_offset_bits=unknown
  15914. break
  15915. done
  15916. fi
  15917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15918. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15919. case $ac_cv_sys_file_offset_bits in #(
  15920. no | unknown) ;;
  15921. *)
  15922. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15923. ;;
  15924. esac
  15925. rm -rf conftest*
  15926. if test $ac_cv_sys_file_offset_bits = unknown; then
  15927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15928. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15929. if test ${ac_cv_sys_large_files+y}
  15930. then :
  15931. printf %s "(cached) " >&6
  15932. else $as_nop
  15933. while :; do
  15934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15935. /* end confdefs.h. */
  15936. #include <sys/types.h>
  15937. /* Check that off_t can represent 2**63 - 1 correctly.
  15938. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15939. since some C++ compilers masquerading as C compilers
  15940. incorrectly reject 9223372036854775807. */
  15941. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15942. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15943. && LARGE_OFF_T % 2147483647 == 1)
  15944. ? 1 : -1];
  15945. int
  15946. main (void)
  15947. {
  15948. ;
  15949. return 0;
  15950. }
  15951. _ACEOF
  15952. if ac_fn_c_try_compile "$LINENO"
  15953. then :
  15954. ac_cv_sys_large_files=no; break
  15955. fi
  15956. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15958. /* end confdefs.h. */
  15959. #define _LARGE_FILES 1
  15960. #include <sys/types.h>
  15961. /* Check that off_t can represent 2**63 - 1 correctly.
  15962. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15963. since some C++ compilers masquerading as C compilers
  15964. incorrectly reject 9223372036854775807. */
  15965. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15966. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15967. && LARGE_OFF_T % 2147483647 == 1)
  15968. ? 1 : -1];
  15969. int
  15970. main (void)
  15971. {
  15972. ;
  15973. return 0;
  15974. }
  15975. _ACEOF
  15976. if ac_fn_c_try_compile "$LINENO"
  15977. then :
  15978. ac_cv_sys_large_files=1; break
  15979. fi
  15980. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15981. ac_cv_sys_large_files=unknown
  15982. break
  15983. done
  15984. fi
  15985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15986. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15987. case $ac_cv_sys_large_files in #(
  15988. no | unknown) ;;
  15989. *)
  15990. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15991. ;;
  15992. esac
  15993. rm -rf conftest*
  15994. fi
  15995. fi
  15996. case "$host" in
  15997. *-*-mingw*)
  15998. # Except on msys, where make can't handle full pathnames (bug 1972)
  15999. ;;
  16000. *)
  16001. srcdir=`cd $srcdir && pwd`
  16002. ;;
  16003. esac
  16004. INCLUDE="-I$srcdir/include"
  16005. case "$host" in
  16006. *-*-nto-qnx*)
  16007. ;;
  16008. *)
  16009. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  16010. ;;
  16011. esac
  16012. case "$host" in
  16013. *-*-haiku*)
  16014. LINKER='$(CXX)'
  16015. LIBTOOLLINKERTAG='CXX'
  16016. ;;
  16017. *)
  16018. LINKER='$(CC)'
  16019. LIBTOOLLINKERTAG='CC'
  16020. ;;
  16021. esac
  16022. if test x$srcdir != x.; then
  16023. INCLUDE="-Iinclude $INCLUDE"
  16024. elif test -d .git; then
  16025. as_fn_error $? "
  16026. *** When building from a git clone you should configure and build in a
  16027. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  16028. " "$LINENO" 5
  16029. fi
  16030. BASE_CFLAGS=""
  16031. BASE_LDFLAGS=""
  16032. case "$host" in
  16033. *-*-cygwin*)
  16034. # We build SDL on cygwin without the UNIX emulation layer
  16035. save_CFLAGS="$CFLAGS"
  16036. have_no_cygwin=no
  16037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  16038. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  16039. CFLAGS="$save_CFLAGS -mno-cygwin"
  16040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16041. /* end confdefs.h. */
  16042. int
  16043. main (void)
  16044. {
  16045. ;
  16046. return 0;
  16047. }
  16048. _ACEOF
  16049. if ac_fn_c_try_compile "$LINENO"
  16050. then :
  16051. have_no_cygwin=yes
  16052. fi
  16053. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  16055. printf "%s\n" "$have_no_cygwin" >&6; }
  16056. CFLAGS="$save_CFLAGS"
  16057. if test x$have_no_cygwin = xyes; then
  16058. BASE_CFLAGS="-mno-cygwin"
  16059. BASE_LDFLAGS="-mno-cygwin"
  16060. fi
  16061. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  16062. ;;
  16063. esac
  16064. # Uncomment the following line if you want to force SDL and applications
  16065. # built with it to be compiled for a particular architecture.
  16066. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  16067. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  16068. # The default optimization for SDL is -O3 (Bug #31)
  16069. if test "x$orig_CFLAGS" = x; then
  16070. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  16071. fi
  16072. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  16073. BUILD_LDFLAGS="$LDFLAGS"
  16074. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  16075. ## These are common directories to find software packages
  16076. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  16077. # if test -d $path/include; then
  16078. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  16079. # fi
  16080. # if test -d $path/lib; then
  16081. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  16082. # fi
  16083. #done
  16084. SDL_CFLAGS="$BASE_CFLAGS"
  16085. SDL_LIBS="-lSDL2"
  16086. if test "x$BASE_LDFLAGS" != x; then
  16087. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  16088. fi
  16089. if test "x$EXTRA_CFLAGS" != x; then
  16090. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  16091. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  16092. fi
  16093. if test "x$EXTRA_LDFLAGS" != x; then
  16094. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  16095. fi
  16096. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  16097. find_lib()
  16098. {
  16099. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16100. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16101. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  16102. if test "$cross_compiling" = yes; then
  16103. host_lib_path=""
  16104. else
  16105. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  16106. fi
  16107. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  16108. 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`
  16109. if test x$lib != x; then
  16110. echo $lib
  16111. return
  16112. fi
  16113. done
  16114. }
  16115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16116. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16117. if test ${ac_cv_c_const+y}
  16118. then :
  16119. printf %s "(cached) " >&6
  16120. else $as_nop
  16121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16122. /* end confdefs.h. */
  16123. int
  16124. main (void)
  16125. {
  16126. #ifndef __cplusplus
  16127. /* Ultrix mips cc rejects this sort of thing. */
  16128. typedef int charset[2];
  16129. const charset cs = { 0, 0 };
  16130. /* SunOS 4.1.1 cc rejects this. */
  16131. char const *const *pcpcc;
  16132. char **ppc;
  16133. /* NEC SVR4.0.2 mips cc rejects this. */
  16134. struct point {int x, y;};
  16135. static struct point const zero = {0,0};
  16136. /* IBM XL C 1.02.0.0 rejects this.
  16137. It does not let you subtract one const X* pointer from another in
  16138. an arm of an if-expression whose if-part is not a constant
  16139. expression */
  16140. const char *g = "string";
  16141. pcpcc = &g + (g ? g-g : 0);
  16142. /* HPUX 7.0 cc rejects these. */
  16143. ++pcpcc;
  16144. ppc = (char**) pcpcc;
  16145. pcpcc = (char const *const *) ppc;
  16146. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16147. char tx;
  16148. char *t = &tx;
  16149. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16150. *t++ = 0;
  16151. if (s) return 0;
  16152. }
  16153. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16154. int x[] = {25, 17};
  16155. const int *foo = &x[0];
  16156. ++foo;
  16157. }
  16158. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16159. typedef const int *iptr;
  16160. iptr p = 0;
  16161. ++p;
  16162. }
  16163. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16164. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16165. struct s { int j; const int *ap[3]; } bx;
  16166. struct s *b = &bx; b->j = 5;
  16167. }
  16168. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16169. const int foo = 10;
  16170. if (!foo) return 0;
  16171. }
  16172. return !cs[0] && !zero.x;
  16173. #endif
  16174. ;
  16175. return 0;
  16176. }
  16177. _ACEOF
  16178. if ac_fn_c_try_compile "$LINENO"
  16179. then :
  16180. ac_cv_c_const=yes
  16181. else $as_nop
  16182. ac_cv_c_const=no
  16183. fi
  16184. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16185. fi
  16186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16187. printf "%s\n" "$ac_cv_c_const" >&6; }
  16188. if test $ac_cv_c_const = no; then
  16189. printf "%s\n" "#define const /**/" >>confdefs.h
  16190. fi
  16191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16192. printf %s "checking for inline... " >&6; }
  16193. if test ${ac_cv_c_inline+y}
  16194. then :
  16195. printf %s "(cached) " >&6
  16196. else $as_nop
  16197. ac_cv_c_inline=no
  16198. for ac_kw in inline __inline__ __inline; do
  16199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16200. /* end confdefs.h. */
  16201. #ifndef __cplusplus
  16202. typedef int foo_t;
  16203. static $ac_kw foo_t static_foo (void) {return 0; }
  16204. $ac_kw foo_t foo (void) {return 0; }
  16205. #endif
  16206. _ACEOF
  16207. if ac_fn_c_try_compile "$LINENO"
  16208. then :
  16209. ac_cv_c_inline=$ac_kw
  16210. fi
  16211. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16212. test "$ac_cv_c_inline" != no && break
  16213. done
  16214. fi
  16215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16216. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16217. case $ac_cv_c_inline in
  16218. inline | yes) ;;
  16219. *)
  16220. case $ac_cv_c_inline in
  16221. no) ac_val=;;
  16222. *) ac_val=$ac_cv_c_inline;;
  16223. esac
  16224. cat >>confdefs.h <<_ACEOF
  16225. #ifndef __cplusplus
  16226. #define inline $ac_val
  16227. #endif
  16228. _ACEOF
  16229. ;;
  16230. esac
  16231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16232. printf %s "checking for working volatile... " >&6; }
  16233. if test ${ac_cv_c_volatile+y}
  16234. then :
  16235. printf %s "(cached) " >&6
  16236. else $as_nop
  16237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16238. /* end confdefs.h. */
  16239. int
  16240. main (void)
  16241. {
  16242. volatile int x;
  16243. int * volatile y = (int *) 0;
  16244. return !x && !y;
  16245. ;
  16246. return 0;
  16247. }
  16248. _ACEOF
  16249. if ac_fn_c_try_compile "$LINENO"
  16250. then :
  16251. ac_cv_c_volatile=yes
  16252. else $as_nop
  16253. ac_cv_c_volatile=no
  16254. fi
  16255. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16256. fi
  16257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16258. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16259. if test $ac_cv_c_volatile = no; then
  16260. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16261. fi
  16262. # Check whether --enable-assertions was given.
  16263. if test ${enable_assertions+y}
  16264. then :
  16265. enableval=$enable_assertions;
  16266. else $as_nop
  16267. enable_assertions=auto
  16268. fi
  16269. case "$enable_assertions" in
  16270. auto) # Use optimization settings to determine assertion level
  16271. ;;
  16272. disabled)
  16273. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16274. ;;
  16275. release)
  16276. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16277. ;;
  16278. enabled)
  16279. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16280. ;;
  16281. paranoid)
  16282. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16283. ;;
  16284. *)
  16285. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16286. ;;
  16287. esac
  16288. 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"
  16289. # Check whether --enable-dependency-tracking was given.
  16290. if test ${enable_dependency_tracking+y}
  16291. then :
  16292. enableval=$enable_dependency_tracking;
  16293. else $as_nop
  16294. enable_dependency_tracking=yes
  16295. fi
  16296. if test x$enable_dependency_tracking = xyes; then
  16297. have_gcc_mmd_mt=no
  16298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16299. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16301. /* end confdefs.h. */
  16302. #if !defined(__GNUC__) || __GNUC__ < 3
  16303. #error Dependency tracking requires GCC 3.0 or newer
  16304. #endif
  16305. int
  16306. main (void)
  16307. {
  16308. ;
  16309. return 0;
  16310. }
  16311. _ACEOF
  16312. if ac_fn_c_try_compile "$LINENO"
  16313. then :
  16314. have_gcc_mmd_mt=yes
  16315. fi
  16316. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16318. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16319. if test x$have_gcc_mmd_mt = xyes; then
  16320. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16321. fi
  16322. fi
  16323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16324. printf %s "checking for linker option --no-undefined... " >&6; }
  16325. have_no_undefined=no
  16326. case "$host" in
  16327. *-*-openbsd*)
  16328. ;;
  16329. *)
  16330. save_LDFLAGS="$LDFLAGS"
  16331. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16333. /* end confdefs.h. */
  16334. int
  16335. main (void)
  16336. {
  16337. ;
  16338. return 0;
  16339. }
  16340. _ACEOF
  16341. if ac_fn_c_try_link "$LINENO"
  16342. then :
  16343. have_no_undefined=yes
  16344. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16345. fi
  16346. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16347. conftest$ac_exeext conftest.$ac_ext
  16348. LDFLAGS="$save_LDFLAGS"
  16349. ;;
  16350. esac
  16351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16352. printf "%s\n" "$have_no_undefined" >&6; }
  16353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16354. printf %s "checking for linker option --dynamicbase... " >&6; }
  16355. have_dynamicbase=no
  16356. case "$host" in
  16357. *)
  16358. save_LDFLAGS="$LDFLAGS"
  16359. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16361. /* end confdefs.h. */
  16362. int
  16363. main (void)
  16364. {
  16365. ;
  16366. return 0;
  16367. }
  16368. _ACEOF
  16369. if ac_fn_c_try_link "$LINENO"
  16370. then :
  16371. have_dynamicbase=yes
  16372. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16373. fi
  16374. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16375. conftest$ac_exeext conftest.$ac_ext
  16376. LDFLAGS="$save_LDFLAGS"
  16377. ;;
  16378. esac
  16379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16380. printf "%s\n" "$have_dynamicbase" >&6; }
  16381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16382. printf %s "checking for linker option --nxcompat... " >&6; }
  16383. have_nxcompat=no
  16384. case "$host" in
  16385. *)
  16386. save_LDFLAGS="$LDFLAGS"
  16387. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16389. /* end confdefs.h. */
  16390. int
  16391. main (void)
  16392. {
  16393. ;
  16394. return 0;
  16395. }
  16396. _ACEOF
  16397. if ac_fn_c_try_link "$LINENO"
  16398. then :
  16399. have_nxcompat=yes
  16400. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16401. fi
  16402. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16403. conftest$ac_exeext conftest.$ac_ext
  16404. LDFLAGS="$save_LDFLAGS"
  16405. ;;
  16406. esac
  16407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16408. printf "%s\n" "$have_nxcompat" >&6; }
  16409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16410. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16411. have_high_entropy_va=no
  16412. case "$host" in
  16413. *)
  16414. save_LDFLAGS="$LDFLAGS"
  16415. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16417. /* end confdefs.h. */
  16418. int
  16419. main (void)
  16420. {
  16421. ;
  16422. return 0;
  16423. }
  16424. _ACEOF
  16425. if ac_fn_c_try_link "$LINENO"
  16426. then :
  16427. have_high_entropy_va=yes
  16428. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16429. fi
  16430. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16431. conftest$ac_exeext conftest.$ac_ext
  16432. LDFLAGS="$save_LDFLAGS"
  16433. ;;
  16434. esac
  16435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16436. printf "%s\n" "$have_high_entropy_va" >&6; }
  16437. # Check whether --enable-libc was given.
  16438. if test ${enable_libc+y}
  16439. then :
  16440. enableval=$enable_libc;
  16441. else $as_nop
  16442. enable_libc=yes
  16443. fi
  16444. enable_system_iconv_default=yes
  16445. case "$host" in
  16446. *-*-cygwin*|*-*-mingw*|*-*-darwin*|*-ios-*)
  16447. enable_system_iconv_default=no
  16448. ;;
  16449. esac
  16450. # Check whether --enable-system-iconv was given.
  16451. if test ${enable_system_iconv+y}
  16452. then :
  16453. enableval=$enable_system_iconv;
  16454. else $as_nop
  16455. enable_system_iconv=$enable_system_iconv_default
  16456. fi
  16457. # Check whether --enable-libiconv was given.
  16458. if test ${enable_libiconv+y}
  16459. then :
  16460. enableval=$enable_libiconv;
  16461. else $as_nop
  16462. enable_libiconv=no
  16463. fi
  16464. if test x$enable_libc = xyes; then
  16465. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16466. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16467. if test "x$ac_cv_header_sys_types_h" = xyes
  16468. then :
  16469. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16470. fi
  16471. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16472. if test "x$ac_cv_header_stdio_h" = xyes
  16473. then :
  16474. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16475. fi
  16476. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16477. if test "x$ac_cv_header_stdlib_h" = xyes
  16478. then :
  16479. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16480. fi
  16481. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16482. if test "x$ac_cv_header_stddef_h" = xyes
  16483. then :
  16484. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16485. fi
  16486. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16487. if test "x$ac_cv_header_stdarg_h" = xyes
  16488. then :
  16489. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16490. fi
  16491. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16492. if test "x$ac_cv_header_malloc_h" = xyes
  16493. then :
  16494. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16495. fi
  16496. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16497. if test "x$ac_cv_header_memory_h" = xyes
  16498. then :
  16499. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16500. fi
  16501. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16502. if test "x$ac_cv_header_string_h" = xyes
  16503. then :
  16504. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16505. fi
  16506. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16507. if test "x$ac_cv_header_strings_h" = xyes
  16508. then :
  16509. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16510. fi
  16511. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16512. if test "x$ac_cv_header_wchar_h" = xyes
  16513. then :
  16514. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16515. fi
  16516. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16517. if test "x$ac_cv_header_inttypes_h" = xyes
  16518. then :
  16519. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16520. fi
  16521. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16522. if test "x$ac_cv_header_stdint_h" = xyes
  16523. then :
  16524. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16525. fi
  16526. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16527. if test "x$ac_cv_header_limits_h" = xyes
  16528. then :
  16529. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16530. fi
  16531. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16532. if test "x$ac_cv_header_ctype_h" = xyes
  16533. then :
  16534. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16535. fi
  16536. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16537. if test "x$ac_cv_header_math_h" = xyes
  16538. then :
  16539. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16540. fi
  16541. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16542. if test "x$ac_cv_header_float_h" = xyes
  16543. then :
  16544. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16545. fi
  16546. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16547. if test "x$ac_cv_header_iconv_h" = xyes
  16548. then :
  16549. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16550. fi
  16551. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16552. if test "x$ac_cv_header_signal_h" = xyes
  16553. then :
  16554. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16555. fi
  16556. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16557. if test "x$ac_cv_type_size_t" = xyes
  16558. then :
  16559. else $as_nop
  16560. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16561. fi
  16562. ac_ext=c
  16563. ac_cpp='$CPP $CPPFLAGS'
  16564. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16565. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16566. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16568. printf %s "checking how to run the C preprocessor... " >&6; }
  16569. # On Suns, sometimes $CPP names a directory.
  16570. if test -n "$CPP" && test -d "$CPP"; then
  16571. CPP=
  16572. fi
  16573. if test -z "$CPP"; then
  16574. if test ${ac_cv_prog_CPP+y}
  16575. then :
  16576. printf %s "(cached) " >&6
  16577. else $as_nop
  16578. # Double quotes because $CC needs to be expanded
  16579. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16580. do
  16581. ac_preproc_ok=false
  16582. for ac_c_preproc_warn_flag in '' yes
  16583. do
  16584. # Use a header file that comes with gcc, so configuring glibc
  16585. # with a fresh cross-compiler works.
  16586. # On the NeXT, cc -E runs the code through the compiler's parser,
  16587. # not just through cpp. "Syntax error" is here to catch this case.
  16588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16589. /* end confdefs.h. */
  16590. #include <limits.h>
  16591. Syntax error
  16592. _ACEOF
  16593. if ac_fn_c_try_cpp "$LINENO"
  16594. then :
  16595. else $as_nop
  16596. # Broken: fails on valid input.
  16597. continue
  16598. fi
  16599. rm -f conftest.err conftest.i conftest.$ac_ext
  16600. # OK, works on sane cases. Now check whether nonexistent headers
  16601. # can be detected and how.
  16602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16603. /* end confdefs.h. */
  16604. #include <ac_nonexistent.h>
  16605. _ACEOF
  16606. if ac_fn_c_try_cpp "$LINENO"
  16607. then :
  16608. # Broken: success on invalid input.
  16609. continue
  16610. else $as_nop
  16611. # Passes both tests.
  16612. ac_preproc_ok=:
  16613. break
  16614. fi
  16615. rm -f conftest.err conftest.i conftest.$ac_ext
  16616. done
  16617. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16618. rm -f conftest.i conftest.err conftest.$ac_ext
  16619. if $ac_preproc_ok
  16620. then :
  16621. break
  16622. fi
  16623. done
  16624. ac_cv_prog_CPP=$CPP
  16625. fi
  16626. CPP=$ac_cv_prog_CPP
  16627. else
  16628. ac_cv_prog_CPP=$CPP
  16629. fi
  16630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16631. printf "%s\n" "$CPP" >&6; }
  16632. ac_preproc_ok=false
  16633. for ac_c_preproc_warn_flag in '' yes
  16634. do
  16635. # Use a header file that comes with gcc, so configuring glibc
  16636. # with a fresh cross-compiler works.
  16637. # On the NeXT, cc -E runs the code through the compiler's parser,
  16638. # not just through cpp. "Syntax error" is here to catch this case.
  16639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16640. /* end confdefs.h. */
  16641. #include <limits.h>
  16642. Syntax error
  16643. _ACEOF
  16644. if ac_fn_c_try_cpp "$LINENO"
  16645. then :
  16646. else $as_nop
  16647. # Broken: fails on valid input.
  16648. continue
  16649. fi
  16650. rm -f conftest.err conftest.i conftest.$ac_ext
  16651. # OK, works on sane cases. Now check whether nonexistent headers
  16652. # can be detected and how.
  16653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16654. /* end confdefs.h. */
  16655. #include <ac_nonexistent.h>
  16656. _ACEOF
  16657. if ac_fn_c_try_cpp "$LINENO"
  16658. then :
  16659. # Broken: success on invalid input.
  16660. continue
  16661. else $as_nop
  16662. # Passes both tests.
  16663. ac_preproc_ok=:
  16664. break
  16665. fi
  16666. rm -f conftest.err conftest.i conftest.$ac_ext
  16667. done
  16668. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16669. rm -f conftest.i conftest.err conftest.$ac_ext
  16670. if $ac_preproc_ok
  16671. then :
  16672. else $as_nop
  16673. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16674. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16675. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16676. See \`config.log' for more details" "$LINENO" 5; }
  16677. fi
  16678. ac_ext=c
  16679. ac_cpp='$CPP $CPPFLAGS'
  16680. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16681. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16682. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16684. printf %s "checking for M_PI in math.h... " >&6; }
  16685. if test ${ac_cv_define_M_PI+y}
  16686. then :
  16687. printf %s "(cached) " >&6
  16688. else $as_nop
  16689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16690. /* end confdefs.h. */
  16691. #include <math.h>
  16692. #ifdef M_PI
  16693. YES_IS_DEFINED
  16694. #endif
  16695. _ACEOF
  16696. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16697. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16698. then :
  16699. ac_cv_define_M_PI=yes
  16700. else $as_nop
  16701. ac_cv_define_M_PI=no
  16702. fi
  16703. rm -rf conftest*
  16704. fi
  16705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16706. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16707. if test "$ac_cv_define_M_PI" = "yes" ; then
  16708. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16709. fi
  16710. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16711. # for constant arguments. Useless!
  16712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16713. printf %s "checking for working alloca.h... " >&6; }
  16714. if test ${ac_cv_working_alloca_h+y}
  16715. then :
  16716. printf %s "(cached) " >&6
  16717. else $as_nop
  16718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16719. /* end confdefs.h. */
  16720. #include <alloca.h>
  16721. int
  16722. main (void)
  16723. {
  16724. char *p = (char *) alloca (2 * sizeof (int));
  16725. if (p) return 0;
  16726. ;
  16727. return 0;
  16728. }
  16729. _ACEOF
  16730. if ac_fn_c_try_link "$LINENO"
  16731. then :
  16732. ac_cv_working_alloca_h=yes
  16733. else $as_nop
  16734. ac_cv_working_alloca_h=no
  16735. fi
  16736. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16737. conftest$ac_exeext conftest.$ac_ext
  16738. fi
  16739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16740. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16741. if test $ac_cv_working_alloca_h = yes; then
  16742. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16743. fi
  16744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16745. printf %s "checking for alloca... " >&6; }
  16746. if test ${ac_cv_func_alloca_works+y}
  16747. then :
  16748. printf %s "(cached) " >&6
  16749. else $as_nop
  16750. if test $ac_cv_working_alloca_h = yes; then
  16751. ac_cv_func_alloca_works=yes
  16752. else
  16753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16754. /* end confdefs.h. */
  16755. #include <stdlib.h>
  16756. #include <stddef.h>
  16757. #ifndef alloca
  16758. # ifdef __GNUC__
  16759. # define alloca __builtin_alloca
  16760. # elif defined _MSC_VER
  16761. # include <malloc.h>
  16762. # define alloca _alloca
  16763. # else
  16764. # ifdef __cplusplus
  16765. extern "C"
  16766. # endif
  16767. void *alloca (size_t);
  16768. # endif
  16769. #endif
  16770. int
  16771. main (void)
  16772. {
  16773. char *p = (char *) alloca (1);
  16774. if (p) return 0;
  16775. ;
  16776. return 0;
  16777. }
  16778. _ACEOF
  16779. if ac_fn_c_try_link "$LINENO"
  16780. then :
  16781. ac_cv_func_alloca_works=yes
  16782. else $as_nop
  16783. ac_cv_func_alloca_works=no
  16784. fi
  16785. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16786. conftest$ac_exeext conftest.$ac_ext
  16787. fi
  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. if test $ac_cv_func_alloca_works = yes; then
  16792. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16793. else
  16794. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16795. # that cause trouble. Some versions do not even contain alloca or
  16796. # contain a buggy version. If you still want to use their alloca,
  16797. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16798. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16799. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16801. printf %s "checking stack direction for C alloca... " >&6; }
  16802. if test ${ac_cv_c_stack_direction+y}
  16803. then :
  16804. printf %s "(cached) " >&6
  16805. else $as_nop
  16806. if test "$cross_compiling" = yes
  16807. then :
  16808. ac_cv_c_stack_direction=0
  16809. else $as_nop
  16810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16811. /* end confdefs.h. */
  16812. $ac_includes_default
  16813. int
  16814. find_stack_direction (int *addr, int depth)
  16815. {
  16816. int dir, dummy = 0;
  16817. if (! addr)
  16818. addr = &dummy;
  16819. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16820. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16821. return dir + dummy;
  16822. }
  16823. int
  16824. main (int argc, char **argv)
  16825. {
  16826. return find_stack_direction (0, argc + !argv + 20) < 0;
  16827. }
  16828. _ACEOF
  16829. if ac_fn_c_try_run "$LINENO"
  16830. then :
  16831. ac_cv_c_stack_direction=1
  16832. else $as_nop
  16833. ac_cv_c_stack_direction=-1
  16834. fi
  16835. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16836. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16837. fi
  16838. fi
  16839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16840. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16841. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16842. fi
  16843. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16844. if test "x$ac_cv_func_mprotect" = xyes
  16845. then :
  16846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16847. /* end confdefs.h. */
  16848. #include <sys/types.h>
  16849. #include <sys/mman.h>
  16850. int
  16851. main (void)
  16852. {
  16853. ;
  16854. return 0;
  16855. }
  16856. _ACEOF
  16857. if ac_fn_c_try_compile "$LINENO"
  16858. then :
  16859. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16860. fi
  16861. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16862. fi
  16863. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16864. if test "x$ac_cv_func_malloc" = xyes
  16865. then :
  16866. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16867. fi
  16868. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16869. if test "x$ac_cv_func_calloc" = xyes
  16870. then :
  16871. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16872. fi
  16873. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16874. if test "x$ac_cv_func_realloc" = xyes
  16875. then :
  16876. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16877. fi
  16878. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16879. if test "x$ac_cv_func_free" = xyes
  16880. then :
  16881. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16882. fi
  16883. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16884. if test "x$ac_cv_func_getenv" = xyes
  16885. then :
  16886. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16887. fi
  16888. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16889. if test "x$ac_cv_func_setenv" = xyes
  16890. then :
  16891. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16892. fi
  16893. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16894. if test "x$ac_cv_func_putenv" = xyes
  16895. then :
  16896. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16897. fi
  16898. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16899. if test "x$ac_cv_func_unsetenv" = xyes
  16900. then :
  16901. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16902. fi
  16903. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16904. if test "x$ac_cv_func_bsearch" = xyes
  16905. then :
  16906. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16907. fi
  16908. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16909. if test "x$ac_cv_func_qsort" = xyes
  16910. then :
  16911. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16912. fi
  16913. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16914. if test "x$ac_cv_func_abs" = xyes
  16915. then :
  16916. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16917. fi
  16918. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16919. if test "x$ac_cv_func_bcopy" = xyes
  16920. then :
  16921. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16922. fi
  16923. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16924. if test "x$ac_cv_func_memset" = xyes
  16925. then :
  16926. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16927. fi
  16928. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16929. if test "x$ac_cv_func_memcmp" = xyes
  16930. then :
  16931. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16932. fi
  16933. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16934. if test "x$ac_cv_func_memcpy" = xyes
  16935. then :
  16936. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16937. fi
  16938. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16939. if test "x$ac_cv_func_memmove" = xyes
  16940. then :
  16941. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16942. fi
  16943. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16944. if test "x$ac_cv_func_wcslen" = xyes
  16945. then :
  16946. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16947. fi
  16948. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16949. if test "x$ac_cv_func_wcslcpy" = xyes
  16950. then :
  16951. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16952. fi
  16953. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16954. if test "x$ac_cv_func_wcslcat" = xyes
  16955. then :
  16956. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16957. fi
  16958. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16959. if test "x$ac_cv_func__wcsdup" = xyes
  16960. then :
  16961. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16962. fi
  16963. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16964. if test "x$ac_cv_func_wcsdup" = xyes
  16965. then :
  16966. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16967. fi
  16968. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16969. if test "x$ac_cv_func_wcsstr" = xyes
  16970. then :
  16971. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16972. fi
  16973. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16974. if test "x$ac_cv_func_wcscmp" = xyes
  16975. then :
  16976. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16977. fi
  16978. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16979. if test "x$ac_cv_func_wcsncmp" = xyes
  16980. then :
  16981. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16982. fi
  16983. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16984. if test "x$ac_cv_func_wcscasecmp" = xyes
  16985. then :
  16986. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16987. fi
  16988. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16989. if test "x$ac_cv_func__wcsicmp" = xyes
  16990. then :
  16991. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16992. fi
  16993. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16994. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16995. then :
  16996. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16997. fi
  16998. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16999. if test "x$ac_cv_func__wcsnicmp" = xyes
  17000. then :
  17001. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  17002. fi
  17003. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  17004. if test "x$ac_cv_func_strlen" = xyes
  17005. then :
  17006. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  17007. fi
  17008. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  17009. if test "x$ac_cv_func_strlcpy" = xyes
  17010. then :
  17011. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  17012. fi
  17013. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  17014. if test "x$ac_cv_func_strlcat" = xyes
  17015. then :
  17016. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  17017. fi
  17018. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  17019. if test "x$ac_cv_func__strrev" = xyes
  17020. then :
  17021. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  17022. fi
  17023. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  17024. if test "x$ac_cv_func__strupr" = xyes
  17025. then :
  17026. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  17027. fi
  17028. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  17029. if test "x$ac_cv_func__strlwr" = xyes
  17030. then :
  17031. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  17032. fi
  17033. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  17034. if test "x$ac_cv_func_index" = xyes
  17035. then :
  17036. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  17037. fi
  17038. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  17039. if test "x$ac_cv_func_rindex" = xyes
  17040. then :
  17041. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  17042. fi
  17043. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  17044. if test "x$ac_cv_func_strchr" = xyes
  17045. then :
  17046. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  17047. fi
  17048. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  17049. if test "x$ac_cv_func_strrchr" = xyes
  17050. then :
  17051. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  17052. fi
  17053. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  17054. if test "x$ac_cv_func_strstr" = xyes
  17055. then :
  17056. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  17057. fi
  17058. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  17059. if test "x$ac_cv_func_strtok_r" = xyes
  17060. then :
  17061. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  17062. fi
  17063. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  17064. if test "x$ac_cv_func_itoa" = xyes
  17065. then :
  17066. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  17067. fi
  17068. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  17069. if test "x$ac_cv_func__ltoa" = xyes
  17070. then :
  17071. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  17072. fi
  17073. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  17074. if test "x$ac_cv_func__uitoa" = xyes
  17075. then :
  17076. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  17077. fi
  17078. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17079. if test "x$ac_cv_func__ultoa" = xyes
  17080. then :
  17081. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17082. fi
  17083. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  17084. if test "x$ac_cv_func_strtod" = xyes
  17085. then :
  17086. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  17087. fi
  17088. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17089. if test "x$ac_cv_func_strtol" = xyes
  17090. then :
  17091. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17092. fi
  17093. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17094. if test "x$ac_cv_func_strtoul" = xyes
  17095. then :
  17096. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17097. fi
  17098. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17099. if test "x$ac_cv_func__i64toa" = xyes
  17100. then :
  17101. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17102. fi
  17103. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17104. if test "x$ac_cv_func__ui64toa" = xyes
  17105. then :
  17106. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17107. fi
  17108. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17109. if test "x$ac_cv_func_strtoll" = xyes
  17110. then :
  17111. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17112. fi
  17113. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17114. if test "x$ac_cv_func_strtoull" = xyes
  17115. then :
  17116. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17117. fi
  17118. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17119. if test "x$ac_cv_func_atoi" = xyes
  17120. then :
  17121. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17122. fi
  17123. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17124. if test "x$ac_cv_func_atof" = xyes
  17125. then :
  17126. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17127. fi
  17128. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17129. if test "x$ac_cv_func_strcmp" = xyes
  17130. then :
  17131. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17132. fi
  17133. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17134. if test "x$ac_cv_func_strncmp" = xyes
  17135. then :
  17136. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17137. fi
  17138. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17139. if test "x$ac_cv_func__stricmp" = xyes
  17140. then :
  17141. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17142. fi
  17143. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17144. if test "x$ac_cv_func_strcasecmp" = xyes
  17145. then :
  17146. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17147. fi
  17148. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17149. if test "x$ac_cv_func__strnicmp" = xyes
  17150. then :
  17151. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17152. fi
  17153. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17154. if test "x$ac_cv_func_strncasecmp" = xyes
  17155. then :
  17156. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17157. fi
  17158. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17159. if test "x$ac_cv_func_strcasestr" = xyes
  17160. then :
  17161. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17162. fi
  17163. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17164. if test "x$ac_cv_func_vsscanf" = xyes
  17165. then :
  17166. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17167. fi
  17168. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17169. if test "x$ac_cv_func_vsnprintf" = xyes
  17170. then :
  17171. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17172. fi
  17173. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17174. if test "x$ac_cv_func_fopen64" = xyes
  17175. then :
  17176. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17177. fi
  17178. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17179. if test "x$ac_cv_func_fseeko" = xyes
  17180. then :
  17181. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17182. fi
  17183. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17184. if test "x$ac_cv_func_fseeko64" = xyes
  17185. then :
  17186. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17187. fi
  17188. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17189. if test "x$ac_cv_func_sigaction" = xyes
  17190. then :
  17191. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17192. fi
  17193. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17194. if test "x$ac_cv_func_setjmp" = xyes
  17195. then :
  17196. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17197. fi
  17198. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17199. if test "x$ac_cv_func_nanosleep" = xyes
  17200. then :
  17201. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17202. fi
  17203. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17204. if test "x$ac_cv_func_sysconf" = xyes
  17205. then :
  17206. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17207. fi
  17208. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17209. if test "x$ac_cv_func_sysctlbyname" = xyes
  17210. then :
  17211. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17212. fi
  17213. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17214. if test "x$ac_cv_func_getauxval" = xyes
  17215. then :
  17216. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17217. fi
  17218. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17219. if test "x$ac_cv_func_elf_aux_info" = xyes
  17220. then :
  17221. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17222. fi
  17223. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17224. if test "x$ac_cv_func_poll" = xyes
  17225. then :
  17226. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17227. fi
  17228. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  17229. if test "x$ac_cv_func_memfd_create" = xyes
  17230. then :
  17231. printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
  17232. fi
  17233. ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  17234. if test "x$ac_cv_func_posix_fallocate" = xyes
  17235. then :
  17236. printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
  17237. fi
  17238. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17239. if test "x$ac_cv_func__Exit" = xyes
  17240. then :
  17241. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17242. fi
  17243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17244. printf %s "checking for pow in -lm... " >&6; }
  17245. if test ${ac_cv_lib_m_pow+y}
  17246. then :
  17247. printf %s "(cached) " >&6
  17248. else $as_nop
  17249. ac_check_lib_save_LIBS=$LIBS
  17250. LIBS="-lm $LIBS"
  17251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17252. /* end confdefs.h. */
  17253. /* Override any GCC internal prototype to avoid an error.
  17254. Use char because int might match the return type of a GCC
  17255. builtin and then its argument prototype would still apply. */
  17256. char pow ();
  17257. int
  17258. main (void)
  17259. {
  17260. return pow ();
  17261. ;
  17262. return 0;
  17263. }
  17264. _ACEOF
  17265. if ac_fn_c_try_link "$LINENO"
  17266. then :
  17267. ac_cv_lib_m_pow=yes
  17268. else $as_nop
  17269. ac_cv_lib_m_pow=no
  17270. fi
  17271. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17272. conftest$ac_exeext conftest.$ac_ext
  17273. LIBS=$ac_check_lib_save_LIBS
  17274. fi
  17275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17276. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17277. if test "x$ac_cv_lib_m_pow" = xyes
  17278. then :
  17279. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17280. fi
  17281. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17282. if test "x$ac_cv_func_acos" = xyes
  17283. then :
  17284. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17285. fi
  17286. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17287. if test "x$ac_cv_func_acosf" = xyes
  17288. then :
  17289. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17290. fi
  17291. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17292. if test "x$ac_cv_func_asin" = xyes
  17293. then :
  17294. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17295. fi
  17296. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17297. if test "x$ac_cv_func_asinf" = xyes
  17298. then :
  17299. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17300. fi
  17301. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17302. if test "x$ac_cv_func_atan" = xyes
  17303. then :
  17304. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17305. fi
  17306. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17307. if test "x$ac_cv_func_atanf" = xyes
  17308. then :
  17309. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17310. fi
  17311. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17312. if test "x$ac_cv_func_atan2" = xyes
  17313. then :
  17314. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17315. fi
  17316. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17317. if test "x$ac_cv_func_atan2f" = xyes
  17318. then :
  17319. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17320. fi
  17321. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17322. if test "x$ac_cv_func_ceil" = xyes
  17323. then :
  17324. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17325. fi
  17326. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17327. if test "x$ac_cv_func_ceilf" = xyes
  17328. then :
  17329. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17330. fi
  17331. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17332. if test "x$ac_cv_func_copysign" = xyes
  17333. then :
  17334. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17335. fi
  17336. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17337. if test "x$ac_cv_func_copysignf" = xyes
  17338. then :
  17339. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17340. fi
  17341. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17342. if test "x$ac_cv_func_cos" = xyes
  17343. then :
  17344. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17345. fi
  17346. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17347. if test "x$ac_cv_func_cosf" = xyes
  17348. then :
  17349. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17350. fi
  17351. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17352. if test "x$ac_cv_func_exp" = xyes
  17353. then :
  17354. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17355. fi
  17356. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17357. if test "x$ac_cv_func_expf" = xyes
  17358. then :
  17359. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17360. fi
  17361. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17362. if test "x$ac_cv_func_fabs" = xyes
  17363. then :
  17364. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17365. fi
  17366. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17367. if test "x$ac_cv_func_fabsf" = xyes
  17368. then :
  17369. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17370. fi
  17371. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17372. if test "x$ac_cv_func_floor" = xyes
  17373. then :
  17374. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17375. fi
  17376. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17377. if test "x$ac_cv_func_floorf" = xyes
  17378. then :
  17379. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17380. fi
  17381. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17382. if test "x$ac_cv_func_trunc" = xyes
  17383. then :
  17384. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17385. fi
  17386. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17387. if test "x$ac_cv_func_truncf" = xyes
  17388. then :
  17389. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17390. fi
  17391. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17392. if test "x$ac_cv_func_fmod" = xyes
  17393. then :
  17394. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17395. fi
  17396. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17397. if test "x$ac_cv_func_fmodf" = xyes
  17398. then :
  17399. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17400. fi
  17401. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17402. if test "x$ac_cv_func_log" = xyes
  17403. then :
  17404. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17405. fi
  17406. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17407. if test "x$ac_cv_func_logf" = xyes
  17408. then :
  17409. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17410. fi
  17411. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17412. if test "x$ac_cv_func_log10" = xyes
  17413. then :
  17414. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17415. fi
  17416. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17417. if test "x$ac_cv_func_log10f" = xyes
  17418. then :
  17419. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17420. fi
  17421. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17422. if test "x$ac_cv_func_lround" = xyes
  17423. then :
  17424. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17425. fi
  17426. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17427. if test "x$ac_cv_func_lroundf" = xyes
  17428. then :
  17429. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17430. fi
  17431. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17432. if test "x$ac_cv_func_pow" = xyes
  17433. then :
  17434. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17435. fi
  17436. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17437. if test "x$ac_cv_func_powf" = xyes
  17438. then :
  17439. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17440. fi
  17441. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17442. if test "x$ac_cv_func_round" = xyes
  17443. then :
  17444. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17445. fi
  17446. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17447. if test "x$ac_cv_func_roundf" = xyes
  17448. then :
  17449. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17450. fi
  17451. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17452. if test "x$ac_cv_func_scalbn" = xyes
  17453. then :
  17454. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17455. fi
  17456. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17457. if test "x$ac_cv_func_scalbnf" = xyes
  17458. then :
  17459. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17460. fi
  17461. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17462. if test "x$ac_cv_func_sin" = xyes
  17463. then :
  17464. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17465. fi
  17466. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17467. if test "x$ac_cv_func_sinf" = xyes
  17468. then :
  17469. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17470. fi
  17471. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17472. if test "x$ac_cv_func_sqrt" = xyes
  17473. then :
  17474. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17475. fi
  17476. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17477. if test "x$ac_cv_func_sqrtf" = xyes
  17478. then :
  17479. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17480. fi
  17481. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17482. if test "x$ac_cv_func_tan" = xyes
  17483. then :
  17484. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17485. fi
  17486. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17487. if test "x$ac_cv_func_tanf" = xyes
  17488. then :
  17489. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17490. fi
  17491. if test x$enable_system_iconv = xyes; then
  17492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libc" >&5
  17493. printf %s "checking for iconv in libc... " >&6; }
  17494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17495. /* end confdefs.h. */
  17496. #define LIBICONV_PLUG 1 /* in case libiconv header is in include path */
  17497. #include <stddef.h>
  17498. #include <iconv.h>
  17499. int
  17500. main (void)
  17501. {
  17502. iconv_open(NULL,NULL);
  17503. ;
  17504. return 0;
  17505. }
  17506. _ACEOF
  17507. if ac_fn_c_try_link "$LINENO"
  17508. then :
  17509. have_libc_iconv=yes
  17510. else $as_nop
  17511. have_libc_iconv=no
  17512. fi
  17513. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17514. conftest$ac_exeext conftest.$ac_ext
  17515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libc_iconv" >&5
  17516. printf "%s\n" "$have_libc_iconv" >&6; }
  17517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libiconv" >&5
  17518. printf %s "checking for iconv in libiconv... " >&6; }
  17519. save_LIBS="$LIBS"
  17520. LIBS="$LIBS -liconv"
  17521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17522. /* end confdefs.h. */
  17523. #include <stddef.h>
  17524. #include <iconv.h>
  17525. int
  17526. main (void)
  17527. {
  17528. iconv_open(NULL,NULL);
  17529. ;
  17530. return 0;
  17531. }
  17532. _ACEOF
  17533. if ac_fn_c_try_link "$LINENO"
  17534. then :
  17535. have_libiconv=yes
  17536. else $as_nop
  17537. have_libiconv=no
  17538. fi
  17539. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17540. conftest$ac_exeext conftest.$ac_ext
  17541. LIBS="$save_LIBS"
  17542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libiconv" >&5
  17543. printf "%s\n" "$have_libiconv" >&6; }
  17544. if test x$have_libc_iconv = xyes || test x$have_libiconv = xyes; then
  17545. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17546. if test x$have_libiconv = xyes; then
  17547. if test x$have_libc_iconv != xyes; then
  17548. use_libiconv=yes
  17549. elif test x$enable_libiconv = xyes; then
  17550. use_libiconv=yes
  17551. fi
  17552. fi
  17553. if test x$use_libiconv = xyes; then
  17554. printf "%s\n" "#define SDL_USE_LIBICONV 1" >>confdefs.h
  17555. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17556. echo "-- Using iconv from libiconv"
  17557. else
  17558. echo "-- Using iconv from libc"
  17559. fi
  17560. fi
  17561. fi
  17562. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17563. "
  17564. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17565. then :
  17566. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17567. fi
  17568. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17569. if test "x$ac_cv_header_libunwind_h" = xyes
  17570. then :
  17571. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17572. fi
  17573. fi
  17574. # Check whether --enable-gcc-atomics was given.
  17575. if test ${enable_gcc_atomics+y}
  17576. then :
  17577. enableval=$enable_gcc_atomics;
  17578. else $as_nop
  17579. enable_gcc_atomics=yes
  17580. fi
  17581. if test x$enable_gcc_atomics = xyes; then
  17582. have_gcc_atomics=no
  17583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17584. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17586. /* end confdefs.h. */
  17587. int
  17588. main (void)
  17589. {
  17590. int a;
  17591. void *x, *y, *z;
  17592. __sync_lock_test_and_set(&a, 4);
  17593. __sync_lock_test_and_set(&x, y);
  17594. __sync_fetch_and_add(&a, 1);
  17595. __sync_bool_compare_and_swap(&a, 5, 10);
  17596. __sync_bool_compare_and_swap(&x, y, z);
  17597. ;
  17598. return 0;
  17599. }
  17600. _ACEOF
  17601. if ac_fn_c_try_link "$LINENO"
  17602. then :
  17603. have_gcc_atomics=yes
  17604. fi
  17605. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17606. conftest$ac_exeext conftest.$ac_ext
  17607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17608. printf "%s\n" "$have_gcc_atomics" >&6; }
  17609. if test x$have_gcc_atomics = xyes; then
  17610. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17611. else
  17612. # See if we have the minimum operation needed for GCC atomics
  17613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17614. /* end confdefs.h. */
  17615. int
  17616. main (void)
  17617. {
  17618. int a;
  17619. __sync_lock_test_and_set(&a, 1);
  17620. __sync_lock_release(&a);
  17621. ;
  17622. return 0;
  17623. }
  17624. _ACEOF
  17625. if ac_fn_c_try_link "$LINENO"
  17626. then :
  17627. have_gcc_sync_lock_test_and_set=yes
  17628. fi
  17629. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17630. conftest$ac_exeext conftest.$ac_ext
  17631. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17632. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17633. fi
  17634. fi
  17635. fi
  17636. # Standard C sources
  17637. SOURCES="$SOURCES $srcdir/src/*.c"
  17638. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17639. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17640. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17641. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17642. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17643. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17644. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17645. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17646. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17647. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17648. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17649. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17650. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17651. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17652. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17653. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17654. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17655. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17656. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17657. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17658. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17659. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17660. case "$host" in
  17661. *-*-emscripten*)
  17662. default_atomic=no
  17663. ;;
  17664. *)
  17665. default_atomic=yes
  17666. ;;
  17667. esac
  17668. # Check whether --enable-atomic was given.
  17669. if test ${enable_atomic+y}
  17670. then :
  17671. enableval=$enable_atomic;
  17672. else $as_nop
  17673. enable_atomic=$default_atomic
  17674. fi
  17675. if test x$enable_atomic != xyes; then
  17676. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17677. else
  17678. SUMMARY_modules="${SUMMARY_modules} atomic"
  17679. fi
  17680. # Check whether --enable-audio was given.
  17681. if test ${enable_audio+y}
  17682. then :
  17683. enableval=$enable_audio;
  17684. else $as_nop
  17685. enable_audio=yes
  17686. fi
  17687. if test x$enable_audio != xyes; then
  17688. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17689. else
  17690. SUMMARY_modules="${SUMMARY_modules} audio"
  17691. fi
  17692. # Check whether --enable-video was given.
  17693. if test ${enable_video+y}
  17694. then :
  17695. enableval=$enable_video;
  17696. else $as_nop
  17697. enable_video=yes
  17698. fi
  17699. if test x$enable_video != xyes; then
  17700. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17701. else
  17702. SUMMARY_modules="${SUMMARY_modules} video"
  17703. fi
  17704. # Check whether --enable-render was given.
  17705. if test ${enable_render+y}
  17706. then :
  17707. enableval=$enable_render;
  17708. else $as_nop
  17709. enable_render=yes
  17710. fi
  17711. if test x$enable_render != xyes; then
  17712. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17713. else
  17714. SUMMARY_modules="${SUMMARY_modules} render"
  17715. fi
  17716. # Check whether --enable-events was given.
  17717. if test ${enable_events+y}
  17718. then :
  17719. enableval=$enable_events;
  17720. else $as_nop
  17721. enable_events=yes
  17722. fi
  17723. if test x$enable_events != xyes; then
  17724. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17725. else
  17726. SUMMARY_modules="${SUMMARY_modules} events"
  17727. fi
  17728. # Check whether --enable-joystick was given.
  17729. if test ${enable_joystick+y}
  17730. then :
  17731. enableval=$enable_joystick;
  17732. else $as_nop
  17733. enable_joystick=yes
  17734. fi
  17735. if test x$enable_joystick != xyes; then
  17736. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17737. else
  17738. SUMMARY_modules="${SUMMARY_modules} joystick"
  17739. fi
  17740. # Check whether --enable-haptic was given.
  17741. if test ${enable_haptic+y}
  17742. then :
  17743. enableval=$enable_haptic;
  17744. else $as_nop
  17745. enable_haptic=yes
  17746. fi
  17747. if test x$enable_haptic != xyes; then
  17748. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17749. else
  17750. SUMMARY_modules="${SUMMARY_modules} haptic"
  17751. fi
  17752. # Check whether --enable-hidapi was given.
  17753. if test ${enable_hidapi+y}
  17754. then :
  17755. enableval=$enable_hidapi;
  17756. else $as_nop
  17757. enable_hidapi=yes
  17758. fi
  17759. if test x$enable_hidapi != xyes; then
  17760. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17761. else
  17762. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17763. fi
  17764. # Check whether --enable-sensor was given.
  17765. if test ${enable_sensor+y}
  17766. then :
  17767. enableval=$enable_sensor;
  17768. else $as_nop
  17769. enable_sensor=yes
  17770. fi
  17771. if test x$enable_sensor != xyes; then
  17772. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17773. else
  17774. SUMMARY_modules="${SUMMARY_modules} sensor"
  17775. fi
  17776. # Check whether --enable-power was given.
  17777. if test ${enable_power+y}
  17778. then :
  17779. enableval=$enable_power;
  17780. else $as_nop
  17781. enable_power=yes
  17782. fi
  17783. if test x$enable_power != xyes; then
  17784. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17785. else
  17786. SUMMARY_modules="${SUMMARY_modules} power"
  17787. fi
  17788. # Check whether --enable-filesystem was given.
  17789. if test ${enable_filesystem+y}
  17790. then :
  17791. enableval=$enable_filesystem;
  17792. else $as_nop
  17793. enable_filesystem=yes
  17794. fi
  17795. if test x$enable_filesystem != xyes; then
  17796. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17797. else
  17798. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17799. fi
  17800. # Many subsystems depend on threads, so leave them enabled by default
  17801. #AC_ARG_ENABLE(threads,
  17802. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17803. # , enable_threads=yes)
  17804. enable_threads=yes
  17805. if test x$enable_threads != xyes; then
  17806. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17807. else
  17808. SUMMARY_modules="${SUMMARY_modules} threads"
  17809. fi
  17810. # Check whether --enable-timers was given.
  17811. if test ${enable_timers+y}
  17812. then :
  17813. enableval=$enable_timers;
  17814. else $as_nop
  17815. enable_timers=yes
  17816. fi
  17817. if test x$enable_timers != xyes; then
  17818. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17819. else
  17820. SUMMARY_modules="${SUMMARY_modules} timers"
  17821. fi
  17822. # Check whether --enable-file was given.
  17823. if test ${enable_file+y}
  17824. then :
  17825. enableval=$enable_file;
  17826. else $as_nop
  17827. enable_file=yes
  17828. fi
  17829. if test x$enable_file != xyes; then
  17830. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17831. else
  17832. SUMMARY_modules="${SUMMARY_modules} file"
  17833. fi
  17834. # Check whether --enable-misc was given.
  17835. if test ${enable_misc+y}
  17836. then :
  17837. enableval=$enable_misc;
  17838. else $as_nop
  17839. enable_misc=yes
  17840. fi
  17841. if test x$enable_misc != xyes; then
  17842. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17843. else
  17844. SUMMARY_modules="${SUMMARY_modules} misc"
  17845. fi
  17846. # Check whether --enable-locale was given.
  17847. if test ${enable_locale+y}
  17848. then :
  17849. enableval=$enable_locale;
  17850. else $as_nop
  17851. enable_locale=yes
  17852. fi
  17853. if test x$enable_locale != xyes; then
  17854. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17855. else
  17856. SUMMARY_modules="${SUMMARY_modules} locale"
  17857. fi
  17858. # Check whether --enable-loadso was given.
  17859. if test ${enable_loadso+y}
  17860. then :
  17861. enableval=$enable_loadso;
  17862. else $as_nop
  17863. enable_loadso=yes
  17864. fi
  17865. if test x$enable_loadso != xyes; then
  17866. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17867. else
  17868. SUMMARY_modules="${SUMMARY_modules} loadso"
  17869. fi
  17870. # Check whether --enable-cpuinfo was given.
  17871. if test ${enable_cpuinfo+y}
  17872. then :
  17873. enableval=$enable_cpuinfo;
  17874. else $as_nop
  17875. enable_cpuinfo=yes
  17876. fi
  17877. if test x$enable_cpuinfo != xyes; then
  17878. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17879. else
  17880. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17881. fi
  17882. # Check whether --enable-assembly was given.
  17883. if test ${enable_assembly+y}
  17884. then :
  17885. enableval=$enable_assembly;
  17886. else $as_nop
  17887. enable_assembly=yes
  17888. fi
  17889. if test x$enable_assembly = xyes; then
  17890. SUMMARY_modules="${SUMMARY_modules} assembly"
  17891. # Make sure that we don't generate floating point code that would
  17892. # cause illegal instruction exceptions on older processors
  17893. case "$host" in
  17894. *-*-darwin*)
  17895. # Don't need to worry about Apple hardware, it's all SSE capable
  17896. default_ssemath=yes
  17897. ;;
  17898. *64-*-*)
  17899. # x86 64-bit architectures all have SSE instructions
  17900. default_ssemath=yes
  17901. ;;
  17902. *)
  17903. default_ssemath=no
  17904. ;;
  17905. esac
  17906. # Check whether --enable-ssemath was given.
  17907. if test ${enable_ssemath+y}
  17908. then :
  17909. enableval=$enable_ssemath;
  17910. else $as_nop
  17911. enable_ssemath=$default_ssemath
  17912. fi
  17913. if test x$enable_ssemath = xno; then
  17914. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17915. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17916. fi
  17917. fi
  17918. # Check whether --enable-mmx was given.
  17919. if test ${enable_mmx+y}
  17920. then :
  17921. enableval=$enable_mmx;
  17922. else $as_nop
  17923. enable_mmx=yes
  17924. fi
  17925. if test x$enable_mmx = xyes; then
  17926. save_CFLAGS="$CFLAGS"
  17927. have_gcc_mmx=no
  17928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17929. printf %s "checking for GCC -mmmx option... " >&6; }
  17930. mmx_CFLAGS="-mmmx"
  17931. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17933. /* end confdefs.h. */
  17934. #ifdef __MINGW32__
  17935. #include <_mingw.h>
  17936. #ifdef __MINGW64_VERSION_MAJOR
  17937. #include <intrin.h>
  17938. #else
  17939. #include <mmintrin.h>
  17940. #endif
  17941. #else
  17942. #include <mmintrin.h>
  17943. #endif
  17944. #ifndef __MMX__
  17945. #error Assembler CPP flag not enabled
  17946. #endif
  17947. int
  17948. main (void)
  17949. {
  17950. ;
  17951. return 0;
  17952. }
  17953. _ACEOF
  17954. if ac_fn_c_try_compile "$LINENO"
  17955. then :
  17956. have_gcc_mmx=yes
  17957. fi
  17958. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17960. printf "%s\n" "$have_gcc_mmx" >&6; }
  17961. CFLAGS="$save_CFLAGS"
  17962. if test x$have_gcc_mmx = xyes; then
  17963. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17964. SUMMARY_math="${SUMMARY_math} mmx"
  17965. fi
  17966. fi
  17967. # Check whether --enable-3dnow was given.
  17968. if test ${enable_3dnow+y}
  17969. then :
  17970. enableval=$enable_3dnow;
  17971. else $as_nop
  17972. enable_3dnow=yes
  17973. fi
  17974. if test x$enable_3dnow = xyes; then
  17975. save_CFLAGS="$CFLAGS"
  17976. have_gcc_3dnow=no
  17977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17978. printf %s "checking for GCC -m3dnow option... " >&6; }
  17979. amd3dnow_CFLAGS="-m3dnow"
  17980. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17982. /* end confdefs.h. */
  17983. #include <mm3dnow.h>
  17984. #ifndef __3dNOW__
  17985. #error Assembler CPP flag not enabled
  17986. #endif
  17987. int
  17988. main (void)
  17989. {
  17990. void *p = 0;
  17991. _m_prefetch(p);
  17992. ;
  17993. return 0;
  17994. }
  17995. _ACEOF
  17996. if ac_fn_c_try_link "$LINENO"
  17997. then :
  17998. have_gcc_3dnow=yes
  17999. fi
  18000. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18001. conftest$ac_exeext conftest.$ac_ext
  18002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  18003. printf "%s\n" "$have_gcc_3dnow" >&6; }
  18004. CFLAGS="$save_CFLAGS"
  18005. if test x$have_gcc_3dnow = xyes; then
  18006. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  18007. SUMMARY_math="${SUMMARY_math} 3dnow"
  18008. fi
  18009. fi
  18010. # Check whether --enable-sse was given.
  18011. if test ${enable_sse+y}
  18012. then :
  18013. enableval=$enable_sse;
  18014. else $as_nop
  18015. enable_sse=yes
  18016. fi
  18017. if test x$enable_sse = xyes; then
  18018. save_CFLAGS="$CFLAGS"
  18019. have_gcc_sse=no
  18020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  18021. printf %s "checking for GCC -msse option... " >&6; }
  18022. sse_CFLAGS="-msse"
  18023. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  18024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18025. /* end confdefs.h. */
  18026. #ifdef __MINGW32__
  18027. #include <_mingw.h>
  18028. #ifdef __MINGW64_VERSION_MAJOR
  18029. #include <intrin.h>
  18030. #else
  18031. #include <xmmintrin.h>
  18032. #endif
  18033. #else
  18034. #include <xmmintrin.h>
  18035. #endif
  18036. #ifndef __SSE__
  18037. #error Assembler CPP flag not enabled
  18038. #endif
  18039. int
  18040. main (void)
  18041. {
  18042. ;
  18043. return 0;
  18044. }
  18045. _ACEOF
  18046. if ac_fn_c_try_compile "$LINENO"
  18047. then :
  18048. have_gcc_sse=yes
  18049. fi
  18050. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  18052. printf "%s\n" "$have_gcc_sse" >&6; }
  18053. CFLAGS="$save_CFLAGS"
  18054. if test x$have_gcc_sse = xyes; then
  18055. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  18056. SUMMARY_math="${SUMMARY_math} sse"
  18057. fi
  18058. fi
  18059. # Check whether --enable-sse2 was given.
  18060. if test ${enable_sse2+y}
  18061. then :
  18062. enableval=$enable_sse2;
  18063. else $as_nop
  18064. enable_sse2=$default_ssemath
  18065. fi
  18066. if test x$enable_sse2 = xyes; then
  18067. save_CFLAGS="$CFLAGS"
  18068. have_gcc_sse2=no
  18069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  18070. printf %s "checking for GCC -msse2 option... " >&6; }
  18071. sse2_CFLAGS="-msse2"
  18072. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  18073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18074. /* end confdefs.h. */
  18075. #ifdef __MINGW32__
  18076. #include <_mingw.h>
  18077. #ifdef __MINGW64_VERSION_MAJOR
  18078. #include <intrin.h>
  18079. #else
  18080. #include <emmintrin.h>
  18081. #endif
  18082. #else
  18083. #include <emmintrin.h>
  18084. #endif
  18085. #ifndef __SSE2__
  18086. #error Assembler CPP flag not enabled
  18087. #endif
  18088. int
  18089. main (void)
  18090. {
  18091. ;
  18092. return 0;
  18093. }
  18094. _ACEOF
  18095. if ac_fn_c_try_compile "$LINENO"
  18096. then :
  18097. have_gcc_sse2=yes
  18098. fi
  18099. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  18101. printf "%s\n" "$have_gcc_sse2" >&6; }
  18102. CFLAGS="$save_CFLAGS"
  18103. if test x$have_gcc_sse2 = xyes; then
  18104. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  18105. SUMMARY_math="${SUMMARY_math} sse2"
  18106. fi
  18107. fi
  18108. # Check whether --enable-sse3 was given.
  18109. if test ${enable_sse3+y}
  18110. then :
  18111. enableval=$enable_sse3;
  18112. else $as_nop
  18113. enable_sse3=$default_ssemath
  18114. fi
  18115. if test x$enable_sse3 = xyes; then
  18116. save_CFLAGS="$CFLAGS"
  18117. have_gcc_sse3=no
  18118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  18119. printf %s "checking for GCC -msse3 option... " >&6; }
  18120. sse3_CFLAGS="-msse3"
  18121. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18123. /* end confdefs.h. */
  18124. #ifdef __MINGW32__
  18125. #include <_mingw.h>
  18126. #ifdef __MINGW64_VERSION_MAJOR
  18127. #include <intrin.h>
  18128. #else
  18129. #include <pmmintrin.h>
  18130. #endif
  18131. #else
  18132. #include <pmmintrin.h>
  18133. #endif
  18134. #ifndef __SSE2__
  18135. #error Assembler CPP flag not enabled
  18136. #endif
  18137. int
  18138. main (void)
  18139. {
  18140. ;
  18141. return 0;
  18142. }
  18143. _ACEOF
  18144. if ac_fn_c_try_compile "$LINENO"
  18145. then :
  18146. have_gcc_sse3=yes
  18147. fi
  18148. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18150. printf "%s\n" "$have_gcc_sse3" >&6; }
  18151. CFLAGS="$save_CFLAGS"
  18152. if test x$have_gcc_sse3 = xyes; then
  18153. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18154. SUMMARY_math="${SUMMARY_math} sse3"
  18155. fi
  18156. fi
  18157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18158. printf %s "checking for immintrin.h... " >&6; }
  18159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18160. /* end confdefs.h. */
  18161. #include <immintrin.h>
  18162. int
  18163. main (void)
  18164. {
  18165. ;
  18166. return 0;
  18167. }
  18168. _ACEOF
  18169. if ac_fn_c_try_compile "$LINENO"
  18170. then :
  18171. have_immintrin_h_hdr=yes
  18172. else $as_nop
  18173. have_immintrin_h_hdr=no
  18174. fi
  18175. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18177. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18178. if test x$have_immintrin_h_hdr = xyes; then
  18179. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18180. fi
  18181. # Check whether --enable-altivec was given.
  18182. if test ${enable_altivec+y}
  18183. then :
  18184. enableval=$enable_altivec;
  18185. else $as_nop
  18186. enable_altivec=yes
  18187. fi
  18188. if test x$enable_altivec = xyes; then
  18189. save_CFLAGS="$CFLAGS"
  18190. have_gcc_altivec=no
  18191. have_altivec_h_hdr=no
  18192. altivec_CFLAGS="-maltivec"
  18193. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18195. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18197. /* end confdefs.h. */
  18198. #include <altivec.h>
  18199. vector unsigned int vzero() {
  18200. return vec_splat_u32(0);
  18201. }
  18202. int
  18203. main (void)
  18204. {
  18205. ;
  18206. return 0;
  18207. }
  18208. _ACEOF
  18209. if ac_fn_c_try_compile "$LINENO"
  18210. then :
  18211. have_gcc_altivec=yes
  18212. have_altivec_h_hdr=yes
  18213. fi
  18214. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18216. printf "%s\n" "$have_gcc_altivec" >&6; }
  18217. if test x$have_gcc_altivec = xno; then
  18218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18219. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18221. /* end confdefs.h. */
  18222. vector unsigned int vzero() {
  18223. return vec_splat_u32(0);
  18224. }
  18225. int
  18226. main (void)
  18227. {
  18228. ;
  18229. return 0;
  18230. }
  18231. _ACEOF
  18232. if ac_fn_c_try_compile "$LINENO"
  18233. then :
  18234. have_gcc_altivec=yes
  18235. fi
  18236. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18238. printf "%s\n" "$have_gcc_altivec" >&6; }
  18239. fi
  18240. if test x$have_gcc_altivec = xno; then
  18241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18242. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18243. altivec_CFLAGS="-faltivec"
  18244. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18246. /* end confdefs.h. */
  18247. #include <altivec.h>
  18248. vector unsigned int vzero() {
  18249. return vec_splat_u32(0);
  18250. }
  18251. int
  18252. main (void)
  18253. {
  18254. ;
  18255. return 0;
  18256. }
  18257. _ACEOF
  18258. if ac_fn_c_try_compile "$LINENO"
  18259. then :
  18260. have_gcc_altivec=yes
  18261. have_altivec_h_hdr=yes
  18262. fi
  18263. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18265. printf "%s\n" "$have_gcc_altivec" >&6; }
  18266. fi
  18267. if test x$have_gcc_altivec = xno; then
  18268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18269. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18271. /* end confdefs.h. */
  18272. vector unsigned int vzero() {
  18273. return vec_splat_u32(0);
  18274. }
  18275. int
  18276. main (void)
  18277. {
  18278. ;
  18279. return 0;
  18280. }
  18281. _ACEOF
  18282. if ac_fn_c_try_compile "$LINENO"
  18283. then :
  18284. have_gcc_altivec=yes
  18285. fi
  18286. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18288. printf "%s\n" "$have_gcc_altivec" >&6; }
  18289. fi
  18290. CFLAGS="$save_CFLAGS"
  18291. if test x$have_gcc_altivec = xyes; then
  18292. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18293. if test x$have_altivec_h_hdr = xyes; then
  18294. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18295. fi
  18296. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18297. SUMMARY_math="${SUMMARY_math} altivec"
  18298. fi
  18299. fi
  18300. fi
  18301. # Check whether --enable-lsx was given.
  18302. if test ${enable_lsx+y}
  18303. then :
  18304. enableval=$enable_lsx;
  18305. else $as_nop
  18306. enable_lsx=yes
  18307. fi
  18308. if test x$enable_lsx = xyes; then
  18309. save_CFLAGS="$CFLAGS"
  18310. have_gcc_lsx=no
  18311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18312. printf %s "checking for GCC -mlsx option... " >&6; }
  18313. lsx_CFLAGS="-mlsx"
  18314. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18316. /* end confdefs.h. */
  18317. #ifndef __loongarch_sx
  18318. #error Assembler CPP flag not enabled
  18319. #endif
  18320. int
  18321. main (void)
  18322. {
  18323. ;
  18324. return 0;
  18325. }
  18326. _ACEOF
  18327. if ac_fn_c_try_compile "$LINENO"
  18328. then :
  18329. have_gcc_lsx=yes
  18330. fi
  18331. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18333. printf "%s\n" "$have_gcc_lsx" >&6; }
  18334. CFLAGS="$save_CFLAGS"
  18335. if test x$have_gcc_lsx = xyes; then
  18336. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18337. SUMMARY_math="${SUMMARY_math} lsx"
  18338. fi
  18339. fi
  18340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18341. printf %s "checking for lsxintrin.h... " >&6; }
  18342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18343. /* end confdefs.h. */
  18344. #include <lsxintrin.h>
  18345. int
  18346. main (void)
  18347. {
  18348. ;
  18349. return 0;
  18350. }
  18351. _ACEOF
  18352. if ac_fn_c_try_compile "$LINENO"
  18353. then :
  18354. have_lsxintrin_h_hdr=yes
  18355. else $as_nop
  18356. have_lsxintrin_h_hdr=no
  18357. fi
  18358. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18360. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18361. if test x$have_lsxintrin_h_hdr = xyes; then
  18362. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18363. fi
  18364. CheckOSS()
  18365. {
  18366. # Check whether --enable-oss was given.
  18367. if test ${enable_oss+y}
  18368. then :
  18369. enableval=$enable_oss;
  18370. else $as_nop
  18371. enable_oss=maybe
  18372. fi
  18373. if test x$enable_oss = xmaybe; then
  18374. enable_oss=yes
  18375. fi
  18376. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18378. printf %s "checking for OSS audio support... " >&6; }
  18379. have_oss=no
  18380. if test x$have_oss != xyes; then
  18381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18382. /* end confdefs.h. */
  18383. #include <sys/soundcard.h>
  18384. int
  18385. main (void)
  18386. {
  18387. int arg = SNDCTL_DSP_SETFRAGMENT;
  18388. ;
  18389. return 0;
  18390. }
  18391. _ACEOF
  18392. if ac_fn_c_try_compile "$LINENO"
  18393. then :
  18394. have_oss=yes
  18395. fi
  18396. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18397. fi
  18398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18399. printf "%s\n" "$have_oss" >&6; }
  18400. if test x$have_oss = xyes; then
  18401. SUMMARY_audio="${SUMMARY_audio} oss"
  18402. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18403. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18404. have_audio=yes
  18405. # We may need to link with ossaudio emulation library
  18406. case "$host" in
  18407. *-*-netbsd*)
  18408. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18409. esac
  18410. fi
  18411. fi
  18412. }
  18413. CheckALSA()
  18414. {
  18415. # Check whether --enable-alsa was given.
  18416. if test ${enable_alsa+y}
  18417. then :
  18418. enableval=$enable_alsa;
  18419. else $as_nop
  18420. enable_alsa=yes
  18421. fi
  18422. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18423. alsa_save_CFLAGS="$CFLAGS"
  18424. alsa_save_LDFLAGS="$LDFLAGS"
  18425. alsa_save_LIBS="$LIBS"
  18426. alsa_found=yes
  18427. # Check whether --with-alsa-prefix was given.
  18428. if test ${with_alsa_prefix+y}
  18429. then :
  18430. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18431. else $as_nop
  18432. alsa_prefix=""
  18433. fi
  18434. # Check whether --with-alsa-inc-prefix was given.
  18435. if test ${with_alsa_inc_prefix+y}
  18436. then :
  18437. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18438. else $as_nop
  18439. alsa_inc_prefix=""
  18440. fi
  18441. # Check whether --enable-alsatest was given.
  18442. if test ${enable_alsatest+y}
  18443. then :
  18444. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18445. else $as_nop
  18446. enable_alsatest=yes
  18447. fi
  18448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18449. printf %s "checking for ALSA CFLAGS... " >&6; }
  18450. if test "$alsa_inc_prefix" != "" ; then
  18451. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18452. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18453. fi
  18454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18455. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18457. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18458. if test "$alsa_prefix" != "" ; then
  18459. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18460. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18461. fi
  18462. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18463. LIBS=`echo $LIBS | sed 's/-lm//'`
  18464. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18465. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18466. LIBS=`echo $LIBS | sed 's/ //'`
  18467. LIBS="$ALSA_LIBS $LIBS"
  18468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18469. printf "%s\n" "$ALSA_LIBS" >&6; }
  18470. min_alsa_version=1.0.11
  18471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18472. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18473. no_alsa=""
  18474. alsa_min_major_version=`echo $min_alsa_version | \
  18475. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18476. alsa_min_minor_version=`echo $min_alsa_version | \
  18477. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18478. alsa_min_micro_version=`echo $min_alsa_version | \
  18479. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18480. ac_ext=c
  18481. ac_cpp='$CPP $CPPFLAGS'
  18482. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18483. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18484. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18486. /* end confdefs.h. */
  18487. #include <alsa/asoundlib.h>
  18488. int
  18489. main (void)
  18490. {
  18491. /* ensure backward compatibility */
  18492. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18493. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18494. #endif
  18495. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18496. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18497. #endif
  18498. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18499. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18500. #endif
  18501. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18502. exit(0);
  18503. # else
  18504. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18505. # error not present
  18506. # endif
  18507. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18508. exit(0);
  18509. # else
  18510. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18511. # error not present
  18512. # endif
  18513. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18514. # error not present
  18515. # endif
  18516. # endif
  18517. # endif
  18518. exit(0);
  18519. ;
  18520. return 0;
  18521. }
  18522. _ACEOF
  18523. if ac_fn_c_try_compile "$LINENO"
  18524. then :
  18525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18526. printf "%s\n" "found." >&6; }
  18527. else $as_nop
  18528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18529. printf "%s\n" "not present." >&6; }
  18530. alsa_found=no
  18531. fi
  18532. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18533. ac_ext=c
  18534. ac_cpp='$CPP $CPPFLAGS'
  18535. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18536. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18537. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18538. if test "x$enable_alsatest" = "xyes"; then
  18539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18540. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18541. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18542. then :
  18543. printf %s "(cached) " >&6
  18544. else $as_nop
  18545. ac_check_lib_save_LIBS=$LIBS
  18546. LIBS="-lasound $LIBS"
  18547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18548. /* end confdefs.h. */
  18549. /* Override any GCC internal prototype to avoid an error.
  18550. Use char because int might match the return type of a GCC
  18551. builtin and then its argument prototype would still apply. */
  18552. char snd_ctl_open ();
  18553. int
  18554. main (void)
  18555. {
  18556. return snd_ctl_open ();
  18557. ;
  18558. return 0;
  18559. }
  18560. _ACEOF
  18561. if ac_fn_c_try_link "$LINENO"
  18562. then :
  18563. ac_cv_lib_asound_snd_ctl_open=yes
  18564. else $as_nop
  18565. ac_cv_lib_asound_snd_ctl_open=no
  18566. fi
  18567. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18568. conftest$ac_exeext conftest.$ac_ext
  18569. LIBS=$ac_check_lib_save_LIBS
  18570. fi
  18571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18572. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18573. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18574. then :
  18575. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18576. LIBS="-lasound $LIBS"
  18577. else $as_nop
  18578. alsa_found=no
  18579. fi
  18580. fi
  18581. if test "x$alsa_found" = "xyes" ; then
  18582. have_alsa=yes
  18583. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18584. LIBS=`echo $LIBS | sed 's/ //'`
  18585. LIBS="-lasound $LIBS"
  18586. fi
  18587. if test "x$alsa_found" = "xno" ; then
  18588. have_alsa=no
  18589. CFLAGS="$alsa_save_CFLAGS"
  18590. LDFLAGS="$alsa_save_LDFLAGS"
  18591. LIBS="$alsa_save_LIBS"
  18592. ALSA_CFLAGS=""
  18593. ALSA_LIBS=""
  18594. fi
  18595. # Restore all flags from before the ALSA detection runs
  18596. CFLAGS="$alsa_save_CFLAGS"
  18597. LDFLAGS="$alsa_save_LDFLAGS"
  18598. LIBS="$alsa_save_LIBS"
  18599. if test x$have_alsa = xyes; then
  18600. # Check whether --enable-alsa-shared was given.
  18601. if test ${enable_alsa_shared+y}
  18602. then :
  18603. enableval=$enable_alsa_shared;
  18604. else $as_nop
  18605. enable_alsa_shared=yes
  18606. fi
  18607. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18608. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18609. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18610. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18611. if test x$have_loadso != xyes && \
  18612. test x$enable_alsa_shared = xyes; then
  18613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18614. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18615. fi
  18616. if test x$have_loadso = xyes && \
  18617. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18618. echo "-- dynamic libasound -> $alsa_lib"
  18619. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18620. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18621. else
  18622. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18623. SUMMARY_audio="${SUMMARY_audio} alsa"
  18624. fi
  18625. have_audio=yes
  18626. fi
  18627. fi
  18628. }
  18629. CheckJACK()
  18630. {
  18631. # Check whether --enable-jack was given.
  18632. if test ${enable_jack+y}
  18633. then :
  18634. enableval=$enable_jack;
  18635. else $as_nop
  18636. enable_jack=yes
  18637. fi
  18638. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18639. pkg_failed=no
  18640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18641. printf %s "checking for jack >= 0.125... " >&6; }
  18642. if test -n "$JACK_CFLAGS"; then
  18643. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18644. elif test -n "$PKG_CONFIG"; then
  18645. if test -n "$PKG_CONFIG" && \
  18646. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18647. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18648. ac_status=$?
  18649. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18650. test $ac_status = 0; }; then
  18651. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18652. test "x$?" != "x0" && pkg_failed=yes
  18653. else
  18654. pkg_failed=yes
  18655. fi
  18656. else
  18657. pkg_failed=untried
  18658. fi
  18659. if test -n "$JACK_LIBS"; then
  18660. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18661. elif test -n "$PKG_CONFIG"; then
  18662. if test -n "$PKG_CONFIG" && \
  18663. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18664. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18665. ac_status=$?
  18666. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18667. test $ac_status = 0; }; then
  18668. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18669. test "x$?" != "x0" && pkg_failed=yes
  18670. else
  18671. pkg_failed=yes
  18672. fi
  18673. else
  18674. pkg_failed=untried
  18675. fi
  18676. if test $pkg_failed = yes; then
  18677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18678. printf "%s\n" "no" >&6; }
  18679. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18680. _pkg_short_errors_supported=yes
  18681. else
  18682. _pkg_short_errors_supported=no
  18683. fi
  18684. if test $_pkg_short_errors_supported = yes; then
  18685. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18686. else
  18687. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18688. fi
  18689. # Put the nasty error message in config.log where it belongs
  18690. echo "$JACK_PKG_ERRORS" >&5
  18691. audio_jack=no
  18692. elif test $pkg_failed = untried; then
  18693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18694. printf "%s\n" "no" >&6; }
  18695. audio_jack=no
  18696. else
  18697. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18698. JACK_LIBS=$pkg_cv_JACK_LIBS
  18699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18700. printf "%s\n" "yes" >&6; }
  18701. audio_jack=yes
  18702. fi
  18703. if test x$audio_jack = xyes; then
  18704. # Check whether --enable-jack-shared was given.
  18705. if test ${enable_jack_shared+y}
  18706. then :
  18707. enableval=$enable_jack_shared;
  18708. else $as_nop
  18709. enable_jack_shared=yes
  18710. fi
  18711. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18712. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18713. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18714. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18715. if test x$have_loadso != xyes && \
  18716. test x$enable_jack_shared = xyes; then
  18717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18718. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18719. fi
  18720. if test x$have_loadso = xyes && \
  18721. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18722. echo "-- dynamic libjack -> $jack_lib"
  18723. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18724. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18725. case "$host" in
  18726. # On Solaris, jack must be linked deferred explicitly
  18727. # to prevent undefined symbol failures.
  18728. *-*-solaris*)
  18729. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18730. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18731. esac
  18732. else
  18733. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18734. SUMMARY_audio="${SUMMARY_audio} jack"
  18735. fi
  18736. have_audio=yes
  18737. fi
  18738. fi
  18739. }
  18740. CheckESD()
  18741. {
  18742. # Check whether --enable-esd was given.
  18743. if test ${enable_esd+y}
  18744. then :
  18745. enableval=$enable_esd;
  18746. else $as_nop
  18747. enable_esd=yes
  18748. fi
  18749. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18750. pkg_failed=no
  18751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18752. printf %s "checking for esound >= 0.2.8... " >&6; }
  18753. if test -n "$ESD_CFLAGS"; then
  18754. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18755. elif test -n "$PKG_CONFIG"; then
  18756. if test -n "$PKG_CONFIG" && \
  18757. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18758. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18759. ac_status=$?
  18760. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18761. test $ac_status = 0; }; then
  18762. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18763. test "x$?" != "x0" && pkg_failed=yes
  18764. else
  18765. pkg_failed=yes
  18766. fi
  18767. else
  18768. pkg_failed=untried
  18769. fi
  18770. if test -n "$ESD_LIBS"; then
  18771. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18772. elif test -n "$PKG_CONFIG"; then
  18773. if test -n "$PKG_CONFIG" && \
  18774. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18775. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18776. ac_status=$?
  18777. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18778. test $ac_status = 0; }; then
  18779. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18780. test "x$?" != "x0" && pkg_failed=yes
  18781. else
  18782. pkg_failed=yes
  18783. fi
  18784. else
  18785. pkg_failed=untried
  18786. fi
  18787. if test $pkg_failed = yes; then
  18788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18789. printf "%s\n" "no" >&6; }
  18790. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18791. _pkg_short_errors_supported=yes
  18792. else
  18793. _pkg_short_errors_supported=no
  18794. fi
  18795. if test $_pkg_short_errors_supported = yes; then
  18796. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18797. else
  18798. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18799. fi
  18800. # Put the nasty error message in config.log where it belongs
  18801. echo "$ESD_PKG_ERRORS" >&5
  18802. have_esd=no
  18803. elif test $pkg_failed = untried; then
  18804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18805. printf "%s\n" "no" >&6; }
  18806. have_esd=no
  18807. else
  18808. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18809. ESD_LIBS=$pkg_cv_ESD_LIBS
  18810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18811. printf "%s\n" "yes" >&6; }
  18812. have_esd=yes
  18813. fi
  18814. if test x$have_esd = xno; then
  18815. # Check whether --with-esd-prefix was given.
  18816. if test ${with_esd_prefix+y}
  18817. then :
  18818. withval=$with_esd_prefix; esd_prefix="$withval"
  18819. else $as_nop
  18820. esd_prefix=""
  18821. fi
  18822. # Check whether --with-esd-exec-prefix was given.
  18823. if test ${with_esd_exec_prefix+y}
  18824. then :
  18825. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18826. else $as_nop
  18827. esd_exec_prefix=""
  18828. fi
  18829. # Check whether --enable-esdtest was given.
  18830. if test ${enable_esdtest+y}
  18831. then :
  18832. enableval=$enable_esdtest;
  18833. else $as_nop
  18834. enable_esdtest=yes
  18835. fi
  18836. if test x$esd_exec_prefix != x ; then
  18837. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18838. if test x${ESD_CONFIG+set} != xset ; then
  18839. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18840. fi
  18841. fi
  18842. if test x$esd_prefix != x ; then
  18843. esd_args="$esd_args --prefix=$esd_prefix"
  18844. if test x${ESD_CONFIG+set} != xset ; then
  18845. ESD_CONFIG=$esd_prefix/bin/esd-config
  18846. fi
  18847. fi
  18848. # Extract the first word of "esd-config", so it can be a program name with args.
  18849. set dummy esd-config; ac_word=$2
  18850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18851. printf %s "checking for $ac_word... " >&6; }
  18852. if test ${ac_cv_path_ESD_CONFIG+y}
  18853. then :
  18854. printf %s "(cached) " >&6
  18855. else $as_nop
  18856. case $ESD_CONFIG in
  18857. [\\/]* | ?:[\\/]*)
  18858. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18859. ;;
  18860. *)
  18861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18862. for as_dir in $PATH
  18863. do
  18864. IFS=$as_save_IFS
  18865. case $as_dir in #(((
  18866. '') as_dir=./ ;;
  18867. */) ;;
  18868. *) as_dir=$as_dir/ ;;
  18869. esac
  18870. for ac_exec_ext in '' $ac_executable_extensions; do
  18871. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18872. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18873. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18874. break 2
  18875. fi
  18876. done
  18877. done
  18878. IFS=$as_save_IFS
  18879. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18880. ;;
  18881. esac
  18882. fi
  18883. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18884. if test -n "$ESD_CONFIG"; then
  18885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18886. printf "%s\n" "$ESD_CONFIG" >&6; }
  18887. else
  18888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18889. printf "%s\n" "no" >&6; }
  18890. fi
  18891. min_esd_version=0.2.8
  18892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18893. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18894. no_esd=""
  18895. if test "$ESD_CONFIG" = "no" ; then
  18896. no_esd=yes
  18897. else
  18898. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18899. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18900. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18901. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18902. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18903. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18904. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18905. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18906. if test "x$enable_esdtest" = "xyes" ; then
  18907. ac_ext=c
  18908. ac_cpp='$CPP $CPPFLAGS'
  18909. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18910. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18911. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18912. ac_save_CFLAGS="$CFLAGS"
  18913. ac_save_LIBS="$LIBS"
  18914. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18915. LIBS="$LIBS $ESD_LIBS"
  18916. rm -f conf.esdtest
  18917. if test "$cross_compiling" = yes
  18918. then :
  18919. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18920. else $as_nop
  18921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18922. /* end confdefs.h. */
  18923. #include <stdio.h>
  18924. #include <stdlib.h>
  18925. #include <esd.h>
  18926. int main (void)
  18927. {
  18928. int major, minor, micro;
  18929. FILE *fp = fopen("conf.esdtest", "w");
  18930. if (fp) fclose(fp);
  18931. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18932. printf("%s, bad version string\n", "$min_esd_version");
  18933. exit(1);
  18934. }
  18935. if (($esd_major_version > major) ||
  18936. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18937. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18938. {
  18939. return 0;
  18940. }
  18941. else
  18942. {
  18943. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18944. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18945. printf("*** best to upgrade to the required version.\n");
  18946. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18947. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18948. printf("*** config.cache before re-running configure\n");
  18949. return 1;
  18950. }
  18951. }
  18952. _ACEOF
  18953. if ac_fn_c_try_run "$LINENO"
  18954. then :
  18955. else $as_nop
  18956. no_esd=yes
  18957. fi
  18958. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18959. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18960. fi
  18961. CFLAGS="$ac_save_CFLAGS"
  18962. LIBS="$ac_save_LIBS"
  18963. ac_ext=c
  18964. ac_cpp='$CPP $CPPFLAGS'
  18965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18968. fi
  18969. fi
  18970. if test "x$no_esd" = x ; then
  18971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18972. printf "%s\n" "yes" >&6; }
  18973. have_esd=yes
  18974. else
  18975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18976. printf "%s\n" "no" >&6; }
  18977. if test "$ESD_CONFIG" = "no" ; then
  18978. :
  18979. else
  18980. if test -f conf.esdtest ; then
  18981. :
  18982. else
  18983. echo "*** Could not run ESD test program, checking why..."
  18984. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18985. LIBS="$LIBS $ESD_LIBS"
  18986. ac_ext=c
  18987. ac_cpp='$CPP $CPPFLAGS'
  18988. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18989. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18990. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18992. /* end confdefs.h. */
  18993. #include <stdio.h>
  18994. #include <esd.h>
  18995. int
  18996. main (void)
  18997. {
  18998. return 0;
  18999. ;
  19000. return 0;
  19001. }
  19002. _ACEOF
  19003. if ac_fn_c_try_link "$LINENO"
  19004. then :
  19005. echo "*** The test program compiled, but did not run. This usually means"
  19006. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  19007. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  19008. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  19009. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  19010. echo "*** is required on your system"
  19011. echo "***"
  19012. echo "*** If you have an old version installed, it is best to remove it, although"
  19013. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  19014. else $as_nop
  19015. echo "*** The test program failed to compile or link. See the file config.log for the"
  19016. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  19017. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  19018. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  19019. fi
  19020. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19021. conftest$ac_exeext conftest.$ac_ext
  19022. CFLAGS="$ac_save_CFLAGS"
  19023. LIBS="$ac_save_LIBS"
  19024. ac_ext=c
  19025. ac_cpp='$CPP $CPPFLAGS'
  19026. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19027. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19028. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19029. fi
  19030. fi
  19031. ESD_CFLAGS=""
  19032. ESD_LIBS=""
  19033. have_esd=no
  19034. fi
  19035. rm -f conf.esdtest
  19036. fi
  19037. if test x$have_esd = xyes; then
  19038. # Check whether --enable-esd-shared was given.
  19039. if test ${enable_esd_shared+y}
  19040. then :
  19041. enableval=$enable_esd_shared;
  19042. else $as_nop
  19043. enable_esd_shared=yes
  19044. fi
  19045. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19046. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  19047. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  19048. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  19049. if test x$have_loadso != xyes && \
  19050. test x$enable_esd_shared = xyes; then
  19051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  19052. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  19053. fi
  19054. if test x$have_loadso = xyes && \
  19055. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  19056. echo "-- dynamic libesd -> $esd_lib"
  19057. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  19058. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  19059. else
  19060. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  19061. SUMMARY_audio="${SUMMARY_audio} esd"
  19062. fi
  19063. have_audio=yes
  19064. fi
  19065. fi
  19066. }
  19067. CheckPipewire()
  19068. {
  19069. # Check whether --enable-pipewire was given.
  19070. if test ${enable_pipewire+y}
  19071. then :
  19072. enableval=$enable_pipewire;
  19073. else $as_nop
  19074. enable_pipewire=yes
  19075. fi
  19076. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19077. pkg_failed=no
  19078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19079. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19080. if test -n "$PIPEWIRE_CFLAGS"; then
  19081. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19082. elif test -n "$PKG_CONFIG"; then
  19083. if test -n "$PKG_CONFIG" && \
  19084. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19085. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19086. ac_status=$?
  19087. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19088. test $ac_status = 0; }; then
  19089. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19090. test "x$?" != "x0" && pkg_failed=yes
  19091. else
  19092. pkg_failed=yes
  19093. fi
  19094. else
  19095. pkg_failed=untried
  19096. fi
  19097. if test -n "$PIPEWIRE_LIBS"; then
  19098. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19099. elif test -n "$PKG_CONFIG"; then
  19100. if test -n "$PKG_CONFIG" && \
  19101. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19102. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19103. ac_status=$?
  19104. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19105. test $ac_status = 0; }; then
  19106. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19107. test "x$?" != "x0" && pkg_failed=yes
  19108. else
  19109. pkg_failed=yes
  19110. fi
  19111. else
  19112. pkg_failed=untried
  19113. fi
  19114. if test $pkg_failed = yes; then
  19115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19116. printf "%s\n" "no" >&6; }
  19117. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19118. _pkg_short_errors_supported=yes
  19119. else
  19120. _pkg_short_errors_supported=no
  19121. fi
  19122. if test $_pkg_short_errors_supported = yes; then
  19123. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19124. else
  19125. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19126. fi
  19127. # Put the nasty error message in config.log where it belongs
  19128. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19129. audio_pipewire=no
  19130. elif test $pkg_failed = untried; then
  19131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19132. printf "%s\n" "no" >&6; }
  19133. audio_pipewire=no
  19134. else
  19135. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19136. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19138. printf "%s\n" "yes" >&6; }
  19139. audio_pipewire=yes
  19140. fi
  19141. if test x$audio_pipewire = xyes; then
  19142. # Check whether --enable-pipewire-shared was given.
  19143. if test ${enable_pipewire_shared+y}
  19144. then :
  19145. enableval=$enable_pipewire_shared;
  19146. else $as_nop
  19147. enable_pipewire_shared=yes
  19148. fi
  19149. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19150. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19151. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19152. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19153. if test x$have_loadso != xyes && \
  19154. test x$enable_pipewire_shared = xyes; then
  19155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19156. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19157. fi
  19158. if test x$have_loadso = xyes && \
  19159. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19160. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19161. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19162. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19163. else
  19164. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19165. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19166. fi
  19167. have_audio=yes
  19168. fi
  19169. fi
  19170. }
  19171. CheckPulseAudio()
  19172. {
  19173. # Check whether --enable-pulseaudio was given.
  19174. if test ${enable_pulseaudio+y}
  19175. then :
  19176. enableval=$enable_pulseaudio;
  19177. else $as_nop
  19178. enable_pulseaudio=yes
  19179. fi
  19180. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19181. pkg_failed=no
  19182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse >= 0.9.15" >&5
  19183. printf %s "checking for libpulse >= 0.9.15... " >&6; }
  19184. if test -n "$PULSEAUDIO_CFLAGS"; then
  19185. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19186. elif test -n "$PKG_CONFIG"; then
  19187. if test -n "$PKG_CONFIG" && \
  19188. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19189. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19190. ac_status=$?
  19191. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19192. test $ac_status = 0; }; then
  19193. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.15" 2>/dev/null`
  19194. test "x$?" != "x0" && pkg_failed=yes
  19195. else
  19196. pkg_failed=yes
  19197. fi
  19198. else
  19199. pkg_failed=untried
  19200. fi
  19201. if test -n "$PULSEAUDIO_LIBS"; then
  19202. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19203. elif test -n "$PKG_CONFIG"; then
  19204. if test -n "$PKG_CONFIG" && \
  19205. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19206. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19207. ac_status=$?
  19208. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19209. test $ac_status = 0; }; then
  19210. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.15" 2>/dev/null`
  19211. test "x$?" != "x0" && pkg_failed=yes
  19212. else
  19213. pkg_failed=yes
  19214. fi
  19215. else
  19216. pkg_failed=untried
  19217. fi
  19218. if test $pkg_failed = yes; then
  19219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19220. printf "%s\n" "no" >&6; }
  19221. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19222. _pkg_short_errors_supported=yes
  19223. else
  19224. _pkg_short_errors_supported=no
  19225. fi
  19226. if test $_pkg_short_errors_supported = yes; then
  19227. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19228. else
  19229. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19230. fi
  19231. # Put the nasty error message in config.log where it belongs
  19232. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19233. audio_pulseaudio=no
  19234. elif test $pkg_failed = untried; then
  19235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19236. printf "%s\n" "no" >&6; }
  19237. audio_pulseaudio=no
  19238. else
  19239. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19240. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19242. printf "%s\n" "yes" >&6; }
  19243. audio_pulseaudio=yes
  19244. fi
  19245. if test x$audio_pulseaudio = xyes; then
  19246. # Check whether --enable-pulseaudio-shared was given.
  19247. if test ${enable_pulseaudio_shared+y}
  19248. then :
  19249. enableval=$enable_pulseaudio_shared;
  19250. else $as_nop
  19251. enable_pulseaudio_shared=yes
  19252. fi
  19253. pulseaudio_lib=`find_lib "libpulse.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19254. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19255. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19256. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19257. if test x$have_loadso != xyes && \
  19258. test x$enable_pulseaudio_shared = xyes; then
  19259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19260. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19261. fi
  19262. if test x$have_loadso = xyes && \
  19263. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19264. echo "-- dynamic libpulse -> $pulseaudio_lib"
  19265. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19266. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19267. case "$host" in
  19268. # On Solaris, pulseaudio must be linked deferred explicitly
  19269. # to prevent undefined symbol failures.
  19270. *-*-solaris*)
  19271. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19272. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19273. esac
  19274. else
  19275. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19276. SUMMARY_audio="${SUMMARY_audio} pulse"
  19277. fi
  19278. have_audio=yes
  19279. fi
  19280. fi
  19281. }
  19282. CheckARTSC()
  19283. {
  19284. # Check whether --enable-arts was given.
  19285. if test ${enable_arts+y}
  19286. then :
  19287. enableval=$enable_arts;
  19288. else $as_nop
  19289. enable_arts=yes
  19290. fi
  19291. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19292. # Extract the first word of "artsc-config", so it can be a program name with args.
  19293. set dummy artsc-config; ac_word=$2
  19294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19295. printf %s "checking for $ac_word... " >&6; }
  19296. if test ${ac_cv_path_ARTSCONFIG+y}
  19297. then :
  19298. printf %s "(cached) " >&6
  19299. else $as_nop
  19300. case $ARTSCONFIG in
  19301. [\\/]* | ?:[\\/]*)
  19302. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19303. ;;
  19304. *)
  19305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19306. for as_dir in $PATH
  19307. do
  19308. IFS=$as_save_IFS
  19309. case $as_dir in #(((
  19310. '') as_dir=./ ;;
  19311. */) ;;
  19312. *) as_dir=$as_dir/ ;;
  19313. esac
  19314. for ac_exec_ext in '' $ac_executable_extensions; do
  19315. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19316. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19317. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19318. break 2
  19319. fi
  19320. done
  19321. done
  19322. IFS=$as_save_IFS
  19323. ;;
  19324. esac
  19325. fi
  19326. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19327. if test -n "$ARTSCONFIG"; then
  19328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19329. printf "%s\n" "$ARTSCONFIG" >&6; }
  19330. else
  19331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19332. printf "%s\n" "no" >&6; }
  19333. fi
  19334. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19335. : # arts isn't installed
  19336. else
  19337. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19338. ARTS_LIBS=`$ARTSCONFIG --libs`
  19339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19340. printf %s "checking for aRts development environment... " >&6; }
  19341. audio_arts=no
  19342. save_CFLAGS="$CFLAGS"
  19343. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19345. /* end confdefs.h. */
  19346. #include <artsc.h>
  19347. int
  19348. main (void)
  19349. {
  19350. arts_stream_t stream;
  19351. ;
  19352. return 0;
  19353. }
  19354. _ACEOF
  19355. if ac_fn_c_try_compile "$LINENO"
  19356. then :
  19357. audio_arts=yes
  19358. fi
  19359. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19360. CFLAGS="$save_CFLAGS"
  19361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19362. printf "%s\n" "$audio_arts" >&6; }
  19363. if test x$audio_arts = xyes; then
  19364. # Check whether --enable-arts-shared was given.
  19365. if test ${enable_arts_shared+y}
  19366. then :
  19367. enableval=$enable_arts_shared;
  19368. else $as_nop
  19369. enable_arts_shared=yes
  19370. fi
  19371. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19372. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19373. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19374. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19375. if test x$have_loadso != xyes && \
  19376. test x$enable_arts_shared = xyes; then
  19377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19378. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19379. fi
  19380. if test x$have_loadso = xyes && \
  19381. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19382. echo "-- dynamic libartsc -> $arts_lib"
  19383. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19384. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19385. else
  19386. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19387. SUMMARY_audio="${SUMMARY_audio} arts"
  19388. fi
  19389. have_audio=yes
  19390. fi
  19391. fi
  19392. fi
  19393. }
  19394. CheckNAS()
  19395. {
  19396. # Check whether --enable-nas was given.
  19397. if test ${enable_nas+y}
  19398. then :
  19399. enableval=$enable_nas;
  19400. else $as_nop
  19401. enable_nas=yes
  19402. fi
  19403. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19404. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19405. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19406. then :
  19407. have_nas_hdr=yes
  19408. fi
  19409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19410. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19411. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19412. then :
  19413. printf %s "(cached) " >&6
  19414. else $as_nop
  19415. ac_check_lib_save_LIBS=$LIBS
  19416. LIBS="-laudio $LIBS"
  19417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19418. /* end confdefs.h. */
  19419. /* Override any GCC internal prototype to avoid an error.
  19420. Use char because int might match the return type of a GCC
  19421. builtin and then its argument prototype would still apply. */
  19422. char AuOpenServer ();
  19423. int
  19424. main (void)
  19425. {
  19426. return AuOpenServer ();
  19427. ;
  19428. return 0;
  19429. }
  19430. _ACEOF
  19431. if ac_fn_c_try_link "$LINENO"
  19432. then :
  19433. ac_cv_lib_audio_AuOpenServer=yes
  19434. else $as_nop
  19435. ac_cv_lib_audio_AuOpenServer=no
  19436. fi
  19437. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19438. conftest$ac_exeext conftest.$ac_ext
  19439. LIBS=$ac_check_lib_save_LIBS
  19440. fi
  19441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19442. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19443. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19444. then :
  19445. have_nas_lib=yes
  19446. fi
  19447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19448. printf %s "checking for NAS audio support... " >&6; }
  19449. have_nas=no
  19450. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19451. have_nas=yes
  19452. NAS_LIBS="-laudio"
  19453. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19454. have_nas=yes
  19455. NAS_CFLAGS="-I/usr/X11R6/include/"
  19456. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19457. fi
  19458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19459. printf "%s\n" "$have_nas" >&6; }
  19460. if test x$have_nas = xyes; then
  19461. # Check whether --enable-nas-shared was given.
  19462. if test ${enable_nas_shared+y}
  19463. then :
  19464. enableval=$enable_nas_shared;
  19465. else $as_nop
  19466. enable_nas_shared=yes
  19467. fi
  19468. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19469. if test x$have_loadso != xyes && \
  19470. test x$enable_nas_shared = xyes; then
  19471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19472. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19473. fi
  19474. if test x$have_loadso = xyes && \
  19475. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19476. echo "-- dynamic libaudio -> $nas_lib"
  19477. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19478. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19479. else
  19480. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19481. SUMMARY_audio="${SUMMARY_audio} nas"
  19482. fi
  19483. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19484. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19485. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19486. have_audio=yes
  19487. fi
  19488. fi
  19489. }
  19490. CheckSNDIO()
  19491. {
  19492. # Check whether --enable-sndio was given.
  19493. if test ${enable_sndio+y}
  19494. then :
  19495. enableval=$enable_sndio;
  19496. else $as_nop
  19497. enable_sndio=yes
  19498. fi
  19499. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19500. pkg_failed=no
  19501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19502. printf %s "checking for sndio... " >&6; }
  19503. if test -n "$SNDIO_CFLAGS"; then
  19504. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19505. elif test -n "$PKG_CONFIG"; then
  19506. if test -n "$PKG_CONFIG" && \
  19507. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19508. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19509. ac_status=$?
  19510. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19511. test $ac_status = 0; }; then
  19512. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19513. test "x$?" != "x0" && pkg_failed=yes
  19514. else
  19515. pkg_failed=yes
  19516. fi
  19517. else
  19518. pkg_failed=untried
  19519. fi
  19520. if test -n "$SNDIO_LIBS"; then
  19521. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19522. elif test -n "$PKG_CONFIG"; then
  19523. if test -n "$PKG_CONFIG" && \
  19524. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19525. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19526. ac_status=$?
  19527. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19528. test $ac_status = 0; }; then
  19529. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19530. test "x$?" != "x0" && pkg_failed=yes
  19531. else
  19532. pkg_failed=yes
  19533. fi
  19534. else
  19535. pkg_failed=untried
  19536. fi
  19537. if test $pkg_failed = yes; then
  19538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19539. printf "%s\n" "no" >&6; }
  19540. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19541. _pkg_short_errors_supported=yes
  19542. else
  19543. _pkg_short_errors_supported=no
  19544. fi
  19545. if test $_pkg_short_errors_supported = yes; then
  19546. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19547. else
  19548. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19549. fi
  19550. # Put the nasty error message in config.log where it belongs
  19551. echo "$SNDIO_PKG_ERRORS" >&5
  19552. audio_sndio=no
  19553. elif test $pkg_failed = untried; then
  19554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19555. printf "%s\n" "no" >&6; }
  19556. audio_sndio=no
  19557. else
  19558. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19559. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19561. printf "%s\n" "yes" >&6; }
  19562. audio_sndio=yes
  19563. fi
  19564. if test x$audio_sndio = xyes; then
  19565. # Check whether --enable-sndio-shared was given.
  19566. if test ${enable_sndio_shared+y}
  19567. then :
  19568. enableval=$enable_sndio_shared;
  19569. else $as_nop
  19570. enable_sndio_shared=yes
  19571. fi
  19572. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19573. if test x$have_loadso != xyes && \
  19574. test x$enable_sndio_shared = xyes; then
  19575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19576. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19577. fi
  19578. if test x$have_loadso = xyes && \
  19579. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19580. echo "-- dynamic libsndio -> $sndio_lib"
  19581. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19582. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19583. else
  19584. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19585. SUMMARY_audio="${SUMMARY_audio} sndio"
  19586. fi
  19587. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19588. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19589. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19590. have_audio=yes
  19591. fi
  19592. fi
  19593. }
  19594. CheckFusionSound()
  19595. {
  19596. # Check whether --enable-fusionsound was given.
  19597. if test ${enable_fusionsound+y}
  19598. then :
  19599. enableval=$enable_fusionsound;
  19600. else $as_nop
  19601. enable_fusionsound=no
  19602. fi
  19603. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19604. pkg_failed=no
  19605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19606. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19607. if test -n "$FUSIONSOUND_CFLAGS"; then
  19608. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19609. elif test -n "$PKG_CONFIG"; then
  19610. if test -n "$PKG_CONFIG" && \
  19611. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19612. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19613. ac_status=$?
  19614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19615. test $ac_status = 0; }; then
  19616. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19617. test "x$?" != "x0" && pkg_failed=yes
  19618. else
  19619. pkg_failed=yes
  19620. fi
  19621. else
  19622. pkg_failed=untried
  19623. fi
  19624. if test -n "$FUSIONSOUND_LIBS"; then
  19625. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19626. elif test -n "$PKG_CONFIG"; then
  19627. if test -n "$PKG_CONFIG" && \
  19628. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19629. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19630. ac_status=$?
  19631. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19632. test $ac_status = 0; }; then
  19633. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19634. test "x$?" != "x0" && pkg_failed=yes
  19635. else
  19636. pkg_failed=yes
  19637. fi
  19638. else
  19639. pkg_failed=untried
  19640. fi
  19641. if test $pkg_failed = yes; then
  19642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19643. printf "%s\n" "no" >&6; }
  19644. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19645. _pkg_short_errors_supported=yes
  19646. else
  19647. _pkg_short_errors_supported=no
  19648. fi
  19649. if test $_pkg_short_errors_supported = yes; then
  19650. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19651. else
  19652. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19653. fi
  19654. # Put the nasty error message in config.log where it belongs
  19655. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19656. fusionsound=no
  19657. elif test $pkg_failed = untried; then
  19658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19659. printf "%s\n" "no" >&6; }
  19660. fusionsound=no
  19661. else
  19662. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19663. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19665. printf "%s\n" "yes" >&6; }
  19666. fusionsound=yes
  19667. fi
  19668. if test x$fusionsound = xyes; then
  19669. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19670. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19671. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19672. # Check whether --enable-fusionsound-shared was given.
  19673. if test ${enable_fusionsound_shared+y}
  19674. then :
  19675. enableval=$enable_fusionsound_shared;
  19676. else $as_nop
  19677. enable_fusionsound_shared=yes
  19678. fi
  19679. fusionsound_shared=no
  19680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19681. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19682. if test x$have_loadso != xyes && \
  19683. test x$enable_fusionsound_shared = xyes; then
  19684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19685. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19686. fi
  19687. if test x$have_loadso = xyes && \
  19688. test x$enable_fusionsound_shared = xyes; then
  19689. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19690. fusionsound_shared=yes
  19691. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19692. else
  19693. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19694. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19695. fi
  19696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19697. printf "%s\n" "$fusionsound_shared" >&6; }
  19698. have_audio=yes
  19699. fi
  19700. fi
  19701. }
  19702. CheckDiskAudio()
  19703. {
  19704. # Check whether --enable-diskaudio was given.
  19705. if test ${enable_diskaudio+y}
  19706. then :
  19707. enableval=$enable_diskaudio;
  19708. else $as_nop
  19709. enable_diskaudio=yes
  19710. fi
  19711. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19712. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19713. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19714. SUMMARY_audio="${SUMMARY_audio} disk"
  19715. have_audio=yes
  19716. fi
  19717. }
  19718. CheckDummyAudio()
  19719. {
  19720. # Check whether --enable-dummyaudio was given.
  19721. if test ${enable_dummyaudio+y}
  19722. then :
  19723. enableval=$enable_dummyaudio;
  19724. else $as_nop
  19725. enable_dummyaudio=yes
  19726. fi
  19727. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19728. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19729. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19730. SUMMARY_audio="${SUMMARY_audio} dummy"
  19731. have_audio=yes
  19732. fi
  19733. }
  19734. CheckLibSampleRate()
  19735. {
  19736. # Check whether --enable-libsamplerate was given.
  19737. if test ${enable_libsamplerate+y}
  19738. then :
  19739. enableval=$enable_libsamplerate;
  19740. else $as_nop
  19741. enable_libsamplerate=yes
  19742. fi
  19743. if test x$enable_libsamplerate = xyes; then
  19744. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19745. if test "x$ac_cv_header_samplerate_h" = xyes
  19746. then :
  19747. have_samplerate_h_hdr=yes
  19748. else $as_nop
  19749. have_samplerate_h_hdr=no
  19750. fi
  19751. if test x$have_samplerate_h_hdr = xyes; then
  19752. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19753. # Check whether --enable-libsamplerate-shared was given.
  19754. if test ${enable_libsamplerate_shared+y}
  19755. then :
  19756. enableval=$enable_libsamplerate_shared;
  19757. else $as_nop
  19758. enable_libsamplerate_shared=yes
  19759. fi
  19760. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19761. if test x$have_loadso != xyes && \
  19762. test x$enable_libsamplerate_shared = xyes; then
  19763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19764. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19765. fi
  19766. if test x$have_loadso = xyes && \
  19767. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19768. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19769. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19770. else
  19771. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19772. fi
  19773. fi
  19774. fi
  19775. }
  19776. CheckARM()
  19777. {
  19778. # Check whether --enable-arm-simd was given.
  19779. if test ${enable_arm_simd+y}
  19780. then :
  19781. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19782. else $as_nop
  19783. enable_arm_simd=no
  19784. fi
  19785. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19786. save_CFLAGS="$CFLAGS"
  19787. have_arm_simd=no
  19788. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19790. printf %s "checking for ARM SIMD... " >&6; }
  19791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19792. /* end confdefs.h. */
  19793. .text
  19794. .arch armv6
  19795. .object_arch armv4
  19796. .arm
  19797. .altmacro
  19798. #ifndef __ARM_EABI__
  19799. #error EABI is required (to be sure that calling conventions are compatible)
  19800. #endif
  19801. pld [r0]
  19802. uqadd8 r0, r0, r0
  19803. _ACEOF
  19804. if ac_fn_c_try_compile "$LINENO"
  19805. then :
  19806. have_arm_simd=yes
  19807. fi
  19808. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19810. printf "%s\n" "$have_arm_simd" >&6; }
  19811. CFLAGS="$save_CFLAGS"
  19812. if test x$have_arm_simd = xyes; then
  19813. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19814. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19815. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19816. fi
  19817. fi
  19818. }
  19819. CheckNEON()
  19820. {
  19821. # Check whether --enable-arm-neon was given.
  19822. if test ${enable_arm_neon+y}
  19823. then :
  19824. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19825. else $as_nop
  19826. enable_arm_neon=no
  19827. fi
  19828. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19829. save_CFLAGS="$CFLAGS"
  19830. have_arm_neon=no
  19831. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19833. printf %s "checking for ARM NEON... " >&6; }
  19834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19835. /* end confdefs.h. */
  19836. .text
  19837. .fpu neon
  19838. .arch armv7a
  19839. .object_arch armv4
  19840. .eabi_attribute 10, 0
  19841. .arm
  19842. .altmacro
  19843. #ifndef __ARM_EABI__
  19844. #error EABI is required (to be sure that calling conventions are compatible)
  19845. #endif
  19846. pld [r0]
  19847. vmovn.u16 d0, q0
  19848. _ACEOF
  19849. if ac_fn_c_try_compile "$LINENO"
  19850. then :
  19851. have_arm_neon=yes
  19852. fi
  19853. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19855. printf "%s\n" "$have_arm_neon" >&6; }
  19856. CFLAGS="$save_CFLAGS"
  19857. if test x$have_arm_neon = xyes; then
  19858. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19859. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19860. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19861. fi
  19862. fi
  19863. }
  19864. CheckObjectiveCARC()
  19865. {
  19866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19867. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19868. have_clang_objc_arc=no
  19869. save_CFLAGS="$CFLAGS"
  19870. CFLAGS="$save_CFLAGS -fobjc-arc"
  19871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19872. /* end confdefs.h. */
  19873. int x = 0;
  19874. int
  19875. main (void)
  19876. {
  19877. ;
  19878. return 0;
  19879. }
  19880. _ACEOF
  19881. if ac_fn_c_try_compile "$LINENO"
  19882. then :
  19883. have_clang_objc_arc=yes
  19884. fi
  19885. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19887. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19888. CFLAGS="$save_CFLAGS"
  19889. if test x$have_clang_objc_arc = xyes; then
  19890. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19891. fi
  19892. }
  19893. CheckGDwarf4()
  19894. {
  19895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19896. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19897. have_gcc_gdwarf4=no
  19898. save_CFLAGS="$CFLAGS"
  19899. CFLAGS="$save_CFLAGS -gdwarf-4"
  19900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19901. /* end confdefs.h. */
  19902. int x = 0;
  19903. int
  19904. main (void)
  19905. {
  19906. ;
  19907. return 0;
  19908. }
  19909. _ACEOF
  19910. if ac_fn_c_try_compile "$LINENO"
  19911. then :
  19912. have_gcc_gdwarf4=yes
  19913. fi
  19914. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19916. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19917. CFLAGS="$save_CFLAGS"
  19918. if test x$have_gcc_gdwarf4 = xyes; then
  19919. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19920. fi
  19921. }
  19922. CheckVisibilityHidden()
  19923. {
  19924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19925. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19926. have_gcc_fvisibility=no
  19927. visibility_CFLAGS="-fvisibility=hidden"
  19928. save_CFLAGS="$CFLAGS"
  19929. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19931. /* end confdefs.h. */
  19932. #if !defined(__GNUC__) || __GNUC__ < 4
  19933. #error SDL only uses visibility attributes in GCC 4 or newer
  19934. #endif
  19935. int
  19936. main (void)
  19937. {
  19938. ;
  19939. return 0;
  19940. }
  19941. _ACEOF
  19942. if ac_fn_c_try_compile "$LINENO"
  19943. then :
  19944. have_gcc_fvisibility=yes
  19945. fi
  19946. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19948. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19949. CFLAGS="$save_CFLAGS"
  19950. if test x$have_gcc_fvisibility = xyes; then
  19951. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19952. fi
  19953. }
  19954. CheckNoStrictAliasing()
  19955. {
  19956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19957. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19958. have_gcc_no_strict_aliasing=no
  19959. save_CFLAGS="$CFLAGS"
  19960. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19962. /* end confdefs.h. */
  19963. int x = 0;
  19964. int
  19965. main (void)
  19966. {
  19967. ;
  19968. return 0;
  19969. }
  19970. _ACEOF
  19971. if ac_fn_c_try_compile "$LINENO"
  19972. then :
  19973. have_gcc_no_strict_aliasing=yes
  19974. fi
  19975. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19977. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19978. CFLAGS="$save_CFLAGS"
  19979. if test x$have_gcc_no_strict_aliasing = xyes; then
  19980. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19981. fi
  19982. }
  19983. CheckWerror()
  19984. {
  19985. # Check whether --enable-werror was given.
  19986. if test ${enable_werror+y}
  19987. then :
  19988. enableval=$enable_werror; enable_werror=$enableval
  19989. else $as_nop
  19990. enable_werror=no
  19991. fi
  19992. if test x$enable_werror = xyes; then
  19993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19994. printf %s "checking for GCC -Werror option... " >&6; }
  19995. have_gcc_werror=no
  19996. save_CFLAGS="$CFLAGS"
  19997. CFLAGS="$save_CFLAGS -Werror"
  19998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19999. /* end confdefs.h. */
  20000. int x = 0;
  20001. int
  20002. main (void)
  20003. {
  20004. ;
  20005. return 0;
  20006. }
  20007. _ACEOF
  20008. if ac_fn_c_try_compile "$LINENO"
  20009. then :
  20010. have_gcc_werror=yes
  20011. fi
  20012. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20014. printf "%s\n" "$have_gcc_werror" >&6; }
  20015. CFLAGS="$save_CFLAGS"
  20016. if test x$have_gcc_werror = xyes; then
  20017. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  20018. fi
  20019. fi
  20020. }
  20021. CheckNoErrorDeprecatedDeclarationsWerror()
  20022. {
  20023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  20024. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  20025. have_gcc_no_werror_deprecated_declarations=no
  20026. save_CFLAGS="$CFLAGS"
  20027. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  20028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20029. /* end confdefs.h. */
  20030. int x = 0;
  20031. int
  20032. main (void)
  20033. {
  20034. ;
  20035. return 0;
  20036. }
  20037. _ACEOF
  20038. if ac_fn_c_try_compile "$LINENO"
  20039. then :
  20040. have_gcc_no_werror_deprecated_declarations=yes
  20041. fi
  20042. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20044. printf "%s\n" "$have_gcc_werror" >&6; }
  20045. CFLAGS="$save_CFLAGS"
  20046. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20047. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20048. fi
  20049. }
  20050. CheckDeclarationAfterStatement()
  20051. {
  20052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20053. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20054. have_gcc_declaration_after_statement=no
  20055. save_CFLAGS="$CFLAGS"
  20056. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20058. /* end confdefs.h. */
  20059. int x = 0;
  20060. int
  20061. main (void)
  20062. {
  20063. ;
  20064. return 0;
  20065. }
  20066. _ACEOF
  20067. if ac_fn_c_try_compile "$LINENO"
  20068. then :
  20069. have_gcc_declaration_after_statement=yes
  20070. fi
  20071. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20073. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20074. CFLAGS="$save_CFLAGS"
  20075. if test x$have_gcc_declaration_after_statement = xyes; then
  20076. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20077. fi
  20078. }
  20079. CheckWarnAll()
  20080. {
  20081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20082. printf %s "checking for GCC -Wall option... " >&6; }
  20083. have_gcc_Wall=no
  20084. save_CFLAGS="$CFLAGS"
  20085. CFLAGS="$save_CFLAGS -Wall"
  20086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20087. /* end confdefs.h. */
  20088. int x = 0;
  20089. int
  20090. main (void)
  20091. {
  20092. ;
  20093. return 0;
  20094. }
  20095. _ACEOF
  20096. if ac_fn_c_try_compile "$LINENO"
  20097. then :
  20098. have_gcc_Wall=yes
  20099. fi
  20100. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20102. printf "%s\n" "$have_gcc_Wall" >&6; }
  20103. CFLAGS="$save_CFLAGS"
  20104. if test x$have_gcc_Wall = xyes; then
  20105. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20107. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20108. need_gcc_Wno_multichar=no
  20109. case "$host" in
  20110. *-*-haiku*)
  20111. need_gcc_Wno_multichar=yes
  20112. ;;
  20113. esac
  20114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20115. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20116. if test x$need_gcc_Wno_multichar = xyes; then
  20117. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20118. fi
  20119. fi
  20120. }
  20121. CheckUnusedLocalTypedefs()
  20122. {
  20123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wunused-local-typedefs option" >&5
  20124. printf %s "checking for GCC -Wunused-local-typedefs option... " >&6; }
  20125. have_gcc_unused_local_typedefs=no
  20126. save_CFLAGS="$CFLAGS"
  20127. CFLAGS="$save_CFLAGS -Wunused-local-typedefs"
  20128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20129. /* end confdefs.h. */
  20130. int x = 0;
  20131. int
  20132. main (void)
  20133. {
  20134. ;
  20135. return 0;
  20136. }
  20137. _ACEOF
  20138. if ac_fn_c_try_compile "$LINENO"
  20139. then :
  20140. have_gcc_unused_local_typedefs=yes
  20141. fi
  20142. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_unused_local_typedefs" >&5
  20144. printf "%s\n" "$have_gcc_unused_local_typedefs" >&6; }
  20145. CFLAGS="$save_CFLAGS"
  20146. if test x$have_gcc_unused_local_typedefs = xyes; then
  20147. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-unused-local-typedefs"
  20148. fi
  20149. }
  20150. CheckWayland()
  20151. {
  20152. # Check whether --enable-video-wayland was given.
  20153. if test ${enable_video_wayland+y}
  20154. then :
  20155. enableval=$enable_video_wayland;
  20156. else $as_nop
  20157. enable_video_wayland=yes
  20158. fi
  20159. # Check whether --enable-video-wayland-qt-touch was given.
  20160. if test ${enable_video_wayland_qt_touch+y}
  20161. then :
  20162. enableval=$enable_video_wayland_qt_touch;
  20163. else $as_nop
  20164. enable_video_wayland_qt_touch=yes
  20165. fi
  20166. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20168. printf %s "checking for Wayland support... " >&6; }
  20169. video_wayland=no
  20170. if test x$video_opengl_egl = xyes && \
  20171. test x$video_opengles_v2 = xyes; then
  20172. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20173. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20174. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20175. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20176. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20177. then :
  20178. WAYLAND_SCANNER_CODE_MODE=private-code
  20179. else $as_nop
  20180. WAYLAND_SCANNER_CODE_MODE=code
  20181. fi
  20182. video_wayland=yes
  20183. fi
  20184. fi
  20185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20186. printf "%s\n" "$video_wayland" >&6; }
  20187. if test x$video_wayland = xyes; then
  20188. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20189. if test x$enable_video_wayland_qt_touch = xyes; then
  20190. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20191. fi
  20192. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20193. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20194. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20195. # Check whether --enable-wayland-shared was given.
  20196. if test ${enable_wayland_shared+y}
  20197. then :
  20198. enableval=$enable_wayland_shared;
  20199. else $as_nop
  20200. enable_wayland_shared=maybe
  20201. fi
  20202. case "$host" in
  20203. *)
  20204. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20205. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20206. if test x$wayland_egl_lib = x; then
  20207. # This works in Ubuntu 13.10, maybe others
  20208. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20209. fi
  20210. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20211. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20212. ;;
  20213. esac
  20214. if test x$enable_wayland_shared = xmaybe; then
  20215. enable_wayland_shared=yes
  20216. fi
  20217. if test x$have_loadso != xyes && \
  20218. test x$enable_wayland_shared = xyes; then
  20219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20220. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20221. enable_wayland_shared=no
  20222. fi
  20223. if test x$have_loadso = xyes && \
  20224. test x$enable_wayland_shared = xyes && \
  20225. test x$wayland_client_lib != x && \
  20226. test x$wayland_egl_lib != x && \
  20227. test x$wayland_cursor_lib != x && \
  20228. test x$xkbcommon_lib != x; then
  20229. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20230. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20231. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20232. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20233. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20234. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20235. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20236. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20237. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20238. else
  20239. enable_wayland_shared=no
  20240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20241. SUMMARY_video="${SUMMARY_video} wayland"
  20242. fi
  20243. have_video=yes
  20244. # Check whether --enable-libdecor was given.
  20245. if test ${enable_libdecor+y}
  20246. then :
  20247. enableval=$enable_libdecor;
  20248. else $as_nop
  20249. enable_libdecor=yes
  20250. fi
  20251. if test x$enable_libdecor = xyes; then
  20252. pkg_failed=no
  20253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20254. printf %s "checking for libdecor-0... " >&6; }
  20255. if test -n "$DECOR_CFLAGS"; then
  20256. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20257. elif test -n "$PKG_CONFIG"; then
  20258. if test -n "$PKG_CONFIG" && \
  20259. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20260. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20261. ac_status=$?
  20262. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20263. test $ac_status = 0; }; then
  20264. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20265. test "x$?" != "x0" && pkg_failed=yes
  20266. else
  20267. pkg_failed=yes
  20268. fi
  20269. else
  20270. pkg_failed=untried
  20271. fi
  20272. if test -n "$DECOR_LIBS"; then
  20273. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20274. elif test -n "$PKG_CONFIG"; then
  20275. if test -n "$PKG_CONFIG" && \
  20276. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20277. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20278. ac_status=$?
  20279. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20280. test $ac_status = 0; }; then
  20281. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20282. test "x$?" != "x0" && pkg_failed=yes
  20283. else
  20284. pkg_failed=yes
  20285. fi
  20286. else
  20287. pkg_failed=untried
  20288. fi
  20289. if test $pkg_failed = yes; then
  20290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20291. printf "%s\n" "no" >&6; }
  20292. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20293. _pkg_short_errors_supported=yes
  20294. else
  20295. _pkg_short_errors_supported=no
  20296. fi
  20297. if test $_pkg_short_errors_supported = yes; then
  20298. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20299. else
  20300. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20301. fi
  20302. # Put the nasty error message in config.log where it belongs
  20303. echo "$DECOR_PKG_ERRORS" >&5
  20304. video_libdecor=no
  20305. elif test $pkg_failed = untried; then
  20306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20307. printf "%s\n" "no" >&6; }
  20308. video_libdecor=no
  20309. else
  20310. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20311. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20313. printf "%s\n" "yes" >&6; }
  20314. video_libdecor=yes
  20315. fi
  20316. if test x$video_libdecor = xyes; then
  20317. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20318. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20319. # Check whether --enable-libdecor-shared was given.
  20320. if test ${enable_libdecor_shared+y}
  20321. then :
  20322. enableval=$enable_libdecor_shared;
  20323. else $as_nop
  20324. enable_libdecor_shared=yes
  20325. fi
  20326. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20327. if test x$enable_wayland_shared != xyes; then
  20328. enable_libdecor_shared=no
  20329. fi
  20330. if test x$have_loadso != xyes && \
  20331. test x$enable_libdecor_shared = xyes; then
  20332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20333. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20334. fi
  20335. if test x$have_loadso = xyes && \
  20336. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20337. echo "-- dynamic libdecor -> $decor_lib"
  20338. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20339. else
  20340. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20341. fi
  20342. saved_cflags=$CFLAGS
  20343. CFLAGS="$CFLAGS $DECOR_CFLAGS"
  20344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  20345. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  20346. if test ${ac_cv_c_undeclared_builtin_options+y}
  20347. then :
  20348. printf %s "(cached) " >&6
  20349. else $as_nop
  20350. ac_save_CFLAGS=$CFLAGS
  20351. ac_cv_c_undeclared_builtin_options='cannot detect'
  20352. for ac_arg in '' -fno-builtin; do
  20353. CFLAGS="$ac_save_CFLAGS $ac_arg"
  20354. # This test program should *not* compile successfully.
  20355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20356. /* end confdefs.h. */
  20357. int
  20358. main (void)
  20359. {
  20360. (void) strchr;
  20361. ;
  20362. return 0;
  20363. }
  20364. _ACEOF
  20365. if ac_fn_c_try_compile "$LINENO"
  20366. then :
  20367. else $as_nop
  20368. # This test program should compile successfully.
  20369. # No library function is consistently available on
  20370. # freestanding implementations, so test against a dummy
  20371. # declaration. Include always-available headers on the
  20372. # off chance that they somehow elicit warnings.
  20373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20374. /* end confdefs.h. */
  20375. #include <float.h>
  20376. #include <limits.h>
  20377. #include <stdarg.h>
  20378. #include <stddef.h>
  20379. extern void ac_decl (int, char *);
  20380. int
  20381. main (void)
  20382. {
  20383. (void) ac_decl (0, (char *) 0);
  20384. (void) ac_decl;
  20385. ;
  20386. return 0;
  20387. }
  20388. _ACEOF
  20389. if ac_fn_c_try_compile "$LINENO"
  20390. then :
  20391. if test x"$ac_arg" = x
  20392. then :
  20393. ac_cv_c_undeclared_builtin_options='none needed'
  20394. else $as_nop
  20395. ac_cv_c_undeclared_builtin_options=$ac_arg
  20396. fi
  20397. break
  20398. fi
  20399. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20400. fi
  20401. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20402. done
  20403. CFLAGS=$ac_save_CFLAGS
  20404. fi
  20405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  20406. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  20407. case $ac_cv_c_undeclared_builtin_options in #(
  20408. 'cannot detect') :
  20409. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20410. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20411. as_fn_error $? "cannot make $CC report undeclared builtins
  20412. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  20413. 'none needed') :
  20414. ac_c_undeclared_builtin_options='' ;; #(
  20415. *) :
  20416. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  20417. esac
  20418. ac_fn_check_decl "$LINENO" "libdecor_frame_get_min_content_size" "ac_cv_have_decl_libdecor_frame_get_min_content_size" "#include <libdecor.h>
  20419. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20420. if test "x$ac_cv_have_decl_libdecor_frame_get_min_content_size" = xyes
  20421. then :
  20422. ac_have_decl=1
  20423. else $as_nop
  20424. ac_have_decl=0
  20425. fi
  20426. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MIN_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20427. if test $ac_have_decl = 1
  20428. then :
  20429. libdecor_get_min_max=yes
  20430. fi
  20431. ac_fn_check_decl "$LINENO" "libdecor_frame_get_max_content_size" "ac_cv_have_decl_libdecor_frame_get_max_content_size" "#include <libdecor.h>
  20432. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20433. if test "x$ac_cv_have_decl_libdecor_frame_get_max_content_size" = xyes
  20434. then :
  20435. ac_have_decl=1
  20436. else $as_nop
  20437. ac_have_decl=0
  20438. fi
  20439. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MAX_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20440. if test $ac_have_decl = 1
  20441. then :
  20442. libdecor_get_min_max=yes
  20443. fi
  20444. if test x$libdecor_get_min_max = xyes; then
  20445. printf "%s\n" "#define SDL_HAVE_LIBDECOR_GET_MIN_MAX 1" >>confdefs.h
  20446. fi
  20447. CFLAGS="$saved_cflags"
  20448. fi
  20449. fi
  20450. fi
  20451. fi
  20452. }
  20453. CheckNativeClient()
  20454. {
  20455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20456. /* end confdefs.h. */
  20457. #if !defined(__native_client__)
  20458. #error "NO NACL"
  20459. #endif
  20460. int
  20461. main (void)
  20462. {
  20463. ;
  20464. return 0;
  20465. }
  20466. _ACEOF
  20467. if ac_fn_c_try_compile "$LINENO"
  20468. then :
  20469. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20470. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20471. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20472. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20473. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20474. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20475. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20476. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20477. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20478. SUMMARY_audio="${SUMMARY_audio} nacl"
  20479. have_audio=yes
  20480. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20481. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20482. have_video=yes
  20483. fi
  20484. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20485. }
  20486. CheckRPI()
  20487. {
  20488. # Check whether --enable-video-rpi was given.
  20489. if test ${enable_video_rpi+y}
  20490. then :
  20491. enableval=$enable_video_rpi;
  20492. else $as_nop
  20493. enable_video_rpi=yes
  20494. fi
  20495. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20496. pkg_failed=no
  20497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host" >&5
  20498. printf %s "checking for bcm_host... " >&6; }
  20499. if test -n "$RPI_CFLAGS"; then
  20500. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20501. elif test -n "$PKG_CONFIG"; then
  20502. if test -n "$PKG_CONFIG" && \
  20503. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20504. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20505. ac_status=$?
  20506. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20507. test $ac_status = 0; }; then
  20508. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host" 2>/dev/null`
  20509. test "x$?" != "x0" && pkg_failed=yes
  20510. else
  20511. pkg_failed=yes
  20512. fi
  20513. else
  20514. pkg_failed=untried
  20515. fi
  20516. if test -n "$RPI_LIBS"; then
  20517. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20518. elif test -n "$PKG_CONFIG"; then
  20519. if test -n "$PKG_CONFIG" && \
  20520. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20521. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20522. ac_status=$?
  20523. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20524. test $ac_status = 0; }; then
  20525. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host" 2>/dev/null`
  20526. test "x$?" != "x0" && pkg_failed=yes
  20527. else
  20528. pkg_failed=yes
  20529. fi
  20530. else
  20531. pkg_failed=untried
  20532. fi
  20533. if test $pkg_failed = yes; then
  20534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20535. printf "%s\n" "no" >&6; }
  20536. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20537. _pkg_short_errors_supported=yes
  20538. else
  20539. _pkg_short_errors_supported=no
  20540. fi
  20541. if test $_pkg_short_errors_supported = yes; then
  20542. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host" 2>&1`
  20543. else
  20544. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host" 2>&1`
  20545. fi
  20546. # Put the nasty error message in config.log where it belongs
  20547. echo "$RPI_PKG_ERRORS" >&5
  20548. video_rpi=no
  20549. elif test $pkg_failed = untried; then
  20550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20551. printf "%s\n" "no" >&6; }
  20552. video_rpi=no
  20553. else
  20554. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20555. RPI_LIBS=$pkg_cv_RPI_LIBS
  20556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20557. printf "%s\n" "yes" >&6; }
  20558. video_rpi=yes
  20559. fi
  20560. pkg_failed=no
  20561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for brcmegl" >&5
  20562. printf %s "checking for brcmegl... " >&6; }
  20563. if test -n "$RPI_EGL_CFLAGS"; then
  20564. pkg_cv_RPI_EGL_CFLAGS="$RPI_EGL_CFLAGS"
  20565. elif test -n "$PKG_CONFIG"; then
  20566. if test -n "$PKG_CONFIG" && \
  20567. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20568. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20569. ac_status=$?
  20570. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20571. test $ac_status = 0; }; then
  20572. pkg_cv_RPI_EGL_CFLAGS=`$PKG_CONFIG --cflags "brcmegl" 2>/dev/null`
  20573. test "x$?" != "x0" && pkg_failed=yes
  20574. else
  20575. pkg_failed=yes
  20576. fi
  20577. else
  20578. pkg_failed=untried
  20579. fi
  20580. if test -n "$RPI_EGL_LIBS"; then
  20581. pkg_cv_RPI_EGL_LIBS="$RPI_EGL_LIBS"
  20582. elif test -n "$PKG_CONFIG"; then
  20583. if test -n "$PKG_CONFIG" && \
  20584. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20585. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20586. ac_status=$?
  20587. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20588. test $ac_status = 0; }; then
  20589. pkg_cv_RPI_EGL_LIBS=`$PKG_CONFIG --libs "brcmegl" 2>/dev/null`
  20590. test "x$?" != "x0" && pkg_failed=yes
  20591. else
  20592. pkg_failed=yes
  20593. fi
  20594. else
  20595. pkg_failed=untried
  20596. fi
  20597. if test $pkg_failed = yes; then
  20598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20599. printf "%s\n" "no" >&6; }
  20600. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20601. _pkg_short_errors_supported=yes
  20602. else
  20603. _pkg_short_errors_supported=no
  20604. fi
  20605. if test $_pkg_short_errors_supported = yes; then
  20606. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "brcmegl" 2>&1`
  20607. else
  20608. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "brcmegl" 2>&1`
  20609. fi
  20610. # Put the nasty error message in config.log where it belongs
  20611. echo "$RPI_EGL_PKG_ERRORS" >&5
  20612. video_rpi_egl=no
  20613. elif test $pkg_failed = untried; then
  20614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20615. printf "%s\n" "no" >&6; }
  20616. video_rpi_egl=no
  20617. else
  20618. RPI_EGL_CFLAGS=$pkg_cv_RPI_EGL_CFLAGS
  20619. RPI_EGL_LIBS=$pkg_cv_RPI_EGL_LIBS
  20620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20621. printf "%s\n" "yes" >&6; }
  20622. video_rpi_egl=yes
  20623. fi
  20624. if test x$video_rpi = xno; then
  20625. if test x$ARCH = xnetbsd; then
  20626. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20627. RPI_LIBS="-L/usr/pkg/lib -lbcm_host"
  20628. else
  20629. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20630. RPI_LIBS="-L/opt/vc/lib -lbcm_host"
  20631. fi
  20632. fi
  20633. if test x$video_rpi_egl = xno; then
  20634. if test x$ARCH = xnetbsd; then
  20635. RPI_EGL_LIBS="-Wl,-R/usr/pkg/lib"
  20636. else
  20637. RPI_EGL_LIBS="-Wl,-rpath,/opt/vc/lib"
  20638. fi
  20639. fi
  20640. # Save the original compiler flags and libraries
  20641. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20642. # Add the Raspberry Pi compiler flags and libraries
  20643. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_EGL_LIBS $RPI_LIBS"
  20644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 0-3" >&5
  20645. printf %s "checking for Raspberry Pi 0-3... " >&6; }
  20646. have_video_rpi=no
  20647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20648. /* end confdefs.h. */
  20649. #include <bcm_host.h>
  20650. int
  20651. main (void)
  20652. {
  20653. bcm_host_init();
  20654. ;
  20655. return 0;
  20656. }
  20657. _ACEOF
  20658. if ac_fn_c_try_link "$LINENO"
  20659. then :
  20660. have_video_rpi=yes
  20661. fi
  20662. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20663. conftest$ac_exeext conftest.$ac_ext
  20664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20665. printf "%s\n" "$have_video_rpi" >&6; }
  20666. # Restore the compiler flags and libraries
  20667. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20668. if test x$have_video_rpi = xyes; then
  20669. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20670. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20671. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20672. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_EGL_LIBS $RPI_LIBS"
  20673. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20674. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20675. SUMMARY_video="${SUMMARY_video} rpi"
  20676. have_video=yes
  20677. fi
  20678. fi
  20679. }
  20680. CheckX11()
  20681. {
  20682. # Check whether --enable-video-x11 was given.
  20683. if test ${enable_video_x11+y}
  20684. then :
  20685. enableval=$enable_video_x11;
  20686. else $as_nop
  20687. enable_video_x11=yes
  20688. case "$host" in
  20689. *-*-darwin*|*-ios-*)
  20690. enable_video_x11=no
  20691. ;;
  20692. esac
  20693. fi
  20694. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20695. case "$host" in
  20696. *-*-darwin*)
  20697. # This isn't necessary for X11, but fixes GLX detection
  20698. if test "x$x_includes" = xNONE && \
  20699. test "x$x_libraries" = xNONE && \
  20700. test -d /opt/X11/include && \
  20701. test -d /opt/X11/lib; then
  20702. x_includes="/opt/X11/include"
  20703. x_libraries="/opt/X11/lib"
  20704. fi
  20705. ;;
  20706. esac
  20707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20708. printf %s "checking for X... " >&6; }
  20709. # Check whether --with-x was given.
  20710. if test ${with_x+y}
  20711. then :
  20712. withval=$with_x;
  20713. fi
  20714. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20715. if test "x$with_x" = xno; then
  20716. # The user explicitly disabled X.
  20717. have_x=disabled
  20718. else
  20719. case $x_includes,$x_libraries in #(
  20720. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20721. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20722. then :
  20723. printf %s "(cached) " >&6
  20724. else $as_nop
  20725. # One or both of the vars are not set, and there is no cached value.
  20726. ac_x_includes=no
  20727. ac_x_libraries=no
  20728. # Do we need to do anything special at all?
  20729. ac_save_LIBS=$LIBS
  20730. LIBS="-lX11 $LIBS"
  20731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20732. /* end confdefs.h. */
  20733. #include <X11/Xlib.h>
  20734. int
  20735. main (void)
  20736. {
  20737. XrmInitialize ()
  20738. ;
  20739. return 0;
  20740. }
  20741. _ACEOF
  20742. if ac_fn_c_try_link "$LINENO"
  20743. then :
  20744. # We can compile and link X programs with no special options.
  20745. ac_x_includes=
  20746. ac_x_libraries=
  20747. fi
  20748. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20749. conftest$ac_exeext conftest.$ac_ext
  20750. LIBS="$ac_save_LIBS"
  20751. # If that didn't work, only try xmkmf and file system searches
  20752. # for native compilation.
  20753. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20754. then :
  20755. rm -f -r conftest.dir
  20756. if mkdir conftest.dir; then
  20757. cd conftest.dir
  20758. cat >Imakefile <<'_ACEOF'
  20759. incroot:
  20760. @echo incroot='${INCROOT}'
  20761. usrlibdir:
  20762. @echo usrlibdir='${USRLIBDIR}'
  20763. libdir:
  20764. @echo libdir='${LIBDIR}'
  20765. _ACEOF
  20766. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20767. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20768. for ac_var in incroot usrlibdir libdir; do
  20769. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20770. done
  20771. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20772. for ac_extension in a so sl dylib la dll; do
  20773. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20774. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20775. ac_im_usrlibdir=$ac_im_libdir; break
  20776. fi
  20777. done
  20778. # Screen out bogus values from the imake configuration. They are
  20779. # bogus both because they are the default anyway, and because
  20780. # using them would break gcc on systems where it needs fixed includes.
  20781. case $ac_im_incroot in
  20782. /usr/include) ac_x_includes= ;;
  20783. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20784. esac
  20785. case $ac_im_usrlibdir in
  20786. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20787. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20788. esac
  20789. fi
  20790. cd ..
  20791. rm -f -r conftest.dir
  20792. fi
  20793. # Standard set of common directories for X headers.
  20794. # Check X11 before X11Rn because it is often a symlink to the current release.
  20795. ac_x_header_dirs='
  20796. /usr/X11/include
  20797. /usr/X11R7/include
  20798. /usr/X11R6/include
  20799. /usr/X11R5/include
  20800. /usr/X11R4/include
  20801. /usr/include/X11
  20802. /usr/include/X11R7
  20803. /usr/include/X11R6
  20804. /usr/include/X11R5
  20805. /usr/include/X11R4
  20806. /usr/local/X11/include
  20807. /usr/local/X11R7/include
  20808. /usr/local/X11R6/include
  20809. /usr/local/X11R5/include
  20810. /usr/local/X11R4/include
  20811. /usr/local/include/X11
  20812. /usr/local/include/X11R7
  20813. /usr/local/include/X11R6
  20814. /usr/local/include/X11R5
  20815. /usr/local/include/X11R4
  20816. /opt/X11/include
  20817. /usr/X386/include
  20818. /usr/x386/include
  20819. /usr/XFree86/include/X11
  20820. /usr/include
  20821. /usr/local/include
  20822. /usr/unsupported/include
  20823. /usr/athena/include
  20824. /usr/local/x11r5/include
  20825. /usr/lpp/Xamples/include
  20826. /usr/openwin/include
  20827. /usr/openwin/share/include'
  20828. if test "$ac_x_includes" = no; then
  20829. # Guess where to find include files, by looking for Xlib.h.
  20830. # First, try using that file with no special directory specified.
  20831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20832. /* end confdefs.h. */
  20833. #include <X11/Xlib.h>
  20834. _ACEOF
  20835. if ac_fn_c_try_cpp "$LINENO"
  20836. then :
  20837. # We can compile using X headers with no special include directory.
  20838. ac_x_includes=
  20839. else $as_nop
  20840. for ac_dir in $ac_x_header_dirs; do
  20841. if test -r "$ac_dir/X11/Xlib.h"; then
  20842. ac_x_includes=$ac_dir
  20843. break
  20844. fi
  20845. done
  20846. fi
  20847. rm -f conftest.err conftest.i conftest.$ac_ext
  20848. fi # $ac_x_includes = no
  20849. if test "$ac_x_libraries" = no; then
  20850. # Check for the libraries.
  20851. # See if we find them without any special options.
  20852. # Don't add to $LIBS permanently.
  20853. ac_save_LIBS=$LIBS
  20854. LIBS="-lX11 $LIBS"
  20855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20856. /* end confdefs.h. */
  20857. #include <X11/Xlib.h>
  20858. int
  20859. main (void)
  20860. {
  20861. XrmInitialize ()
  20862. ;
  20863. return 0;
  20864. }
  20865. _ACEOF
  20866. if ac_fn_c_try_link "$LINENO"
  20867. then :
  20868. LIBS=$ac_save_LIBS
  20869. # We can link X programs with no special library path.
  20870. ac_x_libraries=
  20871. else $as_nop
  20872. LIBS=$ac_save_LIBS
  20873. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20874. do
  20875. # Don't even attempt the hair of trying to link an X program!
  20876. for ac_extension in a so sl dylib la dll; do
  20877. if test -r "$ac_dir/libX11.$ac_extension"; then
  20878. ac_x_libraries=$ac_dir
  20879. break 2
  20880. fi
  20881. done
  20882. done
  20883. fi
  20884. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20885. conftest$ac_exeext conftest.$ac_ext
  20886. fi # $ac_x_libraries = no
  20887. fi
  20888. # Record the results.
  20889. case $ac_x_includes,$ac_x_libraries in #(
  20890. no,* | *,no | *\'*) :
  20891. # Didn't find X, or a directory has "'" in its name.
  20892. ac_cv_have_x="have_x=no" ;; #(
  20893. *) :
  20894. # Record where we found X for the cache.
  20895. ac_cv_have_x="have_x=yes\
  20896. ac_x_includes='$ac_x_includes'\
  20897. ac_x_libraries='$ac_x_libraries'" ;;
  20898. esac
  20899. fi
  20900. ;; #(
  20901. *) have_x=yes;;
  20902. esac
  20903. eval "$ac_cv_have_x"
  20904. fi # $with_x != no
  20905. if test "$have_x" != yes; then
  20906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20907. printf "%s\n" "$have_x" >&6; }
  20908. no_x=yes
  20909. else
  20910. # If each of the values was on the command line, it overrides each guess.
  20911. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20912. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20913. # Update the cache value to reflect the command line values.
  20914. ac_cv_have_x="have_x=yes\
  20915. ac_x_includes='$x_includes'\
  20916. ac_x_libraries='$x_libraries'"
  20917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20918. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20919. fi
  20920. if test "$no_x" = yes; then
  20921. # Not all programs may use this symbol, but it does not hurt to define it.
  20922. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20923. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20924. else
  20925. if test -n "$x_includes"; then
  20926. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20927. fi
  20928. # It would also be nice to do this for all -L options, not just this one.
  20929. if test -n "$x_libraries"; then
  20930. X_LIBS="$X_LIBS -L$x_libraries"
  20931. # For Solaris; some versions of Sun CC require a space after -R and
  20932. # others require no space. Words are not sufficient . . . .
  20933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20934. printf %s "checking whether -R must be followed by a space... " >&6; }
  20935. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20936. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20937. ac_c_werror_flag=yes
  20938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20939. /* end confdefs.h. */
  20940. int
  20941. main (void)
  20942. {
  20943. ;
  20944. return 0;
  20945. }
  20946. _ACEOF
  20947. if ac_fn_c_try_link "$LINENO"
  20948. then :
  20949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20950. printf "%s\n" "no" >&6; }
  20951. X_LIBS="$X_LIBS -R$x_libraries"
  20952. else $as_nop
  20953. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20955. /* end confdefs.h. */
  20956. int
  20957. main (void)
  20958. {
  20959. ;
  20960. return 0;
  20961. }
  20962. _ACEOF
  20963. if ac_fn_c_try_link "$LINENO"
  20964. then :
  20965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20966. printf "%s\n" "yes" >&6; }
  20967. X_LIBS="$X_LIBS -R $x_libraries"
  20968. else $as_nop
  20969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20970. printf "%s\n" "neither works" >&6; }
  20971. fi
  20972. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20973. conftest$ac_exeext conftest.$ac_ext
  20974. fi
  20975. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20976. conftest$ac_exeext conftest.$ac_ext
  20977. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20978. LIBS=$ac_xsave_LIBS
  20979. fi
  20980. # Check for system-dependent libraries X programs must link with.
  20981. # Do this before checking for the system-independent R6 libraries
  20982. # (-lICE), since we may need -lsocket or whatever for X linking.
  20983. if test "$ISC" = yes; then
  20984. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20985. else
  20986. # Martyn Johnson says this is needed for Ultrix, if the X
  20987. # libraries were built with DECnet support. And Karl Berry says
  20988. # the Alpha needs dnet_stub (dnet does not exist).
  20989. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20991. /* end confdefs.h. */
  20992. /* Override any GCC internal prototype to avoid an error.
  20993. Use char because int might match the return type of a GCC
  20994. builtin and then its argument prototype would still apply. */
  20995. char XOpenDisplay ();
  20996. int
  20997. main (void)
  20998. {
  20999. return XOpenDisplay ();
  21000. ;
  21001. return 0;
  21002. }
  21003. _ACEOF
  21004. if ac_fn_c_try_link "$LINENO"
  21005. then :
  21006. else $as_nop
  21007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  21008. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  21009. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  21010. then :
  21011. printf %s "(cached) " >&6
  21012. else $as_nop
  21013. ac_check_lib_save_LIBS=$LIBS
  21014. LIBS="-ldnet $LIBS"
  21015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21016. /* end confdefs.h. */
  21017. /* Override any GCC internal prototype to avoid an error.
  21018. Use char because int might match the return type of a GCC
  21019. builtin and then its argument prototype would still apply. */
  21020. char dnet_ntoa ();
  21021. int
  21022. main (void)
  21023. {
  21024. return dnet_ntoa ();
  21025. ;
  21026. return 0;
  21027. }
  21028. _ACEOF
  21029. if ac_fn_c_try_link "$LINENO"
  21030. then :
  21031. ac_cv_lib_dnet_dnet_ntoa=yes
  21032. else $as_nop
  21033. ac_cv_lib_dnet_dnet_ntoa=no
  21034. fi
  21035. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21036. conftest$ac_exeext conftest.$ac_ext
  21037. LIBS=$ac_check_lib_save_LIBS
  21038. fi
  21039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  21040. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  21041. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  21042. then :
  21043. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  21044. fi
  21045. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  21046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  21047. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  21048. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  21049. then :
  21050. printf %s "(cached) " >&6
  21051. else $as_nop
  21052. ac_check_lib_save_LIBS=$LIBS
  21053. LIBS="-ldnet_stub $LIBS"
  21054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21055. /* end confdefs.h. */
  21056. /* Override any GCC internal prototype to avoid an error.
  21057. Use char because int might match the return type of a GCC
  21058. builtin and then its argument prototype would still apply. */
  21059. char dnet_ntoa ();
  21060. int
  21061. main (void)
  21062. {
  21063. return dnet_ntoa ();
  21064. ;
  21065. return 0;
  21066. }
  21067. _ACEOF
  21068. if ac_fn_c_try_link "$LINENO"
  21069. then :
  21070. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  21071. else $as_nop
  21072. ac_cv_lib_dnet_stub_dnet_ntoa=no
  21073. fi
  21074. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21075. conftest$ac_exeext conftest.$ac_ext
  21076. LIBS=$ac_check_lib_save_LIBS
  21077. fi
  21078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  21079. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  21080. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  21081. then :
  21082. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  21083. fi
  21084. fi
  21085. fi
  21086. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21087. conftest$ac_exeext conftest.$ac_ext
  21088. LIBS="$ac_xsave_LIBS"
  21089. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  21090. # to get the SysV transport functions.
  21091. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  21092. # needs -lnsl.
  21093. # The nsl library prevents programs from opening the X display
  21094. # on Irix 5.2, according to T.E. Dickey.
  21095. # The functions gethostbyname, getservbyname, and inet_addr are
  21096. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  21097. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  21098. if test "x$ac_cv_func_gethostbyname" = xyes
  21099. then :
  21100. fi
  21101. if test $ac_cv_func_gethostbyname = no; then
  21102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  21103. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  21104. if test ${ac_cv_lib_nsl_gethostbyname+y}
  21105. then :
  21106. printf %s "(cached) " >&6
  21107. else $as_nop
  21108. ac_check_lib_save_LIBS=$LIBS
  21109. LIBS="-lnsl $LIBS"
  21110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21111. /* end confdefs.h. */
  21112. /* Override any GCC internal prototype to avoid an error.
  21113. Use char because int might match the return type of a GCC
  21114. builtin and then its argument prototype would still apply. */
  21115. char gethostbyname ();
  21116. int
  21117. main (void)
  21118. {
  21119. return gethostbyname ();
  21120. ;
  21121. return 0;
  21122. }
  21123. _ACEOF
  21124. if ac_fn_c_try_link "$LINENO"
  21125. then :
  21126. ac_cv_lib_nsl_gethostbyname=yes
  21127. else $as_nop
  21128. ac_cv_lib_nsl_gethostbyname=no
  21129. fi
  21130. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21131. conftest$ac_exeext conftest.$ac_ext
  21132. LIBS=$ac_check_lib_save_LIBS
  21133. fi
  21134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21135. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21136. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  21137. then :
  21138. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21139. fi
  21140. if test $ac_cv_lib_nsl_gethostbyname = no; then
  21141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  21142. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  21143. if test ${ac_cv_lib_bsd_gethostbyname+y}
  21144. then :
  21145. printf %s "(cached) " >&6
  21146. else $as_nop
  21147. ac_check_lib_save_LIBS=$LIBS
  21148. LIBS="-lbsd $LIBS"
  21149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21150. /* end confdefs.h. */
  21151. /* Override any GCC internal prototype to avoid an error.
  21152. Use char because int might match the return type of a GCC
  21153. builtin and then its argument prototype would still apply. */
  21154. char gethostbyname ();
  21155. int
  21156. main (void)
  21157. {
  21158. return gethostbyname ();
  21159. ;
  21160. return 0;
  21161. }
  21162. _ACEOF
  21163. if ac_fn_c_try_link "$LINENO"
  21164. then :
  21165. ac_cv_lib_bsd_gethostbyname=yes
  21166. else $as_nop
  21167. ac_cv_lib_bsd_gethostbyname=no
  21168. fi
  21169. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21170. conftest$ac_exeext conftest.$ac_ext
  21171. LIBS=$ac_check_lib_save_LIBS
  21172. fi
  21173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21174. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  21175. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  21176. then :
  21177. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21178. fi
  21179. fi
  21180. fi
  21181. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  21182. # socket/setsockopt and other routines are undefined under SCO ODT
  21183. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  21184. # on later versions), says Simon Leinen: it contains gethostby*
  21185. # variants that don't use the name server (or something). -lsocket
  21186. # must be given before -lnsl if both are needed. We assume that
  21187. # if connect needs -lnsl, so does gethostbyname.
  21188. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  21189. if test "x$ac_cv_func_connect" = xyes
  21190. then :
  21191. fi
  21192. if test $ac_cv_func_connect = no; then
  21193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  21194. printf %s "checking for connect in -lsocket... " >&6; }
  21195. if test ${ac_cv_lib_socket_connect+y}
  21196. then :
  21197. printf %s "(cached) " >&6
  21198. else $as_nop
  21199. ac_check_lib_save_LIBS=$LIBS
  21200. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21202. /* end confdefs.h. */
  21203. /* Override any GCC internal prototype to avoid an error.
  21204. Use char because int might match the return type of a GCC
  21205. builtin and then its argument prototype would still apply. */
  21206. char connect ();
  21207. int
  21208. main (void)
  21209. {
  21210. return connect ();
  21211. ;
  21212. return 0;
  21213. }
  21214. _ACEOF
  21215. if ac_fn_c_try_link "$LINENO"
  21216. then :
  21217. ac_cv_lib_socket_connect=yes
  21218. else $as_nop
  21219. ac_cv_lib_socket_connect=no
  21220. fi
  21221. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21222. conftest$ac_exeext conftest.$ac_ext
  21223. LIBS=$ac_check_lib_save_LIBS
  21224. fi
  21225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  21226. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  21227. if test "x$ac_cv_lib_socket_connect" = xyes
  21228. then :
  21229. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21230. fi
  21231. fi
  21232. # Guillermo Gomez says -lposix is necessary on A/UX.
  21233. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  21234. if test "x$ac_cv_func_remove" = xyes
  21235. then :
  21236. fi
  21237. if test $ac_cv_func_remove = no; then
  21238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  21239. printf %s "checking for remove in -lposix... " >&6; }
  21240. if test ${ac_cv_lib_posix_remove+y}
  21241. then :
  21242. printf %s "(cached) " >&6
  21243. else $as_nop
  21244. ac_check_lib_save_LIBS=$LIBS
  21245. LIBS="-lposix $LIBS"
  21246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21247. /* end confdefs.h. */
  21248. /* Override any GCC internal prototype to avoid an error.
  21249. Use char because int might match the return type of a GCC
  21250. builtin and then its argument prototype would still apply. */
  21251. char remove ();
  21252. int
  21253. main (void)
  21254. {
  21255. return remove ();
  21256. ;
  21257. return 0;
  21258. }
  21259. _ACEOF
  21260. if ac_fn_c_try_link "$LINENO"
  21261. then :
  21262. ac_cv_lib_posix_remove=yes
  21263. else $as_nop
  21264. ac_cv_lib_posix_remove=no
  21265. fi
  21266. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21267. conftest$ac_exeext conftest.$ac_ext
  21268. LIBS=$ac_check_lib_save_LIBS
  21269. fi
  21270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21271. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21272. if test "x$ac_cv_lib_posix_remove" = xyes
  21273. then :
  21274. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21275. fi
  21276. fi
  21277. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21278. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21279. if test "x$ac_cv_func_shmat" = xyes
  21280. then :
  21281. fi
  21282. if test $ac_cv_func_shmat = no; then
  21283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21284. printf %s "checking for shmat in -lipc... " >&6; }
  21285. if test ${ac_cv_lib_ipc_shmat+y}
  21286. then :
  21287. printf %s "(cached) " >&6
  21288. else $as_nop
  21289. ac_check_lib_save_LIBS=$LIBS
  21290. LIBS="-lipc $LIBS"
  21291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21292. /* end confdefs.h. */
  21293. /* Override any GCC internal prototype to avoid an error.
  21294. Use char because int might match the return type of a GCC
  21295. builtin and then its argument prototype would still apply. */
  21296. char shmat ();
  21297. int
  21298. main (void)
  21299. {
  21300. return shmat ();
  21301. ;
  21302. return 0;
  21303. }
  21304. _ACEOF
  21305. if ac_fn_c_try_link "$LINENO"
  21306. then :
  21307. ac_cv_lib_ipc_shmat=yes
  21308. else $as_nop
  21309. ac_cv_lib_ipc_shmat=no
  21310. fi
  21311. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21312. conftest$ac_exeext conftest.$ac_ext
  21313. LIBS=$ac_check_lib_save_LIBS
  21314. fi
  21315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21316. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21317. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21318. then :
  21319. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21320. fi
  21321. fi
  21322. fi
  21323. # Check for libraries that X11R6 Xt/Xaw programs need.
  21324. ac_save_LDFLAGS=$LDFLAGS
  21325. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21326. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21327. # check for ICE first), but we must link in the order -lSM -lICE or
  21328. # we get undefined symbols. So assume we have SM if we have ICE.
  21329. # These have to be linked with before -lX11, unlike the other
  21330. # libraries we check for below, so use a different variable.
  21331. # John Interrante, Karl Berry
  21332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21333. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21334. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21335. then :
  21336. printf %s "(cached) " >&6
  21337. else $as_nop
  21338. ac_check_lib_save_LIBS=$LIBS
  21339. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21341. /* end confdefs.h. */
  21342. /* Override any GCC internal prototype to avoid an error.
  21343. Use char because int might match the return type of a GCC
  21344. builtin and then its argument prototype would still apply. */
  21345. char IceConnectionNumber ();
  21346. int
  21347. main (void)
  21348. {
  21349. return IceConnectionNumber ();
  21350. ;
  21351. return 0;
  21352. }
  21353. _ACEOF
  21354. if ac_fn_c_try_link "$LINENO"
  21355. then :
  21356. ac_cv_lib_ICE_IceConnectionNumber=yes
  21357. else $as_nop
  21358. ac_cv_lib_ICE_IceConnectionNumber=no
  21359. fi
  21360. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21361. conftest$ac_exeext conftest.$ac_ext
  21362. LIBS=$ac_check_lib_save_LIBS
  21363. fi
  21364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21365. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21366. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21367. then :
  21368. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21369. fi
  21370. LDFLAGS=$ac_save_LDFLAGS
  21371. fi
  21372. if test x$have_x = xyes; then
  21373. # Check whether --enable-x11-shared was given.
  21374. if test ${enable_x11_shared+y}
  21375. then :
  21376. enableval=$enable_x11_shared;
  21377. else $as_nop
  21378. enable_x11_shared=maybe
  21379. fi
  21380. case "$host" in
  21381. *-*-darwin*)
  21382. # Apple now puts this in /opt/X11
  21383. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21384. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21385. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21386. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21387. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21388. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21389. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21390. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21391. ;;
  21392. *-*-openbsd*)
  21393. x11_lib='libX11.so'
  21394. x11ext_lib='libXext.so'
  21395. xcursor_lib='libXcursor.so'
  21396. xinput_lib='libXi.so'
  21397. xfixes_lib='libXfixes.so'
  21398. xrandr_lib='libXrandr.so'
  21399. xrender_lib='libXrender.so'
  21400. xss_lib='libXss.so'
  21401. ;;
  21402. *)
  21403. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21404. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21405. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21406. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21407. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21408. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21409. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21410. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21411. ;;
  21412. esac
  21413. if test x$ac_cv_func_shmat != xyes; then
  21414. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21415. fi
  21416. CFLAGS="$CFLAGS $X_CFLAGS"
  21417. LDFLAGS="$LDFLAGS $X_LIBS"
  21418. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21419. #include <X11/Xproto.h>
  21420. "
  21421. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21422. then :
  21423. have_xext_h_hdr=yes
  21424. else $as_nop
  21425. have_xext_h_hdr=no
  21426. fi
  21427. if test x$have_xext_h_hdr != xyes; then
  21428. as_fn_error $? "
  21429. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21430. " "$LINENO" 5
  21431. fi
  21432. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21433. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21434. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21435. # Needed so SDL applications can include SDL_syswm.h
  21436. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21437. if test x$enable_x11_shared = xmaybe; then
  21438. enable_x11_shared=yes
  21439. fi
  21440. if test x$have_loadso != xyes && \
  21441. test x$enable_x11_shared = xyes; then
  21442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21443. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21444. enable_x11_shared=no
  21445. fi
  21446. if test x$have_loadso = xyes && \
  21447. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21448. echo "-- dynamic libX11 -> $x11_lib"
  21449. echo "-- dynamic libX11ext -> $x11ext_lib"
  21450. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21451. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21452. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21453. else
  21454. enable_x11_shared=no
  21455. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21456. SUMMARY_video="${SUMMARY_video} x11"
  21457. fi
  21458. have_video=yes
  21459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21460. printf %s "checking for XGenericEvent... " >&6; }
  21461. have_XGenericEvent=no
  21462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21463. /* end confdefs.h. */
  21464. #include <X11/Xlib.h>
  21465. int
  21466. main (void)
  21467. {
  21468. Display *display;
  21469. XEvent event;
  21470. XGenericEventCookie *cookie = &event.xcookie;
  21471. XNextEvent(display, &event);
  21472. XGetEventData(display, cookie);
  21473. XFreeEventData(display, cookie);
  21474. ;
  21475. return 0;
  21476. }
  21477. _ACEOF
  21478. if ac_fn_c_try_compile "$LINENO"
  21479. then :
  21480. have_XGenericEvent=yes
  21481. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21482. fi
  21483. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21485. printf "%s\n" "$have_XGenericEvent" >&6; }
  21486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21487. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21488. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21489. then :
  21490. printf %s "(cached) " >&6
  21491. else $as_nop
  21492. ac_check_lib_save_LIBS=$LIBS
  21493. LIBS="-lX11 $LIBS"
  21494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21495. /* end confdefs.h. */
  21496. /* Override any GCC internal prototype to avoid an error.
  21497. Use char because int might match the return type of a GCC
  21498. builtin and then its argument prototype would still apply. */
  21499. char XkbKeycodeToKeysym ();
  21500. int
  21501. main (void)
  21502. {
  21503. return XkbKeycodeToKeysym ();
  21504. ;
  21505. return 0;
  21506. }
  21507. _ACEOF
  21508. if ac_fn_c_try_link "$LINENO"
  21509. then :
  21510. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21511. else $as_nop
  21512. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21513. fi
  21514. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21515. conftest$ac_exeext conftest.$ac_ext
  21516. LIBS=$ac_check_lib_save_LIBS
  21517. fi
  21518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21519. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21520. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21521. then :
  21522. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21523. fi
  21524. # Check whether --enable-video-x11-xcursor was given.
  21525. if test ${enable_video_x11_xcursor+y}
  21526. then :
  21527. enableval=$enable_video_x11_xcursor;
  21528. else $as_nop
  21529. enable_video_x11_xcursor=yes
  21530. fi
  21531. if test x$enable_video_x11_xcursor = xyes; then
  21532. definitely_enable_video_x11_xcursor=no
  21533. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21534. "
  21535. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21536. then :
  21537. have_xcursor_h_hdr=yes
  21538. else $as_nop
  21539. have_xcursor_h_hdr=no
  21540. fi
  21541. if test x$have_xcursor_h_hdr = xyes; then
  21542. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21543. echo "-- dynamic libXcursor -> $xcursor_lib"
  21544. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21545. definitely_enable_video_x11_xcursor=yes
  21546. else
  21547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21548. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21549. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21550. then :
  21551. printf %s "(cached) " >&6
  21552. else $as_nop
  21553. ac_check_lib_save_LIBS=$LIBS
  21554. LIBS="-lXcursor $LIBS"
  21555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21556. /* end confdefs.h. */
  21557. /* Override any GCC internal prototype to avoid an error.
  21558. Use char because int might match the return type of a GCC
  21559. builtin and then its argument prototype would still apply. */
  21560. char XcursorImageCreate ();
  21561. int
  21562. main (void)
  21563. {
  21564. return XcursorImageCreate ();
  21565. ;
  21566. return 0;
  21567. }
  21568. _ACEOF
  21569. if ac_fn_c_try_link "$LINENO"
  21570. then :
  21571. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21572. else $as_nop
  21573. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21574. fi
  21575. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21576. conftest$ac_exeext conftest.$ac_ext
  21577. LIBS=$ac_check_lib_save_LIBS
  21578. fi
  21579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21580. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21581. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21582. then :
  21583. have_xcursor_lib=yes
  21584. fi
  21585. if test x$have_xcursor_lib = xyes ; then
  21586. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21587. definitely_enable_video_x11_xcursor=yes
  21588. fi
  21589. fi
  21590. fi
  21591. fi
  21592. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21593. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21594. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21595. fi
  21596. # Check whether --enable-video-x11-xdbe was given.
  21597. if test ${enable_video_x11_xdbe+y}
  21598. then :
  21599. enableval=$enable_video_x11_xdbe;
  21600. else $as_nop
  21601. enable_video_x11_xdbe=yes
  21602. fi
  21603. if test x$enable_video_x11_xdbe = xyes; then
  21604. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21605. "
  21606. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21607. then :
  21608. have_dbe_h_hdr=yes
  21609. else $as_nop
  21610. have_dbe_h_hdr=no
  21611. fi
  21612. if test x$have_dbe_h_hdr = xyes; then
  21613. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21614. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21615. fi
  21616. fi
  21617. # Check whether --enable-video-x11-xinput was given.
  21618. if test ${enable_video_x11_xinput+y}
  21619. then :
  21620. enableval=$enable_video_x11_xinput;
  21621. else $as_nop
  21622. enable_video_x11_xinput=yes
  21623. fi
  21624. if test x$enable_video_x11_xinput = xyes; then
  21625. definitely_enable_video_x11_xinput=no
  21626. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21627. "
  21628. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21629. then :
  21630. have_xinput_h_hdr=yes
  21631. else $as_nop
  21632. have_xinput_h_hdr=no
  21633. fi
  21634. if test x$have_xinput_h_hdr = xyes; then
  21635. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21636. echo "-- dynamic libXi -> $xinput_lib"
  21637. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21638. definitely_enable_video_x11_xinput=yes
  21639. else
  21640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21641. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21642. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21643. then :
  21644. printf %s "(cached) " >&6
  21645. else $as_nop
  21646. ac_check_lib_save_LIBS=$LIBS
  21647. LIBS="-lXi $LIBS"
  21648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21649. /* end confdefs.h. */
  21650. /* Override any GCC internal prototype to avoid an error.
  21651. Use char because int might match the return type of a GCC
  21652. builtin and then its argument prototype would still apply. */
  21653. char XOpenDevice ();
  21654. int
  21655. main (void)
  21656. {
  21657. return XOpenDevice ();
  21658. ;
  21659. return 0;
  21660. }
  21661. _ACEOF
  21662. if ac_fn_c_try_link "$LINENO"
  21663. then :
  21664. ac_cv_lib_Xi_XOpenDevice=yes
  21665. else $as_nop
  21666. ac_cv_lib_Xi_XOpenDevice=no
  21667. fi
  21668. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21669. conftest$ac_exeext conftest.$ac_ext
  21670. LIBS=$ac_check_lib_save_LIBS
  21671. fi
  21672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21673. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21674. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21675. then :
  21676. have_xinput_lib=yes
  21677. fi
  21678. if test x$have_xinput_lib = xyes ; then
  21679. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21680. definitely_enable_video_x11_xinput=yes
  21681. fi
  21682. fi
  21683. fi
  21684. fi
  21685. if test x$definitely_enable_video_x11_xinput = xyes; then
  21686. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21687. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21689. printf %s "checking for xinput2 multitouch... " >&6; }
  21690. have_xinput2_multitouch=no
  21691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21692. /* end confdefs.h. */
  21693. #include <X11/Xlib.h>
  21694. #include <X11/Xproto.h>
  21695. #include <X11/extensions/XInput2.h>
  21696. int
  21697. main (void)
  21698. {
  21699. int event_type = XI_TouchBegin;
  21700. XITouchClassInfo *t;
  21701. ;
  21702. return 0;
  21703. }
  21704. _ACEOF
  21705. if ac_fn_c_try_compile "$LINENO"
  21706. then :
  21707. have_xinput2_multitouch=yes
  21708. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21709. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21710. fi
  21711. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21713. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21714. fi
  21715. # Check whether --enable-video-x11-xfixes was given.
  21716. if test ${enable_video_x11_xfixes+y}
  21717. then :
  21718. enableval=$enable_video_x11_xfixes;
  21719. else $as_nop
  21720. enable_video_x11_xfixes=yes
  21721. fi
  21722. if test x$enable_video_x11_xfixes = xyes; then
  21723. definitely_enable_video_x11_xfixes=no
  21724. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21726. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21728. /* end confdefs.h. */
  21729. #include <X11/Xlib.h>
  21730. #include <X11/Xproto.h>
  21731. #include <X11/extensions/XInput2.h>
  21732. #include <X11/extensions/Xfixes.h>
  21733. int
  21734. main (void)
  21735. {
  21736. BarrierEventID b;
  21737. ;
  21738. return 0;
  21739. }
  21740. _ACEOF
  21741. if ac_fn_c_try_compile "$LINENO"
  21742. then :
  21743. have_xfixes_h_hdr=yes
  21744. else $as_nop
  21745. have_xfixes_h_hdr=no
  21746. fi
  21747. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21749. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21750. if test x$have_xfixes_h_hdr = xyes; then
  21751. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21752. echo "-- dynamic libXfixes -> $xfixes_lib"
  21753. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21754. definitely_enable_video_x11_xfixes=yes
  21755. else
  21756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21757. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21758. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21759. then :
  21760. printf %s "(cached) " >&6
  21761. else $as_nop
  21762. ac_check_lib_save_LIBS=$LIBS
  21763. LIBS="-lXfixes $LIBS"
  21764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21765. /* end confdefs.h. */
  21766. /* Override any GCC internal prototype to avoid an error.
  21767. Use char because int might match the return type of a GCC
  21768. builtin and then its argument prototype would still apply. */
  21769. char XFixesCreatePointerBarrier ();
  21770. int
  21771. main (void)
  21772. {
  21773. return XFixesCreatePointerBarrier ();
  21774. ;
  21775. return 0;
  21776. }
  21777. _ACEOF
  21778. if ac_fn_c_try_link "$LINENO"
  21779. then :
  21780. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21781. else $as_nop
  21782. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21783. fi
  21784. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21785. conftest$ac_exeext conftest.$ac_ext
  21786. LIBS=$ac_check_lib_save_LIBS
  21787. fi
  21788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21789. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21790. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21791. then :
  21792. have_xfixes_lib=yes
  21793. fi
  21794. if test x$have_xfixes_lib = xyes ; then
  21795. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21796. definitely_enable_video_x11_xfixes=yes
  21797. fi
  21798. fi
  21799. fi
  21800. fi
  21801. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21802. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21803. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21804. fi
  21805. # Check whether --enable-video-x11-xrandr was given.
  21806. if test ${enable_video_x11_xrandr+y}
  21807. then :
  21808. enableval=$enable_video_x11_xrandr;
  21809. else $as_nop
  21810. enable_video_x11_xrandr=yes
  21811. fi
  21812. if test x$enable_video_x11_xrandr = xyes; then
  21813. definitely_enable_video_x11_xrandr=no
  21814. have_xrandr_h_hdr=no
  21815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21816. /* end confdefs.h. */
  21817. #include <X11/Xlib.h>
  21818. #include <X11/extensions/Xrandr.h>
  21819. int
  21820. main (void)
  21821. {
  21822. XRRScreenResources *res = NULL;
  21823. ;
  21824. return 0;
  21825. }
  21826. _ACEOF
  21827. if ac_fn_c_try_compile "$LINENO"
  21828. then :
  21829. have_xrandr_h_hdr=yes
  21830. fi
  21831. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21832. if test x$have_xrandr_h_hdr = xyes; then
  21833. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21834. echo "-- dynamic libXrandr -> $xrandr_lib"
  21835. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21836. definitely_enable_video_x11_xrandr=yes
  21837. else
  21838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21839. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21840. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21841. then :
  21842. printf %s "(cached) " >&6
  21843. else $as_nop
  21844. ac_check_lib_save_LIBS=$LIBS
  21845. LIBS="-lXrandr $LIBS"
  21846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21847. /* end confdefs.h. */
  21848. /* Override any GCC internal prototype to avoid an error.
  21849. Use char because int might match the return type of a GCC
  21850. builtin and then its argument prototype would still apply. */
  21851. char XRRQueryExtension ();
  21852. int
  21853. main (void)
  21854. {
  21855. return XRRQueryExtension ();
  21856. ;
  21857. return 0;
  21858. }
  21859. _ACEOF
  21860. if ac_fn_c_try_link "$LINENO"
  21861. then :
  21862. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21863. else $as_nop
  21864. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21865. fi
  21866. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21867. conftest$ac_exeext conftest.$ac_ext
  21868. LIBS=$ac_check_lib_save_LIBS
  21869. fi
  21870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21871. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21872. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21873. then :
  21874. have_xrandr_lib=yes
  21875. fi
  21876. if test x$have_xrandr_lib = xyes ; then
  21877. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21878. definitely_enable_video_x11_xrandr=yes
  21879. fi
  21880. fi
  21881. fi
  21882. fi
  21883. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21884. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21885. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21886. fi
  21887. # Check whether --enable-video-x11-scrnsaver was given.
  21888. if test ${enable_video_x11_scrnsaver+y}
  21889. then :
  21890. enableval=$enable_video_x11_scrnsaver;
  21891. else $as_nop
  21892. enable_video_x11_scrnsaver=yes
  21893. fi
  21894. if test x$enable_video_x11_scrnsaver = xyes; then
  21895. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21896. "
  21897. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21898. then :
  21899. have_scrnsaver_h_hdr=yes
  21900. else $as_nop
  21901. have_scrnsaver_h_hdr=no
  21902. fi
  21903. if test x$have_scrnsaver_h_hdr = xyes; then
  21904. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21905. echo "-- dynamic libXss -> $xss_lib"
  21906. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21907. definitely_enable_video_x11_scrnsaver=yes
  21908. else
  21909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21910. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21911. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21912. then :
  21913. printf %s "(cached) " >&6
  21914. else $as_nop
  21915. ac_check_lib_save_LIBS=$LIBS
  21916. LIBS="-lXss $LIBS"
  21917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21918. /* end confdefs.h. */
  21919. /* Override any GCC internal prototype to avoid an error.
  21920. Use char because int might match the return type of a GCC
  21921. builtin and then its argument prototype would still apply. */
  21922. char XScreenSaverSuspend ();
  21923. int
  21924. main (void)
  21925. {
  21926. return XScreenSaverSuspend ();
  21927. ;
  21928. return 0;
  21929. }
  21930. _ACEOF
  21931. if ac_fn_c_try_link "$LINENO"
  21932. then :
  21933. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21934. else $as_nop
  21935. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21936. fi
  21937. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21938. conftest$ac_exeext conftest.$ac_ext
  21939. LIBS=$ac_check_lib_save_LIBS
  21940. fi
  21941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21942. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21943. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21944. then :
  21945. have_xss_lib=yes
  21946. fi
  21947. if test x$have_xss_lib = xyes ; then
  21948. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21949. definitely_enable_video_x11_scrnsaver=yes
  21950. fi
  21951. fi
  21952. fi
  21953. fi
  21954. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21955. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21956. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21957. fi
  21958. # Check whether --enable-video-x11-xshape was given.
  21959. if test ${enable_video_x11_xshape+y}
  21960. then :
  21961. enableval=$enable_video_x11_xshape;
  21962. else $as_nop
  21963. enable_video_x11_xshape=yes
  21964. fi
  21965. if test x$enable_video_x11_xshape = xyes; then
  21966. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21967. "
  21968. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21969. then :
  21970. have_shape_h_hdr=yes
  21971. else $as_nop
  21972. have_shape_h_hdr=no
  21973. fi
  21974. if test x$have_shape_h_hdr = xyes; then
  21975. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21976. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21977. fi
  21978. fi
  21979. fi
  21980. fi
  21981. if test x$have_x != xyes; then
  21982. # Prevent Mesa from including X11 headers
  21983. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21984. fi
  21985. }
  21986. CheckVivanteVideo()
  21987. {
  21988. # Check whether --enable-video-vivante was given.
  21989. if test ${enable_video_vivante+y}
  21990. then :
  21991. enableval=$enable_video_vivante;
  21992. else $as_nop
  21993. enable_video_vivante=yes
  21994. fi
  21995. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21997. printf %s "checking for Vivante VDK API... " >&6; }
  21998. have_vivante_vdk=no
  21999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22000. /* end confdefs.h. */
  22001. #define LINUX
  22002. #define EGL_API_FB
  22003. #include <gc_vdk.h>
  22004. int
  22005. main (void)
  22006. {
  22007. ;
  22008. return 0;
  22009. }
  22010. _ACEOF
  22011. if ac_fn_c_try_compile "$LINENO"
  22012. then :
  22013. have_vivante_vdk=yes
  22014. fi
  22015. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  22017. printf "%s\n" "$have_vivante_vdk" >&6; }
  22018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  22019. printf %s "checking for Vivante FB API... " >&6; }
  22020. have_vivante_egl=no
  22021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22022. /* end confdefs.h. */
  22023. #define LINUX
  22024. #define EGL_API_FB
  22025. #include <EGL/eglvivante.h>
  22026. int
  22027. main (void)
  22028. {
  22029. ;
  22030. return 0;
  22031. }
  22032. _ACEOF
  22033. if ac_fn_c_try_compile "$LINENO"
  22034. then :
  22035. have_vivante_egl=yes
  22036. fi
  22037. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  22039. printf "%s\n" "$have_vivante_egl" >&6; }
  22040. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  22041. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  22042. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  22043. if test x$have_vivante_vdk = xyes; then
  22044. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  22045. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  22046. fi
  22047. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  22048. SUMMARY_video="${SUMMARY_video} vivante"
  22049. have_video=yes
  22050. fi
  22051. fi
  22052. }
  22053. CheckHaikuVideo()
  22054. {
  22055. if test x$enable_video = xyes; then
  22056. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  22057. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  22058. have_video=yes
  22059. SUMMARY_video="${SUMMARY_video} haiku"
  22060. fi
  22061. }
  22062. CheckCOCOA()
  22063. {
  22064. # Check whether --enable-video-cocoa was given.
  22065. if test ${enable_video_cocoa+y}
  22066. then :
  22067. enableval=$enable_video_cocoa;
  22068. else $as_nop
  22069. enable_video_cocoa=yes
  22070. fi
  22071. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  22072. save_CFLAGS="$CFLAGS"
  22073. CFLAGS="$CFLAGS -x objective-c"
  22074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  22075. printf %s "checking for Cocoa framework... " >&6; }
  22076. have_cocoa=no
  22077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22078. /* end confdefs.h. */
  22079. #import <Cocoa/Cocoa.h>
  22080. int
  22081. main (void)
  22082. {
  22083. ;
  22084. return 0;
  22085. }
  22086. _ACEOF
  22087. if ac_fn_c_try_compile "$LINENO"
  22088. then :
  22089. have_cocoa=yes
  22090. fi
  22091. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  22093. printf "%s\n" "$have_cocoa" >&6; }
  22094. CFLAGS="$save_CFLAGS"
  22095. if test x$have_cocoa = xyes; then
  22096. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  22097. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  22098. SUMMARY_video="${SUMMARY_video} cocoa"
  22099. have_video=yes
  22100. fi
  22101. fi
  22102. }
  22103. CheckMETAL()
  22104. {
  22105. # Check whether --enable-video-metal was given.
  22106. if test ${enable_video_metal+y}
  22107. then :
  22108. enableval=$enable_video_metal;
  22109. else $as_nop
  22110. enable_video_metal=yes
  22111. fi
  22112. # Check whether --enable-render-metal was given.
  22113. if test ${enable_render_metal+y}
  22114. then :
  22115. enableval=$enable_render_metal;
  22116. else $as_nop
  22117. enable_render_metal=yes
  22118. fi
  22119. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  22120. save_CFLAGS="$CFLAGS"
  22121. CFLAGS="$CFLAGS -x objective-c"
  22122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  22123. printf %s "checking for Metal framework... " >&6; }
  22124. have_metal=no
  22125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22126. /* end confdefs.h. */
  22127. #import <Cocoa/Cocoa.h>
  22128. #import <Metal/Metal.h>
  22129. #import <QuartzCore/CAMetalLayer.h>
  22130. #if TARGET_CPU_X86
  22131. #error Metal doesn't work on this configuration
  22132. #endif
  22133. int
  22134. main (void)
  22135. {
  22136. ;
  22137. return 0;
  22138. }
  22139. _ACEOF
  22140. if ac_fn_c_try_compile "$LINENO"
  22141. then :
  22142. have_metal=yes
  22143. fi
  22144. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22145. CFLAGS="$save_CFLAGS"
  22146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  22147. printf "%s\n" "$have_metal" >&6; }
  22148. if test x$have_metal = xyes; then
  22149. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  22150. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  22151. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  22152. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  22153. fi
  22154. SUMMARY_video="${SUMMARY_video} metal"
  22155. else
  22156. enable_video_metal=no
  22157. enable_render_metal=no
  22158. fi
  22159. fi
  22160. }
  22161. CheckDirectFB()
  22162. {
  22163. # Check whether --enable-video-directfb was given.
  22164. if test ${enable_video_directfb+y}
  22165. then :
  22166. enableval=$enable_video_directfb;
  22167. else $as_nop
  22168. enable_video_directfb=no
  22169. fi
  22170. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  22171. pkg_failed=no
  22172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  22173. printf %s "checking for directfb >= 1.0.0... " >&6; }
  22174. if test -n "$DIRECTFB_CFLAGS"; then
  22175. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  22176. elif test -n "$PKG_CONFIG"; then
  22177. if test -n "$PKG_CONFIG" && \
  22178. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22179. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22180. ac_status=$?
  22181. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22182. test $ac_status = 0; }; then
  22183. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  22184. test "x$?" != "x0" && pkg_failed=yes
  22185. else
  22186. pkg_failed=yes
  22187. fi
  22188. else
  22189. pkg_failed=untried
  22190. fi
  22191. if test -n "$DIRECTFB_LIBS"; then
  22192. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  22193. elif test -n "$PKG_CONFIG"; then
  22194. if test -n "$PKG_CONFIG" && \
  22195. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22196. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22197. ac_status=$?
  22198. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22199. test $ac_status = 0; }; then
  22200. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  22201. test "x$?" != "x0" && pkg_failed=yes
  22202. else
  22203. pkg_failed=yes
  22204. fi
  22205. else
  22206. pkg_failed=untried
  22207. fi
  22208. if test $pkg_failed = yes; then
  22209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22210. printf "%s\n" "no" >&6; }
  22211. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22212. _pkg_short_errors_supported=yes
  22213. else
  22214. _pkg_short_errors_supported=no
  22215. fi
  22216. if test $_pkg_short_errors_supported = yes; then
  22217. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22218. else
  22219. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22220. fi
  22221. # Put the nasty error message in config.log where it belongs
  22222. echo "$DIRECTFB_PKG_ERRORS" >&5
  22223. video_directfb=no
  22224. elif test $pkg_failed = untried; then
  22225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22226. printf "%s\n" "no" >&6; }
  22227. video_directfb=no
  22228. else
  22229. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  22230. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  22231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22232. printf "%s\n" "yes" >&6; }
  22233. video_directfb=yes
  22234. fi
  22235. if test x$video_directfb = xyes; then
  22236. # SuSE 11.1 installs directfb-config without directfb-devel
  22237. save_CPPFLAGS="$CPPFLAGS"
  22238. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  22239. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  22240. if test "x$ac_cv_header_directfb_h" = xyes
  22241. then :
  22242. have_directfb_hdr=yes
  22243. else $as_nop
  22244. have_directfb_hdr=no
  22245. fi
  22246. CPPFLAGS="$save_CPPFLAGS"
  22247. video_directfb=$have_directfb_hdr
  22248. fi
  22249. if test x$video_directfb = xyes; then
  22250. # Check whether --enable-directfb-shared was given.
  22251. if test ${enable_directfb_shared+y}
  22252. then :
  22253. enableval=$enable_directfb_shared;
  22254. else $as_nop
  22255. enable_directfb_shared=yes
  22256. fi
  22257. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22258. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22259. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22260. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22261. directfb_shared=no
  22262. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22263. if test x$have_loadso != xyes && \
  22264. test x$enable_directfb_shared = xyes; then
  22265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22266. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22267. fi
  22268. if test x$have_loadso = xyes && \
  22269. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22270. directfb_shared=yes
  22271. echo "-- dynamic libdirectfb -> $directfb_lib"
  22272. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22273. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22274. else
  22275. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22276. SUMMARY_video="${SUMMARY_video} directfb"
  22277. fi
  22278. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22279. have_video=yes
  22280. fi
  22281. fi
  22282. }
  22283. CheckKMSDRM()
  22284. {
  22285. # Check whether --enable-video-kmsdrm was given.
  22286. if test ${enable_video_kmsdrm+y}
  22287. then :
  22288. enableval=$enable_video_kmsdrm;
  22289. else $as_nop
  22290. enable_video_kmsdrm=yes
  22291. fi
  22292. if test x$enable_video = xyes && \
  22293. test x$enable_video_kmsdrm = xyes && \
  22294. test x$video_opengl_egl = xyes; then
  22295. video_kmsdrm=no
  22296. pkg_failed=no
  22297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22298. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22299. if test -n "$LIBDRM_CFLAGS"; then
  22300. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22301. elif test -n "$PKG_CONFIG"; then
  22302. if test -n "$PKG_CONFIG" && \
  22303. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22304. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22305. ac_status=$?
  22306. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22307. test $ac_status = 0; }; then
  22308. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22309. test "x$?" != "x0" && pkg_failed=yes
  22310. else
  22311. pkg_failed=yes
  22312. fi
  22313. else
  22314. pkg_failed=untried
  22315. fi
  22316. if test -n "$LIBDRM_LIBS"; then
  22317. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22318. elif test -n "$PKG_CONFIG"; then
  22319. if test -n "$PKG_CONFIG" && \
  22320. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22321. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22322. ac_status=$?
  22323. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22324. test $ac_status = 0; }; then
  22325. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22326. test "x$?" != "x0" && pkg_failed=yes
  22327. else
  22328. pkg_failed=yes
  22329. fi
  22330. else
  22331. pkg_failed=untried
  22332. fi
  22333. if test $pkg_failed = yes; then
  22334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22335. printf "%s\n" "no" >&6; }
  22336. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22337. _pkg_short_errors_supported=yes
  22338. else
  22339. _pkg_short_errors_supported=no
  22340. fi
  22341. if test $_pkg_short_errors_supported = yes; then
  22342. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22343. else
  22344. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22345. fi
  22346. # Put the nasty error message in config.log where it belongs
  22347. echo "$LIBDRM_PKG_ERRORS" >&5
  22348. libdrm_avail=no
  22349. elif test $pkg_failed = untried; then
  22350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22351. printf "%s\n" "no" >&6; }
  22352. libdrm_avail=no
  22353. else
  22354. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22355. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22357. printf "%s\n" "yes" >&6; }
  22358. libdrm_avail=yes
  22359. fi
  22360. pkg_failed=no
  22361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22362. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22363. if test -n "$LIBGBM_CFLAGS"; then
  22364. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22365. elif test -n "$PKG_CONFIG"; then
  22366. if test -n "$PKG_CONFIG" && \
  22367. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22368. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22369. ac_status=$?
  22370. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22371. test $ac_status = 0; }; then
  22372. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22373. test "x$?" != "x0" && pkg_failed=yes
  22374. else
  22375. pkg_failed=yes
  22376. fi
  22377. else
  22378. pkg_failed=untried
  22379. fi
  22380. if test -n "$LIBGBM_LIBS"; then
  22381. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22382. elif test -n "$PKG_CONFIG"; then
  22383. if test -n "$PKG_CONFIG" && \
  22384. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22385. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22386. ac_status=$?
  22387. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22388. test $ac_status = 0; }; then
  22389. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22390. test "x$?" != "x0" && pkg_failed=yes
  22391. else
  22392. pkg_failed=yes
  22393. fi
  22394. else
  22395. pkg_failed=untried
  22396. fi
  22397. if test $pkg_failed = yes; then
  22398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22399. printf "%s\n" "no" >&6; }
  22400. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22401. _pkg_short_errors_supported=yes
  22402. else
  22403. _pkg_short_errors_supported=no
  22404. fi
  22405. if test $_pkg_short_errors_supported = yes; then
  22406. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22407. else
  22408. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22409. fi
  22410. # Put the nasty error message in config.log where it belongs
  22411. echo "$LIBGBM_PKG_ERRORS" >&5
  22412. libgbm_avail=no
  22413. elif test $pkg_failed = untried; then
  22414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22415. printf "%s\n" "no" >&6; }
  22416. libgbm_avail=no
  22417. else
  22418. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22419. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22421. printf "%s\n" "yes" >&6; }
  22422. libgbm_avail=yes
  22423. fi
  22424. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22425. video_kmsdrm=yes
  22426. fi
  22427. if test x$video_kmsdrm = xyes; then
  22428. # Check whether --enable-kmsdrm-shared was given.
  22429. if test ${enable_kmsdrm_shared+y}
  22430. then :
  22431. enableval=$enable_kmsdrm_shared;
  22432. else $as_nop
  22433. enable_kmsdrm_shared=yes
  22434. fi
  22435. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22436. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22437. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22439. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22440. kmsdrm_shared=no
  22441. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22442. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22443. if test x$have_loadso != xyes && \
  22444. test x$enable_kmsdrm_shared = xyes; then
  22445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22446. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22447. fi
  22448. if test x$have_loadso = xyes && \
  22449. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22450. kmsdrm_shared=yes
  22451. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22452. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22453. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22454. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22455. else
  22456. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22457. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22458. fi
  22459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22460. printf "%s\n" "$kmsdrm_shared" >&6; }
  22461. if test x$kmsdrm_shared = xyes; then
  22462. echo "-- dynamic libdrm -> $drm_lib"
  22463. echo "-- dynamic libgbm -> $gbm_lib"
  22464. fi
  22465. have_video=yes
  22466. fi
  22467. fi
  22468. }
  22469. CheckDummyVideo()
  22470. {
  22471. # Check whether --enable-video-dummy was given.
  22472. if test ${enable_video_dummy+y}
  22473. then :
  22474. enableval=$enable_video_dummy;
  22475. else $as_nop
  22476. enable_video_dummy=yes
  22477. fi
  22478. if test x$enable_video_dummy = xyes; then
  22479. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22480. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22481. have_video=yes
  22482. SUMMARY_video="${SUMMARY_video} dummy"
  22483. fi
  22484. }
  22485. CheckOffscreenVideo()
  22486. {
  22487. # Check whether --enable-video-offscreen was given.
  22488. if test ${enable_video_offscreen+y}
  22489. then :
  22490. enableval=$enable_video_offscreen;
  22491. else $as_nop
  22492. enable_video_offscreen=yes
  22493. fi
  22494. if test x$enable_video_offscreen = xyes; then
  22495. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22496. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22497. have_video=yes
  22498. SUMMARY_video="${SUMMARY_video} offscreen"
  22499. fi
  22500. }
  22501. CheckQNXVideo()
  22502. {
  22503. if test x$enable_video = xyes; then
  22504. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22505. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22506. have_video=yes
  22507. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22508. SUMMARY_video="${SUMMARY_video} qnx"
  22509. fi
  22510. }
  22511. CheckQNXAudio()
  22512. {
  22513. if test x$enable_audio = xyes; then
  22514. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22515. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22516. have_audio=yes
  22517. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22518. SUMMARY_audio="${SUMMARY_audio} qsa"
  22519. fi
  22520. }
  22521. # Check whether --enable-video-opengl was given.
  22522. if test ${enable_video_opengl+y}
  22523. then :
  22524. enableval=$enable_video_opengl;
  22525. else $as_nop
  22526. enable_video_opengl=yes
  22527. fi
  22528. CheckGLX()
  22529. {
  22530. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22532. printf %s "checking for GLX support... " >&6; }
  22533. video_opengl_glx=no
  22534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22535. /* end confdefs.h. */
  22536. #include <GL/glx.h>
  22537. int
  22538. main (void)
  22539. {
  22540. ;
  22541. return 0;
  22542. }
  22543. _ACEOF
  22544. if ac_fn_c_try_compile "$LINENO"
  22545. then :
  22546. video_opengl_glx=yes
  22547. fi
  22548. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22550. printf "%s\n" "$video_opengl_glx" >&6; }
  22551. if test x$video_opengl_glx = xyes; then
  22552. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22553. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22554. fi
  22555. fi
  22556. }
  22557. # Check whether --enable-video-opengles was given.
  22558. if test ${enable_video_opengles+y}
  22559. then :
  22560. enableval=$enable_video_opengles;
  22561. else $as_nop
  22562. enable_video_opengles=yes
  22563. fi
  22564. # Check whether --enable-video-opengles1 was given.
  22565. if test ${enable_video_opengles1+y}
  22566. then :
  22567. enableval=$enable_video_opengles1;
  22568. else $as_nop
  22569. enable_video_opengles1=yes
  22570. fi
  22571. # Check whether --enable-video-opengles2 was given.
  22572. if test ${enable_video_opengles2+y}
  22573. then :
  22574. enableval=$enable_video_opengles2;
  22575. else $as_nop
  22576. enable_video_opengles2=yes
  22577. fi
  22578. CheckEGL()
  22579. {
  22580. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22582. printf %s "checking for EGL support... " >&6; }
  22583. video_opengl_egl=no
  22584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22585. /* end confdefs.h. */
  22586. #define LINUX
  22587. #define EGL_API_FB
  22588. #define MESA_EGL_NO_X11_HEADERS
  22589. #define EGL_NO_X11
  22590. #include <EGL/egl.h>
  22591. #include <EGL/eglext.h>
  22592. int
  22593. main (void)
  22594. {
  22595. ;
  22596. return 0;
  22597. }
  22598. _ACEOF
  22599. if ac_fn_c_try_compile "$LINENO"
  22600. then :
  22601. video_opengl_egl=yes
  22602. fi
  22603. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22605. printf "%s\n" "$video_opengl_egl" >&6; }
  22606. if test x$video_opengl_egl = xyes; then
  22607. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22608. fi
  22609. fi
  22610. }
  22611. CheckOpenGL()
  22612. {
  22613. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22615. printf %s "checking for OpenGL headers... " >&6; }
  22616. video_opengl=no
  22617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22618. /* end confdefs.h. */
  22619. #include <GL/gl.h>
  22620. #include <GL/glext.h>
  22621. int
  22622. main (void)
  22623. {
  22624. ;
  22625. return 0;
  22626. }
  22627. _ACEOF
  22628. if ac_fn_c_try_compile "$LINENO"
  22629. then :
  22630. video_opengl=yes
  22631. fi
  22632. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22634. printf "%s\n" "$video_opengl" >&6; }
  22635. if test x$video_opengl = xyes; then
  22636. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22637. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22638. SUMMARY_video="${SUMMARY_video} opengl"
  22639. fi
  22640. fi
  22641. }
  22642. CheckOpenGLES()
  22643. {
  22644. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22645. if test x$enable_video_opengles1 = xyes; then
  22646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22647. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22648. video_opengles_v1=no
  22649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22650. /* end confdefs.h. */
  22651. #include <GLES/gl.h>
  22652. #include <GLES/glext.h>
  22653. int
  22654. main (void)
  22655. {
  22656. ;
  22657. return 0;
  22658. }
  22659. _ACEOF
  22660. if ac_fn_c_try_compile "$LINENO"
  22661. then :
  22662. video_opengles_v1=yes
  22663. fi
  22664. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22666. printf "%s\n" "$video_opengles_v1" >&6; }
  22667. if test x$video_opengles_v1 = xyes; then
  22668. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22669. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22670. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22671. fi
  22672. fi
  22673. if test x$enable_video_opengles2 = xyes; then
  22674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22675. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22676. video_opengles_v2=no
  22677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22678. /* end confdefs.h. */
  22679. #include <GLES2/gl2.h>
  22680. #include <GLES2/gl2ext.h>
  22681. int
  22682. main (void)
  22683. {
  22684. ;
  22685. return 0;
  22686. }
  22687. _ACEOF
  22688. if ac_fn_c_try_compile "$LINENO"
  22689. then :
  22690. video_opengles_v2=yes
  22691. fi
  22692. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22694. printf "%s\n" "$video_opengles_v2" >&6; }
  22695. if test x$video_opengles_v2 = xyes; then
  22696. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22697. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22698. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22699. fi
  22700. fi
  22701. fi
  22702. }
  22703. CheckWINDOWSGL()
  22704. {
  22705. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22706. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22707. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22708. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22709. SUMMARY_video="${SUMMARY_video} opengl"
  22710. fi
  22711. }
  22712. CheckWINDOWSGLES()
  22713. {
  22714. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22716. printf %s "checking for EGL support... " >&6; }
  22717. video_opengl_egl=no
  22718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22719. /* end confdefs.h. */
  22720. #include <EGL/egl.h>
  22721. int
  22722. main (void)
  22723. {
  22724. ;
  22725. return 0;
  22726. }
  22727. _ACEOF
  22728. if ac_fn_c_try_compile "$LINENO"
  22729. then :
  22730. video_opengl_egl=yes
  22731. fi
  22732. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22734. printf "%s\n" "$video_opengl_egl" >&6; }
  22735. if test x$video_opengl_egl = xyes; then
  22736. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22737. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22738. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22739. fi
  22740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22741. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22742. video_opengles_v2=no
  22743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22744. /* end confdefs.h. */
  22745. #include <GLES2/gl2.h>
  22746. #include <GLES2/gl2ext.h>
  22747. int
  22748. main (void)
  22749. {
  22750. ;
  22751. return 0;
  22752. }
  22753. _ACEOF
  22754. if ac_fn_c_try_compile "$LINENO"
  22755. then :
  22756. video_opengles_v2=yes
  22757. fi
  22758. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22760. printf "%s\n" "$video_opengles_v2" >&6; }
  22761. if test x$video_opengles_v2 = xyes; then
  22762. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22763. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22764. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22765. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22766. fi
  22767. fi
  22768. }
  22769. CheckHaikuGL()
  22770. {
  22771. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22772. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22773. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22774. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22775. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22776. SUMMARY_video="${SUMMARY_video} opengl"
  22777. fi
  22778. }
  22779. CheckMacGL()
  22780. {
  22781. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22782. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22783. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22784. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22785. SUMMARY_video="${SUMMARY_video} opengl"
  22786. fi
  22787. }
  22788. CheckMacGLES()
  22789. {
  22790. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22791. video_opengl_egl=yes
  22792. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22793. video_opengles_v2=yes
  22794. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22795. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22796. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22797. fi
  22798. }
  22799. CheckEmscriptenGLES()
  22800. {
  22801. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22803. printf %s "checking for EGL support... " >&6; }
  22804. video_opengl_egl=no
  22805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22806. /* end confdefs.h. */
  22807. #include <EGL/egl.h>
  22808. int
  22809. main (void)
  22810. {
  22811. ;
  22812. return 0;
  22813. }
  22814. _ACEOF
  22815. if ac_fn_c_try_compile "$LINENO"
  22816. then :
  22817. video_opengl_egl=yes
  22818. fi
  22819. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22821. printf "%s\n" "$video_opengl_egl" >&6; }
  22822. if test x$video_opengl_egl = xyes; then
  22823. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22824. fi
  22825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22826. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22827. video_opengles_v2=no
  22828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22829. /* end confdefs.h. */
  22830. #include <GLES2/gl2.h>
  22831. #include <GLES2/gl2ext.h>
  22832. int
  22833. main (void)
  22834. {
  22835. ;
  22836. return 0;
  22837. }
  22838. _ACEOF
  22839. if ac_fn_c_try_compile "$LINENO"
  22840. then :
  22841. video_opengles_v2=yes
  22842. fi
  22843. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22845. printf "%s\n" "$video_opengles_v2" >&6; }
  22846. if test x$video_opengles_v2 = xyes; then
  22847. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22848. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22849. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22850. fi
  22851. fi
  22852. }
  22853. # Check whether --enable-video-vulkan was given.
  22854. if test ${enable_video_vulkan+y}
  22855. then :
  22856. enableval=$enable_video_vulkan;
  22857. else $as_nop
  22858. enable_video_vulkan=yes
  22859. fi
  22860. CheckVulkan()
  22861. {
  22862. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22863. case "$host" in
  22864. *-*-android*)
  22865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22866. /* end confdefs.h. */
  22867. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22868. #error Vulkan doesn't work on this configuration
  22869. #endif
  22870. int
  22871. main (void)
  22872. {
  22873. ;
  22874. return 0;
  22875. }
  22876. _ACEOF
  22877. if ac_fn_c_try_compile "$LINENO"
  22878. then :
  22879. else $as_nop
  22880. enable_video_vulkan=no
  22881. fi
  22882. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22883. ;;
  22884. *-*-solaris*)
  22885. enable_video_vulkan=no
  22886. ;;
  22887. *-*-darwin*)
  22888. save_CFLAGS="$CFLAGS"
  22889. CFLAGS="$CFLAGS -x objective-c"
  22890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22891. /* end confdefs.h. */
  22892. #include <Cocoa/Cocoa.h>
  22893. #include <Metal/Metal.h>
  22894. #include <QuartzCore/CAMetalLayer.h>
  22895. #if TARGET_CPU_X86
  22896. #error Vulkan doesn't work on this configuration
  22897. #endif
  22898. int
  22899. main (void)
  22900. {
  22901. ;
  22902. return 0;
  22903. }
  22904. _ACEOF
  22905. if ac_fn_c_try_compile "$LINENO"
  22906. then :
  22907. else $as_nop
  22908. enable_video_vulkan=no
  22909. fi
  22910. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22911. CFLAGS="$save_CFLAGS"
  22912. ;;
  22913. *)
  22914. ;;
  22915. esac
  22916. if test x$enable_video_vulkan = xno; then
  22917. # For reasons I am totally unable to see, I get an undefined macro error if
  22918. # I put this in the AC_TRY_COMPILE.
  22919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22920. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22921. fi
  22922. fi
  22923. if test x$have_loadso != xyes; then
  22924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22925. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22926. enable_video_vulkan=no
  22927. fi
  22928. if test x$enable_video_vulkan = xyes; then
  22929. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22930. SUMMARY_video="${SUMMARY_video} vulkan"
  22931. fi
  22932. }
  22933. CheckInputEvents()
  22934. {
  22935. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  22936. if test "x$ac_cv_header_linux_input_h" = xyes
  22937. then :
  22938. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  22939. fi
  22940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22941. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22942. use_input_events=no
  22943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22944. /* end confdefs.h. */
  22945. #include <linux/input.h>
  22946. int
  22947. main (void)
  22948. {
  22949. #ifndef EVIOCGNAME
  22950. #error EVIOCGNAME() ioctl not available
  22951. #endif
  22952. ;
  22953. return 0;
  22954. }
  22955. _ACEOF
  22956. if ac_fn_c_try_compile "$LINENO"
  22957. then :
  22958. use_input_events=yes
  22959. fi
  22960. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22962. printf "%s\n" "$use_input_events" >&6; }
  22963. if test x$use_input_events = xyes; then
  22964. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22965. SUMMARY_input="${SUMMARY_input} linuxev"
  22966. fi
  22967. }
  22968. CheckInputKD()
  22969. {
  22970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22971. printf %s "checking for Linux kd.h... " >&6; }
  22972. use_input_kd=no
  22973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22974. /* end confdefs.h. */
  22975. #include <linux/kd.h>
  22976. #include <linux/keyboard.h>
  22977. #include <sys/ioctl.h>
  22978. int
  22979. main (void)
  22980. {
  22981. struct kbentry kbe;
  22982. kbe.kb_table = KG_CTRL;
  22983. ioctl(0, KDGKBENT, &kbe);
  22984. ;
  22985. return 0;
  22986. }
  22987. _ACEOF
  22988. if ac_fn_c_try_compile "$LINENO"
  22989. then :
  22990. use_input_kd=yes
  22991. fi
  22992. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22994. printf "%s\n" "$use_input_kd" >&6; }
  22995. if test x$use_input_kd = xyes; then
  22996. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22997. SUMMARY_input="${SUMMARY_input} linuxkd"
  22998. fi
  22999. }
  23000. CheckInputKBIO()
  23001. {
  23002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  23003. printf %s "checking for FreeBSD kbio.h... " >&6; }
  23004. use_input_kbio=no
  23005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23006. /* end confdefs.h. */
  23007. #include <sys/kbio.h>
  23008. #include <sys/ioctl.h>
  23009. int
  23010. main (void)
  23011. {
  23012. accentmap_t accTable;
  23013. ioctl(0, KDENABIO, 1);
  23014. ;
  23015. return 0;
  23016. }
  23017. _ACEOF
  23018. if ac_fn_c_try_compile "$LINENO"
  23019. then :
  23020. use_input_kbio=yes
  23021. fi
  23022. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  23024. printf "%s\n" "$use_input_kbio" >&6; }
  23025. if test x$use_input_kbio = xyes; then
  23026. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  23027. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  23028. fi
  23029. }
  23030. CheckInputWSCONS()
  23031. {
  23032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  23033. printf %s "checking for OpenBSD wscons... " >&6; }
  23034. use_input_wscons=no
  23035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23036. /* end confdefs.h. */
  23037. #include <sys/time.h>
  23038. #include <dev/wscons/wsconsio.h>
  23039. #include <dev/wscons/wsksymdef.h>
  23040. #include <dev/wscons/wsksymvar.h>
  23041. #include <sys/ioctl.h>
  23042. int
  23043. main (void)
  23044. {
  23045. struct wskbd_map_data data;
  23046. ioctl(0, WSKBDIO_GETMAP, &data);
  23047. ;
  23048. return 0;
  23049. }
  23050. _ACEOF
  23051. if ac_fn_c_try_compile "$LINENO"
  23052. then :
  23053. use_input_wscons=yes
  23054. fi
  23055. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  23057. printf "%s\n" "$use_input_wscons" >&6; }
  23058. if test x$use_input_wscons = xyes; then
  23059. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  23060. SUMMARY_input="${SUMMARY_input} wscons"
  23061. fi
  23062. }
  23063. CheckLibUDev()
  23064. {
  23065. # Check whether --enable-libudev was given.
  23066. if test ${enable_libudev+y}
  23067. then :
  23068. enableval=$enable_libudev;
  23069. else $as_nop
  23070. enable_libudev=yes
  23071. fi
  23072. if test x$enable_libudev = xyes; then
  23073. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  23074. if test "x$ac_cv_header_libudev_h" = xyes
  23075. then :
  23076. have_libudev_h_hdr=yes
  23077. else $as_nop
  23078. have_libudev_h_hdr=no
  23079. fi
  23080. if test x$have_libudev_h_hdr = xyes; then
  23081. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  23082. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23083. if test x$udev_lib != x; then
  23084. echo "-- dynamic udev -> $udev_lib"
  23085. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  23086. fi
  23087. fi
  23088. fi
  23089. }
  23090. CheckDBus()
  23091. {
  23092. # Check whether --enable-dbus was given.
  23093. if test ${enable_dbus+y}
  23094. then :
  23095. enableval=$enable_dbus;
  23096. else $as_nop
  23097. enable_dbus=yes
  23098. fi
  23099. if test x$enable_dbus = xyes; then
  23100. pkg_failed=no
  23101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  23102. printf %s "checking for dbus-1... " >&6; }
  23103. if test -n "$DBUS_CFLAGS"; then
  23104. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  23105. elif test -n "$PKG_CONFIG"; then
  23106. if test -n "$PKG_CONFIG" && \
  23107. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23108. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23109. ac_status=$?
  23110. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23111. test $ac_status = 0; }; then
  23112. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  23113. test "x$?" != "x0" && pkg_failed=yes
  23114. else
  23115. pkg_failed=yes
  23116. fi
  23117. else
  23118. pkg_failed=untried
  23119. fi
  23120. if test -n "$DBUS_LIBS"; then
  23121. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  23122. elif test -n "$PKG_CONFIG"; then
  23123. if test -n "$PKG_CONFIG" && \
  23124. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23125. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23126. ac_status=$?
  23127. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23128. test $ac_status = 0; }; then
  23129. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  23130. test "x$?" != "x0" && pkg_failed=yes
  23131. else
  23132. pkg_failed=yes
  23133. fi
  23134. else
  23135. pkg_failed=untried
  23136. fi
  23137. if test $pkg_failed = yes; then
  23138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23139. printf "%s\n" "no" >&6; }
  23140. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23141. _pkg_short_errors_supported=yes
  23142. else
  23143. _pkg_short_errors_supported=no
  23144. fi
  23145. if test $_pkg_short_errors_supported = yes; then
  23146. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  23147. else
  23148. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  23149. fi
  23150. # Put the nasty error message in config.log where it belongs
  23151. echo "$DBUS_PKG_ERRORS" >&5
  23152. have_dbus=no
  23153. elif test $pkg_failed = untried; then
  23154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23155. printf "%s\n" "no" >&6; }
  23156. have_dbus=no
  23157. else
  23158. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  23159. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  23160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23161. printf "%s\n" "yes" >&6; }
  23162. have_dbus=yes
  23163. fi
  23164. save_CPPFLAGS="$CPPFLAGS"
  23165. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  23166. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  23167. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  23168. then :
  23169. have_dbus_dbus_h_hdr=yes
  23170. else $as_nop
  23171. have_dbus_dbus_h_hdr=no
  23172. fi
  23173. CPPFLAGS="$save_CPPFLAGS"
  23174. if test x$have_dbus_dbus_h_hdr = xyes; then
  23175. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  23176. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  23177. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  23178. fi
  23179. fi
  23180. }
  23181. CheckIME()
  23182. {
  23183. # Check whether --enable-ime was given.
  23184. if test ${enable_ime+y}
  23185. then :
  23186. enableval=$enable_ime;
  23187. else $as_nop
  23188. enable_ime=yes
  23189. fi
  23190. if test x$enable_ime = xyes; then
  23191. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  23192. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  23193. fi
  23194. }
  23195. CheckInotify()
  23196. {
  23197. save_LIBS="$LIBS"
  23198. case "$host" in
  23199. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  23200. ;;
  23201. esac
  23202. for ac_header in sys/inotify.h
  23203. do :
  23204. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  23205. if test "x$ac_cv_header_sys_inotify_h" = xyes
  23206. then :
  23207. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  23208. have_inotify_inotify_h_hdr=yes
  23209. fi
  23210. done
  23211. for ac_func in inotify_init
  23212. do :
  23213. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  23214. if test "x$ac_cv_func_inotify_init" = xyes
  23215. then :
  23216. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  23217. have_inotify=yes
  23218. fi
  23219. done
  23220. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  23221. if test "x$ac_cv_func_inotify_init1" = xyes
  23222. then :
  23223. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  23224. fi
  23225. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  23226. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  23227. case "$host" in
  23228. *-*-freebsd*|*-*-dragonfly*)
  23229. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  23230. ;;
  23231. esac
  23232. fi
  23233. LIBS="$save_LIBS"
  23234. }
  23235. CheckIBus()
  23236. {
  23237. # Check whether --enable-ibus was given.
  23238. if test ${enable_ibus+y}
  23239. then :
  23240. enableval=$enable_ibus;
  23241. else $as_nop
  23242. enable_ibus=yes
  23243. fi
  23244. if test x$enable_ibus = xyes; then
  23245. pkg_failed=no
  23246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  23247. printf %s "checking for ibus-1.0... " >&6; }
  23248. if test -n "$IBUS_CFLAGS"; then
  23249. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23250. elif test -n "$PKG_CONFIG"; then
  23251. if test -n "$PKG_CONFIG" && \
  23252. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23253. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23254. ac_status=$?
  23255. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23256. test $ac_status = 0; }; then
  23257. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23258. test "x$?" != "x0" && pkg_failed=yes
  23259. else
  23260. pkg_failed=yes
  23261. fi
  23262. else
  23263. pkg_failed=untried
  23264. fi
  23265. if test -n "$IBUS_LIBS"; then
  23266. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23267. elif test -n "$PKG_CONFIG"; then
  23268. if test -n "$PKG_CONFIG" && \
  23269. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23270. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23271. ac_status=$?
  23272. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23273. test $ac_status = 0; }; then
  23274. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23275. test "x$?" != "x0" && pkg_failed=yes
  23276. else
  23277. pkg_failed=yes
  23278. fi
  23279. else
  23280. pkg_failed=untried
  23281. fi
  23282. if test $pkg_failed = yes; then
  23283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23284. printf "%s\n" "no" >&6; }
  23285. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23286. _pkg_short_errors_supported=yes
  23287. else
  23288. _pkg_short_errors_supported=no
  23289. fi
  23290. if test $_pkg_short_errors_supported = yes; then
  23291. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23292. else
  23293. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23294. fi
  23295. # Put the nasty error message in config.log where it belongs
  23296. echo "$IBUS_PKG_ERRORS" >&5
  23297. have_ibus=no
  23298. elif test $pkg_failed = untried; then
  23299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23300. printf "%s\n" "no" >&6; }
  23301. have_ibus=no
  23302. else
  23303. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23304. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23306. printf "%s\n" "yes" >&6; }
  23307. have_ibus=yes
  23308. fi
  23309. save_CPPFLAGS="$CPPFLAGS"
  23310. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23311. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23312. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23313. then :
  23314. have_ibus_ibus_h_hdr=yes
  23315. else $as_nop
  23316. have_ibus_ibus_h_hdr=no
  23317. fi
  23318. CPPFLAGS="$save_CPPFLAGS"
  23319. if test x$have_ibus_ibus_h_hdr = xyes; then
  23320. if test x$enable_ime != xyes; then
  23321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23322. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23323. have_ibus_ibus_h_hdr=no
  23324. elif test x$enable_dbus != xyes; then
  23325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23326. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23327. have_ibus_ibus_h_hdr=no
  23328. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23330. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23331. have_ibus_ibus_h_hdr=no
  23332. else
  23333. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23334. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23335. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23336. fi
  23337. fi
  23338. fi
  23339. }
  23340. CheckFcitx()
  23341. {
  23342. # Check whether --enable-fcitx was given.
  23343. if test ${enable_fcitx+y}
  23344. then :
  23345. enableval=$enable_fcitx;
  23346. else $as_nop
  23347. enable_fcitx=yes
  23348. fi
  23349. if test x$enable_fcitx = xyes; then
  23350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23351. printf %s "checking for fcitx support... " >&6; }
  23352. have_fcitx=no
  23353. if test x$enable_ime != xyes; then
  23354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23355. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23356. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23358. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23359. else
  23360. have_fcitx=yes
  23361. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23362. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23363. fi
  23364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23365. printf "%s\n" "$have_fcitx" >&6; }
  23366. fi
  23367. }
  23368. CheckJoystickMFI()
  23369. {
  23370. # Check whether --enable-joystick-mfi was given.
  23371. if test ${enable_joystick_mfi+y}
  23372. then :
  23373. enableval=$enable_joystick_mfi;
  23374. else $as_nop
  23375. enable_joystick_mfi=yes
  23376. fi
  23377. if test x$enable_joystick_mfi = xyes; then
  23378. save_CFLAGS="$CFLAGS"
  23379. save_LDFLAGS="$LDFLAGS"
  23380. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23381. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23383. printf %s "checking for GameController framework... " >&6; }
  23384. enable_joystick_mfi=no
  23385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23386. /* end confdefs.h. */
  23387. #include <AvailabilityMacros.h>
  23388. #include <TargetConditionals.h>
  23389. #import <GameController/GameController.h>
  23390. int
  23391. main (void)
  23392. {
  23393. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23394. #error GameController framework doesn't work on this configuration
  23395. #endif
  23396. #if TARGET_CPU_X86
  23397. #error GameController framework doesn't work on this configuration
  23398. #endif
  23399. ;
  23400. return 0;
  23401. }
  23402. _ACEOF
  23403. if ac_fn_c_try_link "$LINENO"
  23404. then :
  23405. enable_joystick_mfi=yes
  23406. fi
  23407. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23408. conftest$ac_exeext conftest.$ac_ext
  23409. CFLAGS="$save_CFLAGS"
  23410. LDFLAGS="$save_LDFLAGS"
  23411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23412. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23413. if test x$enable_joystick_mfi = xyes; then
  23414. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23415. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23416. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23417. fi
  23418. fi
  23419. }
  23420. CheckPTHREAD()
  23421. {
  23422. case "$host" in
  23423. *-*-emscripten*)
  23424. enable_pthreads_default=no
  23425. ;;
  23426. *)
  23427. enable_pthreads_default=yes
  23428. ;;
  23429. esac
  23430. # Check whether --enable-pthreads was given.
  23431. if test ${enable_pthreads+y}
  23432. then :
  23433. enableval=$enable_pthreads;
  23434. else $as_nop
  23435. enable_pthreads=maybe
  23436. fi
  23437. # Check whether --enable-pthread-sem was given.
  23438. if test ${enable_pthread_sem+y}
  23439. then :
  23440. enableval=$enable_pthread_sem;
  23441. else $as_nop
  23442. enable_pthread_sem=maybe
  23443. fi
  23444. if test x$enable_pthreads = xmaybe; then
  23445. enable_pthreads=$enable_pthreads_default
  23446. fi
  23447. if test x$enable_pthread_sem = xmaybe; then
  23448. enable_pthread_sem=$enable_pthreads
  23449. fi
  23450. case "$host" in
  23451. *-*-android*)
  23452. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23453. pthread_lib=""
  23454. ;;
  23455. *-*-linux*|*-*-uclinux*)
  23456. pthread_cflags="-D_REENTRANT"
  23457. pthread_lib="-lpthread"
  23458. ;;
  23459. *-*-bsdi*)
  23460. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23461. pthread_lib=""
  23462. ;;
  23463. *-*-darwin*)
  23464. pthread_cflags="-D_THREAD_SAFE"
  23465. # causes Carbon.p complaints?
  23466. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23467. ;;
  23468. *-*-freebsd*|*-*-dragonfly*)
  23469. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23470. pthread_lib="-pthread"
  23471. ;;
  23472. *-*-netbsd*)
  23473. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23474. pthread_lib="-lpthread"
  23475. ;;
  23476. *-*-openbsd*)
  23477. pthread_cflags="-D_REENTRANT"
  23478. pthread_lib="-lpthread"
  23479. ;;
  23480. *-*-solaris2.9)
  23481. # From Solaris 9+, posix4's preferred name is rt.
  23482. pthread_cflags="-D_REENTRANT"
  23483. pthread_lib="-lpthread -lrt"
  23484. ;;
  23485. *-*-solaris2.10)
  23486. # Solaris 10+ merged pthread into libc.
  23487. pthread_cflags="-D_REENTRANT"
  23488. pthread_lib="-lrt"
  23489. ;;
  23490. *-*-solaris*)
  23491. # Solaris 11+ merged rt into libc.
  23492. pthread_cflags="-D_REENTRANT"
  23493. pthread_lib=""
  23494. ;;
  23495. *-*-sysv5*)
  23496. pthread_cflags="-D_REENTRANT -Kthread"
  23497. pthread_lib=""
  23498. ;;
  23499. *-*-aix*)
  23500. pthread_cflags="-D_REENTRANT -mthreads"
  23501. pthread_lib="-lpthread"
  23502. ;;
  23503. *-*-hpux11*)
  23504. pthread_cflags="-D_REENTRANT"
  23505. pthread_lib="-L/usr/lib -lpthread"
  23506. ;;
  23507. *-*-haiku*)
  23508. pthread_cflags="-D_REENTRANT"
  23509. pthread_lib=""
  23510. ;;
  23511. *-*-nto*)
  23512. pthread_cflags="-D_REENTRANT"
  23513. pthread_lib=""
  23514. ;;
  23515. *-*-emscripten*)
  23516. pthread_cflags="-D_REENTRANT -pthread"
  23517. pthread_lib="-pthread"
  23518. ;;
  23519. *)
  23520. pthread_cflags="-D_REENTRANT"
  23521. pthread_lib="-lpthread"
  23522. ;;
  23523. esac
  23524. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23525. # Save the original compiler flags and libraries
  23526. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23527. # Add the pthread compiler flags and libraries
  23528. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23529. # Check to see if we have pthread support on this system
  23530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23531. printf %s "checking for pthreads... " >&6; }
  23532. use_pthreads=no
  23533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23534. /* end confdefs.h. */
  23535. #include <pthread.h>
  23536. int
  23537. main (void)
  23538. {
  23539. pthread_attr_t type;
  23540. pthread_attr_init(&type);
  23541. ;
  23542. return 0;
  23543. }
  23544. _ACEOF
  23545. if ac_fn_c_try_link "$LINENO"
  23546. then :
  23547. use_pthreads=yes
  23548. fi
  23549. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23550. conftest$ac_exeext conftest.$ac_ext
  23551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23552. printf "%s\n" "$use_pthreads" >&6; }
  23553. # Restore the compiler flags and libraries
  23554. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23555. # Do futher testing if we have pthread support...
  23556. if test x$use_pthreads = xyes; then
  23557. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23558. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23559. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23560. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23561. # Save the original compiler flags and libraries
  23562. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23563. # Add the pthread compiler flags and libraries
  23564. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23565. # Check to see if recursive mutexes are available
  23566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23567. printf %s "checking for recursive mutexes... " >&6; }
  23568. has_recursive_mutexes=no
  23569. if test x$has_recursive_mutexes = xno; then
  23570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23571. /* end confdefs.h. */
  23572. #define _GNU_SOURCE 1
  23573. #include <pthread.h>
  23574. int
  23575. main (void)
  23576. {
  23577. pthread_mutexattr_t attr;
  23578. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23579. ;
  23580. return 0;
  23581. }
  23582. _ACEOF
  23583. if ac_fn_c_try_link "$LINENO"
  23584. then :
  23585. has_recursive_mutexes=yes
  23586. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23587. fi
  23588. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23589. conftest$ac_exeext conftest.$ac_ext
  23590. fi
  23591. if test x$has_recursive_mutexes = xno; then
  23592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23593. /* end confdefs.h. */
  23594. #define _GNU_SOURCE 1
  23595. #include <pthread.h>
  23596. int
  23597. main (void)
  23598. {
  23599. pthread_mutexattr_t attr;
  23600. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23601. ;
  23602. return 0;
  23603. }
  23604. _ACEOF
  23605. if ac_fn_c_try_link "$LINENO"
  23606. then :
  23607. has_recursive_mutexes=yes
  23608. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23609. fi
  23610. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23611. conftest$ac_exeext conftest.$ac_ext
  23612. fi
  23613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23614. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23615. # Check to see if pthread semaphore support is missing
  23616. if test x$enable_pthread_sem = xyes; then
  23617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23618. printf %s "checking for pthread semaphores... " >&6; }
  23619. have_pthread_sem=no
  23620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23621. /* end confdefs.h. */
  23622. #include <pthread.h>
  23623. #include <semaphore.h>
  23624. int
  23625. main (void)
  23626. {
  23627. ;
  23628. return 0;
  23629. }
  23630. _ACEOF
  23631. if ac_fn_c_try_compile "$LINENO"
  23632. then :
  23633. have_pthread_sem=yes
  23634. fi
  23635. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23637. printf "%s\n" "$have_pthread_sem" >&6; }
  23638. fi
  23639. if test x$have_pthread_sem = xyes; then
  23640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23641. printf %s "checking for sem_timedwait... " >&6; }
  23642. have_sem_timedwait=no
  23643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23644. /* end confdefs.h. */
  23645. #include <pthread.h>
  23646. #include <semaphore.h>
  23647. int
  23648. main (void)
  23649. {
  23650. sem_timedwait(NULL, NULL);
  23651. ;
  23652. return 0;
  23653. }
  23654. _ACEOF
  23655. if ac_fn_c_try_link "$LINENO"
  23656. then :
  23657. have_sem_timedwait=yes
  23658. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23659. fi
  23660. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23661. conftest$ac_exeext conftest.$ac_ext
  23662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23663. printf "%s\n" "$have_sem_timedwait" >&6; }
  23664. fi
  23665. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23666. "
  23667. if test "x$ac_cv_header_pthread_np_h" = xyes
  23668. then :
  23669. have_pthread_np_h=yes
  23670. else $as_nop
  23671. have_pthread_np_h=no
  23672. fi
  23673. if test x$have_pthread_np_h = xyes; then
  23674. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23675. fi
  23676. # Check to see if pthread naming is available
  23677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23678. printf %s "checking for pthread_setname_np... " >&6; }
  23679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23680. /* end confdefs.h. */
  23681. /* Override any GCC internal prototype to avoid an error.
  23682. Use char because int might match the return type of a GCC
  23683. builtin and then its argument prototype would still apply. */
  23684. char pthread_setname_np ();
  23685. int
  23686. main (void)
  23687. {
  23688. return pthread_setname_np ();
  23689. ;
  23690. return 0;
  23691. }
  23692. _ACEOF
  23693. if ac_fn_c_try_link "$LINENO"
  23694. then :
  23695. has_pthread_setname_np=yes
  23696. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23697. else $as_nop
  23698. has_pthread_setname_np=no
  23699. fi
  23700. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23701. conftest$ac_exeext conftest.$ac_ext
  23702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23703. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23705. printf %s "checking for pthread_set_name_np... " >&6; }
  23706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23707. /* end confdefs.h. */
  23708. /* Override any GCC internal prototype to avoid an error.
  23709. Use char because int might match the return type of a GCC
  23710. builtin and then its argument prototype would still apply. */
  23711. char pthread_set_name_np ();
  23712. int
  23713. main (void)
  23714. {
  23715. return pthread_set_name_np ();
  23716. ;
  23717. return 0;
  23718. }
  23719. _ACEOF
  23720. if ac_fn_c_try_link "$LINENO"
  23721. then :
  23722. has_pthread_set_name_np=yes
  23723. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23724. else $as_nop
  23725. has_pthread_set_name_np=no
  23726. fi
  23727. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23728. conftest$ac_exeext conftest.$ac_ext
  23729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23730. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23731. # Restore the compiler flags and libraries
  23732. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23733. # Basic thread creation functions
  23734. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23735. # Semaphores
  23736. # We can fake these with mutexes and condition variables if necessary
  23737. if test x$have_pthread_sem = xyes; then
  23738. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23739. else
  23740. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23741. fi
  23742. # Mutexes
  23743. # We can fake these with semaphores if necessary
  23744. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23745. # Condition variables
  23746. # We can fake these with semaphores and mutexes if necessary
  23747. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23748. # Thread local storage
  23749. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23750. have_threads=yes
  23751. fi
  23752. fi
  23753. }
  23754. CheckWINDOWS()
  23755. {
  23756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23757. printf %s "checking Windows compiler... " >&6; }
  23758. have_win32_gcc=no
  23759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23760. /* end confdefs.h. */
  23761. #include <windows.h>
  23762. int
  23763. main (void)
  23764. {
  23765. ;
  23766. return 0;
  23767. }
  23768. _ACEOF
  23769. if ac_fn_c_try_compile "$LINENO"
  23770. then :
  23771. have_win32_gcc=yes
  23772. fi
  23773. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23775. printf "%s\n" "$have_win32_gcc" >&6; }
  23776. if test x$have_win32_gcc != xyes; then
  23777. as_fn_error $? "
  23778. *** Your compiler ($CC) does not produce Windows executables!
  23779. " "$LINENO" 5
  23780. fi
  23781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23782. printf %s "checking Windows CE... " >&6; }
  23783. have_wince=no
  23784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23785. /* end confdefs.h. */
  23786. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23787. #error This is not Windows CE
  23788. #endif
  23789. int
  23790. main (void)
  23791. {
  23792. ;
  23793. return 0;
  23794. }
  23795. _ACEOF
  23796. if ac_fn_c_try_compile "$LINENO"
  23797. then :
  23798. have_wince=yes
  23799. as_fn_error $? "
  23800. *** Sorry, Windows CE is no longer supported.
  23801. " "$LINENO" 5
  23802. fi
  23803. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23805. printf "%s\n" "$have_wince" >&6; }
  23806. # headers needed elsewhere
  23807. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23808. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23809. then :
  23810. have_tpcshrd_h=yes
  23811. fi
  23812. if test x$have_tpcshrd_h = xyes; then
  23813. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23814. fi
  23815. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23816. if test "x$ac_cv_header_roapi_h" = xyes
  23817. then :
  23818. have_roapi_h=yes
  23819. fi
  23820. if test x$have_roapi_h = xyes; then
  23821. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23822. fi
  23823. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23824. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23825. then :
  23826. have_shellscalingapi_h=yes
  23827. fi
  23828. if test x$shellscalingapi_h = xyes; then
  23829. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23830. fi
  23831. }
  23832. CheckOS2()
  23833. {
  23834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23835. printf %s "checking OS/2 compiler... " >&6; }
  23836. have_os2_gcc=no
  23837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23838. /* end confdefs.h. */
  23839. #include <os2.h>
  23840. int
  23841. main (void)
  23842. {
  23843. ;
  23844. return 0;
  23845. }
  23846. _ACEOF
  23847. if ac_fn_c_try_compile "$LINENO"
  23848. then :
  23849. have_os2_gcc=yes
  23850. fi
  23851. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23853. printf "%s\n" "$have_os2_gcc" >&6; }
  23854. if test x$have_os2_gcc != xyes; then
  23855. as_fn_error $? "
  23856. *** Your compiler ($CC) does not produce OS/2 executables!
  23857. " "$LINENO" 5
  23858. fi
  23859. }
  23860. CheckDIRECTX()
  23861. {
  23862. # Check whether --enable-directx was given.
  23863. if test ${enable_directx+y}
  23864. then :
  23865. enableval=$enable_directx;
  23866. else $as_nop
  23867. enable_directx=yes
  23868. fi
  23869. if test x$enable_directx = xyes; then
  23870. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23871. if test "x$ac_cv_header_d3d9_h" = xyes
  23872. then :
  23873. have_d3d=yes
  23874. fi
  23875. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23876. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23877. then :
  23878. have_d3d11=yes
  23879. fi
  23880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compatible d3d12 headers" >&5
  23881. printf %s "checking for compatible d3d12 headers... " >&6; }
  23882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23883. /* end confdefs.h. */
  23884. #include <d3d12.h>
  23885. #include <d3d12sdklayers.h>
  23886. ID3D12Device1 *device;
  23887. int
  23888. main (void)
  23889. {
  23890. ;
  23891. return 0;
  23892. }
  23893. _ACEOF
  23894. if ac_fn_c_try_compile "$LINENO"
  23895. then :
  23896. have_d3d12=yes
  23897. else $as_nop
  23898. have_d3d12=no
  23899. fi
  23900. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23902. printf "%s\n" "$have_d3d12" >&6; }
  23903. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23904. if test "x$ac_cv_header_ddraw_h" = xyes
  23905. then :
  23906. have_ddraw=yes
  23907. fi
  23908. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23909. if test "x$ac_cv_header_dsound_h" = xyes
  23910. then :
  23911. have_dsound=yes
  23912. fi
  23913. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23914. if test "x$ac_cv_header_dinput_h" = xyes
  23915. then :
  23916. have_dinput=yes
  23917. fi
  23918. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23919. if test "x$ac_cv_header_dxgi_h" = xyes
  23920. then :
  23921. have_dxgi=yes
  23922. fi
  23923. if test x$have_ddraw = xyes; then
  23924. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23925. fi
  23926. if test x$have_dinput = xyes; then
  23927. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23928. fi
  23929. if test x$have_dsound = xyes; then
  23930. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23931. fi
  23932. if test x$have_dxgi = xyes; then
  23933. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23934. fi
  23935. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23936. # FIXME: ...so force it off for now.
  23937. case "$host" in
  23938. *-*-cygwin*)
  23939. have_dinput=false
  23940. ;;
  23941. esac
  23942. fi
  23943. # Check whether --enable-xinput was given.
  23944. if test ${enable_xinput+y}
  23945. then :
  23946. enableval=$enable_xinput;
  23947. else $as_nop
  23948. enable_xinput=yes
  23949. fi
  23950. if test x$enable_xinput = xyes; then
  23951. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23952. if test "x$ac_cv_header_xinput_h" = xyes
  23953. then :
  23954. have_xinput=yes
  23955. fi
  23956. if test x$have_xinput = xyes; then
  23957. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23958. fi
  23959. fi
  23960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23961. printf %s "checking for windows.gaming.input.h... " >&6; }
  23962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23963. /* end confdefs.h. */
  23964. #define COBJMACROS
  23965. #include <windows.gaming.input.h>
  23966. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23967. int
  23968. main (void)
  23969. {
  23970. ;
  23971. return 0;
  23972. }
  23973. _ACEOF
  23974. if ac_fn_c_try_compile "$LINENO"
  23975. then :
  23976. have_wgi=yes
  23977. else $as_nop
  23978. have_wgi=no
  23979. fi
  23980. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23982. printf "%s\n" "$have_wgi" >&6; }
  23983. if test x$have_wgi = xyes; then
  23984. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23985. fi
  23986. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23987. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23988. then :
  23989. have_wasapi=yes
  23990. fi
  23991. if test x$have_wasapi = xyes; then
  23992. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23993. fi
  23994. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23995. if test "x$ac_cv_header_audioclient_h" = xyes
  23996. then :
  23997. else $as_nop
  23998. have_wasapi=no
  23999. fi
  24000. if test x$have_wasapi = xyes; then
  24001. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  24002. fi
  24003. # Check whether --enable-wasapi was given.
  24004. if test ${enable_wasapi+y}
  24005. then :
  24006. enableval=$enable_wasapi;
  24007. else $as_nop
  24008. enable_wasapi=yes
  24009. fi
  24010. }
  24011. CheckDLOPEN()
  24012. {
  24013. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  24014. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  24015. if test "x$ac_cv_header_dlfcn_h" = xyes
  24016. then :
  24017. have_dlfcn_h=yes
  24018. else $as_nop
  24019. have_dlfcn_h=no
  24020. fi
  24021. have_dlopen=no
  24022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  24023. printf %s "checking for dlopen in -lc... " >&6; }
  24024. if test ${ac_cv_lib_c_dlopen+y}
  24025. then :
  24026. printf %s "(cached) " >&6
  24027. else $as_nop
  24028. ac_check_lib_save_LIBS=$LIBS
  24029. LIBS="-lc $LIBS"
  24030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24031. /* end confdefs.h. */
  24032. /* Override any GCC internal prototype to avoid an error.
  24033. Use char because int might match the return type of a GCC
  24034. builtin and then its argument prototype would still apply. */
  24035. char dlopen ();
  24036. int
  24037. main (void)
  24038. {
  24039. return dlopen ();
  24040. ;
  24041. return 0;
  24042. }
  24043. _ACEOF
  24044. if ac_fn_c_try_link "$LINENO"
  24045. then :
  24046. ac_cv_lib_c_dlopen=yes
  24047. else $as_nop
  24048. ac_cv_lib_c_dlopen=no
  24049. fi
  24050. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24051. conftest$ac_exeext conftest.$ac_ext
  24052. LIBS=$ac_check_lib_save_LIBS
  24053. fi
  24054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  24055. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  24056. if test "x$ac_cv_lib_c_dlopen" = xyes
  24057. then :
  24058. have_dlopen=yes
  24059. else $as_nop
  24060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  24061. printf %s "checking for dlopen in -ldl... " >&6; }
  24062. if test ${ac_cv_lib_dl_dlopen+y}
  24063. then :
  24064. printf %s "(cached) " >&6
  24065. else $as_nop
  24066. ac_check_lib_save_LIBS=$LIBS
  24067. LIBS="-ldl $LIBS"
  24068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24069. /* end confdefs.h. */
  24070. /* Override any GCC internal prototype to avoid an error.
  24071. Use char because int might match the return type of a GCC
  24072. builtin and then its argument prototype would still apply. */
  24073. char dlopen ();
  24074. int
  24075. main (void)
  24076. {
  24077. return dlopen ();
  24078. ;
  24079. return 0;
  24080. }
  24081. _ACEOF
  24082. if ac_fn_c_try_link "$LINENO"
  24083. then :
  24084. ac_cv_lib_dl_dlopen=yes
  24085. else $as_nop
  24086. ac_cv_lib_dl_dlopen=no
  24087. fi
  24088. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24089. conftest$ac_exeext conftest.$ac_ext
  24090. LIBS=$ac_check_lib_save_LIBS
  24091. fi
  24092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  24093. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  24094. if test "x$ac_cv_lib_dl_dlopen" = xyes
  24095. then :
  24096. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  24097. fi
  24098. fi
  24099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  24100. printf %s "checking for dlopen... " >&6; }
  24101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  24102. printf "%s\n" "$have_dlopen" >&6; }
  24103. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  24104. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  24105. if test x$enable_loadso = xyes; then
  24106. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  24107. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  24108. have_loadso=yes
  24109. fi
  24110. fi
  24111. }
  24112. CheckO_CLOEXEC()
  24113. {
  24114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  24115. printf %s "checking for O_CLOEXEC... " >&6; }
  24116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24117. /* end confdefs.h. */
  24118. #include <fcntl.h>
  24119. int flag = O_CLOEXEC;
  24120. int
  24121. main (void)
  24122. {
  24123. ;
  24124. return 0;
  24125. }
  24126. _ACEOF
  24127. if ac_fn_c_try_compile "$LINENO"
  24128. then :
  24129. have_o_cloexec=yes
  24130. else $as_nop
  24131. have_o_cloexec=no
  24132. fi
  24133. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  24135. printf "%s\n" "$have_o_cloexec" >&6; }
  24136. if test $have_o_cloexec = yes; then
  24137. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  24138. fi
  24139. }
  24140. CheckUSBHID()
  24141. {
  24142. case "$host" in
  24143. *-*-*bsd*|*-*-dragonfly*)
  24144. if test x$enable_joystick = xyes; then
  24145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  24146. printf %s "checking for hid_init in -lusbhid... " >&6; }
  24147. if test ${ac_cv_lib_usbhid_hid_init+y}
  24148. then :
  24149. printf %s "(cached) " >&6
  24150. else $as_nop
  24151. ac_check_lib_save_LIBS=$LIBS
  24152. LIBS="-lusbhid $LIBS"
  24153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24154. /* end confdefs.h. */
  24155. /* Override any GCC internal prototype to avoid an error.
  24156. Use char because int might match the return type of a GCC
  24157. builtin and then its argument prototype would still apply. */
  24158. char hid_init ();
  24159. int
  24160. main (void)
  24161. {
  24162. return hid_init ();
  24163. ;
  24164. return 0;
  24165. }
  24166. _ACEOF
  24167. if ac_fn_c_try_link "$LINENO"
  24168. then :
  24169. ac_cv_lib_usbhid_hid_init=yes
  24170. else $as_nop
  24171. ac_cv_lib_usbhid_hid_init=no
  24172. fi
  24173. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24174. conftest$ac_exeext conftest.$ac_ext
  24175. LIBS=$ac_check_lib_save_LIBS
  24176. fi
  24177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  24178. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  24179. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  24180. then :
  24181. have_libusbhid=yes
  24182. fi
  24183. if test x$have_libusbhid = xyes; then
  24184. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  24185. if test "x$ac_cv_header_usbhid_h" = xyes
  24186. then :
  24187. USB_CFLAGS="-DHAVE_USBHID_H"
  24188. fi
  24189. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  24190. if test "x$ac_cv_header_libusbhid_h" = xyes
  24191. then :
  24192. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  24193. fi
  24194. USB_LIBS="$USB_LIBS -lusbhid"
  24195. else
  24196. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24197. if test "x$ac_cv_header_usb_h" = xyes
  24198. then :
  24199. USB_CFLAGS="-DHAVE_USB_H"
  24200. fi
  24201. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24202. if test "x$ac_cv_header_libusb_h" = xyes
  24203. then :
  24204. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24205. fi
  24206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24207. printf %s "checking for hid_init in -lusb... " >&6; }
  24208. if test ${ac_cv_lib_usb_hid_init+y}
  24209. then :
  24210. printf %s "(cached) " >&6
  24211. else $as_nop
  24212. ac_check_lib_save_LIBS=$LIBS
  24213. LIBS="-lusb $LIBS"
  24214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24215. /* end confdefs.h. */
  24216. /* Override any GCC internal prototype to avoid an error.
  24217. Use char because int might match the return type of a GCC
  24218. builtin and then its argument prototype would still apply. */
  24219. char hid_init ();
  24220. int
  24221. main (void)
  24222. {
  24223. return hid_init ();
  24224. ;
  24225. return 0;
  24226. }
  24227. _ACEOF
  24228. if ac_fn_c_try_link "$LINENO"
  24229. then :
  24230. ac_cv_lib_usb_hid_init=yes
  24231. else $as_nop
  24232. ac_cv_lib_usb_hid_init=no
  24233. fi
  24234. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24235. conftest$ac_exeext conftest.$ac_ext
  24236. LIBS=$ac_check_lib_save_LIBS
  24237. fi
  24238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24239. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24240. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24241. then :
  24242. USB_LIBS="$USB_LIBS -lusb"
  24243. fi
  24244. fi
  24245. save_CFLAGS="$CFLAGS"
  24246. CFLAGS="$CFLAGS $USB_CFLAGS"
  24247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24248. printf %s "checking for usbhid... " >&6; }
  24249. have_usbhid=no
  24250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24251. /* end confdefs.h. */
  24252. #include <sys/types.h>
  24253. #if defined(HAVE_USB_H)
  24254. #include <usb.h>
  24255. #endif
  24256. #ifdef __DragonFly__
  24257. # include <bus/u4b/usb.h>
  24258. # include <bus/u4b/usbhid.h>
  24259. #else
  24260. # include <dev/usb/usb.h>
  24261. # include <dev/usb/usbhid.h>
  24262. #endif
  24263. #if defined(HAVE_USBHID_H)
  24264. #include <usbhid.h>
  24265. #elif defined(HAVE_LIBUSB_H)
  24266. #include <libusb.h>
  24267. #elif defined(HAVE_LIBUSBHID_H)
  24268. #include <libusbhid.h>
  24269. #endif
  24270. int
  24271. main (void)
  24272. {
  24273. struct report_desc *repdesc;
  24274. struct usb_ctl_report *repbuf;
  24275. hid_kind_t hidkind;
  24276. ;
  24277. return 0;
  24278. }
  24279. _ACEOF
  24280. if ac_fn_c_try_compile "$LINENO"
  24281. then :
  24282. have_usbhid=yes
  24283. fi
  24284. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24286. printf "%s\n" "$have_usbhid" >&6; }
  24287. if test x$have_usbhid = xyes; then
  24288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24289. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24290. have_usbhid_ucr_data=no
  24291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24292. /* end confdefs.h. */
  24293. #include <sys/types.h>
  24294. #if defined(HAVE_USB_H)
  24295. #include <usb.h>
  24296. #endif
  24297. #ifdef __DragonFly__
  24298. # include <bus/u4b/usb.h>
  24299. # include <bus/u4b/usbhid.h>
  24300. #else
  24301. # include <dev/usb/usb.h>
  24302. # include <dev/usb/usbhid.h>
  24303. #endif
  24304. #if defined(HAVE_USBHID_H)
  24305. #include <usbhid.h>
  24306. #elif defined(HAVE_LIBUSB_H)
  24307. #include <libusb.h>
  24308. #elif defined(HAVE_LIBUSBHID_H)
  24309. #include <libusbhid.h>
  24310. #endif
  24311. int
  24312. main (void)
  24313. {
  24314. struct usb_ctl_report buf;
  24315. if (buf.ucr_data) { }
  24316. ;
  24317. return 0;
  24318. }
  24319. _ACEOF
  24320. if ac_fn_c_try_compile "$LINENO"
  24321. then :
  24322. have_usbhid_ucr_data=yes
  24323. fi
  24324. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24325. if test x$have_usbhid_ucr_data = xyes; then
  24326. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24327. fi
  24328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24329. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24331. printf %s "checking for new usbhid API... " >&6; }
  24332. have_usbhid_new=no
  24333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24334. /* end confdefs.h. */
  24335. #include <sys/types.h>
  24336. #if defined(HAVE_USB_H)
  24337. #include <usb.h>
  24338. #endif
  24339. #ifdef __DragonFly__
  24340. #include <bus/u4b/usb.h>
  24341. #include <bus/u4b/usbhid.h>
  24342. #else
  24343. #include <dev/usb/usb.h>
  24344. #include <dev/usb/usbhid.h>
  24345. #endif
  24346. #if defined(HAVE_USBHID_H)
  24347. #include <usbhid.h>
  24348. #elif defined(HAVE_LIBUSB_H)
  24349. #include <libusb.h>
  24350. #elif defined(HAVE_LIBUSBHID_H)
  24351. #include <libusbhid.h>
  24352. #endif
  24353. int
  24354. main (void)
  24355. {
  24356. report_desc_t d;
  24357. hid_start_parse(d, 1, 1);
  24358. ;
  24359. return 0;
  24360. }
  24361. _ACEOF
  24362. if ac_fn_c_try_compile "$LINENO"
  24363. then :
  24364. have_usbhid_new=yes
  24365. fi
  24366. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24367. if test x$have_usbhid_new = xyes; then
  24368. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24369. fi
  24370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24371. printf "%s\n" "$have_usbhid_new" >&6; }
  24372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24373. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24374. have_machine_joystick=no
  24375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24376. /* end confdefs.h. */
  24377. #include <machine/joystick.h>
  24378. int
  24379. main (void)
  24380. {
  24381. struct joystick t;
  24382. ;
  24383. return 0;
  24384. }
  24385. _ACEOF
  24386. if ac_fn_c_try_compile "$LINENO"
  24387. then :
  24388. have_machine_joystick=yes
  24389. fi
  24390. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24391. if test x$have_machine_joystick = xyes; then
  24392. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24393. fi
  24394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24395. printf "%s\n" "$have_machine_joystick" >&6; }
  24396. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24397. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24398. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24399. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24400. have_joystick=yes
  24401. fi
  24402. CFLAGS="$save_CFLAGS"
  24403. fi
  24404. ;;
  24405. esac
  24406. }
  24407. CheckHIDAPI()
  24408. {
  24409. # Check whether --enable-hidapi-joystick was given.
  24410. if test ${enable_hidapi_joystick+y}
  24411. then :
  24412. enableval=$enable_hidapi_joystick;
  24413. else $as_nop
  24414. enable_hidapi_joystick=yes
  24415. fi
  24416. # Check whether --enable-hidapi-libusb was given.
  24417. if test ${enable_hidapi_libusb+y}
  24418. then :
  24419. enableval=$enable_hidapi_libusb;
  24420. else $as_nop
  24421. enable_hidapi_libusb=maybe
  24422. fi
  24423. if test x$enable_hidapi = xyes; then
  24424. case "$host" in
  24425. # libusb does not support iOS
  24426. *-ios-* )
  24427. enable_hidapi_libusb=no
  24428. ;;
  24429. # On the other hand, *BSD specifically uses libusb only
  24430. *-*-*bsd* )
  24431. enable_hidapi_libusb=yes
  24432. require_hidapi_libusb=yes
  24433. ;;
  24434. *-*-os2* )
  24435. enable_hidapi_libusb=yes
  24436. ;;
  24437. esac
  24438. hidapi_support=yes
  24439. if test x$enable_hidapi_libusb = xyes; then
  24440. pkg_failed=no
  24441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24442. printf %s "checking for libusb-1.0... " >&6; }
  24443. if test -n "$LIBUSB_CFLAGS"; then
  24444. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24445. elif test -n "$PKG_CONFIG"; then
  24446. if test -n "$PKG_CONFIG" && \
  24447. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24448. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24449. ac_status=$?
  24450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24451. test $ac_status = 0; }; then
  24452. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24453. test "x$?" != "x0" && pkg_failed=yes
  24454. else
  24455. pkg_failed=yes
  24456. fi
  24457. else
  24458. pkg_failed=untried
  24459. fi
  24460. if test -n "$LIBUSB_LIBS"; then
  24461. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24462. elif test -n "$PKG_CONFIG"; then
  24463. if test -n "$PKG_CONFIG" && \
  24464. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24465. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24466. ac_status=$?
  24467. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24468. test $ac_status = 0; }; then
  24469. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24470. test "x$?" != "x0" && pkg_failed=yes
  24471. else
  24472. pkg_failed=yes
  24473. fi
  24474. else
  24475. pkg_failed=untried
  24476. fi
  24477. if test $pkg_failed = yes; then
  24478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24479. printf "%s\n" "no" >&6; }
  24480. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24481. _pkg_short_errors_supported=yes
  24482. else
  24483. _pkg_short_errors_supported=no
  24484. fi
  24485. if test $_pkg_short_errors_supported = yes; then
  24486. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24487. else
  24488. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24489. fi
  24490. # Put the nasty error message in config.log where it belongs
  24491. echo "$LIBUSB_PKG_ERRORS" >&5
  24492. have_libusb=no
  24493. elif test $pkg_failed = untried; then
  24494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24495. printf "%s\n" "no" >&6; }
  24496. have_libusb=no
  24497. else
  24498. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24499. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24501. printf "%s\n" "yes" >&6; }
  24502. have_libusb=yes
  24503. fi
  24504. save_CPPFLAGS="$CPPFLAGS"
  24505. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24506. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24507. if test "x$ac_cv_header_libusb_h" = xyes
  24508. then :
  24509. have_libusb_h=yes
  24510. else $as_nop
  24511. have_libusb_h=no
  24512. fi
  24513. CPPFLAGS="$save_CPPFLAGS"
  24514. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24515. hidapi_support=no
  24516. fi
  24517. fi
  24518. if test x$hidapi_support = xyes; then
  24519. if test x$have_libusb_h = xyes; then
  24520. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24521. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24522. if test x$require_hidapi_libusb = xyes; then
  24523. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24524. else
  24525. if test x$have_loadso != xyes; then
  24526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24527. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24528. fi
  24529. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24530. libusb_lib=""
  24531. case "$host" in
  24532. *-*-darwin* )
  24533. libusb_lib="libusb-1.0.0.dylib"
  24534. ;;
  24535. *-*-cygwin* | *-*-mingw* )
  24536. libusb_lib="libusb-1.0.dll"
  24537. ;;
  24538. *-*-os2* )
  24539. libusb_lib="usb100.dll"
  24540. ;;
  24541. esac
  24542. if test x$libusb_lib = x; then
  24543. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24544. fi
  24545. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24546. fi
  24547. fi
  24548. fi
  24549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24550. printf %s "checking for hidapi joystick support... " >&6; }
  24551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24552. printf "%s\n" "$hidapi_support" >&6; }
  24553. fi
  24554. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24555. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24556. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24557. fi
  24558. }
  24559. CheckClockGettime()
  24560. {
  24561. # Check whether --enable-clock_gettime was given.
  24562. if test ${enable_clock_gettime+y}
  24563. then :
  24564. enableval=$enable_clock_gettime;
  24565. else $as_nop
  24566. enable_clock_gettime=yes
  24567. fi
  24568. if test x$enable_clock_gettime = xyes; then
  24569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24570. printf %s "checking for clock_gettime in -lc... " >&6; }
  24571. if test ${ac_cv_lib_c_clock_gettime+y}
  24572. then :
  24573. printf %s "(cached) " >&6
  24574. else $as_nop
  24575. ac_check_lib_save_LIBS=$LIBS
  24576. LIBS="-lc $LIBS"
  24577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24578. /* end confdefs.h. */
  24579. /* Override any GCC internal prototype to avoid an error.
  24580. Use char because int might match the return type of a GCC
  24581. builtin and then its argument prototype would still apply. */
  24582. char clock_gettime ();
  24583. int
  24584. main (void)
  24585. {
  24586. return clock_gettime ();
  24587. ;
  24588. return 0;
  24589. }
  24590. _ACEOF
  24591. if ac_fn_c_try_link "$LINENO"
  24592. then :
  24593. ac_cv_lib_c_clock_gettime=yes
  24594. else $as_nop
  24595. ac_cv_lib_c_clock_gettime=no
  24596. fi
  24597. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24598. conftest$ac_exeext conftest.$ac_ext
  24599. LIBS=$ac_check_lib_save_LIBS
  24600. fi
  24601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24602. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24603. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24604. then :
  24605. have_clock_gettime=yes
  24606. fi
  24607. if test x$have_clock_gettime = xyes; then
  24608. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24609. else
  24610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24611. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24612. if test ${ac_cv_lib_rt_clock_gettime+y}
  24613. then :
  24614. printf %s "(cached) " >&6
  24615. else $as_nop
  24616. ac_check_lib_save_LIBS=$LIBS
  24617. LIBS="-lrt $LIBS"
  24618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24619. /* end confdefs.h. */
  24620. /* Override any GCC internal prototype to avoid an error.
  24621. Use char because int might match the return type of a GCC
  24622. builtin and then its argument prototype would still apply. */
  24623. char clock_gettime ();
  24624. int
  24625. main (void)
  24626. {
  24627. return clock_gettime ();
  24628. ;
  24629. return 0;
  24630. }
  24631. _ACEOF
  24632. if ac_fn_c_try_link "$LINENO"
  24633. then :
  24634. ac_cv_lib_rt_clock_gettime=yes
  24635. else $as_nop
  24636. ac_cv_lib_rt_clock_gettime=no
  24637. fi
  24638. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24639. conftest$ac_exeext conftest.$ac_ext
  24640. LIBS=$ac_check_lib_save_LIBS
  24641. fi
  24642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24643. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24644. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24645. then :
  24646. have_clock_gettime=yes
  24647. fi
  24648. if test x$have_clock_gettime = xyes; then
  24649. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24650. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24651. fi
  24652. fi
  24653. fi
  24654. }
  24655. CheckLinuxVersion()
  24656. {
  24657. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24658. if test "x$ac_cv_header_linux_version_h" = xyes
  24659. then :
  24660. have_linux_version_h=yes
  24661. fi
  24662. if test x$have_linux_version_h = xyes; then
  24663. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24664. fi
  24665. }
  24666. CheckRPATH()
  24667. {
  24668. # Check whether --enable-rpath was given.
  24669. if test ${enable_rpath+y}
  24670. then :
  24671. enableval=$enable_rpath;
  24672. else $as_nop
  24673. enable_rpath=yes
  24674. fi
  24675. }
  24676. CheckEventSignals()
  24677. {
  24678. # Check whether --enable-backgrounding-signal was given.
  24679. if test ${enable_backgrounding_signal+y}
  24680. then :
  24681. enableval=$enable_backgrounding_signal;
  24682. else $as_nop
  24683. enable_backgrounding_signal=no
  24684. fi
  24685. if test x$enable_backgrounding_signal != xno; then
  24686. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24687. fi
  24688. # Check whether --enable-foregrounding-signal was given.
  24689. if test ${enable_foregrounding_signal+y}
  24690. then :
  24691. enableval=$enable_foregrounding_signal;
  24692. else $as_nop
  24693. enable_foregrounding_signal=no
  24694. fi
  24695. if test x$enable_foregrounding_signal != xno; then
  24696. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24697. fi
  24698. }
  24699. CheckVirtualJoystick()
  24700. {
  24701. # Check whether --enable-joystick-virtual was given.
  24702. if test ${enable_joystick_virtual+y}
  24703. then :
  24704. enableval=$enable_joystick_virtual;
  24705. else $as_nop
  24706. enable_joystick_virtual=yes
  24707. fi
  24708. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24709. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24710. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24711. have_joystick_virtual=yes
  24712. fi
  24713. }
  24714. CheckWarnAll
  24715. CheckUnusedLocalTypedefs
  24716. CheckNoStrictAliasing
  24717. CheckEventSignals
  24718. have_locale=no
  24719. case "$host" in
  24720. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24721. case "$host" in
  24722. *-*-android*)
  24723. # Android
  24724. ARCH=android
  24725. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24726. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24727. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24728. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24729. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24730. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24731. if test x$enable_video = xyes; then
  24732. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24733. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24734. SUMMARY_video="${SUMMARY_video} android"
  24735. have_video=yes
  24736. fi
  24737. ;;
  24738. *-*-linux*) ARCH=linux ;;
  24739. *-*-uclinux*) ARCH=linux ;;
  24740. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24741. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24742. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24743. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24744. *-*-bsdi*) ARCH=bsdi ;;
  24745. *-*-freebsd*) ARCH=freebsd ;;
  24746. *-*-dragonfly*) ARCH=freebsd ;;
  24747. *-*-netbsd*) ARCH=netbsd ;;
  24748. *-*-openbsd*) ARCH=openbsd ;;
  24749. *-*-sysv5*) ARCH=sysv5 ;;
  24750. *-*-solaris*) ARCH=solaris ;;
  24751. *-*-hpux*) ARCH=hpux ;;
  24752. *-*-aix*) ARCH=aix ;;
  24753. *-*-minix*) ARCH=minix ;;
  24754. *-*-nto*) ARCH=nto
  24755. CheckQNXVideo
  24756. ;;
  24757. esac
  24758. CheckVisibilityHidden
  24759. CheckWerror
  24760. CheckDeclarationAfterStatement
  24761. CheckDummyVideo
  24762. CheckOffscreenVideo
  24763. CheckDiskAudio
  24764. CheckDummyAudio
  24765. CheckDLOPEN
  24766. CheckARM
  24767. CheckNEON
  24768. CheckO_CLOEXEC
  24769. CheckOSS
  24770. CheckALSA
  24771. CheckPipewire
  24772. CheckPulseAudio
  24773. CheckJACK
  24774. CheckARTSC
  24775. CheckESD
  24776. CheckNAS
  24777. CheckSNDIO
  24778. CheckFusionSound
  24779. CheckLibSampleRate
  24780. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24781. CheckRPI
  24782. CheckX11
  24783. CheckDirectFB
  24784. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24785. CheckEGL
  24786. CheckKMSDRM
  24787. CheckGLX
  24788. CheckOpenGL
  24789. CheckOpenGLES
  24790. CheckVulkan
  24791. CheckWayland
  24792. CheckInputEvents
  24793. CheckLibUDev
  24794. CheckDBus
  24795. CheckIME
  24796. CheckInotify
  24797. CheckIBus
  24798. CheckFcitx
  24799. case $ARCH in
  24800. linux)
  24801. CheckInputKD
  24802. ;;
  24803. freebsd)
  24804. CheckInputKBIO
  24805. ;;
  24806. openbsd|netbsd)
  24807. CheckInputWSCONS
  24808. ;;
  24809. esac
  24810. CheckUSBHID
  24811. CheckHIDAPI
  24812. CheckPTHREAD
  24813. CheckClockGettime
  24814. CheckLinuxVersion
  24815. CheckRPATH
  24816. CheckVivanteVideo
  24817. # Set up files for the misc library
  24818. if test x$enable_misc = xyes; then
  24819. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24820. have_misc=yes
  24821. fi
  24822. # Set up files for the locale library
  24823. if test x$enable_locale = xyes; then
  24824. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24825. have_locale=yes
  24826. fi
  24827. # Set up files for the audio library
  24828. if test x$enable_audio = xyes; then
  24829. case $ARCH in
  24830. sysv5|solaris|hpux)
  24831. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24832. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24833. SUMMARY_audio="${SUMMARY_audio} sun"
  24834. have_audio=yes
  24835. ;;
  24836. netbsd) # Don't use this on OpenBSD, it's busted.
  24837. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24838. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24839. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24840. have_audio=yes
  24841. ;;
  24842. aix)
  24843. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24844. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24845. SUMMARY_audio="${SUMMARY_audio} paudio"
  24846. have_audio=yes
  24847. ;;
  24848. android)
  24849. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24850. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24851. SUMMARY_audio="${SUMMARY_audio} android"
  24852. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24853. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24854. SUMMARY_audio="${SUMMARY_audio} openslES"
  24855. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24856. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24857. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24858. have_audio=yes
  24859. ;;
  24860. nto)
  24861. CheckQNXAudio
  24862. ;;
  24863. esac
  24864. fi
  24865. # Set up files for the joystick library
  24866. if test x$enable_joystick = xyes; then
  24867. case $ARCH in
  24868. linux)
  24869. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24870. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24871. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24872. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24873. have_joystick=yes
  24874. fi
  24875. ;;
  24876. freebsd)
  24877. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24878. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24879. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24880. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24881. have_joystick=yes
  24882. fi
  24883. ;;
  24884. android)
  24885. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24886. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24887. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24888. have_joystick=yes
  24889. ;;
  24890. esac
  24891. fi
  24892. # Set up files for the haptic library
  24893. if test x$enable_haptic = xyes; then
  24894. case $ARCH in
  24895. linux|freebsd)
  24896. if test x$use_input_events = xyes; then
  24897. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24898. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24899. have_haptic=yes
  24900. fi
  24901. ;;
  24902. android)
  24903. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24904. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24905. have_haptic=yes
  24906. ;;
  24907. esac
  24908. fi
  24909. # Set up files for the sensor library
  24910. if test x$enable_sensor = xyes; then
  24911. case $ARCH in
  24912. android)
  24913. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24914. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24915. have_sensor=yes
  24916. ;;
  24917. esac
  24918. fi
  24919. # Set up files for the power library
  24920. if test x$enable_power = xyes; then
  24921. case $ARCH in
  24922. linux)
  24923. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24924. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24925. have_power=yes
  24926. ;;
  24927. android)
  24928. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24929. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24930. have_power=yes
  24931. ;;
  24932. esac
  24933. fi
  24934. # Set up files for the filesystem library
  24935. if test x$enable_filesystem = xyes; then
  24936. case $ARCH in
  24937. android)
  24938. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24939. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24940. have_filesystem=yes
  24941. ;;
  24942. *)
  24943. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24944. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24945. have_filesystem=yes
  24946. ;;
  24947. esac
  24948. fi
  24949. # Set up files for the timer library
  24950. if test x$enable_timers = xyes; then
  24951. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24952. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24953. have_timers=yes
  24954. fi
  24955. # Set up files for udev hotplugging support
  24956. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24957. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24958. fi
  24959. # Set up files for evdev input
  24960. if test x$use_input_events = xyes; then
  24961. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24962. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24963. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24964. fi
  24965. # Set up files for wscons input
  24966. if test x$use_input_wscons = xyes; then
  24967. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24968. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24969. fi
  24970. # Set up other core UNIX files
  24971. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24972. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24973. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24974. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24975. ;;
  24976. *-*-cygwin* | *-*-mingw*)
  24977. ARCH=win32
  24978. if test "$build" != "$host"; then # cross-compiling
  24979. # Default cross-compile location
  24980. ac_default_prefix=/usr/local/cross-tools/$host
  24981. else
  24982. # Look for the location of the tools and install there
  24983. if test "$BUILD_PREFIX" != ""; then
  24984. ac_default_prefix=$BUILD_PREFIX
  24985. fi
  24986. fi
  24987. if test x$enable_loadso = xyes; then
  24988. have_loadso=yes
  24989. fi
  24990. CheckGDwarf4
  24991. CheckWerror
  24992. CheckDeclarationAfterStatement
  24993. CheckDummyVideo
  24994. CheckOffscreenVideo
  24995. CheckDiskAudio
  24996. CheckDummyAudio
  24997. CheckWINDOWS
  24998. CheckWINDOWSGL
  24999. CheckWINDOWSGLES
  25000. CheckVulkan
  25001. CheckDIRECTX
  25002. CheckHIDAPI
  25003. # Set up the core platform files
  25004. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  25005. # Set up files for the misc library
  25006. if test x$enable_misc = xyes; then
  25007. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  25008. have_misc=yes
  25009. fi
  25010. # Use the Windows locale APIs.
  25011. if test x$enable_locale = xyes; then
  25012. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  25013. have_locale=yes
  25014. fi
  25015. # Set up files for the video library
  25016. if test x$enable_video = xyes; then
  25017. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  25018. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  25019. have_video=yes
  25020. # Check whether --enable-render-d3d was given.
  25021. if test ${enable_render_d3d+y}
  25022. then :
  25023. enableval=$enable_render_d3d;
  25024. else $as_nop
  25025. enable_render_d3d=yes
  25026. fi
  25027. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  25028. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  25029. SUMMARY_video="${SUMMARY_video} d3d9"
  25030. fi
  25031. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  25032. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  25033. SUMMARY_video="${SUMMARY_video} d3d11"
  25034. fi
  25035. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  25036. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  25037. SUMMARY_video="${SUMMARY_video} d3d12"
  25038. fi
  25039. fi
  25040. # Set up files for the audio library
  25041. if test x$enable_audio = xyes; then
  25042. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  25043. SUMMARY_audio="${SUMMARY_audio} winmm"
  25044. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  25045. if test x$have_dsound = xyes; then
  25046. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  25047. SUMMARY_audio="${SUMMARY_audio} directsound"
  25048. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  25049. fi
  25050. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  25051. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  25052. SUMMARY_audio="${SUMMARY_audio} wasapi"
  25053. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  25054. fi
  25055. have_audio=yes
  25056. fi
  25057. # Set up files for the joystick library
  25058. if test x$enable_joystick = xyes; then
  25059. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  25060. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  25061. if test x$have_xinput = xyes; then
  25062. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  25063. fi
  25064. if test x$have_wgi = xyes; then
  25065. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  25066. fi
  25067. if test x$have_dinput = xyes; then
  25068. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  25069. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  25070. fi
  25071. fi
  25072. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  25073. have_joystick=yes
  25074. fi
  25075. if test x$enable_haptic = xyes; then
  25076. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  25077. if test x$have_xinput = xyes; then
  25078. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  25079. fi
  25080. if test x$have_dinput = xyes; then
  25081. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  25082. fi
  25083. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  25084. have_haptic=yes
  25085. fi
  25086. fi
  25087. # Set up files for the sensor library
  25088. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  25089. if test "x$ac_cv_header_sensorsapi_h" = xyes
  25090. then :
  25091. have_winsensors=yes
  25092. else $as_nop
  25093. have_winsensors=no
  25094. fi
  25095. if test x$have_winsensors = xyes; then
  25096. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  25097. fi
  25098. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  25099. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  25100. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  25101. have_sensor=yes
  25102. fi
  25103. # Set up files for the power library
  25104. if test x$enable_power = xyes; then
  25105. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  25106. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  25107. have_power=yes
  25108. fi
  25109. # Set up files for the filesystem library
  25110. if test x$enable_filesystem = xyes; then
  25111. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  25112. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  25113. have_filesystem=yes
  25114. fi
  25115. # Set up files for the thread library
  25116. if test x$enable_threads = xyes; then
  25117. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  25118. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  25119. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  25120. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25121. have_threads=yes
  25122. fi
  25123. # Set up files for the timer library
  25124. if test x$enable_timers = xyes; then
  25125. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  25126. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  25127. have_timers=yes
  25128. fi
  25129. # Set up files for the shared object loading library
  25130. if test x$enable_loadso = xyes; then
  25131. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  25132. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  25133. fi
  25134. # Set up the system libraries we need
  25135. if test -f /lib/w32api/libuuid.a; then
  25136. LIBUUID=/lib/w32api/libuuid.a
  25137. else
  25138. LIBUUID=-luuid
  25139. fi
  25140. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  25141. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  25142. # The Windows platform requires special setup
  25143. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  25144. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  25145. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  25146. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  25147. # Check to see if this is a mingw or cygwin build
  25148. have_mingw32=
  25149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  25150. printf %s "checking for main in -lmingw32... " >&6; }
  25151. if test ${ac_cv_lib_mingw32_main+y}
  25152. then :
  25153. printf %s "(cached) " >&6
  25154. else $as_nop
  25155. ac_check_lib_save_LIBS=$LIBS
  25156. LIBS="-lmingw32 $LIBS"
  25157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25158. /* end confdefs.h. */
  25159. int
  25160. main (void)
  25161. {
  25162. return main ();
  25163. ;
  25164. return 0;
  25165. }
  25166. _ACEOF
  25167. if ac_fn_c_try_link "$LINENO"
  25168. then :
  25169. ac_cv_lib_mingw32_main=yes
  25170. else $as_nop
  25171. ac_cv_lib_mingw32_main=no
  25172. fi
  25173. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25174. conftest$ac_exeext conftest.$ac_ext
  25175. LIBS=$ac_check_lib_save_LIBS
  25176. fi
  25177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  25178. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  25179. if test "x$ac_cv_lib_mingw32_main" = xyes
  25180. then :
  25181. have_mingw32=yes
  25182. fi
  25183. if test x$have_mingw32 = xyes; then
  25184. SDL_LIBS="-lmingw32 $SDL_LIBS"
  25185. else
  25186. SDL_LIBS="-lcygwin $SDL_LIBS"
  25187. fi
  25188. ;;
  25189. *-*-beos*)
  25190. as_fn_error $? "
  25191. *** BeOS support has been removed as of SDL 2.0.2.
  25192. " "$LINENO" 5
  25193. ;;
  25194. *-*-haiku*)
  25195. ARCH=haiku
  25196. ac_default_prefix=/boot/system
  25197. CheckDummyVideo
  25198. CheckOffscreenVideo
  25199. CheckDiskAudio
  25200. CheckDummyAudio
  25201. CheckDLOPEN
  25202. CheckO_CLOEXEC
  25203. CheckHaikuVideo
  25204. CheckHaikuGL
  25205. CheckPTHREAD
  25206. # Set up files for the audio library
  25207. if test x$enable_audio = xyes; then
  25208. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25209. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25210. SUMMARY_audio="${SUMMARY_audio} haiku"
  25211. have_audio=yes
  25212. fi
  25213. # Set up files for the joystick library
  25214. if test x$enable_joystick = xyes; then
  25215. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25216. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25217. have_joystick=yes
  25218. fi
  25219. # Set up files for the timer library
  25220. if test x$enable_timers = xyes; then
  25221. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25222. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25223. have_timers=yes
  25224. fi
  25225. # Set up files for the system power library
  25226. if test x$enable_power = xyes; then
  25227. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25228. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25229. have_power=yes
  25230. fi
  25231. # Set up files for the system filesystem library
  25232. if test x$enable_filesystem = xyes; then
  25233. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25234. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25235. have_filesystem=yes
  25236. fi
  25237. # Set up files for the misc library
  25238. if test x$enable_misc = xyes; then
  25239. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25240. have_misc=yes
  25241. fi
  25242. # Set up files for the locale library
  25243. if test x$enable_locale = xyes; then
  25244. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25245. have_locale=yes
  25246. fi
  25247. # The Haiku platform requires special setup.
  25248. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25249. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25250. ;;
  25251. *-ios-*)
  25252. ARCH=ios
  25253. CheckVisibilityHidden
  25254. CheckWerror
  25255. CheckNoErrorDeprecatedDeclarationsWerror
  25256. CheckDeclarationAfterStatement
  25257. CheckDummyVideo
  25258. CheckOffscreenVideo
  25259. CheckDiskAudio
  25260. CheckDummyAudio
  25261. CheckDLOPEN
  25262. CheckO_CLOEXEC
  25263. CheckMETAL
  25264. CheckVulkan
  25265. CheckPTHREAD
  25266. # Set up files for the misc library
  25267. if test x$enable_misc = xyes; then
  25268. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25269. have_misc=yes
  25270. fi
  25271. # Set up files for the locale library
  25272. if test x$enable_locale = xyes; then
  25273. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25274. have_locale=yes
  25275. fi
  25276. # Set up files for the audio library
  25277. if test x$enable_audio = xyes; then
  25278. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25279. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25280. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25281. have_audio=yes
  25282. fi
  25283. # Set up files for the joystick library
  25284. if test x$enable_joystick = xyes; then
  25285. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25286. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25287. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25288. have_joystick=yes
  25289. else
  25290. # Need this code for accelerometer as joystick support
  25291. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25292. fi
  25293. # Set up files for the haptic library
  25294. #if test x$enable_haptic = xyes; then
  25295. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25296. # have_haptic=yes
  25297. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25298. #fi
  25299. # Set up files for the sensor library
  25300. if test x$enable_sensor = xyes; then
  25301. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25302. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25303. have_sensor=yes
  25304. fi
  25305. # Set up files for the power library
  25306. if test x$enable_power = xyes; then
  25307. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25308. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25309. have_power=yes
  25310. fi
  25311. # Set up files for the filesystem library
  25312. if test x$enable_filesystem = xyes; then
  25313. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25314. have_filesystem=yes
  25315. fi
  25316. # Set up additional files for the file library
  25317. if test x$enable_file = xyes; then
  25318. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25319. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25320. fi
  25321. # Set up files for the timer library
  25322. if test x$enable_timers = xyes; then
  25323. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25324. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25325. have_timers=yes
  25326. fi
  25327. # Set up other core UNIX files
  25328. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25329. # The iOS platform requires special setup.
  25330. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25331. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25332. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25333. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25334. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25335. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25336. SUMMARY_video="${SUMMARY_video} uikit"
  25337. have_video=yes
  25338. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25339. if test x$enable_system_iconv = xyes; then
  25340. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25341. fi
  25342. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25343. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25344. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25345. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25346. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25347. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25348. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25349. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25350. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25351. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25352. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25353. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25355. fi
  25356. ;;
  25357. *-*-darwin* )
  25358. # This could be either full "Mac OS X", or plain "Darwin" which is
  25359. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25360. # Next line is broken, and a few files below require Mac OS X (full)
  25361. ARCH=macosx
  25362. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25363. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25364. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25365. CheckObjectiveCARC
  25366. CheckVisibilityHidden
  25367. CheckWerror
  25368. CheckNoErrorDeprecatedDeclarationsWerror
  25369. CheckDeclarationAfterStatement
  25370. CheckDummyVideo
  25371. CheckOffscreenVideo
  25372. CheckDiskAudio
  25373. CheckDummyAudio
  25374. CheckDLOPEN
  25375. CheckO_CLOEXEC
  25376. CheckCOCOA
  25377. CheckMETAL
  25378. CheckX11
  25379. CheckMacGL
  25380. CheckMacGLES
  25381. CheckGLX
  25382. CheckOpenGL
  25383. CheckVulkan
  25384. CheckPTHREAD
  25385. CheckHIDAPI
  25386. # Set up files for the misc library
  25387. if test x$enable_misc = xyes; then
  25388. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25389. have_misc=yes
  25390. fi
  25391. # Set up files for the locale library
  25392. if test x$enable_locale = xyes; then
  25393. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25394. have_locale=yes
  25395. fi
  25396. # Set up files for the audio library
  25397. if test x$enable_audio = xyes; then
  25398. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25399. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25400. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25401. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25402. have_audio=yes
  25403. fi
  25404. # Set up files for the joystick library
  25405. if test x$enable_joystick = xyes; then
  25406. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25407. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25408. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25409. CheckJoystickMFI
  25410. have_joystick=yes
  25411. fi
  25412. # Set up files for the haptic library
  25413. if test x$enable_haptic = xyes; then
  25414. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25415. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25416. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25417. have_haptic=yes
  25418. fi
  25419. # Set up files for the power library
  25420. if test x$enable_power = xyes; then
  25421. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25422. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25423. have_power=yes
  25424. fi
  25425. # Set up files for the filesystem library
  25426. if test x$enable_filesystem = xyes; then
  25427. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25428. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25429. have_filesystem=yes
  25430. fi
  25431. # Set up files for the timer library
  25432. if test x$enable_timers = xyes; then
  25433. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25434. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25435. have_timers=yes
  25436. fi
  25437. # Set up additional files for the file library
  25438. if test x$enable_file = xyes; then
  25439. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25440. fi
  25441. # Set up other core UNIX files
  25442. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25443. # The Mac OS X platform requires special setup.
  25444. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25445. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25446. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25447. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25448. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25449. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25450. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25451. fi
  25452. ;;
  25453. *-nacl|*-pnacl)
  25454. ARCH=nacl
  25455. CheckNativeClient
  25456. CheckDummyAudio
  25457. CheckDummyVideo
  25458. CheckOffscreenVideo
  25459. CheckInputEvents
  25460. CheckPTHREAD
  25461. CheckO_CLOEXEC
  25462. # Set up files for the timer library
  25463. if test x$enable_timers = xyes; then
  25464. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25465. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25466. have_timers=yes
  25467. fi
  25468. if test x$enable_filesystem = xyes; then
  25469. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25470. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25471. have_filesystem=yes
  25472. fi
  25473. ;;
  25474. *-*-emscripten* )
  25475. if test x$enable_video = xyes; then
  25476. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25477. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25478. have_video=yes
  25479. SUMMARY_video="${SUMMARY_video} emscripten"
  25480. fi
  25481. if test x$enable_audio = xyes; then
  25482. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25483. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25484. have_audio=yes
  25485. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25486. fi
  25487. CheckVisibilityHidden
  25488. CheckWerror
  25489. CheckDeclarationAfterStatement
  25490. CheckDummyVideo
  25491. CheckOffscreenVideo
  25492. CheckDiskAudio
  25493. CheckDummyAudio
  25494. CheckPTHREAD
  25495. CheckDLOPEN
  25496. CheckClockGettime
  25497. CheckEmscriptenGLES
  25498. # Set up files for the misc library
  25499. if test x$enable_misc = xyes; then
  25500. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25501. have_misc=yes
  25502. fi
  25503. # Set up files for the power library
  25504. if test x$enable_power = xyes; then
  25505. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25506. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25507. have_power=yes
  25508. fi
  25509. # Set up files for the joystick library
  25510. if test x$enable_joystick = xyes; then
  25511. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25512. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25513. have_joystick=yes
  25514. fi
  25515. # Set up files for the filesystem library
  25516. if test x$enable_filesystem = xyes; then
  25517. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25518. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25519. have_filesystem=yes
  25520. fi
  25521. # Set up files for the timer library
  25522. if test x$enable_timers = xyes; then
  25523. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25524. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25525. have_timers=yes
  25526. fi
  25527. # Set up files for the locale library
  25528. if test x$enable_locale = xyes; then
  25529. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25530. have_locale=yes
  25531. fi
  25532. ;;
  25533. *-*-riscos*)
  25534. ARCH=riscos
  25535. CheckVisibilityHidden
  25536. CheckWerror
  25537. CheckDeclarationAfterStatement
  25538. CheckDummyVideo
  25539. CheckOffscreenVideo
  25540. CheckDiskAudio
  25541. CheckDummyAudio
  25542. CheckDLOPEN
  25543. CheckO_CLOEXEC
  25544. CheckOSS
  25545. CheckPTHREAD
  25546. CheckClockGettime
  25547. # Set up files for the misc library
  25548. if test x$enable_misc = xyes; then
  25549. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25550. have_misc=yes
  25551. fi
  25552. # Set up files for the video library
  25553. if test x$enable_video = xyes; then
  25554. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25555. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25556. have_video=yes
  25557. SUMMARY_video="${SUMMARY_video} riscos"
  25558. fi
  25559. # Set up files for the filesystem library
  25560. if test x$enable_filesystem = xyes; then
  25561. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25562. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25563. have_filesystem=yes
  25564. fi
  25565. # Set up files for the timer library
  25566. if test x$enable_timers = xyes; then
  25567. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25568. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25569. have_timers=yes
  25570. fi
  25571. ;;
  25572. *-*-os2*)
  25573. ARCH=os2
  25574. if test "$build" != "$host"; then # cross-compiling
  25575. # Default cross-compile location
  25576. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25577. else
  25578. # Look for the location of the tools and install there
  25579. if test "$BUILD_PREFIX" != ""; then
  25580. ac_default_prefix=$BUILD_PREFIX
  25581. fi
  25582. fi
  25583. enable_static=no # disable static builds
  25584. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25585. CheckOS2
  25586. CheckWerror
  25587. CheckDeclarationAfterStatement
  25588. CheckDummyVideo
  25589. CheckDiskAudio
  25590. CheckDummyAudio
  25591. CheckHIDAPI
  25592. # Set up the core platform files
  25593. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25594. if test x$enable_system_iconv = xyes; then
  25595. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25596. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25597. fi
  25598. fi
  25599. # Use the Unix locale APIs.
  25600. if test x$enable_locale = xyes; then
  25601. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25602. have_locale=yes
  25603. fi
  25604. # Set up files for the video library
  25605. if test x$enable_video = xyes; then
  25606. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25607. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25608. have_video=yes
  25609. SUMMARY_video="${SUMMARY_video} OS/2"
  25610. fi
  25611. # Set up files for the audio library
  25612. if test x$enable_audio = xyes; then
  25613. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25614. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25615. have_audio=yes
  25616. SUMMARY_audio="${SUMMARY_audio} OS/2"
  25617. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25618. fi
  25619. # Set up files for the thread library
  25620. if test x$enable_threads = xyes; then
  25621. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25622. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25623. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25624. have_threads=yes
  25625. fi
  25626. # Set up files for the timer library
  25627. if test x$enable_timers = xyes; then
  25628. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25629. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25630. have_timers=yes
  25631. fi
  25632. # Set up files for the shared object loading library
  25633. if test x$enable_loadso = xyes; then
  25634. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25635. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25636. have_loadso=yes
  25637. fi
  25638. # Set up files for the filesystem library
  25639. if test x$enable_filesystem = xyes; then
  25640. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25641. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25642. have_filesystem=yes
  25643. fi
  25644. # Set up files for the joystick library
  25645. if test x$enable_joystick = xyes; then
  25646. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25647. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25648. have_joystick=yes
  25649. fi
  25650. ;;
  25651. *)
  25652. as_fn_error $? "
  25653. *** Unsupported host: Please add to configure.ac
  25654. " "$LINENO" 5
  25655. ;;
  25656. esac
  25657. CheckVirtualJoystick
  25658. # Check whether to install sdl2-config
  25659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25660. printf %s "checking whether to install sdl2-config... " >&6; }
  25661. # Check whether --enable-sdl2-config was given.
  25662. if test ${enable_sdl2_config+y}
  25663. then :
  25664. enableval=$enable_sdl2_config; case "${enableval}" in
  25665. yes) enable_sdl2_config="TRUE" ;;
  25666. no) enable_sdl2_config="FALSE" ;;
  25667. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25668. esac
  25669. else $as_nop
  25670. enable_sdl2_config="TRUE"
  25671. fi
  25672. if test "$enable_sdl2_config" = "TRUE"; then
  25673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25674. printf "%s\n" "yes" >&6; }
  25675. else
  25676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25677. printf "%s\n" "no" >&6; }
  25678. fi
  25679. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25680. # Check whether --enable-vendor-info was given.
  25681. if test ${enable_vendor_info+y}
  25682. then :
  25683. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25684. else $as_nop
  25685. enable_vendor_info=
  25686. fi
  25687. if test "$enable_vendor_info" = no
  25688. then :
  25689. enable_vendor_info=
  25690. fi
  25691. SDL_VENDOR_INFO=$enable_vendor_info
  25692. # Verify that we have all the platform specific files we need
  25693. if test x$have_audio != xyes; then
  25694. if test x$enable_audio = xyes; then
  25695. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25696. fi
  25697. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25698. fi
  25699. if test x$have_video != xyes; then
  25700. if test x$enable_video = xyes; then
  25701. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25702. fi
  25703. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25704. fi
  25705. if test x$have_misc != xyes; then
  25706. if test x$enable_misc = xyes; then
  25707. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25708. fi
  25709. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25710. fi
  25711. if test x$have_locale != xyes; then
  25712. if test x$enable_locale = xyes; then
  25713. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25714. fi
  25715. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25716. fi
  25717. if test x$have_joystick != xyes; then
  25718. if test x$enable_joystick = xyes; then
  25719. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25720. fi
  25721. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25722. fi
  25723. if test x$have_haptic != xyes; then
  25724. if test x$enable_haptic = xyes; then
  25725. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25726. fi
  25727. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25728. fi
  25729. if test x$have_sensor != xyes; then
  25730. if test x$enable_sensor = xyes; then
  25731. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25732. fi
  25733. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25734. fi
  25735. if test x$have_threads != xyes; then
  25736. if test x$enable_threads = xyes; then
  25737. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25738. fi
  25739. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25740. fi
  25741. if test x$have_timers != xyes; then
  25742. if test x$enable_timers = xyes; then
  25743. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25744. fi
  25745. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25746. fi
  25747. if test x$have_filesystem != xyes; then
  25748. if test x$enable_filesystem = xyes; then
  25749. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25750. fi
  25751. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25752. fi
  25753. if test x$have_loadso != xyes; then
  25754. if test x$enable_loadso = xyes; then
  25755. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25756. fi
  25757. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25758. fi
  25759. if test x$SDLMAIN_SOURCES = x; then
  25760. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25761. fi
  25762. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25763. if test x$video_wayland = xyes; then
  25764. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25765. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25766. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25767. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25768. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25769. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25770. echo ;\
  25771. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25772. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25773. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25774. echo ;\
  25775. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25776. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25777. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25778. echo ;\
  25779. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25780. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25781. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25782. done ;\
  25783. echo ;\
  25784. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25785. fi
  25786. OBJECTS=`echo $SOURCES`
  25787. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25788. for EXT in asm cc m c S; do
  25789. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25790. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25791. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25792. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25793. done
  25794. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25795. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25796. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25797. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25798. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25799. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25800. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25801. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25802. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25803. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25804. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25805. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25806. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25807. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25808. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25809. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25810. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25811. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25812. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25813. # Set runtime shared library paths as needed
  25814. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25815. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25816. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25818. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25819. have_enable_new_dtags=no
  25820. save_LDFLAGS="$LDFLAGS"
  25821. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25823. /* end confdefs.h. */
  25824. int
  25825. main (void)
  25826. {
  25827. ;
  25828. return 0;
  25829. }
  25830. _ACEOF
  25831. if ac_fn_c_try_link "$LINENO"
  25832. then :
  25833. have_enable_new_dtags=yes
  25834. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25835. fi
  25836. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25837. conftest$ac_exeext conftest.$ac_ext
  25838. LDFLAGS="$save_LDFLAGS"
  25839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25840. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25841. fi
  25842. if test $ARCH = solaris; then
  25843. SDL_RLD_FLAGS="-R\${libdir}"
  25844. fi
  25845. else
  25846. SDL_RLD_FLAGS=""
  25847. fi
  25848. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25849. pkg_cmakedir='$libdir/cmake/SDL2'
  25850. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25851. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25852. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25853. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25854. _lcl_receval="$_lcl_from"
  25855. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25856. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25857. _lcl_receval_old=''
  25858. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25859. _lcl_receval_old="$_lcl_receval"
  25860. eval _lcl_receval="\"$_lcl_receval\""
  25861. done
  25862. echo "$_lcl_receval")`
  25863. _lcl_receval="$_lcl_to"
  25864. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25865. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25866. _lcl_receval_old=''
  25867. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25868. _lcl_receval_old="$_lcl_receval"
  25869. eval _lcl_receval="\"$_lcl_receval\""
  25870. done
  25871. echo "$_lcl_receval")`
  25872. _lcl_notation="$_lcl_from$_lcl_to"
  25873. case ":$_lcl_from:" in
  25874. # change empty paths to '.'
  25875. ::) _lcl_from='.' ;;
  25876. # strip trailing slashes
  25877. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25878. :*:) ;;
  25879. esac
  25880. # squeeze repeated slashes
  25881. case '/' in
  25882. # if the path contains any backslashes, turn slashes into backslashes
  25883. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25884. # if the path contains slashes, also turn backslashes into slashes
  25885. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25886. esac
  25887. case ":$_lcl_to:" in
  25888. # change empty paths to '.'
  25889. ::) _lcl_to='.' ;;
  25890. # strip trailing slashes
  25891. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25892. :*:) ;;
  25893. esac
  25894. # squeeze repeated slashes
  25895. case '/' in
  25896. # if the path contains any backslashes, turn slashes into backslashes
  25897. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25898. # if the path contains slashes, also turn backslashes into slashes
  25899. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25900. esac
  25901. _lcl_common_prefix=''
  25902. _lcl_second_prefix_match=''
  25903. while test "$_lcl_second_prefix_match" != 0; do
  25904. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25905. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25906. if test "$_lcl_second_prefix_match" != 0; then
  25907. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25908. _lcl_common_prefix="$_lcl_first_prefix"
  25909. else
  25910. _lcl_second_prefix_match=0
  25911. fi
  25912. fi
  25913. done
  25914. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25915. _lcl_first_rel=''
  25916. _lcl_tmp='xxx'
  25917. while test "$_lcl_tmp" != ''; do
  25918. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25919. if test "$_lcl_first_suffix" != ''; then
  25920. _lcl_first_suffix="$_lcl_tmp"
  25921. _lcl_first_rel="../$_lcl_first_rel"
  25922. fi
  25923. done
  25924. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25925. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25926. case ":$_lcl_result_tmp:" in
  25927. # change empty paths to '.'
  25928. ::) _lcl_result_tmp='.' ;;
  25929. # strip trailing slashes
  25930. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25931. :*:) ;;
  25932. esac
  25933. # squeeze repeated slashes
  25934. case "$_lcl_notation" in
  25935. # if the path contains any backslashes, turn slashes into backslashes
  25936. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25937. # if the path contains slashes, also turn backslashes into slashes
  25938. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25939. esac
  25940. eval $_lcl_result_var='$_lcl_result_tmp'
  25941. done
  25942. PKGCONFIG_DEPENDS=""
  25943. if test x$enable_shared = xyes; then
  25944. PKGCONFIG_LIBS_PRIV="
  25945. Libs.private:"
  25946. ENABLE_SHARED_TRUE=
  25947. ENABLE_SHARED_FALSE="#"
  25948. else
  25949. PKGCONFIG_LIBS_PRIV=
  25950. ENABLE_SHARED_TRUE="#"
  25951. ENABLE_SHARED_FALSE=
  25952. fi
  25953. if test x$enable_static = xyes; then
  25954. ENABLE_STATIC_TRUE=
  25955. ENABLE_STATIC_FALSE="#"
  25956. else
  25957. ENABLE_STATIC_TRUE="#"
  25958. ENABLE_STATIC_FALSE=
  25959. fi
  25960. cat >Makefile.rules <<__EOF__
  25961. # Build rules for objects
  25962. -include \$(OBJECTS:.lo=.d)
  25963. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25964. $srcdir/src/SDL.c: update-revision
  25965. $DEPENDS
  25966. $VERSION_DEPENDS
  25967. $SDLMAIN_DEPENDS
  25968. $SDLTEST_DEPENDS
  25969. $WAYLAND_PROTOCOLS_DEPENDS
  25970. __EOF__
  25971. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25972. ac_config_commands="$ac_config_commands sdl2_config"
  25973. SUMMARY="SDL2 Configure Summary:\n"
  25974. if test x$enable_shared = xyes; then
  25975. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25976. fi
  25977. if test x$enable_static = xyes; then
  25978. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25979. fi
  25980. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25981. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25982. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25983. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25984. if test x$have_x = xyes; then
  25985. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25986. fi
  25987. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25988. if test x$have_joystick_virtual = xyes; then
  25989. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25990. else
  25991. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25992. fi
  25993. if test x$have_samplerate_h_hdr = xyes; then
  25994. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25995. else
  25996. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25997. fi
  25998. if test x$have_libudev_h_hdr = xyes; then
  25999. SUMMARY="${SUMMARY}Using libudev : YES\n"
  26000. else
  26001. SUMMARY="${SUMMARY}Using libudev : NO\n"
  26002. fi
  26003. if test x$have_dbus_dbus_h_hdr = xyes; then
  26004. SUMMARY="${SUMMARY}Using dbus : YES\n"
  26005. else
  26006. SUMMARY="${SUMMARY}Using dbus : NO\n"
  26007. fi
  26008. if test x$enable_ime = xyes; then
  26009. SUMMARY="${SUMMARY}Using ime : YES\n"
  26010. else
  26011. SUMMARY="${SUMMARY}Using ime : NO\n"
  26012. fi
  26013. if test x$have_ibus_ibus_h_hdr = xyes; then
  26014. SUMMARY="${SUMMARY}Using ibus : YES\n"
  26015. else
  26016. SUMMARY="${SUMMARY}Using ibus : NO\n"
  26017. fi
  26018. if test x$have_fcitx = xyes; then
  26019. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  26020. else
  26021. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  26022. fi
  26023. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  26024. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  26025. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  26026. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26027. SUMMARY="${SUMMARY}configure script with:\n"
  26028. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  26029. fi
  26030. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  26031. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  26032. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  26033. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26034. SUMMARY="${SUMMARY}configure script with:\n"
  26035. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  26036. fi
  26037. ac_config_commands="$ac_config_commands summary"
  26038. cat >confcache <<\_ACEOF
  26039. # This file is a shell script that caches the results of configure
  26040. # tests run on this system so they can be shared between configure
  26041. # scripts and configure runs, see configure's option --config-cache.
  26042. # It is not useful on other systems. If it contains results you don't
  26043. # want to keep, you may remove or edit it.
  26044. #
  26045. # config.status only pays attention to the cache file if you give it
  26046. # the --recheck option to rerun configure.
  26047. #
  26048. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26049. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26050. # following values.
  26051. _ACEOF
  26052. # The following way of writing the cache mishandles newlines in values,
  26053. # but we know of no workaround that is simple, portable, and efficient.
  26054. # So, we kill variables containing newlines.
  26055. # Ultrix sh set writes to stderr and can't be redirected directly,
  26056. # and sets the high bit in the cache file unless we assign to the vars.
  26057. (
  26058. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26059. eval ac_val=\$$ac_var
  26060. case $ac_val in #(
  26061. *${as_nl}*)
  26062. case $ac_var in #(
  26063. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26064. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26065. esac
  26066. case $ac_var in #(
  26067. _ | IFS | as_nl) ;; #(
  26068. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26069. *) { eval $ac_var=; unset $ac_var;} ;;
  26070. esac ;;
  26071. esac
  26072. done
  26073. (set) 2>&1 |
  26074. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26075. *${as_nl}ac_space=\ *)
  26076. # `set' does not quote correctly, so add quotes: double-quote
  26077. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26078. sed -n \
  26079. "s/'/'\\\\''/g;
  26080. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26081. ;; #(
  26082. *)
  26083. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26084. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26085. ;;
  26086. esac |
  26087. sort
  26088. ) |
  26089. sed '
  26090. /^ac_cv_env_/b end
  26091. t clear
  26092. :clear
  26093. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  26094. t end
  26095. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26096. :end' >>confcache
  26097. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26098. if test -w "$cache_file"; then
  26099. if test "x$cache_file" != "x/dev/null"; then
  26100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26101. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  26102. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26103. cat confcache >"$cache_file"
  26104. else
  26105. case $cache_file in #(
  26106. */* | ?:*)
  26107. mv -f confcache "$cache_file"$$ &&
  26108. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26109. *)
  26110. mv -f confcache "$cache_file" ;;
  26111. esac
  26112. fi
  26113. fi
  26114. else
  26115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26116. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  26117. fi
  26118. fi
  26119. rm -f confcache
  26120. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26121. # Let make expand exec_prefix.
  26122. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26123. DEFS=-DHAVE_CONFIG_H
  26124. ac_libobjs=
  26125. ac_ltlibobjs=
  26126. U=
  26127. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26128. # 1. Remove the extension, and $U if already installed.
  26129. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26130. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  26131. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26132. # will be set to the directory where LIBOBJS objects are built.
  26133. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26134. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26135. done
  26136. LIBOBJS=$ac_libobjs
  26137. LTLIBOBJS=$ac_ltlibobjs
  26138. : "${CONFIG_STATUS=./config.status}"
  26139. ac_write_fail=0
  26140. ac_clean_files_save=$ac_clean_files
  26141. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26143. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  26144. as_write_fail=0
  26145. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26146. #! $SHELL
  26147. # Generated by $as_me.
  26148. # Run this file to recreate the current configuration.
  26149. # Compiler output produced by configure, useful for debugging
  26150. # configure, is in config.log if it exists.
  26151. debug=false
  26152. ac_cs_recheck=false
  26153. ac_cs_silent=false
  26154. SHELL=\${CONFIG_SHELL-$SHELL}
  26155. export SHELL
  26156. _ASEOF
  26157. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26158. ## -------------------- ##
  26159. ## M4sh Initialization. ##
  26160. ## -------------------- ##
  26161. # Be more Bourne compatible
  26162. DUALCASE=1; export DUALCASE # for MKS sh
  26163. as_nop=:
  26164. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  26165. then :
  26166. emulate sh
  26167. NULLCMD=:
  26168. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26169. # is contrary to our usage. Disable this feature.
  26170. alias -g '${1+"$@"}'='"$@"'
  26171. setopt NO_GLOB_SUBST
  26172. else $as_nop
  26173. case `(set -o) 2>/dev/null` in #(
  26174. *posix*) :
  26175. set -o posix ;; #(
  26176. *) :
  26177. ;;
  26178. esac
  26179. fi
  26180. # Reset variables that may have inherited troublesome values from
  26181. # the environment.
  26182. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  26183. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  26184. # side effect of setting IFS to empty, thus disabling word splitting.)
  26185. # Quoting is to prevent editors from complaining about space-tab.
  26186. as_nl='
  26187. '
  26188. export as_nl
  26189. IFS=" "" $as_nl"
  26190. PS1='$ '
  26191. PS2='> '
  26192. PS4='+ '
  26193. # Ensure predictable behavior from utilities with locale-dependent output.
  26194. LC_ALL=C
  26195. export LC_ALL
  26196. LANGUAGE=C
  26197. export LANGUAGE
  26198. # We cannot yet rely on "unset" to work, but we need these variables
  26199. # to be unset--not just set to an empty or harmless value--now, to
  26200. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26201. # also avoids known problems related to "unset" and subshell syntax
  26202. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26203. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26204. do eval test \${$as_var+y} \
  26205. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26206. done
  26207. # Ensure that fds 0, 1, and 2 are open.
  26208. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26209. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26210. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26211. # The user is always right.
  26212. if ${PATH_SEPARATOR+false} :; then
  26213. PATH_SEPARATOR=:
  26214. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26215. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26216. PATH_SEPARATOR=';'
  26217. }
  26218. fi
  26219. # Find who we are. Look in the path if we contain no directory separator.
  26220. as_myself=
  26221. case $0 in #((
  26222. *[\\/]* ) as_myself=$0 ;;
  26223. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26224. for as_dir in $PATH
  26225. do
  26226. IFS=$as_save_IFS
  26227. case $as_dir in #(((
  26228. '') as_dir=./ ;;
  26229. */) ;;
  26230. *) as_dir=$as_dir/ ;;
  26231. esac
  26232. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26233. done
  26234. IFS=$as_save_IFS
  26235. ;;
  26236. esac
  26237. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26238. # in which case we are not to be found in the path.
  26239. if test "x$as_myself" = x; then
  26240. as_myself=$0
  26241. fi
  26242. if test ! -f "$as_myself"; then
  26243. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26244. exit 1
  26245. fi
  26246. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26247. # ----------------------------------------
  26248. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26249. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26250. # script with STATUS, using 1 if that was 0.
  26251. as_fn_error ()
  26252. {
  26253. as_status=$1; test $as_status -eq 0 && as_status=1
  26254. if test "$4"; then
  26255. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26256. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26257. fi
  26258. printf "%s\n" "$as_me: error: $2" >&2
  26259. as_fn_exit $as_status
  26260. } # as_fn_error
  26261. # as_fn_set_status STATUS
  26262. # -----------------------
  26263. # Set $? to STATUS, without forking.
  26264. as_fn_set_status ()
  26265. {
  26266. return $1
  26267. } # as_fn_set_status
  26268. # as_fn_exit STATUS
  26269. # -----------------
  26270. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26271. as_fn_exit ()
  26272. {
  26273. set +e
  26274. as_fn_set_status $1
  26275. exit $1
  26276. } # as_fn_exit
  26277. # as_fn_unset VAR
  26278. # ---------------
  26279. # Portably unset VAR.
  26280. as_fn_unset ()
  26281. {
  26282. { eval $1=; unset $1;}
  26283. }
  26284. as_unset=as_fn_unset
  26285. # as_fn_append VAR VALUE
  26286. # ----------------------
  26287. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26288. # advantage of any shell optimizations that allow amortized linear growth over
  26289. # repeated appends, instead of the typical quadratic growth present in naive
  26290. # implementations.
  26291. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26292. then :
  26293. eval 'as_fn_append ()
  26294. {
  26295. eval $1+=\$2
  26296. }'
  26297. else $as_nop
  26298. as_fn_append ()
  26299. {
  26300. eval $1=\$$1\$2
  26301. }
  26302. fi # as_fn_append
  26303. # as_fn_arith ARG...
  26304. # ------------------
  26305. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26306. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26307. # must be portable across $(()) and expr.
  26308. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26309. then :
  26310. eval 'as_fn_arith ()
  26311. {
  26312. as_val=$(( $* ))
  26313. }'
  26314. else $as_nop
  26315. as_fn_arith ()
  26316. {
  26317. as_val=`expr "$@" || test $? -eq 1`
  26318. }
  26319. fi # as_fn_arith
  26320. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26321. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26322. as_expr=expr
  26323. else
  26324. as_expr=false
  26325. fi
  26326. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26327. as_basename=basename
  26328. else
  26329. as_basename=false
  26330. fi
  26331. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26332. as_dirname=dirname
  26333. else
  26334. as_dirname=false
  26335. fi
  26336. as_me=`$as_basename -- "$0" ||
  26337. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26338. X"$0" : 'X\(//\)$' \| \
  26339. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26340. printf "%s\n" X/"$0" |
  26341. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26342. s//\1/
  26343. q
  26344. }
  26345. /^X\/\(\/\/\)$/{
  26346. s//\1/
  26347. q
  26348. }
  26349. /^X\/\(\/\).*/{
  26350. s//\1/
  26351. q
  26352. }
  26353. s/.*/./; q'`
  26354. # Avoid depending upon Character Ranges.
  26355. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26356. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26357. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26358. as_cr_digits='0123456789'
  26359. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26360. # Determine whether it's possible to make 'echo' print without a newline.
  26361. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26362. # for compatibility with existing Makefiles.
  26363. ECHO_C= ECHO_N= ECHO_T=
  26364. case `echo -n x` in #(((((
  26365. -n*)
  26366. case `echo 'xy\c'` in
  26367. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26368. xy) ECHO_C='\c';;
  26369. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26370. ECHO_T=' ';;
  26371. esac;;
  26372. *)
  26373. ECHO_N='-n';;
  26374. esac
  26375. # For backward compatibility with old third-party macros, we provide
  26376. # the shell variables $as_echo and $as_echo_n. New code should use
  26377. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26378. as_echo='printf %s\n'
  26379. as_echo_n='printf %s'
  26380. rm -f conf$$ conf$$.exe conf$$.file
  26381. if test -d conf$$.dir; then
  26382. rm -f conf$$.dir/conf$$.file
  26383. else
  26384. rm -f conf$$.dir
  26385. mkdir conf$$.dir 2>/dev/null
  26386. fi
  26387. if (echo >conf$$.file) 2>/dev/null; then
  26388. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26389. as_ln_s='ln -s'
  26390. # ... but there are two gotchas:
  26391. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26392. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26393. # In both cases, we have to default to `cp -pR'.
  26394. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26395. as_ln_s='cp -pR'
  26396. elif ln conf$$.file conf$$ 2>/dev/null; then
  26397. as_ln_s=ln
  26398. else
  26399. as_ln_s='cp -pR'
  26400. fi
  26401. else
  26402. as_ln_s='cp -pR'
  26403. fi
  26404. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26405. rmdir conf$$.dir 2>/dev/null
  26406. # as_fn_mkdir_p
  26407. # -------------
  26408. # Create "$as_dir" as a directory, including parents if necessary.
  26409. as_fn_mkdir_p ()
  26410. {
  26411. case $as_dir in #(
  26412. -*) as_dir=./$as_dir;;
  26413. esac
  26414. test -d "$as_dir" || eval $as_mkdir_p || {
  26415. as_dirs=
  26416. while :; do
  26417. case $as_dir in #(
  26418. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26419. *) as_qdir=$as_dir;;
  26420. esac
  26421. as_dirs="'$as_qdir' $as_dirs"
  26422. as_dir=`$as_dirname -- "$as_dir" ||
  26423. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26424. X"$as_dir" : 'X\(//\)[^/]' \| \
  26425. X"$as_dir" : 'X\(//\)$' \| \
  26426. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26427. printf "%s\n" X"$as_dir" |
  26428. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26429. s//\1/
  26430. q
  26431. }
  26432. /^X\(\/\/\)[^/].*/{
  26433. s//\1/
  26434. q
  26435. }
  26436. /^X\(\/\/\)$/{
  26437. s//\1/
  26438. q
  26439. }
  26440. /^X\(\/\).*/{
  26441. s//\1/
  26442. q
  26443. }
  26444. s/.*/./; q'`
  26445. test -d "$as_dir" && break
  26446. done
  26447. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26448. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26449. } # as_fn_mkdir_p
  26450. if mkdir -p . 2>/dev/null; then
  26451. as_mkdir_p='mkdir -p "$as_dir"'
  26452. else
  26453. test -d ./-p && rmdir ./-p
  26454. as_mkdir_p=false
  26455. fi
  26456. # as_fn_executable_p FILE
  26457. # -----------------------
  26458. # Test if FILE is an executable regular file.
  26459. as_fn_executable_p ()
  26460. {
  26461. test -f "$1" && test -x "$1"
  26462. } # as_fn_executable_p
  26463. as_test_x='test -x'
  26464. as_executable_p=as_fn_executable_p
  26465. # Sed expression to map a string onto a valid CPP name.
  26466. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26467. # Sed expression to map a string onto a valid variable name.
  26468. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26469. exec 6>&1
  26470. ## ----------------------------------- ##
  26471. ## Main body of $CONFIG_STATUS script. ##
  26472. ## ----------------------------------- ##
  26473. _ASEOF
  26474. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26475. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26476. # Save the log message, to keep $0 and so on meaningful, and to
  26477. # report actual input values of CONFIG_FILES etc. instead of their
  26478. # values after options handling.
  26479. ac_log="
  26480. This file was extended by $as_me, which was
  26481. generated by GNU Autoconf 2.71. Invocation command line was
  26482. CONFIG_FILES = $CONFIG_FILES
  26483. CONFIG_HEADERS = $CONFIG_HEADERS
  26484. CONFIG_LINKS = $CONFIG_LINKS
  26485. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26486. $ $0 $@
  26487. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26488. "
  26489. _ACEOF
  26490. case $ac_config_files in *"
  26491. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26492. esac
  26493. case $ac_config_headers in *"
  26494. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26495. esac
  26496. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26497. # Files that config.status was made for.
  26498. config_files="$ac_config_files"
  26499. config_headers="$ac_config_headers"
  26500. config_commands="$ac_config_commands"
  26501. _ACEOF
  26502. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26503. ac_cs_usage="\
  26504. \`$as_me' instantiates files and other configuration actions
  26505. from templates according to the current configuration. Unless the files
  26506. and actions are specified as TAGs, all are instantiated by default.
  26507. Usage: $0 [OPTION]... [TAG]...
  26508. -h, --help print this help, then exit
  26509. -V, --version print version number and configuration settings, then exit
  26510. --config print configuration, then exit
  26511. -q, --quiet, --silent
  26512. do not print progress messages
  26513. -d, --debug don't remove temporary files
  26514. --recheck update $as_me by reconfiguring in the same conditions
  26515. --file=FILE[:TEMPLATE]
  26516. instantiate the configuration file FILE
  26517. --header=FILE[:TEMPLATE]
  26518. instantiate the configuration header FILE
  26519. Configuration files:
  26520. $config_files
  26521. Configuration headers:
  26522. $config_headers
  26523. Configuration commands:
  26524. $config_commands
  26525. Report bugs to the package provider."
  26526. _ACEOF
  26527. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26528. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26529. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26530. ac_cs_config='$ac_cs_config_escaped'
  26531. ac_cs_version="\\
  26532. config.status
  26533. configured by $0, generated by GNU Autoconf 2.71,
  26534. with options \\"\$ac_cs_config\\"
  26535. Copyright (C) 2021 Free Software Foundation, Inc.
  26536. This config.status script is free software; the Free Software Foundation
  26537. gives unlimited permission to copy, distribute and modify it."
  26538. ac_pwd='$ac_pwd'
  26539. srcdir='$srcdir'
  26540. INSTALL='$INSTALL'
  26541. AWK='$AWK'
  26542. test -n "\$AWK" || AWK=awk
  26543. _ACEOF
  26544. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26545. # The default lists apply if the user does not specify any file.
  26546. ac_need_defaults=:
  26547. while test $# != 0
  26548. do
  26549. case $1 in
  26550. --*=?*)
  26551. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26552. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26553. ac_shift=:
  26554. ;;
  26555. --*=)
  26556. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26557. ac_optarg=
  26558. ac_shift=:
  26559. ;;
  26560. *)
  26561. ac_option=$1
  26562. ac_optarg=$2
  26563. ac_shift=shift
  26564. ;;
  26565. esac
  26566. case $ac_option in
  26567. # Handling of the options.
  26568. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26569. ac_cs_recheck=: ;;
  26570. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26571. printf "%s\n" "$ac_cs_version"; exit ;;
  26572. --config | --confi | --conf | --con | --co | --c )
  26573. printf "%s\n" "$ac_cs_config"; exit ;;
  26574. --debug | --debu | --deb | --de | --d | -d )
  26575. debug=: ;;
  26576. --file | --fil | --fi | --f )
  26577. $ac_shift
  26578. case $ac_optarg in
  26579. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26580. '') as_fn_error $? "missing file argument" ;;
  26581. esac
  26582. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26583. ac_need_defaults=false;;
  26584. --header | --heade | --head | --hea )
  26585. $ac_shift
  26586. case $ac_optarg in
  26587. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26588. esac
  26589. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26590. ac_need_defaults=false;;
  26591. --he | --h)
  26592. # Conflict between --help and --header
  26593. as_fn_error $? "ambiguous option: \`$1'
  26594. Try \`$0 --help' for more information.";;
  26595. --help | --hel | -h )
  26596. printf "%s\n" "$ac_cs_usage"; exit ;;
  26597. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26598. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26599. ac_cs_silent=: ;;
  26600. # This is an error.
  26601. -*) as_fn_error $? "unrecognized option: \`$1'
  26602. Try \`$0 --help' for more information." ;;
  26603. *) as_fn_append ac_config_targets " $1"
  26604. ac_need_defaults=false ;;
  26605. esac
  26606. shift
  26607. done
  26608. ac_configure_extra_args=
  26609. if $ac_cs_silent; then
  26610. exec 6>/dev/null
  26611. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26612. fi
  26613. _ACEOF
  26614. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26615. if \$ac_cs_recheck; then
  26616. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26617. shift
  26618. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26619. CONFIG_SHELL='$SHELL'
  26620. export CONFIG_SHELL
  26621. exec "\$@"
  26622. fi
  26623. _ACEOF
  26624. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26625. exec 5>>config.log
  26626. {
  26627. echo
  26628. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26629. ## Running $as_me. ##
  26630. _ASBOX
  26631. printf "%s\n" "$ac_log"
  26632. } >&5
  26633. _ACEOF
  26634. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26635. #
  26636. # INIT-COMMANDS
  26637. #
  26638. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26639. # if CDPATH is set.
  26640. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26641. sed_quote_subst='$sed_quote_subst'
  26642. double_quote_subst='$double_quote_subst'
  26643. delay_variable_subst='$delay_variable_subst'
  26644. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26645. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26646. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26647. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26648. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26649. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26650. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26651. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26652. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26653. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26654. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26655. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26656. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26657. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26658. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26659. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26660. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26661. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26662. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26663. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26664. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26665. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26666. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26667. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26668. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26669. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26670. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26671. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26672. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26673. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26674. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26675. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26676. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26677. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26678. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26679. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26680. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26681. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26682. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26683. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26684. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26685. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26686. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26687. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26688. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26689. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26690. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26691. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26692. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26693. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26694. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26695. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26696. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26697. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26698. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26699. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26700. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26701. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26702. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26703. 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"`'
  26704. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26705. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26706. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26707. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26708. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26709. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26710. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26711. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26712. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26713. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26714. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26715. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26716. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26717. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26718. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26719. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26720. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26721. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26722. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26723. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26724. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26725. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26726. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26727. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26728. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26729. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26730. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26731. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26732. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26733. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26734. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26735. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26736. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26737. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26738. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26739. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26740. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26741. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26742. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26743. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26744. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26745. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26746. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26747. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26748. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26749. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26750. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26751. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26752. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26753. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26754. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26755. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26756. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26757. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26758. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26759. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26760. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26761. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26762. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26763. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26764. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26765. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26766. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26767. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26768. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26769. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26770. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26771. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26772. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26773. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26774. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26775. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26776. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26777. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26778. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26779. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26780. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26781. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26782. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26783. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26784. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26785. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26786. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26787. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26788. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26789. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26790. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26791. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26792. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26793. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26794. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26795. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26796. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26797. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26798. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26799. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26800. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26801. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26802. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26803. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26804. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26805. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26806. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26807. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26808. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26809. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26810. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26811. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26812. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26813. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26814. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26815. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26816. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26817. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26818. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26819. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26820. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26821. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26822. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26823. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26824. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26825. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26826. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26827. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26828. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26829. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26830. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26831. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26832. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26833. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26834. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26835. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26836. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26837. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26838. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26839. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26840. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26841. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26842. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26843. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26844. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26845. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26846. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26847. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26848. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26849. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26850. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26851. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26852. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26853. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26854. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26855. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26856. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26857. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26858. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26859. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26860. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26861. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26862. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26863. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26864. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26865. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26866. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26867. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26868. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26869. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26870. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26871. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26872. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26873. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26874. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26875. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26876. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26877. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26878. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26879. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26880. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26881. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26882. LTCC='$LTCC'
  26883. LTCFLAGS='$LTCFLAGS'
  26884. compiler='$compiler_DEFAULT'
  26885. # A function that is used when there is no print builtin or printf.
  26886. func_fallback_echo ()
  26887. {
  26888. eval 'cat <<_LTECHO_EOF
  26889. \$1
  26890. _LTECHO_EOF'
  26891. }
  26892. # Quote evaled strings.
  26893. for var in AS \
  26894. DLLTOOL \
  26895. OBJDUMP \
  26896. SHELL \
  26897. ECHO \
  26898. PATH_SEPARATOR \
  26899. SED \
  26900. GREP \
  26901. EGREP \
  26902. FGREP \
  26903. LD \
  26904. NM \
  26905. LN_S \
  26906. lt_SP2NL \
  26907. lt_NL2SP \
  26908. reload_flag \
  26909. deplibs_check_method \
  26910. file_magic_cmd \
  26911. file_magic_glob \
  26912. want_nocaseglob \
  26913. sharedlib_from_linklib_cmd \
  26914. AR \
  26915. AR_FLAGS \
  26916. archiver_list_spec \
  26917. STRIP \
  26918. RANLIB \
  26919. CC \
  26920. CFLAGS \
  26921. compiler \
  26922. lt_cv_sys_global_symbol_pipe \
  26923. lt_cv_sys_global_symbol_to_cdecl \
  26924. lt_cv_sys_global_symbol_to_import \
  26925. lt_cv_sys_global_symbol_to_c_name_address \
  26926. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26927. lt_cv_nm_interface \
  26928. nm_file_list_spec \
  26929. lt_cv_truncate_bin \
  26930. lt_prog_compiler_no_builtin_flag \
  26931. lt_prog_compiler_pic \
  26932. lt_prog_compiler_wl \
  26933. lt_prog_compiler_static \
  26934. lt_cv_prog_compiler_c_o \
  26935. need_locks \
  26936. MANIFEST_TOOL \
  26937. DSYMUTIL \
  26938. NMEDIT \
  26939. LIPO \
  26940. OTOOL \
  26941. OTOOL64 \
  26942. shrext_cmds \
  26943. export_dynamic_flag_spec \
  26944. whole_archive_flag_spec \
  26945. compiler_needs_object \
  26946. with_gnu_ld \
  26947. allow_undefined_flag \
  26948. no_undefined_flag \
  26949. hardcode_libdir_flag_spec \
  26950. hardcode_libdir_separator \
  26951. exclude_expsyms \
  26952. include_expsyms \
  26953. file_list_spec \
  26954. variables_saved_for_relink \
  26955. libname_spec \
  26956. library_names_spec \
  26957. soname_spec \
  26958. install_override_mode \
  26959. finish_eval \
  26960. old_striplib \
  26961. striplib \
  26962. compiler_lib_search_dirs \
  26963. predep_objects \
  26964. postdep_objects \
  26965. predeps \
  26966. postdeps \
  26967. compiler_lib_search_path \
  26968. LD_RC \
  26969. LD_CXX \
  26970. reload_flag_RC \
  26971. reload_flag_CXX \
  26972. compiler_RC \
  26973. compiler_CXX \
  26974. lt_prog_compiler_no_builtin_flag_RC \
  26975. lt_prog_compiler_no_builtin_flag_CXX \
  26976. lt_prog_compiler_pic_RC \
  26977. lt_prog_compiler_pic_CXX \
  26978. lt_prog_compiler_wl_RC \
  26979. lt_prog_compiler_wl_CXX \
  26980. lt_prog_compiler_static_RC \
  26981. lt_prog_compiler_static_CXX \
  26982. lt_cv_prog_compiler_c_o_RC \
  26983. lt_cv_prog_compiler_c_o_CXX \
  26984. export_dynamic_flag_spec_RC \
  26985. export_dynamic_flag_spec_CXX \
  26986. whole_archive_flag_spec_RC \
  26987. whole_archive_flag_spec_CXX \
  26988. compiler_needs_object_RC \
  26989. compiler_needs_object_CXX \
  26990. with_gnu_ld_RC \
  26991. with_gnu_ld_CXX \
  26992. allow_undefined_flag_RC \
  26993. allow_undefined_flag_CXX \
  26994. no_undefined_flag_RC \
  26995. no_undefined_flag_CXX \
  26996. hardcode_libdir_flag_spec_RC \
  26997. hardcode_libdir_flag_spec_CXX \
  26998. hardcode_libdir_separator_RC \
  26999. hardcode_libdir_separator_CXX \
  27000. exclude_expsyms_RC \
  27001. exclude_expsyms_CXX \
  27002. include_expsyms_RC \
  27003. include_expsyms_CXX \
  27004. file_list_spec_RC \
  27005. file_list_spec_CXX \
  27006. compiler_lib_search_dirs_RC \
  27007. compiler_lib_search_dirs_CXX \
  27008. predep_objects_RC \
  27009. predep_objects_CXX \
  27010. postdep_objects_RC \
  27011. postdep_objects_CXX \
  27012. predeps_RC \
  27013. predeps_CXX \
  27014. postdeps_RC \
  27015. postdeps_CXX \
  27016. compiler_lib_search_path_RC \
  27017. compiler_lib_search_path_CXX; do
  27018. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27019. *[\\\\\\\`\\"\\\$]*)
  27020. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27021. ;;
  27022. *)
  27023. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27024. ;;
  27025. esac
  27026. done
  27027. # Double-quote double-evaled strings.
  27028. for var in reload_cmds \
  27029. old_postinstall_cmds \
  27030. old_postuninstall_cmds \
  27031. old_archive_cmds \
  27032. extract_expsyms_cmds \
  27033. old_archive_from_new_cmds \
  27034. old_archive_from_expsyms_cmds \
  27035. archive_cmds \
  27036. archive_expsym_cmds \
  27037. module_cmds \
  27038. module_expsym_cmds \
  27039. export_symbols_cmds \
  27040. prelink_cmds \
  27041. postlink_cmds \
  27042. postinstall_cmds \
  27043. postuninstall_cmds \
  27044. finish_cmds \
  27045. sys_lib_search_path_spec \
  27046. configure_time_dlsearch_path \
  27047. configure_time_lt_sys_library_path \
  27048. reload_cmds_RC \
  27049. reload_cmds_CXX \
  27050. old_archive_cmds_RC \
  27051. old_archive_cmds_CXX \
  27052. old_archive_from_new_cmds_RC \
  27053. old_archive_from_new_cmds_CXX \
  27054. old_archive_from_expsyms_cmds_RC \
  27055. old_archive_from_expsyms_cmds_CXX \
  27056. archive_cmds_RC \
  27057. archive_cmds_CXX \
  27058. archive_expsym_cmds_RC \
  27059. archive_expsym_cmds_CXX \
  27060. module_cmds_RC \
  27061. module_cmds_CXX \
  27062. module_expsym_cmds_RC \
  27063. module_expsym_cmds_CXX \
  27064. export_symbols_cmds_RC \
  27065. export_symbols_cmds_CXX \
  27066. prelink_cmds_RC \
  27067. prelink_cmds_CXX \
  27068. postlink_cmds_RC \
  27069. postlink_cmds_CXX; do
  27070. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27071. *[\\\\\\\`\\"\\\$]*)
  27072. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27073. ;;
  27074. *)
  27075. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27076. ;;
  27077. esac
  27078. done
  27079. ac_aux_dir='$ac_aux_dir'
  27080. # See if we are running on zsh, and set the options that allow our
  27081. # commands through without removal of \ escapes INIT.
  27082. if test -n "\${ZSH_VERSION+set}"; then
  27083. setopt NO_GLOB_SUBST
  27084. fi
  27085. PACKAGE='$PACKAGE'
  27086. VERSION='$VERSION'
  27087. RM='$RM'
  27088. ofile='$ofile'
  27089. SUMMARY="$SUMMARY"
  27090. _ACEOF
  27091. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27092. # Handling of arguments.
  27093. for ac_config_target in $ac_config_targets
  27094. do
  27095. case $ac_config_target in
  27096. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  27097. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  27098. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  27099. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  27100. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  27101. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  27102. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  27103. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  27104. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  27105. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  27106. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27107. esac
  27108. done
  27109. # If the user did not use the arguments to specify the items to instantiate,
  27110. # then the envvar interface is used. Set only those that are not.
  27111. # We use the long form for the default assignment because of an extremely
  27112. # bizarre bug on SunOS 4.1.3.
  27113. if $ac_need_defaults; then
  27114. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  27115. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  27116. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  27117. fi
  27118. # Have a temporary directory for convenience. Make it in the build tree
  27119. # simply because there is no reason against having it here, and in addition,
  27120. # creating and moving files from /tmp can sometimes cause problems.
  27121. # Hook for its removal unless debugging.
  27122. # Note that there is a small window in which the directory will not be cleaned:
  27123. # after its creation but before its name has been assigned to `$tmp'.
  27124. $debug ||
  27125. {
  27126. tmp= ac_tmp=
  27127. trap 'exit_status=$?
  27128. : "${ac_tmp:=$tmp}"
  27129. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27130. ' 0
  27131. trap 'as_fn_exit 1' 1 2 13 15
  27132. }
  27133. # Create a (secure) tmp directory for tmp files.
  27134. {
  27135. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27136. test -d "$tmp"
  27137. } ||
  27138. {
  27139. tmp=./conf$$-$RANDOM
  27140. (umask 077 && mkdir "$tmp")
  27141. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27142. ac_tmp=$tmp
  27143. # Set up the scripts for CONFIG_FILES section.
  27144. # No need to generate them if there are no CONFIG_FILES.
  27145. # This happens for instance with `./config.status config.h'.
  27146. if test -n "$CONFIG_FILES"; then
  27147. ac_cr=`echo X | tr X '\015'`
  27148. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27149. # But we know of no other shell where ac_cr would be empty at this
  27150. # point, so we can use a bashism as a fallback.
  27151. if test "x$ac_cr" = x; then
  27152. eval ac_cr=\$\'\\r\'
  27153. fi
  27154. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27155. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27156. ac_cs_awk_cr='\\r'
  27157. else
  27158. ac_cs_awk_cr=$ac_cr
  27159. fi
  27160. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27161. _ACEOF
  27162. {
  27163. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27164. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27165. echo "_ACEOF"
  27166. } >conf$$subs.sh ||
  27167. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27168. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27169. ac_delim='%!_!# '
  27170. for ac_last_try in false false false false false :; do
  27171. . ./conf$$subs.sh ||
  27172. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27173. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27174. if test $ac_delim_n = $ac_delim_num; then
  27175. break
  27176. elif $ac_last_try; then
  27177. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27178. else
  27179. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27180. fi
  27181. done
  27182. rm -f conf$$subs.sh
  27183. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27184. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27185. _ACEOF
  27186. sed -n '
  27187. h
  27188. s/^/S["/; s/!.*/"]=/
  27189. p
  27190. g
  27191. s/^[^!]*!//
  27192. :repl
  27193. t repl
  27194. s/'"$ac_delim"'$//
  27195. t delim
  27196. :nl
  27197. h
  27198. s/\(.\{148\}\)..*/\1/
  27199. t more1
  27200. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27201. p
  27202. n
  27203. b repl
  27204. :more1
  27205. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27206. p
  27207. g
  27208. s/.\{148\}//
  27209. t nl
  27210. :delim
  27211. h
  27212. s/\(.\{148\}\)..*/\1/
  27213. t more2
  27214. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27215. p
  27216. b
  27217. :more2
  27218. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27219. p
  27220. g
  27221. s/.\{148\}//
  27222. t delim
  27223. ' <conf$$subs.awk | sed '
  27224. /^[^""]/{
  27225. N
  27226. s/\n//
  27227. }
  27228. ' >>$CONFIG_STATUS || ac_write_fail=1
  27229. rm -f conf$$subs.awk
  27230. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27231. _ACAWK
  27232. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27233. for (key in S) S_is_set[key] = 1
  27234. FS = ""
  27235. }
  27236. {
  27237. line = $ 0
  27238. nfields = split(line, field, "@")
  27239. substed = 0
  27240. len = length(field[1])
  27241. for (i = 2; i < nfields; i++) {
  27242. key = field[i]
  27243. keylen = length(key)
  27244. if (S_is_set[key]) {
  27245. value = S[key]
  27246. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27247. len += length(value) + length(field[++i])
  27248. substed = 1
  27249. } else
  27250. len += 1 + keylen
  27251. }
  27252. print line
  27253. }
  27254. _ACAWK
  27255. _ACEOF
  27256. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27257. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27258. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27259. else
  27260. cat
  27261. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27262. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27263. _ACEOF
  27264. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27265. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27266. # trailing colons and then remove the whole line if VPATH becomes empty
  27267. # (actually we leave an empty line to preserve line numbers).
  27268. if test "x$srcdir" = x.; then
  27269. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27270. h
  27271. s///
  27272. s/^/:/
  27273. s/[ ]*$/:/
  27274. s/:\$(srcdir):/:/g
  27275. s/:\${srcdir}:/:/g
  27276. s/:@srcdir@:/:/g
  27277. s/^:*//
  27278. s/:*$//
  27279. x
  27280. s/\(=[ ]*\).*/\1/
  27281. G
  27282. s/\n//
  27283. s/^[^=]*=[ ]*$//
  27284. }'
  27285. fi
  27286. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27287. fi # test -n "$CONFIG_FILES"
  27288. # Set up the scripts for CONFIG_HEADERS section.
  27289. # No need to generate them if there are no CONFIG_HEADERS.
  27290. # This happens for instance with `./config.status Makefile'.
  27291. if test -n "$CONFIG_HEADERS"; then
  27292. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27293. BEGIN {
  27294. _ACEOF
  27295. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27296. # here-document in config.status, that substitutes the proper values into
  27297. # config.h.in to produce config.h.
  27298. # Create a delimiter string that does not exist in confdefs.h, to ease
  27299. # handling of long lines.
  27300. ac_delim='%!_!# '
  27301. for ac_last_try in false false :; do
  27302. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27303. if test -z "$ac_tt"; then
  27304. break
  27305. elif $ac_last_try; then
  27306. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27307. else
  27308. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27309. fi
  27310. done
  27311. # For the awk script, D is an array of macro values keyed by name,
  27312. # likewise P contains macro parameters if any. Preserve backslash
  27313. # newline sequences.
  27314. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27315. sed -n '
  27316. s/.\{148\}/&'"$ac_delim"'/g
  27317. t rset
  27318. :rset
  27319. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27320. t def
  27321. d
  27322. :def
  27323. s/\\$//
  27324. t bsnl
  27325. s/["\\]/\\&/g
  27326. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27327. D["\1"]=" \3"/p
  27328. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27329. d
  27330. :bsnl
  27331. s/["\\]/\\&/g
  27332. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27333. D["\1"]=" \3\\\\\\n"\\/p
  27334. t cont
  27335. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27336. t cont
  27337. d
  27338. :cont
  27339. n
  27340. s/.\{148\}/&'"$ac_delim"'/g
  27341. t clear
  27342. :clear
  27343. s/\\$//
  27344. t bsnlc
  27345. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27346. d
  27347. :bsnlc
  27348. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27349. b cont
  27350. ' <confdefs.h | sed '
  27351. s/'"$ac_delim"'/"\\\
  27352. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27353. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27354. for (key in D) D_is_set[key] = 1
  27355. FS = ""
  27356. }
  27357. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27358. line = \$ 0
  27359. split(line, arg, " ")
  27360. if (arg[1] == "#") {
  27361. defundef = arg[2]
  27362. mac1 = arg[3]
  27363. } else {
  27364. defundef = substr(arg[1], 2)
  27365. mac1 = arg[2]
  27366. }
  27367. split(mac1, mac2, "(") #)
  27368. macro = mac2[1]
  27369. prefix = substr(line, 1, index(line, defundef) - 1)
  27370. if (D_is_set[macro]) {
  27371. # Preserve the white space surrounding the "#".
  27372. print prefix "define", macro P[macro] D[macro]
  27373. next
  27374. } else {
  27375. # Replace #undef with comments. This is necessary, for example,
  27376. # in the case of _POSIX_SOURCE, which is predefined and required
  27377. # on some systems where configure will not decide to define it.
  27378. if (defundef == "undef") {
  27379. print "/*", prefix defundef, macro, "*/"
  27380. next
  27381. }
  27382. }
  27383. }
  27384. { print }
  27385. _ACAWK
  27386. _ACEOF
  27387. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27388. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27389. fi # test -n "$CONFIG_HEADERS"
  27390. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27391. shift
  27392. for ac_tag
  27393. do
  27394. case $ac_tag in
  27395. :[FHLC]) ac_mode=$ac_tag; continue;;
  27396. esac
  27397. case $ac_mode$ac_tag in
  27398. :[FHL]*:*);;
  27399. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27400. :[FH]-) ac_tag=-:-;;
  27401. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27402. esac
  27403. ac_save_IFS=$IFS
  27404. IFS=:
  27405. set x $ac_tag
  27406. IFS=$ac_save_IFS
  27407. shift
  27408. ac_file=$1
  27409. shift
  27410. case $ac_mode in
  27411. :L) ac_source=$1;;
  27412. :[FH])
  27413. ac_file_inputs=
  27414. for ac_f
  27415. do
  27416. case $ac_f in
  27417. -) ac_f="$ac_tmp/stdin";;
  27418. *) # Look for the file first in the build tree, then in the source tree
  27419. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27420. # because $ac_f cannot contain `:'.
  27421. test -f "$ac_f" ||
  27422. case $ac_f in
  27423. [\\/$]*) false;;
  27424. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27425. esac ||
  27426. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27427. esac
  27428. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27429. as_fn_append ac_file_inputs " '$ac_f'"
  27430. done
  27431. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27432. # use $as_me), people would be surprised to read:
  27433. # /* config.h. Generated by config.status. */
  27434. configure_input='Generated from '`
  27435. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27436. `' by configure.'
  27437. if test x"$ac_file" != x-; then
  27438. configure_input="$ac_file. $configure_input"
  27439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27440. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27441. fi
  27442. # Neutralize special characters interpreted by sed in replacement strings.
  27443. case $configure_input in #(
  27444. *\&* | *\|* | *\\* )
  27445. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27446. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27447. *) ac_sed_conf_input=$configure_input;;
  27448. esac
  27449. case $ac_tag in
  27450. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27451. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27452. esac
  27453. ;;
  27454. esac
  27455. ac_dir=`$as_dirname -- "$ac_file" ||
  27456. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27457. X"$ac_file" : 'X\(//\)[^/]' \| \
  27458. X"$ac_file" : 'X\(//\)$' \| \
  27459. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27460. printf "%s\n" X"$ac_file" |
  27461. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27462. s//\1/
  27463. q
  27464. }
  27465. /^X\(\/\/\)[^/].*/{
  27466. s//\1/
  27467. q
  27468. }
  27469. /^X\(\/\/\)$/{
  27470. s//\1/
  27471. q
  27472. }
  27473. /^X\(\/\).*/{
  27474. s//\1/
  27475. q
  27476. }
  27477. s/.*/./; q'`
  27478. as_dir="$ac_dir"; as_fn_mkdir_p
  27479. ac_builddir=.
  27480. case "$ac_dir" in
  27481. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27482. *)
  27483. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27484. # A ".." for each directory in $ac_dir_suffix.
  27485. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27486. case $ac_top_builddir_sub in
  27487. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27488. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27489. esac ;;
  27490. esac
  27491. ac_abs_top_builddir=$ac_pwd
  27492. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27493. # for backward compatibility:
  27494. ac_top_builddir=$ac_top_build_prefix
  27495. case $srcdir in
  27496. .) # We are building in place.
  27497. ac_srcdir=.
  27498. ac_top_srcdir=$ac_top_builddir_sub
  27499. ac_abs_top_srcdir=$ac_pwd ;;
  27500. [\\/]* | ?:[\\/]* ) # Absolute name.
  27501. ac_srcdir=$srcdir$ac_dir_suffix;
  27502. ac_top_srcdir=$srcdir
  27503. ac_abs_top_srcdir=$srcdir ;;
  27504. *) # Relative name.
  27505. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27506. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27507. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27508. esac
  27509. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27510. case $ac_mode in
  27511. :F)
  27512. #
  27513. # CONFIG_FILE
  27514. #
  27515. case $INSTALL in
  27516. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27517. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27518. esac
  27519. _ACEOF
  27520. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27521. # If the template does not know about datarootdir, expand it.
  27522. # FIXME: This hack should be removed a few years after 2.60.
  27523. ac_datarootdir_hack=; ac_datarootdir_seen=
  27524. ac_sed_dataroot='
  27525. /datarootdir/ {
  27526. p
  27527. q
  27528. }
  27529. /@datadir@/p
  27530. /@docdir@/p
  27531. /@infodir@/p
  27532. /@localedir@/p
  27533. /@mandir@/p'
  27534. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27535. *datarootdir*) ac_datarootdir_seen=yes;;
  27536. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27538. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27539. _ACEOF
  27540. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27541. ac_datarootdir_hack='
  27542. s&@datadir@&$datadir&g
  27543. s&@docdir@&$docdir&g
  27544. s&@infodir@&$infodir&g
  27545. s&@localedir@&$localedir&g
  27546. s&@mandir@&$mandir&g
  27547. s&\\\${datarootdir}&$datarootdir&g' ;;
  27548. esac
  27549. _ACEOF
  27550. # Neutralize VPATH when `$srcdir' = `.'.
  27551. # Shell code in configure.ac might set extrasub.
  27552. # FIXME: do we really want to maintain this feature?
  27553. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27554. ac_sed_extra="$ac_vpsub
  27555. $extrasub
  27556. _ACEOF
  27557. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27558. :t
  27559. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27560. s|@configure_input@|$ac_sed_conf_input|;t t
  27561. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27562. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27563. s&@srcdir@&$ac_srcdir&;t t
  27564. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27565. s&@top_srcdir@&$ac_top_srcdir&;t t
  27566. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27567. s&@builddir@&$ac_builddir&;t t
  27568. s&@abs_builddir@&$ac_abs_builddir&;t t
  27569. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27570. s&@INSTALL@&$ac_INSTALL&;t t
  27571. $ac_datarootdir_hack
  27572. "
  27573. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27574. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27575. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27576. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27577. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27578. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27580. which seems to be undefined. Please make sure it is defined" >&5
  27581. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27582. which seems to be undefined. Please make sure it is defined" >&2;}
  27583. rm -f "$ac_tmp/stdin"
  27584. case $ac_file in
  27585. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27586. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27587. esac \
  27588. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27589. ;;
  27590. :H)
  27591. #
  27592. # CONFIG_HEADER
  27593. #
  27594. if test x"$ac_file" != x-; then
  27595. {
  27596. printf "%s\n" "/* $configure_input */" >&1 \
  27597. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27598. } >"$ac_tmp/config.h" \
  27599. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27600. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27602. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27603. else
  27604. rm -f "$ac_file"
  27605. mv "$ac_tmp/config.h" "$ac_file" \
  27606. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27607. fi
  27608. else
  27609. printf "%s\n" "/* $configure_input */" >&1 \
  27610. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27611. || as_fn_error $? "could not create -" "$LINENO" 5
  27612. fi
  27613. ;;
  27614. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27615. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27616. ;;
  27617. esac
  27618. case $ac_file$ac_mode in
  27619. "libtool":C)
  27620. # See if we are running on zsh, and set the options that allow our
  27621. # commands through without removal of \ escapes.
  27622. if test -n "${ZSH_VERSION+set}"; then
  27623. setopt NO_GLOB_SUBST
  27624. fi
  27625. cfgfile=${ofile}T
  27626. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27627. $RM "$cfgfile"
  27628. cat <<_LT_EOF >> "$cfgfile"
  27629. #! $SHELL
  27630. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27631. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27632. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27633. # Provide generalized library-building support services.
  27634. # Written by Gordon Matzigkeit, 1996
  27635. # Copyright (C) 2014 Free Software Foundation, Inc.
  27636. # This is free software; see the source for copying conditions. There is NO
  27637. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27638. # GNU Libtool is free software; you can redistribute it and/or modify
  27639. # it under the terms of the GNU General Public License as published by
  27640. # the Free Software Foundation; either version 2 of of the License, or
  27641. # (at your option) any later version.
  27642. #
  27643. # As a special exception to the GNU General Public License, if you
  27644. # distribute this file as part of a program or library that is built
  27645. # using GNU Libtool, you may include this file under the same
  27646. # distribution terms that you use for the rest of that program.
  27647. #
  27648. # GNU Libtool is distributed in the hope that it will be useful, but
  27649. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27650. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27651. # GNU General Public License for more details.
  27652. #
  27653. # You should have received a copy of the GNU General Public License
  27654. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27655. # The names of the tagged configurations supported by this script.
  27656. available_tags='RC CXX '
  27657. # Configured defaults for sys_lib_dlsearch_path munging.
  27658. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27659. # ### BEGIN LIBTOOL CONFIG
  27660. # Which release of libtool.m4 was used?
  27661. macro_version=$macro_version
  27662. macro_revision=$macro_revision
  27663. # Assembler program.
  27664. AS=$lt_AS
  27665. # DLL creation program.
  27666. DLLTOOL=$lt_DLLTOOL
  27667. # Object dumper program.
  27668. OBJDUMP=$lt_OBJDUMP
  27669. # Whether or not to build shared libraries.
  27670. build_libtool_libs=$enable_shared
  27671. # Whether or not to build static libraries.
  27672. build_old_libs=$enable_static
  27673. # What type of objects to build.
  27674. pic_mode=$pic_mode
  27675. # Whether or not to optimize for fast installation.
  27676. fast_install=$enable_fast_install
  27677. # Shared archive member basename,for filename based shared library versioning on AIX.
  27678. shared_archive_member_spec=$shared_archive_member_spec
  27679. # Shell to use when invoking shell scripts.
  27680. SHELL=$lt_SHELL
  27681. # An echo program that protects backslashes.
  27682. ECHO=$lt_ECHO
  27683. # The PATH separator for the build system.
  27684. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27685. # The host system.
  27686. host_alias=$host_alias
  27687. host=$host
  27688. host_os=$host_os
  27689. # The build system.
  27690. build_alias=$build_alias
  27691. build=$build
  27692. build_os=$build_os
  27693. # A sed program that does not truncate output.
  27694. SED=$lt_SED
  27695. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27696. Xsed="\$SED -e 1s/^X//"
  27697. # A grep program that handles long lines.
  27698. GREP=$lt_GREP
  27699. # An ERE matcher.
  27700. EGREP=$lt_EGREP
  27701. # A literal string matcher.
  27702. FGREP=$lt_FGREP
  27703. # A BSD- or MS-compatible name lister.
  27704. NM=$lt_NM
  27705. # Whether we need soft or hard links.
  27706. LN_S=$lt_LN_S
  27707. # What is the maximum length of a command?
  27708. max_cmd_len=$max_cmd_len
  27709. # Object file suffix (normally "o").
  27710. objext=$ac_objext
  27711. # Executable file suffix (normally "").
  27712. exeext=$exeext
  27713. # whether the shell understands "unset".
  27714. lt_unset=$lt_unset
  27715. # turn spaces into newlines.
  27716. SP2NL=$lt_lt_SP2NL
  27717. # turn newlines into spaces.
  27718. NL2SP=$lt_lt_NL2SP
  27719. # convert \$build file names to \$host format.
  27720. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27721. # convert \$build files to toolchain format.
  27722. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27723. # Method to check whether dependent libraries are shared objects.
  27724. deplibs_check_method=$lt_deplibs_check_method
  27725. # Command to use when deplibs_check_method = "file_magic".
  27726. file_magic_cmd=$lt_file_magic_cmd
  27727. # How to find potential files when deplibs_check_method = "file_magic".
  27728. file_magic_glob=$lt_file_magic_glob
  27729. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27730. want_nocaseglob=$lt_want_nocaseglob
  27731. # Command to associate shared and link libraries.
  27732. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27733. # The archiver.
  27734. AR=$lt_AR
  27735. # Flags to create an archive.
  27736. AR_FLAGS=$lt_AR_FLAGS
  27737. # How to feed a file listing to the archiver.
  27738. archiver_list_spec=$lt_archiver_list_spec
  27739. # A symbol stripping program.
  27740. STRIP=$lt_STRIP
  27741. # Commands used to install an old-style archive.
  27742. RANLIB=$lt_RANLIB
  27743. old_postinstall_cmds=$lt_old_postinstall_cmds
  27744. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27745. # Whether to use a lock for old archive extraction.
  27746. lock_old_archive_extraction=$lock_old_archive_extraction
  27747. # A C compiler.
  27748. LTCC=$lt_CC
  27749. # LTCC compiler flags.
  27750. LTCFLAGS=$lt_CFLAGS
  27751. # Take the output of nm and produce a listing of raw symbols and C names.
  27752. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27753. # Transform the output of nm in a proper C declaration.
  27754. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27755. # Transform the output of nm into a list of symbols to manually relocate.
  27756. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27757. # Transform the output of nm in a C name address pair.
  27758. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27759. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27760. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27761. # The name lister interface.
  27762. nm_interface=$lt_lt_cv_nm_interface
  27763. # Specify filename containing input files for \$NM.
  27764. nm_file_list_spec=$lt_nm_file_list_spec
  27765. # The root where to search for dependent libraries,and where our libraries should be installed.
  27766. lt_sysroot=$lt_sysroot
  27767. # Command to truncate a binary pipe.
  27768. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27769. # The name of the directory that contains temporary libtool files.
  27770. objdir=$objdir
  27771. # Used to examine libraries when file_magic_cmd begins with "file".
  27772. MAGIC_CMD=$MAGIC_CMD
  27773. # Must we lock files when doing compilation?
  27774. need_locks=$lt_need_locks
  27775. # Manifest tool.
  27776. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27777. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27778. DSYMUTIL=$lt_DSYMUTIL
  27779. # Tool to change global to local symbols on Mac OS X.
  27780. NMEDIT=$lt_NMEDIT
  27781. # Tool to manipulate fat objects and archives on Mac OS X.
  27782. LIPO=$lt_LIPO
  27783. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27784. OTOOL=$lt_OTOOL
  27785. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27786. OTOOL64=$lt_OTOOL64
  27787. # Old archive suffix (normally "a").
  27788. libext=$libext
  27789. # Shared library suffix (normally ".so").
  27790. shrext_cmds=$lt_shrext_cmds
  27791. # The commands to extract the exported symbol list from a shared archive.
  27792. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27793. # Variables whose values should be saved in libtool wrapper scripts and
  27794. # restored at link time.
  27795. variables_saved_for_relink=$lt_variables_saved_for_relink
  27796. # Do we need the "lib" prefix for modules?
  27797. need_lib_prefix=$need_lib_prefix
  27798. # Do we need a version for libraries?
  27799. need_version=$need_version
  27800. # Library versioning type.
  27801. version_type=$version_type
  27802. # Shared library runtime path variable.
  27803. runpath_var=$runpath_var
  27804. # Shared library path variable.
  27805. shlibpath_var=$shlibpath_var
  27806. # Is shlibpath searched before the hard-coded library search path?
  27807. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27808. # Format of library name prefix.
  27809. libname_spec=$lt_libname_spec
  27810. # List of archive names. First name is the real one, the rest are links.
  27811. # The last name is the one that the linker finds with -lNAME
  27812. library_names_spec=$lt_library_names_spec
  27813. # The coded name of the library, if different from the real name.
  27814. soname_spec=$lt_soname_spec
  27815. # Permission mode override for installation of shared libraries.
  27816. install_override_mode=$lt_install_override_mode
  27817. # Command to use after installation of a shared archive.
  27818. postinstall_cmds=$lt_postinstall_cmds
  27819. # Command to use after uninstallation of a shared archive.
  27820. postuninstall_cmds=$lt_postuninstall_cmds
  27821. # Commands used to finish a libtool library installation in a directory.
  27822. finish_cmds=$lt_finish_cmds
  27823. # As "finish_cmds", except a single script fragment to be evaled but
  27824. # not shown.
  27825. finish_eval=$lt_finish_eval
  27826. # Whether we should hardcode library paths into libraries.
  27827. hardcode_into_libs=$hardcode_into_libs
  27828. # Compile-time system search path for libraries.
  27829. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27830. # Detected run-time system search path for libraries.
  27831. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27832. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27833. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27834. # Whether dlopen is supported.
  27835. dlopen_support=$enable_dlopen
  27836. # Whether dlopen of programs is supported.
  27837. dlopen_self=$enable_dlopen_self
  27838. # Whether dlopen of statically linked programs is supported.
  27839. dlopen_self_static=$enable_dlopen_self_static
  27840. # Commands to strip libraries.
  27841. old_striplib=$lt_old_striplib
  27842. striplib=$lt_striplib
  27843. # The linker used to build libraries.
  27844. LD=$lt_LD
  27845. # How to create reloadable object files.
  27846. reload_flag=$lt_reload_flag
  27847. reload_cmds=$lt_reload_cmds
  27848. # Commands used to build an old-style archive.
  27849. old_archive_cmds=$lt_old_archive_cmds
  27850. # A language specific compiler.
  27851. CC=$lt_compiler
  27852. # Is the compiler the GNU compiler?
  27853. with_gcc=$GCC
  27854. # Compiler flag to turn off builtin functions.
  27855. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27856. # Additional compiler flags for building library objects.
  27857. pic_flag=$lt_lt_prog_compiler_pic
  27858. # How to pass a linker flag through the compiler.
  27859. wl=$lt_lt_prog_compiler_wl
  27860. # Compiler flag to prevent dynamic linking.
  27861. link_static_flag=$lt_lt_prog_compiler_static
  27862. # Does compiler simultaneously support -c and -o options?
  27863. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27864. # Whether or not to add -lc for building shared libraries.
  27865. build_libtool_need_lc=$archive_cmds_need_lc
  27866. # Whether or not to disallow shared libs when runtime libs are static.
  27867. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27868. # Compiler flag to allow reflexive dlopens.
  27869. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27870. # Compiler flag to generate shared objects directly from archives.
  27871. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27872. # Whether the compiler copes with passing no objects directly.
  27873. compiler_needs_object=$lt_compiler_needs_object
  27874. # Create an old-style archive from a shared archive.
  27875. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27876. # Create a temporary old-style archive to link instead of a shared archive.
  27877. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27878. # Commands used to build a shared archive.
  27879. archive_cmds=$lt_archive_cmds
  27880. archive_expsym_cmds=$lt_archive_expsym_cmds
  27881. # Commands used to build a loadable module if different from building
  27882. # a shared archive.
  27883. module_cmds=$lt_module_cmds
  27884. module_expsym_cmds=$lt_module_expsym_cmds
  27885. # Whether we are building with GNU ld or not.
  27886. with_gnu_ld=$lt_with_gnu_ld
  27887. # Flag that allows shared libraries with undefined symbols to be built.
  27888. allow_undefined_flag=$lt_allow_undefined_flag
  27889. # Flag that enforces no undefined symbols.
  27890. no_undefined_flag=$lt_no_undefined_flag
  27891. # Flag to hardcode \$libdir into a binary during linking.
  27892. # This must work even if \$libdir does not exist
  27893. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27894. # Whether we need a single "-rpath" flag with a separated argument.
  27895. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27896. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27897. # DIR into the resulting binary.
  27898. hardcode_direct=$hardcode_direct
  27899. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27900. # DIR into the resulting binary and the resulting library dependency is
  27901. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27902. # library is relocated.
  27903. hardcode_direct_absolute=$hardcode_direct_absolute
  27904. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27905. # into the resulting binary.
  27906. hardcode_minus_L=$hardcode_minus_L
  27907. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27908. # into the resulting binary.
  27909. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27910. # Set to "yes" if building a shared library automatically hardcodes DIR
  27911. # into the library and all subsequent libraries and executables linked
  27912. # against it.
  27913. hardcode_automatic=$hardcode_automatic
  27914. # Set to yes if linker adds runtime paths of dependent libraries
  27915. # to runtime path list.
  27916. inherit_rpath=$inherit_rpath
  27917. # Whether libtool must link a program against all its dependency libraries.
  27918. link_all_deplibs=$link_all_deplibs
  27919. # Set to "yes" if exported symbols are required.
  27920. always_export_symbols=$always_export_symbols
  27921. # The commands to list exported symbols.
  27922. export_symbols_cmds=$lt_export_symbols_cmds
  27923. # Symbols that should not be listed in the preloaded symbols.
  27924. exclude_expsyms=$lt_exclude_expsyms
  27925. # Symbols that must always be exported.
  27926. include_expsyms=$lt_include_expsyms
  27927. # Commands necessary for linking programs (against libraries) with templates.
  27928. prelink_cmds=$lt_prelink_cmds
  27929. # Commands necessary for finishing linking programs.
  27930. postlink_cmds=$lt_postlink_cmds
  27931. # Specify filename containing input files.
  27932. file_list_spec=$lt_file_list_spec
  27933. # How to hardcode a shared library path into an executable.
  27934. hardcode_action=$hardcode_action
  27935. # The directories searched by this compiler when creating a shared library.
  27936. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27937. # Dependencies to place before and after the objects being linked to
  27938. # create a shared library.
  27939. predep_objects=$lt_predep_objects
  27940. postdep_objects=$lt_postdep_objects
  27941. predeps=$lt_predeps
  27942. postdeps=$lt_postdeps
  27943. # The library search path used internally by the compiler when linking
  27944. # a shared library.
  27945. compiler_lib_search_path=$lt_compiler_lib_search_path
  27946. # ### END LIBTOOL CONFIG
  27947. _LT_EOF
  27948. cat <<'_LT_EOF' >> "$cfgfile"
  27949. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27950. # func_munge_path_list VARIABLE PATH
  27951. # -----------------------------------
  27952. # VARIABLE is name of variable containing _space_ separated list of
  27953. # directories to be munged by the contents of PATH, which is string
  27954. # having a format:
  27955. # "DIR[:DIR]:"
  27956. # string "DIR[ DIR]" will be prepended to VARIABLE
  27957. # ":DIR[:DIR]"
  27958. # string "DIR[ DIR]" will be appended to VARIABLE
  27959. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27960. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27961. # "DIRA[ DIRA]" will be appended to VARIABLE
  27962. # "DIR[:DIR]"
  27963. # VARIABLE will be replaced by "DIR[ DIR]"
  27964. func_munge_path_list ()
  27965. {
  27966. case x$2 in
  27967. x)
  27968. ;;
  27969. *:)
  27970. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27971. ;;
  27972. x:*)
  27973. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27974. ;;
  27975. *::*)
  27976. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27977. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27978. ;;
  27979. *)
  27980. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27981. ;;
  27982. esac
  27983. }
  27984. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27985. func_cc_basename ()
  27986. {
  27987. for cc_temp in $*""; do
  27988. case $cc_temp in
  27989. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27990. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27991. \-*) ;;
  27992. *) break;;
  27993. esac
  27994. done
  27995. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27996. }
  27997. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27998. _LT_EOF
  27999. case $host_os in
  28000. aix3*)
  28001. cat <<\_LT_EOF >> "$cfgfile"
  28002. # AIX sometimes has problems with the GCC collect2 program. For some
  28003. # reason, if we set the COLLECT_NAMES environment variable, the problems
  28004. # vanish in a puff of smoke.
  28005. if test set != "${COLLECT_NAMES+set}"; then
  28006. COLLECT_NAMES=
  28007. export COLLECT_NAMES
  28008. fi
  28009. _LT_EOF
  28010. ;;
  28011. esac
  28012. ltmain=$ac_aux_dir/ltmain.sh
  28013. # We use sed instead of cat because bash on DJGPP gets confused if
  28014. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  28015. # text mode, it properly converts lines to CR/LF. This bash problem
  28016. # is reportedly fixed, but why not run on old versions too?
  28017. sed '$q' "$ltmain" >> "$cfgfile" \
  28018. || (rm -f "$cfgfile"; exit 1)
  28019. mv -f "$cfgfile" "$ofile" ||
  28020. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  28021. chmod +x "$ofile"
  28022. cat <<_LT_EOF >> "$ofile"
  28023. # ### BEGIN LIBTOOL TAG CONFIG: RC
  28024. # The linker used to build libraries.
  28025. LD=$lt_LD_RC
  28026. # How to create reloadable object files.
  28027. reload_flag=$lt_reload_flag_RC
  28028. reload_cmds=$lt_reload_cmds_RC
  28029. # Commands used to build an old-style archive.
  28030. old_archive_cmds=$lt_old_archive_cmds_RC
  28031. # A language specific compiler.
  28032. CC=$lt_compiler_RC
  28033. # Is the compiler the GNU compiler?
  28034. with_gcc=$GCC_RC
  28035. # Compiler flag to turn off builtin functions.
  28036. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  28037. # Additional compiler flags for building library objects.
  28038. pic_flag=$lt_lt_prog_compiler_pic_RC
  28039. # How to pass a linker flag through the compiler.
  28040. wl=$lt_lt_prog_compiler_wl_RC
  28041. # Compiler flag to prevent dynamic linking.
  28042. link_static_flag=$lt_lt_prog_compiler_static_RC
  28043. # Does compiler simultaneously support -c and -o options?
  28044. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  28045. # Whether or not to add -lc for building shared libraries.
  28046. build_libtool_need_lc=$archive_cmds_need_lc_RC
  28047. # Whether or not to disallow shared libs when runtime libs are static.
  28048. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  28049. # Compiler flag to allow reflexive dlopens.
  28050. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  28051. # Compiler flag to generate shared objects directly from archives.
  28052. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  28053. # Whether the compiler copes with passing no objects directly.
  28054. compiler_needs_object=$lt_compiler_needs_object_RC
  28055. # Create an old-style archive from a shared archive.
  28056. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  28057. # Create a temporary old-style archive to link instead of a shared archive.
  28058. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  28059. # Commands used to build a shared archive.
  28060. archive_cmds=$lt_archive_cmds_RC
  28061. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  28062. # Commands used to build a loadable module if different from building
  28063. # a shared archive.
  28064. module_cmds=$lt_module_cmds_RC
  28065. module_expsym_cmds=$lt_module_expsym_cmds_RC
  28066. # Whether we are building with GNU ld or not.
  28067. with_gnu_ld=$lt_with_gnu_ld_RC
  28068. # Flag that allows shared libraries with undefined symbols to be built.
  28069. allow_undefined_flag=$lt_allow_undefined_flag_RC
  28070. # Flag that enforces no undefined symbols.
  28071. no_undefined_flag=$lt_no_undefined_flag_RC
  28072. # Flag to hardcode \$libdir into a binary during linking.
  28073. # This must work even if \$libdir does not exist
  28074. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  28075. # Whether we need a single "-rpath" flag with a separated argument.
  28076. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  28077. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28078. # DIR into the resulting binary.
  28079. hardcode_direct=$hardcode_direct_RC
  28080. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28081. # DIR into the resulting binary and the resulting library dependency is
  28082. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28083. # library is relocated.
  28084. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  28085. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28086. # into the resulting binary.
  28087. hardcode_minus_L=$hardcode_minus_L_RC
  28088. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28089. # into the resulting binary.
  28090. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  28091. # Set to "yes" if building a shared library automatically hardcodes DIR
  28092. # into the library and all subsequent libraries and executables linked
  28093. # against it.
  28094. hardcode_automatic=$hardcode_automatic_RC
  28095. # Set to yes if linker adds runtime paths of dependent libraries
  28096. # to runtime path list.
  28097. inherit_rpath=$inherit_rpath_RC
  28098. # Whether libtool must link a program against all its dependency libraries.
  28099. link_all_deplibs=$link_all_deplibs_RC
  28100. # Set to "yes" if exported symbols are required.
  28101. always_export_symbols=$always_export_symbols_RC
  28102. # The commands to list exported symbols.
  28103. export_symbols_cmds=$lt_export_symbols_cmds_RC
  28104. # Symbols that should not be listed in the preloaded symbols.
  28105. exclude_expsyms=$lt_exclude_expsyms_RC
  28106. # Symbols that must always be exported.
  28107. include_expsyms=$lt_include_expsyms_RC
  28108. # Commands necessary for linking programs (against libraries) with templates.
  28109. prelink_cmds=$lt_prelink_cmds_RC
  28110. # Commands necessary for finishing linking programs.
  28111. postlink_cmds=$lt_postlink_cmds_RC
  28112. # Specify filename containing input files.
  28113. file_list_spec=$lt_file_list_spec_RC
  28114. # How to hardcode a shared library path into an executable.
  28115. hardcode_action=$hardcode_action_RC
  28116. # The directories searched by this compiler when creating a shared library.
  28117. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  28118. # Dependencies to place before and after the objects being linked to
  28119. # create a shared library.
  28120. predep_objects=$lt_predep_objects_RC
  28121. postdep_objects=$lt_postdep_objects_RC
  28122. predeps=$lt_predeps_RC
  28123. postdeps=$lt_postdeps_RC
  28124. # The library search path used internally by the compiler when linking
  28125. # a shared library.
  28126. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  28127. # ### END LIBTOOL TAG CONFIG: RC
  28128. _LT_EOF
  28129. cat <<_LT_EOF >> "$ofile"
  28130. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  28131. # The linker used to build libraries.
  28132. LD=$lt_LD_CXX
  28133. # How to create reloadable object files.
  28134. reload_flag=$lt_reload_flag_CXX
  28135. reload_cmds=$lt_reload_cmds_CXX
  28136. # Commands used to build an old-style archive.
  28137. old_archive_cmds=$lt_old_archive_cmds_CXX
  28138. # A language specific compiler.
  28139. CC=$lt_compiler_CXX
  28140. # Is the compiler the GNU compiler?
  28141. with_gcc=$GCC_CXX
  28142. # Compiler flag to turn off builtin functions.
  28143. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  28144. # Additional compiler flags for building library objects.
  28145. pic_flag=$lt_lt_prog_compiler_pic_CXX
  28146. # How to pass a linker flag through the compiler.
  28147. wl=$lt_lt_prog_compiler_wl_CXX
  28148. # Compiler flag to prevent dynamic linking.
  28149. link_static_flag=$lt_lt_prog_compiler_static_CXX
  28150. # Does compiler simultaneously support -c and -o options?
  28151. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  28152. # Whether or not to add -lc for building shared libraries.
  28153. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  28154. # Whether or not to disallow shared libs when runtime libs are static.
  28155. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  28156. # Compiler flag to allow reflexive dlopens.
  28157. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  28158. # Compiler flag to generate shared objects directly from archives.
  28159. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  28160. # Whether the compiler copes with passing no objects directly.
  28161. compiler_needs_object=$lt_compiler_needs_object_CXX
  28162. # Create an old-style archive from a shared archive.
  28163. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  28164. # Create a temporary old-style archive to link instead of a shared archive.
  28165. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  28166. # Commands used to build a shared archive.
  28167. archive_cmds=$lt_archive_cmds_CXX
  28168. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  28169. # Commands used to build a loadable module if different from building
  28170. # a shared archive.
  28171. module_cmds=$lt_module_cmds_CXX
  28172. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  28173. # Whether we are building with GNU ld or not.
  28174. with_gnu_ld=$lt_with_gnu_ld_CXX
  28175. # Flag that allows shared libraries with undefined symbols to be built.
  28176. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  28177. # Flag that enforces no undefined symbols.
  28178. no_undefined_flag=$lt_no_undefined_flag_CXX
  28179. # Flag to hardcode \$libdir into a binary during linking.
  28180. # This must work even if \$libdir does not exist
  28181. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  28182. # Whether we need a single "-rpath" flag with a separated argument.
  28183. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  28184. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28185. # DIR into the resulting binary.
  28186. hardcode_direct=$hardcode_direct_CXX
  28187. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28188. # DIR into the resulting binary and the resulting library dependency is
  28189. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28190. # library is relocated.
  28191. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  28192. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28193. # into the resulting binary.
  28194. hardcode_minus_L=$hardcode_minus_L_CXX
  28195. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28196. # into the resulting binary.
  28197. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28198. # Set to "yes" if building a shared library automatically hardcodes DIR
  28199. # into the library and all subsequent libraries and executables linked
  28200. # against it.
  28201. hardcode_automatic=$hardcode_automatic_CXX
  28202. # Set to yes if linker adds runtime paths of dependent libraries
  28203. # to runtime path list.
  28204. inherit_rpath=$inherit_rpath_CXX
  28205. # Whether libtool must link a program against all its dependency libraries.
  28206. link_all_deplibs=$link_all_deplibs_CXX
  28207. # Set to "yes" if exported symbols are required.
  28208. always_export_symbols=$always_export_symbols_CXX
  28209. # The commands to list exported symbols.
  28210. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28211. # Symbols that should not be listed in the preloaded symbols.
  28212. exclude_expsyms=$lt_exclude_expsyms_CXX
  28213. # Symbols that must always be exported.
  28214. include_expsyms=$lt_include_expsyms_CXX
  28215. # Commands necessary for linking programs (against libraries) with templates.
  28216. prelink_cmds=$lt_prelink_cmds_CXX
  28217. # Commands necessary for finishing linking programs.
  28218. postlink_cmds=$lt_postlink_cmds_CXX
  28219. # Specify filename containing input files.
  28220. file_list_spec=$lt_file_list_spec_CXX
  28221. # How to hardcode a shared library path into an executable.
  28222. hardcode_action=$hardcode_action_CXX
  28223. # The directories searched by this compiler when creating a shared library.
  28224. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28225. # Dependencies to place before and after the objects being linked to
  28226. # create a shared library.
  28227. predep_objects=$lt_predep_objects_CXX
  28228. postdep_objects=$lt_postdep_objects_CXX
  28229. predeps=$lt_predeps_CXX
  28230. postdeps=$lt_postdeps_CXX
  28231. # The library search path used internally by the compiler when linking
  28232. # a shared library.
  28233. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28234. # ### END LIBTOOL TAG CONFIG: CXX
  28235. _LT_EOF
  28236. ;;
  28237. "sdl2_config":C) chmod a+x sdl2-config ;;
  28238. "summary":C) printf "$SUMMARY" ;;
  28239. esac
  28240. done # for ac_tag
  28241. as_fn_exit 0
  28242. _ACEOF
  28243. ac_clean_files=$ac_clean_files_save
  28244. test $ac_write_fail = 0 ||
  28245. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28246. # configure is writing to config.log, and then calls config.status.
  28247. # config.status does its own redirection, appending to config.log.
  28248. # Unfortunately, on DOS this fails, as config.log is still kept open
  28249. # by configure, so config.status won't be able to write to it; its
  28250. # output is simply discarded. So we exec the FD to /dev/null,
  28251. # effectively closing config.log, so it can be properly (re)opened and
  28252. # appended to by config.status. When coming back to configure, we
  28253. # need to make the FD available again.
  28254. if test "$no_create" != yes; then
  28255. ac_cs_success=:
  28256. ac_config_status_args=
  28257. test "$silent" = yes &&
  28258. ac_config_status_args="$ac_config_status_args --quiet"
  28259. exec 5>/dev/null
  28260. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28261. exec 5>>config.log
  28262. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28263. # would make configure fail if this is the last instruction.
  28264. $ac_cs_success || as_fn_exit 1
  28265. fi
  28266. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28268. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28269. fi