configure 965 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. PKGCONFIG_DEPENDS
  621. SDL_RLD_FLAGS
  622. SDL_STATIC_LIBS
  623. SDL_LIBS
  624. SDL_CFLAGS
  625. bin_prefix_relpath
  626. cmake_prefix_relpath
  627. SDL_VENDOR_INFO
  628. INSTALL_SDL2_CONFIG
  629. LIBUSB_LIBS
  630. LIBUSB_CFLAGS
  631. IBUS_LIBS
  632. IBUS_CFLAGS
  633. DBUS_LIBS
  634. DBUS_CFLAGS
  635. LIBGBM_LIBS
  636. LIBGBM_CFLAGS
  637. LIBDRM_LIBS
  638. LIBDRM_CFLAGS
  639. DIRECTFB_LIBS
  640. DIRECTFB_CFLAGS
  641. X_EXTRA_LIBS
  642. X_LIBS
  643. X_PRE_LIBS
  644. X_CFLAGS
  645. XMKMF
  646. RPI_EGL_LIBS
  647. RPI_EGL_CFLAGS
  648. RPI_LIBS
  649. RPI_CFLAGS
  650. DECOR_LIBS
  651. DECOR_CFLAGS
  652. FUSIONSOUND_LIBS
  653. FUSIONSOUND_CFLAGS
  654. SNDIO_LIBS
  655. SNDIO_CFLAGS
  656. ARTSCONFIG
  657. PULSEAUDIO_LIBS
  658. PULSEAUDIO_CFLAGS
  659. PIPEWIRE_LIBS
  660. PIPEWIRE_CFLAGS
  661. ESD_CONFIG
  662. ESD_LIBS
  663. ESD_CFLAGS
  664. JACK_LIBS
  665. JACK_CFLAGS
  666. ALSA_LIBS
  667. ALSA_CFLAGS
  668. ALLOCA
  669. CPP
  670. LIBTOOLLINKERTAG
  671. LINKER
  672. SORT
  673. PKG_CONFIG_LIBDIR
  674. PKG_CONFIG_PATH
  675. PKG_CONFIG
  676. SET_MAKE
  677. INSTALL_DATA
  678. INSTALL_SCRIPT
  679. INSTALL_PROGRAM
  680. CXXCPP
  681. ac_ct_CXX
  682. CXXFLAGS
  683. CXX
  684. LT_AGE
  685. LT_REVISION
  686. LT_CURRENT
  687. LT_RELEASE
  688. RC
  689. LT_SYS_LIBRARY_PATH
  690. OTOOL64
  691. OTOOL
  692. LIPO
  693. NMEDIT
  694. DSYMUTIL
  695. MANIFEST_TOOL
  696. AWK
  697. RANLIB
  698. STRIP
  699. ac_ct_AR
  700. AR
  701. LN_S
  702. NM
  703. ac_ct_DUMPBIN
  704. DUMPBIN
  705. LD
  706. FGREP
  707. EGREP
  708. GREP
  709. SED
  710. OBJEXT
  711. EXEEXT
  712. ac_ct_CC
  713. CPPFLAGS
  714. LDFLAGS
  715. CFLAGS
  716. CC
  717. host_os
  718. host_vendor
  719. host_cpu
  720. host
  721. build_os
  722. build_vendor
  723. build_cpu
  724. build
  725. LIBTOOL
  726. OBJDUMP
  727. DLLTOOL
  728. AS
  729. SDL_VERSION
  730. SDL_BINARY_AGE
  731. SDL_INTERFACE_AGE
  732. SDL_MICRO_VERSION
  733. SDL_MINOR_VERSION
  734. SDL_MAJOR_VERSION
  735. target_alias
  736. host_alias
  737. build_alias
  738. LIBS
  739. ECHO_T
  740. ECHO_N
  741. ECHO_C
  742. DEFS
  743. mandir
  744. localedir
  745. libdir
  746. psdir
  747. pdfdir
  748. dvidir
  749. htmldir
  750. infodir
  751. docdir
  752. oldincludedir
  753. includedir
  754. runstatedir
  755. localstatedir
  756. sharedstatedir
  757. sysconfdir
  758. datadir
  759. datarootdir
  760. libexecdir
  761. sbindir
  762. bindir
  763. program_transform_name
  764. prefix
  765. exec_prefix
  766. PACKAGE_URL
  767. PACKAGE_BUGREPORT
  768. PACKAGE_STRING
  769. PACKAGE_VERSION
  770. PACKAGE_TARNAME
  771. PACKAGE_NAME
  772. PATH_SEPARATOR
  773. SHELL'
  774. ac_subst_files=''
  775. ac_user_opts='
  776. enable_option_checking
  777. enable_shared
  778. enable_static
  779. with_pic
  780. enable_fast_install
  781. with_aix_soname
  782. with_gnu_ld
  783. with_sysroot
  784. enable_libtool_lock
  785. enable_largefile
  786. enable_assertions
  787. enable_dependency_tracking
  788. enable_libc
  789. enable_system_iconv
  790. enable_libiconv
  791. enable_gcc_atomics
  792. enable_atomic
  793. enable_audio
  794. enable_video
  795. enable_render
  796. enable_events
  797. enable_joystick
  798. enable_haptic
  799. enable_hidapi
  800. enable_sensor
  801. enable_power
  802. enable_filesystem
  803. enable_timers
  804. enable_file
  805. enable_misc
  806. enable_locale
  807. enable_loadso
  808. enable_cpuinfo
  809. enable_assembly
  810. enable_ssemath
  811. enable_mmx
  812. enable_3dnow
  813. enable_sse
  814. enable_sse2
  815. enable_sse3
  816. enable_altivec
  817. enable_lsx
  818. enable_oss
  819. enable_alsa
  820. with_alsa_prefix
  821. with_alsa_inc_prefix
  822. enable_alsatest
  823. enable_alsa_shared
  824. enable_jack
  825. enable_jack_shared
  826. enable_esd
  827. with_esd_prefix
  828. with_esd_exec_prefix
  829. enable_esdtest
  830. enable_esd_shared
  831. enable_pipewire
  832. enable_pipewire_shared
  833. enable_pulseaudio
  834. enable_pulseaudio_shared
  835. enable_arts
  836. enable_arts_shared
  837. enable_nas
  838. enable_nas_shared
  839. enable_sndio
  840. enable_sndio_shared
  841. enable_fusionsound
  842. enable_fusionsound_shared
  843. enable_diskaudio
  844. enable_dummyaudio
  845. enable_libsamplerate
  846. enable_libsamplerate_shared
  847. enable_arm_simd
  848. enable_arm_neon
  849. enable_werror
  850. enable_video_wayland
  851. enable_video_wayland_qt_touch
  852. enable_wayland_shared
  853. enable_libdecor
  854. enable_libdecor_shared
  855. enable_video_rpi
  856. enable_video_x11
  857. with_x
  858. enable_x11_shared
  859. enable_video_x11_xcursor
  860. enable_video_x11_xdbe
  861. enable_video_x11_xinput
  862. enable_video_x11_xfixes
  863. enable_video_x11_xrandr
  864. enable_video_x11_scrnsaver
  865. enable_video_x11_xshape
  866. enable_video_vivante
  867. enable_video_cocoa
  868. enable_video_metal
  869. enable_render_metal
  870. enable_video_directfb
  871. enable_directfb_shared
  872. enable_video_kmsdrm
  873. enable_kmsdrm_shared
  874. enable_video_dummy
  875. enable_video_offscreen
  876. enable_video_opengl
  877. enable_video_opengles
  878. enable_video_opengles1
  879. enable_video_opengles2
  880. enable_video_vulkan
  881. enable_libudev
  882. enable_dbus
  883. enable_ime
  884. enable_ibus
  885. enable_fcitx
  886. enable_joystick_mfi
  887. enable_pthreads
  888. enable_pthread_sem
  889. enable_directx
  890. enable_xinput
  891. enable_wasapi
  892. enable_hidapi_joystick
  893. enable_hidapi_libusb
  894. enable_clock_gettime
  895. enable_rpath
  896. enable_backgrounding_signal
  897. enable_foregrounding_signal
  898. enable_joystick_virtual
  899. enable_render_d3d
  900. enable_sdl2_config
  901. enable_vendor_info
  902. '
  903. ac_precious_vars='build_alias
  904. host_alias
  905. target_alias
  906. CC
  907. CFLAGS
  908. LDFLAGS
  909. LIBS
  910. CPPFLAGS
  911. LT_SYS_LIBRARY_PATH
  912. CXX
  913. CXXFLAGS
  914. CCC
  915. CXXCPP
  916. PKG_CONFIG
  917. PKG_CONFIG_PATH
  918. PKG_CONFIG_LIBDIR
  919. CPP
  920. JACK_CFLAGS
  921. JACK_LIBS
  922. ESD_CFLAGS
  923. ESD_LIBS
  924. PIPEWIRE_CFLAGS
  925. PIPEWIRE_LIBS
  926. PULSEAUDIO_CFLAGS
  927. PULSEAUDIO_LIBS
  928. SNDIO_CFLAGS
  929. SNDIO_LIBS
  930. FUSIONSOUND_CFLAGS
  931. FUSIONSOUND_LIBS
  932. DECOR_CFLAGS
  933. DECOR_LIBS
  934. RPI_CFLAGS
  935. RPI_LIBS
  936. RPI_EGL_CFLAGS
  937. RPI_EGL_LIBS
  938. XMKMF
  939. DIRECTFB_CFLAGS
  940. DIRECTFB_LIBS
  941. LIBDRM_CFLAGS
  942. LIBDRM_LIBS
  943. LIBGBM_CFLAGS
  944. LIBGBM_LIBS
  945. DBUS_CFLAGS
  946. DBUS_LIBS
  947. IBUS_CFLAGS
  948. IBUS_LIBS
  949. LIBUSB_CFLAGS
  950. LIBUSB_LIBS'
  951. # Initialize some variables set by options.
  952. ac_init_help=
  953. ac_init_version=false
  954. ac_unrecognized_opts=
  955. ac_unrecognized_sep=
  956. # The variables have the same names as the options, with
  957. # dashes changed to underlines.
  958. cache_file=/dev/null
  959. exec_prefix=NONE
  960. no_create=
  961. no_recursion=
  962. prefix=NONE
  963. program_prefix=NONE
  964. program_suffix=NONE
  965. program_transform_name=s,x,x,
  966. silent=
  967. site=
  968. srcdir=
  969. verbose=
  970. x_includes=NONE
  971. x_libraries=NONE
  972. # Installation directory options.
  973. # These are left unexpanded so users can "make install exec_prefix=/foo"
  974. # and all the variables that are supposed to be based on exec_prefix
  975. # by default will actually change.
  976. # Use braces instead of parens because sh, perl, etc. also accept them.
  977. # (The list follows the same order as the GNU Coding Standards.)
  978. bindir='${exec_prefix}/bin'
  979. sbindir='${exec_prefix}/sbin'
  980. libexecdir='${exec_prefix}/libexec'
  981. datarootdir='${prefix}/share'
  982. datadir='${datarootdir}'
  983. sysconfdir='${prefix}/etc'
  984. sharedstatedir='${prefix}/com'
  985. localstatedir='${prefix}/var'
  986. runstatedir='${localstatedir}/run'
  987. includedir='${prefix}/include'
  988. oldincludedir='/usr/include'
  989. docdir='${datarootdir}/doc/${PACKAGE}'
  990. infodir='${datarootdir}/info'
  991. htmldir='${docdir}'
  992. dvidir='${docdir}'
  993. pdfdir='${docdir}'
  994. psdir='${docdir}'
  995. libdir='${exec_prefix}/lib'
  996. localedir='${datarootdir}/locale'
  997. mandir='${datarootdir}/man'
  998. ac_prev=
  999. ac_dashdash=
  1000. for ac_option
  1001. do
  1002. # If the previous option needs an argument, assign it.
  1003. if test -n "$ac_prev"; then
  1004. eval $ac_prev=\$ac_option
  1005. ac_prev=
  1006. continue
  1007. fi
  1008. case $ac_option in
  1009. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1010. *=) ac_optarg= ;;
  1011. *) ac_optarg=yes ;;
  1012. esac
  1013. case $ac_dashdash$ac_option in
  1014. --)
  1015. ac_dashdash=yes ;;
  1016. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1017. ac_prev=bindir ;;
  1018. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1019. bindir=$ac_optarg ;;
  1020. -build | --build | --buil | --bui | --bu)
  1021. ac_prev=build_alias ;;
  1022. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1023. build_alias=$ac_optarg ;;
  1024. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1025. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1026. ac_prev=cache_file ;;
  1027. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1028. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1029. cache_file=$ac_optarg ;;
  1030. --config-cache | -C)
  1031. cache_file=config.cache ;;
  1032. -datadir | --datadir | --datadi | --datad)
  1033. ac_prev=datadir ;;
  1034. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1035. datadir=$ac_optarg ;;
  1036. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1037. | --dataroo | --dataro | --datar)
  1038. ac_prev=datarootdir ;;
  1039. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1040. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1041. datarootdir=$ac_optarg ;;
  1042. -disable-* | --disable-*)
  1043. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1044. # Reject names that are not valid shell variable names.
  1045. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1046. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1047. ac_useropt_orig=$ac_useropt
  1048. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1049. case $ac_user_opts in
  1050. *"
  1051. "enable_$ac_useropt"
  1052. "*) ;;
  1053. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1054. ac_unrecognized_sep=', ';;
  1055. esac
  1056. eval enable_$ac_useropt=no ;;
  1057. -docdir | --docdir | --docdi | --doc | --do)
  1058. ac_prev=docdir ;;
  1059. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1060. docdir=$ac_optarg ;;
  1061. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1062. ac_prev=dvidir ;;
  1063. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1064. dvidir=$ac_optarg ;;
  1065. -enable-* | --enable-*)
  1066. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1067. # Reject names that are not valid shell variable names.
  1068. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1069. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1070. ac_useropt_orig=$ac_useropt
  1071. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1072. case $ac_user_opts in
  1073. *"
  1074. "enable_$ac_useropt"
  1075. "*) ;;
  1076. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1077. ac_unrecognized_sep=', ';;
  1078. esac
  1079. eval enable_$ac_useropt=\$ac_optarg ;;
  1080. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1081. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1082. | --exec | --exe | --ex)
  1083. ac_prev=exec_prefix ;;
  1084. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1085. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1086. | --exec=* | --exe=* | --ex=*)
  1087. exec_prefix=$ac_optarg ;;
  1088. -gas | --gas | --ga | --g)
  1089. # Obsolete; use --with-gas.
  1090. with_gas=yes ;;
  1091. -help | --help | --hel | --he | -h)
  1092. ac_init_help=long ;;
  1093. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1094. ac_init_help=recursive ;;
  1095. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1096. ac_init_help=short ;;
  1097. -host | --host | --hos | --ho)
  1098. ac_prev=host_alias ;;
  1099. -host=* | --host=* | --hos=* | --ho=*)
  1100. host_alias=$ac_optarg ;;
  1101. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1102. ac_prev=htmldir ;;
  1103. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1104. | --ht=*)
  1105. htmldir=$ac_optarg ;;
  1106. -includedir | --includedir | --includedi | --included | --include \
  1107. | --includ | --inclu | --incl | --inc)
  1108. ac_prev=includedir ;;
  1109. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1110. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1111. includedir=$ac_optarg ;;
  1112. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1113. ac_prev=infodir ;;
  1114. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1115. infodir=$ac_optarg ;;
  1116. -libdir | --libdir | --libdi | --libd)
  1117. ac_prev=libdir ;;
  1118. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1119. libdir=$ac_optarg ;;
  1120. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1121. | --libexe | --libex | --libe)
  1122. ac_prev=libexecdir ;;
  1123. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1124. | --libexe=* | --libex=* | --libe=*)
  1125. libexecdir=$ac_optarg ;;
  1126. -localedir | --localedir | --localedi | --localed | --locale)
  1127. ac_prev=localedir ;;
  1128. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1129. localedir=$ac_optarg ;;
  1130. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1131. | --localstate | --localstat | --localsta | --localst | --locals)
  1132. ac_prev=localstatedir ;;
  1133. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1134. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1135. localstatedir=$ac_optarg ;;
  1136. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1137. ac_prev=mandir ;;
  1138. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1139. mandir=$ac_optarg ;;
  1140. -nfp | --nfp | --nf)
  1141. # Obsolete; use --without-fp.
  1142. with_fp=no ;;
  1143. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1144. | --no-cr | --no-c | -n)
  1145. no_create=yes ;;
  1146. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1147. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1148. no_recursion=yes ;;
  1149. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1150. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1151. | --oldin | --oldi | --old | --ol | --o)
  1152. ac_prev=oldincludedir ;;
  1153. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1154. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1155. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1156. oldincludedir=$ac_optarg ;;
  1157. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1158. ac_prev=prefix ;;
  1159. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1160. prefix=$ac_optarg ;;
  1161. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1162. | --program-pre | --program-pr | --program-p)
  1163. ac_prev=program_prefix ;;
  1164. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1165. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1166. program_prefix=$ac_optarg ;;
  1167. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1168. | --program-suf | --program-su | --program-s)
  1169. ac_prev=program_suffix ;;
  1170. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1171. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1172. program_suffix=$ac_optarg ;;
  1173. -program-transform-name | --program-transform-name \
  1174. | --program-transform-nam | --program-transform-na \
  1175. | --program-transform-n | --program-transform- \
  1176. | --program-transform | --program-transfor \
  1177. | --program-transfo | --program-transf \
  1178. | --program-trans | --program-tran \
  1179. | --progr-tra | --program-tr | --program-t)
  1180. ac_prev=program_transform_name ;;
  1181. -program-transform-name=* | --program-transform-name=* \
  1182. | --program-transform-nam=* | --program-transform-na=* \
  1183. | --program-transform-n=* | --program-transform-=* \
  1184. | --program-transform=* | --program-transfor=* \
  1185. | --program-transfo=* | --program-transf=* \
  1186. | --program-trans=* | --program-tran=* \
  1187. | --progr-tra=* | --program-tr=* | --program-t=*)
  1188. program_transform_name=$ac_optarg ;;
  1189. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1190. ac_prev=pdfdir ;;
  1191. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1192. pdfdir=$ac_optarg ;;
  1193. -psdir | --psdir | --psdi | --psd | --ps)
  1194. ac_prev=psdir ;;
  1195. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1196. psdir=$ac_optarg ;;
  1197. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1198. | -silent | --silent | --silen | --sile | --sil)
  1199. silent=yes ;;
  1200. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1201. | --runstate | --runstat | --runsta | --runst | --runs \
  1202. | --run | --ru | --r)
  1203. ac_prev=runstatedir ;;
  1204. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1205. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1206. | --run=* | --ru=* | --r=*)
  1207. runstatedir=$ac_optarg ;;
  1208. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1209. ac_prev=sbindir ;;
  1210. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1211. | --sbi=* | --sb=*)
  1212. sbindir=$ac_optarg ;;
  1213. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1214. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1215. | --sharedst | --shareds | --shared | --share | --shar \
  1216. | --sha | --sh)
  1217. ac_prev=sharedstatedir ;;
  1218. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1219. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1220. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1221. | --sha=* | --sh=*)
  1222. sharedstatedir=$ac_optarg ;;
  1223. -site | --site | --sit)
  1224. ac_prev=site ;;
  1225. -site=* | --site=* | --sit=*)
  1226. site=$ac_optarg ;;
  1227. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1228. ac_prev=srcdir ;;
  1229. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1230. srcdir=$ac_optarg ;;
  1231. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1232. | --syscon | --sysco | --sysc | --sys | --sy)
  1233. ac_prev=sysconfdir ;;
  1234. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1235. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1236. sysconfdir=$ac_optarg ;;
  1237. -target | --target | --targe | --targ | --tar | --ta | --t)
  1238. ac_prev=target_alias ;;
  1239. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1240. target_alias=$ac_optarg ;;
  1241. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1242. verbose=yes ;;
  1243. -version | --version | --versio | --versi | --vers | -V)
  1244. ac_init_version=: ;;
  1245. -with-* | --with-*)
  1246. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1247. # Reject names that are not valid shell variable names.
  1248. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1249. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1250. ac_useropt_orig=$ac_useropt
  1251. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1252. case $ac_user_opts in
  1253. *"
  1254. "with_$ac_useropt"
  1255. "*) ;;
  1256. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1257. ac_unrecognized_sep=', ';;
  1258. esac
  1259. eval with_$ac_useropt=\$ac_optarg ;;
  1260. -without-* | --without-*)
  1261. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1262. # Reject names that are not valid shell variable names.
  1263. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1264. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1265. ac_useropt_orig=$ac_useropt
  1266. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1267. case $ac_user_opts in
  1268. *"
  1269. "with_$ac_useropt"
  1270. "*) ;;
  1271. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1272. ac_unrecognized_sep=', ';;
  1273. esac
  1274. eval with_$ac_useropt=no ;;
  1275. --x)
  1276. # Obsolete; use --with-x.
  1277. with_x=yes ;;
  1278. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1279. | --x-incl | --x-inc | --x-in | --x-i)
  1280. ac_prev=x_includes ;;
  1281. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1282. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1283. x_includes=$ac_optarg ;;
  1284. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1285. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1286. ac_prev=x_libraries ;;
  1287. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1288. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1289. x_libraries=$ac_optarg ;;
  1290. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1291. Try \`$0 --help' for more information"
  1292. ;;
  1293. *=*)
  1294. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1295. # Reject names that are not valid shell variable names.
  1296. case $ac_envvar in #(
  1297. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1298. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1299. esac
  1300. eval $ac_envvar=\$ac_optarg
  1301. export $ac_envvar ;;
  1302. *)
  1303. # FIXME: should be removed in autoconf 3.0.
  1304. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1305. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1306. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1307. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1308. ;;
  1309. esac
  1310. done
  1311. if test -n "$ac_prev"; then
  1312. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1313. as_fn_error $? "missing argument to $ac_option"
  1314. fi
  1315. if test -n "$ac_unrecognized_opts"; then
  1316. case $enable_option_checking in
  1317. no) ;;
  1318. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1319. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1320. esac
  1321. fi
  1322. # Check all directory arguments for consistency.
  1323. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1324. datadir sysconfdir sharedstatedir localstatedir includedir \
  1325. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1326. libdir localedir mandir runstatedir
  1327. do
  1328. eval ac_val=\$$ac_var
  1329. # Remove trailing slashes.
  1330. case $ac_val in
  1331. */ )
  1332. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1333. eval $ac_var=\$ac_val;;
  1334. esac
  1335. # Be sure to have absolute directory names.
  1336. case $ac_val in
  1337. [\\/$]* | ?:[\\/]* ) continue;;
  1338. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1339. esac
  1340. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1341. done
  1342. # There might be people who depend on the old broken behavior: `$host'
  1343. # used to hold the argument of --host etc.
  1344. # FIXME: To remove some day.
  1345. build=$build_alias
  1346. host=$host_alias
  1347. target=$target_alias
  1348. # FIXME: To remove some day.
  1349. if test "x$host_alias" != x; then
  1350. if test "x$build_alias" = x; then
  1351. cross_compiling=maybe
  1352. elif test "x$build_alias" != "x$host_alias"; then
  1353. cross_compiling=yes
  1354. fi
  1355. fi
  1356. ac_tool_prefix=
  1357. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1358. test "$silent" = yes && exec 6>/dev/null
  1359. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1360. ac_ls_di=`ls -di .` &&
  1361. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1362. as_fn_error $? "working directory cannot be determined"
  1363. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1364. as_fn_error $? "pwd does not report name of working directory"
  1365. # Find the source files, if location was not specified.
  1366. if test -z "$srcdir"; then
  1367. ac_srcdir_defaulted=yes
  1368. # Try the directory containing this script, then the parent directory.
  1369. ac_confdir=`$as_dirname -- "$as_myself" ||
  1370. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1371. X"$as_myself" : 'X\(//\)[^/]' \| \
  1372. X"$as_myself" : 'X\(//\)$' \| \
  1373. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1374. printf "%s\n" X"$as_myself" |
  1375. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1376. s//\1/
  1377. q
  1378. }
  1379. /^X\(\/\/\)[^/].*/{
  1380. s//\1/
  1381. q
  1382. }
  1383. /^X\(\/\/\)$/{
  1384. s//\1/
  1385. q
  1386. }
  1387. /^X\(\/\).*/{
  1388. s//\1/
  1389. q
  1390. }
  1391. s/.*/./; q'`
  1392. srcdir=$ac_confdir
  1393. if test ! -r "$srcdir/$ac_unique_file"; then
  1394. srcdir=..
  1395. fi
  1396. else
  1397. ac_srcdir_defaulted=no
  1398. fi
  1399. if test ! -r "$srcdir/$ac_unique_file"; then
  1400. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1401. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1402. fi
  1403. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1404. ac_abs_confdir=`(
  1405. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1406. pwd)`
  1407. # When building in place, set srcdir=.
  1408. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1409. srcdir=.
  1410. fi
  1411. # Remove unnecessary trailing slashes from srcdir.
  1412. # Double slashes in file names in object file debugging info
  1413. # mess up M-x gdb in Emacs.
  1414. case $srcdir in
  1415. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1416. esac
  1417. for ac_var in $ac_precious_vars; do
  1418. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1419. eval ac_env_${ac_var}_value=\$${ac_var}
  1420. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1421. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1422. done
  1423. #
  1424. # Report the --help message.
  1425. #
  1426. if test "$ac_init_help" = "long"; then
  1427. # Omit some internal or obsolete options to make the list less imposing.
  1428. # This message is too long to be a string in the A/UX 3.1 sh.
  1429. cat <<_ACEOF
  1430. \`configure' configures this package to adapt to many kinds of systems.
  1431. Usage: $0 [OPTION]... [VAR=VALUE]...
  1432. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1433. VAR=VALUE. See below for descriptions of some of the useful variables.
  1434. Defaults for the options are specified in brackets.
  1435. Configuration:
  1436. -h, --help display this help and exit
  1437. --help=short display options specific to this package
  1438. --help=recursive display the short help of all the included packages
  1439. -V, --version display version information and exit
  1440. -q, --quiet, --silent do not print \`checking ...' messages
  1441. --cache-file=FILE cache test results in FILE [disabled]
  1442. -C, --config-cache alias for \`--cache-file=config.cache'
  1443. -n, --no-create do not create output files
  1444. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1445. Installation directories:
  1446. --prefix=PREFIX install architecture-independent files in PREFIX
  1447. [$ac_default_prefix]
  1448. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1449. [PREFIX]
  1450. By default, \`make install' will install all the files in
  1451. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1452. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1453. for instance \`--prefix=\$HOME'.
  1454. For better control, use the options below.
  1455. Fine tuning of the installation directories:
  1456. --bindir=DIR user executables [EPREFIX/bin]
  1457. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1458. --libexecdir=DIR program executables [EPREFIX/libexec]
  1459. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1460. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1461. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1462. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1463. --libdir=DIR object code libraries [EPREFIX/lib]
  1464. --includedir=DIR C header files [PREFIX/include]
  1465. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1466. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1467. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1468. --infodir=DIR info documentation [DATAROOTDIR/info]
  1469. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1470. --mandir=DIR man documentation [DATAROOTDIR/man]
  1471. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1472. --htmldir=DIR html documentation [DOCDIR]
  1473. --dvidir=DIR dvi documentation [DOCDIR]
  1474. --pdfdir=DIR pdf documentation [DOCDIR]
  1475. --psdir=DIR ps documentation [DOCDIR]
  1476. _ACEOF
  1477. cat <<\_ACEOF
  1478. X features:
  1479. --x-includes=DIR X include files are in DIR
  1480. --x-libraries=DIR X library files are in DIR
  1481. System types:
  1482. --build=BUILD configure for building on BUILD [guessed]
  1483. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1484. _ACEOF
  1485. fi
  1486. if test -n "$ac_init_help"; then
  1487. cat <<\_ACEOF
  1488. Optional Features:
  1489. --disable-option-checking ignore unrecognized --enable/--with options
  1490. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1491. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1492. --enable-shared[=PKGS] build shared libraries [default=yes]
  1493. --enable-static[=PKGS] build static libraries [default=yes]
  1494. --enable-fast-install[=PKGS]
  1495. optimize for fast installation [default=yes]
  1496. --disable-libtool-lock avoid locking (might break parallel builds)
  1497. --disable-largefile omit support for large files
  1498. --enable-assertions Enable internal sanity checks
  1499. (auto/disabled/release/enabled/paranoid)
  1500. [default=auto]
  1501. --enable-dependency-tracking
  1502. Use gcc -MMD -MT dependency tracking [default=yes]
  1503. --enable-libc Use the system C library [default=yes]
  1504. --enable-system-iconv Use iconv() from system-installed libraries
  1505. [default=no for windows, yes for others]
  1506. --enable-libiconv Prefer iconv() from libiconv, if available, over
  1507. libc version [default=no]
  1508. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1509. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1510. --enable-audio Enable the audio subsystem [default=yes]
  1511. --enable-video Enable the video subsystem [default=yes]
  1512. --enable-render Enable the render subsystem [default=yes]
  1513. --enable-events Enable the events subsystem [default=yes]
  1514. --enable-joystick Enable the joystick subsystem [default=yes]
  1515. --enable-haptic Enable the haptic (force feedback) subsystem
  1516. [default=yes]
  1517. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1518. --enable-sensor Enable the sensor subsystem [default=yes]
  1519. --enable-power Enable the power subsystem [default=yes]
  1520. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1521. --enable-timers Enable the timer subsystem [default=yes]
  1522. --enable-file Enable the file subsystem [default=yes]
  1523. --enable-misc Enable the misc subsystem [default=yes]
  1524. --enable-locale Enable the locale subsystem [default=yes]
  1525. --enable-loadso Enable the shared object loading subsystem
  1526. [default=yes]
  1527. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1528. --enable-assembly Enable assembly routines [default=yes]
  1529. --enable-ssemath Allow GCC to use SSE floating point math
  1530. [default=maybe]
  1531. --enable-mmx use MMX assembly routines [default=yes]
  1532. --enable-3dnow use 3DNow! assembly routines [default=no]
  1533. --enable-sse use SSE assembly routines [default=yes]
  1534. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1535. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1536. --enable-altivec use Altivec assembly routines [default=yes]
  1537. --enable-lsx use LSX assembly routines [default=yes]
  1538. --enable-oss support the OSS audio API [default=maybe]
  1539. --enable-alsa support the ALSA audio API [default=yes]
  1540. --disable-alsatest Do not try to compile and run a test Alsa program
  1541. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1542. --enable-jack use JACK audio [default=yes]
  1543. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1544. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1545. --disable-esdtest Do not try to compile and run a test ESD program
  1546. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1547. --enable-pipewire use Pipewire audio [default=yes]
  1548. --enable-pipewire-shared
  1549. dynamically load Pipewire support [default=yes]
  1550. --enable-pulseaudio use PulseAudio [default=yes]
  1551. --enable-pulseaudio-shared
  1552. dynamically load PulseAudio support [default=yes]
  1553. --enable-arts support the Analog Real Time Synthesizer
  1554. [default=yes]
  1555. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1556. --enable-nas support the NAS audio API [default=yes]
  1557. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1558. --enable-sndio support the sndio audio API [default=yes]
  1559. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1560. --enable-fusionsound use FusionSound audio driver [default=no]
  1561. --enable-fusionsound-shared
  1562. dynamically load fusionsound audio support
  1563. [default=yes]
  1564. --enable-diskaudio support the disk writer audio driver [default=yes]
  1565. --enable-dummyaudio support the dummy audio driver [default=yes]
  1566. --enable-libsamplerate use libsamplerate for audio rate conversion
  1567. [default=yes]
  1568. --enable-libsamplerate-shared
  1569. dynamically load libsamplerate [default=yes]
  1570. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1571. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1572. --enable-werror treat warnings as errors [default=no]
  1573. --enable-video-wayland use Wayland video driver [default=yes]
  1574. --enable-video-wayland-qt-touch
  1575. QtWayland server support for Wayland video driver
  1576. [default=yes]
  1577. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1578. --enable-libdecor use libdecor for Wayland client-side decorations
  1579. [default=yes]
  1580. --enable-libdecor-shared
  1581. dynamically load libdecor [default=yes]
  1582. --enable-video-rpi use Raspberry Pi 0-3 video driver [default=yes]
  1583. --enable-video-x11 use X11 video driver [default=maybe]
  1584. --enable-x11-shared dynamically load X11 support [default=maybe]
  1585. --enable-video-x11-xcursor
  1586. enable X11 Xcursor support [default=yes]
  1587. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1588. --enable-video-x11-xinput
  1589. enable X11 XInput extension for manymouse, tablets,
  1590. etc [default=yes]
  1591. --enable-video-x11-xfixes
  1592. enable X11 Xfixes support [default=yes]
  1593. --enable-video-x11-xrandr
  1594. enable X11 Xrandr extension for fullscreen
  1595. [default=yes]
  1596. --enable-video-x11-scrnsaver
  1597. enable X11 screensaver extension [default=yes]
  1598. --enable-video-x11-xshape
  1599. enable X11 XShape support [default=yes]
  1600. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1601. --enable-video-cocoa use Cocoa video driver [default=yes]
  1602. --enable-video-metal include Metal support [default=yes]
  1603. --enable-render-metal enable the Metal render driver [default=yes]
  1604. --enable-video-directfb use DirectFB video driver [default=no]
  1605. --enable-directfb-shared
  1606. dynamically load directfb support [default=yes]
  1607. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1608. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1609. --enable-video-dummy use dummy video driver [default=yes]
  1610. --enable-video-offscreen
  1611. use offscreen video driver [default=yes]
  1612. --enable-video-opengl include OpenGL support [default=yes]
  1613. --enable-video-opengles include OpenGL ES support [default=yes]
  1614. --enable-video-opengles1
  1615. include OpenGL ES 1.1 support [default=yes]
  1616. --enable-video-opengles2
  1617. include OpenGL ES 2.0 support [default=yes]
  1618. --enable-video-vulkan include Vulkan support [default=yes]
  1619. --enable-libudev enable libudev support [default=yes]
  1620. --enable-dbus enable D-Bus support [default=yes]
  1621. --enable-ime enable IME support [default=yes]
  1622. --enable-ibus enable IBus support [default=yes]
  1623. --enable-fcitx enable fcitx support [default=yes]
  1624. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1625. --enable-pthreads use POSIX threads for multi-threading
  1626. [default=maybe]
  1627. --enable-pthread-sem use pthread semaphores [default=maybe]
  1628. --enable-directx use DirectX for Windows audio/video [default=yes]
  1629. --enable-xinput use Xinput for Windows [default=yes]
  1630. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1631. --enable-hidapi-joystick
  1632. use HIDAPI for low level joystick drivers
  1633. [default=yes]
  1634. --enable-hidapi-libusb use libusb for low level joystick drivers
  1635. [default=maybe]
  1636. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1637. UNIX [default=yes]
  1638. --enable-rpath use an rpath when linking SDL [default=yes]
  1639. --enable-backgrounding-signal
  1640. number to use for magic backgrounding signal or 'no'
  1641. [default=no]
  1642. --enable-foregrounding-signal
  1643. number to use for magic foregrounding signal or 'no'
  1644. [default=no]
  1645. --enable-joystick-virtual
  1646. enable virtual joystick APIs [default=yes]
  1647. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1648. --enable-sdl2-config Install sdl2-config [default=yes]
  1649. --enable-vendor-info=STRING
  1650. Add vendor info to SDL_REVISION
  1651. Optional Packages:
  1652. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1653. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1654. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1655. both]
  1656. --with-aix-soname=aix|svr4|both
  1657. shared library versioning (aka "SONAME") variant to
  1658. provide on AIX, [default=aix].
  1659. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1660. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1661. compiler's sysroot if not specified).
  1662. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1663. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1664. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1665. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1666. --with-x use the X Window System
  1667. Some influential environment variables:
  1668. CC C compiler command
  1669. CFLAGS C compiler flags
  1670. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1671. nonstandard directory <lib dir>
  1672. LIBS libraries to pass to the linker, e.g. -l<library>
  1673. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1674. you have headers in a nonstandard directory <include dir>
  1675. LT_SYS_LIBRARY_PATH
  1676. User-defined run-time library search path.
  1677. CXX C++ compiler command
  1678. CXXFLAGS C++ compiler flags
  1679. CXXCPP C++ preprocessor
  1680. PKG_CONFIG path to pkg-config utility
  1681. PKG_CONFIG_PATH
  1682. directories to add to pkg-config's search path
  1683. PKG_CONFIG_LIBDIR
  1684. path overriding pkg-config's built-in search path
  1685. CPP C preprocessor
  1686. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1687. JACK_LIBS linker flags for JACK, overriding pkg-config
  1688. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1689. ESD_LIBS linker flags for ESD, overriding pkg-config
  1690. PIPEWIRE_CFLAGS
  1691. C compiler flags for PIPEWIRE, overriding pkg-config
  1692. PIPEWIRE_LIBS
  1693. linker flags for PIPEWIRE, overriding pkg-config
  1694. PULSEAUDIO_CFLAGS
  1695. C compiler flags for PULSEAUDIO, overriding pkg-config
  1696. PULSEAUDIO_LIBS
  1697. linker flags for PULSEAUDIO, overriding pkg-config
  1698. SNDIO_CFLAGS
  1699. C compiler flags for SNDIO, overriding pkg-config
  1700. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1701. FUSIONSOUND_CFLAGS
  1702. C compiler flags for FUSIONSOUND, overriding pkg-config
  1703. FUSIONSOUND_LIBS
  1704. linker flags for FUSIONSOUND, overriding pkg-config
  1705. DECOR_CFLAGS
  1706. C compiler flags for DECOR, overriding pkg-config
  1707. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1708. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1709. RPI_LIBS linker flags for RPI, overriding pkg-config
  1710. RPI_EGL_CFLAGS
  1711. C compiler flags for RPI_EGL, overriding pkg-config
  1712. RPI_EGL_LIBS
  1713. linker flags for RPI_EGL, overriding pkg-config
  1714. XMKMF Path to xmkmf, Makefile generator for X Window System
  1715. DIRECTFB_CFLAGS
  1716. C compiler flags for DIRECTFB, overriding pkg-config
  1717. DIRECTFB_LIBS
  1718. linker flags for DIRECTFB, overriding pkg-config
  1719. LIBDRM_CFLAGS
  1720. C compiler flags for LIBDRM, overriding pkg-config
  1721. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1722. LIBGBM_CFLAGS
  1723. C compiler flags for LIBGBM, overriding pkg-config
  1724. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1725. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1726. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1727. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1728. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1729. LIBUSB_CFLAGS
  1730. C compiler flags for LIBUSB, overriding pkg-config
  1731. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1732. Use these variables to override the choices made by `configure' or to help
  1733. it to find libraries and programs with nonstandard names/locations.
  1734. Report bugs to the package provider.
  1735. _ACEOF
  1736. ac_status=$?
  1737. fi
  1738. if test "$ac_init_help" = "recursive"; then
  1739. # If there are subdirs, report their specific --help.
  1740. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1741. test -d "$ac_dir" ||
  1742. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1743. continue
  1744. ac_builddir=.
  1745. case "$ac_dir" in
  1746. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1747. *)
  1748. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1749. # A ".." for each directory in $ac_dir_suffix.
  1750. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1751. case $ac_top_builddir_sub in
  1752. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1753. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1754. esac ;;
  1755. esac
  1756. ac_abs_top_builddir=$ac_pwd
  1757. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1758. # for backward compatibility:
  1759. ac_top_builddir=$ac_top_build_prefix
  1760. case $srcdir in
  1761. .) # We are building in place.
  1762. ac_srcdir=.
  1763. ac_top_srcdir=$ac_top_builddir_sub
  1764. ac_abs_top_srcdir=$ac_pwd ;;
  1765. [\\/]* | ?:[\\/]* ) # Absolute name.
  1766. ac_srcdir=$srcdir$ac_dir_suffix;
  1767. ac_top_srcdir=$srcdir
  1768. ac_abs_top_srcdir=$srcdir ;;
  1769. *) # Relative name.
  1770. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1771. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1772. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1773. esac
  1774. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1775. cd "$ac_dir" || { ac_status=$?; continue; }
  1776. # Check for configure.gnu first; this name is used for a wrapper for
  1777. # Metaconfig's "Configure" on case-insensitive file systems.
  1778. if test -f "$ac_srcdir/configure.gnu"; then
  1779. echo &&
  1780. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1781. elif test -f "$ac_srcdir/configure"; then
  1782. echo &&
  1783. $SHELL "$ac_srcdir/configure" --help=recursive
  1784. else
  1785. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1786. fi || ac_status=$?
  1787. cd "$ac_pwd" || { ac_status=$?; break; }
  1788. done
  1789. fi
  1790. test -n "$ac_init_help" && exit $ac_status
  1791. if $ac_init_version; then
  1792. cat <<\_ACEOF
  1793. configure
  1794. generated by GNU Autoconf 2.71
  1795. Copyright (C) 2021 Free Software Foundation, Inc.
  1796. This configure script is free software; the Free Software Foundation
  1797. gives unlimited permission to copy, distribute and modify it.
  1798. _ACEOF
  1799. exit
  1800. fi
  1801. ## ------------------------ ##
  1802. ## Autoconf initialization. ##
  1803. ## ------------------------ ##
  1804. # ac_fn_c_try_compile LINENO
  1805. # --------------------------
  1806. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1807. ac_fn_c_try_compile ()
  1808. {
  1809. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1810. rm -f conftest.$ac_objext conftest.beam
  1811. if { { ac_try="$ac_compile"
  1812. case "(($ac_try" in
  1813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1814. *) ac_try_echo=$ac_try;;
  1815. esac
  1816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1817. printf "%s\n" "$ac_try_echo"; } >&5
  1818. (eval "$ac_compile") 2>conftest.err
  1819. ac_status=$?
  1820. if test -s conftest.err; then
  1821. grep -v '^ *+' conftest.err >conftest.er1
  1822. cat conftest.er1 >&5
  1823. mv -f conftest.er1 conftest.err
  1824. fi
  1825. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1826. test $ac_status = 0; } && {
  1827. test -z "$ac_c_werror_flag" ||
  1828. test ! -s conftest.err
  1829. } && test -s conftest.$ac_objext
  1830. then :
  1831. ac_retval=0
  1832. else $as_nop
  1833. printf "%s\n" "$as_me: failed program was:" >&5
  1834. sed 's/^/| /' conftest.$ac_ext >&5
  1835. ac_retval=1
  1836. fi
  1837. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1838. as_fn_set_status $ac_retval
  1839. } # ac_fn_c_try_compile
  1840. # ac_fn_c_try_link LINENO
  1841. # -----------------------
  1842. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1843. ac_fn_c_try_link ()
  1844. {
  1845. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1846. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1847. if { { ac_try="$ac_link"
  1848. case "(($ac_try" in
  1849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1850. *) ac_try_echo=$ac_try;;
  1851. esac
  1852. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1853. printf "%s\n" "$ac_try_echo"; } >&5
  1854. (eval "$ac_link") 2>conftest.err
  1855. ac_status=$?
  1856. if test -s conftest.err; then
  1857. grep -v '^ *+' conftest.err >conftest.er1
  1858. cat conftest.er1 >&5
  1859. mv -f conftest.er1 conftest.err
  1860. fi
  1861. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1862. test $ac_status = 0; } && {
  1863. test -z "$ac_c_werror_flag" ||
  1864. test ! -s conftest.err
  1865. } && test -s conftest$ac_exeext && {
  1866. test "$cross_compiling" = yes ||
  1867. test -x conftest$ac_exeext
  1868. }
  1869. then :
  1870. ac_retval=0
  1871. else $as_nop
  1872. printf "%s\n" "$as_me: failed program was:" >&5
  1873. sed 's/^/| /' conftest.$ac_ext >&5
  1874. ac_retval=1
  1875. fi
  1876. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1877. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1878. # interfere with the next link command; also delete a directory that is
  1879. # left behind by Apple's compiler. We do this before executing the actions.
  1880. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1881. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1882. as_fn_set_status $ac_retval
  1883. } # ac_fn_c_try_link
  1884. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1885. # -------------------------------------------------------
  1886. # Tests whether HEADER exists and can be compiled using the include files in
  1887. # INCLUDES, setting the cache variable VAR accordingly.
  1888. ac_fn_c_check_header_compile ()
  1889. {
  1890. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1892. printf %s "checking for $2... " >&6; }
  1893. if eval test \${$3+y}
  1894. then :
  1895. printf %s "(cached) " >&6
  1896. else $as_nop
  1897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1898. /* end confdefs.h. */
  1899. $4
  1900. #include <$2>
  1901. _ACEOF
  1902. if ac_fn_c_try_compile "$LINENO"
  1903. then :
  1904. eval "$3=yes"
  1905. else $as_nop
  1906. eval "$3=no"
  1907. fi
  1908. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1909. fi
  1910. eval ac_res=\$$3
  1911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1912. printf "%s\n" "$ac_res" >&6; }
  1913. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1914. } # ac_fn_c_check_header_compile
  1915. # ac_fn_c_check_func LINENO FUNC VAR
  1916. # ----------------------------------
  1917. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1918. ac_fn_c_check_func ()
  1919. {
  1920. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1922. printf %s "checking for $2... " >&6; }
  1923. if eval test \${$3+y}
  1924. then :
  1925. printf %s "(cached) " >&6
  1926. else $as_nop
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1930. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1931. #define $2 innocuous_$2
  1932. /* System header to define __stub macros and hopefully few prototypes,
  1933. which can conflict with char $2 (); below. */
  1934. #include <limits.h>
  1935. #undef $2
  1936. /* Override any GCC internal prototype to avoid an error.
  1937. Use char because int might match the return type of a GCC
  1938. builtin and then its argument prototype would still apply. */
  1939. #ifdef __cplusplus
  1940. extern "C"
  1941. #endif
  1942. char $2 ();
  1943. /* The GNU C library defines this for functions which it implements
  1944. to always fail with ENOSYS. Some functions are actually named
  1945. something starting with __ and the normal name is an alias. */
  1946. #if defined __stub_$2 || defined __stub___$2
  1947. choke me
  1948. #endif
  1949. int
  1950. main (void)
  1951. {
  1952. return $2 ();
  1953. ;
  1954. return 0;
  1955. }
  1956. _ACEOF
  1957. if ac_fn_c_try_link "$LINENO"
  1958. then :
  1959. eval "$3=yes"
  1960. else $as_nop
  1961. eval "$3=no"
  1962. fi
  1963. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1964. conftest$ac_exeext conftest.$ac_ext
  1965. fi
  1966. eval ac_res=\$$3
  1967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1968. printf "%s\n" "$ac_res" >&6; }
  1969. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1970. } # ac_fn_c_check_func
  1971. # ac_fn_cxx_try_compile LINENO
  1972. # ----------------------------
  1973. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1974. ac_fn_cxx_try_compile ()
  1975. {
  1976. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1977. rm -f conftest.$ac_objext conftest.beam
  1978. if { { ac_try="$ac_compile"
  1979. case "(($ac_try" in
  1980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1981. *) ac_try_echo=$ac_try;;
  1982. esac
  1983. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1984. printf "%s\n" "$ac_try_echo"; } >&5
  1985. (eval "$ac_compile") 2>conftest.err
  1986. ac_status=$?
  1987. if test -s conftest.err; then
  1988. grep -v '^ *+' conftest.err >conftest.er1
  1989. cat conftest.er1 >&5
  1990. mv -f conftest.er1 conftest.err
  1991. fi
  1992. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1993. test $ac_status = 0; } && {
  1994. test -z "$ac_cxx_werror_flag" ||
  1995. test ! -s conftest.err
  1996. } && test -s conftest.$ac_objext
  1997. then :
  1998. ac_retval=0
  1999. else $as_nop
  2000. printf "%s\n" "$as_me: failed program was:" >&5
  2001. sed 's/^/| /' conftest.$ac_ext >&5
  2002. ac_retval=1
  2003. fi
  2004. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2005. as_fn_set_status $ac_retval
  2006. } # ac_fn_cxx_try_compile
  2007. # ac_fn_cxx_try_cpp LINENO
  2008. # ------------------------
  2009. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2010. ac_fn_cxx_try_cpp ()
  2011. {
  2012. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2013. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2014. case "(($ac_try" in
  2015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2016. *) ac_try_echo=$ac_try;;
  2017. esac
  2018. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2019. printf "%s\n" "$ac_try_echo"; } >&5
  2020. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2021. ac_status=$?
  2022. if test -s conftest.err; then
  2023. grep -v '^ *+' conftest.err >conftest.er1
  2024. cat conftest.er1 >&5
  2025. mv -f conftest.er1 conftest.err
  2026. fi
  2027. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2028. test $ac_status = 0; } > conftest.i && {
  2029. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2030. test ! -s conftest.err
  2031. }
  2032. then :
  2033. ac_retval=0
  2034. else $as_nop
  2035. printf "%s\n" "$as_me: failed program was:" >&5
  2036. sed 's/^/| /' conftest.$ac_ext >&5
  2037. ac_retval=1
  2038. fi
  2039. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2040. as_fn_set_status $ac_retval
  2041. } # ac_fn_cxx_try_cpp
  2042. # ac_fn_cxx_try_link LINENO
  2043. # -------------------------
  2044. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2045. ac_fn_cxx_try_link ()
  2046. {
  2047. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2048. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2049. if { { ac_try="$ac_link"
  2050. case "(($ac_try" in
  2051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2052. *) ac_try_echo=$ac_try;;
  2053. esac
  2054. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2055. printf "%s\n" "$ac_try_echo"; } >&5
  2056. (eval "$ac_link") 2>conftest.err
  2057. ac_status=$?
  2058. if test -s conftest.err; then
  2059. grep -v '^ *+' conftest.err >conftest.er1
  2060. cat conftest.er1 >&5
  2061. mv -f conftest.er1 conftest.err
  2062. fi
  2063. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2064. test $ac_status = 0; } && {
  2065. test -z "$ac_cxx_werror_flag" ||
  2066. test ! -s conftest.err
  2067. } && test -s conftest$ac_exeext && {
  2068. test "$cross_compiling" = yes ||
  2069. test -x conftest$ac_exeext
  2070. }
  2071. then :
  2072. ac_retval=0
  2073. else $as_nop
  2074. printf "%s\n" "$as_me: failed program was:" >&5
  2075. sed 's/^/| /' conftest.$ac_ext >&5
  2076. ac_retval=1
  2077. fi
  2078. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2079. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2080. # interfere with the next link command; also delete a directory that is
  2081. # left behind by Apple's compiler. We do this before executing the actions.
  2082. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2083. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2084. as_fn_set_status $ac_retval
  2085. } # ac_fn_cxx_try_link
  2086. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2087. # -------------------------------------------
  2088. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2089. # variable VAR accordingly.
  2090. ac_fn_c_check_type ()
  2091. {
  2092. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2094. printf %s "checking for $2... " >&6; }
  2095. if eval test \${$3+y}
  2096. then :
  2097. printf %s "(cached) " >&6
  2098. else $as_nop
  2099. eval "$3=no"
  2100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2101. /* end confdefs.h. */
  2102. $4
  2103. int
  2104. main (void)
  2105. {
  2106. if (sizeof ($2))
  2107. return 0;
  2108. ;
  2109. return 0;
  2110. }
  2111. _ACEOF
  2112. if ac_fn_c_try_compile "$LINENO"
  2113. then :
  2114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2115. /* end confdefs.h. */
  2116. $4
  2117. int
  2118. main (void)
  2119. {
  2120. if (sizeof (($2)))
  2121. return 0;
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_c_try_compile "$LINENO"
  2127. then :
  2128. else $as_nop
  2129. eval "$3=yes"
  2130. fi
  2131. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2132. fi
  2133. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2134. fi
  2135. eval ac_res=\$$3
  2136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2137. printf "%s\n" "$ac_res" >&6; }
  2138. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2139. } # ac_fn_c_check_type
  2140. # ac_fn_c_try_cpp LINENO
  2141. # ----------------------
  2142. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2143. ac_fn_c_try_cpp ()
  2144. {
  2145. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2146. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2147. case "(($ac_try" in
  2148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2149. *) ac_try_echo=$ac_try;;
  2150. esac
  2151. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2152. printf "%s\n" "$ac_try_echo"; } >&5
  2153. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2154. ac_status=$?
  2155. if test -s conftest.err; then
  2156. grep -v '^ *+' conftest.err >conftest.er1
  2157. cat conftest.er1 >&5
  2158. mv -f conftest.er1 conftest.err
  2159. fi
  2160. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2161. test $ac_status = 0; } > conftest.i && {
  2162. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2163. test ! -s conftest.err
  2164. }
  2165. then :
  2166. ac_retval=0
  2167. else $as_nop
  2168. printf "%s\n" "$as_me: failed program was:" >&5
  2169. sed 's/^/| /' conftest.$ac_ext >&5
  2170. ac_retval=1
  2171. fi
  2172. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2173. as_fn_set_status $ac_retval
  2174. } # ac_fn_c_try_cpp
  2175. # ac_fn_c_try_run LINENO
  2176. # ----------------------
  2177. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2178. # executables *can* be run.
  2179. ac_fn_c_try_run ()
  2180. {
  2181. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2182. if { { ac_try="$ac_link"
  2183. case "(($ac_try" in
  2184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2185. *) ac_try_echo=$ac_try;;
  2186. esac
  2187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2188. printf "%s\n" "$ac_try_echo"; } >&5
  2189. (eval "$ac_link") 2>&5
  2190. ac_status=$?
  2191. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2192. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2193. { { case "(($ac_try" in
  2194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2195. *) ac_try_echo=$ac_try;;
  2196. esac
  2197. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2198. printf "%s\n" "$ac_try_echo"; } >&5
  2199. (eval "$ac_try") 2>&5
  2200. ac_status=$?
  2201. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2202. test $ac_status = 0; }; }
  2203. then :
  2204. ac_retval=0
  2205. else $as_nop
  2206. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2207. printf "%s\n" "$as_me: failed program was:" >&5
  2208. sed 's/^/| /' conftest.$ac_ext >&5
  2209. ac_retval=$ac_status
  2210. fi
  2211. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2212. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2213. as_fn_set_status $ac_retval
  2214. } # ac_fn_c_try_run
  2215. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2216. # ----------------------------------------------------
  2217. # Tries to find if the field MEMBER exists in type AGGR, after including
  2218. # INCLUDES, setting cache variable VAR accordingly.
  2219. ac_fn_c_check_member ()
  2220. {
  2221. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2223. printf %s "checking for $2.$3... " >&6; }
  2224. if eval test \${$4+y}
  2225. then :
  2226. printf %s "(cached) " >&6
  2227. else $as_nop
  2228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2229. /* end confdefs.h. */
  2230. $5
  2231. int
  2232. main (void)
  2233. {
  2234. static $2 ac_aggr;
  2235. if (ac_aggr.$3)
  2236. return 0;
  2237. ;
  2238. return 0;
  2239. }
  2240. _ACEOF
  2241. if ac_fn_c_try_compile "$LINENO"
  2242. then :
  2243. eval "$4=yes"
  2244. else $as_nop
  2245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2246. /* end confdefs.h. */
  2247. $5
  2248. int
  2249. main (void)
  2250. {
  2251. static $2 ac_aggr;
  2252. if (sizeof ac_aggr.$3)
  2253. return 0;
  2254. ;
  2255. return 0;
  2256. }
  2257. _ACEOF
  2258. if ac_fn_c_try_compile "$LINENO"
  2259. then :
  2260. eval "$4=yes"
  2261. else $as_nop
  2262. eval "$4=no"
  2263. fi
  2264. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2265. fi
  2266. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2267. fi
  2268. eval ac_res=\$$4
  2269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2270. printf "%s\n" "$ac_res" >&6; }
  2271. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2272. } # ac_fn_c_check_member
  2273. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2274. # ------------------------------------------------------------------
  2275. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2276. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2277. ac_fn_check_decl ()
  2278. {
  2279. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2280. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2282. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2283. if eval test \${$3+y}
  2284. then :
  2285. printf %s "(cached) " >&6
  2286. else $as_nop
  2287. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2288. eval ac_save_FLAGS=\$$6
  2289. as_fn_append $6 " $5"
  2290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2291. /* end confdefs.h. */
  2292. $4
  2293. int
  2294. main (void)
  2295. {
  2296. #ifndef $as_decl_name
  2297. #ifdef __cplusplus
  2298. (void) $as_decl_use;
  2299. #else
  2300. (void) $as_decl_name;
  2301. #endif
  2302. #endif
  2303. ;
  2304. return 0;
  2305. }
  2306. _ACEOF
  2307. if ac_fn_c_try_compile "$LINENO"
  2308. then :
  2309. eval "$3=yes"
  2310. else $as_nop
  2311. eval "$3=no"
  2312. fi
  2313. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2314. eval $6=\$ac_save_FLAGS
  2315. fi
  2316. eval ac_res=\$$3
  2317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2318. printf "%s\n" "$ac_res" >&6; }
  2319. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2320. } # ac_fn_check_decl
  2321. ac_configure_args_raw=
  2322. for ac_arg
  2323. do
  2324. case $ac_arg in
  2325. *\'*)
  2326. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2327. esac
  2328. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2329. done
  2330. case $ac_configure_args_raw in
  2331. *$as_nl*)
  2332. ac_safe_unquote= ;;
  2333. *)
  2334. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2335. ac_unsafe_a="$ac_unsafe_z#~"
  2336. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2337. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2338. esac
  2339. cat >config.log <<_ACEOF
  2340. This file contains any messages produced by compilers while
  2341. running configure, to aid debugging if configure makes a mistake.
  2342. It was created by $as_me, which was
  2343. generated by GNU Autoconf 2.71. Invocation command line was
  2344. $ $0$ac_configure_args_raw
  2345. _ACEOF
  2346. exec 5>>config.log
  2347. {
  2348. cat <<_ASUNAME
  2349. ## --------- ##
  2350. ## Platform. ##
  2351. ## --------- ##
  2352. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2353. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2354. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2355. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2356. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2357. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2358. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2359. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2360. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2361. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2362. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2363. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2364. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2365. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2366. _ASUNAME
  2367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2368. for as_dir in $PATH
  2369. do
  2370. IFS=$as_save_IFS
  2371. case $as_dir in #(((
  2372. '') as_dir=./ ;;
  2373. */) ;;
  2374. *) as_dir=$as_dir/ ;;
  2375. esac
  2376. printf "%s\n" "PATH: $as_dir"
  2377. done
  2378. IFS=$as_save_IFS
  2379. } >&5
  2380. cat >&5 <<_ACEOF
  2381. ## ----------- ##
  2382. ## Core tests. ##
  2383. ## ----------- ##
  2384. _ACEOF
  2385. # Keep a trace of the command line.
  2386. # Strip out --no-create and --no-recursion so they do not pile up.
  2387. # Strip out --silent because we don't want to record it for future runs.
  2388. # Also quote any args containing shell meta-characters.
  2389. # Make two passes to allow for proper duplicate-argument suppression.
  2390. ac_configure_args=
  2391. ac_configure_args0=
  2392. ac_configure_args1=
  2393. ac_must_keep_next=false
  2394. for ac_pass in 1 2
  2395. do
  2396. for ac_arg
  2397. do
  2398. case $ac_arg in
  2399. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2400. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2401. | -silent | --silent | --silen | --sile | --sil)
  2402. continue ;;
  2403. *\'*)
  2404. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2405. esac
  2406. case $ac_pass in
  2407. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2408. 2)
  2409. as_fn_append ac_configure_args1 " '$ac_arg'"
  2410. if test $ac_must_keep_next = true; then
  2411. ac_must_keep_next=false # Got value, back to normal.
  2412. else
  2413. case $ac_arg in
  2414. *=* | --config-cache | -C | -disable-* | --disable-* \
  2415. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2416. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2417. | -with-* | --with-* | -without-* | --without-* | --x)
  2418. case "$ac_configure_args0 " in
  2419. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2420. esac
  2421. ;;
  2422. -* ) ac_must_keep_next=true ;;
  2423. esac
  2424. fi
  2425. as_fn_append ac_configure_args " '$ac_arg'"
  2426. ;;
  2427. esac
  2428. done
  2429. done
  2430. { ac_configure_args0=; unset ac_configure_args0;}
  2431. { ac_configure_args1=; unset ac_configure_args1;}
  2432. # When interrupted or exit'd, cleanup temporary files, and complete
  2433. # config.log. We remove comments because anyway the quotes in there
  2434. # would cause problems or look ugly.
  2435. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2436. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2437. trap 'exit_status=$?
  2438. # Sanitize IFS.
  2439. IFS=" "" $as_nl"
  2440. # Save into config.log some information that might help in debugging.
  2441. {
  2442. echo
  2443. printf "%s\n" "## ---------------- ##
  2444. ## Cache variables. ##
  2445. ## ---------------- ##"
  2446. echo
  2447. # The following way of writing the cache mishandles newlines in values,
  2448. (
  2449. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2450. eval ac_val=\$$ac_var
  2451. case $ac_val in #(
  2452. *${as_nl}*)
  2453. case $ac_var in #(
  2454. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2455. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2456. esac
  2457. case $ac_var in #(
  2458. _ | IFS | as_nl) ;; #(
  2459. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2460. *) { eval $ac_var=; unset $ac_var;} ;;
  2461. esac ;;
  2462. esac
  2463. done
  2464. (set) 2>&1 |
  2465. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2466. *${as_nl}ac_space=\ *)
  2467. sed -n \
  2468. "s/'\''/'\''\\\\'\'''\''/g;
  2469. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2470. ;; #(
  2471. *)
  2472. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2473. ;;
  2474. esac |
  2475. sort
  2476. )
  2477. echo
  2478. printf "%s\n" "## ----------------- ##
  2479. ## Output variables. ##
  2480. ## ----------------- ##"
  2481. echo
  2482. for ac_var in $ac_subst_vars
  2483. do
  2484. eval ac_val=\$$ac_var
  2485. case $ac_val in
  2486. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2487. esac
  2488. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2489. done | sort
  2490. echo
  2491. if test -n "$ac_subst_files"; then
  2492. printf "%s\n" "## ------------------- ##
  2493. ## File substitutions. ##
  2494. ## ------------------- ##"
  2495. echo
  2496. for ac_var in $ac_subst_files
  2497. do
  2498. eval ac_val=\$$ac_var
  2499. case $ac_val in
  2500. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2501. esac
  2502. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2503. done | sort
  2504. echo
  2505. fi
  2506. if test -s confdefs.h; then
  2507. printf "%s\n" "## ----------- ##
  2508. ## confdefs.h. ##
  2509. ## ----------- ##"
  2510. echo
  2511. cat confdefs.h
  2512. echo
  2513. fi
  2514. test "$ac_signal" != 0 &&
  2515. printf "%s\n" "$as_me: caught signal $ac_signal"
  2516. printf "%s\n" "$as_me: exit $exit_status"
  2517. } >&5
  2518. rm -f core *.core core.conftest.* &&
  2519. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2520. exit $exit_status
  2521. ' 0
  2522. for ac_signal in 1 2 13 15; do
  2523. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2524. done
  2525. ac_signal=0
  2526. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2527. rm -f -r conftest* confdefs.h
  2528. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2529. # Predefined preprocessor variables.
  2530. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2531. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2532. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2533. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2534. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2535. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2536. # Let the site file select an alternate cache file if it wants to.
  2537. # Prefer an explicitly selected file to automatically selected ones.
  2538. if test -n "$CONFIG_SITE"; then
  2539. ac_site_files="$CONFIG_SITE"
  2540. elif test "x$prefix" != xNONE; then
  2541. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2542. else
  2543. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2544. fi
  2545. for ac_site_file in $ac_site_files
  2546. do
  2547. case $ac_site_file in #(
  2548. */*) :
  2549. ;; #(
  2550. *) :
  2551. ac_site_file=./$ac_site_file ;;
  2552. esac
  2553. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2555. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2556. sed 's/^/| /' "$ac_site_file" >&5
  2557. . "$ac_site_file" \
  2558. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2559. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2560. as_fn_error $? "failed to load site script $ac_site_file
  2561. See \`config.log' for more details" "$LINENO" 5; }
  2562. fi
  2563. done
  2564. if test -r "$cache_file"; then
  2565. # Some versions of bash will fail to source /dev/null (special files
  2566. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2567. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2569. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2570. case $cache_file in
  2571. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2572. *) . "./$cache_file";;
  2573. esac
  2574. fi
  2575. else
  2576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2577. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2578. >$cache_file
  2579. fi
  2580. # Test code for whether the C compiler supports C89 (global declarations)
  2581. ac_c_conftest_c89_globals='
  2582. /* Does the compiler advertise C89 conformance?
  2583. Do not test the value of __STDC__, because some compilers set it to 0
  2584. while being otherwise adequately conformant. */
  2585. #if !defined __STDC__
  2586. # error "Compiler does not advertise C89 conformance"
  2587. #endif
  2588. #include <stddef.h>
  2589. #include <stdarg.h>
  2590. struct stat;
  2591. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2592. struct buf { int x; };
  2593. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2594. static char *e (p, i)
  2595. char **p;
  2596. int i;
  2597. {
  2598. return p[i];
  2599. }
  2600. static char *f (char * (*g) (char **, int), char **p, ...)
  2601. {
  2602. char *s;
  2603. va_list v;
  2604. va_start (v,p);
  2605. s = g (p, va_arg (v,int));
  2606. va_end (v);
  2607. return s;
  2608. }
  2609. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2610. function prototypes and stuff, but not \xHH hex character constants.
  2611. These do not provoke an error unfortunately, instead are silently treated
  2612. as an "x". The following induces an error, until -std is added to get
  2613. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2614. array size at least. It is necessary to write \x00 == 0 to get something
  2615. that is true only with -std. */
  2616. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2617. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2618. inside strings and character constants. */
  2619. #define FOO(x) '\''x'\''
  2620. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2621. int test (int i, double x);
  2622. struct s1 {int (*f) (int a);};
  2623. struct s2 {int (*f) (double a);};
  2624. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2625. int, int);'
  2626. # Test code for whether the C compiler supports C89 (body of main).
  2627. ac_c_conftest_c89_main='
  2628. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2629. '
  2630. # Test code for whether the C compiler supports C99 (global declarations)
  2631. ac_c_conftest_c99_globals='
  2632. // Does the compiler advertise C99 conformance?
  2633. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2634. # error "Compiler does not advertise C99 conformance"
  2635. #endif
  2636. #include <stdbool.h>
  2637. extern int puts (const char *);
  2638. extern int printf (const char *, ...);
  2639. extern int dprintf (int, const char *, ...);
  2640. extern void *malloc (size_t);
  2641. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2642. // dprintf is used instead of fprintf to avoid needing to declare
  2643. // FILE and stderr.
  2644. #define debug(...) dprintf (2, __VA_ARGS__)
  2645. #define showlist(...) puts (#__VA_ARGS__)
  2646. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2647. static void
  2648. test_varargs_macros (void)
  2649. {
  2650. int x = 1234;
  2651. int y = 5678;
  2652. debug ("Flag");
  2653. debug ("X = %d\n", x);
  2654. showlist (The first, second, and third items.);
  2655. report (x>y, "x is %d but y is %d", x, y);
  2656. }
  2657. // Check long long types.
  2658. #define BIG64 18446744073709551615ull
  2659. #define BIG32 4294967295ul
  2660. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2661. #if !BIG_OK
  2662. #error "your preprocessor is broken"
  2663. #endif
  2664. #if BIG_OK
  2665. #else
  2666. #error "your preprocessor is broken"
  2667. #endif
  2668. static long long int bignum = -9223372036854775807LL;
  2669. static unsigned long long int ubignum = BIG64;
  2670. struct incomplete_array
  2671. {
  2672. int datasize;
  2673. double data[];
  2674. };
  2675. struct named_init {
  2676. int number;
  2677. const wchar_t *name;
  2678. double average;
  2679. };
  2680. typedef const char *ccp;
  2681. static inline int
  2682. test_restrict (ccp restrict text)
  2683. {
  2684. // See if C++-style comments work.
  2685. // Iterate through items via the restricted pointer.
  2686. // Also check for declarations in for loops.
  2687. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2688. continue;
  2689. return 0;
  2690. }
  2691. // Check varargs and va_copy.
  2692. static bool
  2693. test_varargs (const char *format, ...)
  2694. {
  2695. va_list args;
  2696. va_start (args, format);
  2697. va_list args_copy;
  2698. va_copy (args_copy, args);
  2699. const char *str = "";
  2700. int number = 0;
  2701. float fnumber = 0;
  2702. while (*format)
  2703. {
  2704. switch (*format++)
  2705. {
  2706. case '\''s'\'': // string
  2707. str = va_arg (args_copy, const char *);
  2708. break;
  2709. case '\''d'\'': // int
  2710. number = va_arg (args_copy, int);
  2711. break;
  2712. case '\''f'\'': // float
  2713. fnumber = va_arg (args_copy, double);
  2714. break;
  2715. default:
  2716. break;
  2717. }
  2718. }
  2719. va_end (args_copy);
  2720. va_end (args);
  2721. return *str && number && fnumber;
  2722. }
  2723. '
  2724. # Test code for whether the C compiler supports C99 (body of main).
  2725. ac_c_conftest_c99_main='
  2726. // Check bool.
  2727. _Bool success = false;
  2728. success |= (argc != 0);
  2729. // Check restrict.
  2730. if (test_restrict ("String literal") == 0)
  2731. success = true;
  2732. char *restrict newvar = "Another string";
  2733. // Check varargs.
  2734. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2735. test_varargs_macros ();
  2736. // Check flexible array members.
  2737. struct incomplete_array *ia =
  2738. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2739. ia->datasize = 10;
  2740. for (int i = 0; i < ia->datasize; ++i)
  2741. ia->data[i] = i * 1.234;
  2742. // Check named initializers.
  2743. struct named_init ni = {
  2744. .number = 34,
  2745. .name = L"Test wide string",
  2746. .average = 543.34343,
  2747. };
  2748. ni.number = 58;
  2749. int dynamic_array[ni.number];
  2750. dynamic_array[0] = argv[0][0];
  2751. dynamic_array[ni.number - 1] = 543;
  2752. // work around unused variable warnings
  2753. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2754. || dynamic_array[ni.number - 1] != 543);
  2755. '
  2756. # Test code for whether the C compiler supports C11 (global declarations)
  2757. ac_c_conftest_c11_globals='
  2758. // Does the compiler advertise C11 conformance?
  2759. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2760. # error "Compiler does not advertise C11 conformance"
  2761. #endif
  2762. // Check _Alignas.
  2763. char _Alignas (double) aligned_as_double;
  2764. char _Alignas (0) no_special_alignment;
  2765. extern char aligned_as_int;
  2766. char _Alignas (0) _Alignas (int) aligned_as_int;
  2767. // Check _Alignof.
  2768. enum
  2769. {
  2770. int_alignment = _Alignof (int),
  2771. int_array_alignment = _Alignof (int[100]),
  2772. char_alignment = _Alignof (char)
  2773. };
  2774. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2775. // Check _Noreturn.
  2776. int _Noreturn does_not_return (void) { for (;;) continue; }
  2777. // Check _Static_assert.
  2778. struct test_static_assert
  2779. {
  2780. int x;
  2781. _Static_assert (sizeof (int) <= sizeof (long int),
  2782. "_Static_assert does not work in struct");
  2783. long int y;
  2784. };
  2785. // Check UTF-8 literals.
  2786. #define u8 syntax error!
  2787. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2788. // Check duplicate typedefs.
  2789. typedef long *long_ptr;
  2790. typedef long int *long_ptr;
  2791. typedef long_ptr long_ptr;
  2792. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2793. struct anonymous
  2794. {
  2795. union {
  2796. struct { int i; int j; };
  2797. struct { int k; long int l; } w;
  2798. };
  2799. int m;
  2800. } v1;
  2801. '
  2802. # Test code for whether the C compiler supports C11 (body of main).
  2803. ac_c_conftest_c11_main='
  2804. _Static_assert ((offsetof (struct anonymous, i)
  2805. == offsetof (struct anonymous, w.k)),
  2806. "Anonymous union alignment botch");
  2807. v1.i = 2;
  2808. v1.w.k = 5;
  2809. ok |= v1.i != 5;
  2810. '
  2811. # Test code for whether the C compiler supports C11 (complete).
  2812. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2813. ${ac_c_conftest_c99_globals}
  2814. ${ac_c_conftest_c11_globals}
  2815. int
  2816. main (int argc, char **argv)
  2817. {
  2818. int ok = 0;
  2819. ${ac_c_conftest_c89_main}
  2820. ${ac_c_conftest_c99_main}
  2821. ${ac_c_conftest_c11_main}
  2822. return ok;
  2823. }
  2824. "
  2825. # Test code for whether the C compiler supports C99 (complete).
  2826. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2827. ${ac_c_conftest_c99_globals}
  2828. int
  2829. main (int argc, char **argv)
  2830. {
  2831. int ok = 0;
  2832. ${ac_c_conftest_c89_main}
  2833. ${ac_c_conftest_c99_main}
  2834. return ok;
  2835. }
  2836. "
  2837. # Test code for whether the C compiler supports C89 (complete).
  2838. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2839. int
  2840. main (int argc, char **argv)
  2841. {
  2842. int ok = 0;
  2843. ${ac_c_conftest_c89_main}
  2844. return ok;
  2845. }
  2846. "
  2847. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2848. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2849. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2850. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2851. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2852. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2853. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2854. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2855. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2856. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2857. ac_cxx_conftest_cxx98_globals='
  2858. // Does the compiler advertise C++98 conformance?
  2859. #if !defined __cplusplus || __cplusplus < 199711L
  2860. # error "Compiler does not advertise C++98 conformance"
  2861. #endif
  2862. // These inclusions are to reject old compilers that
  2863. // lack the unsuffixed header files.
  2864. #include <cstdlib>
  2865. #include <exception>
  2866. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2867. extern void assert (int);
  2868. namespace std {
  2869. extern int strcmp (const char *, const char *);
  2870. }
  2871. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2872. using std::exception;
  2873. using std::strcmp;
  2874. namespace {
  2875. void test_exception_syntax()
  2876. {
  2877. try {
  2878. throw "test";
  2879. } catch (const char *s) {
  2880. // Extra parentheses suppress a warning when building autoconf itself,
  2881. // due to lint rules shared with more typical C programs.
  2882. assert (!(strcmp) (s, "test"));
  2883. }
  2884. }
  2885. template <typename T> struct test_template
  2886. {
  2887. T const val;
  2888. explicit test_template(T t) : val(t) {}
  2889. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2890. };
  2891. } // anonymous namespace
  2892. '
  2893. # Test code for whether the C++ compiler supports C++98 (body of main)
  2894. ac_cxx_conftest_cxx98_main='
  2895. assert (argc);
  2896. assert (! argv[0]);
  2897. {
  2898. test_exception_syntax ();
  2899. test_template<double> tt (2.0);
  2900. assert (tt.add (4) == 6.0);
  2901. assert (true && !false);
  2902. }
  2903. '
  2904. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2905. ac_cxx_conftest_cxx11_globals='
  2906. // Does the compiler advertise C++ 2011 conformance?
  2907. #if !defined __cplusplus || __cplusplus < 201103L
  2908. # error "Compiler does not advertise C++11 conformance"
  2909. #endif
  2910. namespace cxx11test
  2911. {
  2912. constexpr int get_val() { return 20; }
  2913. struct testinit
  2914. {
  2915. int i;
  2916. double d;
  2917. };
  2918. class delegate
  2919. {
  2920. public:
  2921. delegate(int n) : n(n) {}
  2922. delegate(): delegate(2354) {}
  2923. virtual int getval() { return this->n; };
  2924. protected:
  2925. int n;
  2926. };
  2927. class overridden : public delegate
  2928. {
  2929. public:
  2930. overridden(int n): delegate(n) {}
  2931. virtual int getval() override final { return this->n * 2; }
  2932. };
  2933. class nocopy
  2934. {
  2935. public:
  2936. nocopy(int i): i(i) {}
  2937. nocopy() = default;
  2938. nocopy(const nocopy&) = delete;
  2939. nocopy & operator=(const nocopy&) = delete;
  2940. private:
  2941. int i;
  2942. };
  2943. // for testing lambda expressions
  2944. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2945. {
  2946. return f(v);
  2947. }
  2948. // for testing variadic templates and trailing return types
  2949. template <typename V> auto sum(V first) -> V
  2950. {
  2951. return first;
  2952. }
  2953. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2954. {
  2955. return first + sum(rest...);
  2956. }
  2957. }
  2958. '
  2959. # Test code for whether the C++ compiler supports C++11 (body of main)
  2960. ac_cxx_conftest_cxx11_main='
  2961. {
  2962. // Test auto and decltype
  2963. auto a1 = 6538;
  2964. auto a2 = 48573953.4;
  2965. auto a3 = "String literal";
  2966. int total = 0;
  2967. for (auto i = a3; *i; ++i) { total += *i; }
  2968. decltype(a2) a4 = 34895.034;
  2969. }
  2970. {
  2971. // Test constexpr
  2972. short sa[cxx11test::get_val()] = { 0 };
  2973. }
  2974. {
  2975. // Test initializer lists
  2976. cxx11test::testinit il = { 4323, 435234.23544 };
  2977. }
  2978. {
  2979. // Test range-based for
  2980. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2981. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2982. for (auto &x : array) { x += 23; }
  2983. }
  2984. {
  2985. // Test lambda expressions
  2986. using cxx11test::eval;
  2987. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2988. double d = 2.0;
  2989. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2990. assert (d == 5.0);
  2991. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2992. assert (d == 5.0);
  2993. }
  2994. {
  2995. // Test use of variadic templates
  2996. using cxx11test::sum;
  2997. auto a = sum(1);
  2998. auto b = sum(1, 2);
  2999. auto c = sum(1.0, 2.0, 3.0);
  3000. }
  3001. {
  3002. // Test constructor delegation
  3003. cxx11test::delegate d1;
  3004. cxx11test::delegate d2();
  3005. cxx11test::delegate d3(45);
  3006. }
  3007. {
  3008. // Test override and final
  3009. cxx11test::overridden o1(55464);
  3010. }
  3011. {
  3012. // Test nullptr
  3013. char *c = nullptr;
  3014. }
  3015. {
  3016. // Test template brackets
  3017. test_template<::test_template<int>> v(test_template<int>(12));
  3018. }
  3019. {
  3020. // Unicode literals
  3021. char const *utf8 = u8"UTF-8 string \u2500";
  3022. char16_t const *utf16 = u"UTF-8 string \u2500";
  3023. char32_t const *utf32 = U"UTF-32 string \u2500";
  3024. }
  3025. '
  3026. # Test code for whether the C compiler supports C++11 (complete).
  3027. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  3028. ${ac_cxx_conftest_cxx11_globals}
  3029. int
  3030. main (int argc, char **argv)
  3031. {
  3032. int ok = 0;
  3033. ${ac_cxx_conftest_cxx98_main}
  3034. ${ac_cxx_conftest_cxx11_main}
  3035. return ok;
  3036. }
  3037. "
  3038. # Test code for whether the C compiler supports C++98 (complete).
  3039. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  3040. int
  3041. main (int argc, char **argv)
  3042. {
  3043. int ok = 0;
  3044. ${ac_cxx_conftest_cxx98_main}
  3045. return ok;
  3046. }
  3047. "
  3048. # Auxiliary files required by this configure script.
  3049. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  3050. # Locations in which to look for auxiliary files.
  3051. ac_aux_dir_candidates="${srcdir}/build-scripts"
  3052. # Search for a directory containing all of the required auxiliary files,
  3053. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  3054. # If we don't find one directory that contains all the files we need,
  3055. # we report the set of missing files from the *first* directory in
  3056. # $ac_aux_dir_candidates and give up.
  3057. ac_missing_aux_files=""
  3058. ac_first_candidate=:
  3059. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3061. as_found=false
  3062. for as_dir in $ac_aux_dir_candidates
  3063. do
  3064. IFS=$as_save_IFS
  3065. case $as_dir in #(((
  3066. '') as_dir=./ ;;
  3067. */) ;;
  3068. *) as_dir=$as_dir/ ;;
  3069. esac
  3070. as_found=:
  3071. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3072. ac_aux_dir_found=yes
  3073. ac_install_sh=
  3074. for ac_aux in $ac_aux_files
  3075. do
  3076. # As a special case, if "install-sh" is required, that requirement
  3077. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3078. # and $ac_install_sh is set appropriately for whichever one is found.
  3079. if test x"$ac_aux" = x"install-sh"
  3080. then
  3081. if test -f "${as_dir}install-sh"; then
  3082. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3083. ac_install_sh="${as_dir}install-sh -c"
  3084. elif test -f "${as_dir}install.sh"; then
  3085. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3086. ac_install_sh="${as_dir}install.sh -c"
  3087. elif test -f "${as_dir}shtool"; then
  3088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3089. ac_install_sh="${as_dir}shtool install -c"
  3090. else
  3091. ac_aux_dir_found=no
  3092. if $ac_first_candidate; then
  3093. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3094. else
  3095. break
  3096. fi
  3097. fi
  3098. else
  3099. if test -f "${as_dir}${ac_aux}"; then
  3100. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3101. else
  3102. ac_aux_dir_found=no
  3103. if $ac_first_candidate; then
  3104. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3105. else
  3106. break
  3107. fi
  3108. fi
  3109. fi
  3110. done
  3111. if test "$ac_aux_dir_found" = yes; then
  3112. ac_aux_dir="$as_dir"
  3113. break
  3114. fi
  3115. ac_first_candidate=false
  3116. as_found=false
  3117. done
  3118. IFS=$as_save_IFS
  3119. if $as_found
  3120. then :
  3121. else $as_nop
  3122. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3123. fi
  3124. # These three variables are undocumented and unsupported,
  3125. # and are intended to be withdrawn in a future Autoconf release.
  3126. # They can cause serious problems if a builder's source tree is in a directory
  3127. # whose full name contains unusual characters.
  3128. if test -f "${ac_aux_dir}config.guess"; then
  3129. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3130. fi
  3131. if test -f "${ac_aux_dir}config.sub"; then
  3132. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3133. fi
  3134. if test -f "$ac_aux_dir/configure"; then
  3135. ac_configure="$SHELL ${ac_aux_dir}configure"
  3136. fi
  3137. # Check that the precious variables saved in the cache have kept the same
  3138. # value.
  3139. ac_cache_corrupted=false
  3140. for ac_var in $ac_precious_vars; do
  3141. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3142. eval ac_new_set=\$ac_env_${ac_var}_set
  3143. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3144. eval ac_new_val=\$ac_env_${ac_var}_value
  3145. case $ac_old_set,$ac_new_set in
  3146. set,)
  3147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3148. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3149. ac_cache_corrupted=: ;;
  3150. ,set)
  3151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3152. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3153. ac_cache_corrupted=: ;;
  3154. ,);;
  3155. *)
  3156. if test "x$ac_old_val" != "x$ac_new_val"; then
  3157. # differences in whitespace do not lead to failure.
  3158. ac_old_val_w=`echo x $ac_old_val`
  3159. ac_new_val_w=`echo x $ac_new_val`
  3160. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3162. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3163. ac_cache_corrupted=:
  3164. else
  3165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3166. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3167. eval $ac_var=\$ac_old_val
  3168. fi
  3169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3170. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3172. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3173. fi;;
  3174. esac
  3175. # Pass precious variables to config.status.
  3176. if test "$ac_new_set" = set; then
  3177. case $ac_new_val in
  3178. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3179. *) ac_arg=$ac_var=$ac_new_val ;;
  3180. esac
  3181. case " $ac_configure_args " in
  3182. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3183. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3184. esac
  3185. fi
  3186. done
  3187. if $ac_cache_corrupted; then
  3188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3189. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3191. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3192. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3193. and start over" "$LINENO" 5
  3194. fi
  3195. ## -------------------- ##
  3196. ## Main body of script. ##
  3197. ## -------------------- ##
  3198. ac_ext=c
  3199. ac_cpp='$CPP $CPPFLAGS'
  3200. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3201. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3202. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3203. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3204. orig_CFLAGS="$CFLAGS"
  3205. # See docs/release_checklist.md
  3206. SDL_MAJOR_VERSION=2
  3207. SDL_MINOR_VERSION=33
  3208. SDL_MICRO_VERSION=0
  3209. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3210. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3211. case "$SDL_MINOR_VERSION" in #(
  3212. *[02468]) :
  3213. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3214. *) :
  3215. SDL_INTERFACE_AGE=0 ;; #(
  3216. *) :
  3217. ;;
  3218. esac
  3219. # libtool versioning
  3220. case `pwd` in
  3221. *\ * | *\ *)
  3222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3223. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3224. esac
  3225. macro_version='2.4.6'
  3226. macro_revision='2.4.6'
  3227. ltmain=$ac_aux_dir/ltmain.sh
  3228. # Make sure we can run config.sub.
  3229. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3230. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3232. printf %s "checking build system type... " >&6; }
  3233. if test ${ac_cv_build+y}
  3234. then :
  3235. printf %s "(cached) " >&6
  3236. else $as_nop
  3237. ac_build_alias=$build_alias
  3238. test "x$ac_build_alias" = x &&
  3239. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3240. test "x$ac_build_alias" = x &&
  3241. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3242. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3243. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3244. fi
  3245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3246. printf "%s\n" "$ac_cv_build" >&6; }
  3247. case $ac_cv_build in
  3248. *-*-*) ;;
  3249. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3250. esac
  3251. build=$ac_cv_build
  3252. ac_save_IFS=$IFS; IFS='-'
  3253. set x $ac_cv_build
  3254. shift
  3255. build_cpu=$1
  3256. build_vendor=$2
  3257. shift; shift
  3258. # Remember, the first character of IFS is used to create $*,
  3259. # except with old shells:
  3260. build_os=$*
  3261. IFS=$ac_save_IFS
  3262. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3264. printf %s "checking host system type... " >&6; }
  3265. if test ${ac_cv_host+y}
  3266. then :
  3267. printf %s "(cached) " >&6
  3268. else $as_nop
  3269. if test "x$host_alias" = x; then
  3270. ac_cv_host=$ac_cv_build
  3271. else
  3272. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3273. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3274. fi
  3275. fi
  3276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3277. printf "%s\n" "$ac_cv_host" >&6; }
  3278. case $ac_cv_host in
  3279. *-*-*) ;;
  3280. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3281. esac
  3282. host=$ac_cv_host
  3283. ac_save_IFS=$IFS; IFS='-'
  3284. set x $ac_cv_host
  3285. shift
  3286. host_cpu=$1
  3287. host_vendor=$2
  3288. shift; shift
  3289. # Remember, the first character of IFS is used to create $*,
  3290. # except with old shells:
  3291. host_os=$*
  3292. IFS=$ac_save_IFS
  3293. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3294. # Backslashify metacharacters that are still active within
  3295. # double-quoted strings.
  3296. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3297. # Same as above, but do not quote variable references.
  3298. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3299. # Sed substitution to delay expansion of an escaped shell variable in a
  3300. # double_quote_subst'ed string.
  3301. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3302. # Sed substitution to delay expansion of an escaped single quote.
  3303. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3304. # Sed substitution to avoid accidental globbing in evaled expressions
  3305. no_glob_subst='s/\*/\\\*/g'
  3306. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3307. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3308. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3310. printf %s "checking how to print strings... " >&6; }
  3311. # Test print first, because it will be a builtin if present.
  3312. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3313. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3314. ECHO='print -r --'
  3315. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3316. ECHO='printf %s\n'
  3317. else
  3318. # Use this function as a fallback that always works.
  3319. func_fallback_echo ()
  3320. {
  3321. eval 'cat <<_LTECHO_EOF
  3322. $1
  3323. _LTECHO_EOF'
  3324. }
  3325. ECHO='func_fallback_echo'
  3326. fi
  3327. # func_echo_all arg...
  3328. # Invoke $ECHO with all args, space-separated.
  3329. func_echo_all ()
  3330. {
  3331. $ECHO ""
  3332. }
  3333. case $ECHO in
  3334. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3335. printf "%s\n" "printf" >&6; } ;;
  3336. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3337. printf "%s\n" "print -r" >&6; } ;;
  3338. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3339. printf "%s\n" "cat" >&6; } ;;
  3340. esac
  3341. ac_ext=c
  3342. ac_cpp='$CPP $CPPFLAGS'
  3343. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3344. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3345. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3346. if test -n "$ac_tool_prefix"; then
  3347. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3348. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3350. printf %s "checking for $ac_word... " >&6; }
  3351. if test ${ac_cv_prog_CC+y}
  3352. then :
  3353. printf %s "(cached) " >&6
  3354. else $as_nop
  3355. if test -n "$CC"; then
  3356. ac_cv_prog_CC="$CC" # Let the user override the test.
  3357. else
  3358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3359. for as_dir in $PATH
  3360. do
  3361. IFS=$as_save_IFS
  3362. case $as_dir in #(((
  3363. '') as_dir=./ ;;
  3364. */) ;;
  3365. *) as_dir=$as_dir/ ;;
  3366. esac
  3367. for ac_exec_ext in '' $ac_executable_extensions; do
  3368. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3369. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3370. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3371. break 2
  3372. fi
  3373. done
  3374. done
  3375. IFS=$as_save_IFS
  3376. fi
  3377. fi
  3378. CC=$ac_cv_prog_CC
  3379. if test -n "$CC"; then
  3380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3381. printf "%s\n" "$CC" >&6; }
  3382. else
  3383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3384. printf "%s\n" "no" >&6; }
  3385. fi
  3386. fi
  3387. if test -z "$ac_cv_prog_CC"; then
  3388. ac_ct_CC=$CC
  3389. # Extract the first word of "gcc", so it can be a program name with args.
  3390. set dummy gcc; ac_word=$2
  3391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3392. printf %s "checking for $ac_word... " >&6; }
  3393. if test ${ac_cv_prog_ac_ct_CC+y}
  3394. then :
  3395. printf %s "(cached) " >&6
  3396. else $as_nop
  3397. if test -n "$ac_ct_CC"; then
  3398. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3399. else
  3400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3401. for as_dir in $PATH
  3402. do
  3403. IFS=$as_save_IFS
  3404. case $as_dir in #(((
  3405. '') as_dir=./ ;;
  3406. */) ;;
  3407. *) as_dir=$as_dir/ ;;
  3408. esac
  3409. for ac_exec_ext in '' $ac_executable_extensions; do
  3410. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3411. ac_cv_prog_ac_ct_CC="gcc"
  3412. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3413. break 2
  3414. fi
  3415. done
  3416. done
  3417. IFS=$as_save_IFS
  3418. fi
  3419. fi
  3420. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3421. if test -n "$ac_ct_CC"; then
  3422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3423. printf "%s\n" "$ac_ct_CC" >&6; }
  3424. else
  3425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3426. printf "%s\n" "no" >&6; }
  3427. fi
  3428. if test "x$ac_ct_CC" = x; then
  3429. CC=""
  3430. else
  3431. case $cross_compiling:$ac_tool_warned in
  3432. yes:)
  3433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3434. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3435. ac_tool_warned=yes ;;
  3436. esac
  3437. CC=$ac_ct_CC
  3438. fi
  3439. else
  3440. CC="$ac_cv_prog_CC"
  3441. fi
  3442. if test -z "$CC"; then
  3443. if test -n "$ac_tool_prefix"; then
  3444. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3445. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3447. printf %s "checking for $ac_word... " >&6; }
  3448. if test ${ac_cv_prog_CC+y}
  3449. then :
  3450. printf %s "(cached) " >&6
  3451. else $as_nop
  3452. if test -n "$CC"; then
  3453. ac_cv_prog_CC="$CC" # Let the user override the test.
  3454. else
  3455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3456. for as_dir in $PATH
  3457. do
  3458. IFS=$as_save_IFS
  3459. case $as_dir in #(((
  3460. '') as_dir=./ ;;
  3461. */) ;;
  3462. *) as_dir=$as_dir/ ;;
  3463. esac
  3464. for ac_exec_ext in '' $ac_executable_extensions; do
  3465. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3466. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3467. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3468. break 2
  3469. fi
  3470. done
  3471. done
  3472. IFS=$as_save_IFS
  3473. fi
  3474. fi
  3475. CC=$ac_cv_prog_CC
  3476. if test -n "$CC"; then
  3477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3478. printf "%s\n" "$CC" >&6; }
  3479. else
  3480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3481. printf "%s\n" "no" >&6; }
  3482. fi
  3483. fi
  3484. fi
  3485. if test -z "$CC"; then
  3486. # Extract the first word of "cc", so it can be a program name with args.
  3487. set dummy cc; ac_word=$2
  3488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3489. printf %s "checking for $ac_word... " >&6; }
  3490. if test ${ac_cv_prog_CC+y}
  3491. then :
  3492. printf %s "(cached) " >&6
  3493. else $as_nop
  3494. if test -n "$CC"; then
  3495. ac_cv_prog_CC="$CC" # Let the user override the test.
  3496. else
  3497. ac_prog_rejected=no
  3498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3499. for as_dir in $PATH
  3500. do
  3501. IFS=$as_save_IFS
  3502. case $as_dir in #(((
  3503. '') as_dir=./ ;;
  3504. */) ;;
  3505. *) as_dir=$as_dir/ ;;
  3506. esac
  3507. for ac_exec_ext in '' $ac_executable_extensions; do
  3508. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3509. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3510. ac_prog_rejected=yes
  3511. continue
  3512. fi
  3513. ac_cv_prog_CC="cc"
  3514. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3515. break 2
  3516. fi
  3517. done
  3518. done
  3519. IFS=$as_save_IFS
  3520. if test $ac_prog_rejected = yes; then
  3521. # We found a bogon in the path, so make sure we never use it.
  3522. set dummy $ac_cv_prog_CC
  3523. shift
  3524. if test $# != 0; then
  3525. # We chose a different compiler from the bogus one.
  3526. # However, it has the same basename, so the bogon will be chosen
  3527. # first if we set CC to just the basename; use the full file name.
  3528. shift
  3529. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3530. fi
  3531. fi
  3532. fi
  3533. fi
  3534. CC=$ac_cv_prog_CC
  3535. if test -n "$CC"; then
  3536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3537. printf "%s\n" "$CC" >&6; }
  3538. else
  3539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3540. printf "%s\n" "no" >&6; }
  3541. fi
  3542. fi
  3543. if test -z "$CC"; then
  3544. if test -n "$ac_tool_prefix"; then
  3545. for ac_prog in cl.exe
  3546. do
  3547. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3548. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3550. printf %s "checking for $ac_word... " >&6; }
  3551. if test ${ac_cv_prog_CC+y}
  3552. then :
  3553. printf %s "(cached) " >&6
  3554. else $as_nop
  3555. if test -n "$CC"; then
  3556. ac_cv_prog_CC="$CC" # Let the user override the test.
  3557. else
  3558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3559. for as_dir in $PATH
  3560. do
  3561. IFS=$as_save_IFS
  3562. case $as_dir in #(((
  3563. '') as_dir=./ ;;
  3564. */) ;;
  3565. *) as_dir=$as_dir/ ;;
  3566. esac
  3567. for ac_exec_ext in '' $ac_executable_extensions; do
  3568. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3569. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3570. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3571. break 2
  3572. fi
  3573. done
  3574. done
  3575. IFS=$as_save_IFS
  3576. fi
  3577. fi
  3578. CC=$ac_cv_prog_CC
  3579. if test -n "$CC"; then
  3580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3581. printf "%s\n" "$CC" >&6; }
  3582. else
  3583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3584. printf "%s\n" "no" >&6; }
  3585. fi
  3586. test -n "$CC" && break
  3587. done
  3588. fi
  3589. if test -z "$CC"; then
  3590. ac_ct_CC=$CC
  3591. for ac_prog in cl.exe
  3592. do
  3593. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3594. set dummy $ac_prog; ac_word=$2
  3595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3596. printf %s "checking for $ac_word... " >&6; }
  3597. if test ${ac_cv_prog_ac_ct_CC+y}
  3598. then :
  3599. printf %s "(cached) " >&6
  3600. else $as_nop
  3601. if test -n "$ac_ct_CC"; then
  3602. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3603. else
  3604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3605. for as_dir in $PATH
  3606. do
  3607. IFS=$as_save_IFS
  3608. case $as_dir in #(((
  3609. '') as_dir=./ ;;
  3610. */) ;;
  3611. *) as_dir=$as_dir/ ;;
  3612. esac
  3613. for ac_exec_ext in '' $ac_executable_extensions; do
  3614. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3615. ac_cv_prog_ac_ct_CC="$ac_prog"
  3616. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3617. break 2
  3618. fi
  3619. done
  3620. done
  3621. IFS=$as_save_IFS
  3622. fi
  3623. fi
  3624. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3625. if test -n "$ac_ct_CC"; then
  3626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3627. printf "%s\n" "$ac_ct_CC" >&6; }
  3628. else
  3629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3630. printf "%s\n" "no" >&6; }
  3631. fi
  3632. test -n "$ac_ct_CC" && break
  3633. done
  3634. if test "x$ac_ct_CC" = x; then
  3635. CC=""
  3636. else
  3637. case $cross_compiling:$ac_tool_warned in
  3638. yes:)
  3639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3640. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3641. ac_tool_warned=yes ;;
  3642. esac
  3643. CC=$ac_ct_CC
  3644. fi
  3645. fi
  3646. fi
  3647. if test -z "$CC"; then
  3648. if test -n "$ac_tool_prefix"; then
  3649. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3650. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3652. printf %s "checking for $ac_word... " >&6; }
  3653. if test ${ac_cv_prog_CC+y}
  3654. then :
  3655. printf %s "(cached) " >&6
  3656. else $as_nop
  3657. if test -n "$CC"; then
  3658. ac_cv_prog_CC="$CC" # Let the user override the test.
  3659. else
  3660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3661. for as_dir in $PATH
  3662. do
  3663. IFS=$as_save_IFS
  3664. case $as_dir in #(((
  3665. '') as_dir=./ ;;
  3666. */) ;;
  3667. *) as_dir=$as_dir/ ;;
  3668. esac
  3669. for ac_exec_ext in '' $ac_executable_extensions; do
  3670. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3671. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3673. break 2
  3674. fi
  3675. done
  3676. done
  3677. IFS=$as_save_IFS
  3678. fi
  3679. fi
  3680. CC=$ac_cv_prog_CC
  3681. if test -n "$CC"; then
  3682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3683. printf "%s\n" "$CC" >&6; }
  3684. else
  3685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3686. printf "%s\n" "no" >&6; }
  3687. fi
  3688. fi
  3689. if test -z "$ac_cv_prog_CC"; then
  3690. ac_ct_CC=$CC
  3691. # Extract the first word of "clang", so it can be a program name with args.
  3692. set dummy clang; ac_word=$2
  3693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3694. printf %s "checking for $ac_word... " >&6; }
  3695. if test ${ac_cv_prog_ac_ct_CC+y}
  3696. then :
  3697. printf %s "(cached) " >&6
  3698. else $as_nop
  3699. if test -n "$ac_ct_CC"; then
  3700. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3701. else
  3702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3703. for as_dir in $PATH
  3704. do
  3705. IFS=$as_save_IFS
  3706. case $as_dir in #(((
  3707. '') as_dir=./ ;;
  3708. */) ;;
  3709. *) as_dir=$as_dir/ ;;
  3710. esac
  3711. for ac_exec_ext in '' $ac_executable_extensions; do
  3712. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3713. ac_cv_prog_ac_ct_CC="clang"
  3714. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3715. break 2
  3716. fi
  3717. done
  3718. done
  3719. IFS=$as_save_IFS
  3720. fi
  3721. fi
  3722. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3723. if test -n "$ac_ct_CC"; then
  3724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3725. printf "%s\n" "$ac_ct_CC" >&6; }
  3726. else
  3727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3728. printf "%s\n" "no" >&6; }
  3729. fi
  3730. if test "x$ac_ct_CC" = x; then
  3731. CC=""
  3732. else
  3733. case $cross_compiling:$ac_tool_warned in
  3734. yes:)
  3735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3736. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3737. ac_tool_warned=yes ;;
  3738. esac
  3739. CC=$ac_ct_CC
  3740. fi
  3741. else
  3742. CC="$ac_cv_prog_CC"
  3743. fi
  3744. fi
  3745. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3746. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3747. as_fn_error $? "no acceptable C compiler found in \$PATH
  3748. See \`config.log' for more details" "$LINENO" 5; }
  3749. # Provide some information about the compiler.
  3750. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3751. set X $ac_compile
  3752. ac_compiler=$2
  3753. for ac_option in --version -v -V -qversion -version; do
  3754. { { ac_try="$ac_compiler $ac_option >&5"
  3755. case "(($ac_try" in
  3756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3757. *) ac_try_echo=$ac_try;;
  3758. esac
  3759. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3760. printf "%s\n" "$ac_try_echo"; } >&5
  3761. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3762. ac_status=$?
  3763. if test -s conftest.err; then
  3764. sed '10a\
  3765. ... rest of stderr output deleted ...
  3766. 10q' conftest.err >conftest.er1
  3767. cat conftest.er1 >&5
  3768. fi
  3769. rm -f conftest.er1 conftest.err
  3770. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3771. test $ac_status = 0; }
  3772. done
  3773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3774. /* end confdefs.h. */
  3775. int
  3776. main (void)
  3777. {
  3778. ;
  3779. return 0;
  3780. }
  3781. _ACEOF
  3782. ac_clean_files_save=$ac_clean_files
  3783. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3784. # Try to create an executable without -o first, disregard a.out.
  3785. # It will help us diagnose broken compilers, and finding out an intuition
  3786. # of exeext.
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3788. printf %s "checking whether the C compiler works... " >&6; }
  3789. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3790. # The possible output files:
  3791. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3792. ac_rmfiles=
  3793. for ac_file in $ac_files
  3794. do
  3795. case $ac_file in
  3796. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3797. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3798. esac
  3799. done
  3800. rm -f $ac_rmfiles
  3801. if { { ac_try="$ac_link_default"
  3802. case "(($ac_try" in
  3803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3804. *) ac_try_echo=$ac_try;;
  3805. esac
  3806. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3807. printf "%s\n" "$ac_try_echo"; } >&5
  3808. (eval "$ac_link_default") 2>&5
  3809. ac_status=$?
  3810. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3811. test $ac_status = 0; }
  3812. then :
  3813. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3814. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3815. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3816. # so that the user can short-circuit this test for compilers unknown to
  3817. # Autoconf.
  3818. for ac_file in $ac_files ''
  3819. do
  3820. test -f "$ac_file" || continue
  3821. case $ac_file in
  3822. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3823. ;;
  3824. [ab].out )
  3825. # We found the default executable, but exeext='' is most
  3826. # certainly right.
  3827. break;;
  3828. *.* )
  3829. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3830. then :; else
  3831. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3832. fi
  3833. # We set ac_cv_exeext here because the later test for it is not
  3834. # safe: cross compilers may not add the suffix if given an `-o'
  3835. # argument, so we may need to know it at that point already.
  3836. # Even if this section looks crufty: it has the advantage of
  3837. # actually working.
  3838. break;;
  3839. * )
  3840. break;;
  3841. esac
  3842. done
  3843. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3844. else $as_nop
  3845. ac_file=''
  3846. fi
  3847. if test -z "$ac_file"
  3848. then :
  3849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3850. printf "%s\n" "no" >&6; }
  3851. printf "%s\n" "$as_me: failed program was:" >&5
  3852. sed 's/^/| /' conftest.$ac_ext >&5
  3853. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3854. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3855. as_fn_error 77 "C compiler cannot create executables
  3856. See \`config.log' for more details" "$LINENO" 5; }
  3857. else $as_nop
  3858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3859. printf "%s\n" "yes" >&6; }
  3860. fi
  3861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3862. printf %s "checking for C compiler default output file name... " >&6; }
  3863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3864. printf "%s\n" "$ac_file" >&6; }
  3865. ac_exeext=$ac_cv_exeext
  3866. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3867. ac_clean_files=$ac_clean_files_save
  3868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3869. printf %s "checking for suffix of executables... " >&6; }
  3870. if { { ac_try="$ac_link"
  3871. case "(($ac_try" in
  3872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3873. *) ac_try_echo=$ac_try;;
  3874. esac
  3875. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3876. printf "%s\n" "$ac_try_echo"; } >&5
  3877. (eval "$ac_link") 2>&5
  3878. ac_status=$?
  3879. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3880. test $ac_status = 0; }
  3881. then :
  3882. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3883. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3884. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3885. # `rm'.
  3886. for ac_file in conftest.exe conftest conftest.*; do
  3887. test -f "$ac_file" || continue
  3888. case $ac_file in
  3889. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3890. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3891. break;;
  3892. * ) break;;
  3893. esac
  3894. done
  3895. else $as_nop
  3896. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3897. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3898. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3899. See \`config.log' for more details" "$LINENO" 5; }
  3900. fi
  3901. rm -f conftest conftest$ac_cv_exeext
  3902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3903. printf "%s\n" "$ac_cv_exeext" >&6; }
  3904. rm -f conftest.$ac_ext
  3905. EXEEXT=$ac_cv_exeext
  3906. ac_exeext=$EXEEXT
  3907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3908. /* end confdefs.h. */
  3909. #include <stdio.h>
  3910. int
  3911. main (void)
  3912. {
  3913. FILE *f = fopen ("conftest.out", "w");
  3914. return ferror (f) || fclose (f) != 0;
  3915. ;
  3916. return 0;
  3917. }
  3918. _ACEOF
  3919. ac_clean_files="$ac_clean_files conftest.out"
  3920. # Check that the compiler produces executables we can run. If not, either
  3921. # the compiler is broken, or we cross compile.
  3922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3923. printf %s "checking whether we are cross compiling... " >&6; }
  3924. if test "$cross_compiling" != yes; then
  3925. { { ac_try="$ac_link"
  3926. case "(($ac_try" in
  3927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3928. *) ac_try_echo=$ac_try;;
  3929. esac
  3930. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3931. printf "%s\n" "$ac_try_echo"; } >&5
  3932. (eval "$ac_link") 2>&5
  3933. ac_status=$?
  3934. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3935. test $ac_status = 0; }
  3936. if { ac_try='./conftest$ac_cv_exeext'
  3937. { { case "(($ac_try" in
  3938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3939. *) ac_try_echo=$ac_try;;
  3940. esac
  3941. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3942. printf "%s\n" "$ac_try_echo"; } >&5
  3943. (eval "$ac_try") 2>&5
  3944. ac_status=$?
  3945. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3946. test $ac_status = 0; }; }; then
  3947. cross_compiling=no
  3948. else
  3949. if test "$cross_compiling" = maybe; then
  3950. cross_compiling=yes
  3951. else
  3952. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3953. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3954. as_fn_error 77 "cannot run C compiled programs.
  3955. If you meant to cross compile, use \`--host'.
  3956. See \`config.log' for more details" "$LINENO" 5; }
  3957. fi
  3958. fi
  3959. fi
  3960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3961. printf "%s\n" "$cross_compiling" >&6; }
  3962. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3963. ac_clean_files=$ac_clean_files_save
  3964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3965. printf %s "checking for suffix of object files... " >&6; }
  3966. if test ${ac_cv_objext+y}
  3967. then :
  3968. printf %s "(cached) " >&6
  3969. else $as_nop
  3970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3971. /* end confdefs.h. */
  3972. int
  3973. main (void)
  3974. {
  3975. ;
  3976. return 0;
  3977. }
  3978. _ACEOF
  3979. rm -f conftest.o conftest.obj
  3980. if { { ac_try="$ac_compile"
  3981. case "(($ac_try" in
  3982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3983. *) ac_try_echo=$ac_try;;
  3984. esac
  3985. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3986. printf "%s\n" "$ac_try_echo"; } >&5
  3987. (eval "$ac_compile") 2>&5
  3988. ac_status=$?
  3989. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3990. test $ac_status = 0; }
  3991. then :
  3992. for ac_file in conftest.o conftest.obj conftest.*; do
  3993. test -f "$ac_file" || continue;
  3994. case $ac_file in
  3995. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3996. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3997. break;;
  3998. esac
  3999. done
  4000. else $as_nop
  4001. printf "%s\n" "$as_me: failed program was:" >&5
  4002. sed 's/^/| /' conftest.$ac_ext >&5
  4003. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4004. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4005. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4006. See \`config.log' for more details" "$LINENO" 5; }
  4007. fi
  4008. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4009. fi
  4010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4011. printf "%s\n" "$ac_cv_objext" >&6; }
  4012. OBJEXT=$ac_cv_objext
  4013. ac_objext=$OBJEXT
  4014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4015. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4016. if test ${ac_cv_c_compiler_gnu+y}
  4017. then :
  4018. printf %s "(cached) " >&6
  4019. else $as_nop
  4020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4021. /* end confdefs.h. */
  4022. int
  4023. main (void)
  4024. {
  4025. #ifndef __GNUC__
  4026. choke me
  4027. #endif
  4028. ;
  4029. return 0;
  4030. }
  4031. _ACEOF
  4032. if ac_fn_c_try_compile "$LINENO"
  4033. then :
  4034. ac_compiler_gnu=yes
  4035. else $as_nop
  4036. ac_compiler_gnu=no
  4037. fi
  4038. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4039. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4040. fi
  4041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4042. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4044. if test $ac_compiler_gnu = yes; then
  4045. GCC=yes
  4046. else
  4047. GCC=
  4048. fi
  4049. ac_test_CFLAGS=${CFLAGS+y}
  4050. ac_save_CFLAGS=$CFLAGS
  4051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4052. printf %s "checking whether $CC accepts -g... " >&6; }
  4053. if test ${ac_cv_prog_cc_g+y}
  4054. then :
  4055. printf %s "(cached) " >&6
  4056. else $as_nop
  4057. ac_save_c_werror_flag=$ac_c_werror_flag
  4058. ac_c_werror_flag=yes
  4059. ac_cv_prog_cc_g=no
  4060. CFLAGS="-g"
  4061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4062. /* end confdefs.h. */
  4063. int
  4064. main (void)
  4065. {
  4066. ;
  4067. return 0;
  4068. }
  4069. _ACEOF
  4070. if ac_fn_c_try_compile "$LINENO"
  4071. then :
  4072. ac_cv_prog_cc_g=yes
  4073. else $as_nop
  4074. CFLAGS=""
  4075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4076. /* end confdefs.h. */
  4077. int
  4078. main (void)
  4079. {
  4080. ;
  4081. return 0;
  4082. }
  4083. _ACEOF
  4084. if ac_fn_c_try_compile "$LINENO"
  4085. then :
  4086. else $as_nop
  4087. ac_c_werror_flag=$ac_save_c_werror_flag
  4088. CFLAGS="-g"
  4089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4090. /* end confdefs.h. */
  4091. int
  4092. main (void)
  4093. {
  4094. ;
  4095. return 0;
  4096. }
  4097. _ACEOF
  4098. if ac_fn_c_try_compile "$LINENO"
  4099. then :
  4100. ac_cv_prog_cc_g=yes
  4101. fi
  4102. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4103. fi
  4104. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4105. fi
  4106. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4107. ac_c_werror_flag=$ac_save_c_werror_flag
  4108. fi
  4109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4110. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4111. if test $ac_test_CFLAGS; then
  4112. CFLAGS=$ac_save_CFLAGS
  4113. elif test $ac_cv_prog_cc_g = yes; then
  4114. if test "$GCC" = yes; then
  4115. CFLAGS="-g -O2"
  4116. else
  4117. CFLAGS="-g"
  4118. fi
  4119. else
  4120. if test "$GCC" = yes; then
  4121. CFLAGS="-O2"
  4122. else
  4123. CFLAGS=
  4124. fi
  4125. fi
  4126. ac_prog_cc_stdc=no
  4127. if test x$ac_prog_cc_stdc = xno
  4128. then :
  4129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4130. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4131. if test ${ac_cv_prog_cc_c11+y}
  4132. then :
  4133. printf %s "(cached) " >&6
  4134. else $as_nop
  4135. ac_cv_prog_cc_c11=no
  4136. ac_save_CC=$CC
  4137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4138. /* end confdefs.h. */
  4139. $ac_c_conftest_c11_program
  4140. _ACEOF
  4141. for ac_arg in '' -std=gnu11
  4142. do
  4143. CC="$ac_save_CC $ac_arg"
  4144. if ac_fn_c_try_compile "$LINENO"
  4145. then :
  4146. ac_cv_prog_cc_c11=$ac_arg
  4147. fi
  4148. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4149. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4150. done
  4151. rm -f conftest.$ac_ext
  4152. CC=$ac_save_CC
  4153. fi
  4154. if test "x$ac_cv_prog_cc_c11" = xno
  4155. then :
  4156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4157. printf "%s\n" "unsupported" >&6; }
  4158. else $as_nop
  4159. if test "x$ac_cv_prog_cc_c11" = x
  4160. then :
  4161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4162. printf "%s\n" "none needed" >&6; }
  4163. else $as_nop
  4164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4165. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4166. CC="$CC $ac_cv_prog_cc_c11"
  4167. fi
  4168. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4169. ac_prog_cc_stdc=c11
  4170. fi
  4171. fi
  4172. if test x$ac_prog_cc_stdc = xno
  4173. then :
  4174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4175. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4176. if test ${ac_cv_prog_cc_c99+y}
  4177. then :
  4178. printf %s "(cached) " >&6
  4179. else $as_nop
  4180. ac_cv_prog_cc_c99=no
  4181. ac_save_CC=$CC
  4182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4183. /* end confdefs.h. */
  4184. $ac_c_conftest_c99_program
  4185. _ACEOF
  4186. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4187. do
  4188. CC="$ac_save_CC $ac_arg"
  4189. if ac_fn_c_try_compile "$LINENO"
  4190. then :
  4191. ac_cv_prog_cc_c99=$ac_arg
  4192. fi
  4193. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4194. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4195. done
  4196. rm -f conftest.$ac_ext
  4197. CC=$ac_save_CC
  4198. fi
  4199. if test "x$ac_cv_prog_cc_c99" = xno
  4200. then :
  4201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4202. printf "%s\n" "unsupported" >&6; }
  4203. else $as_nop
  4204. if test "x$ac_cv_prog_cc_c99" = x
  4205. then :
  4206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4207. printf "%s\n" "none needed" >&6; }
  4208. else $as_nop
  4209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4210. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4211. CC="$CC $ac_cv_prog_cc_c99"
  4212. fi
  4213. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4214. ac_prog_cc_stdc=c99
  4215. fi
  4216. fi
  4217. if test x$ac_prog_cc_stdc = xno
  4218. then :
  4219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4220. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4221. if test ${ac_cv_prog_cc_c89+y}
  4222. then :
  4223. printf %s "(cached) " >&6
  4224. else $as_nop
  4225. ac_cv_prog_cc_c89=no
  4226. ac_save_CC=$CC
  4227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4228. /* end confdefs.h. */
  4229. $ac_c_conftest_c89_program
  4230. _ACEOF
  4231. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4232. do
  4233. CC="$ac_save_CC $ac_arg"
  4234. if ac_fn_c_try_compile "$LINENO"
  4235. then :
  4236. ac_cv_prog_cc_c89=$ac_arg
  4237. fi
  4238. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4239. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4240. done
  4241. rm -f conftest.$ac_ext
  4242. CC=$ac_save_CC
  4243. fi
  4244. if test "x$ac_cv_prog_cc_c89" = xno
  4245. then :
  4246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4247. printf "%s\n" "unsupported" >&6; }
  4248. else $as_nop
  4249. if test "x$ac_cv_prog_cc_c89" = x
  4250. then :
  4251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4252. printf "%s\n" "none needed" >&6; }
  4253. else $as_nop
  4254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4255. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4256. CC="$CC $ac_cv_prog_cc_c89"
  4257. fi
  4258. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4259. ac_prog_cc_stdc=c89
  4260. fi
  4261. fi
  4262. ac_ext=c
  4263. ac_cpp='$CPP $CPPFLAGS'
  4264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4268. printf %s "checking for a sed that does not truncate output... " >&6; }
  4269. if test ${ac_cv_path_SED+y}
  4270. then :
  4271. printf %s "(cached) " >&6
  4272. else $as_nop
  4273. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4274. for ac_i in 1 2 3 4 5 6 7; do
  4275. ac_script="$ac_script$as_nl$ac_script"
  4276. done
  4277. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4278. { ac_script=; unset ac_script;}
  4279. if test -z "$SED"; then
  4280. ac_path_SED_found=false
  4281. # Loop through the user's path and test for each of PROGNAME-LIST
  4282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4283. for as_dir in $PATH
  4284. do
  4285. IFS=$as_save_IFS
  4286. case $as_dir in #(((
  4287. '') as_dir=./ ;;
  4288. */) ;;
  4289. *) as_dir=$as_dir/ ;;
  4290. esac
  4291. for ac_prog in sed gsed
  4292. do
  4293. for ac_exec_ext in '' $ac_executable_extensions; do
  4294. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4295. as_fn_executable_p "$ac_path_SED" || continue
  4296. # Check for GNU ac_path_SED and select it if it is found.
  4297. # Check for GNU $ac_path_SED
  4298. case `"$ac_path_SED" --version 2>&1` in
  4299. *GNU*)
  4300. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4301. *)
  4302. ac_count=0
  4303. printf %s 0123456789 >"conftest.in"
  4304. while :
  4305. do
  4306. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4307. mv "conftest.tmp" "conftest.in"
  4308. cp "conftest.in" "conftest.nl"
  4309. printf "%s\n" '' >> "conftest.nl"
  4310. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4311. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4312. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4313. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4314. # Best one so far, save it but keep looking for a better one
  4315. ac_cv_path_SED="$ac_path_SED"
  4316. ac_path_SED_max=$ac_count
  4317. fi
  4318. # 10*(2^10) chars as input seems more than enough
  4319. test $ac_count -gt 10 && break
  4320. done
  4321. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4322. esac
  4323. $ac_path_SED_found && break 3
  4324. done
  4325. done
  4326. done
  4327. IFS=$as_save_IFS
  4328. if test -z "$ac_cv_path_SED"; then
  4329. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4330. fi
  4331. else
  4332. ac_cv_path_SED=$SED
  4333. fi
  4334. fi
  4335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4336. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4337. SED="$ac_cv_path_SED"
  4338. rm -f conftest.sed
  4339. test -z "$SED" && SED=sed
  4340. Xsed="$SED -e 1s/^X//"
  4341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4342. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4343. if test ${ac_cv_path_GREP+y}
  4344. then :
  4345. printf %s "(cached) " >&6
  4346. else $as_nop
  4347. if test -z "$GREP"; then
  4348. ac_path_GREP_found=false
  4349. # Loop through the user's path and test for each of PROGNAME-LIST
  4350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4351. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4352. do
  4353. IFS=$as_save_IFS
  4354. case $as_dir in #(((
  4355. '') as_dir=./ ;;
  4356. */) ;;
  4357. *) as_dir=$as_dir/ ;;
  4358. esac
  4359. for ac_prog in grep ggrep
  4360. do
  4361. for ac_exec_ext in '' $ac_executable_extensions; do
  4362. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4363. as_fn_executable_p "$ac_path_GREP" || continue
  4364. # Check for GNU ac_path_GREP and select it if it is found.
  4365. # Check for GNU $ac_path_GREP
  4366. case `"$ac_path_GREP" --version 2>&1` in
  4367. *GNU*)
  4368. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4369. *)
  4370. ac_count=0
  4371. printf %s 0123456789 >"conftest.in"
  4372. while :
  4373. do
  4374. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4375. mv "conftest.tmp" "conftest.in"
  4376. cp "conftest.in" "conftest.nl"
  4377. printf "%s\n" 'GREP' >> "conftest.nl"
  4378. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4379. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4380. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4381. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4382. # Best one so far, save it but keep looking for a better one
  4383. ac_cv_path_GREP="$ac_path_GREP"
  4384. ac_path_GREP_max=$ac_count
  4385. fi
  4386. # 10*(2^10) chars as input seems more than enough
  4387. test $ac_count -gt 10 && break
  4388. done
  4389. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4390. esac
  4391. $ac_path_GREP_found && break 3
  4392. done
  4393. done
  4394. done
  4395. IFS=$as_save_IFS
  4396. if test -z "$ac_cv_path_GREP"; then
  4397. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4398. fi
  4399. else
  4400. ac_cv_path_GREP=$GREP
  4401. fi
  4402. fi
  4403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4404. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4405. GREP="$ac_cv_path_GREP"
  4406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4407. printf %s "checking for egrep... " >&6; }
  4408. if test ${ac_cv_path_EGREP+y}
  4409. then :
  4410. printf %s "(cached) " >&6
  4411. else $as_nop
  4412. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4413. then ac_cv_path_EGREP="$GREP -E"
  4414. else
  4415. if test -z "$EGREP"; then
  4416. ac_path_EGREP_found=false
  4417. # Loop through the user's path and test for each of PROGNAME-LIST
  4418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4419. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4420. do
  4421. IFS=$as_save_IFS
  4422. case $as_dir in #(((
  4423. '') as_dir=./ ;;
  4424. */) ;;
  4425. *) as_dir=$as_dir/ ;;
  4426. esac
  4427. for ac_prog in egrep
  4428. do
  4429. for ac_exec_ext in '' $ac_executable_extensions; do
  4430. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4431. as_fn_executable_p "$ac_path_EGREP" || continue
  4432. # Check for GNU ac_path_EGREP and select it if it is found.
  4433. # Check for GNU $ac_path_EGREP
  4434. case `"$ac_path_EGREP" --version 2>&1` in
  4435. *GNU*)
  4436. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4437. *)
  4438. ac_count=0
  4439. printf %s 0123456789 >"conftest.in"
  4440. while :
  4441. do
  4442. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4443. mv "conftest.tmp" "conftest.in"
  4444. cp "conftest.in" "conftest.nl"
  4445. printf "%s\n" 'EGREP' >> "conftest.nl"
  4446. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4447. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4448. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4449. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4450. # Best one so far, save it but keep looking for a better one
  4451. ac_cv_path_EGREP="$ac_path_EGREP"
  4452. ac_path_EGREP_max=$ac_count
  4453. fi
  4454. # 10*(2^10) chars as input seems more than enough
  4455. test $ac_count -gt 10 && break
  4456. done
  4457. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4458. esac
  4459. $ac_path_EGREP_found && break 3
  4460. done
  4461. done
  4462. done
  4463. IFS=$as_save_IFS
  4464. if test -z "$ac_cv_path_EGREP"; then
  4465. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4466. fi
  4467. else
  4468. ac_cv_path_EGREP=$EGREP
  4469. fi
  4470. fi
  4471. fi
  4472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4473. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4474. EGREP="$ac_cv_path_EGREP"
  4475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4476. printf %s "checking for fgrep... " >&6; }
  4477. if test ${ac_cv_path_FGREP+y}
  4478. then :
  4479. printf %s "(cached) " >&6
  4480. else $as_nop
  4481. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4482. then ac_cv_path_FGREP="$GREP -F"
  4483. else
  4484. if test -z "$FGREP"; then
  4485. ac_path_FGREP_found=false
  4486. # Loop through the user's path and test for each of PROGNAME-LIST
  4487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4488. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4489. do
  4490. IFS=$as_save_IFS
  4491. case $as_dir in #(((
  4492. '') as_dir=./ ;;
  4493. */) ;;
  4494. *) as_dir=$as_dir/ ;;
  4495. esac
  4496. for ac_prog in fgrep
  4497. do
  4498. for ac_exec_ext in '' $ac_executable_extensions; do
  4499. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4500. as_fn_executable_p "$ac_path_FGREP" || continue
  4501. # Check for GNU ac_path_FGREP and select it if it is found.
  4502. # Check for GNU $ac_path_FGREP
  4503. case `"$ac_path_FGREP" --version 2>&1` in
  4504. *GNU*)
  4505. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4506. *)
  4507. ac_count=0
  4508. printf %s 0123456789 >"conftest.in"
  4509. while :
  4510. do
  4511. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4512. mv "conftest.tmp" "conftest.in"
  4513. cp "conftest.in" "conftest.nl"
  4514. printf "%s\n" 'FGREP' >> "conftest.nl"
  4515. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4516. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4517. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4518. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4519. # Best one so far, save it but keep looking for a better one
  4520. ac_cv_path_FGREP="$ac_path_FGREP"
  4521. ac_path_FGREP_max=$ac_count
  4522. fi
  4523. # 10*(2^10) chars as input seems more than enough
  4524. test $ac_count -gt 10 && break
  4525. done
  4526. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4527. esac
  4528. $ac_path_FGREP_found && break 3
  4529. done
  4530. done
  4531. done
  4532. IFS=$as_save_IFS
  4533. if test -z "$ac_cv_path_FGREP"; then
  4534. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4535. fi
  4536. else
  4537. ac_cv_path_FGREP=$FGREP
  4538. fi
  4539. fi
  4540. fi
  4541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4542. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4543. FGREP="$ac_cv_path_FGREP"
  4544. test -z "$GREP" && GREP=grep
  4545. # Check whether --with-gnu-ld was given.
  4546. if test ${with_gnu_ld+y}
  4547. then :
  4548. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4549. else $as_nop
  4550. with_gnu_ld=no
  4551. fi
  4552. ac_prog=ld
  4553. if test yes = "$GCC"; then
  4554. # Check if gcc -print-prog-name=ld gives a path.
  4555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4556. printf %s "checking for ld used by $CC... " >&6; }
  4557. case $host in
  4558. *-*-mingw* | *-*-windows*)
  4559. # gcc leaves a trailing carriage return, which upsets mingw
  4560. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4561. *)
  4562. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4563. esac
  4564. case $ac_prog in
  4565. # Accept absolute paths.
  4566. [\\/]* | ?:[\\/]*)
  4567. re_direlt='/[^/][^/]*/\.\./'
  4568. # Canonicalize the pathname of ld
  4569. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4570. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4571. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4572. done
  4573. test -z "$LD" && LD=$ac_prog
  4574. ;;
  4575. "")
  4576. # If it fails, then pretend we aren't using GCC.
  4577. ac_prog=ld
  4578. ;;
  4579. *)
  4580. # If it is relative, then search for the first ld in PATH.
  4581. with_gnu_ld=unknown
  4582. ;;
  4583. esac
  4584. elif test yes = "$with_gnu_ld"; then
  4585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4586. printf %s "checking for GNU ld... " >&6; }
  4587. else
  4588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4589. printf %s "checking for non-GNU ld... " >&6; }
  4590. fi
  4591. if test ${lt_cv_path_LD+y}
  4592. then :
  4593. printf %s "(cached) " >&6
  4594. else $as_nop
  4595. if test -z "$LD"; then
  4596. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4597. for ac_dir in $PATH; do
  4598. IFS=$lt_save_ifs
  4599. test -z "$ac_dir" && ac_dir=.
  4600. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4601. lt_cv_path_LD=$ac_dir/$ac_prog
  4602. # Check to see if the program is GNU ld. I'd rather use --version,
  4603. # but apparently some variants of GNU ld only accept -v.
  4604. # Break only if it was the GNU/non-GNU ld that we prefer.
  4605. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4606. *GNU* | *'with BFD'*)
  4607. test no != "$with_gnu_ld" && break
  4608. ;;
  4609. *)
  4610. test yes != "$with_gnu_ld" && break
  4611. ;;
  4612. esac
  4613. fi
  4614. done
  4615. IFS=$lt_save_ifs
  4616. else
  4617. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4618. fi
  4619. fi
  4620. LD=$lt_cv_path_LD
  4621. if test -n "$LD"; then
  4622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4623. printf "%s\n" "$LD" >&6; }
  4624. else
  4625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4626. printf "%s\n" "no" >&6; }
  4627. fi
  4628. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4630. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4631. if test ${lt_cv_prog_gnu_ld+y}
  4632. then :
  4633. printf %s "(cached) " >&6
  4634. else $as_nop
  4635. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4636. case `$LD -v 2>&1 </dev/null` in
  4637. *GNU* | *'with BFD'*)
  4638. lt_cv_prog_gnu_ld=yes
  4639. ;;
  4640. *)
  4641. lt_cv_prog_gnu_ld=no
  4642. ;;
  4643. esac
  4644. fi
  4645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4646. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4647. with_gnu_ld=$lt_cv_prog_gnu_ld
  4648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4649. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4650. if test ${lt_cv_path_NM+y}
  4651. then :
  4652. printf %s "(cached) " >&6
  4653. else $as_nop
  4654. if test -n "$NM"; then
  4655. # Let the user override the test.
  4656. lt_cv_path_NM=$NM
  4657. else
  4658. lt_nm_to_check=${ac_tool_prefix}nm
  4659. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4660. lt_nm_to_check="$lt_nm_to_check nm"
  4661. fi
  4662. for lt_tmp_nm in $lt_nm_to_check; do
  4663. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4664. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4665. IFS=$lt_save_ifs
  4666. test -z "$ac_dir" && ac_dir=.
  4667. tmp_nm=$ac_dir/$lt_tmp_nm
  4668. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4669. # Check to see if the nm accepts a BSD-compat flag.
  4670. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4671. # nm: unknown option "B" ignored
  4672. # Tru64's nm complains that /dev/null is an invalid object file
  4673. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4674. case $build_os in
  4675. mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
  4676. *) lt_bad_file=/dev/null ;;
  4677. esac
  4678. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4679. *$lt_bad_file* | *'Invalid file or object type'*)
  4680. lt_cv_path_NM="$tmp_nm -B"
  4681. break 2
  4682. ;;
  4683. *)
  4684. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4685. */dev/null*)
  4686. lt_cv_path_NM="$tmp_nm -p"
  4687. break 2
  4688. ;;
  4689. *)
  4690. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4691. continue # so that we can try to find one that supports BSD flags
  4692. ;;
  4693. esac
  4694. ;;
  4695. esac
  4696. fi
  4697. done
  4698. IFS=$lt_save_ifs
  4699. done
  4700. : ${lt_cv_path_NM=no}
  4701. fi
  4702. fi
  4703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4704. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4705. if test no != "$lt_cv_path_NM"; then
  4706. NM=$lt_cv_path_NM
  4707. else
  4708. # Didn't find any BSD compatible name lister, look for dumpbin.
  4709. if test -n "$DUMPBIN"; then :
  4710. # Let the user override the test.
  4711. else
  4712. if test -n "$ac_tool_prefix"; then
  4713. for ac_prog in dumpbin "link -dump"
  4714. do
  4715. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4716. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4718. printf %s "checking for $ac_word... " >&6; }
  4719. if test ${ac_cv_prog_DUMPBIN+y}
  4720. then :
  4721. printf %s "(cached) " >&6
  4722. else $as_nop
  4723. if test -n "$DUMPBIN"; then
  4724. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4725. else
  4726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4727. for as_dir in $PATH
  4728. do
  4729. IFS=$as_save_IFS
  4730. case $as_dir in #(((
  4731. '') as_dir=./ ;;
  4732. */) ;;
  4733. *) as_dir=$as_dir/ ;;
  4734. esac
  4735. for ac_exec_ext in '' $ac_executable_extensions; do
  4736. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4737. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4738. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4739. break 2
  4740. fi
  4741. done
  4742. done
  4743. IFS=$as_save_IFS
  4744. fi
  4745. fi
  4746. DUMPBIN=$ac_cv_prog_DUMPBIN
  4747. if test -n "$DUMPBIN"; then
  4748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4749. printf "%s\n" "$DUMPBIN" >&6; }
  4750. else
  4751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4752. printf "%s\n" "no" >&6; }
  4753. fi
  4754. test -n "$DUMPBIN" && break
  4755. done
  4756. fi
  4757. if test -z "$DUMPBIN"; then
  4758. ac_ct_DUMPBIN=$DUMPBIN
  4759. for ac_prog in dumpbin "link -dump"
  4760. do
  4761. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4762. set dummy $ac_prog; ac_word=$2
  4763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4764. printf %s "checking for $ac_word... " >&6; }
  4765. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4766. then :
  4767. printf %s "(cached) " >&6
  4768. else $as_nop
  4769. if test -n "$ac_ct_DUMPBIN"; then
  4770. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4771. else
  4772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4773. for as_dir in $PATH
  4774. do
  4775. IFS=$as_save_IFS
  4776. case $as_dir in #(((
  4777. '') as_dir=./ ;;
  4778. */) ;;
  4779. *) as_dir=$as_dir/ ;;
  4780. esac
  4781. for ac_exec_ext in '' $ac_executable_extensions; do
  4782. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4783. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4784. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4785. break 2
  4786. fi
  4787. done
  4788. done
  4789. IFS=$as_save_IFS
  4790. fi
  4791. fi
  4792. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4793. if test -n "$ac_ct_DUMPBIN"; then
  4794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4795. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4796. else
  4797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4798. printf "%s\n" "no" >&6; }
  4799. fi
  4800. test -n "$ac_ct_DUMPBIN" && break
  4801. done
  4802. if test "x$ac_ct_DUMPBIN" = x; then
  4803. DUMPBIN=":"
  4804. else
  4805. case $cross_compiling:$ac_tool_warned in
  4806. yes:)
  4807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4808. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4809. ac_tool_warned=yes ;;
  4810. esac
  4811. DUMPBIN=$ac_ct_DUMPBIN
  4812. fi
  4813. fi
  4814. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4815. *COFF*)
  4816. DUMPBIN="$DUMPBIN -symbols -headers"
  4817. ;;
  4818. *)
  4819. DUMPBIN=:
  4820. ;;
  4821. esac
  4822. fi
  4823. if test : != "$DUMPBIN"; then
  4824. NM=$DUMPBIN
  4825. fi
  4826. fi
  4827. test -z "$NM" && NM=nm
  4828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4829. printf %s "checking the name lister ($NM) interface... " >&6; }
  4830. if test ${lt_cv_nm_interface+y}
  4831. then :
  4832. printf %s "(cached) " >&6
  4833. else $as_nop
  4834. lt_cv_nm_interface="BSD nm"
  4835. echo "int some_variable = 0;" > conftest.$ac_ext
  4836. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4837. (eval "$ac_compile" 2>conftest.err)
  4838. cat conftest.err >&5
  4839. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4840. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4841. cat conftest.err >&5
  4842. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4843. cat conftest.out >&5
  4844. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4845. lt_cv_nm_interface="MS dumpbin"
  4846. fi
  4847. rm -f conftest*
  4848. fi
  4849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4850. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4852. printf %s "checking whether ln -s works... " >&6; }
  4853. LN_S=$as_ln_s
  4854. if test "$LN_S" = "ln -s"; then
  4855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4856. printf "%s\n" "yes" >&6; }
  4857. else
  4858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4859. printf "%s\n" "no, using $LN_S" >&6; }
  4860. fi
  4861. # find the maximum length of command line arguments
  4862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4863. printf %s "checking the maximum length of command line arguments... " >&6; }
  4864. if test ${lt_cv_sys_max_cmd_len+y}
  4865. then :
  4866. printf %s "(cached) " >&6
  4867. else $as_nop
  4868. i=0
  4869. teststring=ABCD
  4870. case $build_os in
  4871. msdosdjgpp*)
  4872. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4873. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4874. # during glob expansion). Even if it were fixed, the result of this
  4875. # check would be larger than it should be.
  4876. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4877. ;;
  4878. gnu*)
  4879. # Under GNU Hurd, this test is not required because there is
  4880. # no limit to the length of command line arguments.
  4881. # Libtool will interpret -1 as no limit whatsoever
  4882. lt_cv_sys_max_cmd_len=-1;
  4883. ;;
  4884. cygwin* | mingw* | windows* | cegcc*)
  4885. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4886. # about 5 minutes as the teststring grows exponentially.
  4887. # Worse, since 9x/ME are not pre-emptively multitasking,
  4888. # you end up with a "frozen" computer, even though with patience
  4889. # the test eventually succeeds (with a max line length of 256k).
  4890. # Instead, let's just punt: use the minimum linelength reported by
  4891. # all of the supported platforms: 8192 (on NT/2K/XP).
  4892. lt_cv_sys_max_cmd_len=8192;
  4893. ;;
  4894. mint*)
  4895. # On MiNT this can take a long time and run out of memory.
  4896. lt_cv_sys_max_cmd_len=8192;
  4897. ;;
  4898. amigaos*)
  4899. # On AmigaOS with pdksh, this test takes hours, literally.
  4900. # So we just punt and use a minimum line length of 8192.
  4901. lt_cv_sys_max_cmd_len=8192;
  4902. ;;
  4903. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4904. # This has been around since 386BSD, at least. Likely further.
  4905. if test -x /sbin/sysctl; then
  4906. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4907. elif test -x /usr/sbin/sysctl; then
  4908. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4909. else
  4910. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4911. fi
  4912. # And add a safety zone
  4913. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4914. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4915. ;;
  4916. interix*)
  4917. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4918. lt_cv_sys_max_cmd_len=196608
  4919. ;;
  4920. os2*)
  4921. # The test takes a long time on OS/2.
  4922. lt_cv_sys_max_cmd_len=8192
  4923. ;;
  4924. osf*)
  4925. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4926. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4927. # nice to cause kernel panics so lets avoid the loop below.
  4928. # First set a reasonable default.
  4929. lt_cv_sys_max_cmd_len=16384
  4930. #
  4931. if test -x /sbin/sysconfig; then
  4932. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4933. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4934. esac
  4935. fi
  4936. ;;
  4937. sco3.2v5*)
  4938. lt_cv_sys_max_cmd_len=102400
  4939. ;;
  4940. sysv5* | sco5v6* | sysv4.2uw2*)
  4941. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4942. if test -n "$kargmax"; then
  4943. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4944. else
  4945. lt_cv_sys_max_cmd_len=32768
  4946. fi
  4947. ;;
  4948. *)
  4949. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4950. if test -n "$lt_cv_sys_max_cmd_len" && \
  4951. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4952. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4953. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4954. else
  4955. # Make teststring a little bigger before we do anything with it.
  4956. # a 1K string should be a reasonable start.
  4957. for i in 1 2 3 4 5 6 7 8; do
  4958. teststring=$teststring$teststring
  4959. done
  4960. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4961. # If test is not a shell built-in, we'll probably end up computing a
  4962. # maximum length that is only half of the actual maximum length, but
  4963. # we can't tell.
  4964. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4965. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4966. test 17 != "$i" # 1/2 MB should be enough
  4967. do
  4968. i=`expr $i + 1`
  4969. teststring=$teststring$teststring
  4970. done
  4971. # Only check the string length outside the loop.
  4972. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4973. teststring=
  4974. # Add a significant safety factor because C++ compilers can tack on
  4975. # massive amounts of additional arguments before passing them to the
  4976. # linker. It appears as though 1/2 is a usable value.
  4977. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4978. fi
  4979. ;;
  4980. esac
  4981. fi
  4982. if test -n "$lt_cv_sys_max_cmd_len"; then
  4983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4984. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4985. else
  4986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4987. printf "%s\n" "none" >&6; }
  4988. fi
  4989. max_cmd_len=$lt_cv_sys_max_cmd_len
  4990. : ${CP="cp -f"}
  4991. : ${MV="mv -f"}
  4992. : ${RM="rm -f"}
  4993. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4994. lt_unset=unset
  4995. else
  4996. lt_unset=false
  4997. fi
  4998. # test EBCDIC or ASCII
  4999. case `echo X|tr X '\101'` in
  5000. A) # ASCII based system
  5001. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5002. lt_SP2NL='tr \040 \012'
  5003. lt_NL2SP='tr \015\012 \040\040'
  5004. ;;
  5005. *) # EBCDIC based system
  5006. lt_SP2NL='tr \100 \n'
  5007. lt_NL2SP='tr \r\n \100\100'
  5008. ;;
  5009. esac
  5010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5011. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5012. if test ${lt_cv_to_host_file_cmd+y}
  5013. then :
  5014. printf %s "(cached) " >&6
  5015. else $as_nop
  5016. case $host in
  5017. *-*-mingw* )
  5018. case $build in
  5019. *-*-mingw* | *-*-windows* ) # actually msys
  5020. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5021. ;;
  5022. *-*-cygwin* )
  5023. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5024. ;;
  5025. * ) # otherwise, assume *nix
  5026. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5027. ;;
  5028. esac
  5029. ;;
  5030. *-*-cygwin* )
  5031. case $build in
  5032. *-*-mingw* | *-*-windows* ) # actually msys
  5033. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5034. ;;
  5035. *-*-cygwin* )
  5036. lt_cv_to_host_file_cmd=func_convert_file_noop
  5037. ;;
  5038. * ) # otherwise, assume *nix
  5039. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5040. ;;
  5041. esac
  5042. ;;
  5043. * ) # unhandled hosts (and "normal" native builds)
  5044. lt_cv_to_host_file_cmd=func_convert_file_noop
  5045. ;;
  5046. esac
  5047. fi
  5048. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5050. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5052. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5053. if test ${lt_cv_to_tool_file_cmd+y}
  5054. then :
  5055. printf %s "(cached) " >&6
  5056. else $as_nop
  5057. #assume ordinary cross tools, or native build.
  5058. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5059. case $host in
  5060. *-*-mingw* | *-*-windows* )
  5061. case $build in
  5062. *-*-mingw* | *-*-windows* ) # actually msys
  5063. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5064. ;;
  5065. esac
  5066. ;;
  5067. esac
  5068. fi
  5069. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5071. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5073. printf %s "checking for $LD option to reload object files... " >&6; }
  5074. if test ${lt_cv_ld_reload_flag+y}
  5075. then :
  5076. printf %s "(cached) " >&6
  5077. else $as_nop
  5078. lt_cv_ld_reload_flag='-r'
  5079. fi
  5080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5081. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5082. reload_flag=$lt_cv_ld_reload_flag
  5083. case $reload_flag in
  5084. "" | " "*) ;;
  5085. *) reload_flag=" $reload_flag" ;;
  5086. esac
  5087. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5088. case $host_os in
  5089. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5090. if test yes != "$GCC"; then
  5091. reload_cmds=false
  5092. fi
  5093. ;;
  5094. darwin*)
  5095. if test yes = "$GCC"; then
  5096. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5097. else
  5098. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5099. fi
  5100. ;;
  5101. esac
  5102. if test -n "$ac_tool_prefix"; then
  5103. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5104. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5106. printf %s "checking for $ac_word... " >&6; }
  5107. if test ${ac_cv_prog_OBJDUMP+y}
  5108. then :
  5109. printf %s "(cached) " >&6
  5110. else $as_nop
  5111. if test -n "$OBJDUMP"; then
  5112. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5113. else
  5114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5115. for as_dir in $PATH
  5116. do
  5117. IFS=$as_save_IFS
  5118. case $as_dir in #(((
  5119. '') as_dir=./ ;;
  5120. */) ;;
  5121. *) as_dir=$as_dir/ ;;
  5122. esac
  5123. for ac_exec_ext in '' $ac_executable_extensions; do
  5124. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5125. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5126. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5127. break 2
  5128. fi
  5129. done
  5130. done
  5131. IFS=$as_save_IFS
  5132. fi
  5133. fi
  5134. OBJDUMP=$ac_cv_prog_OBJDUMP
  5135. if test -n "$OBJDUMP"; then
  5136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5137. printf "%s\n" "$OBJDUMP" >&6; }
  5138. else
  5139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5140. printf "%s\n" "no" >&6; }
  5141. fi
  5142. fi
  5143. if test -z "$ac_cv_prog_OBJDUMP"; then
  5144. ac_ct_OBJDUMP=$OBJDUMP
  5145. # Extract the first word of "objdump", so it can be a program name with args.
  5146. set dummy objdump; ac_word=$2
  5147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5148. printf %s "checking for $ac_word... " >&6; }
  5149. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5150. then :
  5151. printf %s "(cached) " >&6
  5152. else $as_nop
  5153. if test -n "$ac_ct_OBJDUMP"; then
  5154. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5155. else
  5156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5157. for as_dir in $PATH
  5158. do
  5159. IFS=$as_save_IFS
  5160. case $as_dir in #(((
  5161. '') as_dir=./ ;;
  5162. */) ;;
  5163. *) as_dir=$as_dir/ ;;
  5164. esac
  5165. for ac_exec_ext in '' $ac_executable_extensions; do
  5166. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5167. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5168. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5169. break 2
  5170. fi
  5171. done
  5172. done
  5173. IFS=$as_save_IFS
  5174. fi
  5175. fi
  5176. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5177. if test -n "$ac_ct_OBJDUMP"; then
  5178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5179. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5180. else
  5181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5182. printf "%s\n" "no" >&6; }
  5183. fi
  5184. if test "x$ac_ct_OBJDUMP" = x; then
  5185. OBJDUMP="false"
  5186. else
  5187. case $cross_compiling:$ac_tool_warned in
  5188. yes:)
  5189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5190. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5191. ac_tool_warned=yes ;;
  5192. esac
  5193. OBJDUMP=$ac_ct_OBJDUMP
  5194. fi
  5195. else
  5196. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5197. fi
  5198. test -z "$OBJDUMP" && OBJDUMP=objdump
  5199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5200. printf %s "checking how to recognize dependent libraries... " >&6; }
  5201. if test ${lt_cv_deplibs_check_method+y}
  5202. then :
  5203. printf %s "(cached) " >&6
  5204. else $as_nop
  5205. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5206. lt_cv_file_magic_test_file=
  5207. lt_cv_deplibs_check_method='unknown'
  5208. # Need to set the preceding variable on all platforms that support
  5209. # interlibrary dependencies.
  5210. # 'none' -- dependencies not supported.
  5211. # 'unknown' -- same as none, but documents that we really don't know.
  5212. # 'pass_all' -- all dependencies passed with no checks.
  5213. # 'test_compile' -- check by making test program.
  5214. # 'file_magic [[regex]]' -- check by looking for files in library path
  5215. # that responds to the $file_magic_cmd with a given extended regex.
  5216. # If you have 'file' or equivalent on your system and you're not sure
  5217. # whether 'pass_all' will *always* work, you probably want this one.
  5218. case $host_os in
  5219. aix[4-9]*)
  5220. lt_cv_deplibs_check_method=pass_all
  5221. ;;
  5222. beos*)
  5223. lt_cv_deplibs_check_method=pass_all
  5224. ;;
  5225. bsdi[45]*)
  5226. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5227. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5228. lt_cv_file_magic_test_file=/shlib/libc.so
  5229. ;;
  5230. cygwin*)
  5231. # func_win32_libid is a shell function defined in ltmain.sh
  5232. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5233. lt_cv_file_magic_cmd='func_win32_libid'
  5234. lt_cv_deplibs_check_method=pass_all # SDL customization.
  5235. ;;
  5236. mingw* | windows* | pw32*)
  5237. # Base MSYS/MinGW do not provide the 'file' command needed by
  5238. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5239. # unless we find 'file', for example because we are cross-compiling.
  5240. if ( file / ) >/dev/null 2>&1; then
  5241. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5242. lt_cv_file_magic_cmd='func_win32_libid'
  5243. else
  5244. # Keep this pattern in sync with the one in func_win32_libid.
  5245. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
  5246. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5247. fi
  5248. lt_cv_deplibs_check_method=pass_all # SDL customization.
  5249. ;;
  5250. cegcc*)
  5251. # use the weaker test based on 'objdump'. See mingw*.
  5252. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5253. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5254. ;;
  5255. darwin* | rhapsody*)
  5256. lt_cv_deplibs_check_method=pass_all
  5257. ;;
  5258. freebsd* | dragonfly* | midnightbsd*)
  5259. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5260. case $host_cpu in
  5261. i*86 )
  5262. # Not sure whether the presence of OpenBSD here was a mistake.
  5263. # Let's accept both of them until this is cleared up.
  5264. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5265. lt_cv_file_magic_cmd=/usr/bin/file
  5266. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5267. ;;
  5268. esac
  5269. else
  5270. lt_cv_deplibs_check_method=pass_all
  5271. fi
  5272. ;;
  5273. haiku*)
  5274. lt_cv_deplibs_check_method=pass_all
  5275. ;;
  5276. hpux10.20* | hpux11*)
  5277. lt_cv_file_magic_cmd=/usr/bin/file
  5278. case $host_cpu in
  5279. ia64*)
  5280. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5281. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5282. ;;
  5283. hppa*64*)
  5284. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5285. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5286. ;;
  5287. *)
  5288. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5289. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5290. ;;
  5291. esac
  5292. ;;
  5293. interix[3-9]*)
  5294. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5295. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5296. ;;
  5297. irix5* | irix6* | nonstopux*)
  5298. case $LD in
  5299. *-32|*"-32 ") libmagic=32-bit;;
  5300. *-n32|*"-n32 ") libmagic=N32;;
  5301. *-64|*"-64 ") libmagic=64-bit;;
  5302. *) libmagic=never-match;;
  5303. esac
  5304. lt_cv_deplibs_check_method=pass_all
  5305. ;;
  5306. # This must be glibc/ELF.
  5307. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5308. lt_cv_deplibs_check_method=pass_all
  5309. ;;
  5310. netbsd*)
  5311. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5312. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5313. else
  5314. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5315. fi
  5316. ;;
  5317. newos6*)
  5318. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5319. lt_cv_file_magic_cmd=/usr/bin/file
  5320. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5321. ;;
  5322. *nto* | *qnx*)
  5323. lt_cv_deplibs_check_method=pass_all
  5324. ;;
  5325. openbsd* | bitrig*)
  5326. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5327. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5328. else
  5329. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5330. fi
  5331. ;;
  5332. osf3* | osf4* | osf5*)
  5333. lt_cv_deplibs_check_method=pass_all
  5334. ;;
  5335. rdos*)
  5336. lt_cv_deplibs_check_method=pass_all
  5337. ;;
  5338. solaris*)
  5339. lt_cv_deplibs_check_method=pass_all
  5340. ;;
  5341. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5342. lt_cv_deplibs_check_method=pass_all
  5343. ;;
  5344. sysv4 | sysv4.3*)
  5345. case $host_vendor in
  5346. motorola)
  5347. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  5348. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5349. ;;
  5350. ncr)
  5351. lt_cv_deplibs_check_method=pass_all
  5352. ;;
  5353. sequent)
  5354. lt_cv_file_magic_cmd='/bin/file'
  5355. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5356. ;;
  5357. sni)
  5358. lt_cv_file_magic_cmd='/bin/file'
  5359. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5360. lt_cv_file_magic_test_file=/lib/libc.so
  5361. ;;
  5362. siemens)
  5363. lt_cv_deplibs_check_method=pass_all
  5364. ;;
  5365. pc)
  5366. lt_cv_deplibs_check_method=pass_all
  5367. ;;
  5368. esac
  5369. ;;
  5370. tpf*)
  5371. lt_cv_deplibs_check_method=pass_all
  5372. ;;
  5373. os2*)
  5374. lt_cv_deplibs_check_method=pass_all
  5375. ;;
  5376. esac
  5377. fi
  5378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5379. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5380. file_magic_glob=
  5381. want_nocaseglob=no
  5382. if test "$build" = "$host"; then
  5383. case $host_os in
  5384. mingw* | windows* | pw32*)
  5385. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5386. want_nocaseglob=yes
  5387. else
  5388. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5389. fi
  5390. ;;
  5391. esac
  5392. fi
  5393. file_magic_cmd=$lt_cv_file_magic_cmd
  5394. deplibs_check_method=$lt_cv_deplibs_check_method
  5395. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5396. if test -n "$ac_tool_prefix"; then
  5397. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5398. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5400. printf %s "checking for $ac_word... " >&6; }
  5401. if test ${ac_cv_prog_DLLTOOL+y}
  5402. then :
  5403. printf %s "(cached) " >&6
  5404. else $as_nop
  5405. if test -n "$DLLTOOL"; then
  5406. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5407. else
  5408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5409. for as_dir in $PATH
  5410. do
  5411. IFS=$as_save_IFS
  5412. case $as_dir in #(((
  5413. '') as_dir=./ ;;
  5414. */) ;;
  5415. *) as_dir=$as_dir/ ;;
  5416. esac
  5417. for ac_exec_ext in '' $ac_executable_extensions; do
  5418. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5419. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5420. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5421. break 2
  5422. fi
  5423. done
  5424. done
  5425. IFS=$as_save_IFS
  5426. fi
  5427. fi
  5428. DLLTOOL=$ac_cv_prog_DLLTOOL
  5429. if test -n "$DLLTOOL"; then
  5430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5431. printf "%s\n" "$DLLTOOL" >&6; }
  5432. else
  5433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5434. printf "%s\n" "no" >&6; }
  5435. fi
  5436. fi
  5437. if test -z "$ac_cv_prog_DLLTOOL"; then
  5438. ac_ct_DLLTOOL=$DLLTOOL
  5439. # Extract the first word of "dlltool", so it can be a program name with args.
  5440. set dummy dlltool; ac_word=$2
  5441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5442. printf %s "checking for $ac_word... " >&6; }
  5443. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5444. then :
  5445. printf %s "(cached) " >&6
  5446. else $as_nop
  5447. if test -n "$ac_ct_DLLTOOL"; then
  5448. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5449. else
  5450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5451. for as_dir in $PATH
  5452. do
  5453. IFS=$as_save_IFS
  5454. case $as_dir in #(((
  5455. '') as_dir=./ ;;
  5456. */) ;;
  5457. *) as_dir=$as_dir/ ;;
  5458. esac
  5459. for ac_exec_ext in '' $ac_executable_extensions; do
  5460. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5461. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5462. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5463. break 2
  5464. fi
  5465. done
  5466. done
  5467. IFS=$as_save_IFS
  5468. fi
  5469. fi
  5470. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5471. if test -n "$ac_ct_DLLTOOL"; then
  5472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5473. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5474. else
  5475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5476. printf "%s\n" "no" >&6; }
  5477. fi
  5478. if test "x$ac_ct_DLLTOOL" = x; then
  5479. DLLTOOL="false"
  5480. else
  5481. case $cross_compiling:$ac_tool_warned in
  5482. yes:)
  5483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5484. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5485. ac_tool_warned=yes ;;
  5486. esac
  5487. DLLTOOL=$ac_ct_DLLTOOL
  5488. fi
  5489. else
  5490. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5491. fi
  5492. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5494. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5495. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5496. then :
  5497. printf %s "(cached) " >&6
  5498. else $as_nop
  5499. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5500. case $host_os in
  5501. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5502. # two different shell functions defined in ltmain.sh;
  5503. # decide which one to use based on capabilities of $DLLTOOL
  5504. case `$DLLTOOL --help 2>&1` in
  5505. *--identify-strict*)
  5506. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5507. ;;
  5508. *)
  5509. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5510. ;;
  5511. esac
  5512. ;;
  5513. *)
  5514. # fallback: assume linklib IS sharedlib
  5515. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5516. ;;
  5517. esac
  5518. fi
  5519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5520. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5521. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5522. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5523. if test -n "$ac_tool_prefix"; then
  5524. for ac_prog in ar
  5525. do
  5526. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5527. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5529. printf %s "checking for $ac_word... " >&6; }
  5530. if test ${ac_cv_prog_AR+y}
  5531. then :
  5532. printf %s "(cached) " >&6
  5533. else $as_nop
  5534. if test -n "$AR"; then
  5535. ac_cv_prog_AR="$AR" # Let the user override the test.
  5536. else
  5537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5538. for as_dir in $PATH
  5539. do
  5540. IFS=$as_save_IFS
  5541. case $as_dir in #(((
  5542. '') as_dir=./ ;;
  5543. */) ;;
  5544. *) as_dir=$as_dir/ ;;
  5545. esac
  5546. for ac_exec_ext in '' $ac_executable_extensions; do
  5547. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5548. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5549. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5550. break 2
  5551. fi
  5552. done
  5553. done
  5554. IFS=$as_save_IFS
  5555. fi
  5556. fi
  5557. AR=$ac_cv_prog_AR
  5558. if test -n "$AR"; then
  5559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5560. printf "%s\n" "$AR" >&6; }
  5561. else
  5562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5563. printf "%s\n" "no" >&6; }
  5564. fi
  5565. test -n "$AR" && break
  5566. done
  5567. fi
  5568. if test -z "$AR"; then
  5569. ac_ct_AR=$AR
  5570. for ac_prog in ar
  5571. do
  5572. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5573. set dummy $ac_prog; ac_word=$2
  5574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5575. printf %s "checking for $ac_word... " >&6; }
  5576. if test ${ac_cv_prog_ac_ct_AR+y}
  5577. then :
  5578. printf %s "(cached) " >&6
  5579. else $as_nop
  5580. if test -n "$ac_ct_AR"; then
  5581. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5582. else
  5583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5584. for as_dir in $PATH
  5585. do
  5586. IFS=$as_save_IFS
  5587. case $as_dir in #(((
  5588. '') as_dir=./ ;;
  5589. */) ;;
  5590. *) as_dir=$as_dir/ ;;
  5591. esac
  5592. for ac_exec_ext in '' $ac_executable_extensions; do
  5593. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5594. ac_cv_prog_ac_ct_AR="$ac_prog"
  5595. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5596. break 2
  5597. fi
  5598. done
  5599. done
  5600. IFS=$as_save_IFS
  5601. fi
  5602. fi
  5603. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5604. if test -n "$ac_ct_AR"; then
  5605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5606. printf "%s\n" "$ac_ct_AR" >&6; }
  5607. else
  5608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5609. printf "%s\n" "no" >&6; }
  5610. fi
  5611. test -n "$ac_ct_AR" && break
  5612. done
  5613. if test "x$ac_ct_AR" = x; then
  5614. AR="false"
  5615. else
  5616. case $cross_compiling:$ac_tool_warned in
  5617. yes:)
  5618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5619. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5620. ac_tool_warned=yes ;;
  5621. esac
  5622. AR=$ac_ct_AR
  5623. fi
  5624. fi
  5625. : ${AR=ar}
  5626. : ${AR_FLAGS=cru}
  5627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5628. printf %s "checking for archiver @FILE support... " >&6; }
  5629. if test ${lt_cv_ar_at_file+y}
  5630. then :
  5631. printf %s "(cached) " >&6
  5632. else $as_nop
  5633. lt_cv_ar_at_file=no
  5634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5635. /* end confdefs.h. */
  5636. int
  5637. main (void)
  5638. {
  5639. ;
  5640. return 0;
  5641. }
  5642. _ACEOF
  5643. if ac_fn_c_try_compile "$LINENO"
  5644. then :
  5645. echo conftest.$ac_objext > conftest.lst
  5646. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5647. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5648. (eval $lt_ar_try) 2>&5
  5649. ac_status=$?
  5650. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5651. test $ac_status = 0; }
  5652. if test 0 -eq "$ac_status"; then
  5653. # Ensure the archiver fails upon bogus file names.
  5654. rm -f conftest.$ac_objext libconftest.a
  5655. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5656. (eval $lt_ar_try) 2>&5
  5657. ac_status=$?
  5658. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5659. test $ac_status = 0; }
  5660. if test 0 -ne "$ac_status"; then
  5661. lt_cv_ar_at_file=@
  5662. fi
  5663. fi
  5664. rm -f conftest.* libconftest.a
  5665. fi
  5666. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5667. fi
  5668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5669. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5670. if test no = "$lt_cv_ar_at_file"; then
  5671. archiver_list_spec=
  5672. else
  5673. archiver_list_spec=$lt_cv_ar_at_file
  5674. fi
  5675. if test -n "$ac_tool_prefix"; then
  5676. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5677. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5679. printf %s "checking for $ac_word... " >&6; }
  5680. if test ${ac_cv_prog_STRIP+y}
  5681. then :
  5682. printf %s "(cached) " >&6
  5683. else $as_nop
  5684. if test -n "$STRIP"; then
  5685. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5686. else
  5687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5688. for as_dir in $PATH
  5689. do
  5690. IFS=$as_save_IFS
  5691. case $as_dir in #(((
  5692. '') as_dir=./ ;;
  5693. */) ;;
  5694. *) as_dir=$as_dir/ ;;
  5695. esac
  5696. for ac_exec_ext in '' $ac_executable_extensions; do
  5697. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5698. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5699. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5700. break 2
  5701. fi
  5702. done
  5703. done
  5704. IFS=$as_save_IFS
  5705. fi
  5706. fi
  5707. STRIP=$ac_cv_prog_STRIP
  5708. if test -n "$STRIP"; then
  5709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5710. printf "%s\n" "$STRIP" >&6; }
  5711. else
  5712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5713. printf "%s\n" "no" >&6; }
  5714. fi
  5715. fi
  5716. if test -z "$ac_cv_prog_STRIP"; then
  5717. ac_ct_STRIP=$STRIP
  5718. # Extract the first word of "strip", so it can be a program name with args.
  5719. set dummy strip; ac_word=$2
  5720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5721. printf %s "checking for $ac_word... " >&6; }
  5722. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5723. then :
  5724. printf %s "(cached) " >&6
  5725. else $as_nop
  5726. if test -n "$ac_ct_STRIP"; then
  5727. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5728. else
  5729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5730. for as_dir in $PATH
  5731. do
  5732. IFS=$as_save_IFS
  5733. case $as_dir in #(((
  5734. '') as_dir=./ ;;
  5735. */) ;;
  5736. *) as_dir=$as_dir/ ;;
  5737. esac
  5738. for ac_exec_ext in '' $ac_executable_extensions; do
  5739. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5740. ac_cv_prog_ac_ct_STRIP="strip"
  5741. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5742. break 2
  5743. fi
  5744. done
  5745. done
  5746. IFS=$as_save_IFS
  5747. fi
  5748. fi
  5749. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5750. if test -n "$ac_ct_STRIP"; then
  5751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5752. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5753. else
  5754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5755. printf "%s\n" "no" >&6; }
  5756. fi
  5757. if test "x$ac_ct_STRIP" = x; then
  5758. STRIP=":"
  5759. else
  5760. case $cross_compiling:$ac_tool_warned in
  5761. yes:)
  5762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5763. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5764. ac_tool_warned=yes ;;
  5765. esac
  5766. STRIP=$ac_ct_STRIP
  5767. fi
  5768. else
  5769. STRIP="$ac_cv_prog_STRIP"
  5770. fi
  5771. test -z "$STRIP" && STRIP=:
  5772. if test -n "$ac_tool_prefix"; then
  5773. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5774. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5776. printf %s "checking for $ac_word... " >&6; }
  5777. if test ${ac_cv_prog_RANLIB+y}
  5778. then :
  5779. printf %s "(cached) " >&6
  5780. else $as_nop
  5781. if test -n "$RANLIB"; then
  5782. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5783. else
  5784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5785. for as_dir in $PATH
  5786. do
  5787. IFS=$as_save_IFS
  5788. case $as_dir in #(((
  5789. '') as_dir=./ ;;
  5790. */) ;;
  5791. *) as_dir=$as_dir/ ;;
  5792. esac
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5795. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5796. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. IFS=$as_save_IFS
  5802. fi
  5803. fi
  5804. RANLIB=$ac_cv_prog_RANLIB
  5805. if test -n "$RANLIB"; then
  5806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5807. printf "%s\n" "$RANLIB" >&6; }
  5808. else
  5809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5810. printf "%s\n" "no" >&6; }
  5811. fi
  5812. fi
  5813. if test -z "$ac_cv_prog_RANLIB"; then
  5814. ac_ct_RANLIB=$RANLIB
  5815. # Extract the first word of "ranlib", so it can be a program name with args.
  5816. set dummy ranlib; ac_word=$2
  5817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5818. printf %s "checking for $ac_word... " >&6; }
  5819. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5820. then :
  5821. printf %s "(cached) " >&6
  5822. else $as_nop
  5823. if test -n "$ac_ct_RANLIB"; then
  5824. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5825. else
  5826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5827. for as_dir in $PATH
  5828. do
  5829. IFS=$as_save_IFS
  5830. case $as_dir in #(((
  5831. '') as_dir=./ ;;
  5832. */) ;;
  5833. *) as_dir=$as_dir/ ;;
  5834. esac
  5835. for ac_exec_ext in '' $ac_executable_extensions; do
  5836. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5837. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5838. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5839. break 2
  5840. fi
  5841. done
  5842. done
  5843. IFS=$as_save_IFS
  5844. fi
  5845. fi
  5846. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5847. if test -n "$ac_ct_RANLIB"; then
  5848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5849. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5850. else
  5851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5852. printf "%s\n" "no" >&6; }
  5853. fi
  5854. if test "x$ac_ct_RANLIB" = x; then
  5855. RANLIB=":"
  5856. else
  5857. case $cross_compiling:$ac_tool_warned in
  5858. yes:)
  5859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5860. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5861. ac_tool_warned=yes ;;
  5862. esac
  5863. RANLIB=$ac_ct_RANLIB
  5864. fi
  5865. else
  5866. RANLIB="$ac_cv_prog_RANLIB"
  5867. fi
  5868. test -z "$RANLIB" && RANLIB=:
  5869. # Determine commands to create old-style static archives.
  5870. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5871. old_postinstall_cmds='chmod 644 $oldlib'
  5872. old_postuninstall_cmds=
  5873. if test -n "$RANLIB"; then
  5874. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5875. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5876. fi
  5877. case $host_os in
  5878. darwin*)
  5879. lock_old_archive_extraction=yes ;;
  5880. *)
  5881. lock_old_archive_extraction=no ;;
  5882. esac
  5883. for ac_prog in gawk mawk nawk awk
  5884. do
  5885. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5886. set dummy $ac_prog; ac_word=$2
  5887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5888. printf %s "checking for $ac_word... " >&6; }
  5889. if test ${ac_cv_prog_AWK+y}
  5890. then :
  5891. printf %s "(cached) " >&6
  5892. else $as_nop
  5893. if test -n "$AWK"; then
  5894. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5895. else
  5896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5897. for as_dir in $PATH
  5898. do
  5899. IFS=$as_save_IFS
  5900. case $as_dir in #(((
  5901. '') as_dir=./ ;;
  5902. */) ;;
  5903. *) as_dir=$as_dir/ ;;
  5904. esac
  5905. for ac_exec_ext in '' $ac_executable_extensions; do
  5906. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5907. ac_cv_prog_AWK="$ac_prog"
  5908. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5909. break 2
  5910. fi
  5911. done
  5912. done
  5913. IFS=$as_save_IFS
  5914. fi
  5915. fi
  5916. AWK=$ac_cv_prog_AWK
  5917. if test -n "$AWK"; then
  5918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5919. printf "%s\n" "$AWK" >&6; }
  5920. else
  5921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5922. printf "%s\n" "no" >&6; }
  5923. fi
  5924. test -n "$AWK" && break
  5925. done
  5926. # If no C compiler was specified, use CC.
  5927. LTCC=${LTCC-"$CC"}
  5928. # If no C compiler flags were specified, use CFLAGS.
  5929. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5930. # Allow CC to be a program name with arguments.
  5931. compiler=$CC
  5932. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5934. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5935. if test ${lt_cv_sys_global_symbol_pipe+y}
  5936. then :
  5937. printf %s "(cached) " >&6
  5938. else $as_nop
  5939. # These are sane defaults that work on at least a few old systems.
  5940. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5941. # Character class describing NM global symbol codes.
  5942. symcode='[BCDEGRST]'
  5943. # Regexp to match symbols that can be accessed directly from C.
  5944. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5945. # Define system-specific variables.
  5946. case $host_os in
  5947. aix*)
  5948. symcode='[BCDT]'
  5949. ;;
  5950. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5951. symcode='[ABCDGISTW]'
  5952. ;;
  5953. hpux*)
  5954. if test ia64 = "$host_cpu"; then
  5955. symcode='[ABCDEGRST]'
  5956. fi
  5957. ;;
  5958. irix* | nonstopux*)
  5959. symcode='[BCDEGRST]'
  5960. ;;
  5961. osf*)
  5962. symcode='[BCDEGQRST]'
  5963. ;;
  5964. solaris*)
  5965. symcode='[BCDRT]'
  5966. ;;
  5967. sco3.2v5*)
  5968. symcode='[DT]'
  5969. ;;
  5970. sysv4.2uw2*)
  5971. symcode='[DT]'
  5972. ;;
  5973. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5974. symcode='[ABDT]'
  5975. ;;
  5976. sysv4)
  5977. symcode='[DFNSTU]'
  5978. ;;
  5979. esac
  5980. # If we're using GNU nm, then use its standard symbol codes.
  5981. case `$NM -V 2>&1` in
  5982. *GNU* | *'with BFD'*)
  5983. symcode='[ABCDGIRSTW]' ;;
  5984. esac
  5985. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5986. # Gets list of data symbols to import.
  5987. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5988. # Adjust the below global symbol transforms to fixup imported variables.
  5989. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5990. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5991. lt_c_name_lib_hook="\
  5992. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5993. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5994. else
  5995. # Disable hooks by default.
  5996. lt_cv_sys_global_symbol_to_import=
  5997. lt_cdecl_hook=
  5998. lt_c_name_hook=
  5999. lt_c_name_lib_hook=
  6000. fi
  6001. # Transform an extracted symbol line into a proper C declaration.
  6002. # Some systems (esp. on ia64) link data and code symbols differently,
  6003. # so use this general approach.
  6004. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6005. $lt_cdecl_hook\
  6006. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6007. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6008. # Transform an extracted symbol line into symbol name and symbol address
  6009. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6010. $lt_c_name_hook\
  6011. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6012. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6013. # Transform an extracted symbol line into symbol name with lib prefix and
  6014. # symbol address.
  6015. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6016. $lt_c_name_lib_hook\
  6017. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6018. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6019. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6020. # Handle CRLF in mingw tool chain
  6021. opt_cr=
  6022. case $build_os in
  6023. mingw* | windows*)
  6024. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6025. ;;
  6026. esac
  6027. # Try without a prefix underscore, then with it.
  6028. for ac_symprfx in "" "_"; do
  6029. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6030. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6031. # Write the raw and C identifiers.
  6032. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6033. # Fake it for dumpbin and say T for any non-static function,
  6034. # D for any global variable and I for any imported variable.
  6035. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6036. # which start with @ or ?.
  6037. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6038. " {last_section=section; section=\$ 3};"\
  6039. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6040. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6041. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6042. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6043. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6044. " \$ 0!~/External *\|/{next};"\
  6045. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6046. " {if(hide[section]) next};"\
  6047. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6048. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6049. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6050. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6051. " ' prfx=^$ac_symprfx"
  6052. else
  6053. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6054. fi
  6055. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6056. # Check to see that the pipe works correctly.
  6057. pipe_works=no
  6058. rm -f conftest*
  6059. cat > conftest.$ac_ext <<_LT_EOF
  6060. #ifdef __cplusplus
  6061. extern "C" {
  6062. #endif
  6063. char nm_test_var;
  6064. void nm_test_func(void);
  6065. void nm_test_func(void){}
  6066. #ifdef __cplusplus
  6067. }
  6068. #endif
  6069. int main(void){nm_test_var='a';nm_test_func();return(0);}
  6070. _LT_EOF
  6071. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6072. (eval $ac_compile) 2>&5
  6073. ac_status=$?
  6074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6075. test $ac_status = 0; }; then
  6076. # Now try to grab the symbols.
  6077. nlist=conftest.nm
  6078. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6079. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6080. ac_status=$?
  6081. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6082. test $ac_status = 0; } && test -s "$nlist"; then
  6083. # Try sorting and uniquifying the output.
  6084. if sort "$nlist" | uniq > "$nlist"T; then
  6085. mv -f "$nlist"T "$nlist"
  6086. else
  6087. rm -f "$nlist"T
  6088. fi
  6089. # Make sure that we snagged all the symbols we need.
  6090. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6091. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6092. cat <<_LT_EOF > conftest.$ac_ext
  6093. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6094. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6095. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6096. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6097. # define LT_DLSYM_CONST
  6098. #elif defined __osf__
  6099. /* This system does not cope well with relocations in const data. */
  6100. # define LT_DLSYM_CONST
  6101. #else
  6102. # define LT_DLSYM_CONST const
  6103. #endif
  6104. #ifdef __cplusplus
  6105. extern "C" {
  6106. #endif
  6107. _LT_EOF
  6108. # Now generate the symbol file.
  6109. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6110. cat <<_LT_EOF >> conftest.$ac_ext
  6111. /* The mapping between symbol names and symbols. */
  6112. LT_DLSYM_CONST struct {
  6113. const char *name;
  6114. void *address;
  6115. }
  6116. lt__PROGRAM__LTX_preloaded_symbols[] =
  6117. {
  6118. { "@PROGRAM@", (void *) 0 },
  6119. _LT_EOF
  6120. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6121. cat <<\_LT_EOF >> conftest.$ac_ext
  6122. {0, (void *) 0}
  6123. };
  6124. /* This works around a problem in FreeBSD linker */
  6125. #ifdef FREEBSD_WORKAROUND
  6126. static const void *lt_preloaded_setup() {
  6127. return lt__PROGRAM__LTX_preloaded_symbols;
  6128. }
  6129. #endif
  6130. #ifdef __cplusplus
  6131. }
  6132. #endif
  6133. _LT_EOF
  6134. # Now try linking the two files.
  6135. mv conftest.$ac_objext conftstm.$ac_objext
  6136. lt_globsym_save_LIBS=$LIBS
  6137. lt_globsym_save_CFLAGS=$CFLAGS
  6138. LIBS=conftstm.$ac_objext
  6139. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6141. (eval $ac_link) 2>&5
  6142. ac_status=$?
  6143. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6144. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6145. pipe_works=yes
  6146. fi
  6147. LIBS=$lt_globsym_save_LIBS
  6148. CFLAGS=$lt_globsym_save_CFLAGS
  6149. else
  6150. echo "cannot find nm_test_func in $nlist" >&5
  6151. fi
  6152. else
  6153. echo "cannot find nm_test_var in $nlist" >&5
  6154. fi
  6155. else
  6156. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6157. fi
  6158. else
  6159. echo "$progname: failed program was:" >&5
  6160. cat conftest.$ac_ext >&5
  6161. fi
  6162. rm -rf conftest* conftst*
  6163. # Do not use the global_symbol_pipe unless it works.
  6164. if test yes = "$pipe_works"; then
  6165. break
  6166. else
  6167. lt_cv_sys_global_symbol_pipe=
  6168. fi
  6169. done
  6170. fi
  6171. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6172. lt_cv_sys_global_symbol_to_cdecl=
  6173. fi
  6174. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6176. printf "%s\n" "failed" >&6; }
  6177. else
  6178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6179. printf "%s\n" "ok" >&6; }
  6180. fi
  6181. # Response file support.
  6182. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6183. nm_file_list_spec='@'
  6184. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6185. nm_file_list_spec='@'
  6186. fi
  6187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6188. printf %s "checking for sysroot... " >&6; }
  6189. # Check whether --with-sysroot was given.
  6190. if test ${with_sysroot+y}
  6191. then :
  6192. withval=$with_sysroot;
  6193. else $as_nop
  6194. with_sysroot=no
  6195. fi
  6196. lt_sysroot=
  6197. case $with_sysroot in #(
  6198. yes)
  6199. if test yes = "$GCC"; then
  6200. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6201. fi
  6202. ;; #(
  6203. /*)
  6204. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6205. ;; #(
  6206. no|'')
  6207. ;; #(
  6208. *)
  6209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6210. printf "%s\n" "$with_sysroot" >&6; }
  6211. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6212. ;;
  6213. esac
  6214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6215. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6217. printf %s "checking for a working dd... " >&6; }
  6218. if test ${ac_cv_path_lt_DD+y}
  6219. then :
  6220. printf %s "(cached) " >&6
  6221. else $as_nop
  6222. printf 0123456789abcdef0123456789abcdef >conftest.i
  6223. cat conftest.i conftest.i >conftest2.i
  6224. : ${lt_DD:=$DD}
  6225. if test -z "$lt_DD"; then
  6226. ac_path_lt_DD_found=false
  6227. # Loop through the user's path and test for each of PROGNAME-LIST
  6228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6229. for as_dir in $PATH
  6230. do
  6231. IFS=$as_save_IFS
  6232. case $as_dir in #(((
  6233. '') as_dir=./ ;;
  6234. */) ;;
  6235. *) as_dir=$as_dir/ ;;
  6236. esac
  6237. for ac_prog in dd
  6238. do
  6239. for ac_exec_ext in '' $ac_executable_extensions; do
  6240. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6241. as_fn_executable_p "$ac_path_lt_DD" || continue
  6242. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6243. cmp -s conftest.i conftest.out \
  6244. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6245. fi
  6246. $ac_path_lt_DD_found && break 3
  6247. done
  6248. done
  6249. done
  6250. IFS=$as_save_IFS
  6251. if test -z "$ac_cv_path_lt_DD"; then
  6252. :
  6253. fi
  6254. else
  6255. ac_cv_path_lt_DD=$lt_DD
  6256. fi
  6257. rm -f conftest.i conftest2.i conftest.out
  6258. fi
  6259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6260. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6262. printf %s "checking how to truncate binary pipes... " >&6; }
  6263. if test ${lt_cv_truncate_bin+y}
  6264. then :
  6265. printf %s "(cached) " >&6
  6266. else $as_nop
  6267. printf 0123456789abcdef0123456789abcdef >conftest.i
  6268. cat conftest.i conftest.i >conftest2.i
  6269. lt_cv_truncate_bin=
  6270. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6271. cmp -s conftest.i conftest.out \
  6272. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6273. fi
  6274. rm -f conftest.i conftest2.i conftest.out
  6275. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6276. fi
  6277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6278. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6279. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6280. func_cc_basename ()
  6281. {
  6282. for cc_temp in $*""; do
  6283. case $cc_temp in
  6284. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6285. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6286. \-*) ;;
  6287. *) break;;
  6288. esac
  6289. done
  6290. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6291. }
  6292. # Check whether --enable-libtool-lock was given.
  6293. if test ${enable_libtool_lock+y}
  6294. then :
  6295. enableval=$enable_libtool_lock;
  6296. fi
  6297. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6298. # Some flags need to be propagated to the compiler or linker for good
  6299. # libtool support.
  6300. case $host in
  6301. ia64-*-hpux*)
  6302. # Find out what ABI is being produced by ac_compile, and set mode
  6303. # options accordingly.
  6304. echo 'int i;' > conftest.$ac_ext
  6305. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6306. (eval $ac_compile) 2>&5
  6307. ac_status=$?
  6308. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6309. test $ac_status = 0; }; then
  6310. case `/usr/bin/file conftest.$ac_objext` in
  6311. *ELF-32*)
  6312. HPUX_IA64_MODE=32
  6313. ;;
  6314. *ELF-64*)
  6315. HPUX_IA64_MODE=64
  6316. ;;
  6317. esac
  6318. fi
  6319. rm -rf conftest*
  6320. ;;
  6321. *-*-irix6*)
  6322. # Find out what ABI is being produced by ac_compile, and set linker
  6323. # options accordingly.
  6324. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6325. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6326. (eval $ac_compile) 2>&5
  6327. ac_status=$?
  6328. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6329. test $ac_status = 0; }; then
  6330. if test yes = "$lt_cv_prog_gnu_ld"; then
  6331. case `/usr/bin/file conftest.$ac_objext` in
  6332. *32-bit*)
  6333. LD="${LD-ld} -melf32bsmip"
  6334. ;;
  6335. *N32*)
  6336. LD="${LD-ld} -melf32bmipn32"
  6337. ;;
  6338. *64-bit*)
  6339. LD="${LD-ld} -melf64bmip"
  6340. ;;
  6341. esac
  6342. else
  6343. case `/usr/bin/file conftest.$ac_objext` in
  6344. *32-bit*)
  6345. LD="${LD-ld} -32"
  6346. ;;
  6347. *N32*)
  6348. LD="${LD-ld} -n32"
  6349. ;;
  6350. *64-bit*)
  6351. LD="${LD-ld} -64"
  6352. ;;
  6353. esac
  6354. fi
  6355. fi
  6356. rm -rf conftest*
  6357. ;;
  6358. mips64*-*linux*)
  6359. # Find out what ABI is being produced by ac_compile, and set linker
  6360. # options accordingly.
  6361. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6362. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6363. (eval $ac_compile) 2>&5
  6364. ac_status=$?
  6365. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6366. test $ac_status = 0; }; then
  6367. emul=elf
  6368. case `/usr/bin/file conftest.$ac_objext` in
  6369. *32-bit*)
  6370. emul="${emul}32"
  6371. ;;
  6372. *64-bit*)
  6373. emul="${emul}64"
  6374. ;;
  6375. esac
  6376. case `/usr/bin/file conftest.$ac_objext` in
  6377. *MSB*)
  6378. emul="${emul}btsmip"
  6379. ;;
  6380. *LSB*)
  6381. emul="${emul}ltsmip"
  6382. ;;
  6383. esac
  6384. case `/usr/bin/file conftest.$ac_objext` in
  6385. *N32*)
  6386. emul="${emul}n32"
  6387. ;;
  6388. esac
  6389. LD="${LD-ld} -m $emul"
  6390. fi
  6391. rm -rf conftest*
  6392. ;;
  6393. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6394. s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
  6395. # Find out what ABI is being produced by ac_compile, and set linker
  6396. # options accordingly. Note that the listed cases only cover the
  6397. # situations where additional linker options are needed (such as when
  6398. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6399. # vice versa); the common cases where no linker options are needed do
  6400. # not appear in the list.
  6401. echo 'int i;' > conftest.$ac_ext
  6402. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6403. (eval $ac_compile) 2>&5
  6404. ac_status=$?
  6405. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6406. test $ac_status = 0; }; then
  6407. case `/usr/bin/file conftest.o` in
  6408. *32-bit*)
  6409. case $host in
  6410. x86_64-*kfreebsd*-gnu)
  6411. LD="${LD-ld} -m elf_i386_fbsd"
  6412. ;;
  6413. x86_64-*linux*|x86_64-gnu*)
  6414. case `/usr/bin/file conftest.o` in
  6415. *x86-64*)
  6416. LD="${LD-ld} -m elf32_x86_64"
  6417. ;;
  6418. *)
  6419. LD="${LD-ld} -m elf_i386"
  6420. ;;
  6421. esac
  6422. ;;
  6423. powerpc64le-*linux*)
  6424. LD="${LD-ld} -m elf32lppclinux"
  6425. ;;
  6426. powerpc64-*linux*)
  6427. LD="${LD-ld} -m elf32ppclinux"
  6428. ;;
  6429. s390x-*linux*)
  6430. LD="${LD-ld} -m elf_s390"
  6431. ;;
  6432. sparc64-*linux*)
  6433. LD="${LD-ld} -m elf32_sparc"
  6434. ;;
  6435. esac
  6436. ;;
  6437. *64-bit*)
  6438. case $host in
  6439. x86_64-*kfreebsd*-gnu)
  6440. LD="${LD-ld} -m elf_x86_64_fbsd"
  6441. ;;
  6442. x86_64-*linux*|x86_64-gnu*)
  6443. LD="${LD-ld} -m elf_x86_64"
  6444. ;;
  6445. powerpcle-*linux*|powerpc64le-*linux*)
  6446. LD="${LD-ld} -m elf64lppc"
  6447. ;;
  6448. powerpc-*linux*|powerpc64-*linux*)
  6449. LD="${LD-ld} -m elf64ppc"
  6450. ;;
  6451. s390*-*linux*|s390*-*tpf*)
  6452. LD="${LD-ld} -m elf64_s390"
  6453. ;;
  6454. sparc*-*linux*)
  6455. LD="${LD-ld} -m elf64_sparc"
  6456. ;;
  6457. esac
  6458. ;;
  6459. esac
  6460. fi
  6461. rm -rf conftest*
  6462. ;;
  6463. *-*-sco3.2v5*)
  6464. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6465. SAVE_CFLAGS=$CFLAGS
  6466. CFLAGS="$CFLAGS -belf"
  6467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6468. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6469. if test ${lt_cv_cc_needs_belf+y}
  6470. then :
  6471. printf %s "(cached) " >&6
  6472. else $as_nop
  6473. ac_ext=c
  6474. ac_cpp='$CPP $CPPFLAGS'
  6475. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6476. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6477. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6479. /* end confdefs.h. */
  6480. int
  6481. main (void)
  6482. {
  6483. ;
  6484. return 0;
  6485. }
  6486. _ACEOF
  6487. if ac_fn_c_try_link "$LINENO"
  6488. then :
  6489. lt_cv_cc_needs_belf=yes
  6490. else $as_nop
  6491. lt_cv_cc_needs_belf=no
  6492. fi
  6493. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6494. conftest$ac_exeext conftest.$ac_ext
  6495. ac_ext=c
  6496. ac_cpp='$CPP $CPPFLAGS'
  6497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6500. fi
  6501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6502. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6503. if test yes != "$lt_cv_cc_needs_belf"; then
  6504. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6505. CFLAGS=$SAVE_CFLAGS
  6506. fi
  6507. ;;
  6508. *-*solaris*)
  6509. # Find out what ABI is being produced by ac_compile, and set linker
  6510. # options accordingly.
  6511. echo 'int i;' > conftest.$ac_ext
  6512. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6513. (eval $ac_compile) 2>&5
  6514. ac_status=$?
  6515. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6516. test $ac_status = 0; }; then
  6517. case `/usr/bin/file conftest.o` in
  6518. *64-bit*)
  6519. case $lt_cv_prog_gnu_ld in
  6520. yes*)
  6521. case $host in
  6522. i?86-*-solaris*|x86_64-*-solaris*)
  6523. LD="${LD-ld} -m elf_x86_64"
  6524. ;;
  6525. sparc*-*-solaris*)
  6526. LD="${LD-ld} -m elf64_sparc"
  6527. ;;
  6528. esac
  6529. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6530. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6531. LD=${LD-ld}_sol2
  6532. fi
  6533. ;;
  6534. *)
  6535. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6536. LD="${LD-ld} -64"
  6537. fi
  6538. ;;
  6539. esac
  6540. ;;
  6541. esac
  6542. fi
  6543. rm -rf conftest*
  6544. ;;
  6545. esac
  6546. need_locks=$enable_libtool_lock
  6547. if test -n "$ac_tool_prefix"; then
  6548. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6549. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6551. printf %s "checking for $ac_word... " >&6; }
  6552. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6553. then :
  6554. printf %s "(cached) " >&6
  6555. else $as_nop
  6556. if test -n "$MANIFEST_TOOL"; then
  6557. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6558. else
  6559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6560. for as_dir in $PATH
  6561. do
  6562. IFS=$as_save_IFS
  6563. case $as_dir in #(((
  6564. '') as_dir=./ ;;
  6565. */) ;;
  6566. *) as_dir=$as_dir/ ;;
  6567. esac
  6568. for ac_exec_ext in '' $ac_executable_extensions; do
  6569. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6570. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6571. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6572. break 2
  6573. fi
  6574. done
  6575. done
  6576. IFS=$as_save_IFS
  6577. fi
  6578. fi
  6579. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6580. if test -n "$MANIFEST_TOOL"; then
  6581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6582. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6583. else
  6584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6585. printf "%s\n" "no" >&6; }
  6586. fi
  6587. fi
  6588. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6589. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6590. # Extract the first word of "mt", so it can be a program name with args.
  6591. set dummy mt; ac_word=$2
  6592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6593. printf %s "checking for $ac_word... " >&6; }
  6594. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6595. then :
  6596. printf %s "(cached) " >&6
  6597. else $as_nop
  6598. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6599. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6600. else
  6601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6602. for as_dir in $PATH
  6603. do
  6604. IFS=$as_save_IFS
  6605. case $as_dir in #(((
  6606. '') as_dir=./ ;;
  6607. */) ;;
  6608. *) as_dir=$as_dir/ ;;
  6609. esac
  6610. for ac_exec_ext in '' $ac_executable_extensions; do
  6611. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6612. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6613. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6614. break 2
  6615. fi
  6616. done
  6617. done
  6618. IFS=$as_save_IFS
  6619. fi
  6620. fi
  6621. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6622. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6624. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6625. else
  6626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6627. printf "%s\n" "no" >&6; }
  6628. fi
  6629. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6630. MANIFEST_TOOL=":"
  6631. else
  6632. case $cross_compiling:$ac_tool_warned in
  6633. yes:)
  6634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6635. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6636. ac_tool_warned=yes ;;
  6637. esac
  6638. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6639. fi
  6640. else
  6641. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6642. fi
  6643. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6645. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6646. if test ${lt_cv_path_mainfest_tool+y}
  6647. then :
  6648. printf %s "(cached) " >&6
  6649. else $as_nop
  6650. lt_cv_path_mainfest_tool=no
  6651. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6652. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6653. cat conftest.err >&5
  6654. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6655. lt_cv_path_mainfest_tool=yes
  6656. fi
  6657. rm -f conftest*
  6658. fi
  6659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6660. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6661. if test yes != "$lt_cv_path_mainfest_tool"; then
  6662. MANIFEST_TOOL=:
  6663. fi
  6664. case $host_os in
  6665. rhapsody* | darwin*)
  6666. if test -n "$ac_tool_prefix"; then
  6667. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6668. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6670. printf %s "checking for $ac_word... " >&6; }
  6671. if test ${ac_cv_prog_DSYMUTIL+y}
  6672. then :
  6673. printf %s "(cached) " >&6
  6674. else $as_nop
  6675. if test -n "$DSYMUTIL"; then
  6676. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6677. else
  6678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6679. for as_dir in $PATH
  6680. do
  6681. IFS=$as_save_IFS
  6682. case $as_dir in #(((
  6683. '') as_dir=./ ;;
  6684. */) ;;
  6685. *) as_dir=$as_dir/ ;;
  6686. esac
  6687. for ac_exec_ext in '' $ac_executable_extensions; do
  6688. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6689. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6690. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6691. break 2
  6692. fi
  6693. done
  6694. done
  6695. IFS=$as_save_IFS
  6696. fi
  6697. fi
  6698. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6699. if test -n "$DSYMUTIL"; then
  6700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6701. printf "%s\n" "$DSYMUTIL" >&6; }
  6702. else
  6703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6704. printf "%s\n" "no" >&6; }
  6705. fi
  6706. fi
  6707. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6708. ac_ct_DSYMUTIL=$DSYMUTIL
  6709. # Extract the first word of "dsymutil", so it can be a program name with args.
  6710. set dummy dsymutil; ac_word=$2
  6711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6712. printf %s "checking for $ac_word... " >&6; }
  6713. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6714. then :
  6715. printf %s "(cached) " >&6
  6716. else $as_nop
  6717. if test -n "$ac_ct_DSYMUTIL"; then
  6718. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6719. else
  6720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6721. for as_dir in $PATH
  6722. do
  6723. IFS=$as_save_IFS
  6724. case $as_dir in #(((
  6725. '') as_dir=./ ;;
  6726. */) ;;
  6727. *) as_dir=$as_dir/ ;;
  6728. esac
  6729. for ac_exec_ext in '' $ac_executable_extensions; do
  6730. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6731. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6733. break 2
  6734. fi
  6735. done
  6736. done
  6737. IFS=$as_save_IFS
  6738. fi
  6739. fi
  6740. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6741. if test -n "$ac_ct_DSYMUTIL"; then
  6742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6743. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6744. else
  6745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6746. printf "%s\n" "no" >&6; }
  6747. fi
  6748. if test "x$ac_ct_DSYMUTIL" = x; then
  6749. DSYMUTIL=":"
  6750. else
  6751. case $cross_compiling:$ac_tool_warned in
  6752. yes:)
  6753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6754. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6755. ac_tool_warned=yes ;;
  6756. esac
  6757. DSYMUTIL=$ac_ct_DSYMUTIL
  6758. fi
  6759. else
  6760. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6761. fi
  6762. if test -n "$ac_tool_prefix"; then
  6763. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6764. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6766. printf %s "checking for $ac_word... " >&6; }
  6767. if test ${ac_cv_prog_NMEDIT+y}
  6768. then :
  6769. printf %s "(cached) " >&6
  6770. else $as_nop
  6771. if test -n "$NMEDIT"; then
  6772. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6773. else
  6774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6775. for as_dir in $PATH
  6776. do
  6777. IFS=$as_save_IFS
  6778. case $as_dir in #(((
  6779. '') as_dir=./ ;;
  6780. */) ;;
  6781. *) as_dir=$as_dir/ ;;
  6782. esac
  6783. for ac_exec_ext in '' $ac_executable_extensions; do
  6784. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6785. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6786. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6787. break 2
  6788. fi
  6789. done
  6790. done
  6791. IFS=$as_save_IFS
  6792. fi
  6793. fi
  6794. NMEDIT=$ac_cv_prog_NMEDIT
  6795. if test -n "$NMEDIT"; then
  6796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6797. printf "%s\n" "$NMEDIT" >&6; }
  6798. else
  6799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6800. printf "%s\n" "no" >&6; }
  6801. fi
  6802. fi
  6803. if test -z "$ac_cv_prog_NMEDIT"; then
  6804. ac_ct_NMEDIT=$NMEDIT
  6805. # Extract the first word of "nmedit", so it can be a program name with args.
  6806. set dummy nmedit; ac_word=$2
  6807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6808. printf %s "checking for $ac_word... " >&6; }
  6809. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6810. then :
  6811. printf %s "(cached) " >&6
  6812. else $as_nop
  6813. if test -n "$ac_ct_NMEDIT"; then
  6814. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6815. else
  6816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6817. for as_dir in $PATH
  6818. do
  6819. IFS=$as_save_IFS
  6820. case $as_dir in #(((
  6821. '') as_dir=./ ;;
  6822. */) ;;
  6823. *) as_dir=$as_dir/ ;;
  6824. esac
  6825. for ac_exec_ext in '' $ac_executable_extensions; do
  6826. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6827. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6828. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6829. break 2
  6830. fi
  6831. done
  6832. done
  6833. IFS=$as_save_IFS
  6834. fi
  6835. fi
  6836. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6837. if test -n "$ac_ct_NMEDIT"; then
  6838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6839. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6840. else
  6841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6842. printf "%s\n" "no" >&6; }
  6843. fi
  6844. if test "x$ac_ct_NMEDIT" = x; then
  6845. NMEDIT=":"
  6846. else
  6847. case $cross_compiling:$ac_tool_warned in
  6848. yes:)
  6849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6850. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6851. ac_tool_warned=yes ;;
  6852. esac
  6853. NMEDIT=$ac_ct_NMEDIT
  6854. fi
  6855. else
  6856. NMEDIT="$ac_cv_prog_NMEDIT"
  6857. fi
  6858. if test -n "$ac_tool_prefix"; then
  6859. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6860. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6862. printf %s "checking for $ac_word... " >&6; }
  6863. if test ${ac_cv_prog_LIPO+y}
  6864. then :
  6865. printf %s "(cached) " >&6
  6866. else $as_nop
  6867. if test -n "$LIPO"; then
  6868. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6869. else
  6870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6871. for as_dir in $PATH
  6872. do
  6873. IFS=$as_save_IFS
  6874. case $as_dir in #(((
  6875. '') as_dir=./ ;;
  6876. */) ;;
  6877. *) as_dir=$as_dir/ ;;
  6878. esac
  6879. for ac_exec_ext in '' $ac_executable_extensions; do
  6880. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6881. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6882. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6883. break 2
  6884. fi
  6885. done
  6886. done
  6887. IFS=$as_save_IFS
  6888. fi
  6889. fi
  6890. LIPO=$ac_cv_prog_LIPO
  6891. if test -n "$LIPO"; then
  6892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6893. printf "%s\n" "$LIPO" >&6; }
  6894. else
  6895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6896. printf "%s\n" "no" >&6; }
  6897. fi
  6898. fi
  6899. if test -z "$ac_cv_prog_LIPO"; then
  6900. ac_ct_LIPO=$LIPO
  6901. # Extract the first word of "lipo", so it can be a program name with args.
  6902. set dummy lipo; ac_word=$2
  6903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6904. printf %s "checking for $ac_word... " >&6; }
  6905. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6906. then :
  6907. printf %s "(cached) " >&6
  6908. else $as_nop
  6909. if test -n "$ac_ct_LIPO"; then
  6910. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6911. else
  6912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6913. for as_dir in $PATH
  6914. do
  6915. IFS=$as_save_IFS
  6916. case $as_dir in #(((
  6917. '') as_dir=./ ;;
  6918. */) ;;
  6919. *) as_dir=$as_dir/ ;;
  6920. esac
  6921. for ac_exec_ext in '' $ac_executable_extensions; do
  6922. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6923. ac_cv_prog_ac_ct_LIPO="lipo"
  6924. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6925. break 2
  6926. fi
  6927. done
  6928. done
  6929. IFS=$as_save_IFS
  6930. fi
  6931. fi
  6932. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6933. if test -n "$ac_ct_LIPO"; then
  6934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6935. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6936. else
  6937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6938. printf "%s\n" "no" >&6; }
  6939. fi
  6940. if test "x$ac_ct_LIPO" = x; then
  6941. LIPO=":"
  6942. else
  6943. case $cross_compiling:$ac_tool_warned in
  6944. yes:)
  6945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6946. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6947. ac_tool_warned=yes ;;
  6948. esac
  6949. LIPO=$ac_ct_LIPO
  6950. fi
  6951. else
  6952. LIPO="$ac_cv_prog_LIPO"
  6953. fi
  6954. if test -n "$ac_tool_prefix"; then
  6955. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6956. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6958. printf %s "checking for $ac_word... " >&6; }
  6959. if test ${ac_cv_prog_OTOOL+y}
  6960. then :
  6961. printf %s "(cached) " >&6
  6962. else $as_nop
  6963. if test -n "$OTOOL"; then
  6964. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6965. else
  6966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6967. for as_dir in $PATH
  6968. do
  6969. IFS=$as_save_IFS
  6970. case $as_dir in #(((
  6971. '') as_dir=./ ;;
  6972. */) ;;
  6973. *) as_dir=$as_dir/ ;;
  6974. esac
  6975. for ac_exec_ext in '' $ac_executable_extensions; do
  6976. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6977. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6978. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6979. break 2
  6980. fi
  6981. done
  6982. done
  6983. IFS=$as_save_IFS
  6984. fi
  6985. fi
  6986. OTOOL=$ac_cv_prog_OTOOL
  6987. if test -n "$OTOOL"; then
  6988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6989. printf "%s\n" "$OTOOL" >&6; }
  6990. else
  6991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6992. printf "%s\n" "no" >&6; }
  6993. fi
  6994. fi
  6995. if test -z "$ac_cv_prog_OTOOL"; then
  6996. ac_ct_OTOOL=$OTOOL
  6997. # Extract the first word of "otool", so it can be a program name with args.
  6998. set dummy otool; ac_word=$2
  6999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7000. printf %s "checking for $ac_word... " >&6; }
  7001. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7002. then :
  7003. printf %s "(cached) " >&6
  7004. else $as_nop
  7005. if test -n "$ac_ct_OTOOL"; then
  7006. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7007. else
  7008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7009. for as_dir in $PATH
  7010. do
  7011. IFS=$as_save_IFS
  7012. case $as_dir in #(((
  7013. '') as_dir=./ ;;
  7014. */) ;;
  7015. *) as_dir=$as_dir/ ;;
  7016. esac
  7017. for ac_exec_ext in '' $ac_executable_extensions; do
  7018. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7019. ac_cv_prog_ac_ct_OTOOL="otool"
  7020. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7021. break 2
  7022. fi
  7023. done
  7024. done
  7025. IFS=$as_save_IFS
  7026. fi
  7027. fi
  7028. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7029. if test -n "$ac_ct_OTOOL"; then
  7030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7031. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7032. else
  7033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7034. printf "%s\n" "no" >&6; }
  7035. fi
  7036. if test "x$ac_ct_OTOOL" = x; then
  7037. OTOOL=":"
  7038. else
  7039. case $cross_compiling:$ac_tool_warned in
  7040. yes:)
  7041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7042. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7043. ac_tool_warned=yes ;;
  7044. esac
  7045. OTOOL=$ac_ct_OTOOL
  7046. fi
  7047. else
  7048. OTOOL="$ac_cv_prog_OTOOL"
  7049. fi
  7050. if test -n "$ac_tool_prefix"; then
  7051. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7052. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7054. printf %s "checking for $ac_word... " >&6; }
  7055. if test ${ac_cv_prog_OTOOL64+y}
  7056. then :
  7057. printf %s "(cached) " >&6
  7058. else $as_nop
  7059. if test -n "$OTOOL64"; then
  7060. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7061. else
  7062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7063. for as_dir in $PATH
  7064. do
  7065. IFS=$as_save_IFS
  7066. case $as_dir in #(((
  7067. '') as_dir=./ ;;
  7068. */) ;;
  7069. *) as_dir=$as_dir/ ;;
  7070. esac
  7071. for ac_exec_ext in '' $ac_executable_extensions; do
  7072. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7073. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7075. break 2
  7076. fi
  7077. done
  7078. done
  7079. IFS=$as_save_IFS
  7080. fi
  7081. fi
  7082. OTOOL64=$ac_cv_prog_OTOOL64
  7083. if test -n "$OTOOL64"; then
  7084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7085. printf "%s\n" "$OTOOL64" >&6; }
  7086. else
  7087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7088. printf "%s\n" "no" >&6; }
  7089. fi
  7090. fi
  7091. if test -z "$ac_cv_prog_OTOOL64"; then
  7092. ac_ct_OTOOL64=$OTOOL64
  7093. # Extract the first word of "otool64", so it can be a program name with args.
  7094. set dummy otool64; ac_word=$2
  7095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7096. printf %s "checking for $ac_word... " >&6; }
  7097. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7098. then :
  7099. printf %s "(cached) " >&6
  7100. else $as_nop
  7101. if test -n "$ac_ct_OTOOL64"; then
  7102. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7103. else
  7104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7105. for as_dir in $PATH
  7106. do
  7107. IFS=$as_save_IFS
  7108. case $as_dir in #(((
  7109. '') as_dir=./ ;;
  7110. */) ;;
  7111. *) as_dir=$as_dir/ ;;
  7112. esac
  7113. for ac_exec_ext in '' $ac_executable_extensions; do
  7114. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7115. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7116. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7117. break 2
  7118. fi
  7119. done
  7120. done
  7121. IFS=$as_save_IFS
  7122. fi
  7123. fi
  7124. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7125. if test -n "$ac_ct_OTOOL64"; then
  7126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7127. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7128. else
  7129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7130. printf "%s\n" "no" >&6; }
  7131. fi
  7132. if test "x$ac_ct_OTOOL64" = x; then
  7133. OTOOL64=":"
  7134. else
  7135. case $cross_compiling:$ac_tool_warned in
  7136. yes:)
  7137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7138. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7139. ac_tool_warned=yes ;;
  7140. esac
  7141. OTOOL64=$ac_ct_OTOOL64
  7142. fi
  7143. else
  7144. OTOOL64="$ac_cv_prog_OTOOL64"
  7145. fi
  7146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7147. printf %s "checking for -single_module linker flag... " >&6; }
  7148. if test ${lt_cv_apple_cc_single_mod+y}
  7149. then :
  7150. printf %s "(cached) " >&6
  7151. else $as_nop
  7152. lt_cv_apple_cc_single_mod=no
  7153. if test -z "$LT_MULTI_MODULE"; then
  7154. # By default we will add the -single_module flag. You can override
  7155. # by either setting the environment variable LT_MULTI_MODULE
  7156. # non-empty at configure time, or by adding -multi_module to the
  7157. # link flags.
  7158. rm -rf libconftest.dylib*
  7159. echo "int foo(void){return 1;}" > conftest.c
  7160. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7161. -dynamiclib -Wl,-single_module conftest.c" >&5
  7162. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7163. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7164. _lt_result=$?
  7165. # If there is a non-empty error log, and "single_module"
  7166. # appears in it, assume the flag caused a linker warning
  7167. if test -s conftest.err && $GREP single_module conftest.err; then
  7168. cat conftest.err >&5
  7169. # Otherwise, if the output was created with a 0 exit code from
  7170. # the compiler, it worked.
  7171. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7172. lt_cv_apple_cc_single_mod=yes
  7173. else
  7174. cat conftest.err >&5
  7175. fi
  7176. rm -rf libconftest.dylib*
  7177. rm -f conftest.*
  7178. fi
  7179. fi
  7180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7181. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7182. # Feature test to disable chained fixups since it is not
  7183. # compatible with '-undefined dynamic_lookup'
  7184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
  7185. printf %s "checking for -no_fixup_chains linker flag... " >&6; }
  7186. if test ${lt_cv_support_no_fixup_chains+y}
  7187. then :
  7188. printf %s "(cached) " >&6
  7189. else $as_nop
  7190. save_LDFLAGS=$LDFLAGS
  7191. LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
  7192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7193. /* end confdefs.h. */
  7194. int
  7195. main (void)
  7196. {
  7197. ;
  7198. return 0;
  7199. }
  7200. _ACEOF
  7201. if ac_fn_c_try_link "$LINENO"
  7202. then :
  7203. lt_cv_support_no_fixup_chains=yes
  7204. else $as_nop
  7205. lt_cv_support_no_fixup_chains=no
  7206. fi
  7207. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7208. conftest$ac_exeext conftest.$ac_ext
  7209. LDFLAGS=$save_LDFLAGS
  7210. fi
  7211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
  7212. printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
  7213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7214. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7215. if test ${lt_cv_ld_exported_symbols_list+y}
  7216. then :
  7217. printf %s "(cached) " >&6
  7218. else $as_nop
  7219. lt_cv_ld_exported_symbols_list=no
  7220. save_LDFLAGS=$LDFLAGS
  7221. echo "_main" > conftest.sym
  7222. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7224. /* end confdefs.h. */
  7225. int
  7226. main (void)
  7227. {
  7228. ;
  7229. return 0;
  7230. }
  7231. _ACEOF
  7232. if ac_fn_c_try_link "$LINENO"
  7233. then :
  7234. lt_cv_ld_exported_symbols_list=yes
  7235. else $as_nop
  7236. lt_cv_ld_exported_symbols_list=no
  7237. fi
  7238. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7239. conftest$ac_exeext conftest.$ac_ext
  7240. LDFLAGS=$save_LDFLAGS
  7241. fi
  7242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7243. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7245. printf %s "checking for -force_load linker flag... " >&6; }
  7246. if test ${lt_cv_ld_force_load+y}
  7247. then :
  7248. printf %s "(cached) " >&6
  7249. else $as_nop
  7250. lt_cv_ld_force_load=no
  7251. cat > conftest.c << _LT_EOF
  7252. int forced_loaded() { return 2;}
  7253. _LT_EOF
  7254. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7255. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7256. echo "$AR cru libconftest.a conftest.o" >&5
  7257. $AR cru libconftest.a conftest.o 2>&5
  7258. echo "$RANLIB libconftest.a" >&5
  7259. $RANLIB libconftest.a 2>&5
  7260. cat > conftest.c << _LT_EOF
  7261. int main(void) { return 0;}
  7262. _LT_EOF
  7263. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7264. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7265. _lt_result=$?
  7266. if test -s conftest.err && $GREP force_load conftest.err; then
  7267. cat conftest.err >&5
  7268. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7269. lt_cv_ld_force_load=yes
  7270. else
  7271. cat conftest.err >&5
  7272. fi
  7273. rm -f conftest.err libconftest.a conftest conftest.c
  7274. rm -rf conftest.dSYM
  7275. fi
  7276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7277. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7278. case $host_os in
  7279. rhapsody* | darwin1.[012])
  7280. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7281. darwin1.*)
  7282. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7283. darwin*)
  7284. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7285. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7286. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7287. *)
  7288. if test yes = "$lt_cv_support_no_fixup_chains"; then
  7289. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup $wl-no_fixup_chains'
  7290. else
  7291. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
  7292. fi
  7293. ;;
  7294. esac
  7295. ;;
  7296. esac
  7297. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7298. _lt_dar_single_mod='$single_module'
  7299. fi
  7300. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7301. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7302. else
  7303. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7304. fi
  7305. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7306. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7307. else
  7308. _lt_dsymutil=
  7309. fi
  7310. ;;
  7311. esac
  7312. # func_munge_path_list VARIABLE PATH
  7313. # -----------------------------------
  7314. # VARIABLE is name of variable containing _space_ separated list of
  7315. # directories to be munged by the contents of PATH, which is string
  7316. # having a format:
  7317. # "DIR[:DIR]:"
  7318. # string "DIR[ DIR]" will be prepended to VARIABLE
  7319. # ":DIR[:DIR]"
  7320. # string "DIR[ DIR]" will be appended to VARIABLE
  7321. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7322. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7323. # "DIRA[ DIRA]" will be appended to VARIABLE
  7324. # "DIR[:DIR]"
  7325. # VARIABLE will be replaced by "DIR[ DIR]"
  7326. func_munge_path_list ()
  7327. {
  7328. case x$2 in
  7329. x)
  7330. ;;
  7331. *:)
  7332. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7333. ;;
  7334. x:*)
  7335. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7336. ;;
  7337. *::*)
  7338. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7339. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7340. ;;
  7341. *)
  7342. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7343. ;;
  7344. esac
  7345. }
  7346. ac_header= ac_cache=
  7347. for ac_item in $ac_header_c_list
  7348. do
  7349. if test $ac_cache; then
  7350. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7351. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7352. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7353. fi
  7354. ac_header= ac_cache=
  7355. elif test $ac_header; then
  7356. ac_cache=$ac_item
  7357. else
  7358. ac_header=$ac_item
  7359. fi
  7360. done
  7361. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7362. then :
  7363. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7364. fi
  7365. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7366. "
  7367. if test "x$ac_cv_header_dlfcn_h" = xyes
  7368. then :
  7369. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7370. fi
  7371. # Set options
  7372. enable_win32_dll=yes
  7373. case $host in
  7374. *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
  7375. if test -n "$ac_tool_prefix"; then
  7376. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7377. set dummy ${ac_tool_prefix}as; ac_word=$2
  7378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7379. printf %s "checking for $ac_word... " >&6; }
  7380. if test ${ac_cv_prog_AS+y}
  7381. then :
  7382. printf %s "(cached) " >&6
  7383. else $as_nop
  7384. if test -n "$AS"; then
  7385. ac_cv_prog_AS="$AS" # Let the user override the test.
  7386. else
  7387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7388. for as_dir in $PATH
  7389. do
  7390. IFS=$as_save_IFS
  7391. case $as_dir in #(((
  7392. '') as_dir=./ ;;
  7393. */) ;;
  7394. *) as_dir=$as_dir/ ;;
  7395. esac
  7396. for ac_exec_ext in '' $ac_executable_extensions; do
  7397. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7398. ac_cv_prog_AS="${ac_tool_prefix}as"
  7399. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7400. break 2
  7401. fi
  7402. done
  7403. done
  7404. IFS=$as_save_IFS
  7405. fi
  7406. fi
  7407. AS=$ac_cv_prog_AS
  7408. if test -n "$AS"; then
  7409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7410. printf "%s\n" "$AS" >&6; }
  7411. else
  7412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7413. printf "%s\n" "no" >&6; }
  7414. fi
  7415. fi
  7416. if test -z "$ac_cv_prog_AS"; then
  7417. ac_ct_AS=$AS
  7418. # Extract the first word of "as", so it can be a program name with args.
  7419. set dummy as; ac_word=$2
  7420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7421. printf %s "checking for $ac_word... " >&6; }
  7422. if test ${ac_cv_prog_ac_ct_AS+y}
  7423. then :
  7424. printf %s "(cached) " >&6
  7425. else $as_nop
  7426. if test -n "$ac_ct_AS"; then
  7427. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7428. else
  7429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7430. for as_dir in $PATH
  7431. do
  7432. IFS=$as_save_IFS
  7433. case $as_dir in #(((
  7434. '') as_dir=./ ;;
  7435. */) ;;
  7436. *) as_dir=$as_dir/ ;;
  7437. esac
  7438. for ac_exec_ext in '' $ac_executable_extensions; do
  7439. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7440. ac_cv_prog_ac_ct_AS="as"
  7441. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7442. break 2
  7443. fi
  7444. done
  7445. done
  7446. IFS=$as_save_IFS
  7447. fi
  7448. fi
  7449. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7450. if test -n "$ac_ct_AS"; then
  7451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7452. printf "%s\n" "$ac_ct_AS" >&6; }
  7453. else
  7454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7455. printf "%s\n" "no" >&6; }
  7456. fi
  7457. if test "x$ac_ct_AS" = x; then
  7458. AS="false"
  7459. else
  7460. case $cross_compiling:$ac_tool_warned in
  7461. yes:)
  7462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7463. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7464. ac_tool_warned=yes ;;
  7465. esac
  7466. AS=$ac_ct_AS
  7467. fi
  7468. else
  7469. AS="$ac_cv_prog_AS"
  7470. fi
  7471. if test -n "$ac_tool_prefix"; then
  7472. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7473. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7475. printf %s "checking for $ac_word... " >&6; }
  7476. if test ${ac_cv_prog_DLLTOOL+y}
  7477. then :
  7478. printf %s "(cached) " >&6
  7479. else $as_nop
  7480. if test -n "$DLLTOOL"; then
  7481. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7482. else
  7483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7484. for as_dir in $PATH
  7485. do
  7486. IFS=$as_save_IFS
  7487. case $as_dir in #(((
  7488. '') as_dir=./ ;;
  7489. */) ;;
  7490. *) as_dir=$as_dir/ ;;
  7491. esac
  7492. for ac_exec_ext in '' $ac_executable_extensions; do
  7493. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7494. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7496. break 2
  7497. fi
  7498. done
  7499. done
  7500. IFS=$as_save_IFS
  7501. fi
  7502. fi
  7503. DLLTOOL=$ac_cv_prog_DLLTOOL
  7504. if test -n "$DLLTOOL"; then
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7506. printf "%s\n" "$DLLTOOL" >&6; }
  7507. else
  7508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7509. printf "%s\n" "no" >&6; }
  7510. fi
  7511. fi
  7512. if test -z "$ac_cv_prog_DLLTOOL"; then
  7513. ac_ct_DLLTOOL=$DLLTOOL
  7514. # Extract the first word of "dlltool", so it can be a program name with args.
  7515. set dummy dlltool; ac_word=$2
  7516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7517. printf %s "checking for $ac_word... " >&6; }
  7518. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7519. then :
  7520. printf %s "(cached) " >&6
  7521. else $as_nop
  7522. if test -n "$ac_ct_DLLTOOL"; then
  7523. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7524. else
  7525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7526. for as_dir in $PATH
  7527. do
  7528. IFS=$as_save_IFS
  7529. case $as_dir in #(((
  7530. '') as_dir=./ ;;
  7531. */) ;;
  7532. *) as_dir=$as_dir/ ;;
  7533. esac
  7534. for ac_exec_ext in '' $ac_executable_extensions; do
  7535. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7536. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7537. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7538. break 2
  7539. fi
  7540. done
  7541. done
  7542. IFS=$as_save_IFS
  7543. fi
  7544. fi
  7545. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7546. if test -n "$ac_ct_DLLTOOL"; then
  7547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7548. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7549. else
  7550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7551. printf "%s\n" "no" >&6; }
  7552. fi
  7553. if test "x$ac_ct_DLLTOOL" = x; then
  7554. DLLTOOL="false"
  7555. else
  7556. case $cross_compiling:$ac_tool_warned in
  7557. yes:)
  7558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7559. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7560. ac_tool_warned=yes ;;
  7561. esac
  7562. DLLTOOL=$ac_ct_DLLTOOL
  7563. fi
  7564. else
  7565. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7566. fi
  7567. if test -n "$ac_tool_prefix"; then
  7568. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7569. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7571. printf %s "checking for $ac_word... " >&6; }
  7572. if test ${ac_cv_prog_OBJDUMP+y}
  7573. then :
  7574. printf %s "(cached) " >&6
  7575. else $as_nop
  7576. if test -n "$OBJDUMP"; then
  7577. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7578. else
  7579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7580. for as_dir in $PATH
  7581. do
  7582. IFS=$as_save_IFS
  7583. case $as_dir in #(((
  7584. '') as_dir=./ ;;
  7585. */) ;;
  7586. *) as_dir=$as_dir/ ;;
  7587. esac
  7588. for ac_exec_ext in '' $ac_executable_extensions; do
  7589. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7590. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7591. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7592. break 2
  7593. fi
  7594. done
  7595. done
  7596. IFS=$as_save_IFS
  7597. fi
  7598. fi
  7599. OBJDUMP=$ac_cv_prog_OBJDUMP
  7600. if test -n "$OBJDUMP"; then
  7601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7602. printf "%s\n" "$OBJDUMP" >&6; }
  7603. else
  7604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7605. printf "%s\n" "no" >&6; }
  7606. fi
  7607. fi
  7608. if test -z "$ac_cv_prog_OBJDUMP"; then
  7609. ac_ct_OBJDUMP=$OBJDUMP
  7610. # Extract the first word of "objdump", so it can be a program name with args.
  7611. set dummy objdump; ac_word=$2
  7612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7613. printf %s "checking for $ac_word... " >&6; }
  7614. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7615. then :
  7616. printf %s "(cached) " >&6
  7617. else $as_nop
  7618. if test -n "$ac_ct_OBJDUMP"; then
  7619. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7620. else
  7621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7622. for as_dir in $PATH
  7623. do
  7624. IFS=$as_save_IFS
  7625. case $as_dir in #(((
  7626. '') as_dir=./ ;;
  7627. */) ;;
  7628. *) as_dir=$as_dir/ ;;
  7629. esac
  7630. for ac_exec_ext in '' $ac_executable_extensions; do
  7631. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7632. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7633. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7634. break 2
  7635. fi
  7636. done
  7637. done
  7638. IFS=$as_save_IFS
  7639. fi
  7640. fi
  7641. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7642. if test -n "$ac_ct_OBJDUMP"; then
  7643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7644. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7645. else
  7646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7647. printf "%s\n" "no" >&6; }
  7648. fi
  7649. if test "x$ac_ct_OBJDUMP" = x; then
  7650. OBJDUMP="false"
  7651. else
  7652. case $cross_compiling:$ac_tool_warned in
  7653. yes:)
  7654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7655. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7656. ac_tool_warned=yes ;;
  7657. esac
  7658. OBJDUMP=$ac_ct_OBJDUMP
  7659. fi
  7660. else
  7661. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7662. fi
  7663. ;;
  7664. esac
  7665. test -z "$AS" && AS=as
  7666. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7667. test -z "$OBJDUMP" && OBJDUMP=objdump
  7668. enable_dlopen=no
  7669. # Check whether --enable-shared was given.
  7670. if test ${enable_shared+y}
  7671. then :
  7672. enableval=$enable_shared; p=${PACKAGE-default}
  7673. case $enableval in
  7674. yes) enable_shared=yes ;;
  7675. no) enable_shared=no ;;
  7676. *)
  7677. enable_shared=no
  7678. # Look at the argument we got. We use all the common list separators.
  7679. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7680. for pkg in $enableval; do
  7681. IFS=$lt_save_ifs
  7682. if test "X$pkg" = "X$p"; then
  7683. enable_shared=yes
  7684. fi
  7685. done
  7686. IFS=$lt_save_ifs
  7687. ;;
  7688. esac
  7689. else $as_nop
  7690. enable_shared=yes
  7691. fi
  7692. # Check whether --enable-static was given.
  7693. if test ${enable_static+y}
  7694. then :
  7695. enableval=$enable_static; p=${PACKAGE-default}
  7696. case $enableval in
  7697. yes) enable_static=yes ;;
  7698. no) enable_static=no ;;
  7699. *)
  7700. enable_static=no
  7701. # Look at the argument we got. We use all the common list separators.
  7702. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7703. for pkg in $enableval; do
  7704. IFS=$lt_save_ifs
  7705. if test "X$pkg" = "X$p"; then
  7706. enable_static=yes
  7707. fi
  7708. done
  7709. IFS=$lt_save_ifs
  7710. ;;
  7711. esac
  7712. else $as_nop
  7713. enable_static=yes
  7714. fi
  7715. # Check whether --with-pic was given.
  7716. if test ${with_pic+y}
  7717. then :
  7718. withval=$with_pic; lt_p=${PACKAGE-default}
  7719. case $withval in
  7720. yes|no) pic_mode=$withval ;;
  7721. *)
  7722. pic_mode=default
  7723. # Look at the argument we got. We use all the common list separators.
  7724. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7725. for lt_pkg in $withval; do
  7726. IFS=$lt_save_ifs
  7727. if test "X$lt_pkg" = "X$lt_p"; then
  7728. pic_mode=yes
  7729. fi
  7730. done
  7731. IFS=$lt_save_ifs
  7732. ;;
  7733. esac
  7734. else $as_nop
  7735. pic_mode=default
  7736. fi
  7737. # Check whether --enable-fast-install was given.
  7738. if test ${enable_fast_install+y}
  7739. then :
  7740. enableval=$enable_fast_install; p=${PACKAGE-default}
  7741. case $enableval in
  7742. yes) enable_fast_install=yes ;;
  7743. no) enable_fast_install=no ;;
  7744. *)
  7745. enable_fast_install=no
  7746. # Look at the argument we got. We use all the common list separators.
  7747. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7748. for pkg in $enableval; do
  7749. IFS=$lt_save_ifs
  7750. if test "X$pkg" = "X$p"; then
  7751. enable_fast_install=yes
  7752. fi
  7753. done
  7754. IFS=$lt_save_ifs
  7755. ;;
  7756. esac
  7757. else $as_nop
  7758. enable_fast_install=yes
  7759. fi
  7760. shared_archive_member_spec=
  7761. case $host,$enable_shared in
  7762. power*-*-aix[5-9]*,yes)
  7763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7764. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7765. # Check whether --with-aix-soname was given.
  7766. if test ${with_aix_soname+y}
  7767. then :
  7768. withval=$with_aix_soname; case $withval in
  7769. aix|svr4|both)
  7770. ;;
  7771. *)
  7772. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7773. ;;
  7774. esac
  7775. lt_cv_with_aix_soname=$with_aix_soname
  7776. else $as_nop
  7777. if test ${lt_cv_with_aix_soname+y}
  7778. then :
  7779. printf %s "(cached) " >&6
  7780. else $as_nop
  7781. lt_cv_with_aix_soname=aix
  7782. fi
  7783. with_aix_soname=$lt_cv_with_aix_soname
  7784. fi
  7785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7786. printf "%s\n" "$with_aix_soname" >&6; }
  7787. if test aix != "$with_aix_soname"; then
  7788. # For the AIX way of multilib, we name the shared archive member
  7789. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7790. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7791. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7792. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7793. if test 64 = "${OBJECT_MODE-32}"; then
  7794. shared_archive_member_spec=shr_64
  7795. else
  7796. shared_archive_member_spec=shr
  7797. fi
  7798. fi
  7799. ;;
  7800. *)
  7801. with_aix_soname=aix
  7802. ;;
  7803. esac
  7804. # This can be used to rebuild libtool when needed
  7805. LIBTOOL_DEPS=$ltmain
  7806. # Always use our own libtool.
  7807. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7808. test -z "$LN_S" && LN_S="ln -s"
  7809. if test -n "${ZSH_VERSION+set}"; then
  7810. setopt NO_GLOB_SUBST
  7811. fi
  7812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7813. printf %s "checking for objdir... " >&6; }
  7814. if test ${lt_cv_objdir+y}
  7815. then :
  7816. printf %s "(cached) " >&6
  7817. else $as_nop
  7818. rm -f .libs 2>/dev/null
  7819. mkdir .libs 2>/dev/null
  7820. if test -d .libs; then
  7821. lt_cv_objdir=.libs
  7822. else
  7823. # MS-DOS does not allow filenames that begin with a dot.
  7824. lt_cv_objdir=_libs
  7825. fi
  7826. rmdir .libs 2>/dev/null
  7827. fi
  7828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7829. printf "%s\n" "$lt_cv_objdir" >&6; }
  7830. objdir=$lt_cv_objdir
  7831. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7832. case $host_os in
  7833. aix3*)
  7834. # AIX sometimes has problems with the GCC collect2 program. For some
  7835. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7836. # vanish in a puff of smoke.
  7837. if test set != "${COLLECT_NAMES+set}"; then
  7838. COLLECT_NAMES=
  7839. export COLLECT_NAMES
  7840. fi
  7841. ;;
  7842. esac
  7843. # Global variables:
  7844. ofile=libtool
  7845. can_build_shared=yes
  7846. # All known linkers require a '.a' archive for static linking (except MSVC and
  7847. # ICC, which need '.lib').
  7848. libext=a
  7849. with_gnu_ld=$lt_cv_prog_gnu_ld
  7850. old_CC=$CC
  7851. old_CFLAGS=$CFLAGS
  7852. # Set sane defaults for various variables
  7853. test -z "$CC" && CC=cc
  7854. test -z "$LTCC" && LTCC=$CC
  7855. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7856. test -z "$LD" && LD=ld
  7857. test -z "$ac_objext" && ac_objext=o
  7858. func_cc_basename $compiler
  7859. cc_basename=$func_cc_basename_result
  7860. # Only perform the check for file, if the check method requires it
  7861. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7862. case $deplibs_check_method in
  7863. file_magic*)
  7864. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7866. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7867. if test ${lt_cv_path_MAGIC_CMD+y}
  7868. then :
  7869. printf %s "(cached) " >&6
  7870. else $as_nop
  7871. case $MAGIC_CMD in
  7872. [\\/*] | ?:[\\/]*)
  7873. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7874. ;;
  7875. *)
  7876. lt_save_MAGIC_CMD=$MAGIC_CMD
  7877. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7878. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7879. for ac_dir in $ac_dummy; do
  7880. IFS=$lt_save_ifs
  7881. test -z "$ac_dir" && ac_dir=.
  7882. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7883. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7884. if test -n "$file_magic_test_file"; then
  7885. case $deplibs_check_method in
  7886. "file_magic "*)
  7887. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7888. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7889. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7890. $EGREP "$file_magic_regex" > /dev/null; then
  7891. :
  7892. else
  7893. cat <<_LT_EOF 1>&2
  7894. *** Warning: the command libtool uses to detect shared libraries,
  7895. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7896. *** The result is that libtool may fail to recognize shared libraries
  7897. *** as such. This will affect the creation of libtool libraries that
  7898. *** depend on shared libraries, but programs linked with such libtool
  7899. *** libraries will work regardless of this problem. Nevertheless, you
  7900. *** may want to report the problem to your system manager and/or to
  7901. *** bug-libtool@gnu.org
  7902. _LT_EOF
  7903. fi ;;
  7904. esac
  7905. fi
  7906. break
  7907. fi
  7908. done
  7909. IFS=$lt_save_ifs
  7910. MAGIC_CMD=$lt_save_MAGIC_CMD
  7911. ;;
  7912. esac
  7913. fi
  7914. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7915. if test -n "$MAGIC_CMD"; then
  7916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7917. printf "%s\n" "$MAGIC_CMD" >&6; }
  7918. else
  7919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7920. printf "%s\n" "no" >&6; }
  7921. fi
  7922. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7923. if test -n "$ac_tool_prefix"; then
  7924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7925. printf %s "checking for file... " >&6; }
  7926. if test ${lt_cv_path_MAGIC_CMD+y}
  7927. then :
  7928. printf %s "(cached) " >&6
  7929. else $as_nop
  7930. case $MAGIC_CMD in
  7931. [\\/*] | ?:[\\/]*)
  7932. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7933. ;;
  7934. *)
  7935. lt_save_MAGIC_CMD=$MAGIC_CMD
  7936. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7937. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7938. for ac_dir in $ac_dummy; do
  7939. IFS=$lt_save_ifs
  7940. test -z "$ac_dir" && ac_dir=.
  7941. if test -f "$ac_dir/file"; then
  7942. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7943. if test -n "$file_magic_test_file"; then
  7944. case $deplibs_check_method in
  7945. "file_magic "*)
  7946. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7947. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7948. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7949. $EGREP "$file_magic_regex" > /dev/null; then
  7950. :
  7951. else
  7952. cat <<_LT_EOF 1>&2
  7953. *** Warning: the command libtool uses to detect shared libraries,
  7954. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7955. *** The result is that libtool may fail to recognize shared libraries
  7956. *** as such. This will affect the creation of libtool libraries that
  7957. *** depend on shared libraries, but programs linked with such libtool
  7958. *** libraries will work regardless of this problem. Nevertheless, you
  7959. *** may want to report the problem to your system manager and/or to
  7960. *** bug-libtool@gnu.org
  7961. _LT_EOF
  7962. fi ;;
  7963. esac
  7964. fi
  7965. break
  7966. fi
  7967. done
  7968. IFS=$lt_save_ifs
  7969. MAGIC_CMD=$lt_save_MAGIC_CMD
  7970. ;;
  7971. esac
  7972. fi
  7973. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7974. if test -n "$MAGIC_CMD"; then
  7975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7976. printf "%s\n" "$MAGIC_CMD" >&6; }
  7977. else
  7978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7979. printf "%s\n" "no" >&6; }
  7980. fi
  7981. else
  7982. MAGIC_CMD=:
  7983. fi
  7984. fi
  7985. fi
  7986. ;;
  7987. esac
  7988. # Use C for the default configuration in the libtool script
  7989. lt_save_CC=$CC
  7990. ac_ext=c
  7991. ac_cpp='$CPP $CPPFLAGS'
  7992. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7993. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7994. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7995. # Source file extension for C test sources.
  7996. ac_ext=c
  7997. # Object file extension for compiled C test sources.
  7998. objext=o
  7999. objext=$objext
  8000. # Code to be used in simple compile tests
  8001. lt_simple_compile_test_code="int some_variable = 0;"
  8002. # Code to be used in simple link tests
  8003. lt_simple_link_test_code='int main(void){return(0);}'
  8004. # If no C compiler was specified, use CC.
  8005. LTCC=${LTCC-"$CC"}
  8006. # If no C compiler flags were specified, use CFLAGS.
  8007. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8008. # Allow CC to be a program name with arguments.
  8009. compiler=$CC
  8010. # Save the default compiler, since it gets overwritten when the other
  8011. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8012. compiler_DEFAULT=$CC
  8013. # save warnings/boilerplate of simple test code
  8014. ac_outfile=conftest.$ac_objext
  8015. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8016. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8017. _lt_compiler_boilerplate=`cat conftest.err`
  8018. $RM conftest*
  8019. ac_outfile=conftest.$ac_objext
  8020. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8021. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8022. _lt_linker_boilerplate=`cat conftest.err`
  8023. $RM -r conftest*
  8024. ## CAVEAT EMPTOR:
  8025. ## There is no encapsulation within the following macros, do not change
  8026. ## the running order or otherwise move them around unless you know exactly
  8027. ## what you are doing...
  8028. if test -n "$compiler"; then
  8029. lt_prog_compiler_no_builtin_flag=
  8030. if test yes = "$GCC"; then
  8031. case $cc_basename in
  8032. nvcc*)
  8033. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8034. *)
  8035. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8036. esac
  8037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8038. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8039. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8040. then :
  8041. printf %s "(cached) " >&6
  8042. else $as_nop
  8043. lt_cv_prog_compiler_rtti_exceptions=no
  8044. ac_outfile=conftest.$ac_objext
  8045. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8046. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8047. # Insert the option either (1) after the last *FLAGS variable, or
  8048. # (2) before a word containing "conftest.", or (3) at the end.
  8049. # Note that $ac_compile itself does not contain backslashes and begins
  8050. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8051. # The option is referenced via a variable to avoid confusing sed.
  8052. lt_compile=`echo "$ac_compile" | $SED \
  8053. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8054. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8055. -e 's:$: $lt_compiler_flag:'`
  8056. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8057. (eval "$lt_compile" 2>conftest.err)
  8058. ac_status=$?
  8059. cat conftest.err >&5
  8060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8061. if (exit $ac_status) && test -s "$ac_outfile"; then
  8062. # The compiler can only warn and ignore the option if not recognized
  8063. # So say no if there are warnings other than the usual output.
  8064. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8065. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8066. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8067. lt_cv_prog_compiler_rtti_exceptions=yes
  8068. fi
  8069. fi
  8070. $RM conftest*
  8071. fi
  8072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8073. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8074. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8075. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8076. else
  8077. :
  8078. fi
  8079. fi
  8080. lt_prog_compiler_wl=
  8081. lt_prog_compiler_pic=
  8082. lt_prog_compiler_static=
  8083. if test yes = "$GCC"; then
  8084. lt_prog_compiler_wl='-Wl,'
  8085. lt_prog_compiler_static='-static'
  8086. case $host_os in
  8087. aix*)
  8088. # All AIX code is PIC.
  8089. if test ia64 = "$host_cpu"; then
  8090. # AIX 5 now supports IA64 processor
  8091. lt_prog_compiler_static='-Bstatic'
  8092. fi
  8093. lt_prog_compiler_pic='-fPIC'
  8094. ;;
  8095. amigaos*)
  8096. case $host_cpu in
  8097. powerpc)
  8098. # see comment about AmigaOS4 .so support
  8099. lt_prog_compiler_pic='-fPIC'
  8100. ;;
  8101. m68k)
  8102. # FIXME: we need at least 68020 code to build shared libraries, but
  8103. # adding the '-m68020' flag to GCC prevents building anything better,
  8104. # like '-m68040'.
  8105. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8106. ;;
  8107. esac
  8108. ;;
  8109. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8110. # PIC is the default for these OSes.
  8111. ;;
  8112. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8113. # This hack is so that the source file can tell whether it is being
  8114. # built for inclusion in a dll (and should export symbols for example).
  8115. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8116. # (--disable-auto-import) libraries
  8117. lt_prog_compiler_pic='-DDLL_EXPORT'
  8118. case $host_os in
  8119. os2*)
  8120. lt_prog_compiler_static='$wl-static'
  8121. ;;
  8122. esac
  8123. ;;
  8124. darwin* | rhapsody*)
  8125. # PIC is the default on this platform
  8126. # Common symbols not allowed in MH_DYLIB files
  8127. lt_prog_compiler_pic='-fno-common'
  8128. ;;
  8129. haiku*)
  8130. # PIC is the default for Haiku.
  8131. # The "-static" flag exists, but is broken.
  8132. lt_prog_compiler_static=
  8133. ;;
  8134. hpux*)
  8135. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8136. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8137. # sets the default TLS model and affects inlining.
  8138. case $host_cpu in
  8139. hppa*64*)
  8140. # +Z the default
  8141. ;;
  8142. *)
  8143. lt_prog_compiler_pic='-fPIC'
  8144. ;;
  8145. esac
  8146. ;;
  8147. interix[3-9]*)
  8148. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8149. # Instead, we relocate shared libraries at runtime.
  8150. ;;
  8151. msdosdjgpp*)
  8152. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8153. # on systems that don't support them.
  8154. lt_prog_compiler_can_build_shared=no
  8155. enable_shared=no
  8156. ;;
  8157. *nto* | *qnx*)
  8158. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8159. # it will coredump.
  8160. lt_prog_compiler_pic='-fPIC -shared'
  8161. ;;
  8162. sysv4*MP*)
  8163. if test -d /usr/nec; then
  8164. lt_prog_compiler_pic=-Kconform_pic
  8165. fi
  8166. ;;
  8167. *)
  8168. lt_prog_compiler_pic='-fPIC'
  8169. ;;
  8170. esac
  8171. case $cc_basename in
  8172. nvcc*) # Cuda Compiler Driver 2.2
  8173. lt_prog_compiler_wl='-Xlinker '
  8174. if test -n "$lt_prog_compiler_pic"; then
  8175. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8176. fi
  8177. ;;
  8178. esac
  8179. else
  8180. # PORTME Check for flag to pass linker flags through the system compiler.
  8181. case $host_os in
  8182. aix*)
  8183. lt_prog_compiler_wl='-Wl,'
  8184. if test ia64 = "$host_cpu"; then
  8185. # AIX 5 now supports IA64 processor
  8186. lt_prog_compiler_static='-Bstatic'
  8187. else
  8188. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8189. fi
  8190. ;;
  8191. darwin* | rhapsody*)
  8192. # PIC is the default on this platform
  8193. # Common symbols not allowed in MH_DYLIB files
  8194. lt_prog_compiler_pic='-fno-common'
  8195. case $cc_basename in
  8196. nagfor*)
  8197. # NAG Fortran compiler
  8198. lt_prog_compiler_wl='-Wl,-Wl,,'
  8199. lt_prog_compiler_pic='-PIC'
  8200. lt_prog_compiler_static='-Bstatic'
  8201. ;;
  8202. esac
  8203. ;;
  8204. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8205. # This hack is so that the source file can tell whether it is being
  8206. # built for inclusion in a dll (and should export symbols for example).
  8207. lt_prog_compiler_pic='-DDLL_EXPORT'
  8208. case $host_os in
  8209. os2*)
  8210. lt_prog_compiler_static='$wl-static'
  8211. ;;
  8212. esac
  8213. ;;
  8214. hpux9* | hpux10* | hpux11*)
  8215. lt_prog_compiler_wl='-Wl,'
  8216. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8217. # not for PA HP-UX.
  8218. case $host_cpu in
  8219. hppa*64*|ia64*)
  8220. # +Z the default
  8221. ;;
  8222. *)
  8223. lt_prog_compiler_pic='+Z'
  8224. ;;
  8225. esac
  8226. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8227. lt_prog_compiler_static='$wl-a ${wl}archive'
  8228. ;;
  8229. irix5* | irix6* | nonstopux*)
  8230. lt_prog_compiler_wl='-Wl,'
  8231. # PIC (with -KPIC) is the default.
  8232. lt_prog_compiler_static='-non_shared'
  8233. ;;
  8234. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8235. case $cc_basename in
  8236. # old Intel for x86_64, which still supported -KPIC.
  8237. ecc*)
  8238. lt_prog_compiler_wl='-Wl,'
  8239. lt_prog_compiler_pic='-KPIC'
  8240. lt_prog_compiler_static='-static'
  8241. ;;
  8242. # icc used to be incompatible with GCC.
  8243. # ICC 10 doesn't accept -KPIC any more.
  8244. icc* | ifort*)
  8245. lt_prog_compiler_wl='-Wl,'
  8246. lt_prog_compiler_pic='-fPIC'
  8247. lt_prog_compiler_static='-static'
  8248. ;;
  8249. # Lahey Fortran 8.1.
  8250. lf95*)
  8251. lt_prog_compiler_wl='-Wl,'
  8252. lt_prog_compiler_pic='--shared'
  8253. lt_prog_compiler_static='--static'
  8254. ;;
  8255. nagfor*)
  8256. # NAG Fortran compiler
  8257. lt_prog_compiler_wl='-Wl,-Wl,,'
  8258. lt_prog_compiler_pic='-PIC'
  8259. lt_prog_compiler_static='-Bstatic'
  8260. ;;
  8261. tcc*)
  8262. # Fabrice Bellard et al's Tiny C Compiler
  8263. lt_prog_compiler_wl='-Wl,'
  8264. lt_prog_compiler_pic='-fPIC'
  8265. lt_prog_compiler_static='-static'
  8266. ;;
  8267. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8268. # Portland Group compilers (*not* the Pentium gcc compiler,
  8269. # which looks to be a dead project)
  8270. lt_prog_compiler_wl='-Wl,'
  8271. lt_prog_compiler_pic='-fpic'
  8272. lt_prog_compiler_static='-Bstatic'
  8273. ;;
  8274. ccc*)
  8275. lt_prog_compiler_wl='-Wl,'
  8276. # All Alpha code is PIC.
  8277. lt_prog_compiler_static='-non_shared'
  8278. ;;
  8279. xl* | bgxl* | bgf* | mpixl*)
  8280. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8281. lt_prog_compiler_wl='-Wl,'
  8282. lt_prog_compiler_pic='-qpic'
  8283. lt_prog_compiler_static='-qstaticlink'
  8284. ;;
  8285. *)
  8286. case `$CC -V 2>&1 | sed 5q` in
  8287. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8288. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8289. lt_prog_compiler_pic='-KPIC'
  8290. lt_prog_compiler_static='-Bstatic'
  8291. lt_prog_compiler_wl=''
  8292. ;;
  8293. *Sun\ F* | *Sun*Fortran*)
  8294. lt_prog_compiler_pic='-KPIC'
  8295. lt_prog_compiler_static='-Bstatic'
  8296. lt_prog_compiler_wl='-Qoption ld '
  8297. ;;
  8298. *Sun\ C*)
  8299. # Sun C 5.9
  8300. lt_prog_compiler_pic='-KPIC'
  8301. lt_prog_compiler_static='-Bstatic'
  8302. lt_prog_compiler_wl='-Wl,'
  8303. ;;
  8304. *Intel*\ [CF]*Compiler*)
  8305. lt_prog_compiler_wl='-Wl,'
  8306. lt_prog_compiler_pic='-fPIC'
  8307. lt_prog_compiler_static='-static'
  8308. ;;
  8309. *Portland\ Group*)
  8310. lt_prog_compiler_wl='-Wl,'
  8311. lt_prog_compiler_pic='-fpic'
  8312. lt_prog_compiler_static='-Bstatic'
  8313. ;;
  8314. esac
  8315. ;;
  8316. esac
  8317. ;;
  8318. newsos6)
  8319. lt_prog_compiler_pic='-KPIC'
  8320. lt_prog_compiler_static='-Bstatic'
  8321. ;;
  8322. *nto* | *qnx*)
  8323. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8324. # it will coredump.
  8325. lt_prog_compiler_pic='-fPIC -shared'
  8326. ;;
  8327. osf3* | osf4* | osf5*)
  8328. lt_prog_compiler_wl='-Wl,'
  8329. # All OSF/1 code is PIC.
  8330. lt_prog_compiler_static='-non_shared'
  8331. ;;
  8332. rdos*)
  8333. lt_prog_compiler_static='-non_shared'
  8334. ;;
  8335. solaris*)
  8336. lt_prog_compiler_pic='-KPIC'
  8337. lt_prog_compiler_static='-Bstatic'
  8338. case $cc_basename in
  8339. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8340. lt_prog_compiler_wl='-Qoption ld ';;
  8341. *)
  8342. lt_prog_compiler_wl='-Wl,';;
  8343. esac
  8344. ;;
  8345. sunos4*)
  8346. lt_prog_compiler_wl='-Qoption ld '
  8347. lt_prog_compiler_pic='-PIC'
  8348. lt_prog_compiler_static='-Bstatic'
  8349. ;;
  8350. sysv4 | sysv4.2uw2* | sysv4.3*)
  8351. lt_prog_compiler_wl='-Wl,'
  8352. lt_prog_compiler_pic='-KPIC'
  8353. lt_prog_compiler_static='-Bstatic'
  8354. ;;
  8355. sysv4*MP*)
  8356. if test -d /usr/nec; then
  8357. lt_prog_compiler_pic='-Kconform_pic'
  8358. lt_prog_compiler_static='-Bstatic'
  8359. fi
  8360. ;;
  8361. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8362. lt_prog_compiler_wl='-Wl,'
  8363. lt_prog_compiler_pic='-KPIC'
  8364. lt_prog_compiler_static='-Bstatic'
  8365. ;;
  8366. unicos*)
  8367. lt_prog_compiler_wl='-Wl,'
  8368. lt_prog_compiler_can_build_shared=no
  8369. ;;
  8370. uts4*)
  8371. lt_prog_compiler_pic='-pic'
  8372. lt_prog_compiler_static='-Bstatic'
  8373. ;;
  8374. *)
  8375. lt_prog_compiler_can_build_shared=no
  8376. ;;
  8377. esac
  8378. fi
  8379. case $host_os in
  8380. # For platforms that do not support PIC, -DPIC is meaningless:
  8381. *djgpp*)
  8382. lt_prog_compiler_pic=
  8383. ;;
  8384. *)
  8385. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8386. ;;
  8387. esac
  8388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8389. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8390. if test ${lt_cv_prog_compiler_pic+y}
  8391. then :
  8392. printf %s "(cached) " >&6
  8393. else $as_nop
  8394. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8395. fi
  8396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8397. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8398. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8399. #
  8400. # Check to make sure the PIC flag actually works.
  8401. #
  8402. if test -n "$lt_prog_compiler_pic"; then
  8403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8404. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8405. if test ${lt_cv_prog_compiler_pic_works+y}
  8406. then :
  8407. printf %s "(cached) " >&6
  8408. else $as_nop
  8409. lt_cv_prog_compiler_pic_works=no
  8410. ac_outfile=conftest.$ac_objext
  8411. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8412. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8413. # Insert the option either (1) after the last *FLAGS variable, or
  8414. # (2) before a word containing "conftest.", or (3) at the end.
  8415. # Note that $ac_compile itself does not contain backslashes and begins
  8416. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8417. # The option is referenced via a variable to avoid confusing sed.
  8418. lt_compile=`echo "$ac_compile" | $SED \
  8419. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8420. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8421. -e 's:$: $lt_compiler_flag:'`
  8422. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8423. (eval "$lt_compile" 2>conftest.err)
  8424. ac_status=$?
  8425. cat conftest.err >&5
  8426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8427. if (exit $ac_status) && test -s "$ac_outfile"; then
  8428. # The compiler can only warn and ignore the option if not recognized
  8429. # So say no if there are warnings other than the usual output.
  8430. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8431. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8432. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8433. lt_cv_prog_compiler_pic_works=yes
  8434. fi
  8435. fi
  8436. $RM conftest*
  8437. fi
  8438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8439. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8440. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8441. case $lt_prog_compiler_pic in
  8442. "" | " "*) ;;
  8443. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8444. esac
  8445. else
  8446. lt_prog_compiler_pic=
  8447. lt_prog_compiler_can_build_shared=no
  8448. fi
  8449. fi
  8450. #
  8451. # Check to make sure the static flag actually works.
  8452. #
  8453. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8455. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8456. if test ${lt_cv_prog_compiler_static_works+y}
  8457. then :
  8458. printf %s "(cached) " >&6
  8459. else $as_nop
  8460. lt_cv_prog_compiler_static_works=no
  8461. save_LDFLAGS=$LDFLAGS
  8462. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8463. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8464. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8465. # The linker can only warn and ignore the option if not recognized
  8466. # So say no if there are warnings
  8467. if test -s conftest.err; then
  8468. # Append any errors to the config.log.
  8469. cat conftest.err 1>&5
  8470. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8471. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8472. if diff conftest.exp conftest.er2 >/dev/null; then
  8473. lt_cv_prog_compiler_static_works=yes
  8474. fi
  8475. else
  8476. lt_cv_prog_compiler_static_works=yes
  8477. fi
  8478. fi
  8479. $RM -r conftest*
  8480. LDFLAGS=$save_LDFLAGS
  8481. fi
  8482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8483. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8484. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8485. :
  8486. else
  8487. lt_prog_compiler_static=
  8488. fi
  8489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8490. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8491. if test ${lt_cv_prog_compiler_c_o+y}
  8492. then :
  8493. printf %s "(cached) " >&6
  8494. else $as_nop
  8495. lt_cv_prog_compiler_c_o=no
  8496. $RM -r conftest 2>/dev/null
  8497. mkdir conftest
  8498. cd conftest
  8499. mkdir out
  8500. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8501. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8502. # Insert the option either (1) after the last *FLAGS variable, or
  8503. # (2) before a word containing "conftest.", or (3) at the end.
  8504. # Note that $ac_compile itself does not contain backslashes and begins
  8505. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8506. lt_compile=`echo "$ac_compile" | $SED \
  8507. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8508. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8509. -e 's:$: $lt_compiler_flag:'`
  8510. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8511. (eval "$lt_compile" 2>out/conftest.err)
  8512. ac_status=$?
  8513. cat out/conftest.err >&5
  8514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8515. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8516. then
  8517. # The compiler can only warn and ignore the option if not recognized
  8518. # So say no if there are warnings
  8519. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8520. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8521. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8522. lt_cv_prog_compiler_c_o=yes
  8523. fi
  8524. fi
  8525. chmod u+w . 2>&5
  8526. $RM conftest*
  8527. # SGI C++ compiler will create directory out/ii_files/ for
  8528. # template instantiation
  8529. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8530. $RM out/* && rmdir out
  8531. cd ..
  8532. $RM -r conftest
  8533. $RM conftest*
  8534. fi
  8535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8536. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8538. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8539. if test ${lt_cv_prog_compiler_c_o+y}
  8540. then :
  8541. printf %s "(cached) " >&6
  8542. else $as_nop
  8543. lt_cv_prog_compiler_c_o=no
  8544. $RM -r conftest 2>/dev/null
  8545. mkdir conftest
  8546. cd conftest
  8547. mkdir out
  8548. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8549. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8550. # Insert the option either (1) after the last *FLAGS variable, or
  8551. # (2) before a word containing "conftest.", or (3) at the end.
  8552. # Note that $ac_compile itself does not contain backslashes and begins
  8553. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8554. lt_compile=`echo "$ac_compile" | $SED \
  8555. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8556. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8557. -e 's:$: $lt_compiler_flag:'`
  8558. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8559. (eval "$lt_compile" 2>out/conftest.err)
  8560. ac_status=$?
  8561. cat out/conftest.err >&5
  8562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8563. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8564. then
  8565. # The compiler can only warn and ignore the option if not recognized
  8566. # So say no if there are warnings
  8567. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8568. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8569. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8570. lt_cv_prog_compiler_c_o=yes
  8571. fi
  8572. fi
  8573. chmod u+w . 2>&5
  8574. $RM conftest*
  8575. # SGI C++ compiler will create directory out/ii_files/ for
  8576. # template instantiation
  8577. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8578. $RM out/* && rmdir out
  8579. cd ..
  8580. $RM -r conftest
  8581. $RM conftest*
  8582. fi
  8583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8584. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8585. hard_links=nottested
  8586. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8587. # do not overwrite the value of need_locks provided by the user
  8588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8589. printf %s "checking if we can lock with hard links... " >&6; }
  8590. hard_links=yes
  8591. $RM conftest*
  8592. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8593. touch conftest.a
  8594. ln conftest.a conftest.b 2>&5 || hard_links=no
  8595. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8597. printf "%s\n" "$hard_links" >&6; }
  8598. if test no = "$hard_links"; then
  8599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8600. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8601. need_locks=warn
  8602. fi
  8603. else
  8604. need_locks=no
  8605. fi
  8606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8607. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8608. runpath_var=
  8609. allow_undefined_flag=
  8610. always_export_symbols=no
  8611. archive_cmds=
  8612. archive_expsym_cmds=
  8613. compiler_needs_object=no
  8614. enable_shared_with_static_runtimes=no
  8615. export_dynamic_flag_spec=
  8616. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8617. hardcode_automatic=no
  8618. hardcode_direct=no
  8619. hardcode_direct_absolute=no
  8620. hardcode_libdir_flag_spec=
  8621. hardcode_libdir_separator=
  8622. hardcode_minus_L=no
  8623. hardcode_shlibpath_var=unsupported
  8624. inherit_rpath=no
  8625. link_all_deplibs=unknown
  8626. module_cmds=
  8627. module_expsym_cmds=
  8628. old_archive_from_new_cmds=
  8629. old_archive_from_expsyms_cmds=
  8630. thread_safe_flag_spec=
  8631. whole_archive_flag_spec=
  8632. # include_expsyms should be a list of space-separated symbols to be *always*
  8633. # included in the symbol list
  8634. include_expsyms=
  8635. # exclude_expsyms can be an extended regexp of symbols to exclude
  8636. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8637. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8638. # as well as any symbol that contains 'd'.
  8639. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8640. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8641. # platforms (ab)use it in PIC code, but their linkers get confused if
  8642. # the symbol is explicitly referenced. Since portable code cannot
  8643. # rely on this symbol name, it's probably fine to never include it in
  8644. # preloaded symbol tables.
  8645. # Exclude shared library initialization/finalization symbols.
  8646. extract_expsyms_cmds=
  8647. case $host_os in
  8648. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8649. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  8650. # When not using gcc, we currently assume that we are using
  8651. # Microsoft Visual C++ or Intel C++ Compiler.
  8652. if test yes != "$GCC"; then
  8653. with_gnu_ld=no
  8654. fi
  8655. ;;
  8656. interix*)
  8657. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  8658. with_gnu_ld=yes
  8659. ;;
  8660. openbsd* | bitrig*)
  8661. with_gnu_ld=no
  8662. ;;
  8663. esac
  8664. ld_shlibs=yes
  8665. # On some targets, GNU ld is compatible enough with the native linker
  8666. # that we're better off using the native interface for both.
  8667. lt_use_gnu_ld_interface=no
  8668. if test yes = "$with_gnu_ld"; then
  8669. case $host_os in
  8670. aix*)
  8671. # The AIX port of GNU ld has always aspired to compatibility
  8672. # with the native linker. However, as the warning in the GNU ld
  8673. # block says, versions before 2.19.5* couldn't really create working
  8674. # shared libraries, regardless of the interface used.
  8675. case `$LD -v 2>&1` in
  8676. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8677. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8678. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8679. *)
  8680. lt_use_gnu_ld_interface=yes
  8681. ;;
  8682. esac
  8683. ;;
  8684. *)
  8685. lt_use_gnu_ld_interface=yes
  8686. ;;
  8687. esac
  8688. fi
  8689. if test yes = "$lt_use_gnu_ld_interface"; then
  8690. # If archive_cmds runs LD, not CC, wlarc should be empty
  8691. wlarc='$wl'
  8692. # Set some defaults for GNU ld with shared library support. These
  8693. # are reset later if shared libraries are not supported. Putting them
  8694. # here allows them to be overridden if necessary.
  8695. runpath_var=LD_RUN_PATH
  8696. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8697. export_dynamic_flag_spec='$wl--export-dynamic'
  8698. # ancient GNU ld didn't support --whole-archive et. al.
  8699. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8700. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8701. else
  8702. whole_archive_flag_spec=
  8703. fi
  8704. supports_anon_versioning=no
  8705. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8706. *GNU\ gold*) supports_anon_versioning=yes ;;
  8707. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8708. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8709. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8710. *\ 2.11.*) ;; # other 2.11 versions
  8711. *) supports_anon_versioning=yes ;;
  8712. esac
  8713. # See if GNU ld supports shared libraries.
  8714. case $host_os in
  8715. aix[3-9]*)
  8716. # On AIX/PPC, the GNU linker is very broken
  8717. if test ia64 != "$host_cpu"; then
  8718. ld_shlibs=no
  8719. cat <<_LT_EOF 1>&2
  8720. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8721. *** to be unable to reliably create shared libraries on AIX.
  8722. *** Therefore, libtool is disabling shared libraries support. If you
  8723. *** really care for shared libraries, you may want to install binutils
  8724. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8725. *** You will then need to restart the configuration process.
  8726. _LT_EOF
  8727. fi
  8728. ;;
  8729. amigaos*)
  8730. case $host_cpu in
  8731. powerpc)
  8732. # see comment about AmigaOS4 .so support
  8733. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8734. archive_expsym_cmds=''
  8735. ;;
  8736. m68k)
  8737. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8738. hardcode_libdir_flag_spec='-L$libdir'
  8739. hardcode_minus_L=yes
  8740. ;;
  8741. esac
  8742. ;;
  8743. beos*)
  8744. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8745. allow_undefined_flag=unsupported
  8746. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8747. # support --undefined. This deserves some investigation. FIXME
  8748. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8749. else
  8750. ld_shlibs=no
  8751. fi
  8752. ;;
  8753. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8754. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8755. # as there is no search path for DLLs.
  8756. hardcode_libdir_flag_spec='-L$libdir'
  8757. export_dynamic_flag_spec='$wl--export-all-symbols'
  8758. allow_undefined_flag=unsupported
  8759. always_export_symbols=no
  8760. enable_shared_with_static_runtimes=yes
  8761. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8762. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8763. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8764. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8765. # If the export-symbols file already is a .def file, use it as
  8766. # is; otherwise, prepend EXPORTS...
  8767. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8768. cp $export_symbols $output_objdir/$soname.def;
  8769. else
  8770. echo EXPORTS > $output_objdir/$soname.def;
  8771. cat $export_symbols >> $output_objdir/$soname.def;
  8772. fi~
  8773. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8774. else
  8775. ld_shlibs=no
  8776. fi
  8777. ;;
  8778. haiku*)
  8779. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8780. link_all_deplibs=yes
  8781. ;;
  8782. os2*)
  8783. hardcode_libdir_flag_spec='-L$libdir'
  8784. hardcode_minus_L=yes
  8785. allow_undefined_flag=unsupported
  8786. shrext_cmds=.dll
  8787. archive_cmds='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8788. echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8789. echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8790. echo EXPORTS >> $output_objdir/$libname.def~
  8791. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8792. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8793. emximp -o $lib $output_objdir/$libname.def'
  8794. archive_expsym_cmds='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8795. echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8796. echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8797. echo EXPORTS >> $output_objdir/$libname.def~
  8798. prefix_cmds="$SED"~
  8799. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8800. prefix_cmds="$prefix_cmds -e 1d";
  8801. fi~
  8802. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8803. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8804. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8805. emximp -o $lib $output_objdir/$libname.def'
  8806. 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. enable_shared_with_static_runtimes=yes
  9605. file_list_spec='@'
  9606. ;;
  9607. osf3*)
  9608. if test yes = "$GCC"; then
  9609. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9610. 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'
  9611. else
  9612. allow_undefined_flag=' -expect_unresolved \*'
  9613. 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'
  9614. fi
  9615. archive_cmds_need_lc='no'
  9616. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9617. hardcode_libdir_separator=:
  9618. ;;
  9619. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9620. if test yes = "$GCC"; then
  9621. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9622. 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'
  9623. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9624. else
  9625. allow_undefined_flag=' -expect_unresolved \*'
  9626. 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'
  9627. 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~
  9628. $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'
  9629. # Both c and cxx compiler support -rpath directly
  9630. hardcode_libdir_flag_spec='-rpath $libdir'
  9631. fi
  9632. archive_cmds_need_lc='no'
  9633. hardcode_libdir_separator=:
  9634. ;;
  9635. solaris*)
  9636. no_undefined_flag=' -z defs'
  9637. if test yes = "$GCC"; then
  9638. wlarc='$wl'
  9639. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9640. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9641. $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'
  9642. else
  9643. case `$CC -V 2>&1` in
  9644. *"Compilers 5.0"*)
  9645. wlarc=''
  9646. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9647. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9648. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9649. ;;
  9650. *)
  9651. wlarc='$wl'
  9652. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9653. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9654. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9655. ;;
  9656. esac
  9657. fi
  9658. hardcode_libdir_flag_spec='-R$libdir'
  9659. hardcode_shlibpath_var=no
  9660. case $host_os in
  9661. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9662. *)
  9663. # The compiler driver will combine and reorder linker options,
  9664. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9665. # but is careful enough not to reorder.
  9666. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9667. if test yes = "$GCC"; then
  9668. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9669. else
  9670. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9671. fi
  9672. ;;
  9673. esac
  9674. link_all_deplibs=yes
  9675. ;;
  9676. sunos4*)
  9677. if test sequent = "$host_vendor"; then
  9678. # Use $CC to link under sequent, because it throws in some extra .o
  9679. # files that make .init and .fini sections work.
  9680. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9681. else
  9682. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9683. fi
  9684. hardcode_libdir_flag_spec='-L$libdir'
  9685. hardcode_direct=yes
  9686. hardcode_minus_L=yes
  9687. hardcode_shlibpath_var=no
  9688. ;;
  9689. sysv4)
  9690. case $host_vendor in
  9691. sni)
  9692. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9693. hardcode_direct=yes # is this really true???
  9694. ;;
  9695. siemens)
  9696. ## LD is ld it makes a PLAMLIB
  9697. ## CC just makes a GrossModule.
  9698. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9699. reload_cmds='$CC -r -o $output$reload_objs'
  9700. hardcode_direct=no
  9701. ;;
  9702. motorola)
  9703. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9704. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9705. ;;
  9706. esac
  9707. runpath_var='LD_RUN_PATH'
  9708. hardcode_shlibpath_var=no
  9709. ;;
  9710. sysv4.3*)
  9711. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9712. hardcode_shlibpath_var=no
  9713. export_dynamic_flag_spec='-Bexport'
  9714. ;;
  9715. sysv4*MP*)
  9716. if test -d /usr/nec; then
  9717. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9718. hardcode_shlibpath_var=no
  9719. runpath_var=LD_RUN_PATH
  9720. hardcode_runpath_var=yes
  9721. ld_shlibs=yes
  9722. fi
  9723. ;;
  9724. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9725. no_undefined_flag='$wl-z,text'
  9726. archive_cmds_need_lc=no
  9727. hardcode_shlibpath_var=no
  9728. runpath_var='LD_RUN_PATH'
  9729. if test yes = "$GCC"; then
  9730. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9731. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9732. else
  9733. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9734. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9735. fi
  9736. ;;
  9737. sysv5* | sco3.2v5* | sco5v6*)
  9738. # Note: We CANNOT use -z defs as we might desire, because we do not
  9739. # link with -lc, and that would cause any symbols used from libc to
  9740. # always be unresolved, which means just about no library would
  9741. # ever link correctly. If we're not using GNU ld we use -z text
  9742. # though, which does catch some bad symbols but isn't as heavy-handed
  9743. # as -z defs.
  9744. no_undefined_flag='$wl-z,text'
  9745. allow_undefined_flag='$wl-z,nodefs'
  9746. archive_cmds_need_lc=no
  9747. hardcode_shlibpath_var=no
  9748. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9749. hardcode_libdir_separator=':'
  9750. link_all_deplibs=yes
  9751. export_dynamic_flag_spec='$wl-Bexport'
  9752. runpath_var='LD_RUN_PATH'
  9753. if test yes = "$GCC"; then
  9754. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9755. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9756. else
  9757. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9758. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9759. fi
  9760. ;;
  9761. uts4*)
  9762. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9763. hardcode_libdir_flag_spec='-L$libdir'
  9764. hardcode_shlibpath_var=no
  9765. ;;
  9766. *)
  9767. ld_shlibs=no
  9768. ;;
  9769. esac
  9770. if test sni = "$host_vendor"; then
  9771. case $host in
  9772. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9773. export_dynamic_flag_spec='$wl-Blargedynsym'
  9774. ;;
  9775. esac
  9776. fi
  9777. fi
  9778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9779. printf "%s\n" "$ld_shlibs" >&6; }
  9780. test no = "$ld_shlibs" && can_build_shared=no
  9781. with_gnu_ld=$with_gnu_ld
  9782. #
  9783. # Do we need to explicitly link libc?
  9784. #
  9785. case "x$archive_cmds_need_lc" in
  9786. x|xyes)
  9787. # Assume -lc should be added
  9788. archive_cmds_need_lc=yes
  9789. if test yes,yes = "$GCC,$enable_shared"; then
  9790. case $archive_cmds in
  9791. *'~'*)
  9792. # FIXME: we may have to deal with multi-command sequences.
  9793. ;;
  9794. '$CC '*)
  9795. # Test whether the compiler implicitly links with -lc since on some
  9796. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9797. # to ld, don't add -lc before -lgcc.
  9798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9799. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9800. if test ${lt_cv_archive_cmds_need_lc+y}
  9801. then :
  9802. printf %s "(cached) " >&6
  9803. else $as_nop
  9804. $RM conftest*
  9805. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9806. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9807. (eval $ac_compile) 2>&5
  9808. ac_status=$?
  9809. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9810. test $ac_status = 0; } 2>conftest.err; then
  9811. soname=conftest
  9812. lib=conftest
  9813. libobjs=conftest.$ac_objext
  9814. deplibs=
  9815. wl=$lt_prog_compiler_wl
  9816. pic_flag=$lt_prog_compiler_pic
  9817. compiler_flags=-v
  9818. linker_flags=-v
  9819. verstring=
  9820. output_objdir=.
  9821. libname=conftest
  9822. lt_save_allow_undefined_flag=$allow_undefined_flag
  9823. allow_undefined_flag=
  9824. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9825. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9826. ac_status=$?
  9827. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9828. test $ac_status = 0; }
  9829. then
  9830. lt_cv_archive_cmds_need_lc=no
  9831. else
  9832. lt_cv_archive_cmds_need_lc=yes
  9833. fi
  9834. allow_undefined_flag=$lt_save_allow_undefined_flag
  9835. else
  9836. cat conftest.err 1>&5
  9837. fi
  9838. $RM conftest*
  9839. fi
  9840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9841. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9842. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9843. ;;
  9844. esac
  9845. fi
  9846. ;;
  9847. esac
  9848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9849. printf %s "checking dynamic linker characteristics... " >&6; }
  9850. if test yes = "$GCC"; then
  9851. case $host_os in
  9852. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9853. *) lt_awk_arg='/^libraries:/' ;;
  9854. esac
  9855. case $host_os in
  9856. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9857. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9858. esac
  9859. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9860. case $lt_search_path_spec in
  9861. *\;*)
  9862. # if the path contains ";" then we assume it to be the separator
  9863. # otherwise default to the standard path separator (i.e. ":") - it is
  9864. # assumed that no part of a normal pathname contains ";" but that should
  9865. # okay in the real world where ";" in dirpaths is itself problematic.
  9866. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9867. ;;
  9868. *)
  9869. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9870. ;;
  9871. esac
  9872. # Ok, now we have the path, separated by spaces, we can step through it
  9873. # and add multilib dir if necessary...
  9874. lt_tmp_lt_search_path_spec=
  9875. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9876. # ...but if some path component already ends with the multilib dir we assume
  9877. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9878. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9879. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9880. lt_multi_os_dir=
  9881. ;;
  9882. esac
  9883. for lt_sys_path in $lt_search_path_spec; do
  9884. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9885. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9886. elif test -n "$lt_multi_os_dir"; then
  9887. test -d "$lt_sys_path" && \
  9888. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9889. fi
  9890. done
  9891. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9892. BEGIN {RS = " "; FS = "/|\n";} {
  9893. lt_foo = "";
  9894. lt_count = 0;
  9895. for (lt_i = NF; lt_i > 0; lt_i--) {
  9896. if ($lt_i != "" && $lt_i != ".") {
  9897. if ($lt_i == "..") {
  9898. lt_count++;
  9899. } else {
  9900. if (lt_count == 0) {
  9901. lt_foo = "/" $lt_i lt_foo;
  9902. } else {
  9903. lt_count--;
  9904. }
  9905. }
  9906. }
  9907. }
  9908. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9909. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9910. }'`
  9911. # AWK program above erroneously prepends '/' to C:/dos/paths
  9912. # for these hosts.
  9913. case $host_os in
  9914. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9915. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9916. esac
  9917. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9918. else
  9919. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9920. fi
  9921. library_names_spec=
  9922. libname_spec='lib$name'
  9923. soname_spec=
  9924. shrext_cmds=.so
  9925. postinstall_cmds=
  9926. postuninstall_cmds=
  9927. finish_cmds=
  9928. finish_eval=
  9929. shlibpath_var=
  9930. shlibpath_overrides_runpath=unknown
  9931. version_type=none
  9932. dynamic_linker="$host_os ld.so"
  9933. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9934. need_lib_prefix=unknown
  9935. hardcode_into_libs=no
  9936. # when you set need_version to no, make sure it does not cause -set_version
  9937. # flags to be left without arguments
  9938. need_version=unknown
  9939. case $host_os in
  9940. aix3*)
  9941. version_type=linux # correct to gnu/linux during the next big refactor
  9942. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9943. shlibpath_var=LIBPATH
  9944. # AIX 3 has no versioning support, so we append a major version to the name.
  9945. soname_spec='$libname$release$shared_ext$major'
  9946. ;;
  9947. aix[4-9]*)
  9948. version_type=linux # correct to gnu/linux during the next big refactor
  9949. need_lib_prefix=no
  9950. need_version=no
  9951. hardcode_into_libs=yes
  9952. if test ia64 = "$host_cpu"; then
  9953. # AIX 5 supports IA64
  9954. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9955. shlibpath_var=LD_LIBRARY_PATH
  9956. else
  9957. # With GCC up to 2.95.x, collect2 would create an import file
  9958. # for dependence libraries. The import file would start with
  9959. # the line '#! .'. This would cause the generated library to
  9960. # depend on '.', always an invalid library. This was fixed in
  9961. # development snapshots of GCC prior to 3.0.
  9962. case $host_os in
  9963. aix4 | aix4.[01] | aix4.[01].*)
  9964. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9965. echo ' yes '
  9966. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9967. :
  9968. else
  9969. can_build_shared=no
  9970. fi
  9971. ;;
  9972. esac
  9973. # Using Import Files as archive members, it is possible to support
  9974. # filename-based versioning of shared library archives on AIX. While
  9975. # this would work for both with and without runtime linking, it will
  9976. # prevent static linking of such archives. So we do filename-based
  9977. # shared library versioning with .so extension only, which is used
  9978. # when both runtime linking and shared linking is enabled.
  9979. # Unfortunately, runtime linking may impact performance, so we do
  9980. # not want this to be the default eventually. Also, we use the
  9981. # versioned .so libs for executables only if there is the -brtl
  9982. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9983. # To allow for filename-based versioning support, we need to create
  9984. # libNAME.so.V as an archive file, containing:
  9985. # *) an Import File, referring to the versioned filename of the
  9986. # archive as well as the shared archive member, telling the
  9987. # bitwidth (32 or 64) of that shared object, and providing the
  9988. # list of exported symbols of that shared object, eventually
  9989. # decorated with the 'weak' keyword
  9990. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9991. # it being seen by the linker.
  9992. # At run time we better use the real file rather than another symlink,
  9993. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9994. case $with_aix_soname,$aix_use_runtimelinking in
  9995. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9996. # soname into executable. Probably we can add versioning support to
  9997. # collect2, so additional links can be useful in future.
  9998. aix,yes) # traditional libtool
  9999. dynamic_linker='AIX unversionable lib.so'
  10000. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10001. # instead of lib<name>.a to let people know that these are not
  10002. # typical AIX shared libraries.
  10003. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10004. ;;
  10005. aix,no) # traditional AIX only
  10006. dynamic_linker='AIX lib.a(lib.so.V)'
  10007. # We preserve .a as extension for shared libraries through AIX4.2
  10008. # and later when we are not doing run time linking.
  10009. library_names_spec='$libname$release.a $libname.a'
  10010. soname_spec='$libname$release$shared_ext$major'
  10011. ;;
  10012. svr4,*) # full svr4 only
  10013. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10014. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10015. # We do not specify a path in Import Files, so LIBPATH fires.
  10016. shlibpath_overrides_runpath=yes
  10017. ;;
  10018. *,yes) # both, prefer svr4
  10019. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10020. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10021. # unpreferred sharedlib libNAME.a needs extra handling
  10022. 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"'
  10023. 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"'
  10024. # We do not specify a path in Import Files, so LIBPATH fires.
  10025. shlibpath_overrides_runpath=yes
  10026. ;;
  10027. *,no) # both, prefer aix
  10028. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10029. library_names_spec='$libname$release.a $libname.a'
  10030. soname_spec='$libname$release$shared_ext$major'
  10031. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10032. 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)'
  10033. 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"'
  10034. ;;
  10035. esac
  10036. shlibpath_var=LIBPATH
  10037. fi
  10038. ;;
  10039. amigaos*)
  10040. case $host_cpu in
  10041. powerpc)
  10042. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10043. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10044. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10045. ;;
  10046. m68k)
  10047. library_names_spec='$libname.ixlibrary $libname.a'
  10048. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10049. 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'
  10050. ;;
  10051. esac
  10052. ;;
  10053. beos*)
  10054. library_names_spec='$libname$shared_ext'
  10055. dynamic_linker="$host_os ld.so"
  10056. shlibpath_var=LIBRARY_PATH
  10057. ;;
  10058. bsdi[45]*)
  10059. version_type=linux # correct to gnu/linux during the next big refactor
  10060. need_version=no
  10061. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10062. soname_spec='$libname$release$shared_ext$major'
  10063. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10064. shlibpath_var=LD_LIBRARY_PATH
  10065. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10066. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10067. # the default ld.so.conf also contains /usr/contrib/lib and
  10068. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10069. # libtool to hard-code these into programs
  10070. ;;
  10071. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10072. version_type=windows
  10073. shrext_cmds=.dll
  10074. need_version=no
  10075. need_lib_prefix=no
  10076. case $GCC,$cc_basename in
  10077. yes,*)
  10078. # gcc
  10079. library_names_spec='$libname.dll.a'
  10080. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10081. postinstall_cmds='base_file=`basename \$file`~
  10082. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10083. dldir=$destdir/`dirname \$dlpath`~
  10084. test -d \$dldir || mkdir -p \$dldir~
  10085. $install_prog $dir/$dlname \$dldir/$dlname~
  10086. chmod a+x \$dldir/$dlname~
  10087. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10088. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10089. fi'
  10090. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10091. dlpath=$dir/\$dldll~
  10092. $RM \$dlpath'
  10093. shlibpath_overrides_runpath=yes
  10094. case $host_os in
  10095. cygwin*)
  10096. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10097. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10098. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization.
  10099. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10100. ;;
  10101. mingw* | windows* | cegcc*)
  10102. # MinGW DLLs use traditional 'lib' prefix
  10103. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10104. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization.
  10105. ;;
  10106. pw32*)
  10107. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10108. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10109. ;;
  10110. esac
  10111. dynamic_linker='Win32 ld.exe'
  10112. ;;
  10113. *,cl* | *,icl*)
  10114. # Native MSVC or ICC
  10115. libname_spec='$name'
  10116. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10117. library_names_spec='$libname.dll.lib'
  10118. case $build_os in
  10119. mingw* | windows*)
  10120. sys_lib_search_path_spec=
  10121. lt_save_ifs=$IFS
  10122. IFS=';'
  10123. for lt_path in $LIB
  10124. do
  10125. IFS=$lt_save_ifs
  10126. # Let DOS variable expansion print the short 8.3 style file name.
  10127. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10128. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10129. done
  10130. IFS=$lt_save_ifs
  10131. # Convert to MSYS style.
  10132. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10133. ;;
  10134. cygwin*)
  10135. # Convert to unix form, then to dos form, then back to unix form
  10136. # but this time dos style (no spaces!) so that the unix form looks
  10137. # like /cygdrive/c/PROGRA~1:/cygdr...
  10138. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10139. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10140. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10141. ;;
  10142. *)
  10143. sys_lib_search_path_spec=$LIB
  10144. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10145. # It is most probably a Windows format PATH.
  10146. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10147. else
  10148. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10149. fi
  10150. # FIXME: find the short name or the path components, as spaces are
  10151. # common. (e.g. "Program Files" -> "PROGRA~1")
  10152. ;;
  10153. esac
  10154. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10155. postinstall_cmds='base_file=`basename \$file`~
  10156. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10157. dldir=$destdir/`dirname \$dlpath`~
  10158. test -d \$dldir || mkdir -p \$dldir~
  10159. $install_prog $dir/$dlname \$dldir/$dlname'
  10160. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10161. dlpath=$dir/\$dldll~
  10162. $RM \$dlpath'
  10163. shlibpath_overrides_runpath=yes
  10164. dynamic_linker='Win32 link.exe'
  10165. ;;
  10166. *)
  10167. # Assume MSVC and ICC wrapper
  10168. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10169. dynamic_linker='Win32 ld.exe'
  10170. ;;
  10171. esac
  10172. # FIXME: first we should search . and the directory the executable is in
  10173. shlibpath_var=PATH
  10174. ;;
  10175. darwin* | rhapsody*)
  10176. dynamic_linker="$host_os dyld"
  10177. version_type=darwin
  10178. need_lib_prefix=no
  10179. need_version=no
  10180. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10181. soname_spec='$libname$release$major$shared_ext'
  10182. shlibpath_overrides_runpath=yes
  10183. shlibpath_var=DYLD_LIBRARY_PATH
  10184. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10185. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10186. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10187. ;;
  10188. dgux*)
  10189. version_type=linux # correct to gnu/linux during the next big refactor
  10190. need_lib_prefix=no
  10191. need_version=no
  10192. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10193. soname_spec='$libname$release$shared_ext$major'
  10194. shlibpath_var=LD_LIBRARY_PATH
  10195. ;;
  10196. freebsd* | dragonfly* | midnightbsd*)
  10197. # DragonFly does not have aout. When/if they implement a new
  10198. # versioning mechanism, adjust this.
  10199. if test -x /usr/bin/objformat; then
  10200. objformat=`/usr/bin/objformat`
  10201. else
  10202. case $host_os in
  10203. freebsd[23].*) objformat=aout ;;
  10204. *) objformat=elf ;;
  10205. esac
  10206. fi
  10207. version_type=freebsd-$objformat
  10208. case $version_type in
  10209. freebsd-elf*)
  10210. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10211. soname_spec='$libname$release$shared_ext$major'
  10212. need_version=no
  10213. need_lib_prefix=no
  10214. ;;
  10215. freebsd-*)
  10216. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10217. need_version=yes
  10218. ;;
  10219. esac
  10220. shlibpath_var=LD_LIBRARY_PATH
  10221. case $host_os in
  10222. freebsd2.*)
  10223. shlibpath_overrides_runpath=yes
  10224. ;;
  10225. freebsd3.[01]* | freebsdelf3.[01]*)
  10226. shlibpath_overrides_runpath=yes
  10227. hardcode_into_libs=yes
  10228. ;;
  10229. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10230. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10231. shlibpath_overrides_runpath=no
  10232. hardcode_into_libs=yes
  10233. ;;
  10234. *) # from 4.6 on, and DragonFly
  10235. shlibpath_overrides_runpath=yes
  10236. hardcode_into_libs=yes
  10237. ;;
  10238. esac
  10239. ;;
  10240. haiku*)
  10241. version_type=linux # correct to gnu/linux during the next big refactor
  10242. need_lib_prefix=no
  10243. need_version=no
  10244. dynamic_linker="$host_os runtime_loader"
  10245. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10246. soname_spec='$libname$release$shared_ext$major'
  10247. shlibpath_var=LIBRARY_PATH
  10248. shlibpath_overrides_runpath=no
  10249. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10250. hardcode_into_libs=yes
  10251. ;;
  10252. hpux9* | hpux10* | hpux11*)
  10253. # Give a soname corresponding to the major version so that dld.sl refuses to
  10254. # link against other versions.
  10255. version_type=sunos
  10256. need_lib_prefix=no
  10257. need_version=no
  10258. case $host_cpu in
  10259. ia64*)
  10260. shrext_cmds='.so'
  10261. hardcode_into_libs=yes
  10262. dynamic_linker="$host_os dld.so"
  10263. shlibpath_var=LD_LIBRARY_PATH
  10264. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10265. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10266. soname_spec='$libname$release$shared_ext$major'
  10267. if test 32 = "$HPUX_IA64_MODE"; then
  10268. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10269. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10270. else
  10271. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10272. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10273. fi
  10274. ;;
  10275. hppa*64*)
  10276. shrext_cmds='.sl'
  10277. hardcode_into_libs=yes
  10278. dynamic_linker="$host_os dld.sl"
  10279. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10280. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10281. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10282. soname_spec='$libname$release$shared_ext$major'
  10283. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10284. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10285. ;;
  10286. *)
  10287. shrext_cmds='.sl'
  10288. dynamic_linker="$host_os dld.sl"
  10289. shlibpath_var=SHLIB_PATH
  10290. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10291. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10292. soname_spec='$libname$release$shared_ext$major'
  10293. ;;
  10294. esac
  10295. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10296. postinstall_cmds='chmod 555 $lib'
  10297. # or fails outright, so override atomically:
  10298. install_override_mode=555
  10299. ;;
  10300. interix[3-9]*)
  10301. version_type=linux # correct to gnu/linux during the next big refactor
  10302. need_lib_prefix=no
  10303. need_version=no
  10304. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10305. soname_spec='$libname$release$shared_ext$major'
  10306. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10307. shlibpath_var=LD_LIBRARY_PATH
  10308. shlibpath_overrides_runpath=no
  10309. hardcode_into_libs=yes
  10310. ;;
  10311. irix5* | irix6* | nonstopux*)
  10312. case $host_os in
  10313. nonstopux*) version_type=nonstopux ;;
  10314. *)
  10315. if test yes = "$lt_cv_prog_gnu_ld"; then
  10316. version_type=linux # correct to gnu/linux during the next big refactor
  10317. else
  10318. version_type=irix
  10319. fi ;;
  10320. esac
  10321. need_lib_prefix=no
  10322. need_version=no
  10323. soname_spec='$libname$release$shared_ext$major'
  10324. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10325. case $host_os in
  10326. irix5* | nonstopux*)
  10327. libsuff= shlibsuff=
  10328. ;;
  10329. *)
  10330. case $LD in # libtool.m4 will add one of these switches to LD
  10331. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10332. libsuff= shlibsuff= libmagic=32-bit;;
  10333. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10334. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10335. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10336. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10337. *) libsuff= shlibsuff= libmagic=never-match;;
  10338. esac
  10339. ;;
  10340. esac
  10341. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10342. shlibpath_overrides_runpath=no
  10343. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10344. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10345. hardcode_into_libs=yes
  10346. ;;
  10347. # No shared lib support for Linux oldld, aout, or coff.
  10348. linux*oldld* | linux*aout* | linux*coff*)
  10349. dynamic_linker=no
  10350. ;;
  10351. linux*android*)
  10352. version_type=none # Android doesn't support versioned libraries.
  10353. need_lib_prefix=no
  10354. need_version=no
  10355. library_names_spec='$libname$release$shared_ext'
  10356. soname_spec='$libname$release$shared_ext'
  10357. finish_cmds=
  10358. shlibpath_var=LD_LIBRARY_PATH
  10359. shlibpath_overrides_runpath=yes
  10360. # This implies no fast_install, which is unacceptable.
  10361. # Some rework will be needed to allow for fast_install
  10362. # before this can be enabled.
  10363. hardcode_into_libs=yes
  10364. dynamic_linker='Android linker'
  10365. # Don't embed -rpath directories since the linker doesn't support them.
  10366. hardcode_libdir_flag_spec='-L$libdir'
  10367. ;;
  10368. # This must be glibc/ELF.
  10369. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10370. version_type=linux # correct to gnu/linux during the next big refactor
  10371. need_lib_prefix=no
  10372. need_version=no
  10373. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10374. soname_spec='$libname$release$shared_ext$major'
  10375. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10376. shlibpath_var=LD_LIBRARY_PATH
  10377. shlibpath_overrides_runpath=no
  10378. # Some binutils ld are patched to set DT_RUNPATH
  10379. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10380. then :
  10381. printf %s "(cached) " >&6
  10382. else $as_nop
  10383. lt_cv_shlibpath_overrides_runpath=no
  10384. save_LDFLAGS=$LDFLAGS
  10385. save_libdir=$libdir
  10386. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10387. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10389. /* end confdefs.h. */
  10390. int
  10391. main (void)
  10392. {
  10393. ;
  10394. return 0;
  10395. }
  10396. _ACEOF
  10397. if ac_fn_c_try_link "$LINENO"
  10398. then :
  10399. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10400. then :
  10401. lt_cv_shlibpath_overrides_runpath=yes
  10402. fi
  10403. fi
  10404. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10405. conftest$ac_exeext conftest.$ac_ext
  10406. LDFLAGS=$save_LDFLAGS
  10407. libdir=$save_libdir
  10408. fi
  10409. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10410. # This implies no fast_install, which is unacceptable.
  10411. # Some rework will be needed to allow for fast_install
  10412. # before this can be enabled.
  10413. hardcode_into_libs=yes
  10414. # Add ABI-specific directories to the system library path.
  10415. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10416. # Ideally, we could use ldconfig to report *all* directores which are
  10417. # searched for libraries, however this is still not possible. Aside from not
  10418. # being certain /sbin/ldconfig is available, command
  10419. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10420. # even though it is searched at run-time. Try to do the best guess by
  10421. # appending ld.so.conf contents (and includes) to the search path.
  10422. if test -f /etc/ld.so.conf; then
  10423. 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' ' '`
  10424. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10425. fi
  10426. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10427. # powerpc, because MkLinux only supported shared libraries with the
  10428. # GNU dynamic linker. Since this was broken with cross compilers,
  10429. # most powerpc-linux boxes support dynamic linking these days and
  10430. # people can always --disable-shared, the test was removed, and we
  10431. # assume the GNU/Linux dynamic linker is in use.
  10432. dynamic_linker='GNU/Linux ld.so'
  10433. ;;
  10434. netbsd*)
  10435. version_type=sunos
  10436. need_lib_prefix=no
  10437. need_version=no
  10438. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10439. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10440. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10441. dynamic_linker='NetBSD (a.out) ld.so'
  10442. else
  10443. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10444. soname_spec='$libname$release$shared_ext$major'
  10445. dynamic_linker='NetBSD ld.elf_so'
  10446. fi
  10447. shlibpath_var=LD_LIBRARY_PATH
  10448. shlibpath_overrides_runpath=yes
  10449. hardcode_into_libs=yes
  10450. ;;
  10451. newsos6)
  10452. version_type=linux # correct to gnu/linux during the next big refactor
  10453. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10454. shlibpath_var=LD_LIBRARY_PATH
  10455. shlibpath_overrides_runpath=yes
  10456. ;;
  10457. *nto* | *qnx*)
  10458. version_type=qnx
  10459. need_lib_prefix=no
  10460. need_version=no
  10461. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10462. soname_spec='$libname$release$shared_ext$major'
  10463. shlibpath_var=LD_LIBRARY_PATH
  10464. shlibpath_overrides_runpath=no
  10465. hardcode_into_libs=yes
  10466. dynamic_linker='ldqnx.so'
  10467. ;;
  10468. openbsd* | bitrig*)
  10469. version_type=sunos
  10470. sys_lib_dlsearch_path_spec=/usr/lib
  10471. need_lib_prefix=no
  10472. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10473. need_version=no
  10474. else
  10475. need_version=yes
  10476. fi
  10477. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10478. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10479. shlibpath_var=LD_LIBRARY_PATH
  10480. shlibpath_overrides_runpath=yes
  10481. ;;
  10482. os2*)
  10483. libname_spec='$name'
  10484. shrext_cmds=.dll
  10485. need_lib_prefix=no
  10486. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10487. # SDL customization: removed versioning support.
  10488. # version_type=windows
  10489. # need_version=no
  10490. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10491. # v=$($ECHO $release$versuffix | tr -d .-);
  10492. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10493. # $ECHO $n$v`$shared_ext'
  10494. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10495. library_names_spec='${libname}_dll.$libext'
  10496. dynamic_linker='OS/2 ld.exe'
  10497. shlibpath_var=BEGINLIBPATH
  10498. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10499. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10500. postinstall_cmds='base_file=`basename \$file`~
  10501. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10502. dldir=$destdir/`dirname \$dlpath`~
  10503. test -d \$dldir || mkdir -p \$dldir~
  10504. $install_prog $dir/$dlname \$dldir/$dlname~
  10505. chmod a+x \$dldir/$dlname~
  10506. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10507. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10508. fi'
  10509. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10510. dlpath=$dir/\$dldll~
  10511. $RM \$dlpath'
  10512. ;;
  10513. osf3* | osf4* | osf5*)
  10514. version_type=osf
  10515. need_lib_prefix=no
  10516. need_version=no
  10517. soname_spec='$libname$release$shared_ext$major'
  10518. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10519. shlibpath_var=LD_LIBRARY_PATH
  10520. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10521. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10522. ;;
  10523. rdos*)
  10524. dynamic_linker=no
  10525. ;;
  10526. solaris*)
  10527. version_type=linux # correct to gnu/linux during the next big refactor
  10528. need_lib_prefix=no
  10529. need_version=no
  10530. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10531. soname_spec='$libname$release$shared_ext$major'
  10532. shlibpath_var=LD_LIBRARY_PATH
  10533. shlibpath_overrides_runpath=yes
  10534. hardcode_into_libs=yes
  10535. # ldd complains unless libraries are executable
  10536. postinstall_cmds='chmod +x $lib'
  10537. ;;
  10538. sunos4*)
  10539. version_type=sunos
  10540. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10541. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10542. shlibpath_var=LD_LIBRARY_PATH
  10543. shlibpath_overrides_runpath=yes
  10544. if test yes = "$with_gnu_ld"; then
  10545. need_lib_prefix=no
  10546. fi
  10547. need_version=yes
  10548. ;;
  10549. sysv4 | sysv4.3*)
  10550. version_type=linux # correct to gnu/linux during the next big refactor
  10551. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10552. soname_spec='$libname$release$shared_ext$major'
  10553. shlibpath_var=LD_LIBRARY_PATH
  10554. case $host_vendor in
  10555. sni)
  10556. shlibpath_overrides_runpath=no
  10557. need_lib_prefix=no
  10558. runpath_var=LD_RUN_PATH
  10559. ;;
  10560. siemens)
  10561. need_lib_prefix=no
  10562. ;;
  10563. motorola)
  10564. need_lib_prefix=no
  10565. need_version=no
  10566. shlibpath_overrides_runpath=no
  10567. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10568. ;;
  10569. esac
  10570. ;;
  10571. sysv4*MP*)
  10572. if test -d /usr/nec; then
  10573. version_type=linux # correct to gnu/linux during the next big refactor
  10574. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10575. soname_spec='$libname$shared_ext.$major'
  10576. shlibpath_var=LD_LIBRARY_PATH
  10577. fi
  10578. ;;
  10579. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10580. version_type=sco
  10581. need_lib_prefix=no
  10582. need_version=no
  10583. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10584. soname_spec='$libname$release$shared_ext$major'
  10585. shlibpath_var=LD_LIBRARY_PATH
  10586. shlibpath_overrides_runpath=yes
  10587. hardcode_into_libs=yes
  10588. if test yes = "$with_gnu_ld"; then
  10589. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10590. else
  10591. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10592. case $host_os in
  10593. sco3.2v5*)
  10594. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10595. ;;
  10596. esac
  10597. fi
  10598. sys_lib_dlsearch_path_spec='/usr/lib'
  10599. ;;
  10600. tpf*)
  10601. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10602. version_type=linux # correct to gnu/linux during the next big refactor
  10603. need_lib_prefix=no
  10604. need_version=no
  10605. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10606. shlibpath_var=LD_LIBRARY_PATH
  10607. shlibpath_overrides_runpath=no
  10608. hardcode_into_libs=yes
  10609. ;;
  10610. uts4*)
  10611. version_type=linux # correct to gnu/linux during the next big refactor
  10612. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10613. soname_spec='$libname$release$shared_ext$major'
  10614. shlibpath_var=LD_LIBRARY_PATH
  10615. ;;
  10616. *)
  10617. dynamic_linker=no
  10618. ;;
  10619. esac
  10620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10621. printf "%s\n" "$dynamic_linker" >&6; }
  10622. test no = "$dynamic_linker" && can_build_shared=no
  10623. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10624. if test yes = "$GCC"; then
  10625. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10626. fi
  10627. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10628. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10629. fi
  10630. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10631. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10632. fi
  10633. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10634. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10635. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10636. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10637. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10638. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10640. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10641. hardcode_action=
  10642. if test -n "$hardcode_libdir_flag_spec" ||
  10643. test -n "$runpath_var" ||
  10644. test yes = "$hardcode_automatic"; then
  10645. # We can hardcode non-existent directories.
  10646. if test no != "$hardcode_direct" &&
  10647. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10648. # have to relink, otherwise we might link with an installed library
  10649. # when we should be linking with a yet-to-be-installed one
  10650. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10651. test no != "$hardcode_minus_L"; then
  10652. # Linking always hardcodes the temporary library directory.
  10653. hardcode_action=relink
  10654. else
  10655. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10656. hardcode_action=immediate
  10657. fi
  10658. else
  10659. # We cannot hardcode anything, or else we can only hardcode existing
  10660. # directories.
  10661. hardcode_action=unsupported
  10662. fi
  10663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10664. printf "%s\n" "$hardcode_action" >&6; }
  10665. if test relink = "$hardcode_action" ||
  10666. test yes = "$inherit_rpath"; then
  10667. # Fast installation is not supported
  10668. enable_fast_install=no
  10669. elif test yes = "$shlibpath_overrides_runpath" ||
  10670. test no = "$enable_shared"; then
  10671. # Fast installation is not necessary
  10672. enable_fast_install=needless
  10673. fi
  10674. if test yes != "$enable_dlopen"; then
  10675. enable_dlopen=unknown
  10676. enable_dlopen_self=unknown
  10677. enable_dlopen_self_static=unknown
  10678. else
  10679. lt_cv_dlopen=no
  10680. lt_cv_dlopen_libs=
  10681. case $host_os in
  10682. beos*)
  10683. lt_cv_dlopen=load_add_on
  10684. lt_cv_dlopen_libs=
  10685. lt_cv_dlopen_self=yes
  10686. ;;
  10687. mingw* | windows* | pw32* | cegcc*)
  10688. lt_cv_dlopen=LoadLibrary
  10689. lt_cv_dlopen_libs=
  10690. ;;
  10691. cygwin*)
  10692. lt_cv_dlopen=dlopen
  10693. lt_cv_dlopen_libs=
  10694. ;;
  10695. darwin*)
  10696. # if libdl is installed we need to link against it
  10697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10698. printf %s "checking for dlopen in -ldl... " >&6; }
  10699. if test ${ac_cv_lib_dl_dlopen+y}
  10700. then :
  10701. printf %s "(cached) " >&6
  10702. else $as_nop
  10703. ac_check_lib_save_LIBS=$LIBS
  10704. LIBS="-ldl $LIBS"
  10705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10706. /* end confdefs.h. */
  10707. /* Override any GCC internal prototype to avoid an error.
  10708. Use char because int might match the return type of a GCC
  10709. builtin and then its argument prototype would still apply. */
  10710. char dlopen ();
  10711. int
  10712. main (void)
  10713. {
  10714. return dlopen ();
  10715. ;
  10716. return 0;
  10717. }
  10718. _ACEOF
  10719. if ac_fn_c_try_link "$LINENO"
  10720. then :
  10721. ac_cv_lib_dl_dlopen=yes
  10722. else $as_nop
  10723. ac_cv_lib_dl_dlopen=no
  10724. fi
  10725. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10726. conftest$ac_exeext conftest.$ac_ext
  10727. LIBS=$ac_check_lib_save_LIBS
  10728. fi
  10729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10730. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10731. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10732. then :
  10733. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10734. else $as_nop
  10735. lt_cv_dlopen=dyld
  10736. lt_cv_dlopen_libs=
  10737. lt_cv_dlopen_self=yes
  10738. fi
  10739. ;;
  10740. tpf*)
  10741. # Don't try to run any link tests for TPF. We know it's impossible
  10742. # because TPF is a cross-compiler, and we know how we open DSOs.
  10743. lt_cv_dlopen=dlopen
  10744. lt_cv_dlopen_libs=
  10745. lt_cv_dlopen_self=no
  10746. ;;
  10747. *)
  10748. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10749. if test "x$ac_cv_func_shl_load" = xyes
  10750. then :
  10751. lt_cv_dlopen=shl_load
  10752. else $as_nop
  10753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10754. printf %s "checking for shl_load in -ldld... " >&6; }
  10755. if test ${ac_cv_lib_dld_shl_load+y}
  10756. then :
  10757. printf %s "(cached) " >&6
  10758. else $as_nop
  10759. ac_check_lib_save_LIBS=$LIBS
  10760. LIBS="-ldld $LIBS"
  10761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10762. /* end confdefs.h. */
  10763. /* Override any GCC internal prototype to avoid an error.
  10764. Use char because int might match the return type of a GCC
  10765. builtin and then its argument prototype would still apply. */
  10766. char shl_load ();
  10767. int
  10768. main (void)
  10769. {
  10770. return shl_load ();
  10771. ;
  10772. return 0;
  10773. }
  10774. _ACEOF
  10775. if ac_fn_c_try_link "$LINENO"
  10776. then :
  10777. ac_cv_lib_dld_shl_load=yes
  10778. else $as_nop
  10779. ac_cv_lib_dld_shl_load=no
  10780. fi
  10781. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10782. conftest$ac_exeext conftest.$ac_ext
  10783. LIBS=$ac_check_lib_save_LIBS
  10784. fi
  10785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10786. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10787. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10788. then :
  10789. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10790. else $as_nop
  10791. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10792. if test "x$ac_cv_func_dlopen" = xyes
  10793. then :
  10794. lt_cv_dlopen=dlopen
  10795. else $as_nop
  10796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10797. printf %s "checking for dlopen in -ldl... " >&6; }
  10798. if test ${ac_cv_lib_dl_dlopen+y}
  10799. then :
  10800. printf %s "(cached) " >&6
  10801. else $as_nop
  10802. ac_check_lib_save_LIBS=$LIBS
  10803. LIBS="-ldl $LIBS"
  10804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10805. /* end confdefs.h. */
  10806. /* Override any GCC internal prototype to avoid an error.
  10807. Use char because int might match the return type of a GCC
  10808. builtin and then its argument prototype would still apply. */
  10809. char dlopen ();
  10810. int
  10811. main (void)
  10812. {
  10813. return dlopen ();
  10814. ;
  10815. return 0;
  10816. }
  10817. _ACEOF
  10818. if ac_fn_c_try_link "$LINENO"
  10819. then :
  10820. ac_cv_lib_dl_dlopen=yes
  10821. else $as_nop
  10822. ac_cv_lib_dl_dlopen=no
  10823. fi
  10824. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10825. conftest$ac_exeext conftest.$ac_ext
  10826. LIBS=$ac_check_lib_save_LIBS
  10827. fi
  10828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10829. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10830. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10831. then :
  10832. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10833. else $as_nop
  10834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10835. printf %s "checking for dlopen in -lsvld... " >&6; }
  10836. if test ${ac_cv_lib_svld_dlopen+y}
  10837. then :
  10838. printf %s "(cached) " >&6
  10839. else $as_nop
  10840. ac_check_lib_save_LIBS=$LIBS
  10841. LIBS="-lsvld $LIBS"
  10842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10843. /* end confdefs.h. */
  10844. /* Override any GCC internal prototype to avoid an error.
  10845. Use char because int might match the return type of a GCC
  10846. builtin and then its argument prototype would still apply. */
  10847. char dlopen ();
  10848. int
  10849. main (void)
  10850. {
  10851. return dlopen ();
  10852. ;
  10853. return 0;
  10854. }
  10855. _ACEOF
  10856. if ac_fn_c_try_link "$LINENO"
  10857. then :
  10858. ac_cv_lib_svld_dlopen=yes
  10859. else $as_nop
  10860. ac_cv_lib_svld_dlopen=no
  10861. fi
  10862. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10863. conftest$ac_exeext conftest.$ac_ext
  10864. LIBS=$ac_check_lib_save_LIBS
  10865. fi
  10866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10867. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10868. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10869. then :
  10870. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10871. else $as_nop
  10872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10873. printf %s "checking for dld_link in -ldld... " >&6; }
  10874. if test ${ac_cv_lib_dld_dld_link+y}
  10875. then :
  10876. printf %s "(cached) " >&6
  10877. else $as_nop
  10878. ac_check_lib_save_LIBS=$LIBS
  10879. LIBS="-ldld $LIBS"
  10880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10881. /* end confdefs.h. */
  10882. /* Override any GCC internal prototype to avoid an error.
  10883. Use char because int might match the return type of a GCC
  10884. builtin and then its argument prototype would still apply. */
  10885. char dld_link ();
  10886. int
  10887. main (void)
  10888. {
  10889. return dld_link ();
  10890. ;
  10891. return 0;
  10892. }
  10893. _ACEOF
  10894. if ac_fn_c_try_link "$LINENO"
  10895. then :
  10896. ac_cv_lib_dld_dld_link=yes
  10897. else $as_nop
  10898. ac_cv_lib_dld_dld_link=no
  10899. fi
  10900. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10901. conftest$ac_exeext conftest.$ac_ext
  10902. LIBS=$ac_check_lib_save_LIBS
  10903. fi
  10904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10905. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10906. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10907. then :
  10908. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10909. fi
  10910. fi
  10911. fi
  10912. fi
  10913. fi
  10914. fi
  10915. ;;
  10916. esac
  10917. if test no = "$lt_cv_dlopen"; then
  10918. enable_dlopen=no
  10919. else
  10920. enable_dlopen=yes
  10921. fi
  10922. case $lt_cv_dlopen in
  10923. dlopen)
  10924. save_CPPFLAGS=$CPPFLAGS
  10925. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10926. save_LDFLAGS=$LDFLAGS
  10927. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10928. save_LIBS=$LIBS
  10929. LIBS="$lt_cv_dlopen_libs $LIBS"
  10930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10931. printf %s "checking whether a program can dlopen itself... " >&6; }
  10932. if test ${lt_cv_dlopen_self+y}
  10933. then :
  10934. printf %s "(cached) " >&6
  10935. else $as_nop
  10936. if test yes = "$cross_compiling"; then :
  10937. lt_cv_dlopen_self=cross
  10938. else
  10939. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10940. lt_status=$lt_dlunknown
  10941. cat > conftest.$ac_ext <<_LT_EOF
  10942. #line $LINENO "configure"
  10943. #include "confdefs.h"
  10944. #if HAVE_DLFCN_H
  10945. #include <dlfcn.h>
  10946. #endif
  10947. #include <stdio.h>
  10948. #ifdef RTLD_GLOBAL
  10949. # define LT_DLGLOBAL RTLD_GLOBAL
  10950. #else
  10951. # ifdef DL_GLOBAL
  10952. # define LT_DLGLOBAL DL_GLOBAL
  10953. # else
  10954. # define LT_DLGLOBAL 0
  10955. # endif
  10956. #endif
  10957. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10958. find out it does not work in some platform. */
  10959. #ifndef LT_DLLAZY_OR_NOW
  10960. # ifdef RTLD_LAZY
  10961. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10962. # else
  10963. # ifdef DL_LAZY
  10964. # define LT_DLLAZY_OR_NOW DL_LAZY
  10965. # else
  10966. # ifdef RTLD_NOW
  10967. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10968. # else
  10969. # ifdef DL_NOW
  10970. # define LT_DLLAZY_OR_NOW DL_NOW
  10971. # else
  10972. # define LT_DLLAZY_OR_NOW 0
  10973. # endif
  10974. # endif
  10975. # endif
  10976. # endif
  10977. #endif
  10978. /* When -fvisibility=hidden is used, assume the code has been annotated
  10979. correspondingly for the symbols needed. */
  10980. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10981. int fnord (void) __attribute__((visibility("default")));
  10982. #endif
  10983. int fnord (void) { return 42; }
  10984. int main (void)
  10985. {
  10986. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10987. int status = $lt_dlunknown;
  10988. if (self)
  10989. {
  10990. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10991. else
  10992. {
  10993. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10994. else puts (dlerror ());
  10995. }
  10996. /* dlclose (self); */
  10997. }
  10998. else
  10999. puts (dlerror ());
  11000. return status;
  11001. }
  11002. _LT_EOF
  11003. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11004. (eval $ac_link) 2>&5
  11005. ac_status=$?
  11006. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11007. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11008. (./conftest; exit; ) >&5 2>/dev/null
  11009. lt_status=$?
  11010. case x$lt_status in
  11011. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11012. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11013. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11014. esac
  11015. else :
  11016. # compilation failed
  11017. lt_cv_dlopen_self=no
  11018. fi
  11019. fi
  11020. rm -fr conftest*
  11021. fi
  11022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11023. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11024. if test yes = "$lt_cv_dlopen_self"; then
  11025. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11027. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11028. if test ${lt_cv_dlopen_self_static+y}
  11029. then :
  11030. printf %s "(cached) " >&6
  11031. else $as_nop
  11032. if test yes = "$cross_compiling"; then :
  11033. lt_cv_dlopen_self_static=cross
  11034. else
  11035. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11036. lt_status=$lt_dlunknown
  11037. cat > conftest.$ac_ext <<_LT_EOF
  11038. #line $LINENO "configure"
  11039. #include "confdefs.h"
  11040. #if HAVE_DLFCN_H
  11041. #include <dlfcn.h>
  11042. #endif
  11043. #include <stdio.h>
  11044. #ifdef RTLD_GLOBAL
  11045. # define LT_DLGLOBAL RTLD_GLOBAL
  11046. #else
  11047. # ifdef DL_GLOBAL
  11048. # define LT_DLGLOBAL DL_GLOBAL
  11049. # else
  11050. # define LT_DLGLOBAL 0
  11051. # endif
  11052. #endif
  11053. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11054. find out it does not work in some platform. */
  11055. #ifndef LT_DLLAZY_OR_NOW
  11056. # ifdef RTLD_LAZY
  11057. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11058. # else
  11059. # ifdef DL_LAZY
  11060. # define LT_DLLAZY_OR_NOW DL_LAZY
  11061. # else
  11062. # ifdef RTLD_NOW
  11063. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11064. # else
  11065. # ifdef DL_NOW
  11066. # define LT_DLLAZY_OR_NOW DL_NOW
  11067. # else
  11068. # define LT_DLLAZY_OR_NOW 0
  11069. # endif
  11070. # endif
  11071. # endif
  11072. # endif
  11073. #endif
  11074. /* When -fvisibility=hidden is used, assume the code has been annotated
  11075. correspondingly for the symbols needed. */
  11076. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11077. int fnord (void) __attribute__((visibility("default")));
  11078. #endif
  11079. int fnord (void) { return 42; }
  11080. int main (void)
  11081. {
  11082. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11083. int status = $lt_dlunknown;
  11084. if (self)
  11085. {
  11086. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11087. else
  11088. {
  11089. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11090. else puts (dlerror ());
  11091. }
  11092. /* dlclose (self); */
  11093. }
  11094. else
  11095. puts (dlerror ());
  11096. return status;
  11097. }
  11098. _LT_EOF
  11099. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11100. (eval $ac_link) 2>&5
  11101. ac_status=$?
  11102. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11103. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11104. (./conftest; exit; ) >&5 2>/dev/null
  11105. lt_status=$?
  11106. case x$lt_status in
  11107. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11108. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11109. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11110. esac
  11111. else :
  11112. # compilation failed
  11113. lt_cv_dlopen_self_static=no
  11114. fi
  11115. fi
  11116. rm -fr conftest*
  11117. fi
  11118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11119. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11120. fi
  11121. CPPFLAGS=$save_CPPFLAGS
  11122. LDFLAGS=$save_LDFLAGS
  11123. LIBS=$save_LIBS
  11124. ;;
  11125. esac
  11126. case $lt_cv_dlopen_self in
  11127. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11128. *) enable_dlopen_self=unknown ;;
  11129. esac
  11130. case $lt_cv_dlopen_self_static in
  11131. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11132. *) enable_dlopen_self_static=unknown ;;
  11133. esac
  11134. fi
  11135. striplib=
  11136. old_striplib=
  11137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11138. printf %s "checking whether stripping libraries is possible... " >&6; }
  11139. if test -z "$STRIP"; then
  11140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11141. printf "%s\n" "no" >&6; }
  11142. else
  11143. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11144. old_striplib="$STRIP --strip-debug"
  11145. striplib="$STRIP --strip-unneeded"
  11146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11147. printf "%s\n" "yes" >&6; }
  11148. else
  11149. case $host_os in
  11150. darwin*)
  11151. # FIXME - insert some real tests, host_os isn't really good enough
  11152. striplib="$STRIP -x"
  11153. old_striplib="$STRIP -S"
  11154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11155. printf "%s\n" "yes" >&6; }
  11156. ;;
  11157. freebsd*)
  11158. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11159. old_striplib="$STRIP --strip-debug"
  11160. striplib="$STRIP --strip-unneeded"
  11161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11162. printf "%s\n" "yes" >&6; }
  11163. else
  11164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11165. printf "%s\n" "no" >&6; }
  11166. fi
  11167. ;;
  11168. *)
  11169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11170. printf "%s\n" "no" >&6; }
  11171. ;;
  11172. esac
  11173. fi
  11174. fi
  11175. # Report what library types will actually be built
  11176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11177. printf %s "checking if libtool supports shared libraries... " >&6; }
  11178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11179. printf "%s\n" "$can_build_shared" >&6; }
  11180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11181. printf %s "checking whether to build shared libraries... " >&6; }
  11182. test no = "$can_build_shared" && enable_shared=no
  11183. # On AIX, shared libraries and static libraries use the same namespace, and
  11184. # are all built from PIC.
  11185. case $host_os in
  11186. aix3*)
  11187. test yes = "$enable_shared" && enable_static=no
  11188. if test -n "$RANLIB"; then
  11189. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11190. postinstall_cmds='$RANLIB $lib'
  11191. fi
  11192. ;;
  11193. aix[4-9]*)
  11194. if test ia64 != "$host_cpu"; then
  11195. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11196. yes,aix,yes) ;; # shared object as lib.so file only
  11197. yes,svr4,*) ;; # shared object as lib.so archive member only
  11198. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11199. esac
  11200. fi
  11201. ;;
  11202. esac
  11203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11204. printf "%s\n" "$enable_shared" >&6; }
  11205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11206. printf %s "checking whether to build static libraries... " >&6; }
  11207. # Make sure either enable_shared or enable_static is yes.
  11208. test yes = "$enable_shared" || enable_static=yes
  11209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11210. printf "%s\n" "$enable_static" >&6; }
  11211. fi
  11212. ac_ext=c
  11213. ac_cpp='$CPP $CPPFLAGS'
  11214. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11215. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11216. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11217. CC=$lt_save_CC
  11218. ac_config_commands="$ac_config_commands libtool"
  11219. # Only expand once:
  11220. if test -n "$ac_tool_prefix"; then
  11221. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11222. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11224. printf %s "checking for $ac_word... " >&6; }
  11225. if test ${ac_cv_prog_RC+y}
  11226. then :
  11227. printf %s "(cached) " >&6
  11228. else $as_nop
  11229. if test -n "$RC"; then
  11230. ac_cv_prog_RC="$RC" # Let the user override the test.
  11231. else
  11232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11233. for as_dir in $PATH
  11234. do
  11235. IFS=$as_save_IFS
  11236. case $as_dir in #(((
  11237. '') as_dir=./ ;;
  11238. */) ;;
  11239. *) as_dir=$as_dir/ ;;
  11240. esac
  11241. for ac_exec_ext in '' $ac_executable_extensions; do
  11242. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11243. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11244. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11245. break 2
  11246. fi
  11247. done
  11248. done
  11249. IFS=$as_save_IFS
  11250. fi
  11251. fi
  11252. RC=$ac_cv_prog_RC
  11253. if test -n "$RC"; then
  11254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11255. printf "%s\n" "$RC" >&6; }
  11256. else
  11257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11258. printf "%s\n" "no" >&6; }
  11259. fi
  11260. fi
  11261. if test -z "$ac_cv_prog_RC"; then
  11262. ac_ct_RC=$RC
  11263. # Extract the first word of "windres", so it can be a program name with args.
  11264. set dummy windres; ac_word=$2
  11265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11266. printf %s "checking for $ac_word... " >&6; }
  11267. if test ${ac_cv_prog_ac_ct_RC+y}
  11268. then :
  11269. printf %s "(cached) " >&6
  11270. else $as_nop
  11271. if test -n "$ac_ct_RC"; then
  11272. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11273. else
  11274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11275. for as_dir in $PATH
  11276. do
  11277. IFS=$as_save_IFS
  11278. case $as_dir in #(((
  11279. '') as_dir=./ ;;
  11280. */) ;;
  11281. *) as_dir=$as_dir/ ;;
  11282. esac
  11283. for ac_exec_ext in '' $ac_executable_extensions; do
  11284. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11285. ac_cv_prog_ac_ct_RC="windres"
  11286. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11287. break 2
  11288. fi
  11289. done
  11290. done
  11291. IFS=$as_save_IFS
  11292. fi
  11293. fi
  11294. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11295. if test -n "$ac_ct_RC"; then
  11296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11297. printf "%s\n" "$ac_ct_RC" >&6; }
  11298. else
  11299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11300. printf "%s\n" "no" >&6; }
  11301. fi
  11302. if test "x$ac_ct_RC" = x; then
  11303. RC=""
  11304. else
  11305. case $cross_compiling:$ac_tool_warned in
  11306. yes:)
  11307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11308. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11309. ac_tool_warned=yes ;;
  11310. esac
  11311. RC=$ac_ct_RC
  11312. fi
  11313. else
  11314. RC="$ac_cv_prog_RC"
  11315. fi
  11316. # Source file extension for RC test sources.
  11317. ac_ext=rc
  11318. # Object file extension for compiled RC test sources.
  11319. objext=o
  11320. objext_RC=$objext
  11321. # Code to be used in simple compile tests
  11322. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11323. # Code to be used in simple link tests
  11324. lt_simple_link_test_code=$lt_simple_compile_test_code
  11325. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11326. # If no C compiler was specified, use CC.
  11327. LTCC=${LTCC-"$CC"}
  11328. # If no C compiler flags were specified, use CFLAGS.
  11329. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11330. # Allow CC to be a program name with arguments.
  11331. compiler=$CC
  11332. # save warnings/boilerplate of simple test code
  11333. ac_outfile=conftest.$ac_objext
  11334. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11335. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11336. _lt_compiler_boilerplate=`cat conftest.err`
  11337. $RM conftest*
  11338. ac_outfile=conftest.$ac_objext
  11339. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11340. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11341. _lt_linker_boilerplate=`cat conftest.err`
  11342. $RM -r conftest*
  11343. # Allow CC to be a program name with arguments.
  11344. lt_save_CC=$CC
  11345. lt_save_CFLAGS=$CFLAGS
  11346. lt_save_GCC=$GCC
  11347. GCC=
  11348. CC=${RC-"windres"}
  11349. CFLAGS=
  11350. compiler=$CC
  11351. compiler_RC=$CC
  11352. func_cc_basename $compiler
  11353. cc_basename=$func_cc_basename_result
  11354. lt_cv_prog_compiler_c_o_RC=yes
  11355. if test -n "$compiler"; then
  11356. :
  11357. fi
  11358. GCC=$lt_save_GCC
  11359. ac_ext=c
  11360. ac_cpp='$CPP $CPPFLAGS'
  11361. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11362. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11363. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11364. CC=$lt_save_CC
  11365. CFLAGS=$lt_save_CFLAGS
  11366. # For historical reasons, the library name redundantly includes the major
  11367. # version twice: libSDL2-2.0.so.0.
  11368. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11369. LT_RELEASE=2.0
  11370. # Increment this if there is an incompatible change - but if that happens,
  11371. # we should rename the library from SDL2 to SDL3, at which point this would
  11372. # reset to 0 anyway.
  11373. LT_MAJOR=0
  11374. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11375. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11376. LT_REVISION=$SDL_INTERFACE_AGE
  11377. for ac_prog in gawk mawk nawk awk
  11378. do
  11379. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11380. set dummy $ac_prog; ac_word=$2
  11381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11382. printf %s "checking for $ac_word... " >&6; }
  11383. if test ${ac_cv_prog_AWK+y}
  11384. then :
  11385. printf %s "(cached) " >&6
  11386. else $as_nop
  11387. if test -n "$AWK"; then
  11388. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11389. else
  11390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11391. for as_dir in $PATH
  11392. do
  11393. IFS=$as_save_IFS
  11394. case $as_dir in #(((
  11395. '') as_dir=./ ;;
  11396. */) ;;
  11397. *) as_dir=$as_dir/ ;;
  11398. esac
  11399. for ac_exec_ext in '' $ac_executable_extensions; do
  11400. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11401. ac_cv_prog_AWK="$ac_prog"
  11402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11403. break 2
  11404. fi
  11405. done
  11406. done
  11407. IFS=$as_save_IFS
  11408. fi
  11409. fi
  11410. AWK=$ac_cv_prog_AWK
  11411. if test -n "$AWK"; then
  11412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11413. printf "%s\n" "$AWK" >&6; }
  11414. else
  11415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11416. printf "%s\n" "no" >&6; }
  11417. fi
  11418. test -n "$AWK" && break
  11419. done
  11420. ac_ext=c
  11421. ac_cpp='$CPP $CPPFLAGS'
  11422. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11423. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11424. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11425. if test -n "$ac_tool_prefix"; then
  11426. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11427. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11429. printf %s "checking for $ac_word... " >&6; }
  11430. if test ${ac_cv_prog_CC+y}
  11431. then :
  11432. printf %s "(cached) " >&6
  11433. else $as_nop
  11434. if test -n "$CC"; then
  11435. ac_cv_prog_CC="$CC" # Let the user override the test.
  11436. else
  11437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11438. for as_dir in $PATH
  11439. do
  11440. IFS=$as_save_IFS
  11441. case $as_dir in #(((
  11442. '') as_dir=./ ;;
  11443. */) ;;
  11444. *) as_dir=$as_dir/ ;;
  11445. esac
  11446. for ac_exec_ext in '' $ac_executable_extensions; do
  11447. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11448. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11449. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11450. break 2
  11451. fi
  11452. done
  11453. done
  11454. IFS=$as_save_IFS
  11455. fi
  11456. fi
  11457. CC=$ac_cv_prog_CC
  11458. if test -n "$CC"; then
  11459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11460. printf "%s\n" "$CC" >&6; }
  11461. else
  11462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11463. printf "%s\n" "no" >&6; }
  11464. fi
  11465. fi
  11466. if test -z "$ac_cv_prog_CC"; then
  11467. ac_ct_CC=$CC
  11468. # Extract the first word of "gcc", so it can be a program name with args.
  11469. set dummy gcc; ac_word=$2
  11470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11471. printf %s "checking for $ac_word... " >&6; }
  11472. if test ${ac_cv_prog_ac_ct_CC+y}
  11473. then :
  11474. printf %s "(cached) " >&6
  11475. else $as_nop
  11476. if test -n "$ac_ct_CC"; then
  11477. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11478. else
  11479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11480. for as_dir in $PATH
  11481. do
  11482. IFS=$as_save_IFS
  11483. case $as_dir in #(((
  11484. '') as_dir=./ ;;
  11485. */) ;;
  11486. *) as_dir=$as_dir/ ;;
  11487. esac
  11488. for ac_exec_ext in '' $ac_executable_extensions; do
  11489. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11490. ac_cv_prog_ac_ct_CC="gcc"
  11491. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11492. break 2
  11493. fi
  11494. done
  11495. done
  11496. IFS=$as_save_IFS
  11497. fi
  11498. fi
  11499. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11500. if test -n "$ac_ct_CC"; then
  11501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11502. printf "%s\n" "$ac_ct_CC" >&6; }
  11503. else
  11504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11505. printf "%s\n" "no" >&6; }
  11506. fi
  11507. if test "x$ac_ct_CC" = x; then
  11508. CC=""
  11509. else
  11510. case $cross_compiling:$ac_tool_warned in
  11511. yes:)
  11512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11513. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11514. ac_tool_warned=yes ;;
  11515. esac
  11516. CC=$ac_ct_CC
  11517. fi
  11518. else
  11519. CC="$ac_cv_prog_CC"
  11520. fi
  11521. if test -z "$CC"; then
  11522. if test -n "$ac_tool_prefix"; then
  11523. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11524. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11526. printf %s "checking for $ac_word... " >&6; }
  11527. if test ${ac_cv_prog_CC+y}
  11528. then :
  11529. printf %s "(cached) " >&6
  11530. else $as_nop
  11531. if test -n "$CC"; then
  11532. ac_cv_prog_CC="$CC" # Let the user override the test.
  11533. else
  11534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11535. for as_dir in $PATH
  11536. do
  11537. IFS=$as_save_IFS
  11538. case $as_dir in #(((
  11539. '') as_dir=./ ;;
  11540. */) ;;
  11541. *) as_dir=$as_dir/ ;;
  11542. esac
  11543. for ac_exec_ext in '' $ac_executable_extensions; do
  11544. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11545. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11547. break 2
  11548. fi
  11549. done
  11550. done
  11551. IFS=$as_save_IFS
  11552. fi
  11553. fi
  11554. CC=$ac_cv_prog_CC
  11555. if test -n "$CC"; then
  11556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11557. printf "%s\n" "$CC" >&6; }
  11558. else
  11559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11560. printf "%s\n" "no" >&6; }
  11561. fi
  11562. fi
  11563. fi
  11564. if test -z "$CC"; then
  11565. # Extract the first word of "cc", so it can be a program name with args.
  11566. set dummy cc; ac_word=$2
  11567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11568. printf %s "checking for $ac_word... " >&6; }
  11569. if test ${ac_cv_prog_CC+y}
  11570. then :
  11571. printf %s "(cached) " >&6
  11572. else $as_nop
  11573. if test -n "$CC"; then
  11574. ac_cv_prog_CC="$CC" # Let the user override the test.
  11575. else
  11576. ac_prog_rejected=no
  11577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11578. for as_dir in $PATH
  11579. do
  11580. IFS=$as_save_IFS
  11581. case $as_dir in #(((
  11582. '') as_dir=./ ;;
  11583. */) ;;
  11584. *) as_dir=$as_dir/ ;;
  11585. esac
  11586. for ac_exec_ext in '' $ac_executable_extensions; do
  11587. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11588. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11589. ac_prog_rejected=yes
  11590. continue
  11591. fi
  11592. ac_cv_prog_CC="cc"
  11593. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11594. break 2
  11595. fi
  11596. done
  11597. done
  11598. IFS=$as_save_IFS
  11599. if test $ac_prog_rejected = yes; then
  11600. # We found a bogon in the path, so make sure we never use it.
  11601. set dummy $ac_cv_prog_CC
  11602. shift
  11603. if test $# != 0; then
  11604. # We chose a different compiler from the bogus one.
  11605. # However, it has the same basename, so the bogon will be chosen
  11606. # first if we set CC to just the basename; use the full file name.
  11607. shift
  11608. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11609. fi
  11610. fi
  11611. fi
  11612. fi
  11613. CC=$ac_cv_prog_CC
  11614. if test -n "$CC"; then
  11615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11616. printf "%s\n" "$CC" >&6; }
  11617. else
  11618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11619. printf "%s\n" "no" >&6; }
  11620. fi
  11621. fi
  11622. if test -z "$CC"; then
  11623. if test -n "$ac_tool_prefix"; then
  11624. for ac_prog in cl.exe
  11625. do
  11626. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11627. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11629. printf %s "checking for $ac_word... " >&6; }
  11630. if test ${ac_cv_prog_CC+y}
  11631. then :
  11632. printf %s "(cached) " >&6
  11633. else $as_nop
  11634. if test -n "$CC"; then
  11635. ac_cv_prog_CC="$CC" # Let the user override the test.
  11636. else
  11637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11638. for as_dir in $PATH
  11639. do
  11640. IFS=$as_save_IFS
  11641. case $as_dir in #(((
  11642. '') as_dir=./ ;;
  11643. */) ;;
  11644. *) as_dir=$as_dir/ ;;
  11645. esac
  11646. for ac_exec_ext in '' $ac_executable_extensions; do
  11647. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11648. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11649. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11650. break 2
  11651. fi
  11652. done
  11653. done
  11654. IFS=$as_save_IFS
  11655. fi
  11656. fi
  11657. CC=$ac_cv_prog_CC
  11658. if test -n "$CC"; then
  11659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11660. printf "%s\n" "$CC" >&6; }
  11661. else
  11662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11663. printf "%s\n" "no" >&6; }
  11664. fi
  11665. test -n "$CC" && break
  11666. done
  11667. fi
  11668. if test -z "$CC"; then
  11669. ac_ct_CC=$CC
  11670. for ac_prog in cl.exe
  11671. do
  11672. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11673. set dummy $ac_prog; ac_word=$2
  11674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11675. printf %s "checking for $ac_word... " >&6; }
  11676. if test ${ac_cv_prog_ac_ct_CC+y}
  11677. then :
  11678. printf %s "(cached) " >&6
  11679. else $as_nop
  11680. if test -n "$ac_ct_CC"; then
  11681. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11682. else
  11683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11684. for as_dir in $PATH
  11685. do
  11686. IFS=$as_save_IFS
  11687. case $as_dir in #(((
  11688. '') as_dir=./ ;;
  11689. */) ;;
  11690. *) as_dir=$as_dir/ ;;
  11691. esac
  11692. for ac_exec_ext in '' $ac_executable_extensions; do
  11693. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11694. ac_cv_prog_ac_ct_CC="$ac_prog"
  11695. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11696. break 2
  11697. fi
  11698. done
  11699. done
  11700. IFS=$as_save_IFS
  11701. fi
  11702. fi
  11703. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11704. if test -n "$ac_ct_CC"; then
  11705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11706. printf "%s\n" "$ac_ct_CC" >&6; }
  11707. else
  11708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11709. printf "%s\n" "no" >&6; }
  11710. fi
  11711. test -n "$ac_ct_CC" && break
  11712. done
  11713. if test "x$ac_ct_CC" = x; then
  11714. CC=""
  11715. else
  11716. case $cross_compiling:$ac_tool_warned in
  11717. yes:)
  11718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11719. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11720. ac_tool_warned=yes ;;
  11721. esac
  11722. CC=$ac_ct_CC
  11723. fi
  11724. fi
  11725. fi
  11726. if test -z "$CC"; then
  11727. if test -n "$ac_tool_prefix"; then
  11728. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11729. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11731. printf %s "checking for $ac_word... " >&6; }
  11732. if test ${ac_cv_prog_CC+y}
  11733. then :
  11734. printf %s "(cached) " >&6
  11735. else $as_nop
  11736. if test -n "$CC"; then
  11737. ac_cv_prog_CC="$CC" # Let the user override the test.
  11738. else
  11739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11740. for as_dir in $PATH
  11741. do
  11742. IFS=$as_save_IFS
  11743. case $as_dir in #(((
  11744. '') as_dir=./ ;;
  11745. */) ;;
  11746. *) as_dir=$as_dir/ ;;
  11747. esac
  11748. for ac_exec_ext in '' $ac_executable_extensions; do
  11749. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11750. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11751. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11752. break 2
  11753. fi
  11754. done
  11755. done
  11756. IFS=$as_save_IFS
  11757. fi
  11758. fi
  11759. CC=$ac_cv_prog_CC
  11760. if test -n "$CC"; then
  11761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11762. printf "%s\n" "$CC" >&6; }
  11763. else
  11764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11765. printf "%s\n" "no" >&6; }
  11766. fi
  11767. fi
  11768. if test -z "$ac_cv_prog_CC"; then
  11769. ac_ct_CC=$CC
  11770. # Extract the first word of "clang", so it can be a program name with args.
  11771. set dummy clang; ac_word=$2
  11772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11773. printf %s "checking for $ac_word... " >&6; }
  11774. if test ${ac_cv_prog_ac_ct_CC+y}
  11775. then :
  11776. printf %s "(cached) " >&6
  11777. else $as_nop
  11778. if test -n "$ac_ct_CC"; then
  11779. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11780. else
  11781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11782. for as_dir in $PATH
  11783. do
  11784. IFS=$as_save_IFS
  11785. case $as_dir in #(((
  11786. '') as_dir=./ ;;
  11787. */) ;;
  11788. *) as_dir=$as_dir/ ;;
  11789. esac
  11790. for ac_exec_ext in '' $ac_executable_extensions; do
  11791. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11792. ac_cv_prog_ac_ct_CC="clang"
  11793. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11794. break 2
  11795. fi
  11796. done
  11797. done
  11798. IFS=$as_save_IFS
  11799. fi
  11800. fi
  11801. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11802. if test -n "$ac_ct_CC"; then
  11803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11804. printf "%s\n" "$ac_ct_CC" >&6; }
  11805. else
  11806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11807. printf "%s\n" "no" >&6; }
  11808. fi
  11809. if test "x$ac_ct_CC" = x; then
  11810. CC=""
  11811. else
  11812. case $cross_compiling:$ac_tool_warned in
  11813. yes:)
  11814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11815. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11816. ac_tool_warned=yes ;;
  11817. esac
  11818. CC=$ac_ct_CC
  11819. fi
  11820. else
  11821. CC="$ac_cv_prog_CC"
  11822. fi
  11823. fi
  11824. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11825. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11826. as_fn_error $? "no acceptable C compiler found in \$PATH
  11827. See \`config.log' for more details" "$LINENO" 5; }
  11828. # Provide some information about the compiler.
  11829. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11830. set X $ac_compile
  11831. ac_compiler=$2
  11832. for ac_option in --version -v -V -qversion -version; do
  11833. { { ac_try="$ac_compiler $ac_option >&5"
  11834. case "(($ac_try" in
  11835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11836. *) ac_try_echo=$ac_try;;
  11837. esac
  11838. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11839. printf "%s\n" "$ac_try_echo"; } >&5
  11840. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11841. ac_status=$?
  11842. if test -s conftest.err; then
  11843. sed '10a\
  11844. ... rest of stderr output deleted ...
  11845. 10q' conftest.err >conftest.er1
  11846. cat conftest.er1 >&5
  11847. fi
  11848. rm -f conftest.er1 conftest.err
  11849. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11850. test $ac_status = 0; }
  11851. done
  11852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11853. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11854. if test ${ac_cv_c_compiler_gnu+y}
  11855. then :
  11856. printf %s "(cached) " >&6
  11857. else $as_nop
  11858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11859. /* end confdefs.h. */
  11860. int
  11861. main (void)
  11862. {
  11863. #ifndef __GNUC__
  11864. choke me
  11865. #endif
  11866. ;
  11867. return 0;
  11868. }
  11869. _ACEOF
  11870. if ac_fn_c_try_compile "$LINENO"
  11871. then :
  11872. ac_compiler_gnu=yes
  11873. else $as_nop
  11874. ac_compiler_gnu=no
  11875. fi
  11876. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11877. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11878. fi
  11879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11880. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11881. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11882. if test $ac_compiler_gnu = yes; then
  11883. GCC=yes
  11884. else
  11885. GCC=
  11886. fi
  11887. ac_test_CFLAGS=${CFLAGS+y}
  11888. ac_save_CFLAGS=$CFLAGS
  11889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11890. printf %s "checking whether $CC accepts -g... " >&6; }
  11891. if test ${ac_cv_prog_cc_g+y}
  11892. then :
  11893. printf %s "(cached) " >&6
  11894. else $as_nop
  11895. ac_save_c_werror_flag=$ac_c_werror_flag
  11896. ac_c_werror_flag=yes
  11897. ac_cv_prog_cc_g=no
  11898. CFLAGS="-g"
  11899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11900. /* end confdefs.h. */
  11901. int
  11902. main (void)
  11903. {
  11904. ;
  11905. return 0;
  11906. }
  11907. _ACEOF
  11908. if ac_fn_c_try_compile "$LINENO"
  11909. then :
  11910. ac_cv_prog_cc_g=yes
  11911. else $as_nop
  11912. CFLAGS=""
  11913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11914. /* end confdefs.h. */
  11915. int
  11916. main (void)
  11917. {
  11918. ;
  11919. return 0;
  11920. }
  11921. _ACEOF
  11922. if ac_fn_c_try_compile "$LINENO"
  11923. then :
  11924. else $as_nop
  11925. ac_c_werror_flag=$ac_save_c_werror_flag
  11926. CFLAGS="-g"
  11927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11928. /* end confdefs.h. */
  11929. int
  11930. main (void)
  11931. {
  11932. ;
  11933. return 0;
  11934. }
  11935. _ACEOF
  11936. if ac_fn_c_try_compile "$LINENO"
  11937. then :
  11938. ac_cv_prog_cc_g=yes
  11939. fi
  11940. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11941. fi
  11942. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11943. fi
  11944. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11945. ac_c_werror_flag=$ac_save_c_werror_flag
  11946. fi
  11947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11948. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11949. if test $ac_test_CFLAGS; then
  11950. CFLAGS=$ac_save_CFLAGS
  11951. elif test $ac_cv_prog_cc_g = yes; then
  11952. if test "$GCC" = yes; then
  11953. CFLAGS="-g -O2"
  11954. else
  11955. CFLAGS="-g"
  11956. fi
  11957. else
  11958. if test "$GCC" = yes; then
  11959. CFLAGS="-O2"
  11960. else
  11961. CFLAGS=
  11962. fi
  11963. fi
  11964. ac_prog_cc_stdc=no
  11965. if test x$ac_prog_cc_stdc = xno
  11966. then :
  11967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11968. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11969. if test ${ac_cv_prog_cc_c11+y}
  11970. then :
  11971. printf %s "(cached) " >&6
  11972. else $as_nop
  11973. ac_cv_prog_cc_c11=no
  11974. ac_save_CC=$CC
  11975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11976. /* end confdefs.h. */
  11977. $ac_c_conftest_c11_program
  11978. _ACEOF
  11979. for ac_arg in '' -std=gnu11
  11980. do
  11981. CC="$ac_save_CC $ac_arg"
  11982. if ac_fn_c_try_compile "$LINENO"
  11983. then :
  11984. ac_cv_prog_cc_c11=$ac_arg
  11985. fi
  11986. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11987. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11988. done
  11989. rm -f conftest.$ac_ext
  11990. CC=$ac_save_CC
  11991. fi
  11992. if test "x$ac_cv_prog_cc_c11" = xno
  11993. then :
  11994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11995. printf "%s\n" "unsupported" >&6; }
  11996. else $as_nop
  11997. if test "x$ac_cv_prog_cc_c11" = x
  11998. then :
  11999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12000. printf "%s\n" "none needed" >&6; }
  12001. else $as_nop
  12002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  12003. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  12004. CC="$CC $ac_cv_prog_cc_c11"
  12005. fi
  12006. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  12007. ac_prog_cc_stdc=c11
  12008. fi
  12009. fi
  12010. if test x$ac_prog_cc_stdc = xno
  12011. then :
  12012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  12013. printf %s "checking for $CC option to enable C99 features... " >&6; }
  12014. if test ${ac_cv_prog_cc_c99+y}
  12015. then :
  12016. printf %s "(cached) " >&6
  12017. else $as_nop
  12018. ac_cv_prog_cc_c99=no
  12019. ac_save_CC=$CC
  12020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12021. /* end confdefs.h. */
  12022. $ac_c_conftest_c99_program
  12023. _ACEOF
  12024. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  12025. do
  12026. CC="$ac_save_CC $ac_arg"
  12027. if ac_fn_c_try_compile "$LINENO"
  12028. then :
  12029. ac_cv_prog_cc_c99=$ac_arg
  12030. fi
  12031. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12032. test "x$ac_cv_prog_cc_c99" != "xno" && break
  12033. done
  12034. rm -f conftest.$ac_ext
  12035. CC=$ac_save_CC
  12036. fi
  12037. if test "x$ac_cv_prog_cc_c99" = xno
  12038. then :
  12039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12040. printf "%s\n" "unsupported" >&6; }
  12041. else $as_nop
  12042. if test "x$ac_cv_prog_cc_c99" = x
  12043. then :
  12044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12045. printf "%s\n" "none needed" >&6; }
  12046. else $as_nop
  12047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  12048. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  12049. CC="$CC $ac_cv_prog_cc_c99"
  12050. fi
  12051. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  12052. ac_prog_cc_stdc=c99
  12053. fi
  12054. fi
  12055. if test x$ac_prog_cc_stdc = xno
  12056. then :
  12057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  12058. printf %s "checking for $CC option to enable C89 features... " >&6; }
  12059. if test ${ac_cv_prog_cc_c89+y}
  12060. then :
  12061. printf %s "(cached) " >&6
  12062. else $as_nop
  12063. ac_cv_prog_cc_c89=no
  12064. ac_save_CC=$CC
  12065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12066. /* end confdefs.h. */
  12067. $ac_c_conftest_c89_program
  12068. _ACEOF
  12069. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12070. do
  12071. CC="$ac_save_CC $ac_arg"
  12072. if ac_fn_c_try_compile "$LINENO"
  12073. then :
  12074. ac_cv_prog_cc_c89=$ac_arg
  12075. fi
  12076. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12077. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12078. done
  12079. rm -f conftest.$ac_ext
  12080. CC=$ac_save_CC
  12081. fi
  12082. if test "x$ac_cv_prog_cc_c89" = xno
  12083. then :
  12084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12085. printf "%s\n" "unsupported" >&6; }
  12086. else $as_nop
  12087. if test "x$ac_cv_prog_cc_c89" = x
  12088. then :
  12089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12090. printf "%s\n" "none needed" >&6; }
  12091. else $as_nop
  12092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12093. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12094. CC="$CC $ac_cv_prog_cc_c89"
  12095. fi
  12096. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12097. ac_prog_cc_stdc=c89
  12098. fi
  12099. fi
  12100. ac_ext=c
  12101. ac_cpp='$CPP $CPPFLAGS'
  12102. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12103. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12104. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12105. ac_ext=cpp
  12106. ac_cpp='$CXXCPP $CPPFLAGS'
  12107. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12108. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12109. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12110. if test -z "$CXX"; then
  12111. if test -n "$CCC"; then
  12112. CXX=$CCC
  12113. else
  12114. if test -n "$ac_tool_prefix"; then
  12115. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12116. do
  12117. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12118. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12120. printf %s "checking for $ac_word... " >&6; }
  12121. if test ${ac_cv_prog_CXX+y}
  12122. then :
  12123. printf %s "(cached) " >&6
  12124. else $as_nop
  12125. if test -n "$CXX"; then
  12126. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12127. else
  12128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12129. for as_dir in $PATH
  12130. do
  12131. IFS=$as_save_IFS
  12132. case $as_dir in #(((
  12133. '') as_dir=./ ;;
  12134. */) ;;
  12135. *) as_dir=$as_dir/ ;;
  12136. esac
  12137. for ac_exec_ext in '' $ac_executable_extensions; do
  12138. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12139. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12140. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12141. break 2
  12142. fi
  12143. done
  12144. done
  12145. IFS=$as_save_IFS
  12146. fi
  12147. fi
  12148. CXX=$ac_cv_prog_CXX
  12149. if test -n "$CXX"; then
  12150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12151. printf "%s\n" "$CXX" >&6; }
  12152. else
  12153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12154. printf "%s\n" "no" >&6; }
  12155. fi
  12156. test -n "$CXX" && break
  12157. done
  12158. fi
  12159. if test -z "$CXX"; then
  12160. ac_ct_CXX=$CXX
  12161. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12162. do
  12163. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12164. set dummy $ac_prog; ac_word=$2
  12165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12166. printf %s "checking for $ac_word... " >&6; }
  12167. if test ${ac_cv_prog_ac_ct_CXX+y}
  12168. then :
  12169. printf %s "(cached) " >&6
  12170. else $as_nop
  12171. if test -n "$ac_ct_CXX"; then
  12172. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12173. else
  12174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12175. for as_dir in $PATH
  12176. do
  12177. IFS=$as_save_IFS
  12178. case $as_dir in #(((
  12179. '') as_dir=./ ;;
  12180. */) ;;
  12181. *) as_dir=$as_dir/ ;;
  12182. esac
  12183. for ac_exec_ext in '' $ac_executable_extensions; do
  12184. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12185. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12186. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12187. break 2
  12188. fi
  12189. done
  12190. done
  12191. IFS=$as_save_IFS
  12192. fi
  12193. fi
  12194. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12195. if test -n "$ac_ct_CXX"; then
  12196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12197. printf "%s\n" "$ac_ct_CXX" >&6; }
  12198. else
  12199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12200. printf "%s\n" "no" >&6; }
  12201. fi
  12202. test -n "$ac_ct_CXX" && break
  12203. done
  12204. if test "x$ac_ct_CXX" = x; then
  12205. CXX="g++"
  12206. else
  12207. case $cross_compiling:$ac_tool_warned in
  12208. yes:)
  12209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12210. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12211. ac_tool_warned=yes ;;
  12212. esac
  12213. CXX=$ac_ct_CXX
  12214. fi
  12215. fi
  12216. fi
  12217. fi
  12218. # Provide some information about the compiler.
  12219. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12220. set X $ac_compile
  12221. ac_compiler=$2
  12222. for ac_option in --version -v -V -qversion; do
  12223. { { ac_try="$ac_compiler $ac_option >&5"
  12224. case "(($ac_try" in
  12225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12226. *) ac_try_echo=$ac_try;;
  12227. esac
  12228. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12229. printf "%s\n" "$ac_try_echo"; } >&5
  12230. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12231. ac_status=$?
  12232. if test -s conftest.err; then
  12233. sed '10a\
  12234. ... rest of stderr output deleted ...
  12235. 10q' conftest.err >conftest.er1
  12236. cat conftest.er1 >&5
  12237. fi
  12238. rm -f conftest.er1 conftest.err
  12239. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12240. test $ac_status = 0; }
  12241. done
  12242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12243. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12244. if test ${ac_cv_cxx_compiler_gnu+y}
  12245. then :
  12246. printf %s "(cached) " >&6
  12247. else $as_nop
  12248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12249. /* end confdefs.h. */
  12250. int
  12251. main (void)
  12252. {
  12253. #ifndef __GNUC__
  12254. choke me
  12255. #endif
  12256. ;
  12257. return 0;
  12258. }
  12259. _ACEOF
  12260. if ac_fn_cxx_try_compile "$LINENO"
  12261. then :
  12262. ac_compiler_gnu=yes
  12263. else $as_nop
  12264. ac_compiler_gnu=no
  12265. fi
  12266. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12267. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12268. fi
  12269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12270. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12271. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12272. if test $ac_compiler_gnu = yes; then
  12273. GXX=yes
  12274. else
  12275. GXX=
  12276. fi
  12277. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12278. ac_save_CXXFLAGS=$CXXFLAGS
  12279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12280. printf %s "checking whether $CXX accepts -g... " >&6; }
  12281. if test ${ac_cv_prog_cxx_g+y}
  12282. then :
  12283. printf %s "(cached) " >&6
  12284. else $as_nop
  12285. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12286. ac_cxx_werror_flag=yes
  12287. ac_cv_prog_cxx_g=no
  12288. CXXFLAGS="-g"
  12289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12290. /* end confdefs.h. */
  12291. int
  12292. main (void)
  12293. {
  12294. ;
  12295. return 0;
  12296. }
  12297. _ACEOF
  12298. if ac_fn_cxx_try_compile "$LINENO"
  12299. then :
  12300. ac_cv_prog_cxx_g=yes
  12301. else $as_nop
  12302. CXXFLAGS=""
  12303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12304. /* end confdefs.h. */
  12305. int
  12306. main (void)
  12307. {
  12308. ;
  12309. return 0;
  12310. }
  12311. _ACEOF
  12312. if ac_fn_cxx_try_compile "$LINENO"
  12313. then :
  12314. else $as_nop
  12315. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12316. CXXFLAGS="-g"
  12317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12318. /* end confdefs.h. */
  12319. int
  12320. main (void)
  12321. {
  12322. ;
  12323. return 0;
  12324. }
  12325. _ACEOF
  12326. if ac_fn_cxx_try_compile "$LINENO"
  12327. then :
  12328. ac_cv_prog_cxx_g=yes
  12329. fi
  12330. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12331. fi
  12332. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12333. fi
  12334. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12335. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12336. fi
  12337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12338. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12339. if test $ac_test_CXXFLAGS; then
  12340. CXXFLAGS=$ac_save_CXXFLAGS
  12341. elif test $ac_cv_prog_cxx_g = yes; then
  12342. if test "$GXX" = yes; then
  12343. CXXFLAGS="-g -O2"
  12344. else
  12345. CXXFLAGS="-g"
  12346. fi
  12347. else
  12348. if test "$GXX" = yes; then
  12349. CXXFLAGS="-O2"
  12350. else
  12351. CXXFLAGS=
  12352. fi
  12353. fi
  12354. ac_prog_cxx_stdcxx=no
  12355. if test x$ac_prog_cxx_stdcxx = xno
  12356. then :
  12357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12358. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12359. if test ${ac_cv_prog_cxx_cxx11+y}
  12360. then :
  12361. printf %s "(cached) " >&6
  12362. else $as_nop
  12363. ac_cv_prog_cxx_cxx11=no
  12364. ac_save_CXX=$CXX
  12365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12366. /* end confdefs.h. */
  12367. $ac_cxx_conftest_cxx11_program
  12368. _ACEOF
  12369. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12370. do
  12371. CXX="$ac_save_CXX $ac_arg"
  12372. if ac_fn_cxx_try_compile "$LINENO"
  12373. then :
  12374. ac_cv_prog_cxx_cxx11=$ac_arg
  12375. fi
  12376. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12377. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12378. done
  12379. rm -f conftest.$ac_ext
  12380. CXX=$ac_save_CXX
  12381. fi
  12382. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12383. then :
  12384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12385. printf "%s\n" "unsupported" >&6; }
  12386. else $as_nop
  12387. if test "x$ac_cv_prog_cxx_cxx11" = x
  12388. then :
  12389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12390. printf "%s\n" "none needed" >&6; }
  12391. else $as_nop
  12392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12393. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12394. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12395. fi
  12396. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12397. ac_prog_cxx_stdcxx=cxx11
  12398. fi
  12399. fi
  12400. if test x$ac_prog_cxx_stdcxx = xno
  12401. then :
  12402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12403. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12404. if test ${ac_cv_prog_cxx_cxx98+y}
  12405. then :
  12406. printf %s "(cached) " >&6
  12407. else $as_nop
  12408. ac_cv_prog_cxx_cxx98=no
  12409. ac_save_CXX=$CXX
  12410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12411. /* end confdefs.h. */
  12412. $ac_cxx_conftest_cxx98_program
  12413. _ACEOF
  12414. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12415. do
  12416. CXX="$ac_save_CXX $ac_arg"
  12417. if ac_fn_cxx_try_compile "$LINENO"
  12418. then :
  12419. ac_cv_prog_cxx_cxx98=$ac_arg
  12420. fi
  12421. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12422. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12423. done
  12424. rm -f conftest.$ac_ext
  12425. CXX=$ac_save_CXX
  12426. fi
  12427. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12428. then :
  12429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12430. printf "%s\n" "unsupported" >&6; }
  12431. else $as_nop
  12432. if test "x$ac_cv_prog_cxx_cxx98" = x
  12433. then :
  12434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12435. printf "%s\n" "none needed" >&6; }
  12436. else $as_nop
  12437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12438. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12439. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12440. fi
  12441. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12442. ac_prog_cxx_stdcxx=cxx98
  12443. fi
  12444. fi
  12445. ac_ext=c
  12446. ac_cpp='$CPP $CPPFLAGS'
  12447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12450. func_stripname_cnf ()
  12451. {
  12452. case $2 in
  12453. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12454. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12455. esac
  12456. } # func_stripname_cnf
  12457. if test -n "$CXX" && ( test no != "$CXX" &&
  12458. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12459. (test g++ != "$CXX"))); then
  12460. ac_ext=cpp
  12461. ac_cpp='$CXXCPP $CPPFLAGS'
  12462. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12463. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12464. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12466. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12467. if test -z "$CXXCPP"; then
  12468. if test ${ac_cv_prog_CXXCPP+y}
  12469. then :
  12470. printf %s "(cached) " >&6
  12471. else $as_nop
  12472. # Double quotes because $CXX needs to be expanded
  12473. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12474. do
  12475. ac_preproc_ok=false
  12476. for ac_cxx_preproc_warn_flag in '' yes
  12477. do
  12478. # Use a header file that comes with gcc, so configuring glibc
  12479. # with a fresh cross-compiler works.
  12480. # On the NeXT, cc -E runs the code through the compiler's parser,
  12481. # not just through cpp. "Syntax error" is here to catch this case.
  12482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12483. /* end confdefs.h. */
  12484. #include <limits.h>
  12485. Syntax error
  12486. _ACEOF
  12487. if ac_fn_cxx_try_cpp "$LINENO"
  12488. then :
  12489. else $as_nop
  12490. # Broken: fails on valid input.
  12491. continue
  12492. fi
  12493. rm -f conftest.err conftest.i conftest.$ac_ext
  12494. # OK, works on sane cases. Now check whether nonexistent headers
  12495. # can be detected and how.
  12496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12497. /* end confdefs.h. */
  12498. #include <ac_nonexistent.h>
  12499. _ACEOF
  12500. if ac_fn_cxx_try_cpp "$LINENO"
  12501. then :
  12502. # Broken: success on invalid input.
  12503. continue
  12504. else $as_nop
  12505. # Passes both tests.
  12506. ac_preproc_ok=:
  12507. break
  12508. fi
  12509. rm -f conftest.err conftest.i conftest.$ac_ext
  12510. done
  12511. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12512. rm -f conftest.i conftest.err conftest.$ac_ext
  12513. if $ac_preproc_ok
  12514. then :
  12515. break
  12516. fi
  12517. done
  12518. ac_cv_prog_CXXCPP=$CXXCPP
  12519. fi
  12520. CXXCPP=$ac_cv_prog_CXXCPP
  12521. else
  12522. ac_cv_prog_CXXCPP=$CXXCPP
  12523. fi
  12524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12525. printf "%s\n" "$CXXCPP" >&6; }
  12526. ac_preproc_ok=false
  12527. for ac_cxx_preproc_warn_flag in '' yes
  12528. do
  12529. # Use a header file that comes with gcc, so configuring glibc
  12530. # with a fresh cross-compiler works.
  12531. # On the NeXT, cc -E runs the code through the compiler's parser,
  12532. # not just through cpp. "Syntax error" is here to catch this case.
  12533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12534. /* end confdefs.h. */
  12535. #include <limits.h>
  12536. Syntax error
  12537. _ACEOF
  12538. if ac_fn_cxx_try_cpp "$LINENO"
  12539. then :
  12540. else $as_nop
  12541. # Broken: fails on valid input.
  12542. continue
  12543. fi
  12544. rm -f conftest.err conftest.i conftest.$ac_ext
  12545. # OK, works on sane cases. Now check whether nonexistent headers
  12546. # can be detected and how.
  12547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12548. /* end confdefs.h. */
  12549. #include <ac_nonexistent.h>
  12550. _ACEOF
  12551. if ac_fn_cxx_try_cpp "$LINENO"
  12552. then :
  12553. # Broken: success on invalid input.
  12554. continue
  12555. else $as_nop
  12556. # Passes both tests.
  12557. ac_preproc_ok=:
  12558. break
  12559. fi
  12560. rm -f conftest.err conftest.i conftest.$ac_ext
  12561. done
  12562. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12563. rm -f conftest.i conftest.err conftest.$ac_ext
  12564. if $ac_preproc_ok
  12565. then :
  12566. else $as_nop
  12567. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12568. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12569. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12570. See \`config.log' for more details" "$LINENO" 5; }
  12571. fi
  12572. ac_ext=c
  12573. ac_cpp='$CPP $CPPFLAGS'
  12574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12577. else
  12578. _lt_caught_CXX_error=yes
  12579. fi
  12580. ac_ext=cpp
  12581. ac_cpp='$CXXCPP $CPPFLAGS'
  12582. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12583. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12584. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12585. archive_cmds_need_lc_CXX=no
  12586. allow_undefined_flag_CXX=
  12587. always_export_symbols_CXX=no
  12588. archive_expsym_cmds_CXX=
  12589. compiler_needs_object_CXX=no
  12590. export_dynamic_flag_spec_CXX=
  12591. hardcode_direct_CXX=no
  12592. hardcode_direct_absolute_CXX=no
  12593. hardcode_libdir_flag_spec_CXX=
  12594. hardcode_libdir_separator_CXX=
  12595. hardcode_minus_L_CXX=no
  12596. hardcode_shlibpath_var_CXX=unsupported
  12597. hardcode_automatic_CXX=no
  12598. inherit_rpath_CXX=no
  12599. module_cmds_CXX=
  12600. module_expsym_cmds_CXX=
  12601. link_all_deplibs_CXX=unknown
  12602. old_archive_cmds_CXX=$old_archive_cmds
  12603. reload_flag_CXX=$reload_flag
  12604. reload_cmds_CXX=$reload_cmds
  12605. no_undefined_flag_CXX=
  12606. whole_archive_flag_spec_CXX=
  12607. enable_shared_with_static_runtimes_CXX=no
  12608. # Source file extension for C++ test sources.
  12609. ac_ext=cpp
  12610. # Object file extension for compiled C++ test sources.
  12611. objext=o
  12612. objext_CXX=$objext
  12613. # No sense in running all these tests if we already determined that
  12614. # the CXX compiler isn't working. Some variables (like enable_shared)
  12615. # are currently assumed to apply to all compilers on this platform,
  12616. # and will be corrupted by setting them based on a non-working compiler.
  12617. if test yes != "$_lt_caught_CXX_error"; then
  12618. # Code to be used in simple compile tests
  12619. lt_simple_compile_test_code="int some_variable = 0;"
  12620. # Code to be used in simple link tests
  12621. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12622. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12623. # If no C compiler was specified, use CC.
  12624. LTCC=${LTCC-"$CC"}
  12625. # If no C compiler flags were specified, use CFLAGS.
  12626. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12627. # Allow CC to be a program name with arguments.
  12628. compiler=$CC
  12629. # save warnings/boilerplate of simple test code
  12630. ac_outfile=conftest.$ac_objext
  12631. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12632. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12633. _lt_compiler_boilerplate=`cat conftest.err`
  12634. $RM conftest*
  12635. ac_outfile=conftest.$ac_objext
  12636. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12637. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12638. _lt_linker_boilerplate=`cat conftest.err`
  12639. $RM -r conftest*
  12640. # Allow CC to be a program name with arguments.
  12641. lt_save_CC=$CC
  12642. lt_save_CFLAGS=$CFLAGS
  12643. lt_save_LD=$LD
  12644. lt_save_GCC=$GCC
  12645. GCC=$GXX
  12646. lt_save_with_gnu_ld=$with_gnu_ld
  12647. lt_save_path_LD=$lt_cv_path_LD
  12648. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12649. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12650. else
  12651. $as_unset lt_cv_prog_gnu_ld
  12652. fi
  12653. if test -n "${lt_cv_path_LDCXX+set}"; then
  12654. lt_cv_path_LD=$lt_cv_path_LDCXX
  12655. else
  12656. $as_unset lt_cv_path_LD
  12657. fi
  12658. test -z "${LDCXX+set}" || LD=$LDCXX
  12659. CC=${CXX-"c++"}
  12660. CFLAGS=$CXXFLAGS
  12661. compiler=$CC
  12662. compiler_CXX=$CC
  12663. func_cc_basename $compiler
  12664. cc_basename=$func_cc_basename_result
  12665. if test -n "$compiler"; then
  12666. # We don't want -fno-exception when compiling C++ code, so set the
  12667. # no_builtin_flag separately
  12668. if test yes = "$GXX"; then
  12669. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12670. else
  12671. lt_prog_compiler_no_builtin_flag_CXX=
  12672. fi
  12673. if test yes = "$GXX"; then
  12674. # Set up default GNU C++ configuration
  12675. # Check whether --with-gnu-ld was given.
  12676. if test ${with_gnu_ld+y}
  12677. then :
  12678. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12679. else $as_nop
  12680. with_gnu_ld=no
  12681. fi
  12682. ac_prog=ld
  12683. if test yes = "$GCC"; then
  12684. # Check if gcc -print-prog-name=ld gives a path.
  12685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12686. printf %s "checking for ld used by $CC... " >&6; }
  12687. case $host in
  12688. *-*-mingw* | *-*-windows*)
  12689. # gcc leaves a trailing carriage return, which upsets mingw
  12690. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12691. *)
  12692. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12693. esac
  12694. case $ac_prog in
  12695. # Accept absolute paths.
  12696. [\\/]* | ?:[\\/]*)
  12697. re_direlt='/[^/][^/]*/\.\./'
  12698. # Canonicalize the pathname of ld
  12699. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12700. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12701. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12702. done
  12703. test -z "$LD" && LD=$ac_prog
  12704. ;;
  12705. "")
  12706. # If it fails, then pretend we aren't using GCC.
  12707. ac_prog=ld
  12708. ;;
  12709. *)
  12710. # If it is relative, then search for the first ld in PATH.
  12711. with_gnu_ld=unknown
  12712. ;;
  12713. esac
  12714. elif test yes = "$with_gnu_ld"; then
  12715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12716. printf %s "checking for GNU ld... " >&6; }
  12717. else
  12718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12719. printf %s "checking for non-GNU ld... " >&6; }
  12720. fi
  12721. if test ${lt_cv_path_LD+y}
  12722. then :
  12723. printf %s "(cached) " >&6
  12724. else $as_nop
  12725. if test -z "$LD"; then
  12726. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12727. for ac_dir in $PATH; do
  12728. IFS=$lt_save_ifs
  12729. test -z "$ac_dir" && ac_dir=.
  12730. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12731. lt_cv_path_LD=$ac_dir/$ac_prog
  12732. # Check to see if the program is GNU ld. I'd rather use --version,
  12733. # but apparently some variants of GNU ld only accept -v.
  12734. # Break only if it was the GNU/non-GNU ld that we prefer.
  12735. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12736. *GNU* | *'with BFD'*)
  12737. test no != "$with_gnu_ld" && break
  12738. ;;
  12739. *)
  12740. test yes != "$with_gnu_ld" && break
  12741. ;;
  12742. esac
  12743. fi
  12744. done
  12745. IFS=$lt_save_ifs
  12746. else
  12747. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12748. fi
  12749. fi
  12750. LD=$lt_cv_path_LD
  12751. if test -n "$LD"; then
  12752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12753. printf "%s\n" "$LD" >&6; }
  12754. else
  12755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12756. printf "%s\n" "no" >&6; }
  12757. fi
  12758. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12760. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12761. if test ${lt_cv_prog_gnu_ld+y}
  12762. then :
  12763. printf %s "(cached) " >&6
  12764. else $as_nop
  12765. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12766. case `$LD -v 2>&1 </dev/null` in
  12767. *GNU* | *'with BFD'*)
  12768. lt_cv_prog_gnu_ld=yes
  12769. ;;
  12770. *)
  12771. lt_cv_prog_gnu_ld=no
  12772. ;;
  12773. esac
  12774. fi
  12775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12776. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12777. with_gnu_ld=$lt_cv_prog_gnu_ld
  12778. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12779. # archiving commands below assume that GNU ld is being used.
  12780. if test yes = "$with_gnu_ld"; then
  12781. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12782. 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'
  12783. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12784. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12785. # If archive_cmds runs LD, not CC, wlarc should be empty
  12786. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12787. # investigate it a little bit more. (MM)
  12788. wlarc='$wl'
  12789. # ancient GNU ld didn't support --whole-archive et. al.
  12790. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12791. $GREP 'no-whole-archive' > /dev/null; then
  12792. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12793. else
  12794. whole_archive_flag_spec_CXX=
  12795. fi
  12796. else
  12797. with_gnu_ld=no
  12798. wlarc=
  12799. # A generic and very simple default shared library creation
  12800. # command for GNU C++ for the case where it uses the native
  12801. # linker, instead of GNU ld. If possible, this setting should
  12802. # overridden to take advantage of the native linker features on
  12803. # the platform it is being used on.
  12804. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12805. fi
  12806. # Commands to make compiler produce verbose output that lists
  12807. # what "hidden" libraries, object files and flags are used when
  12808. # linking a shared library.
  12809. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  12810. else
  12811. GXX=no
  12812. with_gnu_ld=no
  12813. wlarc=
  12814. fi
  12815. # PORTME: fill in a description of your system's C++ link characteristics
  12816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12817. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12818. ld_shlibs_CXX=yes
  12819. case $host_os in
  12820. aix3*)
  12821. # FIXME: insert proper C++ library support
  12822. ld_shlibs_CXX=no
  12823. ;;
  12824. aix[4-9]*)
  12825. if test ia64 = "$host_cpu"; then
  12826. # On IA64, the linker does run time linking by default, so we don't
  12827. # have to do anything special.
  12828. aix_use_runtimelinking=no
  12829. exp_sym_flag='-Bexport'
  12830. no_entry_flag=
  12831. else
  12832. aix_use_runtimelinking=no
  12833. # Test if we are trying to use run time linking or normal
  12834. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12835. # have runtime linking enabled, and use it for executables.
  12836. # For shared libraries, we enable/disable runtime linking
  12837. # depending on the kind of the shared library created -
  12838. # when "with_aix_soname,aix_use_runtimelinking" is:
  12839. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12840. # "aix,yes" lib.so shared, rtl:yes, for executables
  12841. # lib.a static archive
  12842. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12843. # lib.a(lib.so.V) shared, rtl:no, for executables
  12844. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12845. # lib.a(lib.so.V) shared, rtl:no
  12846. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12847. # lib.a static archive
  12848. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12849. for ld_flag in $LDFLAGS; do
  12850. case $ld_flag in
  12851. *-brtl*)
  12852. aix_use_runtimelinking=yes
  12853. break
  12854. ;;
  12855. esac
  12856. done
  12857. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12858. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12859. # so we don't have lib.a shared libs to link our executables.
  12860. # We have to force runtime linking in this case.
  12861. aix_use_runtimelinking=yes
  12862. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12863. fi
  12864. ;;
  12865. esac
  12866. exp_sym_flag='-bexport'
  12867. no_entry_flag='-bnoentry'
  12868. fi
  12869. # When large executables or shared objects are built, AIX ld can
  12870. # have problems creating the table of contents. If linking a library
  12871. # or program results in "error TOC overflow" add -mminimal-toc to
  12872. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12873. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12874. archive_cmds_CXX=''
  12875. hardcode_direct_CXX=yes
  12876. hardcode_direct_absolute_CXX=yes
  12877. hardcode_libdir_separator_CXX=':'
  12878. link_all_deplibs_CXX=yes
  12879. file_list_spec_CXX='$wl-f,'
  12880. case $with_aix_soname,$aix_use_runtimelinking in
  12881. aix,*) ;; # no import file
  12882. svr4,* | *,yes) # use import file
  12883. # The Import File defines what to hardcode.
  12884. hardcode_direct_CXX=no
  12885. hardcode_direct_absolute_CXX=no
  12886. ;;
  12887. esac
  12888. if test yes = "$GXX"; then
  12889. case $host_os in aix4.[012]|aix4.[012].*)
  12890. # We only want to do this on AIX 4.2 and lower, the check
  12891. # below for broken collect2 doesn't work under 4.3+
  12892. collect2name=`$CC -print-prog-name=collect2`
  12893. if test -f "$collect2name" &&
  12894. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12895. then
  12896. # We have reworked collect2
  12897. :
  12898. else
  12899. # We have old collect2
  12900. hardcode_direct_CXX=unsupported
  12901. # It fails to find uninstalled libraries when the uninstalled
  12902. # path is not listed in the libpath. Setting hardcode_minus_L
  12903. # to unsupported forces relinking
  12904. hardcode_minus_L_CXX=yes
  12905. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12906. hardcode_libdir_separator_CXX=
  12907. fi
  12908. esac
  12909. shared_flag='-shared'
  12910. if test yes = "$aix_use_runtimelinking"; then
  12911. shared_flag=$shared_flag' $wl-G'
  12912. fi
  12913. # Need to ensure runtime linking is disabled for the traditional
  12914. # shared library, or the linker may eventually find shared libraries
  12915. # /with/ Import File - we do not want to mix them.
  12916. shared_flag_aix='-shared'
  12917. shared_flag_svr4='-shared $wl-G'
  12918. else
  12919. # not using gcc
  12920. if test ia64 = "$host_cpu"; then
  12921. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12922. # chokes on -Wl,-G. The following line is correct:
  12923. shared_flag='-G'
  12924. else
  12925. if test yes = "$aix_use_runtimelinking"; then
  12926. shared_flag='$wl-G'
  12927. else
  12928. shared_flag='$wl-bM:SRE'
  12929. fi
  12930. shared_flag_aix='$wl-bM:SRE'
  12931. shared_flag_svr4='$wl-G'
  12932. fi
  12933. fi
  12934. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12935. # It seems that -bexpall does not export symbols beginning with
  12936. # underscore (_), so it is better to generate a list of symbols to
  12937. # export.
  12938. always_export_symbols_CXX=yes
  12939. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12940. # Warning - without using the other runtime loading flags (-brtl),
  12941. # -berok will link without error, but may produce a broken library.
  12942. # The "-G" linker flag allows undefined symbols.
  12943. no_undefined_flag_CXX='-bernotok'
  12944. # Determine the default libpath from the value encoded in an empty
  12945. # executable.
  12946. if test set = "${lt_cv_aix_libpath+set}"; then
  12947. aix_libpath=$lt_cv_aix_libpath
  12948. else
  12949. if test ${lt_cv_aix_libpath__CXX+y}
  12950. then :
  12951. printf %s "(cached) " >&6
  12952. else $as_nop
  12953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12954. /* end confdefs.h. */
  12955. int
  12956. main (void)
  12957. {
  12958. ;
  12959. return 0;
  12960. }
  12961. _ACEOF
  12962. if ac_fn_cxx_try_link "$LINENO"
  12963. then :
  12964. lt_aix_libpath_sed='
  12965. /Import File Strings/,/^$/ {
  12966. /^0/ {
  12967. s/^0 *\([^ ]*\) *$/\1/
  12968. p
  12969. }
  12970. }'
  12971. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12972. # Check for a 64-bit object if we didn't find anything.
  12973. if test -z "$lt_cv_aix_libpath__CXX"; then
  12974. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12975. fi
  12976. fi
  12977. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12978. conftest$ac_exeext conftest.$ac_ext
  12979. if test -z "$lt_cv_aix_libpath__CXX"; then
  12980. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12981. fi
  12982. fi
  12983. aix_libpath=$lt_cv_aix_libpath__CXX
  12984. fi
  12985. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12986. 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
  12987. else
  12988. if test ia64 = "$host_cpu"; then
  12989. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12990. allow_undefined_flag_CXX="-z nodefs"
  12991. 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"
  12992. else
  12993. # Determine the default libpath from the value encoded in an
  12994. # empty executable.
  12995. if test set = "${lt_cv_aix_libpath+set}"; then
  12996. aix_libpath=$lt_cv_aix_libpath
  12997. else
  12998. if test ${lt_cv_aix_libpath__CXX+y}
  12999. then :
  13000. printf %s "(cached) " >&6
  13001. else $as_nop
  13002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13003. /* end confdefs.h. */
  13004. int
  13005. main (void)
  13006. {
  13007. ;
  13008. return 0;
  13009. }
  13010. _ACEOF
  13011. if ac_fn_cxx_try_link "$LINENO"
  13012. then :
  13013. lt_aix_libpath_sed='
  13014. /Import File Strings/,/^$/ {
  13015. /^0/ {
  13016. s/^0 *\([^ ]*\) *$/\1/
  13017. p
  13018. }
  13019. }'
  13020. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13021. # Check for a 64-bit object if we didn't find anything.
  13022. if test -z "$lt_cv_aix_libpath__CXX"; then
  13023. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13024. fi
  13025. fi
  13026. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13027. conftest$ac_exeext conftest.$ac_ext
  13028. if test -z "$lt_cv_aix_libpath__CXX"; then
  13029. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13030. fi
  13031. fi
  13032. aix_libpath=$lt_cv_aix_libpath__CXX
  13033. fi
  13034. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13035. # Warning - without using the other run time loading flags,
  13036. # -berok will link without error, but may produce a broken library.
  13037. no_undefined_flag_CXX=' $wl-bernotok'
  13038. allow_undefined_flag_CXX=' $wl-berok'
  13039. if test yes = "$with_gnu_ld"; then
  13040. # We only use this code for GNU lds that support --whole-archive.
  13041. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13042. else
  13043. # Exported symbols can be pulled into shared objects from archives
  13044. whole_archive_flag_spec_CXX='$convenience'
  13045. fi
  13046. archive_cmds_need_lc_CXX=yes
  13047. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13048. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13049. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13050. if test svr4 != "$with_aix_soname"; then
  13051. # This is similar to how AIX traditionally builds its shared
  13052. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13053. 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'
  13054. fi
  13055. if test aix != "$with_aix_soname"; then
  13056. 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'
  13057. else
  13058. # used by -dlpreopen to get the symbols
  13059. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13060. fi
  13061. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13062. fi
  13063. fi
  13064. ;;
  13065. beos*)
  13066. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13067. allow_undefined_flag_CXX=unsupported
  13068. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13069. # support --undefined. This deserves some investigation. FIXME
  13070. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13071. else
  13072. ld_shlibs_CXX=no
  13073. fi
  13074. ;;
  13075. chorus*)
  13076. case $cc_basename in
  13077. *)
  13078. # FIXME: insert proper C++ library support
  13079. ld_shlibs_CXX=no
  13080. ;;
  13081. esac
  13082. ;;
  13083. cygwin* | mingw* | windows* | pw32* | cegcc*)
  13084. case $GXX,$cc_basename in
  13085. ,cl* | no,cl* | ,icl* | no,icl*)
  13086. # Native MSVC or ICC
  13087. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13088. # no search path for DLLs.
  13089. hardcode_libdir_flag_spec_CXX=' '
  13090. allow_undefined_flag_CXX=unsupported
  13091. always_export_symbols_CXX=yes
  13092. file_list_spec_CXX='@'
  13093. # Tell ltmain to make .lib files, not .a files.
  13094. libext=lib
  13095. # Tell ltmain to make .dll files, not .so files.
  13096. shrext_cmds=.dll
  13097. # FIXME: Setting linknames here is a bad hack.
  13098. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13099. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13100. cp "$export_symbols" "$output_objdir/$soname.def";
  13101. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13102. else
  13103. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13104. fi~
  13105. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13106. linknames='
  13107. # The linker will not automatically build a static lib if we build a DLL.
  13108. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13109. enable_shared_with_static_runtimes_CXX=yes
  13110. # Don't use ranlib
  13111. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13112. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13113. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13114. case $lt_outputfile in
  13115. *.exe|*.EXE) ;;
  13116. *)
  13117. lt_outputfile=$lt_outputfile.exe
  13118. lt_tool_outputfile=$lt_tool_outputfile.exe
  13119. ;;
  13120. esac~
  13121. func_to_tool_file "$lt_outputfile"~
  13122. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13123. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13124. $RM "$lt_outputfile.manifest";
  13125. fi'
  13126. ;;
  13127. *)
  13128. # g++
  13129. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13130. # as there is no search path for DLLs.
  13131. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13132. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13133. allow_undefined_flag_CXX=unsupported
  13134. always_export_symbols_CXX=no
  13135. enable_shared_with_static_runtimes_CXX=yes
  13136. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13137. 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'
  13138. # If the export-symbols file already is a .def file, use it as
  13139. # is; otherwise, prepend EXPORTS...
  13140. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13141. cp $export_symbols $output_objdir/$soname.def;
  13142. else
  13143. echo EXPORTS > $output_objdir/$soname.def;
  13144. cat $export_symbols >> $output_objdir/$soname.def;
  13145. fi~
  13146. $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'
  13147. else
  13148. ld_shlibs_CXX=no
  13149. fi
  13150. ;;
  13151. esac
  13152. ;;
  13153. darwin* | rhapsody*)
  13154. archive_cmds_need_lc_CXX=no
  13155. hardcode_direct_CXX=no
  13156. hardcode_automatic_CXX=yes
  13157. hardcode_shlibpath_var_CXX=unsupported
  13158. if test yes = "$lt_cv_ld_force_load"; then
  13159. 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\"`'
  13160. else
  13161. whole_archive_flag_spec_CXX=''
  13162. fi
  13163. link_all_deplibs_CXX=yes
  13164. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13165. case $cc_basename in
  13166. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13167. *) _lt_dar_can_shared=$GCC ;;
  13168. esac
  13169. if test yes = "$_lt_dar_can_shared"; then
  13170. output_verbose_link_cmd=func_echo_all
  13171. 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"
  13172. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13173. 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"
  13174. 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"
  13175. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13176. 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"
  13177. 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"
  13178. fi
  13179. else
  13180. ld_shlibs_CXX=no
  13181. fi
  13182. ;;
  13183. os2*)
  13184. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13185. hardcode_minus_L_CXX=yes
  13186. allow_undefined_flag_CXX=unsupported
  13187. shrext_cmds=.dll
  13188. archive_cmds_CXX='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13189. echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13190. echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13191. echo EXPORTS >> $output_objdir/$libname.def~
  13192. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13193. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13194. emximp -o $lib $output_objdir/$libname.def'
  13195. archive_expsym_cmds_CXX='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13196. echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13197. echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13198. echo EXPORTS >> $output_objdir/$libname.def~
  13199. prefix_cmds="$SED"~
  13200. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13201. prefix_cmds="$prefix_cmds -e 1d";
  13202. fi~
  13203. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13204. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13205. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13206. emximp -o $lib $output_objdir/$libname.def'
  13207. enable_shared_with_static_runtimes_CXX=yes
  13208. file_list_spec_CXX='@'
  13209. ;;
  13210. dgux*)
  13211. case $cc_basename in
  13212. ec++*)
  13213. # FIXME: insert proper C++ library support
  13214. ld_shlibs_CXX=no
  13215. ;;
  13216. ghcx*)
  13217. # Green Hills C++ Compiler
  13218. # FIXME: insert proper C++ library support
  13219. ld_shlibs_CXX=no
  13220. ;;
  13221. *)
  13222. # FIXME: insert proper C++ library support
  13223. ld_shlibs_CXX=no
  13224. ;;
  13225. esac
  13226. ;;
  13227. freebsd2.*)
  13228. # C++ shared libraries reported to be fairly broken before
  13229. # switch to ELF
  13230. ld_shlibs_CXX=no
  13231. ;;
  13232. freebsd-elf*)
  13233. archive_cmds_need_lc_CXX=no
  13234. ;;
  13235. freebsd* | dragonfly* | midnightbsd*)
  13236. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13237. # conventions
  13238. ld_shlibs_CXX=yes
  13239. ;;
  13240. haiku*)
  13241. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13242. link_all_deplibs_CXX=yes
  13243. ;;
  13244. hpux9*)
  13245. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13246. hardcode_libdir_separator_CXX=:
  13247. export_dynamic_flag_spec_CXX='$wl-E'
  13248. hardcode_direct_CXX=yes
  13249. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13250. # but as the default
  13251. # location of the library.
  13252. case $cc_basename in
  13253. CC*)
  13254. # FIXME: insert proper C++ library support
  13255. ld_shlibs_CXX=no
  13256. ;;
  13257. aCC*)
  13258. 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'
  13259. # Commands to make compiler produce verbose output that lists
  13260. # what "hidden" libraries, object files and flags are used when
  13261. # linking a shared library.
  13262. #
  13263. # There doesn't appear to be a way to prevent this compiler from
  13264. # explicitly linking system object files so we need to strip them
  13265. # from the output so that they don't get included in the library
  13266. # dependencies.
  13267. 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"'
  13268. ;;
  13269. *)
  13270. if test yes = "$GXX"; then
  13271. 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'
  13272. else
  13273. # FIXME: insert proper C++ library support
  13274. ld_shlibs_CXX=no
  13275. fi
  13276. ;;
  13277. esac
  13278. ;;
  13279. hpux10*|hpux11*)
  13280. if test no = "$with_gnu_ld"; then
  13281. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13282. hardcode_libdir_separator_CXX=:
  13283. case $host_cpu in
  13284. hppa*64*|ia64*)
  13285. ;;
  13286. *)
  13287. export_dynamic_flag_spec_CXX='$wl-E'
  13288. ;;
  13289. esac
  13290. fi
  13291. case $host_cpu in
  13292. hppa*64*|ia64*)
  13293. hardcode_direct_CXX=no
  13294. hardcode_shlibpath_var_CXX=no
  13295. ;;
  13296. *)
  13297. hardcode_direct_CXX=yes
  13298. hardcode_direct_absolute_CXX=yes
  13299. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13300. # but as the default
  13301. # location of the library.
  13302. ;;
  13303. esac
  13304. case $cc_basename in
  13305. CC*)
  13306. # FIXME: insert proper C++ library support
  13307. ld_shlibs_CXX=no
  13308. ;;
  13309. aCC*)
  13310. case $host_cpu in
  13311. hppa*64*)
  13312. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13313. ;;
  13314. ia64*)
  13315. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13316. ;;
  13317. *)
  13318. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13319. ;;
  13320. esac
  13321. # Commands to make compiler produce verbose output that lists
  13322. # what "hidden" libraries, object files and flags are used when
  13323. # linking a shared library.
  13324. #
  13325. # There doesn't appear to be a way to prevent this compiler from
  13326. # explicitly linking system object files so we need to strip them
  13327. # from the output so that they don't get included in the library
  13328. # dependencies.
  13329. 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"'
  13330. ;;
  13331. *)
  13332. if test yes = "$GXX"; then
  13333. if test no = "$with_gnu_ld"; then
  13334. case $host_cpu in
  13335. hppa*64*)
  13336. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13337. ;;
  13338. ia64*)
  13339. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13340. ;;
  13341. *)
  13342. 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'
  13343. ;;
  13344. esac
  13345. fi
  13346. else
  13347. # FIXME: insert proper C++ library support
  13348. ld_shlibs_CXX=no
  13349. fi
  13350. ;;
  13351. esac
  13352. ;;
  13353. interix[3-9]*)
  13354. hardcode_direct_CXX=no
  13355. hardcode_shlibpath_var_CXX=no
  13356. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13357. export_dynamic_flag_spec_CXX='$wl-E'
  13358. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13359. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13360. # default) and relocated if they conflict, which is a slow very memory
  13361. # consuming and fragmenting process. To avoid this, we pick a random,
  13362. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13363. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13364. 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'
  13365. 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'
  13366. ;;
  13367. irix5* | irix6*)
  13368. case $cc_basename in
  13369. CC*)
  13370. # SGI C++
  13371. 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'
  13372. # Archives containing C++ object files must be created using
  13373. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13374. # necessary to make sure instantiated templates are included
  13375. # in the archive.
  13376. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13377. ;;
  13378. *)
  13379. if test yes = "$GXX"; then
  13380. if test no = "$with_gnu_ld"; then
  13381. 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'
  13382. else
  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"` -o $lib'
  13384. fi
  13385. fi
  13386. link_all_deplibs_CXX=yes
  13387. ;;
  13388. esac
  13389. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13390. hardcode_libdir_separator_CXX=:
  13391. inherit_rpath_CXX=yes
  13392. ;;
  13393. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13394. case $cc_basename in
  13395. KCC*)
  13396. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13397. # KCC will only create a shared library if the output file
  13398. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13399. # to its proper name (with version) after linking.
  13400. 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'
  13401. 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'
  13402. # Commands to make compiler produce verbose output that lists
  13403. # what "hidden" libraries, object files and flags are used when
  13404. # linking a shared library.
  13405. #
  13406. # There doesn't appear to be a way to prevent this compiler from
  13407. # explicitly linking system object files so we need to strip them
  13408. # from the output so that they don't get included in the library
  13409. # dependencies.
  13410. 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"'
  13411. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13412. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13413. # Archives containing C++ object files must be created using
  13414. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13415. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13416. ;;
  13417. icpc* | ecpc* )
  13418. # Intel C++
  13419. with_gnu_ld=yes
  13420. # version 8.0 and above of icpc choke on multiply defined symbols
  13421. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13422. # earlier do not add the objects themselves.
  13423. case `$CC -V 2>&1` in
  13424. *"Version 7."*)
  13425. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13426. 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'
  13427. ;;
  13428. *) # Version 8.0 or newer
  13429. tmp_idyn=
  13430. case $host_cpu in
  13431. ia64*) tmp_idyn=' -i_dynamic';;
  13432. esac
  13433. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13434. 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'
  13435. ;;
  13436. esac
  13437. archive_cmds_need_lc_CXX=no
  13438. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13439. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13440. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13441. ;;
  13442. pgCC* | pgcpp*)
  13443. # Portland Group C++ compiler
  13444. case `$CC -V` in
  13445. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13446. prelink_cmds_CXX='tpldir=Template.dir~
  13447. rm -rf $tpldir~
  13448. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13449. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13450. old_archive_cmds_CXX='tpldir=Template.dir~
  13451. rm -rf $tpldir~
  13452. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13453. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13454. $RANLIB $oldlib'
  13455. archive_cmds_CXX='tpldir=Template.dir~
  13456. rm -rf $tpldir~
  13457. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13458. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13459. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13460. rm -rf $tpldir~
  13461. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13462. $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'
  13463. ;;
  13464. *) # Version 6 and above use weak symbols
  13465. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13466. 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'
  13467. ;;
  13468. esac
  13469. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13470. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13471. 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'
  13472. ;;
  13473. cxx*)
  13474. # Compaq C++
  13475. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13476. 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'
  13477. runpath_var=LD_RUN_PATH
  13478. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13479. hardcode_libdir_separator_CXX=:
  13480. # Commands to make compiler produce verbose output that lists
  13481. # what "hidden" libraries, object files and flags are used when
  13482. # linking a shared library.
  13483. #
  13484. # There doesn't appear to be a way to prevent this compiler from
  13485. # explicitly linking system object files so we need to strip them
  13486. # from the output so that they don't get included in the library
  13487. # dependencies.
  13488. 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'
  13489. ;;
  13490. xl* | mpixl* | bgxl*)
  13491. # IBM XL 8.0 on PPC, with GNU ld
  13492. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13493. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13494. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13495. if test yes = "$supports_anon_versioning"; then
  13496. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13497. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13498. echo "local: *; };" >> $output_objdir/$libname.ver~
  13499. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13500. fi
  13501. ;;
  13502. *)
  13503. case `$CC -V 2>&1 | sed 5q` in
  13504. *Sun\ C*)
  13505. # Sun C++ 5.9
  13506. no_undefined_flag_CXX=' -zdefs'
  13507. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13508. 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'
  13509. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13510. 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'
  13511. compiler_needs_object_CXX=yes
  13512. # Not sure whether something based on
  13513. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13514. # would be better.
  13515. output_verbose_link_cmd='func_echo_all'
  13516. # Archives containing C++ object files must be created using
  13517. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13518. # necessary to make sure instantiated templates are included
  13519. # in the archive.
  13520. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13521. ;;
  13522. esac
  13523. ;;
  13524. esac
  13525. ;;
  13526. lynxos*)
  13527. # FIXME: insert proper C++ library support
  13528. ld_shlibs_CXX=no
  13529. ;;
  13530. m88k*)
  13531. # FIXME: insert proper C++ library support
  13532. ld_shlibs_CXX=no
  13533. ;;
  13534. mvs*)
  13535. case $cc_basename in
  13536. cxx*)
  13537. # FIXME: insert proper C++ library support
  13538. ld_shlibs_CXX=no
  13539. ;;
  13540. *)
  13541. # FIXME: insert proper C++ library support
  13542. ld_shlibs_CXX=no
  13543. ;;
  13544. esac
  13545. ;;
  13546. netbsd*)
  13547. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13548. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13549. wlarc=
  13550. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13551. hardcode_direct_CXX=yes
  13552. hardcode_shlibpath_var_CXX=no
  13553. fi
  13554. # Workaround some broken pre-1.5 toolchains
  13555. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13556. ;;
  13557. *nto* | *qnx*)
  13558. ld_shlibs_CXX=yes
  13559. ;;
  13560. openbsd* | bitrig*)
  13561. if test -f /usr/libexec/ld.so; then
  13562. hardcode_direct_CXX=yes
  13563. hardcode_shlibpath_var_CXX=no
  13564. hardcode_direct_absolute_CXX=yes
  13565. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13566. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13567. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13568. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13569. export_dynamic_flag_spec_CXX='$wl-E'
  13570. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13571. fi
  13572. output_verbose_link_cmd=func_echo_all
  13573. else
  13574. ld_shlibs_CXX=no
  13575. fi
  13576. ;;
  13577. osf3* | osf4* | osf5*)
  13578. case $cc_basename in
  13579. KCC*)
  13580. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13581. # KCC will only create a shared library if the output file
  13582. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13583. # to its proper name (with version) after linking.
  13584. 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'
  13585. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13586. hardcode_libdir_separator_CXX=:
  13587. # Archives containing C++ object files must be created using
  13588. # the KAI C++ compiler.
  13589. case $host in
  13590. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13591. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13592. esac
  13593. ;;
  13594. RCC*)
  13595. # Rational C++ 2.4.1
  13596. # FIXME: insert proper C++ library support
  13597. ld_shlibs_CXX=no
  13598. ;;
  13599. cxx*)
  13600. case $host in
  13601. osf3*)
  13602. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13603. 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'
  13604. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13605. ;;
  13606. *)
  13607. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13608. 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'
  13609. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13610. echo "-hidden">> $lib.exp~
  13611. $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~
  13612. $RM $lib.exp'
  13613. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13614. ;;
  13615. esac
  13616. hardcode_libdir_separator_CXX=:
  13617. # Commands to make compiler produce verbose output that lists
  13618. # what "hidden" libraries, object files and flags are used when
  13619. # linking a shared library.
  13620. #
  13621. # There doesn't appear to be a way to prevent this compiler from
  13622. # explicitly linking system object files so we need to strip them
  13623. # from the output so that they don't get included in the library
  13624. # dependencies.
  13625. 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"'
  13626. ;;
  13627. *)
  13628. if test yes,no = "$GXX,$with_gnu_ld"; then
  13629. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13630. case $host in
  13631. osf3*)
  13632. 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'
  13633. ;;
  13634. *)
  13635. 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'
  13636. ;;
  13637. esac
  13638. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13639. hardcode_libdir_separator_CXX=:
  13640. # Commands to make compiler produce verbose output that lists
  13641. # what "hidden" libraries, object files and flags are used when
  13642. # linking a shared library.
  13643. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13644. else
  13645. # FIXME: insert proper C++ library support
  13646. ld_shlibs_CXX=no
  13647. fi
  13648. ;;
  13649. esac
  13650. ;;
  13651. psos*)
  13652. # FIXME: insert proper C++ library support
  13653. ld_shlibs_CXX=no
  13654. ;;
  13655. sunos4*)
  13656. case $cc_basename in
  13657. CC*)
  13658. # Sun C++ 4.x
  13659. # FIXME: insert proper C++ library support
  13660. ld_shlibs_CXX=no
  13661. ;;
  13662. lcc*)
  13663. # Lucid
  13664. # FIXME: insert proper C++ library support
  13665. ld_shlibs_CXX=no
  13666. ;;
  13667. *)
  13668. # FIXME: insert proper C++ library support
  13669. ld_shlibs_CXX=no
  13670. ;;
  13671. esac
  13672. ;;
  13673. solaris*)
  13674. case $cc_basename in
  13675. CC* | sunCC*)
  13676. # Sun C++ 4.2, 5.x and Centerline C++
  13677. archive_cmds_need_lc_CXX=yes
  13678. no_undefined_flag_CXX=' -zdefs'
  13679. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13680. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13681. $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'
  13682. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13683. hardcode_shlibpath_var_CXX=no
  13684. case $host_os in
  13685. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13686. *)
  13687. # The compiler driver will combine and reorder linker options,
  13688. # but understands '-z linker_flag'.
  13689. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13690. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13691. ;;
  13692. esac
  13693. link_all_deplibs_CXX=yes
  13694. output_verbose_link_cmd='func_echo_all'
  13695. # Archives containing C++ object files must be created using
  13696. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13697. # necessary to make sure instantiated templates are included
  13698. # in the archive.
  13699. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13700. ;;
  13701. gcx*)
  13702. # Green Hills C++ Compiler
  13703. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13704. # The C++ compiler must be used to create the archive.
  13705. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13706. ;;
  13707. *)
  13708. # GNU C++ compiler with Solaris linker
  13709. if test yes,no = "$GXX,$with_gnu_ld"; then
  13710. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13711. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13712. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13713. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13714. $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'
  13715. # Commands to make compiler produce verbose output that lists
  13716. # what "hidden" libraries, object files and flags are used when
  13717. # linking a shared library.
  13718. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13719. else
  13720. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13721. # platform.
  13722. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13723. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13724. $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'
  13725. # Commands to make compiler produce verbose output that lists
  13726. # what "hidden" libraries, object files and flags are used when
  13727. # linking a shared library.
  13728. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13729. fi
  13730. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13731. case $host_os in
  13732. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13733. *)
  13734. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13735. ;;
  13736. esac
  13737. fi
  13738. ;;
  13739. esac
  13740. ;;
  13741. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13742. no_undefined_flag_CXX='$wl-z,text'
  13743. archive_cmds_need_lc_CXX=no
  13744. hardcode_shlibpath_var_CXX=no
  13745. runpath_var='LD_RUN_PATH'
  13746. case $cc_basename in
  13747. CC*)
  13748. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13749. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13750. ;;
  13751. *)
  13752. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13753. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13754. ;;
  13755. esac
  13756. ;;
  13757. sysv5* | sco3.2v5* | sco5v6*)
  13758. # Note: We CANNOT use -z defs as we might desire, because we do not
  13759. # link with -lc, and that would cause any symbols used from libc to
  13760. # always be unresolved, which means just about no library would
  13761. # ever link correctly. If we're not using GNU ld we use -z text
  13762. # though, which does catch some bad symbols but isn't as heavy-handed
  13763. # as -z defs.
  13764. no_undefined_flag_CXX='$wl-z,text'
  13765. allow_undefined_flag_CXX='$wl-z,nodefs'
  13766. archive_cmds_need_lc_CXX=no
  13767. hardcode_shlibpath_var_CXX=no
  13768. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13769. hardcode_libdir_separator_CXX=':'
  13770. link_all_deplibs_CXX=yes
  13771. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13772. runpath_var='LD_RUN_PATH'
  13773. case $cc_basename in
  13774. CC*)
  13775. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13776. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13777. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13778. '"$old_archive_cmds_CXX"
  13779. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13780. '"$reload_cmds_CXX"
  13781. ;;
  13782. *)
  13783. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13784. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13785. ;;
  13786. esac
  13787. ;;
  13788. tandem*)
  13789. case $cc_basename in
  13790. NCC*)
  13791. # NonStop-UX NCC 3.20
  13792. # FIXME: insert proper C++ library support
  13793. ld_shlibs_CXX=no
  13794. ;;
  13795. *)
  13796. # FIXME: insert proper C++ library support
  13797. ld_shlibs_CXX=no
  13798. ;;
  13799. esac
  13800. ;;
  13801. vxworks*)
  13802. # FIXME: insert proper C++ library support
  13803. ld_shlibs_CXX=no
  13804. ;;
  13805. *)
  13806. # FIXME: insert proper C++ library support
  13807. ld_shlibs_CXX=no
  13808. ;;
  13809. esac
  13810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13811. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13812. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13813. GCC_CXX=$GXX
  13814. LD_CXX=$LD
  13815. ## CAVEAT EMPTOR:
  13816. ## There is no encapsulation within the following macros, do not change
  13817. ## the running order or otherwise move them around unless you know exactly
  13818. ## what you are doing...
  13819. # Dependencies to place before and after the object being linked:
  13820. predep_objects_CXX=
  13821. postdep_objects_CXX=
  13822. predeps_CXX=
  13823. postdeps_CXX=
  13824. compiler_lib_search_path_CXX=
  13825. cat > conftest.$ac_ext <<_LT_EOF
  13826. class Foo
  13827. {
  13828. public:
  13829. Foo (void) { a = 0; }
  13830. private:
  13831. int a;
  13832. };
  13833. _LT_EOF
  13834. _lt_libdeps_save_CFLAGS=$CFLAGS
  13835. case "$CC $CFLAGS " in #(
  13836. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13837. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13838. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13839. esac
  13840. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13841. (eval $ac_compile) 2>&5
  13842. ac_status=$?
  13843. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13844. test $ac_status = 0; }; then
  13845. # Parse the compiler output and extract the necessary
  13846. # objects, libraries and library flags.
  13847. # Sentinel used to keep track of whether or not we are before
  13848. # the conftest object file.
  13849. pre_test_object_deps_done=no
  13850. for p in `eval "$output_verbose_link_cmd"`; do
  13851. case $prev$p in
  13852. -L* | -R* | -l*)
  13853. # Some compilers place space between "-{L,R}" and the path.
  13854. # Remove the space.
  13855. if test x-L = "x$p" ||
  13856. test x-R = "x$p" ||
  13857. test x-l = "x$p"; then
  13858. prev=$p
  13859. continue
  13860. fi
  13861. # Expand the sysroot to ease extracting the directories later.
  13862. if test -z "$prev"; then
  13863. case $p in
  13864. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13865. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13866. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13867. esac
  13868. fi
  13869. case $p in
  13870. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13871. esac
  13872. if test no = "$pre_test_object_deps_done"; then
  13873. case $prev in
  13874. -L | -R)
  13875. # Internal compiler library paths should come after those
  13876. # provided the user. The postdeps already come after the
  13877. # user supplied libs so there is no need to process them.
  13878. if test -z "$compiler_lib_search_path_CXX"; then
  13879. compiler_lib_search_path_CXX=$prev$p
  13880. else
  13881. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13882. fi
  13883. ;;
  13884. # The "-l" case would never come before the object being
  13885. # linked, so don't bother handling this case.
  13886. esac
  13887. else
  13888. if test -z "$postdeps_CXX"; then
  13889. postdeps_CXX=$prev$p
  13890. else
  13891. postdeps_CXX="${postdeps_CXX} $prev$p"
  13892. fi
  13893. fi
  13894. prev=
  13895. ;;
  13896. *.lto.$objext) ;; # Ignore GCC LTO objects
  13897. *.$objext)
  13898. # This assumes that the test object file only shows up
  13899. # once in the compiler output.
  13900. if test "$p" = "conftest.$objext"; then
  13901. pre_test_object_deps_done=yes
  13902. continue
  13903. fi
  13904. if test no = "$pre_test_object_deps_done"; then
  13905. if test -z "$predep_objects_CXX"; then
  13906. predep_objects_CXX=$p
  13907. else
  13908. predep_objects_CXX="$predep_objects_CXX $p"
  13909. fi
  13910. else
  13911. if test -z "$postdep_objects_CXX"; then
  13912. postdep_objects_CXX=$p
  13913. else
  13914. postdep_objects_CXX="$postdep_objects_CXX $p"
  13915. fi
  13916. fi
  13917. ;;
  13918. *) ;; # Ignore the rest.
  13919. esac
  13920. done
  13921. # Clean up.
  13922. rm -f a.out a.exe
  13923. else
  13924. echo "libtool.m4: error: problem compiling CXX test program"
  13925. fi
  13926. $RM -f confest.$objext
  13927. CFLAGS=$_lt_libdeps_save_CFLAGS
  13928. # PORTME: override above test on systems where it is broken
  13929. case $host_os in
  13930. interix[3-9]*)
  13931. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13932. # hack all around it, let's just trust "g++" to DTRT.
  13933. predep_objects_CXX=
  13934. postdep_objects_CXX=
  13935. postdeps_CXX=
  13936. ;;
  13937. esac
  13938. case " $postdeps_CXX " in
  13939. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13940. esac
  13941. compiler_lib_search_dirs_CXX=
  13942. if test -n "${compiler_lib_search_path_CXX}"; then
  13943. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13944. fi
  13945. lt_prog_compiler_wl_CXX=
  13946. lt_prog_compiler_pic_CXX=
  13947. lt_prog_compiler_static_CXX=
  13948. # C++ specific cases for pic, static, wl, etc.
  13949. if test yes = "$GXX"; then
  13950. lt_prog_compiler_wl_CXX='-Wl,'
  13951. lt_prog_compiler_static_CXX='-static'
  13952. case $host_os in
  13953. aix*)
  13954. # All AIX code is PIC.
  13955. if test ia64 = "$host_cpu"; then
  13956. # AIX 5 now supports IA64 processor
  13957. lt_prog_compiler_static_CXX='-Bstatic'
  13958. fi
  13959. lt_prog_compiler_pic_CXX='-fPIC'
  13960. ;;
  13961. amigaos*)
  13962. case $host_cpu in
  13963. powerpc)
  13964. # see comment about AmigaOS4 .so support
  13965. lt_prog_compiler_pic_CXX='-fPIC'
  13966. ;;
  13967. m68k)
  13968. # FIXME: we need at least 68020 code to build shared libraries, but
  13969. # adding the '-m68020' flag to GCC prevents building anything better,
  13970. # like '-m68040'.
  13971. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13972. ;;
  13973. esac
  13974. ;;
  13975. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13976. # PIC is the default for these OSes.
  13977. ;;
  13978. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  13979. # This hack is so that the source file can tell whether it is being
  13980. # built for inclusion in a dll (and should export symbols for example).
  13981. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13982. # (--disable-auto-import) libraries
  13983. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13984. case $host_os in
  13985. os2*)
  13986. lt_prog_compiler_static_CXX='$wl-static'
  13987. ;;
  13988. esac
  13989. ;;
  13990. darwin* | rhapsody*)
  13991. # PIC is the default on this platform
  13992. # Common symbols not allowed in MH_DYLIB files
  13993. lt_prog_compiler_pic_CXX='-fno-common'
  13994. ;;
  13995. *djgpp*)
  13996. # DJGPP does not support shared libraries at all
  13997. lt_prog_compiler_pic_CXX=
  13998. ;;
  13999. haiku*)
  14000. # PIC is the default for Haiku.
  14001. # The "-static" flag exists, but is broken.
  14002. lt_prog_compiler_static_CXX=
  14003. ;;
  14004. interix[3-9]*)
  14005. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14006. # Instead, we relocate shared libraries at runtime.
  14007. ;;
  14008. sysv4*MP*)
  14009. if test -d /usr/nec; then
  14010. lt_prog_compiler_pic_CXX=-Kconform_pic
  14011. fi
  14012. ;;
  14013. hpux*)
  14014. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14015. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14016. # sets the default TLS model and affects inlining.
  14017. case $host_cpu in
  14018. hppa*64*)
  14019. ;;
  14020. *)
  14021. lt_prog_compiler_pic_CXX='-fPIC'
  14022. ;;
  14023. esac
  14024. ;;
  14025. *qnx* | *nto*)
  14026. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14027. # it will coredump.
  14028. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14029. ;;
  14030. *)
  14031. lt_prog_compiler_pic_CXX='-fPIC'
  14032. ;;
  14033. esac
  14034. else
  14035. case $host_os in
  14036. aix[4-9]*)
  14037. # All AIX code is PIC.
  14038. if test ia64 = "$host_cpu"; then
  14039. # AIX 5 now supports IA64 processor
  14040. lt_prog_compiler_static_CXX='-Bstatic'
  14041. else
  14042. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14043. fi
  14044. ;;
  14045. chorus*)
  14046. case $cc_basename in
  14047. cxch68*)
  14048. # Green Hills C++ Compiler
  14049. # _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"
  14050. ;;
  14051. esac
  14052. ;;
  14053. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  14054. # This hack is so that the source file can tell whether it is being
  14055. # built for inclusion in a dll (and should export symbols for example).
  14056. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14057. ;;
  14058. dgux*)
  14059. case $cc_basename in
  14060. ec++*)
  14061. lt_prog_compiler_pic_CXX='-KPIC'
  14062. ;;
  14063. ghcx*)
  14064. # Green Hills C++ Compiler
  14065. lt_prog_compiler_pic_CXX='-pic'
  14066. ;;
  14067. *)
  14068. ;;
  14069. esac
  14070. ;;
  14071. freebsd* | dragonfly* | midnightbsd*)
  14072. # FreeBSD uses GNU C++
  14073. ;;
  14074. hpux9* | hpux10* | hpux11*)
  14075. case $cc_basename in
  14076. CC*)
  14077. lt_prog_compiler_wl_CXX='-Wl,'
  14078. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14079. if test ia64 != "$host_cpu"; then
  14080. lt_prog_compiler_pic_CXX='+Z'
  14081. fi
  14082. ;;
  14083. aCC*)
  14084. lt_prog_compiler_wl_CXX='-Wl,'
  14085. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14086. case $host_cpu in
  14087. hppa*64*|ia64*)
  14088. # +Z the default
  14089. ;;
  14090. *)
  14091. lt_prog_compiler_pic_CXX='+Z'
  14092. ;;
  14093. esac
  14094. ;;
  14095. *)
  14096. ;;
  14097. esac
  14098. ;;
  14099. interix*)
  14100. # This is c89, which is MS Visual C++ (no shared libs)
  14101. # Anyone wants to do a port?
  14102. ;;
  14103. irix5* | irix6* | nonstopux*)
  14104. case $cc_basename in
  14105. CC*)
  14106. lt_prog_compiler_wl_CXX='-Wl,'
  14107. lt_prog_compiler_static_CXX='-non_shared'
  14108. # CC pic flag -KPIC is the default.
  14109. ;;
  14110. *)
  14111. ;;
  14112. esac
  14113. ;;
  14114. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14115. case $cc_basename in
  14116. KCC*)
  14117. # KAI C++ Compiler
  14118. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14119. lt_prog_compiler_pic_CXX='-fPIC'
  14120. ;;
  14121. ecpc* )
  14122. # old Intel C++ for x86_64, which still supported -KPIC.
  14123. lt_prog_compiler_wl_CXX='-Wl,'
  14124. lt_prog_compiler_pic_CXX='-KPIC'
  14125. lt_prog_compiler_static_CXX='-static'
  14126. ;;
  14127. icpc* )
  14128. # Intel C++, used to be incompatible with GCC.
  14129. # ICC 10 doesn't accept -KPIC any more.
  14130. lt_prog_compiler_wl_CXX='-Wl,'
  14131. lt_prog_compiler_pic_CXX='-fPIC'
  14132. lt_prog_compiler_static_CXX='-static'
  14133. ;;
  14134. pgCC* | pgcpp*)
  14135. # Portland Group C++ compiler
  14136. lt_prog_compiler_wl_CXX='-Wl,'
  14137. lt_prog_compiler_pic_CXX='-fpic'
  14138. lt_prog_compiler_static_CXX='-Bstatic'
  14139. ;;
  14140. cxx*)
  14141. # Compaq C++
  14142. # Make sure the PIC flag is empty. It appears that all Alpha
  14143. # Linux and Compaq Tru64 Unix objects are PIC.
  14144. lt_prog_compiler_pic_CXX=
  14145. lt_prog_compiler_static_CXX='-non_shared'
  14146. ;;
  14147. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14148. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14149. lt_prog_compiler_wl_CXX='-Wl,'
  14150. lt_prog_compiler_pic_CXX='-qpic'
  14151. lt_prog_compiler_static_CXX='-qstaticlink'
  14152. ;;
  14153. *)
  14154. case `$CC -V 2>&1 | sed 5q` in
  14155. *Sun\ C*)
  14156. # Sun C++ 5.9
  14157. lt_prog_compiler_pic_CXX='-KPIC'
  14158. lt_prog_compiler_static_CXX='-Bstatic'
  14159. lt_prog_compiler_wl_CXX='-Qoption ld '
  14160. ;;
  14161. esac
  14162. ;;
  14163. esac
  14164. ;;
  14165. lynxos*)
  14166. ;;
  14167. m88k*)
  14168. ;;
  14169. mvs*)
  14170. case $cc_basename in
  14171. cxx*)
  14172. lt_prog_compiler_pic_CXX='-W c,exportall'
  14173. ;;
  14174. *)
  14175. ;;
  14176. esac
  14177. ;;
  14178. netbsd*)
  14179. ;;
  14180. *qnx* | *nto*)
  14181. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14182. # it will coredump.
  14183. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14184. ;;
  14185. osf3* | osf4* | osf5*)
  14186. case $cc_basename in
  14187. KCC*)
  14188. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14189. ;;
  14190. RCC*)
  14191. # Rational C++ 2.4.1
  14192. lt_prog_compiler_pic_CXX='-pic'
  14193. ;;
  14194. cxx*)
  14195. # Digital/Compaq C++
  14196. lt_prog_compiler_wl_CXX='-Wl,'
  14197. # Make sure the PIC flag is empty. It appears that all Alpha
  14198. # Linux and Compaq Tru64 Unix objects are PIC.
  14199. lt_prog_compiler_pic_CXX=
  14200. lt_prog_compiler_static_CXX='-non_shared'
  14201. ;;
  14202. *)
  14203. ;;
  14204. esac
  14205. ;;
  14206. psos*)
  14207. ;;
  14208. solaris*)
  14209. case $cc_basename in
  14210. CC* | sunCC*)
  14211. # Sun C++ 4.2, 5.x and Centerline C++
  14212. lt_prog_compiler_pic_CXX='-KPIC'
  14213. lt_prog_compiler_static_CXX='-Bstatic'
  14214. lt_prog_compiler_wl_CXX='-Qoption ld '
  14215. ;;
  14216. gcx*)
  14217. # Green Hills C++ Compiler
  14218. lt_prog_compiler_pic_CXX='-PIC'
  14219. ;;
  14220. *)
  14221. ;;
  14222. esac
  14223. ;;
  14224. sunos4*)
  14225. case $cc_basename in
  14226. CC*)
  14227. # Sun C++ 4.x
  14228. lt_prog_compiler_pic_CXX='-pic'
  14229. lt_prog_compiler_static_CXX='-Bstatic'
  14230. ;;
  14231. lcc*)
  14232. # Lucid
  14233. lt_prog_compiler_pic_CXX='-pic'
  14234. ;;
  14235. *)
  14236. ;;
  14237. esac
  14238. ;;
  14239. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14240. case $cc_basename in
  14241. CC*)
  14242. lt_prog_compiler_wl_CXX='-Wl,'
  14243. lt_prog_compiler_pic_CXX='-KPIC'
  14244. lt_prog_compiler_static_CXX='-Bstatic'
  14245. ;;
  14246. esac
  14247. ;;
  14248. tandem*)
  14249. case $cc_basename in
  14250. NCC*)
  14251. # NonStop-UX NCC 3.20
  14252. lt_prog_compiler_pic_CXX='-KPIC'
  14253. ;;
  14254. *)
  14255. ;;
  14256. esac
  14257. ;;
  14258. vxworks*)
  14259. ;;
  14260. *)
  14261. lt_prog_compiler_can_build_shared_CXX=no
  14262. ;;
  14263. esac
  14264. fi
  14265. case $host_os in
  14266. # For platforms that do not support PIC, -DPIC is meaningless:
  14267. *djgpp*)
  14268. lt_prog_compiler_pic_CXX=
  14269. ;;
  14270. *)
  14271. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14272. ;;
  14273. esac
  14274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14275. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14276. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14277. then :
  14278. printf %s "(cached) " >&6
  14279. else $as_nop
  14280. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14281. fi
  14282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14283. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14284. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14285. #
  14286. # Check to make sure the PIC flag actually works.
  14287. #
  14288. if test -n "$lt_prog_compiler_pic_CXX"; then
  14289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14290. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14291. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14292. then :
  14293. printf %s "(cached) " >&6
  14294. else $as_nop
  14295. lt_cv_prog_compiler_pic_works_CXX=no
  14296. ac_outfile=conftest.$ac_objext
  14297. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14298. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14299. # Insert the option either (1) after the last *FLAGS variable, or
  14300. # (2) before a word containing "conftest.", or (3) at the end.
  14301. # Note that $ac_compile itself does not contain backslashes and begins
  14302. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14303. # The option is referenced via a variable to avoid confusing sed.
  14304. lt_compile=`echo "$ac_compile" | $SED \
  14305. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14306. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14307. -e 's:$: $lt_compiler_flag:'`
  14308. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14309. (eval "$lt_compile" 2>conftest.err)
  14310. ac_status=$?
  14311. cat conftest.err >&5
  14312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14313. if (exit $ac_status) && test -s "$ac_outfile"; then
  14314. # The compiler can only warn and ignore the option if not recognized
  14315. # So say no if there are warnings other than the usual output.
  14316. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14317. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14318. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14319. lt_cv_prog_compiler_pic_works_CXX=yes
  14320. fi
  14321. fi
  14322. $RM conftest*
  14323. fi
  14324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14325. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14326. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14327. case $lt_prog_compiler_pic_CXX in
  14328. "" | " "*) ;;
  14329. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14330. esac
  14331. else
  14332. lt_prog_compiler_pic_CXX=
  14333. lt_prog_compiler_can_build_shared_CXX=no
  14334. fi
  14335. fi
  14336. #
  14337. # Check to make sure the static flag actually works.
  14338. #
  14339. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14341. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14342. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14343. then :
  14344. printf %s "(cached) " >&6
  14345. else $as_nop
  14346. lt_cv_prog_compiler_static_works_CXX=no
  14347. save_LDFLAGS=$LDFLAGS
  14348. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14349. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14350. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14351. # The linker can only warn and ignore the option if not recognized
  14352. # So say no if there are warnings
  14353. if test -s conftest.err; then
  14354. # Append any errors to the config.log.
  14355. cat conftest.err 1>&5
  14356. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14357. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14358. if diff conftest.exp conftest.er2 >/dev/null; then
  14359. lt_cv_prog_compiler_static_works_CXX=yes
  14360. fi
  14361. else
  14362. lt_cv_prog_compiler_static_works_CXX=yes
  14363. fi
  14364. fi
  14365. $RM -r conftest*
  14366. LDFLAGS=$save_LDFLAGS
  14367. fi
  14368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14369. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14370. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14371. :
  14372. else
  14373. lt_prog_compiler_static_CXX=
  14374. fi
  14375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14376. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14377. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14378. then :
  14379. printf %s "(cached) " >&6
  14380. else $as_nop
  14381. lt_cv_prog_compiler_c_o_CXX=no
  14382. $RM -r conftest 2>/dev/null
  14383. mkdir conftest
  14384. cd conftest
  14385. mkdir out
  14386. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14387. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14388. # Insert the option either (1) after the last *FLAGS variable, or
  14389. # (2) before a word containing "conftest.", or (3) at the end.
  14390. # Note that $ac_compile itself does not contain backslashes and begins
  14391. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14392. lt_compile=`echo "$ac_compile" | $SED \
  14393. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14394. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14395. -e 's:$: $lt_compiler_flag:'`
  14396. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14397. (eval "$lt_compile" 2>out/conftest.err)
  14398. ac_status=$?
  14399. cat out/conftest.err >&5
  14400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14401. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14402. then
  14403. # The compiler can only warn and ignore the option if not recognized
  14404. # So say no if there are warnings
  14405. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14406. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14407. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14408. lt_cv_prog_compiler_c_o_CXX=yes
  14409. fi
  14410. fi
  14411. chmod u+w . 2>&5
  14412. $RM conftest*
  14413. # SGI C++ compiler will create directory out/ii_files/ for
  14414. # template instantiation
  14415. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14416. $RM out/* && rmdir out
  14417. cd ..
  14418. $RM -r conftest
  14419. $RM conftest*
  14420. fi
  14421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14422. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14424. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14425. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14426. then :
  14427. printf %s "(cached) " >&6
  14428. else $as_nop
  14429. lt_cv_prog_compiler_c_o_CXX=no
  14430. $RM -r conftest 2>/dev/null
  14431. mkdir conftest
  14432. cd conftest
  14433. mkdir out
  14434. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14435. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14436. # Insert the option either (1) after the last *FLAGS variable, or
  14437. # (2) before a word containing "conftest.", or (3) at the end.
  14438. # Note that $ac_compile itself does not contain backslashes and begins
  14439. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14440. lt_compile=`echo "$ac_compile" | $SED \
  14441. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14442. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14443. -e 's:$: $lt_compiler_flag:'`
  14444. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14445. (eval "$lt_compile" 2>out/conftest.err)
  14446. ac_status=$?
  14447. cat out/conftest.err >&5
  14448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14449. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14450. then
  14451. # The compiler can only warn and ignore the option if not recognized
  14452. # So say no if there are warnings
  14453. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14454. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14455. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14456. lt_cv_prog_compiler_c_o_CXX=yes
  14457. fi
  14458. fi
  14459. chmod u+w . 2>&5
  14460. $RM conftest*
  14461. # SGI C++ compiler will create directory out/ii_files/ for
  14462. # template instantiation
  14463. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14464. $RM out/* && rmdir out
  14465. cd ..
  14466. $RM -r conftest
  14467. $RM conftest*
  14468. fi
  14469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14470. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14471. hard_links=nottested
  14472. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14473. # do not overwrite the value of need_locks provided by the user
  14474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14475. printf %s "checking if we can lock with hard links... " >&6; }
  14476. hard_links=yes
  14477. $RM conftest*
  14478. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14479. touch conftest.a
  14480. ln conftest.a conftest.b 2>&5 || hard_links=no
  14481. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14483. printf "%s\n" "$hard_links" >&6; }
  14484. if test no = "$hard_links"; then
  14485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14486. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14487. need_locks=warn
  14488. fi
  14489. else
  14490. need_locks=no
  14491. fi
  14492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14493. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14494. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14495. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14496. case $host_os in
  14497. aix[4-9]*)
  14498. # If we're using GNU nm, then we don't want the "-C" option.
  14499. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14500. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14501. # weak defined symbols like other global defined symbols, whereas
  14502. # GNU nm marks them as "W".
  14503. # While the 'weak' keyword is ignored in the Export File, we need
  14504. # it in the Import File for the 'aix-soname' feature, so we have
  14505. # to replace the "-B" option with "-P" for AIX nm.
  14506. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14507. 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'
  14508. else
  14509. 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'
  14510. fi
  14511. ;;
  14512. pw32*)
  14513. export_symbols_cmds_CXX=$ltdll_cmds
  14514. ;;
  14515. cygwin* | mingw* | windows* | cegcc*)
  14516. case $cc_basename in
  14517. cl* | icl*)
  14518. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14519. ;;
  14520. *)
  14521. 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'
  14522. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14523. ;;
  14524. esac
  14525. ;;
  14526. *)
  14527. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14528. ;;
  14529. esac
  14530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14531. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14532. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14533. with_gnu_ld_CXX=$with_gnu_ld
  14534. #
  14535. # Do we need to explicitly link libc?
  14536. #
  14537. case "x$archive_cmds_need_lc_CXX" in
  14538. x|xyes)
  14539. # Assume -lc should be added
  14540. archive_cmds_need_lc_CXX=yes
  14541. if test yes,yes = "$GCC,$enable_shared"; then
  14542. case $archive_cmds_CXX in
  14543. *'~'*)
  14544. # FIXME: we may have to deal with multi-command sequences.
  14545. ;;
  14546. '$CC '*)
  14547. # Test whether the compiler implicitly links with -lc since on some
  14548. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14549. # to ld, don't add -lc before -lgcc.
  14550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14551. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14552. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14553. then :
  14554. printf %s "(cached) " >&6
  14555. else $as_nop
  14556. $RM conftest*
  14557. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14558. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14559. (eval $ac_compile) 2>&5
  14560. ac_status=$?
  14561. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14562. test $ac_status = 0; } 2>conftest.err; then
  14563. soname=conftest
  14564. lib=conftest
  14565. libobjs=conftest.$ac_objext
  14566. deplibs=
  14567. wl=$lt_prog_compiler_wl_CXX
  14568. pic_flag=$lt_prog_compiler_pic_CXX
  14569. compiler_flags=-v
  14570. linker_flags=-v
  14571. verstring=
  14572. output_objdir=.
  14573. libname=conftest
  14574. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14575. allow_undefined_flag_CXX=
  14576. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14577. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14578. ac_status=$?
  14579. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14580. test $ac_status = 0; }
  14581. then
  14582. lt_cv_archive_cmds_need_lc_CXX=no
  14583. else
  14584. lt_cv_archive_cmds_need_lc_CXX=yes
  14585. fi
  14586. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14587. else
  14588. cat conftest.err 1>&5
  14589. fi
  14590. $RM conftest*
  14591. fi
  14592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14593. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14594. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14595. ;;
  14596. esac
  14597. fi
  14598. ;;
  14599. esac
  14600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14601. printf %s "checking dynamic linker characteristics... " >&6; }
  14602. library_names_spec=
  14603. libname_spec='lib$name'
  14604. soname_spec=
  14605. shrext_cmds=.so
  14606. postinstall_cmds=
  14607. postuninstall_cmds=
  14608. finish_cmds=
  14609. finish_eval=
  14610. shlibpath_var=
  14611. shlibpath_overrides_runpath=unknown
  14612. version_type=none
  14613. dynamic_linker="$host_os ld.so"
  14614. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14615. need_lib_prefix=unknown
  14616. hardcode_into_libs=no
  14617. # when you set need_version to no, make sure it does not cause -set_version
  14618. # flags to be left without arguments
  14619. need_version=unknown
  14620. case $host_os in
  14621. aix3*)
  14622. version_type=linux # correct to gnu/linux during the next big refactor
  14623. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14624. shlibpath_var=LIBPATH
  14625. # AIX 3 has no versioning support, so we append a major version to the name.
  14626. soname_spec='$libname$release$shared_ext$major'
  14627. ;;
  14628. aix[4-9]*)
  14629. version_type=linux # correct to gnu/linux during the next big refactor
  14630. need_lib_prefix=no
  14631. need_version=no
  14632. hardcode_into_libs=yes
  14633. if test ia64 = "$host_cpu"; then
  14634. # AIX 5 supports IA64
  14635. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14636. shlibpath_var=LD_LIBRARY_PATH
  14637. else
  14638. # With GCC up to 2.95.x, collect2 would create an import file
  14639. # for dependence libraries. The import file would start with
  14640. # the line '#! .'. This would cause the generated library to
  14641. # depend on '.', always an invalid library. This was fixed in
  14642. # development snapshots of GCC prior to 3.0.
  14643. case $host_os in
  14644. aix4 | aix4.[01] | aix4.[01].*)
  14645. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14646. echo ' yes '
  14647. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14648. :
  14649. else
  14650. can_build_shared=no
  14651. fi
  14652. ;;
  14653. esac
  14654. # Using Import Files as archive members, it is possible to support
  14655. # filename-based versioning of shared library archives on AIX. While
  14656. # this would work for both with and without runtime linking, it will
  14657. # prevent static linking of such archives. So we do filename-based
  14658. # shared library versioning with .so extension only, which is used
  14659. # when both runtime linking and shared linking is enabled.
  14660. # Unfortunately, runtime linking may impact performance, so we do
  14661. # not want this to be the default eventually. Also, we use the
  14662. # versioned .so libs for executables only if there is the -brtl
  14663. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14664. # To allow for filename-based versioning support, we need to create
  14665. # libNAME.so.V as an archive file, containing:
  14666. # *) an Import File, referring to the versioned filename of the
  14667. # archive as well as the shared archive member, telling the
  14668. # bitwidth (32 or 64) of that shared object, and providing the
  14669. # list of exported symbols of that shared object, eventually
  14670. # decorated with the 'weak' keyword
  14671. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14672. # it being seen by the linker.
  14673. # At run time we better use the real file rather than another symlink,
  14674. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14675. case $with_aix_soname,$aix_use_runtimelinking in
  14676. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14677. # soname into executable. Probably we can add versioning support to
  14678. # collect2, so additional links can be useful in future.
  14679. aix,yes) # traditional libtool
  14680. dynamic_linker='AIX unversionable lib.so'
  14681. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14682. # instead of lib<name>.a to let people know that these are not
  14683. # typical AIX shared libraries.
  14684. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14685. ;;
  14686. aix,no) # traditional AIX only
  14687. dynamic_linker='AIX lib.a(lib.so.V)'
  14688. # We preserve .a as extension for shared libraries through AIX4.2
  14689. # and later when we are not doing run time linking.
  14690. library_names_spec='$libname$release.a $libname.a'
  14691. soname_spec='$libname$release$shared_ext$major'
  14692. ;;
  14693. svr4,*) # full svr4 only
  14694. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14695. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14696. # We do not specify a path in Import Files, so LIBPATH fires.
  14697. shlibpath_overrides_runpath=yes
  14698. ;;
  14699. *,yes) # both, prefer svr4
  14700. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14701. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14702. # unpreferred sharedlib libNAME.a needs extra handling
  14703. 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"'
  14704. 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"'
  14705. # We do not specify a path in Import Files, so LIBPATH fires.
  14706. shlibpath_overrides_runpath=yes
  14707. ;;
  14708. *,no) # both, prefer aix
  14709. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14710. library_names_spec='$libname$release.a $libname.a'
  14711. soname_spec='$libname$release$shared_ext$major'
  14712. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14713. 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)'
  14714. 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"'
  14715. ;;
  14716. esac
  14717. shlibpath_var=LIBPATH
  14718. fi
  14719. ;;
  14720. amigaos*)
  14721. case $host_cpu in
  14722. powerpc)
  14723. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14724. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14725. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14726. ;;
  14727. m68k)
  14728. library_names_spec='$libname.ixlibrary $libname.a'
  14729. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14730. 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'
  14731. ;;
  14732. esac
  14733. ;;
  14734. beos*)
  14735. library_names_spec='$libname$shared_ext'
  14736. dynamic_linker="$host_os ld.so"
  14737. shlibpath_var=LIBRARY_PATH
  14738. ;;
  14739. bsdi[45]*)
  14740. version_type=linux # correct to gnu/linux during the next big refactor
  14741. need_version=no
  14742. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14743. soname_spec='$libname$release$shared_ext$major'
  14744. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14745. shlibpath_var=LD_LIBRARY_PATH
  14746. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14747. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14748. # the default ld.so.conf also contains /usr/contrib/lib and
  14749. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14750. # libtool to hard-code these into programs
  14751. ;;
  14752. cygwin* | mingw* | windows* | pw32* | cegcc*)
  14753. version_type=windows
  14754. shrext_cmds=.dll
  14755. need_version=no
  14756. need_lib_prefix=no
  14757. case $GCC,$cc_basename in
  14758. yes,*)
  14759. # gcc
  14760. library_names_spec='$libname.dll.a'
  14761. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14762. postinstall_cmds='base_file=`basename \$file`~
  14763. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14764. dldir=$destdir/`dirname \$dlpath`~
  14765. test -d \$dldir || mkdir -p \$dldir~
  14766. $install_prog $dir/$dlname \$dldir/$dlname~
  14767. chmod a+x \$dldir/$dlname~
  14768. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14769. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14770. fi'
  14771. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14772. dlpath=$dir/\$dldll~
  14773. $RM \$dlpath'
  14774. shlibpath_overrides_runpath=yes
  14775. case $host_os in
  14776. cygwin*)
  14777. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14778. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14779. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization.
  14780. ;;
  14781. mingw* | windows* | cegcc*)
  14782. # MinGW DLLs use traditional 'lib' prefix
  14783. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14784. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization.
  14785. ;;
  14786. pw32*)
  14787. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14788. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14789. ;;
  14790. esac
  14791. dynamic_linker='Win32 ld.exe'
  14792. ;;
  14793. *,cl* | *,icl*)
  14794. # Native MSVC or ICC
  14795. libname_spec='$name'
  14796. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14797. library_names_spec='$libname.dll.lib'
  14798. case $build_os in
  14799. mingw* | windows*)
  14800. sys_lib_search_path_spec=
  14801. lt_save_ifs=$IFS
  14802. IFS=';'
  14803. for lt_path in $LIB
  14804. do
  14805. IFS=$lt_save_ifs
  14806. # Let DOS variable expansion print the short 8.3 style file name.
  14807. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14808. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14809. done
  14810. IFS=$lt_save_ifs
  14811. # Convert to MSYS style.
  14812. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14813. ;;
  14814. cygwin*)
  14815. # Convert to unix form, then to dos form, then back to unix form
  14816. # but this time dos style (no spaces!) so that the unix form looks
  14817. # like /cygdrive/c/PROGRA~1:/cygdr...
  14818. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14819. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14820. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14821. ;;
  14822. *)
  14823. sys_lib_search_path_spec=$LIB
  14824. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14825. # It is most probably a Windows format PATH.
  14826. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14827. else
  14828. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14829. fi
  14830. # FIXME: find the short name or the path components, as spaces are
  14831. # common. (e.g. "Program Files" -> "PROGRA~1")
  14832. ;;
  14833. esac
  14834. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14835. postinstall_cmds='base_file=`basename \$file`~
  14836. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14837. dldir=$destdir/`dirname \$dlpath`~
  14838. test -d \$dldir || mkdir -p \$dldir~
  14839. $install_prog $dir/$dlname \$dldir/$dlname'
  14840. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14841. dlpath=$dir/\$dldll~
  14842. $RM \$dlpath'
  14843. shlibpath_overrides_runpath=yes
  14844. dynamic_linker='Win32 link.exe'
  14845. ;;
  14846. *)
  14847. # Assume MSVC and ICC wrapper
  14848. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14849. dynamic_linker='Win32 ld.exe'
  14850. ;;
  14851. esac
  14852. # FIXME: first we should search . and the directory the executable is in
  14853. shlibpath_var=PATH
  14854. ;;
  14855. darwin* | rhapsody*)
  14856. dynamic_linker="$host_os dyld"
  14857. version_type=darwin
  14858. need_lib_prefix=no
  14859. need_version=no
  14860. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14861. soname_spec='$libname$release$major$shared_ext'
  14862. shlibpath_overrides_runpath=yes
  14863. shlibpath_var=DYLD_LIBRARY_PATH
  14864. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14865. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14866. ;;
  14867. dgux*)
  14868. version_type=linux # correct to gnu/linux during the next big refactor
  14869. need_lib_prefix=no
  14870. need_version=no
  14871. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14872. soname_spec='$libname$release$shared_ext$major'
  14873. shlibpath_var=LD_LIBRARY_PATH
  14874. ;;
  14875. freebsd* | dragonfly* | midnightbsd*)
  14876. # DragonFly does not have aout. When/if they implement a new
  14877. # versioning mechanism, adjust this.
  14878. if test -x /usr/bin/objformat; then
  14879. objformat=`/usr/bin/objformat`
  14880. else
  14881. case $host_os in
  14882. freebsd[23].*) objformat=aout ;;
  14883. *) objformat=elf ;;
  14884. esac
  14885. fi
  14886. version_type=freebsd-$objformat
  14887. case $version_type in
  14888. freebsd-elf*)
  14889. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14890. soname_spec='$libname$release$shared_ext$major'
  14891. need_version=no
  14892. need_lib_prefix=no
  14893. ;;
  14894. freebsd-*)
  14895. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14896. need_version=yes
  14897. ;;
  14898. esac
  14899. shlibpath_var=LD_LIBRARY_PATH
  14900. case $host_os in
  14901. freebsd2.*)
  14902. shlibpath_overrides_runpath=yes
  14903. ;;
  14904. freebsd3.[01]* | freebsdelf3.[01]*)
  14905. shlibpath_overrides_runpath=yes
  14906. hardcode_into_libs=yes
  14907. ;;
  14908. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14909. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14910. shlibpath_overrides_runpath=no
  14911. hardcode_into_libs=yes
  14912. ;;
  14913. *) # from 4.6 on, and DragonFly
  14914. shlibpath_overrides_runpath=yes
  14915. hardcode_into_libs=yes
  14916. ;;
  14917. esac
  14918. ;;
  14919. haiku*)
  14920. version_type=linux # correct to gnu/linux during the next big refactor
  14921. need_lib_prefix=no
  14922. need_version=no
  14923. dynamic_linker="$host_os runtime_loader"
  14924. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14925. soname_spec='$libname$release$shared_ext$major'
  14926. shlibpath_var=LIBRARY_PATH
  14927. shlibpath_overrides_runpath=no
  14928. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14929. hardcode_into_libs=yes
  14930. ;;
  14931. hpux9* | hpux10* | hpux11*)
  14932. # Give a soname corresponding to the major version so that dld.sl refuses to
  14933. # link against other versions.
  14934. version_type=sunos
  14935. need_lib_prefix=no
  14936. need_version=no
  14937. case $host_cpu in
  14938. ia64*)
  14939. shrext_cmds='.so'
  14940. hardcode_into_libs=yes
  14941. dynamic_linker="$host_os dld.so"
  14942. shlibpath_var=LD_LIBRARY_PATH
  14943. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14944. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14945. soname_spec='$libname$release$shared_ext$major'
  14946. if test 32 = "$HPUX_IA64_MODE"; then
  14947. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14948. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14949. else
  14950. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14951. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14952. fi
  14953. ;;
  14954. hppa*64*)
  14955. shrext_cmds='.sl'
  14956. hardcode_into_libs=yes
  14957. dynamic_linker="$host_os dld.sl"
  14958. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14959. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14960. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14961. soname_spec='$libname$release$shared_ext$major'
  14962. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14963. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14964. ;;
  14965. *)
  14966. shrext_cmds='.sl'
  14967. dynamic_linker="$host_os dld.sl"
  14968. shlibpath_var=SHLIB_PATH
  14969. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14970. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14971. soname_spec='$libname$release$shared_ext$major'
  14972. ;;
  14973. esac
  14974. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14975. postinstall_cmds='chmod 555 $lib'
  14976. # or fails outright, so override atomically:
  14977. install_override_mode=555
  14978. ;;
  14979. interix[3-9]*)
  14980. version_type=linux # correct to gnu/linux during the next big refactor
  14981. need_lib_prefix=no
  14982. need_version=no
  14983. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14984. soname_spec='$libname$release$shared_ext$major'
  14985. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14986. shlibpath_var=LD_LIBRARY_PATH
  14987. shlibpath_overrides_runpath=no
  14988. hardcode_into_libs=yes
  14989. ;;
  14990. irix5* | irix6* | nonstopux*)
  14991. case $host_os in
  14992. nonstopux*) version_type=nonstopux ;;
  14993. *)
  14994. if test yes = "$lt_cv_prog_gnu_ld"; then
  14995. version_type=linux # correct to gnu/linux during the next big refactor
  14996. else
  14997. version_type=irix
  14998. fi ;;
  14999. esac
  15000. need_lib_prefix=no
  15001. need_version=no
  15002. soname_spec='$libname$release$shared_ext$major'
  15003. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  15004. case $host_os in
  15005. irix5* | nonstopux*)
  15006. libsuff= shlibsuff=
  15007. ;;
  15008. *)
  15009. case $LD in # libtool.m4 will add one of these switches to LD
  15010. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15011. libsuff= shlibsuff= libmagic=32-bit;;
  15012. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15013. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15014. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15015. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15016. *) libsuff= shlibsuff= libmagic=never-match;;
  15017. esac
  15018. ;;
  15019. esac
  15020. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15021. shlibpath_overrides_runpath=no
  15022. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  15023. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  15024. hardcode_into_libs=yes
  15025. ;;
  15026. # No shared lib support for Linux oldld, aout, or coff.
  15027. linux*oldld* | linux*aout* | linux*coff*)
  15028. dynamic_linker=no
  15029. ;;
  15030. linux*android*)
  15031. version_type=none # Android doesn't support versioned libraries.
  15032. need_lib_prefix=no
  15033. need_version=no
  15034. library_names_spec='$libname$release$shared_ext'
  15035. soname_spec='$libname$release$shared_ext'
  15036. finish_cmds=
  15037. shlibpath_var=LD_LIBRARY_PATH
  15038. shlibpath_overrides_runpath=yes
  15039. # This implies no fast_install, which is unacceptable.
  15040. # Some rework will be needed to allow for fast_install
  15041. # before this can be enabled.
  15042. hardcode_into_libs=yes
  15043. dynamic_linker='Android linker'
  15044. # Don't embed -rpath directories since the linker doesn't support them.
  15045. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15046. ;;
  15047. # This must be glibc/ELF.
  15048. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15049. version_type=linux # correct to gnu/linux during the next big refactor
  15050. need_lib_prefix=no
  15051. need_version=no
  15052. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15053. soname_spec='$libname$release$shared_ext$major'
  15054. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15055. shlibpath_var=LD_LIBRARY_PATH
  15056. shlibpath_overrides_runpath=no
  15057. # Some binutils ld are patched to set DT_RUNPATH
  15058. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15059. then :
  15060. printf %s "(cached) " >&6
  15061. else $as_nop
  15062. lt_cv_shlibpath_overrides_runpath=no
  15063. save_LDFLAGS=$LDFLAGS
  15064. save_libdir=$libdir
  15065. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15066. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15068. /* end confdefs.h. */
  15069. int
  15070. main (void)
  15071. {
  15072. ;
  15073. return 0;
  15074. }
  15075. _ACEOF
  15076. if ac_fn_cxx_try_link "$LINENO"
  15077. then :
  15078. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15079. then :
  15080. lt_cv_shlibpath_overrides_runpath=yes
  15081. fi
  15082. fi
  15083. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15084. conftest$ac_exeext conftest.$ac_ext
  15085. LDFLAGS=$save_LDFLAGS
  15086. libdir=$save_libdir
  15087. fi
  15088. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15089. # This implies no fast_install, which is unacceptable.
  15090. # Some rework will be needed to allow for fast_install
  15091. # before this can be enabled.
  15092. hardcode_into_libs=yes
  15093. # Add ABI-specific directories to the system library path.
  15094. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15095. # Ideally, we could use ldconfig to report *all* directores which are
  15096. # searched for libraries, however this is still not possible. Aside from not
  15097. # being certain /sbin/ldconfig is available, command
  15098. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15099. # even though it is searched at run-time. Try to do the best guess by
  15100. # appending ld.so.conf contents (and includes) to the search path.
  15101. if test -f /etc/ld.so.conf; then
  15102. 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' ' '`
  15103. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15104. fi
  15105. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15106. # powerpc, because MkLinux only supported shared libraries with the
  15107. # GNU dynamic linker. Since this was broken with cross compilers,
  15108. # most powerpc-linux boxes support dynamic linking these days and
  15109. # people can always --disable-shared, the test was removed, and we
  15110. # assume the GNU/Linux dynamic linker is in use.
  15111. dynamic_linker='GNU/Linux ld.so'
  15112. ;;
  15113. netbsd*)
  15114. version_type=sunos
  15115. need_lib_prefix=no
  15116. need_version=no
  15117. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15118. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15119. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15120. dynamic_linker='NetBSD (a.out) ld.so'
  15121. else
  15122. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15123. soname_spec='$libname$release$shared_ext$major'
  15124. dynamic_linker='NetBSD ld.elf_so'
  15125. fi
  15126. shlibpath_var=LD_LIBRARY_PATH
  15127. shlibpath_overrides_runpath=yes
  15128. hardcode_into_libs=yes
  15129. ;;
  15130. newsos6)
  15131. version_type=linux # correct to gnu/linux during the next big refactor
  15132. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15133. shlibpath_var=LD_LIBRARY_PATH
  15134. shlibpath_overrides_runpath=yes
  15135. ;;
  15136. *nto* | *qnx*)
  15137. version_type=qnx
  15138. need_lib_prefix=no
  15139. need_version=no
  15140. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15141. soname_spec='$libname$release$shared_ext$major'
  15142. shlibpath_var=LD_LIBRARY_PATH
  15143. shlibpath_overrides_runpath=no
  15144. hardcode_into_libs=yes
  15145. dynamic_linker='ldqnx.so'
  15146. ;;
  15147. openbsd* | bitrig*)
  15148. version_type=sunos
  15149. sys_lib_dlsearch_path_spec=/usr/lib
  15150. need_lib_prefix=no
  15151. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15152. need_version=no
  15153. else
  15154. need_version=yes
  15155. fi
  15156. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15157. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15158. shlibpath_var=LD_LIBRARY_PATH
  15159. shlibpath_overrides_runpath=yes
  15160. ;;
  15161. os2*)
  15162. libname_spec='$name'
  15163. shrext_cmds=.dll
  15164. need_lib_prefix=no
  15165. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15166. # SDL customization: removed versioning support.
  15167. # version_type=windows
  15168. # need_version=no
  15169. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15170. # v=$($ECHO $release$versuffix | tr -d .-);
  15171. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15172. # $ECHO $n$v`$shared_ext'
  15173. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15174. library_names_spec='${libname}_dll.$libext'
  15175. dynamic_linker='OS/2 ld.exe'
  15176. shlibpath_var=BEGINLIBPATH
  15177. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15178. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15179. postinstall_cmds='base_file=`basename \$file`~
  15180. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15181. dldir=$destdir/`dirname \$dlpath`~
  15182. test -d \$dldir || mkdir -p \$dldir~
  15183. $install_prog $dir/$dlname \$dldir/$dlname~
  15184. chmod a+x \$dldir/$dlname~
  15185. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15186. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15187. fi'
  15188. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15189. dlpath=$dir/\$dldll~
  15190. $RM \$dlpath'
  15191. ;;
  15192. osf3* | osf4* | osf5*)
  15193. version_type=osf
  15194. need_lib_prefix=no
  15195. need_version=no
  15196. soname_spec='$libname$release$shared_ext$major'
  15197. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15198. shlibpath_var=LD_LIBRARY_PATH
  15199. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15200. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15201. ;;
  15202. rdos*)
  15203. dynamic_linker=no
  15204. ;;
  15205. solaris*)
  15206. version_type=linux # correct to gnu/linux during the next big refactor
  15207. need_lib_prefix=no
  15208. need_version=no
  15209. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15210. soname_spec='$libname$release$shared_ext$major'
  15211. shlibpath_var=LD_LIBRARY_PATH
  15212. shlibpath_overrides_runpath=yes
  15213. hardcode_into_libs=yes
  15214. # ldd complains unless libraries are executable
  15215. postinstall_cmds='chmod +x $lib'
  15216. ;;
  15217. sunos4*)
  15218. version_type=sunos
  15219. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15220. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15221. shlibpath_var=LD_LIBRARY_PATH
  15222. shlibpath_overrides_runpath=yes
  15223. if test yes = "$with_gnu_ld"; then
  15224. need_lib_prefix=no
  15225. fi
  15226. need_version=yes
  15227. ;;
  15228. sysv4 | sysv4.3*)
  15229. version_type=linux # correct to gnu/linux during the next big refactor
  15230. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15231. soname_spec='$libname$release$shared_ext$major'
  15232. shlibpath_var=LD_LIBRARY_PATH
  15233. case $host_vendor in
  15234. sni)
  15235. shlibpath_overrides_runpath=no
  15236. need_lib_prefix=no
  15237. runpath_var=LD_RUN_PATH
  15238. ;;
  15239. siemens)
  15240. need_lib_prefix=no
  15241. ;;
  15242. motorola)
  15243. need_lib_prefix=no
  15244. need_version=no
  15245. shlibpath_overrides_runpath=no
  15246. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15247. ;;
  15248. esac
  15249. ;;
  15250. sysv4*MP*)
  15251. if test -d /usr/nec; then
  15252. version_type=linux # correct to gnu/linux during the next big refactor
  15253. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15254. soname_spec='$libname$shared_ext.$major'
  15255. shlibpath_var=LD_LIBRARY_PATH
  15256. fi
  15257. ;;
  15258. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15259. version_type=sco
  15260. need_lib_prefix=no
  15261. need_version=no
  15262. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15263. soname_spec='$libname$release$shared_ext$major'
  15264. shlibpath_var=LD_LIBRARY_PATH
  15265. shlibpath_overrides_runpath=yes
  15266. hardcode_into_libs=yes
  15267. if test yes = "$with_gnu_ld"; then
  15268. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15269. else
  15270. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15271. case $host_os in
  15272. sco3.2v5*)
  15273. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15274. ;;
  15275. esac
  15276. fi
  15277. sys_lib_dlsearch_path_spec='/usr/lib'
  15278. ;;
  15279. tpf*)
  15280. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15281. version_type=linux # correct to gnu/linux during the next big refactor
  15282. need_lib_prefix=no
  15283. need_version=no
  15284. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15285. shlibpath_var=LD_LIBRARY_PATH
  15286. shlibpath_overrides_runpath=no
  15287. hardcode_into_libs=yes
  15288. ;;
  15289. uts4*)
  15290. version_type=linux # correct to gnu/linux during the next big refactor
  15291. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15292. soname_spec='$libname$release$shared_ext$major'
  15293. shlibpath_var=LD_LIBRARY_PATH
  15294. ;;
  15295. *)
  15296. dynamic_linker=no
  15297. ;;
  15298. esac
  15299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15300. printf "%s\n" "$dynamic_linker" >&6; }
  15301. test no = "$dynamic_linker" && can_build_shared=no
  15302. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15303. if test yes = "$GCC"; then
  15304. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15305. fi
  15306. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15307. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15308. fi
  15309. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15310. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15311. fi
  15312. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15313. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15314. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15315. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15316. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15317. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15319. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15320. hardcode_action_CXX=
  15321. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15322. test -n "$runpath_var_CXX" ||
  15323. test yes = "$hardcode_automatic_CXX"; then
  15324. # We can hardcode non-existent directories.
  15325. if test no != "$hardcode_direct_CXX" &&
  15326. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15327. # have to relink, otherwise we might link with an installed library
  15328. # when we should be linking with a yet-to-be-installed one
  15329. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15330. test no != "$hardcode_minus_L_CXX"; then
  15331. # Linking always hardcodes the temporary library directory.
  15332. hardcode_action_CXX=relink
  15333. else
  15334. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15335. hardcode_action_CXX=immediate
  15336. fi
  15337. else
  15338. # We cannot hardcode anything, or else we can only hardcode existing
  15339. # directories.
  15340. hardcode_action_CXX=unsupported
  15341. fi
  15342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15343. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15344. if test relink = "$hardcode_action_CXX" ||
  15345. test yes = "$inherit_rpath_CXX"; then
  15346. # Fast installation is not supported
  15347. enable_fast_install=no
  15348. elif test yes = "$shlibpath_overrides_runpath" ||
  15349. test no = "$enable_shared"; then
  15350. # Fast installation is not necessary
  15351. enable_fast_install=needless
  15352. fi
  15353. fi # test -n "$compiler"
  15354. CC=$lt_save_CC
  15355. CFLAGS=$lt_save_CFLAGS
  15356. LDCXX=$LD
  15357. LD=$lt_save_LD
  15358. GCC=$lt_save_GCC
  15359. with_gnu_ld=$lt_save_with_gnu_ld
  15360. lt_cv_path_LDCXX=$lt_cv_path_LD
  15361. lt_cv_path_LD=$lt_save_path_LD
  15362. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15363. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15364. fi # test yes != "$_lt_caught_CXX_error"
  15365. ac_ext=c
  15366. ac_cpp='$CPP $CPPFLAGS'
  15367. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15368. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15369. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15371. printf %s "checking for egrep... " >&6; }
  15372. if test ${ac_cv_path_EGREP+y}
  15373. then :
  15374. printf %s "(cached) " >&6
  15375. else $as_nop
  15376. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15377. then ac_cv_path_EGREP="$GREP -E"
  15378. else
  15379. if test -z "$EGREP"; then
  15380. ac_path_EGREP_found=false
  15381. # Loop through the user's path and test for each of PROGNAME-LIST
  15382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15383. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15384. do
  15385. IFS=$as_save_IFS
  15386. case $as_dir in #(((
  15387. '') as_dir=./ ;;
  15388. */) ;;
  15389. *) as_dir=$as_dir/ ;;
  15390. esac
  15391. for ac_prog in egrep
  15392. do
  15393. for ac_exec_ext in '' $ac_executable_extensions; do
  15394. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15395. as_fn_executable_p "$ac_path_EGREP" || continue
  15396. # Check for GNU ac_path_EGREP and select it if it is found.
  15397. # Check for GNU $ac_path_EGREP
  15398. case `"$ac_path_EGREP" --version 2>&1` in
  15399. *GNU*)
  15400. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15401. *)
  15402. ac_count=0
  15403. printf %s 0123456789 >"conftest.in"
  15404. while :
  15405. do
  15406. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15407. mv "conftest.tmp" "conftest.in"
  15408. cp "conftest.in" "conftest.nl"
  15409. printf "%s\n" 'EGREP' >> "conftest.nl"
  15410. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15411. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15412. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15413. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15414. # Best one so far, save it but keep looking for a better one
  15415. ac_cv_path_EGREP="$ac_path_EGREP"
  15416. ac_path_EGREP_max=$ac_count
  15417. fi
  15418. # 10*(2^10) chars as input seems more than enough
  15419. test $ac_count -gt 10 && break
  15420. done
  15421. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15422. esac
  15423. $ac_path_EGREP_found && break 3
  15424. done
  15425. done
  15426. done
  15427. IFS=$as_save_IFS
  15428. if test -z "$ac_cv_path_EGREP"; then
  15429. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15430. fi
  15431. else
  15432. ac_cv_path_EGREP=$EGREP
  15433. fi
  15434. fi
  15435. fi
  15436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15437. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15438. EGREP="$ac_cv_path_EGREP"
  15439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  15440. printf %s "checking for fgrep... " >&6; }
  15441. if test ${ac_cv_path_FGREP+y}
  15442. then :
  15443. printf %s "(cached) " >&6
  15444. else $as_nop
  15445. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  15446. then ac_cv_path_FGREP="$GREP -F"
  15447. else
  15448. if test -z "$FGREP"; then
  15449. ac_path_FGREP_found=false
  15450. # Loop through the user's path and test for each of PROGNAME-LIST
  15451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15452. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15453. do
  15454. IFS=$as_save_IFS
  15455. case $as_dir in #(((
  15456. '') as_dir=./ ;;
  15457. */) ;;
  15458. *) as_dir=$as_dir/ ;;
  15459. esac
  15460. for ac_prog in fgrep
  15461. do
  15462. for ac_exec_ext in '' $ac_executable_extensions; do
  15463. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  15464. as_fn_executable_p "$ac_path_FGREP" || continue
  15465. # Check for GNU ac_path_FGREP and select it if it is found.
  15466. # Check for GNU $ac_path_FGREP
  15467. case `"$ac_path_FGREP" --version 2>&1` in
  15468. *GNU*)
  15469. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  15470. *)
  15471. ac_count=0
  15472. printf %s 0123456789 >"conftest.in"
  15473. while :
  15474. do
  15475. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15476. mv "conftest.tmp" "conftest.in"
  15477. cp "conftest.in" "conftest.nl"
  15478. printf "%s\n" 'FGREP' >> "conftest.nl"
  15479. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15480. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15481. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15482. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  15483. # Best one so far, save it but keep looking for a better one
  15484. ac_cv_path_FGREP="$ac_path_FGREP"
  15485. ac_path_FGREP_max=$ac_count
  15486. fi
  15487. # 10*(2^10) chars as input seems more than enough
  15488. test $ac_count -gt 10 && break
  15489. done
  15490. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15491. esac
  15492. $ac_path_FGREP_found && break 3
  15493. done
  15494. done
  15495. done
  15496. IFS=$as_save_IFS
  15497. if test -z "$ac_cv_path_FGREP"; then
  15498. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15499. fi
  15500. else
  15501. ac_cv_path_FGREP=$FGREP
  15502. fi
  15503. fi
  15504. fi
  15505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  15506. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  15507. FGREP="$ac_cv_path_FGREP"
  15508. # Find a good install program. We prefer a C program (faster),
  15509. # so one script is as good as another. But avoid the broken or
  15510. # incompatible versions:
  15511. # SysV /etc/install, /usr/sbin/install
  15512. # SunOS /usr/etc/install
  15513. # IRIX /sbin/install
  15514. # AIX /bin/install
  15515. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15516. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15517. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15518. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15519. # OS/2's system install, which has a completely different semantic
  15520. # ./install, which can be erroneously created by make from ./install.sh.
  15521. # Reject install programs that cannot install multiple files.
  15522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15523. printf %s "checking for a BSD-compatible install... " >&6; }
  15524. if test -z "$INSTALL"; then
  15525. if test ${ac_cv_path_install+y}
  15526. then :
  15527. printf %s "(cached) " >&6
  15528. else $as_nop
  15529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15530. for as_dir in $PATH
  15531. do
  15532. IFS=$as_save_IFS
  15533. case $as_dir in #(((
  15534. '') as_dir=./ ;;
  15535. */) ;;
  15536. *) as_dir=$as_dir/ ;;
  15537. esac
  15538. # Account for fact that we put trailing slashes in our PATH walk.
  15539. case $as_dir in #((
  15540. ./ | /[cC]/* | \
  15541. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15542. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15543. /usr/ucb/* ) ;;
  15544. *)
  15545. # OSF1 and SCO ODT 3.0 have their own names for install.
  15546. # Don't use installbsd from OSF since it installs stuff as root
  15547. # by default.
  15548. for ac_prog in ginstall scoinst install; do
  15549. for ac_exec_ext in '' $ac_executable_extensions; do
  15550. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15551. if test $ac_prog = install &&
  15552. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15553. # AIX install. It has an incompatible calling convention.
  15554. :
  15555. elif test $ac_prog = install &&
  15556. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15557. # program-specific install script used by HP pwplus--don't use.
  15558. :
  15559. else
  15560. rm -rf conftest.one conftest.two conftest.dir
  15561. echo one > conftest.one
  15562. echo two > conftest.two
  15563. mkdir conftest.dir
  15564. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15565. test -s conftest.one && test -s conftest.two &&
  15566. test -s conftest.dir/conftest.one &&
  15567. test -s conftest.dir/conftest.two
  15568. then
  15569. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15570. break 3
  15571. fi
  15572. fi
  15573. fi
  15574. done
  15575. done
  15576. ;;
  15577. esac
  15578. done
  15579. IFS=$as_save_IFS
  15580. rm -rf conftest.one conftest.two conftest.dir
  15581. fi
  15582. if test ${ac_cv_path_install+y}; then
  15583. INSTALL=$ac_cv_path_install
  15584. else
  15585. # As a last resort, use the slow shell script. Don't cache a
  15586. # value for INSTALL within a source directory, because that will
  15587. # break other packages using the cache if that directory is
  15588. # removed, or if the value is a relative name.
  15589. INSTALL=$ac_install_sh
  15590. fi
  15591. fi
  15592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15593. printf "%s\n" "$INSTALL" >&6; }
  15594. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15595. # It thinks the first close brace ends the variable substitution.
  15596. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15597. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15598. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15600. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15601. set x ${MAKE-make}
  15602. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15603. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15604. then :
  15605. printf %s "(cached) " >&6
  15606. else $as_nop
  15607. cat >conftest.make <<\_ACEOF
  15608. SHELL = /bin/sh
  15609. all:
  15610. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15611. _ACEOF
  15612. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15613. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15614. *@@@%%%=?*=@@@%%%*)
  15615. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15616. *)
  15617. eval ac_cv_prog_make_${ac_make}_set=no;;
  15618. esac
  15619. rm -f conftest.make
  15620. fi
  15621. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15623. printf "%s\n" "yes" >&6; }
  15624. SET_MAKE=
  15625. else
  15626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15627. printf "%s\n" "no" >&6; }
  15628. SET_MAKE="MAKE=${MAKE-make}"
  15629. fi
  15630. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15631. if test -n "$ac_tool_prefix"; then
  15632. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15633. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15635. printf %s "checking for $ac_word... " >&6; }
  15636. if test ${ac_cv_path_PKG_CONFIG+y}
  15637. then :
  15638. printf %s "(cached) " >&6
  15639. else $as_nop
  15640. case $PKG_CONFIG in
  15641. [\\/]* | ?:[\\/]*)
  15642. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15643. ;;
  15644. *)
  15645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15646. for as_dir in $PATH
  15647. do
  15648. IFS=$as_save_IFS
  15649. case $as_dir in #(((
  15650. '') as_dir=./ ;;
  15651. */) ;;
  15652. *) as_dir=$as_dir/ ;;
  15653. esac
  15654. for ac_exec_ext in '' $ac_executable_extensions; do
  15655. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15656. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15657. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15658. break 2
  15659. fi
  15660. done
  15661. done
  15662. IFS=$as_save_IFS
  15663. ;;
  15664. esac
  15665. fi
  15666. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15667. if test -n "$PKG_CONFIG"; then
  15668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15669. printf "%s\n" "$PKG_CONFIG" >&6; }
  15670. else
  15671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15672. printf "%s\n" "no" >&6; }
  15673. fi
  15674. fi
  15675. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15676. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15677. # Extract the first word of "pkg-config", so it can be a program name with args.
  15678. set dummy pkg-config; ac_word=$2
  15679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15680. printf %s "checking for $ac_word... " >&6; }
  15681. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15682. then :
  15683. printf %s "(cached) " >&6
  15684. else $as_nop
  15685. case $ac_pt_PKG_CONFIG in
  15686. [\\/]* | ?:[\\/]*)
  15687. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15688. ;;
  15689. *)
  15690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15691. for as_dir in $PATH
  15692. do
  15693. IFS=$as_save_IFS
  15694. case $as_dir in #(((
  15695. '') as_dir=./ ;;
  15696. */) ;;
  15697. *) as_dir=$as_dir/ ;;
  15698. esac
  15699. for ac_exec_ext in '' $ac_executable_extensions; do
  15700. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15701. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15702. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15703. break 2
  15704. fi
  15705. done
  15706. done
  15707. IFS=$as_save_IFS
  15708. ;;
  15709. esac
  15710. fi
  15711. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15712. if test -n "$ac_pt_PKG_CONFIG"; then
  15713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15714. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15715. else
  15716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15717. printf "%s\n" "no" >&6; }
  15718. fi
  15719. if test "x$ac_pt_PKG_CONFIG" = x; then
  15720. PKG_CONFIG=""
  15721. else
  15722. case $cross_compiling:$ac_tool_warned in
  15723. yes:)
  15724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15725. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15726. ac_tool_warned=yes ;;
  15727. esac
  15728. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15729. fi
  15730. else
  15731. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15732. fi
  15733. fi
  15734. if test -n "$PKG_CONFIG"; then
  15735. _pkg_min_version=0.9.0
  15736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15737. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15738. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15740. printf "%s\n" "yes" >&6; }
  15741. else
  15742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15743. printf "%s\n" "no" >&6; }
  15744. PKG_CONFIG=""
  15745. fi
  15746. fi
  15747. if test -z "$AWK" ; then
  15748. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15749. fi
  15750. for ac_prog in gsort sort
  15751. do
  15752. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15753. set dummy $ac_prog; ac_word=$2
  15754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15755. printf %s "checking for $ac_word... " >&6; }
  15756. if test ${ac_cv_prog_SORT+y}
  15757. then :
  15758. printf %s "(cached) " >&6
  15759. else $as_nop
  15760. if test -n "$SORT"; then
  15761. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15762. else
  15763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15764. for as_dir in $PATH
  15765. do
  15766. IFS=$as_save_IFS
  15767. case $as_dir in #(((
  15768. '') as_dir=./ ;;
  15769. */) ;;
  15770. *) as_dir=$as_dir/ ;;
  15771. esac
  15772. for ac_exec_ext in '' $ac_executable_extensions; do
  15773. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15774. ac_cv_prog_SORT="$ac_prog"
  15775. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15776. break 2
  15777. fi
  15778. done
  15779. done
  15780. IFS=$as_save_IFS
  15781. fi
  15782. fi
  15783. SORT=$ac_cv_prog_SORT
  15784. if test -n "$SORT"; then
  15785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15786. printf "%s\n" "$SORT" >&6; }
  15787. else
  15788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15789. printf "%s\n" "no" >&6; }
  15790. fi
  15791. test -n "$SORT" && break
  15792. done
  15793. test -n "$SORT" || SORT="false"
  15794. if ! "$SORT" -V </dev/null >/dev/null
  15795. then :
  15796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15797. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15798. fi
  15799. # Check whether --enable-largefile was given.
  15800. if test ${enable_largefile+y}
  15801. then :
  15802. enableval=$enable_largefile;
  15803. fi
  15804. if test "$enable_largefile" != no; then
  15805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15806. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15807. if test ${ac_cv_sys_largefile_CC+y}
  15808. then :
  15809. printf %s "(cached) " >&6
  15810. else $as_nop
  15811. ac_cv_sys_largefile_CC=no
  15812. if test "$GCC" != yes; then
  15813. ac_save_CC=$CC
  15814. while :; do
  15815. # IRIX 6.2 and later do not support large files by default,
  15816. # so use the C compiler's -n32 option if that helps.
  15817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15818. /* end confdefs.h. */
  15819. #include <sys/types.h>
  15820. /* Check that off_t can represent 2**63 - 1 correctly.
  15821. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15822. since some C++ compilers masquerading as C compilers
  15823. incorrectly reject 9223372036854775807. */
  15824. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15825. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15826. && LARGE_OFF_T % 2147483647 == 1)
  15827. ? 1 : -1];
  15828. int
  15829. main (void)
  15830. {
  15831. ;
  15832. return 0;
  15833. }
  15834. _ACEOF
  15835. if ac_fn_c_try_compile "$LINENO"
  15836. then :
  15837. break
  15838. fi
  15839. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15840. CC="$CC -n32"
  15841. if ac_fn_c_try_compile "$LINENO"
  15842. then :
  15843. ac_cv_sys_largefile_CC=' -n32'; break
  15844. fi
  15845. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15846. break
  15847. done
  15848. CC=$ac_save_CC
  15849. rm -f conftest.$ac_ext
  15850. fi
  15851. fi
  15852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15853. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15854. if test "$ac_cv_sys_largefile_CC" != no; then
  15855. CC=$CC$ac_cv_sys_largefile_CC
  15856. fi
  15857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15858. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15859. if test ${ac_cv_sys_file_offset_bits+y}
  15860. then :
  15861. printf %s "(cached) " >&6
  15862. else $as_nop
  15863. while :; do
  15864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15865. /* end confdefs.h. */
  15866. #include <sys/types.h>
  15867. /* Check that off_t can represent 2**63 - 1 correctly.
  15868. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15869. since some C++ compilers masquerading as C compilers
  15870. incorrectly reject 9223372036854775807. */
  15871. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15872. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15873. && LARGE_OFF_T % 2147483647 == 1)
  15874. ? 1 : -1];
  15875. int
  15876. main (void)
  15877. {
  15878. ;
  15879. return 0;
  15880. }
  15881. _ACEOF
  15882. if ac_fn_c_try_compile "$LINENO"
  15883. then :
  15884. ac_cv_sys_file_offset_bits=no; break
  15885. fi
  15886. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15888. /* end confdefs.h. */
  15889. #define _FILE_OFFSET_BITS 64
  15890. #include <sys/types.h>
  15891. /* Check that off_t can represent 2**63 - 1 correctly.
  15892. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15893. since some C++ compilers masquerading as C compilers
  15894. incorrectly reject 9223372036854775807. */
  15895. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15896. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15897. && LARGE_OFF_T % 2147483647 == 1)
  15898. ? 1 : -1];
  15899. int
  15900. main (void)
  15901. {
  15902. ;
  15903. return 0;
  15904. }
  15905. _ACEOF
  15906. if ac_fn_c_try_compile "$LINENO"
  15907. then :
  15908. ac_cv_sys_file_offset_bits=64; break
  15909. fi
  15910. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15911. ac_cv_sys_file_offset_bits=unknown
  15912. break
  15913. done
  15914. fi
  15915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15916. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15917. case $ac_cv_sys_file_offset_bits in #(
  15918. no | unknown) ;;
  15919. *)
  15920. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15921. ;;
  15922. esac
  15923. rm -rf conftest*
  15924. if test $ac_cv_sys_file_offset_bits = unknown; then
  15925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15926. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15927. if test ${ac_cv_sys_large_files+y}
  15928. then :
  15929. printf %s "(cached) " >&6
  15930. else $as_nop
  15931. while :; do
  15932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15933. /* end confdefs.h. */
  15934. #include <sys/types.h>
  15935. /* Check that off_t can represent 2**63 - 1 correctly.
  15936. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15937. since some C++ compilers masquerading as C compilers
  15938. incorrectly reject 9223372036854775807. */
  15939. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15940. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15941. && LARGE_OFF_T % 2147483647 == 1)
  15942. ? 1 : -1];
  15943. int
  15944. main (void)
  15945. {
  15946. ;
  15947. return 0;
  15948. }
  15949. _ACEOF
  15950. if ac_fn_c_try_compile "$LINENO"
  15951. then :
  15952. ac_cv_sys_large_files=no; break
  15953. fi
  15954. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15956. /* end confdefs.h. */
  15957. #define _LARGE_FILES 1
  15958. #include <sys/types.h>
  15959. /* Check that off_t can represent 2**63 - 1 correctly.
  15960. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15961. since some C++ compilers masquerading as C compilers
  15962. incorrectly reject 9223372036854775807. */
  15963. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15964. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15965. && LARGE_OFF_T % 2147483647 == 1)
  15966. ? 1 : -1];
  15967. int
  15968. main (void)
  15969. {
  15970. ;
  15971. return 0;
  15972. }
  15973. _ACEOF
  15974. if ac_fn_c_try_compile "$LINENO"
  15975. then :
  15976. ac_cv_sys_large_files=1; break
  15977. fi
  15978. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15979. ac_cv_sys_large_files=unknown
  15980. break
  15981. done
  15982. fi
  15983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15984. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15985. case $ac_cv_sys_large_files in #(
  15986. no | unknown) ;;
  15987. *)
  15988. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15989. ;;
  15990. esac
  15991. rm -rf conftest*
  15992. fi
  15993. fi
  15994. case "$host" in
  15995. *-*-mingw*)
  15996. # Except on msys, where make can't handle full pathnames (bug 1972)
  15997. ;;
  15998. *)
  15999. srcdir=`cd $srcdir && pwd`
  16000. ;;
  16001. esac
  16002. INCLUDE="-I$srcdir/include"
  16003. case "$host" in
  16004. *-*-nto-qnx*)
  16005. ;;
  16006. *)
  16007. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  16008. ;;
  16009. esac
  16010. case "$host" in
  16011. *-*-haiku*)
  16012. LINKER='$(CXX)'
  16013. LIBTOOLLINKERTAG='CXX'
  16014. ;;
  16015. *)
  16016. LINKER='$(CC)'
  16017. LIBTOOLLINKERTAG='CC'
  16018. ;;
  16019. esac
  16020. if test x$srcdir != x.; then
  16021. INCLUDE="-Iinclude $INCLUDE"
  16022. elif test -d .git; then
  16023. as_fn_error $? "
  16024. *** When building from a git clone you should configure and build in a
  16025. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  16026. " "$LINENO" 5
  16027. fi
  16028. BASE_CFLAGS=""
  16029. BASE_LDFLAGS=""
  16030. case "$host" in
  16031. *-*-cygwin*)
  16032. # We build SDL on cygwin without the UNIX emulation layer
  16033. save_CFLAGS="$CFLAGS"
  16034. have_no_cygwin=no
  16035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  16036. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  16037. CFLAGS="$save_CFLAGS -mno-cygwin"
  16038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16039. /* end confdefs.h. */
  16040. int
  16041. main (void)
  16042. {
  16043. ;
  16044. return 0;
  16045. }
  16046. _ACEOF
  16047. if ac_fn_c_try_compile "$LINENO"
  16048. then :
  16049. have_no_cygwin=yes
  16050. fi
  16051. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  16053. printf "%s\n" "$have_no_cygwin" >&6; }
  16054. CFLAGS="$save_CFLAGS"
  16055. if test x$have_no_cygwin = xyes; then
  16056. BASE_CFLAGS="-mno-cygwin"
  16057. BASE_LDFLAGS="-mno-cygwin"
  16058. fi
  16059. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  16060. ;;
  16061. esac
  16062. # Uncomment the following line if you want to force SDL and applications
  16063. # built with it to be compiled for a particular architecture.
  16064. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  16065. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  16066. # The default optimization for SDL is -O3 (Bug #31)
  16067. if test "x$orig_CFLAGS" = x; then
  16068. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  16069. fi
  16070. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  16071. BUILD_LDFLAGS="$LDFLAGS"
  16072. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  16073. ## These are common directories to find software packages
  16074. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  16075. # if test -d $path/include; then
  16076. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  16077. # fi
  16078. # if test -d $path/lib; then
  16079. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  16080. # fi
  16081. #done
  16082. SDL_CFLAGS="$BASE_CFLAGS"
  16083. SDL_LIBS="-lSDL2"
  16084. if test "x$BASE_LDFLAGS" != x; then
  16085. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  16086. fi
  16087. if test "x$EXTRA_CFLAGS" != x; then
  16088. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  16089. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  16090. fi
  16091. if test "x$EXTRA_LDFLAGS" != x; then
  16092. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  16093. fi
  16094. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  16095. find_lib()
  16096. {
  16097. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16098. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16099. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  16100. if test "$cross_compiling" = yes; then
  16101. host_lib_path=""
  16102. else
  16103. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  16104. fi
  16105. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  16106. 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`
  16107. if test x$lib != x; then
  16108. echo $lib
  16109. return
  16110. fi
  16111. done
  16112. }
  16113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16114. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16115. if test ${ac_cv_c_const+y}
  16116. then :
  16117. printf %s "(cached) " >&6
  16118. else $as_nop
  16119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16120. /* end confdefs.h. */
  16121. int
  16122. main (void)
  16123. {
  16124. #ifndef __cplusplus
  16125. /* Ultrix mips cc rejects this sort of thing. */
  16126. typedef int charset[2];
  16127. const charset cs = { 0, 0 };
  16128. /* SunOS 4.1.1 cc rejects this. */
  16129. char const *const *pcpcc;
  16130. char **ppc;
  16131. /* NEC SVR4.0.2 mips cc rejects this. */
  16132. struct point {int x, y;};
  16133. static struct point const zero = {0,0};
  16134. /* IBM XL C 1.02.0.0 rejects this.
  16135. It does not let you subtract one const X* pointer from another in
  16136. an arm of an if-expression whose if-part is not a constant
  16137. expression */
  16138. const char *g = "string";
  16139. pcpcc = &g + (g ? g-g : 0);
  16140. /* HPUX 7.0 cc rejects these. */
  16141. ++pcpcc;
  16142. ppc = (char**) pcpcc;
  16143. pcpcc = (char const *const *) ppc;
  16144. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16145. char tx;
  16146. char *t = &tx;
  16147. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16148. *t++ = 0;
  16149. if (s) return 0;
  16150. }
  16151. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16152. int x[] = {25, 17};
  16153. const int *foo = &x[0];
  16154. ++foo;
  16155. }
  16156. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16157. typedef const int *iptr;
  16158. iptr p = 0;
  16159. ++p;
  16160. }
  16161. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16162. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16163. struct s { int j; const int *ap[3]; } bx;
  16164. struct s *b = &bx; b->j = 5;
  16165. }
  16166. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16167. const int foo = 10;
  16168. if (!foo) return 0;
  16169. }
  16170. return !cs[0] && !zero.x;
  16171. #endif
  16172. ;
  16173. return 0;
  16174. }
  16175. _ACEOF
  16176. if ac_fn_c_try_compile "$LINENO"
  16177. then :
  16178. ac_cv_c_const=yes
  16179. else $as_nop
  16180. ac_cv_c_const=no
  16181. fi
  16182. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16183. fi
  16184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16185. printf "%s\n" "$ac_cv_c_const" >&6; }
  16186. if test $ac_cv_c_const = no; then
  16187. printf "%s\n" "#define const /**/" >>confdefs.h
  16188. fi
  16189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16190. printf %s "checking for inline... " >&6; }
  16191. if test ${ac_cv_c_inline+y}
  16192. then :
  16193. printf %s "(cached) " >&6
  16194. else $as_nop
  16195. ac_cv_c_inline=no
  16196. for ac_kw in inline __inline__ __inline; do
  16197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16198. /* end confdefs.h. */
  16199. #ifndef __cplusplus
  16200. typedef int foo_t;
  16201. static $ac_kw foo_t static_foo (void) {return 0; }
  16202. $ac_kw foo_t foo (void) {return 0; }
  16203. #endif
  16204. _ACEOF
  16205. if ac_fn_c_try_compile "$LINENO"
  16206. then :
  16207. ac_cv_c_inline=$ac_kw
  16208. fi
  16209. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16210. test "$ac_cv_c_inline" != no && break
  16211. done
  16212. fi
  16213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16214. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16215. case $ac_cv_c_inline in
  16216. inline | yes) ;;
  16217. *)
  16218. case $ac_cv_c_inline in
  16219. no) ac_val=;;
  16220. *) ac_val=$ac_cv_c_inline;;
  16221. esac
  16222. cat >>confdefs.h <<_ACEOF
  16223. #ifndef __cplusplus
  16224. #define inline $ac_val
  16225. #endif
  16226. _ACEOF
  16227. ;;
  16228. esac
  16229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16230. printf %s "checking for working volatile... " >&6; }
  16231. if test ${ac_cv_c_volatile+y}
  16232. then :
  16233. printf %s "(cached) " >&6
  16234. else $as_nop
  16235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16236. /* end confdefs.h. */
  16237. int
  16238. main (void)
  16239. {
  16240. volatile int x;
  16241. int * volatile y = (int *) 0;
  16242. return !x && !y;
  16243. ;
  16244. return 0;
  16245. }
  16246. _ACEOF
  16247. if ac_fn_c_try_compile "$LINENO"
  16248. then :
  16249. ac_cv_c_volatile=yes
  16250. else $as_nop
  16251. ac_cv_c_volatile=no
  16252. fi
  16253. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16254. fi
  16255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16256. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16257. if test $ac_cv_c_volatile = no; then
  16258. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16259. fi
  16260. # Check whether --enable-assertions was given.
  16261. if test ${enable_assertions+y}
  16262. then :
  16263. enableval=$enable_assertions;
  16264. else $as_nop
  16265. enable_assertions=auto
  16266. fi
  16267. case "$enable_assertions" in
  16268. auto) # Use optimization settings to determine assertion level
  16269. ;;
  16270. disabled)
  16271. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16272. ;;
  16273. release)
  16274. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16275. ;;
  16276. enabled)
  16277. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16278. ;;
  16279. paranoid)
  16280. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16281. ;;
  16282. *)
  16283. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16284. ;;
  16285. esac
  16286. 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"
  16287. # Check whether --enable-dependency-tracking was given.
  16288. if test ${enable_dependency_tracking+y}
  16289. then :
  16290. enableval=$enable_dependency_tracking;
  16291. else $as_nop
  16292. enable_dependency_tracking=yes
  16293. fi
  16294. if test x$enable_dependency_tracking = xyes; then
  16295. have_gcc_mmd_mt=no
  16296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16297. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16299. /* end confdefs.h. */
  16300. #if !defined(__GNUC__) || __GNUC__ < 3
  16301. #error Dependency tracking requires GCC 3.0 or newer
  16302. #endif
  16303. int
  16304. main (void)
  16305. {
  16306. ;
  16307. return 0;
  16308. }
  16309. _ACEOF
  16310. if ac_fn_c_try_compile "$LINENO"
  16311. then :
  16312. have_gcc_mmd_mt=yes
  16313. fi
  16314. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16316. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16317. if test x$have_gcc_mmd_mt = xyes; then
  16318. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16319. fi
  16320. fi
  16321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16322. printf %s "checking for linker option --no-undefined... " >&6; }
  16323. have_no_undefined=no
  16324. case "$host" in
  16325. *-*-openbsd*)
  16326. ;;
  16327. *)
  16328. save_LDFLAGS="$LDFLAGS"
  16329. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16331. /* end confdefs.h. */
  16332. int
  16333. main (void)
  16334. {
  16335. ;
  16336. return 0;
  16337. }
  16338. _ACEOF
  16339. if ac_fn_c_try_link "$LINENO"
  16340. then :
  16341. have_no_undefined=yes
  16342. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16343. fi
  16344. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16345. conftest$ac_exeext conftest.$ac_ext
  16346. LDFLAGS="$save_LDFLAGS"
  16347. ;;
  16348. esac
  16349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16350. printf "%s\n" "$have_no_undefined" >&6; }
  16351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16352. printf %s "checking for linker option --dynamicbase... " >&6; }
  16353. have_dynamicbase=no
  16354. case "$host" in
  16355. *)
  16356. save_LDFLAGS="$LDFLAGS"
  16357. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16359. /* end confdefs.h. */
  16360. int
  16361. main (void)
  16362. {
  16363. ;
  16364. return 0;
  16365. }
  16366. _ACEOF
  16367. if ac_fn_c_try_link "$LINENO"
  16368. then :
  16369. have_dynamicbase=yes
  16370. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16371. fi
  16372. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16373. conftest$ac_exeext conftest.$ac_ext
  16374. LDFLAGS="$save_LDFLAGS"
  16375. ;;
  16376. esac
  16377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16378. printf "%s\n" "$have_dynamicbase" >&6; }
  16379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16380. printf %s "checking for linker option --nxcompat... " >&6; }
  16381. have_nxcompat=no
  16382. case "$host" in
  16383. *)
  16384. save_LDFLAGS="$LDFLAGS"
  16385. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16387. /* end confdefs.h. */
  16388. int
  16389. main (void)
  16390. {
  16391. ;
  16392. return 0;
  16393. }
  16394. _ACEOF
  16395. if ac_fn_c_try_link "$LINENO"
  16396. then :
  16397. have_nxcompat=yes
  16398. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16399. fi
  16400. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16401. conftest$ac_exeext conftest.$ac_ext
  16402. LDFLAGS="$save_LDFLAGS"
  16403. ;;
  16404. esac
  16405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16406. printf "%s\n" "$have_nxcompat" >&6; }
  16407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16408. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16409. have_high_entropy_va=no
  16410. case "$host" in
  16411. *)
  16412. save_LDFLAGS="$LDFLAGS"
  16413. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16415. /* end confdefs.h. */
  16416. int
  16417. main (void)
  16418. {
  16419. ;
  16420. return 0;
  16421. }
  16422. _ACEOF
  16423. if ac_fn_c_try_link "$LINENO"
  16424. then :
  16425. have_high_entropy_va=yes
  16426. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16427. fi
  16428. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16429. conftest$ac_exeext conftest.$ac_ext
  16430. LDFLAGS="$save_LDFLAGS"
  16431. ;;
  16432. esac
  16433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16434. printf "%s\n" "$have_high_entropy_va" >&6; }
  16435. # Check whether --enable-libc was given.
  16436. if test ${enable_libc+y}
  16437. then :
  16438. enableval=$enable_libc;
  16439. else $as_nop
  16440. enable_libc=yes
  16441. fi
  16442. enable_system_iconv_default=yes
  16443. case "$host" in
  16444. *-*-cygwin*|*-*-mingw*|*-*-darwin*|*-ios-*)
  16445. enable_system_iconv_default=no
  16446. ;;
  16447. esac
  16448. # Check whether --enable-system-iconv was given.
  16449. if test ${enable_system_iconv+y}
  16450. then :
  16451. enableval=$enable_system_iconv;
  16452. else $as_nop
  16453. enable_system_iconv=$enable_system_iconv_default
  16454. fi
  16455. # Check whether --enable-libiconv was given.
  16456. if test ${enable_libiconv+y}
  16457. then :
  16458. enableval=$enable_libiconv;
  16459. else $as_nop
  16460. enable_libiconv=no
  16461. fi
  16462. if test x$enable_libc = xyes; then
  16463. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16464. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16465. if test "x$ac_cv_header_sys_types_h" = xyes
  16466. then :
  16467. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16468. fi
  16469. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16470. if test "x$ac_cv_header_stdio_h" = xyes
  16471. then :
  16472. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16473. fi
  16474. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16475. if test "x$ac_cv_header_stdlib_h" = xyes
  16476. then :
  16477. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16478. fi
  16479. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16480. if test "x$ac_cv_header_stddef_h" = xyes
  16481. then :
  16482. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16483. fi
  16484. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16485. if test "x$ac_cv_header_stdarg_h" = xyes
  16486. then :
  16487. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16488. fi
  16489. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16490. if test "x$ac_cv_header_malloc_h" = xyes
  16491. then :
  16492. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16493. fi
  16494. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16495. if test "x$ac_cv_header_memory_h" = xyes
  16496. then :
  16497. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16498. fi
  16499. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16500. if test "x$ac_cv_header_string_h" = xyes
  16501. then :
  16502. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16503. fi
  16504. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16505. if test "x$ac_cv_header_strings_h" = xyes
  16506. then :
  16507. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16508. fi
  16509. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16510. if test "x$ac_cv_header_wchar_h" = xyes
  16511. then :
  16512. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16513. fi
  16514. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16515. if test "x$ac_cv_header_inttypes_h" = xyes
  16516. then :
  16517. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16518. fi
  16519. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16520. if test "x$ac_cv_header_stdint_h" = xyes
  16521. then :
  16522. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16523. fi
  16524. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16525. if test "x$ac_cv_header_limits_h" = xyes
  16526. then :
  16527. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16528. fi
  16529. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16530. if test "x$ac_cv_header_ctype_h" = xyes
  16531. then :
  16532. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16533. fi
  16534. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16535. if test "x$ac_cv_header_math_h" = xyes
  16536. then :
  16537. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16538. fi
  16539. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16540. if test "x$ac_cv_header_float_h" = xyes
  16541. then :
  16542. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16543. fi
  16544. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16545. if test "x$ac_cv_header_iconv_h" = xyes
  16546. then :
  16547. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16548. fi
  16549. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16550. if test "x$ac_cv_header_signal_h" = xyes
  16551. then :
  16552. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16553. fi
  16554. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16555. if test "x$ac_cv_type_size_t" = xyes
  16556. then :
  16557. else $as_nop
  16558. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16559. fi
  16560. ac_ext=c
  16561. ac_cpp='$CPP $CPPFLAGS'
  16562. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16563. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16564. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16566. printf %s "checking how to run the C preprocessor... " >&6; }
  16567. # On Suns, sometimes $CPP names a directory.
  16568. if test -n "$CPP" && test -d "$CPP"; then
  16569. CPP=
  16570. fi
  16571. if test -z "$CPP"; then
  16572. if test ${ac_cv_prog_CPP+y}
  16573. then :
  16574. printf %s "(cached) " >&6
  16575. else $as_nop
  16576. # Double quotes because $CC needs to be expanded
  16577. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16578. do
  16579. ac_preproc_ok=false
  16580. for ac_c_preproc_warn_flag in '' yes
  16581. do
  16582. # Use a header file that comes with gcc, so configuring glibc
  16583. # with a fresh cross-compiler works.
  16584. # On the NeXT, cc -E runs the code through the compiler's parser,
  16585. # not just through cpp. "Syntax error" is here to catch this case.
  16586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16587. /* end confdefs.h. */
  16588. #include <limits.h>
  16589. Syntax error
  16590. _ACEOF
  16591. if ac_fn_c_try_cpp "$LINENO"
  16592. then :
  16593. else $as_nop
  16594. # Broken: fails on valid input.
  16595. continue
  16596. fi
  16597. rm -f conftest.err conftest.i conftest.$ac_ext
  16598. # OK, works on sane cases. Now check whether nonexistent headers
  16599. # can be detected and how.
  16600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16601. /* end confdefs.h. */
  16602. #include <ac_nonexistent.h>
  16603. _ACEOF
  16604. if ac_fn_c_try_cpp "$LINENO"
  16605. then :
  16606. # Broken: success on invalid input.
  16607. continue
  16608. else $as_nop
  16609. # Passes both tests.
  16610. ac_preproc_ok=:
  16611. break
  16612. fi
  16613. rm -f conftest.err conftest.i conftest.$ac_ext
  16614. done
  16615. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16616. rm -f conftest.i conftest.err conftest.$ac_ext
  16617. if $ac_preproc_ok
  16618. then :
  16619. break
  16620. fi
  16621. done
  16622. ac_cv_prog_CPP=$CPP
  16623. fi
  16624. CPP=$ac_cv_prog_CPP
  16625. else
  16626. ac_cv_prog_CPP=$CPP
  16627. fi
  16628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16629. printf "%s\n" "$CPP" >&6; }
  16630. ac_preproc_ok=false
  16631. for ac_c_preproc_warn_flag in '' yes
  16632. do
  16633. # Use a header file that comes with gcc, so configuring glibc
  16634. # with a fresh cross-compiler works.
  16635. # On the NeXT, cc -E runs the code through the compiler's parser,
  16636. # not just through cpp. "Syntax error" is here to catch this case.
  16637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16638. /* end confdefs.h. */
  16639. #include <limits.h>
  16640. Syntax error
  16641. _ACEOF
  16642. if ac_fn_c_try_cpp "$LINENO"
  16643. then :
  16644. else $as_nop
  16645. # Broken: fails on valid input.
  16646. continue
  16647. fi
  16648. rm -f conftest.err conftest.i conftest.$ac_ext
  16649. # OK, works on sane cases. Now check whether nonexistent headers
  16650. # can be detected and how.
  16651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16652. /* end confdefs.h. */
  16653. #include <ac_nonexistent.h>
  16654. _ACEOF
  16655. if ac_fn_c_try_cpp "$LINENO"
  16656. then :
  16657. # Broken: success on invalid input.
  16658. continue
  16659. else $as_nop
  16660. # Passes both tests.
  16661. ac_preproc_ok=:
  16662. break
  16663. fi
  16664. rm -f conftest.err conftest.i conftest.$ac_ext
  16665. done
  16666. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16667. rm -f conftest.i conftest.err conftest.$ac_ext
  16668. if $ac_preproc_ok
  16669. then :
  16670. else $as_nop
  16671. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16672. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16673. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16674. See \`config.log' for more details" "$LINENO" 5; }
  16675. fi
  16676. ac_ext=c
  16677. ac_cpp='$CPP $CPPFLAGS'
  16678. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16679. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16680. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16682. printf %s "checking for M_PI in math.h... " >&6; }
  16683. if test ${ac_cv_define_M_PI+y}
  16684. then :
  16685. printf %s "(cached) " >&6
  16686. else $as_nop
  16687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16688. /* end confdefs.h. */
  16689. #include <math.h>
  16690. #ifdef M_PI
  16691. YES_IS_DEFINED
  16692. #endif
  16693. _ACEOF
  16694. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16695. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16696. then :
  16697. ac_cv_define_M_PI=yes
  16698. else $as_nop
  16699. ac_cv_define_M_PI=no
  16700. fi
  16701. rm -rf conftest*
  16702. fi
  16703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16704. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16705. if test "$ac_cv_define_M_PI" = "yes" ; then
  16706. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16707. fi
  16708. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16709. # for constant arguments. Useless!
  16710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16711. printf %s "checking for working alloca.h... " >&6; }
  16712. if test ${ac_cv_working_alloca_h+y}
  16713. then :
  16714. printf %s "(cached) " >&6
  16715. else $as_nop
  16716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16717. /* end confdefs.h. */
  16718. #include <alloca.h>
  16719. int
  16720. main (void)
  16721. {
  16722. char *p = (char *) alloca (2 * sizeof (int));
  16723. if (p) return 0;
  16724. ;
  16725. return 0;
  16726. }
  16727. _ACEOF
  16728. if ac_fn_c_try_link "$LINENO"
  16729. then :
  16730. ac_cv_working_alloca_h=yes
  16731. else $as_nop
  16732. ac_cv_working_alloca_h=no
  16733. fi
  16734. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16735. conftest$ac_exeext conftest.$ac_ext
  16736. fi
  16737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16738. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16739. if test $ac_cv_working_alloca_h = yes; then
  16740. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16741. fi
  16742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16743. printf %s "checking for alloca... " >&6; }
  16744. if test ${ac_cv_func_alloca_works+y}
  16745. then :
  16746. printf %s "(cached) " >&6
  16747. else $as_nop
  16748. if test $ac_cv_working_alloca_h = yes; then
  16749. ac_cv_func_alloca_works=yes
  16750. else
  16751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16752. /* end confdefs.h. */
  16753. #include <stdlib.h>
  16754. #include <stddef.h>
  16755. #ifndef alloca
  16756. # ifdef __GNUC__
  16757. # define alloca __builtin_alloca
  16758. # elif defined _MSC_VER
  16759. # include <malloc.h>
  16760. # define alloca _alloca
  16761. # else
  16762. # ifdef __cplusplus
  16763. extern "C"
  16764. # endif
  16765. void *alloca (size_t);
  16766. # endif
  16767. #endif
  16768. int
  16769. main (void)
  16770. {
  16771. char *p = (char *) alloca (1);
  16772. if (p) return 0;
  16773. ;
  16774. return 0;
  16775. }
  16776. _ACEOF
  16777. if ac_fn_c_try_link "$LINENO"
  16778. then :
  16779. ac_cv_func_alloca_works=yes
  16780. else $as_nop
  16781. ac_cv_func_alloca_works=no
  16782. fi
  16783. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16784. conftest$ac_exeext conftest.$ac_ext
  16785. fi
  16786. fi
  16787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16788. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16789. if test $ac_cv_func_alloca_works = yes; then
  16790. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16791. else
  16792. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16793. # that cause trouble. Some versions do not even contain alloca or
  16794. # contain a buggy version. If you still want to use their alloca,
  16795. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16796. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16797. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16799. printf %s "checking stack direction for C alloca... " >&6; }
  16800. if test ${ac_cv_c_stack_direction+y}
  16801. then :
  16802. printf %s "(cached) " >&6
  16803. else $as_nop
  16804. if test "$cross_compiling" = yes
  16805. then :
  16806. ac_cv_c_stack_direction=0
  16807. else $as_nop
  16808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16809. /* end confdefs.h. */
  16810. $ac_includes_default
  16811. int
  16812. find_stack_direction (int *addr, int depth)
  16813. {
  16814. int dir, dummy = 0;
  16815. if (! addr)
  16816. addr = &dummy;
  16817. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16818. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16819. return dir + dummy;
  16820. }
  16821. int
  16822. main (int argc, char **argv)
  16823. {
  16824. return find_stack_direction (0, argc + !argv + 20) < 0;
  16825. }
  16826. _ACEOF
  16827. if ac_fn_c_try_run "$LINENO"
  16828. then :
  16829. ac_cv_c_stack_direction=1
  16830. else $as_nop
  16831. ac_cv_c_stack_direction=-1
  16832. fi
  16833. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16834. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16835. fi
  16836. fi
  16837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16838. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16839. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16840. fi
  16841. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16842. if test "x$ac_cv_func_mprotect" = xyes
  16843. then :
  16844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16845. /* end confdefs.h. */
  16846. #include <sys/types.h>
  16847. #include <sys/mman.h>
  16848. int
  16849. main (void)
  16850. {
  16851. ;
  16852. return 0;
  16853. }
  16854. _ACEOF
  16855. if ac_fn_c_try_compile "$LINENO"
  16856. then :
  16857. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16858. fi
  16859. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16860. fi
  16861. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16862. if test "x$ac_cv_func_malloc" = xyes
  16863. then :
  16864. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16865. fi
  16866. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16867. if test "x$ac_cv_func_calloc" = xyes
  16868. then :
  16869. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16870. fi
  16871. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16872. if test "x$ac_cv_func_realloc" = xyes
  16873. then :
  16874. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16875. fi
  16876. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16877. if test "x$ac_cv_func_free" = xyes
  16878. then :
  16879. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16880. fi
  16881. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16882. if test "x$ac_cv_func_getenv" = xyes
  16883. then :
  16884. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16885. fi
  16886. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16887. if test "x$ac_cv_func_setenv" = xyes
  16888. then :
  16889. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16890. fi
  16891. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16892. if test "x$ac_cv_func_putenv" = xyes
  16893. then :
  16894. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16895. fi
  16896. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16897. if test "x$ac_cv_func_unsetenv" = xyes
  16898. then :
  16899. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16900. fi
  16901. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16902. if test "x$ac_cv_func_bsearch" = xyes
  16903. then :
  16904. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16905. fi
  16906. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16907. if test "x$ac_cv_func_qsort" = xyes
  16908. then :
  16909. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16910. fi
  16911. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16912. if test "x$ac_cv_func_abs" = xyes
  16913. then :
  16914. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16915. fi
  16916. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16917. if test "x$ac_cv_func_bcopy" = xyes
  16918. then :
  16919. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16920. fi
  16921. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16922. if test "x$ac_cv_func_memset" = xyes
  16923. then :
  16924. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16925. fi
  16926. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16927. if test "x$ac_cv_func_memcmp" = xyes
  16928. then :
  16929. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16930. fi
  16931. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16932. if test "x$ac_cv_func_memcpy" = xyes
  16933. then :
  16934. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16935. fi
  16936. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16937. if test "x$ac_cv_func_memmove" = xyes
  16938. then :
  16939. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16940. fi
  16941. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16942. if test "x$ac_cv_func_wcslen" = xyes
  16943. then :
  16944. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16945. fi
  16946. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16947. if test "x$ac_cv_func_wcslcpy" = xyes
  16948. then :
  16949. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16950. fi
  16951. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16952. if test "x$ac_cv_func_wcslcat" = xyes
  16953. then :
  16954. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16955. fi
  16956. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16957. if test "x$ac_cv_func__wcsdup" = xyes
  16958. then :
  16959. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16960. fi
  16961. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16962. if test "x$ac_cv_func_wcsdup" = xyes
  16963. then :
  16964. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16965. fi
  16966. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16967. if test "x$ac_cv_func_wcsstr" = xyes
  16968. then :
  16969. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16970. fi
  16971. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16972. if test "x$ac_cv_func_wcscmp" = xyes
  16973. then :
  16974. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16975. fi
  16976. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16977. if test "x$ac_cv_func_wcsncmp" = xyes
  16978. then :
  16979. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16980. fi
  16981. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16982. if test "x$ac_cv_func_wcscasecmp" = xyes
  16983. then :
  16984. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16985. fi
  16986. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16987. if test "x$ac_cv_func__wcsicmp" = xyes
  16988. then :
  16989. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16990. fi
  16991. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16992. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16993. then :
  16994. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16995. fi
  16996. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16997. if test "x$ac_cv_func__wcsnicmp" = xyes
  16998. then :
  16999. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  17000. fi
  17001. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  17002. if test "x$ac_cv_func_strlen" = xyes
  17003. then :
  17004. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  17005. fi
  17006. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  17007. if test "x$ac_cv_func_strlcpy" = xyes
  17008. then :
  17009. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  17010. fi
  17011. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  17012. if test "x$ac_cv_func_strlcat" = xyes
  17013. then :
  17014. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  17015. fi
  17016. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  17017. if test "x$ac_cv_func__strrev" = xyes
  17018. then :
  17019. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  17020. fi
  17021. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  17022. if test "x$ac_cv_func__strupr" = xyes
  17023. then :
  17024. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  17025. fi
  17026. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  17027. if test "x$ac_cv_func__strlwr" = xyes
  17028. then :
  17029. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  17030. fi
  17031. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  17032. if test "x$ac_cv_func_index" = xyes
  17033. then :
  17034. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  17035. fi
  17036. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  17037. if test "x$ac_cv_func_rindex" = xyes
  17038. then :
  17039. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  17040. fi
  17041. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  17042. if test "x$ac_cv_func_strchr" = xyes
  17043. then :
  17044. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  17045. fi
  17046. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  17047. if test "x$ac_cv_func_strrchr" = xyes
  17048. then :
  17049. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  17050. fi
  17051. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  17052. if test "x$ac_cv_func_strstr" = xyes
  17053. then :
  17054. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  17055. fi
  17056. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  17057. if test "x$ac_cv_func_strtok_r" = xyes
  17058. then :
  17059. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  17060. fi
  17061. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  17062. if test "x$ac_cv_func_itoa" = xyes
  17063. then :
  17064. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  17065. fi
  17066. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  17067. if test "x$ac_cv_func__ltoa" = xyes
  17068. then :
  17069. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  17070. fi
  17071. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17072. if test "x$ac_cv_func__ultoa" = xyes
  17073. then :
  17074. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17075. fi
  17076. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  17077. if test "x$ac_cv_func_strtod" = xyes
  17078. then :
  17079. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  17080. fi
  17081. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17082. if test "x$ac_cv_func_strtol" = xyes
  17083. then :
  17084. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17085. fi
  17086. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17087. if test "x$ac_cv_func_strtoul" = xyes
  17088. then :
  17089. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17090. fi
  17091. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17092. if test "x$ac_cv_func__i64toa" = xyes
  17093. then :
  17094. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17095. fi
  17096. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17097. if test "x$ac_cv_func__ui64toa" = xyes
  17098. then :
  17099. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17100. fi
  17101. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17102. if test "x$ac_cv_func_strtoll" = xyes
  17103. then :
  17104. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17105. fi
  17106. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17107. if test "x$ac_cv_func_strtoull" = xyes
  17108. then :
  17109. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17110. fi
  17111. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17112. if test "x$ac_cv_func_atoi" = xyes
  17113. then :
  17114. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17115. fi
  17116. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17117. if test "x$ac_cv_func_atof" = xyes
  17118. then :
  17119. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17120. fi
  17121. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17122. if test "x$ac_cv_func_strcmp" = xyes
  17123. then :
  17124. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17125. fi
  17126. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17127. if test "x$ac_cv_func_strncmp" = xyes
  17128. then :
  17129. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17130. fi
  17131. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17132. if test "x$ac_cv_func__stricmp" = xyes
  17133. then :
  17134. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17135. fi
  17136. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17137. if test "x$ac_cv_func_strcasecmp" = xyes
  17138. then :
  17139. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17140. fi
  17141. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17142. if test "x$ac_cv_func__strnicmp" = xyes
  17143. then :
  17144. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17145. fi
  17146. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17147. if test "x$ac_cv_func_strncasecmp" = xyes
  17148. then :
  17149. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17150. fi
  17151. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17152. if test "x$ac_cv_func_strcasestr" = xyes
  17153. then :
  17154. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17155. fi
  17156. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17157. if test "x$ac_cv_func_vsscanf" = xyes
  17158. then :
  17159. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17160. fi
  17161. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17162. if test "x$ac_cv_func_vsnprintf" = xyes
  17163. then :
  17164. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17165. fi
  17166. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17167. if test "x$ac_cv_func_fopen64" = xyes
  17168. then :
  17169. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17170. fi
  17171. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17172. if test "x$ac_cv_func_fseeko" = xyes
  17173. then :
  17174. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17175. fi
  17176. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17177. if test "x$ac_cv_func_fseeko64" = xyes
  17178. then :
  17179. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17180. fi
  17181. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17182. if test "x$ac_cv_func_sigaction" = xyes
  17183. then :
  17184. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17185. fi
  17186. ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait"
  17187. if test "x$ac_cv_func_sigtimedwait" = xyes
  17188. then :
  17189. printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
  17190. fi
  17191. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17192. if test "x$ac_cv_func_setjmp" = xyes
  17193. then :
  17194. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17195. fi
  17196. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17197. if test "x$ac_cv_func_nanosleep" = xyes
  17198. then :
  17199. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17200. fi
  17201. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17202. if test "x$ac_cv_func_sysconf" = xyes
  17203. then :
  17204. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17205. fi
  17206. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17207. if test "x$ac_cv_func_sysctlbyname" = xyes
  17208. then :
  17209. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17210. fi
  17211. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17212. if test "x$ac_cv_func_getauxval" = xyes
  17213. then :
  17214. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17215. fi
  17216. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17217. if test "x$ac_cv_func_elf_aux_info" = xyes
  17218. then :
  17219. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17220. fi
  17221. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17222. if test "x$ac_cv_func_poll" = xyes
  17223. then :
  17224. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17225. fi
  17226. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  17227. if test "x$ac_cv_func_memfd_create" = xyes
  17228. then :
  17229. printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
  17230. fi
  17231. ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  17232. if test "x$ac_cv_func_posix_fallocate" = xyes
  17233. then :
  17234. printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
  17235. fi
  17236. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17237. if test "x$ac_cv_func__Exit" = xyes
  17238. then :
  17239. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17240. fi
  17241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17242. printf %s "checking for pow in -lm... " >&6; }
  17243. if test ${ac_cv_lib_m_pow+y}
  17244. then :
  17245. printf %s "(cached) " >&6
  17246. else $as_nop
  17247. ac_check_lib_save_LIBS=$LIBS
  17248. LIBS="-lm $LIBS"
  17249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17250. /* end confdefs.h. */
  17251. /* Override any GCC internal prototype to avoid an error.
  17252. Use char because int might match the return type of a GCC
  17253. builtin and then its argument prototype would still apply. */
  17254. char pow ();
  17255. int
  17256. main (void)
  17257. {
  17258. return pow ();
  17259. ;
  17260. return 0;
  17261. }
  17262. _ACEOF
  17263. if ac_fn_c_try_link "$LINENO"
  17264. then :
  17265. ac_cv_lib_m_pow=yes
  17266. else $as_nop
  17267. ac_cv_lib_m_pow=no
  17268. fi
  17269. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17270. conftest$ac_exeext conftest.$ac_ext
  17271. LIBS=$ac_check_lib_save_LIBS
  17272. fi
  17273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17274. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17275. if test "x$ac_cv_lib_m_pow" = xyes
  17276. then :
  17277. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17278. fi
  17279. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17280. if test "x$ac_cv_func_acos" = xyes
  17281. then :
  17282. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17283. fi
  17284. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17285. if test "x$ac_cv_func_acosf" = xyes
  17286. then :
  17287. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17288. fi
  17289. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17290. if test "x$ac_cv_func_asin" = xyes
  17291. then :
  17292. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17293. fi
  17294. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17295. if test "x$ac_cv_func_asinf" = xyes
  17296. then :
  17297. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17298. fi
  17299. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17300. if test "x$ac_cv_func_atan" = xyes
  17301. then :
  17302. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17303. fi
  17304. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17305. if test "x$ac_cv_func_atanf" = xyes
  17306. then :
  17307. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17308. fi
  17309. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17310. if test "x$ac_cv_func_atan2" = xyes
  17311. then :
  17312. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17313. fi
  17314. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17315. if test "x$ac_cv_func_atan2f" = xyes
  17316. then :
  17317. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17318. fi
  17319. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17320. if test "x$ac_cv_func_ceil" = xyes
  17321. then :
  17322. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17323. fi
  17324. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17325. if test "x$ac_cv_func_ceilf" = xyes
  17326. then :
  17327. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17328. fi
  17329. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17330. if test "x$ac_cv_func_copysign" = xyes
  17331. then :
  17332. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17333. fi
  17334. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17335. if test "x$ac_cv_func_copysignf" = xyes
  17336. then :
  17337. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17338. fi
  17339. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17340. if test "x$ac_cv_func_cos" = xyes
  17341. then :
  17342. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17343. fi
  17344. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17345. if test "x$ac_cv_func_cosf" = xyes
  17346. then :
  17347. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17348. fi
  17349. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17350. if test "x$ac_cv_func_exp" = xyes
  17351. then :
  17352. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17353. fi
  17354. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17355. if test "x$ac_cv_func_expf" = xyes
  17356. then :
  17357. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17358. fi
  17359. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17360. if test "x$ac_cv_func_fabs" = xyes
  17361. then :
  17362. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17363. fi
  17364. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17365. if test "x$ac_cv_func_fabsf" = xyes
  17366. then :
  17367. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17368. fi
  17369. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17370. if test "x$ac_cv_func_floor" = xyes
  17371. then :
  17372. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17373. fi
  17374. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17375. if test "x$ac_cv_func_floorf" = xyes
  17376. then :
  17377. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17378. fi
  17379. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17380. if test "x$ac_cv_func_trunc" = xyes
  17381. then :
  17382. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17383. fi
  17384. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17385. if test "x$ac_cv_func_truncf" = xyes
  17386. then :
  17387. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17388. fi
  17389. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17390. if test "x$ac_cv_func_fmod" = xyes
  17391. then :
  17392. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17393. fi
  17394. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17395. if test "x$ac_cv_func_fmodf" = xyes
  17396. then :
  17397. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17398. fi
  17399. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17400. if test "x$ac_cv_func_log" = xyes
  17401. then :
  17402. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17403. fi
  17404. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17405. if test "x$ac_cv_func_logf" = xyes
  17406. then :
  17407. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17408. fi
  17409. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17410. if test "x$ac_cv_func_log10" = xyes
  17411. then :
  17412. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17413. fi
  17414. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17415. if test "x$ac_cv_func_log10f" = xyes
  17416. then :
  17417. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17418. fi
  17419. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17420. if test "x$ac_cv_func_lround" = xyes
  17421. then :
  17422. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17423. fi
  17424. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17425. if test "x$ac_cv_func_lroundf" = xyes
  17426. then :
  17427. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17428. fi
  17429. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17430. if test "x$ac_cv_func_pow" = xyes
  17431. then :
  17432. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17433. fi
  17434. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17435. if test "x$ac_cv_func_powf" = xyes
  17436. then :
  17437. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17438. fi
  17439. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17440. if test "x$ac_cv_func_round" = xyes
  17441. then :
  17442. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17443. fi
  17444. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17445. if test "x$ac_cv_func_roundf" = xyes
  17446. then :
  17447. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17448. fi
  17449. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17450. if test "x$ac_cv_func_scalbn" = xyes
  17451. then :
  17452. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17453. fi
  17454. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17455. if test "x$ac_cv_func_scalbnf" = xyes
  17456. then :
  17457. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17458. fi
  17459. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17460. if test "x$ac_cv_func_sin" = xyes
  17461. then :
  17462. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17463. fi
  17464. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17465. if test "x$ac_cv_func_sinf" = xyes
  17466. then :
  17467. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17468. fi
  17469. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17470. if test "x$ac_cv_func_sqrt" = xyes
  17471. then :
  17472. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17473. fi
  17474. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17475. if test "x$ac_cv_func_sqrtf" = xyes
  17476. then :
  17477. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17478. fi
  17479. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17480. if test "x$ac_cv_func_tan" = xyes
  17481. then :
  17482. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17483. fi
  17484. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17485. if test "x$ac_cv_func_tanf" = xyes
  17486. then :
  17487. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17488. fi
  17489. if test x$enable_system_iconv = xyes; then
  17490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libc" >&5
  17491. printf %s "checking for iconv in libc... " >&6; }
  17492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17493. /* end confdefs.h. */
  17494. #define LIBICONV_PLUG 1 /* in case libiconv header is in include path */
  17495. #include <stddef.h>
  17496. #include <iconv.h>
  17497. int
  17498. main (void)
  17499. {
  17500. iconv_open(NULL,NULL);
  17501. ;
  17502. return 0;
  17503. }
  17504. _ACEOF
  17505. if ac_fn_c_try_link "$LINENO"
  17506. then :
  17507. have_libc_iconv=yes
  17508. else $as_nop
  17509. have_libc_iconv=no
  17510. fi
  17511. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17512. conftest$ac_exeext conftest.$ac_ext
  17513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libc_iconv" >&5
  17514. printf "%s\n" "$have_libc_iconv" >&6; }
  17515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libiconv" >&5
  17516. printf %s "checking for iconv in libiconv... " >&6; }
  17517. save_LIBS="$LIBS"
  17518. LIBS="$LIBS -liconv"
  17519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17520. /* end confdefs.h. */
  17521. #include <stddef.h>
  17522. #include <iconv.h>
  17523. int
  17524. main (void)
  17525. {
  17526. iconv_open(NULL,NULL);
  17527. ;
  17528. return 0;
  17529. }
  17530. _ACEOF
  17531. if ac_fn_c_try_link "$LINENO"
  17532. then :
  17533. have_libiconv=yes
  17534. else $as_nop
  17535. have_libiconv=no
  17536. fi
  17537. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17538. conftest$ac_exeext conftest.$ac_ext
  17539. LIBS="$save_LIBS"
  17540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libiconv" >&5
  17541. printf "%s\n" "$have_libiconv" >&6; }
  17542. if test x$have_libc_iconv = xyes || test x$have_libiconv = xyes; then
  17543. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17544. if test x$have_libiconv = xyes; then
  17545. if test x$have_libc_iconv != xyes; then
  17546. use_libiconv=yes
  17547. elif test x$enable_libiconv = xyes; then
  17548. use_libiconv=yes
  17549. fi
  17550. fi
  17551. if test x$use_libiconv = xyes; then
  17552. printf "%s\n" "#define SDL_USE_LIBICONV 1" >>confdefs.h
  17553. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17554. echo "-- Using iconv from libiconv"
  17555. else
  17556. echo "-- Using iconv from libc"
  17557. fi
  17558. fi
  17559. fi
  17560. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17561. "
  17562. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17563. then :
  17564. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17565. fi
  17566. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17567. if test "x$ac_cv_header_libunwind_h" = xyes
  17568. then :
  17569. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17570. fi
  17571. fi
  17572. # Check whether --enable-gcc-atomics was given.
  17573. if test ${enable_gcc_atomics+y}
  17574. then :
  17575. enableval=$enable_gcc_atomics;
  17576. else $as_nop
  17577. enable_gcc_atomics=yes
  17578. fi
  17579. if test x$enable_gcc_atomics = xyes; then
  17580. have_gcc_atomics=no
  17581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17582. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17584. /* end confdefs.h. */
  17585. int
  17586. main (void)
  17587. {
  17588. int a;
  17589. void *x, *y, *z;
  17590. __sync_lock_test_and_set(&a, 4);
  17591. __sync_lock_test_and_set(&x, y);
  17592. __sync_fetch_and_add(&a, 1);
  17593. __sync_bool_compare_and_swap(&a, 5, 10);
  17594. __sync_bool_compare_and_swap(&x, y, z);
  17595. ;
  17596. return 0;
  17597. }
  17598. _ACEOF
  17599. if ac_fn_c_try_link "$LINENO"
  17600. then :
  17601. have_gcc_atomics=yes
  17602. fi
  17603. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17604. conftest$ac_exeext conftest.$ac_ext
  17605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17606. printf "%s\n" "$have_gcc_atomics" >&6; }
  17607. if test x$have_gcc_atomics = xyes; then
  17608. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17609. else
  17610. # See if we have the minimum operation needed for GCC atomics
  17611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17612. /* end confdefs.h. */
  17613. int
  17614. main (void)
  17615. {
  17616. int a;
  17617. __sync_lock_test_and_set(&a, 1);
  17618. __sync_lock_release(&a);
  17619. ;
  17620. return 0;
  17621. }
  17622. _ACEOF
  17623. if ac_fn_c_try_link "$LINENO"
  17624. then :
  17625. have_gcc_sync_lock_test_and_set=yes
  17626. fi
  17627. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17628. conftest$ac_exeext conftest.$ac_ext
  17629. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17630. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17631. fi
  17632. fi
  17633. fi
  17634. # Standard C sources
  17635. SOURCES="$SOURCES $srcdir/src/*.c"
  17636. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17637. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17638. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17639. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17640. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17641. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17642. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17643. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17644. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17645. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17646. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17647. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17648. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17649. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17650. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17651. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17652. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17653. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17654. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17655. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17656. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17657. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17658. case "$host" in
  17659. *-*-emscripten*)
  17660. default_atomic=no
  17661. ;;
  17662. *)
  17663. default_atomic=yes
  17664. ;;
  17665. esac
  17666. # Check whether --enable-atomic was given.
  17667. if test ${enable_atomic+y}
  17668. then :
  17669. enableval=$enable_atomic;
  17670. else $as_nop
  17671. enable_atomic=$default_atomic
  17672. fi
  17673. if test x$enable_atomic != xyes; then
  17674. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17675. else
  17676. SUMMARY_modules="${SUMMARY_modules} atomic"
  17677. fi
  17678. # Check whether --enable-audio was given.
  17679. if test ${enable_audio+y}
  17680. then :
  17681. enableval=$enable_audio;
  17682. else $as_nop
  17683. enable_audio=yes
  17684. fi
  17685. if test x$enable_audio != xyes; then
  17686. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17687. else
  17688. SUMMARY_modules="${SUMMARY_modules} audio"
  17689. fi
  17690. # Check whether --enable-video was given.
  17691. if test ${enable_video+y}
  17692. then :
  17693. enableval=$enable_video;
  17694. else $as_nop
  17695. enable_video=yes
  17696. fi
  17697. if test x$enable_video != xyes; then
  17698. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17699. else
  17700. SUMMARY_modules="${SUMMARY_modules} video"
  17701. fi
  17702. # Check whether --enable-render was given.
  17703. if test ${enable_render+y}
  17704. then :
  17705. enableval=$enable_render;
  17706. else $as_nop
  17707. enable_render=yes
  17708. fi
  17709. if test x$enable_render != xyes; then
  17710. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17711. else
  17712. SUMMARY_modules="${SUMMARY_modules} render"
  17713. fi
  17714. # Check whether --enable-events was given.
  17715. if test ${enable_events+y}
  17716. then :
  17717. enableval=$enable_events;
  17718. else $as_nop
  17719. enable_events=yes
  17720. fi
  17721. if test x$enable_events != xyes; then
  17722. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17723. else
  17724. SUMMARY_modules="${SUMMARY_modules} events"
  17725. fi
  17726. # Check whether --enable-joystick was given.
  17727. if test ${enable_joystick+y}
  17728. then :
  17729. enableval=$enable_joystick;
  17730. else $as_nop
  17731. enable_joystick=yes
  17732. fi
  17733. if test x$enable_joystick != xyes; then
  17734. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17735. else
  17736. SUMMARY_modules="${SUMMARY_modules} joystick"
  17737. fi
  17738. # Check whether --enable-haptic was given.
  17739. if test ${enable_haptic+y}
  17740. then :
  17741. enableval=$enable_haptic;
  17742. else $as_nop
  17743. enable_haptic=yes
  17744. fi
  17745. if test x$enable_haptic != xyes; then
  17746. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17747. else
  17748. SUMMARY_modules="${SUMMARY_modules} haptic"
  17749. fi
  17750. # Check whether --enable-hidapi was given.
  17751. if test ${enable_hidapi+y}
  17752. then :
  17753. enableval=$enable_hidapi;
  17754. else $as_nop
  17755. enable_hidapi=yes
  17756. fi
  17757. if test x$enable_hidapi != xyes; then
  17758. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17759. else
  17760. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17761. fi
  17762. # Check whether --enable-sensor was given.
  17763. if test ${enable_sensor+y}
  17764. then :
  17765. enableval=$enable_sensor;
  17766. else $as_nop
  17767. enable_sensor=yes
  17768. fi
  17769. if test x$enable_sensor != xyes; then
  17770. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17771. else
  17772. SUMMARY_modules="${SUMMARY_modules} sensor"
  17773. fi
  17774. # Check whether --enable-power was given.
  17775. if test ${enable_power+y}
  17776. then :
  17777. enableval=$enable_power;
  17778. else $as_nop
  17779. enable_power=yes
  17780. fi
  17781. if test x$enable_power != xyes; then
  17782. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17783. else
  17784. SUMMARY_modules="${SUMMARY_modules} power"
  17785. fi
  17786. # Check whether --enable-filesystem was given.
  17787. if test ${enable_filesystem+y}
  17788. then :
  17789. enableval=$enable_filesystem;
  17790. else $as_nop
  17791. enable_filesystem=yes
  17792. fi
  17793. if test x$enable_filesystem != xyes; then
  17794. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17795. else
  17796. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17797. fi
  17798. # Many subsystems depend on threads, so leave them enabled by default
  17799. #AC_ARG_ENABLE(threads,
  17800. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17801. # , enable_threads=yes)
  17802. enable_threads=yes
  17803. if test x$enable_threads != xyes; then
  17804. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17805. else
  17806. SUMMARY_modules="${SUMMARY_modules} threads"
  17807. fi
  17808. # Check whether --enable-timers was given.
  17809. if test ${enable_timers+y}
  17810. then :
  17811. enableval=$enable_timers;
  17812. else $as_nop
  17813. enable_timers=yes
  17814. fi
  17815. if test x$enable_timers != xyes; then
  17816. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17817. else
  17818. SUMMARY_modules="${SUMMARY_modules} timers"
  17819. fi
  17820. # Check whether --enable-file was given.
  17821. if test ${enable_file+y}
  17822. then :
  17823. enableval=$enable_file;
  17824. else $as_nop
  17825. enable_file=yes
  17826. fi
  17827. if test x$enable_file != xyes; then
  17828. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17829. else
  17830. SUMMARY_modules="${SUMMARY_modules} file"
  17831. fi
  17832. # Check whether --enable-misc was given.
  17833. if test ${enable_misc+y}
  17834. then :
  17835. enableval=$enable_misc;
  17836. else $as_nop
  17837. enable_misc=yes
  17838. fi
  17839. if test x$enable_misc != xyes; then
  17840. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17841. else
  17842. SUMMARY_modules="${SUMMARY_modules} misc"
  17843. fi
  17844. # Check whether --enable-locale was given.
  17845. if test ${enable_locale+y}
  17846. then :
  17847. enableval=$enable_locale;
  17848. else $as_nop
  17849. enable_locale=yes
  17850. fi
  17851. if test x$enable_locale != xyes; then
  17852. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17853. else
  17854. SUMMARY_modules="${SUMMARY_modules} locale"
  17855. fi
  17856. # Check whether --enable-loadso was given.
  17857. if test ${enable_loadso+y}
  17858. then :
  17859. enableval=$enable_loadso;
  17860. else $as_nop
  17861. enable_loadso=yes
  17862. fi
  17863. if test x$enable_loadso != xyes; then
  17864. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17865. else
  17866. SUMMARY_modules="${SUMMARY_modules} loadso"
  17867. fi
  17868. # Check whether --enable-cpuinfo was given.
  17869. if test ${enable_cpuinfo+y}
  17870. then :
  17871. enableval=$enable_cpuinfo;
  17872. else $as_nop
  17873. enable_cpuinfo=yes
  17874. fi
  17875. if test x$enable_cpuinfo != xyes; then
  17876. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17877. else
  17878. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17879. fi
  17880. # Check whether --enable-assembly was given.
  17881. if test ${enable_assembly+y}
  17882. then :
  17883. enableval=$enable_assembly;
  17884. else $as_nop
  17885. enable_assembly=yes
  17886. fi
  17887. if test x$enable_assembly = xyes; then
  17888. SUMMARY_modules="${SUMMARY_modules} assembly"
  17889. # Make sure that we don't generate floating point code that would
  17890. # cause illegal instruction exceptions on older processors
  17891. case "$host" in
  17892. *-*-darwin*)
  17893. # Don't need to worry about Apple hardware, it's all SSE capable
  17894. default_ssemath=yes
  17895. ;;
  17896. *64-*-*)
  17897. # x86 64-bit architectures all have SSE instructions
  17898. default_ssemath=yes
  17899. ;;
  17900. *)
  17901. default_ssemath=no
  17902. ;;
  17903. esac
  17904. # Check whether --enable-ssemath was given.
  17905. if test ${enable_ssemath+y}
  17906. then :
  17907. enableval=$enable_ssemath;
  17908. else $as_nop
  17909. enable_ssemath=$default_ssemath
  17910. fi
  17911. if test x$enable_ssemath = xno; then
  17912. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17913. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17914. fi
  17915. fi
  17916. # Check whether --enable-mmx was given.
  17917. if test ${enable_mmx+y}
  17918. then :
  17919. enableval=$enable_mmx;
  17920. else $as_nop
  17921. enable_mmx=yes
  17922. fi
  17923. if test x$enable_mmx = xyes; then
  17924. save_CFLAGS="$CFLAGS"
  17925. have_gcc_mmx=no
  17926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17927. printf %s "checking for GCC -mmmx option... " >&6; }
  17928. mmx_CFLAGS="-mmmx"
  17929. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17931. /* end confdefs.h. */
  17932. #ifdef __MINGW32__
  17933. #include <_mingw.h>
  17934. #ifdef __MINGW64_VERSION_MAJOR
  17935. #include <intrin.h>
  17936. #else
  17937. #include <mmintrin.h>
  17938. #endif
  17939. #else
  17940. #include <mmintrin.h>
  17941. #endif
  17942. #ifndef __MMX__
  17943. #error Assembler CPP flag not enabled
  17944. #endif
  17945. int
  17946. main (void)
  17947. {
  17948. ;
  17949. return 0;
  17950. }
  17951. _ACEOF
  17952. if ac_fn_c_try_compile "$LINENO"
  17953. then :
  17954. have_gcc_mmx=yes
  17955. fi
  17956. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17958. printf "%s\n" "$have_gcc_mmx" >&6; }
  17959. CFLAGS="$save_CFLAGS"
  17960. if test x$have_gcc_mmx = xyes; then
  17961. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17962. SUMMARY_math="${SUMMARY_math} mmx"
  17963. fi
  17964. fi
  17965. # Check whether --enable-3dnow was given.
  17966. if test ${enable_3dnow+y}
  17967. then :
  17968. enableval=$enable_3dnow;
  17969. else $as_nop
  17970. enable_3dnow=no
  17971. fi
  17972. if test x$enable_3dnow = xyes; then
  17973. save_CFLAGS="$CFLAGS"
  17974. have_gcc_3dnow=no
  17975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17976. printf %s "checking for GCC -m3dnow option... " >&6; }
  17977. amd3dnow_CFLAGS="-m3dnow"
  17978. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17980. /* end confdefs.h. */
  17981. #include <mm3dnow.h>
  17982. #ifndef __3dNOW__
  17983. #error Assembler CPP flag not enabled
  17984. #endif
  17985. int
  17986. main (void)
  17987. {
  17988. void *p = 0;
  17989. _m_prefetch(p);
  17990. ;
  17991. return 0;
  17992. }
  17993. _ACEOF
  17994. if ac_fn_c_try_link "$LINENO"
  17995. then :
  17996. have_gcc_3dnow=yes
  17997. fi
  17998. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17999. conftest$ac_exeext conftest.$ac_ext
  18000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  18001. printf "%s\n" "$have_gcc_3dnow" >&6; }
  18002. CFLAGS="$save_CFLAGS"
  18003. if test x$have_gcc_3dnow = xyes; then
  18004. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  18005. SUMMARY_math="${SUMMARY_math} 3dnow"
  18006. fi
  18007. fi
  18008. # Check whether --enable-sse was given.
  18009. if test ${enable_sse+y}
  18010. then :
  18011. enableval=$enable_sse;
  18012. else $as_nop
  18013. enable_sse=yes
  18014. fi
  18015. if test x$enable_sse = xyes; then
  18016. save_CFLAGS="$CFLAGS"
  18017. have_gcc_sse=no
  18018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  18019. printf %s "checking for GCC -msse option... " >&6; }
  18020. sse_CFLAGS="-msse"
  18021. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  18022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18023. /* end confdefs.h. */
  18024. #ifdef __MINGW32__
  18025. #include <_mingw.h>
  18026. #ifdef __MINGW64_VERSION_MAJOR
  18027. #include <intrin.h>
  18028. #else
  18029. #include <xmmintrin.h>
  18030. #endif
  18031. #else
  18032. #include <xmmintrin.h>
  18033. #endif
  18034. #ifndef __SSE__
  18035. #error Assembler CPP flag not enabled
  18036. #endif
  18037. int
  18038. main (void)
  18039. {
  18040. ;
  18041. return 0;
  18042. }
  18043. _ACEOF
  18044. if ac_fn_c_try_compile "$LINENO"
  18045. then :
  18046. have_gcc_sse=yes
  18047. fi
  18048. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  18050. printf "%s\n" "$have_gcc_sse" >&6; }
  18051. CFLAGS="$save_CFLAGS"
  18052. if test x$have_gcc_sse = xyes; then
  18053. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  18054. SUMMARY_math="${SUMMARY_math} sse"
  18055. fi
  18056. fi
  18057. # Check whether --enable-sse2 was given.
  18058. if test ${enable_sse2+y}
  18059. then :
  18060. enableval=$enable_sse2;
  18061. else $as_nop
  18062. enable_sse2=$default_ssemath
  18063. fi
  18064. if test x$enable_sse2 = xyes; then
  18065. save_CFLAGS="$CFLAGS"
  18066. have_gcc_sse2=no
  18067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  18068. printf %s "checking for GCC -msse2 option... " >&6; }
  18069. sse2_CFLAGS="-msse2"
  18070. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  18071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18072. /* end confdefs.h. */
  18073. #ifdef __MINGW32__
  18074. #include <_mingw.h>
  18075. #ifdef __MINGW64_VERSION_MAJOR
  18076. #include <intrin.h>
  18077. #else
  18078. #include <emmintrin.h>
  18079. #endif
  18080. #else
  18081. #include <emmintrin.h>
  18082. #endif
  18083. #ifndef __SSE2__
  18084. #error Assembler CPP flag not enabled
  18085. #endif
  18086. int
  18087. main (void)
  18088. {
  18089. ;
  18090. return 0;
  18091. }
  18092. _ACEOF
  18093. if ac_fn_c_try_compile "$LINENO"
  18094. then :
  18095. have_gcc_sse2=yes
  18096. fi
  18097. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  18099. printf "%s\n" "$have_gcc_sse2" >&6; }
  18100. CFLAGS="$save_CFLAGS"
  18101. if test x$have_gcc_sse2 = xyes; then
  18102. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  18103. SUMMARY_math="${SUMMARY_math} sse2"
  18104. fi
  18105. fi
  18106. # Check whether --enable-sse3 was given.
  18107. if test ${enable_sse3+y}
  18108. then :
  18109. enableval=$enable_sse3;
  18110. else $as_nop
  18111. enable_sse3=$default_ssemath
  18112. fi
  18113. if test x$enable_sse3 = xyes; then
  18114. save_CFLAGS="$CFLAGS"
  18115. have_gcc_sse3=no
  18116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  18117. printf %s "checking for GCC -msse3 option... " >&6; }
  18118. sse3_CFLAGS="-msse3"
  18119. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18121. /* end confdefs.h. */
  18122. #ifdef __MINGW32__
  18123. #include <_mingw.h>
  18124. #ifdef __MINGW64_VERSION_MAJOR
  18125. #include <intrin.h>
  18126. #else
  18127. #include <pmmintrin.h>
  18128. #endif
  18129. #else
  18130. #include <pmmintrin.h>
  18131. #endif
  18132. #ifndef __SSE2__
  18133. #error Assembler CPP flag not enabled
  18134. #endif
  18135. int
  18136. main (void)
  18137. {
  18138. ;
  18139. return 0;
  18140. }
  18141. _ACEOF
  18142. if ac_fn_c_try_compile "$LINENO"
  18143. then :
  18144. have_gcc_sse3=yes
  18145. fi
  18146. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18148. printf "%s\n" "$have_gcc_sse3" >&6; }
  18149. CFLAGS="$save_CFLAGS"
  18150. if test x$have_gcc_sse3 = xyes; then
  18151. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18152. SUMMARY_math="${SUMMARY_math} sse3"
  18153. fi
  18154. fi
  18155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18156. printf %s "checking for immintrin.h... " >&6; }
  18157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18158. /* end confdefs.h. */
  18159. #include <immintrin.h>
  18160. int
  18161. main (void)
  18162. {
  18163. ;
  18164. return 0;
  18165. }
  18166. _ACEOF
  18167. if ac_fn_c_try_compile "$LINENO"
  18168. then :
  18169. have_immintrin_h_hdr=yes
  18170. else $as_nop
  18171. have_immintrin_h_hdr=no
  18172. fi
  18173. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18175. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18176. if test x$have_immintrin_h_hdr = xyes; then
  18177. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18178. fi
  18179. # Check whether --enable-altivec was given.
  18180. if test ${enable_altivec+y}
  18181. then :
  18182. enableval=$enable_altivec;
  18183. else $as_nop
  18184. enable_altivec=yes
  18185. fi
  18186. if test x$enable_altivec = xyes; then
  18187. save_CFLAGS="$CFLAGS"
  18188. have_gcc_altivec=no
  18189. have_altivec_h_hdr=no
  18190. altivec_CFLAGS="-maltivec"
  18191. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18193. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18195. /* end confdefs.h. */
  18196. #include <altivec.h>
  18197. vector unsigned int vzero() {
  18198. return vec_splat_u32(0);
  18199. }
  18200. int
  18201. main (void)
  18202. {
  18203. ;
  18204. return 0;
  18205. }
  18206. _ACEOF
  18207. if ac_fn_c_try_compile "$LINENO"
  18208. then :
  18209. have_gcc_altivec=yes
  18210. have_altivec_h_hdr=yes
  18211. fi
  18212. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18214. printf "%s\n" "$have_gcc_altivec" >&6; }
  18215. if test x$have_gcc_altivec = xno; then
  18216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18217. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18219. /* end confdefs.h. */
  18220. vector unsigned int vzero() {
  18221. return vec_splat_u32(0);
  18222. }
  18223. int
  18224. main (void)
  18225. {
  18226. ;
  18227. return 0;
  18228. }
  18229. _ACEOF
  18230. if ac_fn_c_try_compile "$LINENO"
  18231. then :
  18232. have_gcc_altivec=yes
  18233. fi
  18234. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18236. printf "%s\n" "$have_gcc_altivec" >&6; }
  18237. fi
  18238. if test x$have_gcc_altivec = xno; then
  18239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18240. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18241. altivec_CFLAGS="-faltivec"
  18242. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18244. /* end confdefs.h. */
  18245. #include <altivec.h>
  18246. vector unsigned int vzero() {
  18247. return vec_splat_u32(0);
  18248. }
  18249. int
  18250. main (void)
  18251. {
  18252. ;
  18253. return 0;
  18254. }
  18255. _ACEOF
  18256. if ac_fn_c_try_compile "$LINENO"
  18257. then :
  18258. have_gcc_altivec=yes
  18259. have_altivec_h_hdr=yes
  18260. fi
  18261. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18263. printf "%s\n" "$have_gcc_altivec" >&6; }
  18264. fi
  18265. if test x$have_gcc_altivec = xno; then
  18266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18267. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18269. /* end confdefs.h. */
  18270. vector unsigned int vzero() {
  18271. return vec_splat_u32(0);
  18272. }
  18273. int
  18274. main (void)
  18275. {
  18276. ;
  18277. return 0;
  18278. }
  18279. _ACEOF
  18280. if ac_fn_c_try_compile "$LINENO"
  18281. then :
  18282. have_gcc_altivec=yes
  18283. fi
  18284. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18286. printf "%s\n" "$have_gcc_altivec" >&6; }
  18287. fi
  18288. CFLAGS="$save_CFLAGS"
  18289. if test x$have_gcc_altivec = xyes; then
  18290. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18291. if test x$have_altivec_h_hdr = xyes; then
  18292. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18293. fi
  18294. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18295. SUMMARY_math="${SUMMARY_math} altivec"
  18296. fi
  18297. fi
  18298. fi
  18299. # Check whether --enable-lsx was given.
  18300. if test ${enable_lsx+y}
  18301. then :
  18302. enableval=$enable_lsx;
  18303. else $as_nop
  18304. enable_lsx=yes
  18305. fi
  18306. if test x$enable_lsx = xyes; then
  18307. save_CFLAGS="$CFLAGS"
  18308. have_gcc_lsx=no
  18309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18310. printf %s "checking for GCC -mlsx option... " >&6; }
  18311. lsx_CFLAGS="-mlsx"
  18312. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18314. /* end confdefs.h. */
  18315. #ifndef __loongarch_sx
  18316. #error Assembler CPP flag not enabled
  18317. #endif
  18318. int
  18319. main (void)
  18320. {
  18321. ;
  18322. return 0;
  18323. }
  18324. _ACEOF
  18325. if ac_fn_c_try_compile "$LINENO"
  18326. then :
  18327. have_gcc_lsx=yes
  18328. fi
  18329. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18331. printf "%s\n" "$have_gcc_lsx" >&6; }
  18332. CFLAGS="$save_CFLAGS"
  18333. if test x$have_gcc_lsx = xyes; then
  18334. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18335. SUMMARY_math="${SUMMARY_math} lsx"
  18336. fi
  18337. fi
  18338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18339. printf %s "checking for lsxintrin.h... " >&6; }
  18340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18341. /* end confdefs.h. */
  18342. #include <lsxintrin.h>
  18343. int
  18344. main (void)
  18345. {
  18346. ;
  18347. return 0;
  18348. }
  18349. _ACEOF
  18350. if ac_fn_c_try_compile "$LINENO"
  18351. then :
  18352. have_lsxintrin_h_hdr=yes
  18353. else $as_nop
  18354. have_lsxintrin_h_hdr=no
  18355. fi
  18356. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18358. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18359. if test x$have_lsxintrin_h_hdr = xyes; then
  18360. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18361. fi
  18362. CheckOSS()
  18363. {
  18364. # Check whether --enable-oss was given.
  18365. if test ${enable_oss+y}
  18366. then :
  18367. enableval=$enable_oss;
  18368. else $as_nop
  18369. enable_oss=maybe
  18370. fi
  18371. if test x$enable_oss = xmaybe; then
  18372. enable_oss=yes
  18373. fi
  18374. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18376. printf %s "checking for OSS audio support... " >&6; }
  18377. have_oss=no
  18378. if test x$have_oss != xyes; then
  18379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18380. /* end confdefs.h. */
  18381. #include <sys/soundcard.h>
  18382. int
  18383. main (void)
  18384. {
  18385. int arg = SNDCTL_DSP_SETFRAGMENT;
  18386. ;
  18387. return 0;
  18388. }
  18389. _ACEOF
  18390. if ac_fn_c_try_compile "$LINENO"
  18391. then :
  18392. have_oss=yes
  18393. fi
  18394. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18395. fi
  18396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18397. printf "%s\n" "$have_oss" >&6; }
  18398. if test x$have_oss = xyes; then
  18399. SUMMARY_audio="${SUMMARY_audio} oss"
  18400. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18401. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18402. have_audio=yes
  18403. # We may need to link with ossaudio emulation library
  18404. case "$host" in
  18405. *-*-netbsd*)
  18406. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18407. esac
  18408. fi
  18409. fi
  18410. }
  18411. CheckALSA()
  18412. {
  18413. # Check whether --enable-alsa was given.
  18414. if test ${enable_alsa+y}
  18415. then :
  18416. enableval=$enable_alsa;
  18417. else $as_nop
  18418. enable_alsa=yes
  18419. fi
  18420. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18421. alsa_save_CFLAGS="$CFLAGS"
  18422. alsa_save_LDFLAGS="$LDFLAGS"
  18423. alsa_save_LIBS="$LIBS"
  18424. alsa_found=yes
  18425. # Check whether --with-alsa-prefix was given.
  18426. if test ${with_alsa_prefix+y}
  18427. then :
  18428. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18429. else $as_nop
  18430. alsa_prefix=""
  18431. fi
  18432. # Check whether --with-alsa-inc-prefix was given.
  18433. if test ${with_alsa_inc_prefix+y}
  18434. then :
  18435. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18436. else $as_nop
  18437. alsa_inc_prefix=""
  18438. fi
  18439. # Check whether --enable-alsatest was given.
  18440. if test ${enable_alsatest+y}
  18441. then :
  18442. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18443. else $as_nop
  18444. enable_alsatest=yes
  18445. fi
  18446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18447. printf %s "checking for ALSA CFLAGS... " >&6; }
  18448. if test "$alsa_inc_prefix" != "" ; then
  18449. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18450. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18451. fi
  18452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18453. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18455. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18456. if test "$alsa_prefix" != "" ; then
  18457. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18458. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18459. fi
  18460. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18461. LIBS=`echo $LIBS | sed 's/-lm//'`
  18462. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18463. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18464. LIBS=`echo $LIBS | sed 's/ //'`
  18465. LIBS="$ALSA_LIBS $LIBS"
  18466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18467. printf "%s\n" "$ALSA_LIBS" >&6; }
  18468. min_alsa_version=1.0.11
  18469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18470. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18471. no_alsa=""
  18472. alsa_min_major_version=`echo $min_alsa_version | \
  18473. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18474. alsa_min_minor_version=`echo $min_alsa_version | \
  18475. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18476. alsa_min_micro_version=`echo $min_alsa_version | \
  18477. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18478. ac_ext=c
  18479. ac_cpp='$CPP $CPPFLAGS'
  18480. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18481. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18482. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18484. /* end confdefs.h. */
  18485. #include <alsa/asoundlib.h>
  18486. int
  18487. main (void)
  18488. {
  18489. /* ensure backward compatibility */
  18490. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18491. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18492. #endif
  18493. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18494. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18495. #endif
  18496. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18497. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18498. #endif
  18499. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18500. exit(0);
  18501. # else
  18502. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18503. # error not present
  18504. # endif
  18505. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18506. exit(0);
  18507. # else
  18508. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18509. # error not present
  18510. # endif
  18511. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18512. # error not present
  18513. # endif
  18514. # endif
  18515. # endif
  18516. exit(0);
  18517. ;
  18518. return 0;
  18519. }
  18520. _ACEOF
  18521. if ac_fn_c_try_compile "$LINENO"
  18522. then :
  18523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18524. printf "%s\n" "found." >&6; }
  18525. else $as_nop
  18526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18527. printf "%s\n" "not present." >&6; }
  18528. alsa_found=no
  18529. fi
  18530. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18531. ac_ext=c
  18532. ac_cpp='$CPP $CPPFLAGS'
  18533. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18534. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18535. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18536. if test "x$enable_alsatest" = "xyes"; then
  18537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18538. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18539. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18540. then :
  18541. printf %s "(cached) " >&6
  18542. else $as_nop
  18543. ac_check_lib_save_LIBS=$LIBS
  18544. LIBS="-lasound $LIBS"
  18545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18546. /* end confdefs.h. */
  18547. /* Override any GCC internal prototype to avoid an error.
  18548. Use char because int might match the return type of a GCC
  18549. builtin and then its argument prototype would still apply. */
  18550. char snd_ctl_open ();
  18551. int
  18552. main (void)
  18553. {
  18554. return snd_ctl_open ();
  18555. ;
  18556. return 0;
  18557. }
  18558. _ACEOF
  18559. if ac_fn_c_try_link "$LINENO"
  18560. then :
  18561. ac_cv_lib_asound_snd_ctl_open=yes
  18562. else $as_nop
  18563. ac_cv_lib_asound_snd_ctl_open=no
  18564. fi
  18565. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18566. conftest$ac_exeext conftest.$ac_ext
  18567. LIBS=$ac_check_lib_save_LIBS
  18568. fi
  18569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18570. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18571. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18572. then :
  18573. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18574. LIBS="-lasound $LIBS"
  18575. else $as_nop
  18576. alsa_found=no
  18577. fi
  18578. fi
  18579. if test "x$alsa_found" = "xyes" ; then
  18580. have_alsa=yes
  18581. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18582. LIBS=`echo $LIBS | sed 's/ //'`
  18583. LIBS="-lasound $LIBS"
  18584. fi
  18585. if test "x$alsa_found" = "xno" ; then
  18586. have_alsa=no
  18587. CFLAGS="$alsa_save_CFLAGS"
  18588. LDFLAGS="$alsa_save_LDFLAGS"
  18589. LIBS="$alsa_save_LIBS"
  18590. ALSA_CFLAGS=""
  18591. ALSA_LIBS=""
  18592. fi
  18593. # Restore all flags from before the ALSA detection runs
  18594. CFLAGS="$alsa_save_CFLAGS"
  18595. LDFLAGS="$alsa_save_LDFLAGS"
  18596. LIBS="$alsa_save_LIBS"
  18597. if test x$have_alsa = xyes; then
  18598. # Check whether --enable-alsa-shared was given.
  18599. if test ${enable_alsa_shared+y}
  18600. then :
  18601. enableval=$enable_alsa_shared;
  18602. else $as_nop
  18603. enable_alsa_shared=yes
  18604. fi
  18605. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18606. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18607. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18608. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18609. if test x$have_loadso != xyes && \
  18610. test x$enable_alsa_shared = xyes; then
  18611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18612. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18613. fi
  18614. if test x$have_loadso = xyes && \
  18615. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18616. echo "-- dynamic libasound -> $alsa_lib"
  18617. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18618. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18619. else
  18620. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18621. SUMMARY_audio="${SUMMARY_audio} alsa"
  18622. fi
  18623. have_audio=yes
  18624. fi
  18625. fi
  18626. }
  18627. CheckJACK()
  18628. {
  18629. # Check whether --enable-jack was given.
  18630. if test ${enable_jack+y}
  18631. then :
  18632. enableval=$enable_jack;
  18633. else $as_nop
  18634. enable_jack=yes
  18635. fi
  18636. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18637. pkg_failed=no
  18638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18639. printf %s "checking for jack >= 0.125... " >&6; }
  18640. if test -n "$JACK_CFLAGS"; then
  18641. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18642. elif test -n "$PKG_CONFIG"; then
  18643. if test -n "$PKG_CONFIG" && \
  18644. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18645. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18646. ac_status=$?
  18647. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18648. test $ac_status = 0; }; then
  18649. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18650. test "x$?" != "x0" && pkg_failed=yes
  18651. else
  18652. pkg_failed=yes
  18653. fi
  18654. else
  18655. pkg_failed=untried
  18656. fi
  18657. if test -n "$JACK_LIBS"; then
  18658. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18659. elif test -n "$PKG_CONFIG"; then
  18660. if test -n "$PKG_CONFIG" && \
  18661. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18662. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18663. ac_status=$?
  18664. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18665. test $ac_status = 0; }; then
  18666. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18667. test "x$?" != "x0" && pkg_failed=yes
  18668. else
  18669. pkg_failed=yes
  18670. fi
  18671. else
  18672. pkg_failed=untried
  18673. fi
  18674. if test $pkg_failed = yes; then
  18675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18676. printf "%s\n" "no" >&6; }
  18677. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18678. _pkg_short_errors_supported=yes
  18679. else
  18680. _pkg_short_errors_supported=no
  18681. fi
  18682. if test $_pkg_short_errors_supported = yes; then
  18683. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18684. else
  18685. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18686. fi
  18687. # Put the nasty error message in config.log where it belongs
  18688. echo "$JACK_PKG_ERRORS" >&5
  18689. audio_jack=no
  18690. elif test $pkg_failed = untried; then
  18691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18692. printf "%s\n" "no" >&6; }
  18693. audio_jack=no
  18694. else
  18695. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18696. JACK_LIBS=$pkg_cv_JACK_LIBS
  18697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18698. printf "%s\n" "yes" >&6; }
  18699. audio_jack=yes
  18700. fi
  18701. if test x$audio_jack = xyes; then
  18702. # Check whether --enable-jack-shared was given.
  18703. if test ${enable_jack_shared+y}
  18704. then :
  18705. enableval=$enable_jack_shared;
  18706. else $as_nop
  18707. enable_jack_shared=yes
  18708. fi
  18709. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18710. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18711. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18712. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18713. if test x$have_loadso != xyes && \
  18714. test x$enable_jack_shared = xyes; then
  18715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18716. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18717. fi
  18718. if test x$have_loadso = xyes && \
  18719. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18720. echo "-- dynamic libjack -> $jack_lib"
  18721. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18722. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18723. case "$host" in
  18724. # On Solaris, jack must be linked deferred explicitly
  18725. # to prevent undefined symbol failures.
  18726. *-*-solaris*)
  18727. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18728. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18729. esac
  18730. else
  18731. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18732. SUMMARY_audio="${SUMMARY_audio} jack"
  18733. fi
  18734. have_audio=yes
  18735. fi
  18736. fi
  18737. }
  18738. CheckESD()
  18739. {
  18740. # Check whether --enable-esd was given.
  18741. if test ${enable_esd+y}
  18742. then :
  18743. enableval=$enable_esd;
  18744. else $as_nop
  18745. enable_esd=yes
  18746. fi
  18747. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18748. pkg_failed=no
  18749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18750. printf %s "checking for esound >= 0.2.8... " >&6; }
  18751. if test -n "$ESD_CFLAGS"; then
  18752. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18753. elif test -n "$PKG_CONFIG"; then
  18754. if test -n "$PKG_CONFIG" && \
  18755. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18756. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18757. ac_status=$?
  18758. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18759. test $ac_status = 0; }; then
  18760. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18761. test "x$?" != "x0" && pkg_failed=yes
  18762. else
  18763. pkg_failed=yes
  18764. fi
  18765. else
  18766. pkg_failed=untried
  18767. fi
  18768. if test -n "$ESD_LIBS"; then
  18769. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18770. elif test -n "$PKG_CONFIG"; then
  18771. if test -n "$PKG_CONFIG" && \
  18772. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18773. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18774. ac_status=$?
  18775. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18776. test $ac_status = 0; }; then
  18777. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18778. test "x$?" != "x0" && pkg_failed=yes
  18779. else
  18780. pkg_failed=yes
  18781. fi
  18782. else
  18783. pkg_failed=untried
  18784. fi
  18785. if test $pkg_failed = yes; then
  18786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18787. printf "%s\n" "no" >&6; }
  18788. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18789. _pkg_short_errors_supported=yes
  18790. else
  18791. _pkg_short_errors_supported=no
  18792. fi
  18793. if test $_pkg_short_errors_supported = yes; then
  18794. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18795. else
  18796. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18797. fi
  18798. # Put the nasty error message in config.log where it belongs
  18799. echo "$ESD_PKG_ERRORS" >&5
  18800. have_esd=no
  18801. elif test $pkg_failed = untried; then
  18802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18803. printf "%s\n" "no" >&6; }
  18804. have_esd=no
  18805. else
  18806. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18807. ESD_LIBS=$pkg_cv_ESD_LIBS
  18808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18809. printf "%s\n" "yes" >&6; }
  18810. have_esd=yes
  18811. fi
  18812. if test x$have_esd = xno; then
  18813. # Check whether --with-esd-prefix was given.
  18814. if test ${with_esd_prefix+y}
  18815. then :
  18816. withval=$with_esd_prefix; esd_prefix="$withval"
  18817. else $as_nop
  18818. esd_prefix=""
  18819. fi
  18820. # Check whether --with-esd-exec-prefix was given.
  18821. if test ${with_esd_exec_prefix+y}
  18822. then :
  18823. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18824. else $as_nop
  18825. esd_exec_prefix=""
  18826. fi
  18827. # Check whether --enable-esdtest was given.
  18828. if test ${enable_esdtest+y}
  18829. then :
  18830. enableval=$enable_esdtest;
  18831. else $as_nop
  18832. enable_esdtest=yes
  18833. fi
  18834. if test x$esd_exec_prefix != x ; then
  18835. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18836. if test x${ESD_CONFIG+set} != xset ; then
  18837. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18838. fi
  18839. fi
  18840. if test x$esd_prefix != x ; then
  18841. esd_args="$esd_args --prefix=$esd_prefix"
  18842. if test x${ESD_CONFIG+set} != xset ; then
  18843. ESD_CONFIG=$esd_prefix/bin/esd-config
  18844. fi
  18845. fi
  18846. # Extract the first word of "esd-config", so it can be a program name with args.
  18847. set dummy esd-config; ac_word=$2
  18848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18849. printf %s "checking for $ac_word... " >&6; }
  18850. if test ${ac_cv_path_ESD_CONFIG+y}
  18851. then :
  18852. printf %s "(cached) " >&6
  18853. else $as_nop
  18854. case $ESD_CONFIG in
  18855. [\\/]* | ?:[\\/]*)
  18856. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18857. ;;
  18858. *)
  18859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18860. for as_dir in $PATH
  18861. do
  18862. IFS=$as_save_IFS
  18863. case $as_dir in #(((
  18864. '') as_dir=./ ;;
  18865. */) ;;
  18866. *) as_dir=$as_dir/ ;;
  18867. esac
  18868. for ac_exec_ext in '' $ac_executable_extensions; do
  18869. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18870. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18871. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18872. break 2
  18873. fi
  18874. done
  18875. done
  18876. IFS=$as_save_IFS
  18877. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18878. ;;
  18879. esac
  18880. fi
  18881. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18882. if test -n "$ESD_CONFIG"; then
  18883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18884. printf "%s\n" "$ESD_CONFIG" >&6; }
  18885. else
  18886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18887. printf "%s\n" "no" >&6; }
  18888. fi
  18889. min_esd_version=0.2.8
  18890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18891. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18892. no_esd=""
  18893. if test "$ESD_CONFIG" = "no" ; then
  18894. no_esd=yes
  18895. else
  18896. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18897. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18898. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18899. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18900. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18901. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18902. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18903. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18904. if test "x$enable_esdtest" = "xyes" ; then
  18905. ac_ext=c
  18906. ac_cpp='$CPP $CPPFLAGS'
  18907. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18908. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18909. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18910. ac_save_CFLAGS="$CFLAGS"
  18911. ac_save_LIBS="$LIBS"
  18912. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18913. LIBS="$LIBS $ESD_LIBS"
  18914. rm -f conf.esdtest
  18915. if test "$cross_compiling" = yes
  18916. then :
  18917. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18918. else $as_nop
  18919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18920. /* end confdefs.h. */
  18921. #include <stdio.h>
  18922. #include <stdlib.h>
  18923. #include <esd.h>
  18924. int main (void)
  18925. {
  18926. int major, minor, micro;
  18927. FILE *fp = fopen("conf.esdtest", "w");
  18928. if (fp) fclose(fp);
  18929. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18930. printf("%s, bad version string\n", "$min_esd_version");
  18931. exit(1);
  18932. }
  18933. if (($esd_major_version > major) ||
  18934. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18935. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18936. {
  18937. return 0;
  18938. }
  18939. else
  18940. {
  18941. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18942. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18943. printf("*** best to upgrade to the required version.\n");
  18944. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18945. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18946. printf("*** config.cache before re-running configure\n");
  18947. return 1;
  18948. }
  18949. }
  18950. _ACEOF
  18951. if ac_fn_c_try_run "$LINENO"
  18952. then :
  18953. else $as_nop
  18954. no_esd=yes
  18955. fi
  18956. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18957. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18958. fi
  18959. CFLAGS="$ac_save_CFLAGS"
  18960. LIBS="$ac_save_LIBS"
  18961. ac_ext=c
  18962. ac_cpp='$CPP $CPPFLAGS'
  18963. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18964. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18966. fi
  18967. fi
  18968. if test "x$no_esd" = x ; then
  18969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18970. printf "%s\n" "yes" >&6; }
  18971. have_esd=yes
  18972. else
  18973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18974. printf "%s\n" "no" >&6; }
  18975. if test "$ESD_CONFIG" = "no" ; then
  18976. :
  18977. else
  18978. if test -f conf.esdtest ; then
  18979. :
  18980. else
  18981. echo "*** Could not run ESD test program, checking why..."
  18982. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18983. LIBS="$LIBS $ESD_LIBS"
  18984. ac_ext=c
  18985. ac_cpp='$CPP $CPPFLAGS'
  18986. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18987. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18988. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18990. /* end confdefs.h. */
  18991. #include <stdio.h>
  18992. #include <esd.h>
  18993. int
  18994. main (void)
  18995. {
  18996. return 0;
  18997. ;
  18998. return 0;
  18999. }
  19000. _ACEOF
  19001. if ac_fn_c_try_link "$LINENO"
  19002. then :
  19003. echo "*** The test program compiled, but did not run. This usually means"
  19004. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  19005. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  19006. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  19007. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  19008. echo "*** is required on your system"
  19009. echo "***"
  19010. echo "*** If you have an old version installed, it is best to remove it, although"
  19011. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  19012. else $as_nop
  19013. echo "*** The test program failed to compile or link. See the file config.log for the"
  19014. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  19015. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  19016. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  19017. fi
  19018. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19019. conftest$ac_exeext conftest.$ac_ext
  19020. CFLAGS="$ac_save_CFLAGS"
  19021. LIBS="$ac_save_LIBS"
  19022. ac_ext=c
  19023. ac_cpp='$CPP $CPPFLAGS'
  19024. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19025. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19026. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19027. fi
  19028. fi
  19029. ESD_CFLAGS=""
  19030. ESD_LIBS=""
  19031. have_esd=no
  19032. fi
  19033. rm -f conf.esdtest
  19034. fi
  19035. if test x$have_esd = xyes; then
  19036. # Check whether --enable-esd-shared was given.
  19037. if test ${enable_esd_shared+y}
  19038. then :
  19039. enableval=$enable_esd_shared;
  19040. else $as_nop
  19041. enable_esd_shared=yes
  19042. fi
  19043. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19044. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  19045. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  19046. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  19047. if test x$have_loadso != xyes && \
  19048. test x$enable_esd_shared = xyes; then
  19049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  19050. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  19051. fi
  19052. if test x$have_loadso = xyes && \
  19053. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  19054. echo "-- dynamic libesd -> $esd_lib"
  19055. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  19056. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  19057. else
  19058. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  19059. SUMMARY_audio="${SUMMARY_audio} esd"
  19060. fi
  19061. have_audio=yes
  19062. fi
  19063. fi
  19064. }
  19065. CheckPipewire()
  19066. {
  19067. # Check whether --enable-pipewire was given.
  19068. if test ${enable_pipewire+y}
  19069. then :
  19070. enableval=$enable_pipewire;
  19071. else $as_nop
  19072. enable_pipewire=yes
  19073. fi
  19074. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19075. pkg_failed=no
  19076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19077. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19078. if test -n "$PIPEWIRE_CFLAGS"; then
  19079. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19080. elif test -n "$PKG_CONFIG"; then
  19081. if test -n "$PKG_CONFIG" && \
  19082. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19083. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19084. ac_status=$?
  19085. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19086. test $ac_status = 0; }; then
  19087. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19088. test "x$?" != "x0" && pkg_failed=yes
  19089. else
  19090. pkg_failed=yes
  19091. fi
  19092. else
  19093. pkg_failed=untried
  19094. fi
  19095. if test -n "$PIPEWIRE_LIBS"; then
  19096. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19097. elif test -n "$PKG_CONFIG"; then
  19098. if test -n "$PKG_CONFIG" && \
  19099. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19100. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19101. ac_status=$?
  19102. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19103. test $ac_status = 0; }; then
  19104. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19105. test "x$?" != "x0" && pkg_failed=yes
  19106. else
  19107. pkg_failed=yes
  19108. fi
  19109. else
  19110. pkg_failed=untried
  19111. fi
  19112. if test $pkg_failed = yes; then
  19113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19114. printf "%s\n" "no" >&6; }
  19115. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19116. _pkg_short_errors_supported=yes
  19117. else
  19118. _pkg_short_errors_supported=no
  19119. fi
  19120. if test $_pkg_short_errors_supported = yes; then
  19121. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19122. else
  19123. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19124. fi
  19125. # Put the nasty error message in config.log where it belongs
  19126. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19127. audio_pipewire=no
  19128. elif test $pkg_failed = untried; then
  19129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19130. printf "%s\n" "no" >&6; }
  19131. audio_pipewire=no
  19132. else
  19133. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19134. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19136. printf "%s\n" "yes" >&6; }
  19137. audio_pipewire=yes
  19138. fi
  19139. if test x$audio_pipewire = xyes; then
  19140. # Check whether --enable-pipewire-shared was given.
  19141. if test ${enable_pipewire_shared+y}
  19142. then :
  19143. enableval=$enable_pipewire_shared;
  19144. else $as_nop
  19145. enable_pipewire_shared=yes
  19146. fi
  19147. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19148. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19149. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19150. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19151. if test x$have_loadso != xyes && \
  19152. test x$enable_pipewire_shared = xyes; then
  19153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19154. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19155. fi
  19156. if test x$have_loadso = xyes && \
  19157. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19158. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19159. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19160. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19161. else
  19162. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19163. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19164. fi
  19165. have_audio=yes
  19166. fi
  19167. fi
  19168. }
  19169. CheckPulseAudio()
  19170. {
  19171. # Check whether --enable-pulseaudio was given.
  19172. if test ${enable_pulseaudio+y}
  19173. then :
  19174. enableval=$enable_pulseaudio;
  19175. else $as_nop
  19176. enable_pulseaudio=yes
  19177. fi
  19178. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19179. pkg_failed=no
  19180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse >= 0.9.15" >&5
  19181. printf %s "checking for libpulse >= 0.9.15... " >&6; }
  19182. if test -n "$PULSEAUDIO_CFLAGS"; then
  19183. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19184. elif test -n "$PKG_CONFIG"; then
  19185. if test -n "$PKG_CONFIG" && \
  19186. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19187. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19188. ac_status=$?
  19189. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19190. test $ac_status = 0; }; then
  19191. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.15" 2>/dev/null`
  19192. test "x$?" != "x0" && pkg_failed=yes
  19193. else
  19194. pkg_failed=yes
  19195. fi
  19196. else
  19197. pkg_failed=untried
  19198. fi
  19199. if test -n "$PULSEAUDIO_LIBS"; then
  19200. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19201. elif test -n "$PKG_CONFIG"; then
  19202. if test -n "$PKG_CONFIG" && \
  19203. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19204. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19205. ac_status=$?
  19206. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19207. test $ac_status = 0; }; then
  19208. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.15" 2>/dev/null`
  19209. test "x$?" != "x0" && pkg_failed=yes
  19210. else
  19211. pkg_failed=yes
  19212. fi
  19213. else
  19214. pkg_failed=untried
  19215. fi
  19216. if test $pkg_failed = yes; then
  19217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19218. printf "%s\n" "no" >&6; }
  19219. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19220. _pkg_short_errors_supported=yes
  19221. else
  19222. _pkg_short_errors_supported=no
  19223. fi
  19224. if test $_pkg_short_errors_supported = yes; then
  19225. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19226. else
  19227. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19228. fi
  19229. # Put the nasty error message in config.log where it belongs
  19230. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19231. audio_pulseaudio=no
  19232. elif test $pkg_failed = untried; then
  19233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19234. printf "%s\n" "no" >&6; }
  19235. audio_pulseaudio=no
  19236. else
  19237. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19238. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19240. printf "%s\n" "yes" >&6; }
  19241. audio_pulseaudio=yes
  19242. fi
  19243. if test x$audio_pulseaudio = xyes; then
  19244. # Check whether --enable-pulseaudio-shared was given.
  19245. if test ${enable_pulseaudio_shared+y}
  19246. then :
  19247. enableval=$enable_pulseaudio_shared;
  19248. else $as_nop
  19249. enable_pulseaudio_shared=yes
  19250. fi
  19251. pulseaudio_lib=`find_lib "libpulse.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19252. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19253. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19254. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19255. if test x$have_loadso != xyes && \
  19256. test x$enable_pulseaudio_shared = xyes; then
  19257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19258. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19259. fi
  19260. if test x$have_loadso = xyes && \
  19261. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19262. echo "-- dynamic libpulse -> $pulseaudio_lib"
  19263. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19264. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19265. case "$host" in
  19266. # On Solaris, pulseaudio must be linked deferred explicitly
  19267. # to prevent undefined symbol failures.
  19268. *-*-solaris*)
  19269. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19270. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19271. esac
  19272. else
  19273. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19274. SUMMARY_audio="${SUMMARY_audio} pulse"
  19275. fi
  19276. have_audio=yes
  19277. fi
  19278. fi
  19279. }
  19280. CheckARTSC()
  19281. {
  19282. # Check whether --enable-arts was given.
  19283. if test ${enable_arts+y}
  19284. then :
  19285. enableval=$enable_arts;
  19286. else $as_nop
  19287. enable_arts=yes
  19288. fi
  19289. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19290. # Extract the first word of "artsc-config", so it can be a program name with args.
  19291. set dummy artsc-config; ac_word=$2
  19292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19293. printf %s "checking for $ac_word... " >&6; }
  19294. if test ${ac_cv_path_ARTSCONFIG+y}
  19295. then :
  19296. printf %s "(cached) " >&6
  19297. else $as_nop
  19298. case $ARTSCONFIG in
  19299. [\\/]* | ?:[\\/]*)
  19300. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19301. ;;
  19302. *)
  19303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19304. for as_dir in $PATH
  19305. do
  19306. IFS=$as_save_IFS
  19307. case $as_dir in #(((
  19308. '') as_dir=./ ;;
  19309. */) ;;
  19310. *) as_dir=$as_dir/ ;;
  19311. esac
  19312. for ac_exec_ext in '' $ac_executable_extensions; do
  19313. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19314. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19315. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19316. break 2
  19317. fi
  19318. done
  19319. done
  19320. IFS=$as_save_IFS
  19321. ;;
  19322. esac
  19323. fi
  19324. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19325. if test -n "$ARTSCONFIG"; then
  19326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19327. printf "%s\n" "$ARTSCONFIG" >&6; }
  19328. else
  19329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19330. printf "%s\n" "no" >&6; }
  19331. fi
  19332. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19333. : # arts isn't installed
  19334. else
  19335. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19336. ARTS_LIBS=`$ARTSCONFIG --libs`
  19337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19338. printf %s "checking for aRts development environment... " >&6; }
  19339. audio_arts=no
  19340. save_CFLAGS="$CFLAGS"
  19341. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19343. /* end confdefs.h. */
  19344. #include <artsc.h>
  19345. int
  19346. main (void)
  19347. {
  19348. arts_stream_t stream;
  19349. ;
  19350. return 0;
  19351. }
  19352. _ACEOF
  19353. if ac_fn_c_try_compile "$LINENO"
  19354. then :
  19355. audio_arts=yes
  19356. fi
  19357. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19358. CFLAGS="$save_CFLAGS"
  19359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19360. printf "%s\n" "$audio_arts" >&6; }
  19361. if test x$audio_arts = xyes; then
  19362. # Check whether --enable-arts-shared was given.
  19363. if test ${enable_arts_shared+y}
  19364. then :
  19365. enableval=$enable_arts_shared;
  19366. else $as_nop
  19367. enable_arts_shared=yes
  19368. fi
  19369. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19370. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19371. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19372. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19373. if test x$have_loadso != xyes && \
  19374. test x$enable_arts_shared = xyes; then
  19375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19376. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19377. fi
  19378. if test x$have_loadso = xyes && \
  19379. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19380. echo "-- dynamic libartsc -> $arts_lib"
  19381. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19382. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19383. else
  19384. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19385. SUMMARY_audio="${SUMMARY_audio} arts"
  19386. fi
  19387. have_audio=yes
  19388. fi
  19389. fi
  19390. fi
  19391. }
  19392. CheckNAS()
  19393. {
  19394. # Check whether --enable-nas was given.
  19395. if test ${enable_nas+y}
  19396. then :
  19397. enableval=$enable_nas;
  19398. else $as_nop
  19399. enable_nas=yes
  19400. fi
  19401. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19402. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19403. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19404. then :
  19405. have_nas_hdr=yes
  19406. fi
  19407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19408. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19409. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19410. then :
  19411. printf %s "(cached) " >&6
  19412. else $as_nop
  19413. ac_check_lib_save_LIBS=$LIBS
  19414. LIBS="-laudio $LIBS"
  19415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19416. /* end confdefs.h. */
  19417. /* Override any GCC internal prototype to avoid an error.
  19418. Use char because int might match the return type of a GCC
  19419. builtin and then its argument prototype would still apply. */
  19420. char AuOpenServer ();
  19421. int
  19422. main (void)
  19423. {
  19424. return AuOpenServer ();
  19425. ;
  19426. return 0;
  19427. }
  19428. _ACEOF
  19429. if ac_fn_c_try_link "$LINENO"
  19430. then :
  19431. ac_cv_lib_audio_AuOpenServer=yes
  19432. else $as_nop
  19433. ac_cv_lib_audio_AuOpenServer=no
  19434. fi
  19435. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19436. conftest$ac_exeext conftest.$ac_ext
  19437. LIBS=$ac_check_lib_save_LIBS
  19438. fi
  19439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19440. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19441. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19442. then :
  19443. have_nas_lib=yes
  19444. fi
  19445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19446. printf %s "checking for NAS audio support... " >&6; }
  19447. have_nas=no
  19448. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19449. have_nas=yes
  19450. NAS_LIBS="-laudio"
  19451. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19452. have_nas=yes
  19453. NAS_CFLAGS="-I/usr/X11R6/include/"
  19454. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19455. fi
  19456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19457. printf "%s\n" "$have_nas" >&6; }
  19458. if test x$have_nas = xyes; then
  19459. # Check whether --enable-nas-shared was given.
  19460. if test ${enable_nas_shared+y}
  19461. then :
  19462. enableval=$enable_nas_shared;
  19463. else $as_nop
  19464. enable_nas_shared=yes
  19465. fi
  19466. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19467. if test x$have_loadso != xyes && \
  19468. test x$enable_nas_shared = xyes; then
  19469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19470. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19471. fi
  19472. if test x$have_loadso = xyes && \
  19473. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19474. echo "-- dynamic libaudio -> $nas_lib"
  19475. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19476. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19477. else
  19478. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19479. SUMMARY_audio="${SUMMARY_audio} nas"
  19480. fi
  19481. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19482. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19483. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19484. have_audio=yes
  19485. fi
  19486. fi
  19487. }
  19488. CheckSNDIO()
  19489. {
  19490. # Check whether --enable-sndio was given.
  19491. if test ${enable_sndio+y}
  19492. then :
  19493. enableval=$enable_sndio;
  19494. else $as_nop
  19495. enable_sndio=yes
  19496. fi
  19497. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19498. pkg_failed=no
  19499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19500. printf %s "checking for sndio... " >&6; }
  19501. if test -n "$SNDIO_CFLAGS"; then
  19502. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19503. elif test -n "$PKG_CONFIG"; then
  19504. if test -n "$PKG_CONFIG" && \
  19505. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19506. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19507. ac_status=$?
  19508. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19509. test $ac_status = 0; }; then
  19510. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19511. test "x$?" != "x0" && pkg_failed=yes
  19512. else
  19513. pkg_failed=yes
  19514. fi
  19515. else
  19516. pkg_failed=untried
  19517. fi
  19518. if test -n "$SNDIO_LIBS"; then
  19519. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19520. elif test -n "$PKG_CONFIG"; then
  19521. if test -n "$PKG_CONFIG" && \
  19522. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19523. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19524. ac_status=$?
  19525. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19526. test $ac_status = 0; }; then
  19527. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19528. test "x$?" != "x0" && pkg_failed=yes
  19529. else
  19530. pkg_failed=yes
  19531. fi
  19532. else
  19533. pkg_failed=untried
  19534. fi
  19535. if test $pkg_failed = yes; then
  19536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19537. printf "%s\n" "no" >&6; }
  19538. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19539. _pkg_short_errors_supported=yes
  19540. else
  19541. _pkg_short_errors_supported=no
  19542. fi
  19543. if test $_pkg_short_errors_supported = yes; then
  19544. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19545. else
  19546. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19547. fi
  19548. # Put the nasty error message in config.log where it belongs
  19549. echo "$SNDIO_PKG_ERRORS" >&5
  19550. audio_sndio=no
  19551. elif test $pkg_failed = untried; then
  19552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19553. printf "%s\n" "no" >&6; }
  19554. audio_sndio=no
  19555. else
  19556. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19557. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19559. printf "%s\n" "yes" >&6; }
  19560. audio_sndio=yes
  19561. fi
  19562. if test x$audio_sndio = xyes; then
  19563. # Check whether --enable-sndio-shared was given.
  19564. if test ${enable_sndio_shared+y}
  19565. then :
  19566. enableval=$enable_sndio_shared;
  19567. else $as_nop
  19568. enable_sndio_shared=yes
  19569. fi
  19570. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19571. if test x$have_loadso != xyes && \
  19572. test x$enable_sndio_shared = xyes; then
  19573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19574. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19575. fi
  19576. if test x$have_loadso = xyes && \
  19577. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19578. echo "-- dynamic libsndio -> $sndio_lib"
  19579. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19580. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19581. else
  19582. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19583. SUMMARY_audio="${SUMMARY_audio} sndio"
  19584. fi
  19585. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19586. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19587. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19588. have_audio=yes
  19589. fi
  19590. fi
  19591. }
  19592. CheckFusionSound()
  19593. {
  19594. # Check whether --enable-fusionsound was given.
  19595. if test ${enable_fusionsound+y}
  19596. then :
  19597. enableval=$enable_fusionsound;
  19598. else $as_nop
  19599. enable_fusionsound=no
  19600. fi
  19601. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19602. pkg_failed=no
  19603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19604. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19605. if test -n "$FUSIONSOUND_CFLAGS"; then
  19606. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19607. elif test -n "$PKG_CONFIG"; then
  19608. if test -n "$PKG_CONFIG" && \
  19609. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19610. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19611. ac_status=$?
  19612. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19613. test $ac_status = 0; }; then
  19614. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19615. test "x$?" != "x0" && pkg_failed=yes
  19616. else
  19617. pkg_failed=yes
  19618. fi
  19619. else
  19620. pkg_failed=untried
  19621. fi
  19622. if test -n "$FUSIONSOUND_LIBS"; then
  19623. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19624. elif test -n "$PKG_CONFIG"; then
  19625. if test -n "$PKG_CONFIG" && \
  19626. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19627. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19628. ac_status=$?
  19629. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19630. test $ac_status = 0; }; then
  19631. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19632. test "x$?" != "x0" && pkg_failed=yes
  19633. else
  19634. pkg_failed=yes
  19635. fi
  19636. else
  19637. pkg_failed=untried
  19638. fi
  19639. if test $pkg_failed = yes; then
  19640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19641. printf "%s\n" "no" >&6; }
  19642. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19643. _pkg_short_errors_supported=yes
  19644. else
  19645. _pkg_short_errors_supported=no
  19646. fi
  19647. if test $_pkg_short_errors_supported = yes; then
  19648. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19649. else
  19650. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19651. fi
  19652. # Put the nasty error message in config.log where it belongs
  19653. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19654. fusionsound=no
  19655. elif test $pkg_failed = untried; then
  19656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19657. printf "%s\n" "no" >&6; }
  19658. fusionsound=no
  19659. else
  19660. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19661. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19663. printf "%s\n" "yes" >&6; }
  19664. fusionsound=yes
  19665. fi
  19666. if test x$fusionsound = xyes; then
  19667. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19668. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19669. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19670. # Check whether --enable-fusionsound-shared was given.
  19671. if test ${enable_fusionsound_shared+y}
  19672. then :
  19673. enableval=$enable_fusionsound_shared;
  19674. else $as_nop
  19675. enable_fusionsound_shared=yes
  19676. fi
  19677. fusionsound_shared=no
  19678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19679. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19680. if test x$have_loadso != xyes && \
  19681. test x$enable_fusionsound_shared = xyes; then
  19682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19683. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19684. fi
  19685. if test x$have_loadso = xyes && \
  19686. test x$enable_fusionsound_shared = xyes; then
  19687. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19688. fusionsound_shared=yes
  19689. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19690. else
  19691. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19692. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19693. fi
  19694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19695. printf "%s\n" "$fusionsound_shared" >&6; }
  19696. have_audio=yes
  19697. fi
  19698. fi
  19699. }
  19700. CheckDiskAudio()
  19701. {
  19702. # Check whether --enable-diskaudio was given.
  19703. if test ${enable_diskaudio+y}
  19704. then :
  19705. enableval=$enable_diskaudio;
  19706. else $as_nop
  19707. enable_diskaudio=yes
  19708. fi
  19709. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19710. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19711. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19712. SUMMARY_audio="${SUMMARY_audio} disk"
  19713. have_audio=yes
  19714. fi
  19715. }
  19716. CheckDummyAudio()
  19717. {
  19718. # Check whether --enable-dummyaudio was given.
  19719. if test ${enable_dummyaudio+y}
  19720. then :
  19721. enableval=$enable_dummyaudio;
  19722. else $as_nop
  19723. enable_dummyaudio=yes
  19724. fi
  19725. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19726. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19727. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19728. SUMMARY_audio="${SUMMARY_audio} dummy"
  19729. have_audio=yes
  19730. fi
  19731. }
  19732. CheckLibSampleRate()
  19733. {
  19734. # Check whether --enable-libsamplerate was given.
  19735. if test ${enable_libsamplerate+y}
  19736. then :
  19737. enableval=$enable_libsamplerate;
  19738. else $as_nop
  19739. enable_libsamplerate=yes
  19740. fi
  19741. if test x$enable_libsamplerate = xyes; then
  19742. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19743. if test "x$ac_cv_header_samplerate_h" = xyes
  19744. then :
  19745. have_samplerate_h_hdr=yes
  19746. else $as_nop
  19747. have_samplerate_h_hdr=no
  19748. fi
  19749. if test x$have_samplerate_h_hdr = xyes; then
  19750. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19751. # Check whether --enable-libsamplerate-shared was given.
  19752. if test ${enable_libsamplerate_shared+y}
  19753. then :
  19754. enableval=$enable_libsamplerate_shared;
  19755. else $as_nop
  19756. enable_libsamplerate_shared=yes
  19757. fi
  19758. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19759. if test x$have_loadso != xyes && \
  19760. test x$enable_libsamplerate_shared = xyes; then
  19761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19762. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19763. fi
  19764. if test x$have_loadso = xyes && \
  19765. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19766. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19767. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19768. else
  19769. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19770. fi
  19771. fi
  19772. fi
  19773. }
  19774. CheckARM()
  19775. {
  19776. # Check whether --enable-arm-simd was given.
  19777. if test ${enable_arm_simd+y}
  19778. then :
  19779. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19780. else $as_nop
  19781. enable_arm_simd=no
  19782. fi
  19783. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19784. save_CFLAGS="$CFLAGS"
  19785. have_arm_simd=no
  19786. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19788. printf %s "checking for ARM SIMD... " >&6; }
  19789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19790. /* end confdefs.h. */
  19791. .text
  19792. .arch armv6
  19793. .object_arch armv4
  19794. .arm
  19795. .altmacro
  19796. #ifndef __ARM_EABI__
  19797. #error EABI is required (to be sure that calling conventions are compatible)
  19798. #endif
  19799. pld [r0]
  19800. uqadd8 r0, r0, r0
  19801. _ACEOF
  19802. if ac_fn_c_try_compile "$LINENO"
  19803. then :
  19804. have_arm_simd=yes
  19805. fi
  19806. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19808. printf "%s\n" "$have_arm_simd" >&6; }
  19809. CFLAGS="$save_CFLAGS"
  19810. if test x$have_arm_simd = xyes; then
  19811. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19812. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19813. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19814. fi
  19815. fi
  19816. }
  19817. CheckNEON()
  19818. {
  19819. # Check whether --enable-arm-neon was given.
  19820. if test ${enable_arm_neon+y}
  19821. then :
  19822. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19823. else $as_nop
  19824. enable_arm_neon=no
  19825. fi
  19826. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19827. save_CFLAGS="$CFLAGS"
  19828. have_arm_neon=no
  19829. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19831. printf %s "checking for ARM NEON... " >&6; }
  19832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19833. /* end confdefs.h. */
  19834. .text
  19835. .fpu neon
  19836. .arch armv7a
  19837. .object_arch armv4
  19838. .eabi_attribute 10, 0
  19839. .arm
  19840. .altmacro
  19841. #ifndef __ARM_EABI__
  19842. #error EABI is required (to be sure that calling conventions are compatible)
  19843. #endif
  19844. pld [r0]
  19845. vmovn.u16 d0, q0
  19846. _ACEOF
  19847. if ac_fn_c_try_compile "$LINENO"
  19848. then :
  19849. have_arm_neon=yes
  19850. fi
  19851. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19853. printf "%s\n" "$have_arm_neon" >&6; }
  19854. CFLAGS="$save_CFLAGS"
  19855. if test x$have_arm_neon = xyes; then
  19856. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19857. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19858. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19859. fi
  19860. fi
  19861. }
  19862. CheckObjectiveCARC()
  19863. {
  19864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19865. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19866. have_clang_objc_arc=no
  19867. save_CFLAGS="$CFLAGS"
  19868. CFLAGS="$save_CFLAGS -fobjc-arc"
  19869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19870. /* end confdefs.h. */
  19871. int x = 0;
  19872. int
  19873. main (void)
  19874. {
  19875. ;
  19876. return 0;
  19877. }
  19878. _ACEOF
  19879. if ac_fn_c_try_compile "$LINENO"
  19880. then :
  19881. have_clang_objc_arc=yes
  19882. fi
  19883. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19885. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19886. CFLAGS="$save_CFLAGS"
  19887. if test x$have_clang_objc_arc = xyes; then
  19888. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19889. fi
  19890. }
  19891. CheckGDwarf4()
  19892. {
  19893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19894. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19895. have_gcc_gdwarf4=no
  19896. save_CFLAGS="$CFLAGS"
  19897. CFLAGS="$save_CFLAGS -gdwarf-4"
  19898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19899. /* end confdefs.h. */
  19900. int x = 0;
  19901. int
  19902. main (void)
  19903. {
  19904. ;
  19905. return 0;
  19906. }
  19907. _ACEOF
  19908. if ac_fn_c_try_compile "$LINENO"
  19909. then :
  19910. have_gcc_gdwarf4=yes
  19911. fi
  19912. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19914. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19915. CFLAGS="$save_CFLAGS"
  19916. if test x$have_gcc_gdwarf4 = xyes; then
  19917. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19918. fi
  19919. }
  19920. CheckVisibilityHidden()
  19921. {
  19922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19923. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19924. have_gcc_fvisibility=no
  19925. visibility_CFLAGS="-fvisibility=hidden"
  19926. save_CFLAGS="$CFLAGS"
  19927. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19929. /* end confdefs.h. */
  19930. #if !defined(__GNUC__) || __GNUC__ < 4
  19931. #error SDL only uses visibility attributes in GCC 4 or newer
  19932. #endif
  19933. int
  19934. main (void)
  19935. {
  19936. ;
  19937. return 0;
  19938. }
  19939. _ACEOF
  19940. if ac_fn_c_try_compile "$LINENO"
  19941. then :
  19942. have_gcc_fvisibility=yes
  19943. fi
  19944. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19946. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19947. CFLAGS="$save_CFLAGS"
  19948. if test x$have_gcc_fvisibility = xyes; then
  19949. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19950. fi
  19951. }
  19952. CheckNoStrictAliasing()
  19953. {
  19954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19955. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19956. have_gcc_no_strict_aliasing=no
  19957. save_CFLAGS="$CFLAGS"
  19958. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19960. /* end confdefs.h. */
  19961. int x = 0;
  19962. int
  19963. main (void)
  19964. {
  19965. ;
  19966. return 0;
  19967. }
  19968. _ACEOF
  19969. if ac_fn_c_try_compile "$LINENO"
  19970. then :
  19971. have_gcc_no_strict_aliasing=yes
  19972. fi
  19973. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19975. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19976. CFLAGS="$save_CFLAGS"
  19977. if test x$have_gcc_no_strict_aliasing = xyes; then
  19978. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19979. fi
  19980. }
  19981. CheckWerror()
  19982. {
  19983. # Check whether --enable-werror was given.
  19984. if test ${enable_werror+y}
  19985. then :
  19986. enableval=$enable_werror; enable_werror=$enableval
  19987. else $as_nop
  19988. enable_werror=no
  19989. fi
  19990. if test x$enable_werror = xyes; then
  19991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19992. printf %s "checking for GCC -Werror option... " >&6; }
  19993. have_gcc_werror=no
  19994. save_CFLAGS="$CFLAGS"
  19995. CFLAGS="$save_CFLAGS -Werror"
  19996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19997. /* end confdefs.h. */
  19998. int x = 0;
  19999. int
  20000. main (void)
  20001. {
  20002. ;
  20003. return 0;
  20004. }
  20005. _ACEOF
  20006. if ac_fn_c_try_compile "$LINENO"
  20007. then :
  20008. have_gcc_werror=yes
  20009. fi
  20010. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20012. printf "%s\n" "$have_gcc_werror" >&6; }
  20013. CFLAGS="$save_CFLAGS"
  20014. if test x$have_gcc_werror = xyes; then
  20015. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  20016. fi
  20017. fi
  20018. }
  20019. CheckNoErrorDeprecatedDeclarationsWerror()
  20020. {
  20021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  20022. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  20023. have_gcc_no_werror_deprecated_declarations=no
  20024. save_CFLAGS="$CFLAGS"
  20025. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  20026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20027. /* end confdefs.h. */
  20028. int x = 0;
  20029. int
  20030. main (void)
  20031. {
  20032. ;
  20033. return 0;
  20034. }
  20035. _ACEOF
  20036. if ac_fn_c_try_compile "$LINENO"
  20037. then :
  20038. have_gcc_no_werror_deprecated_declarations=yes
  20039. fi
  20040. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20042. printf "%s\n" "$have_gcc_werror" >&6; }
  20043. CFLAGS="$save_CFLAGS"
  20044. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20045. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20046. fi
  20047. }
  20048. CheckDeclarationAfterStatement()
  20049. {
  20050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20051. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20052. have_gcc_declaration_after_statement=no
  20053. save_CFLAGS="$CFLAGS"
  20054. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20056. /* end confdefs.h. */
  20057. int x = 0;
  20058. int
  20059. main (void)
  20060. {
  20061. ;
  20062. return 0;
  20063. }
  20064. _ACEOF
  20065. if ac_fn_c_try_compile "$LINENO"
  20066. then :
  20067. have_gcc_declaration_after_statement=yes
  20068. fi
  20069. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20071. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20072. CFLAGS="$save_CFLAGS"
  20073. if test x$have_gcc_declaration_after_statement = xyes; then
  20074. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20075. fi
  20076. }
  20077. CheckWarnAll()
  20078. {
  20079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20080. printf %s "checking for GCC -Wall option... " >&6; }
  20081. have_gcc_Wall=no
  20082. save_CFLAGS="$CFLAGS"
  20083. CFLAGS="$save_CFLAGS -Wall"
  20084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20085. /* end confdefs.h. */
  20086. int x = 0;
  20087. int
  20088. main (void)
  20089. {
  20090. ;
  20091. return 0;
  20092. }
  20093. _ACEOF
  20094. if ac_fn_c_try_compile "$LINENO"
  20095. then :
  20096. have_gcc_Wall=yes
  20097. fi
  20098. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20100. printf "%s\n" "$have_gcc_Wall" >&6; }
  20101. CFLAGS="$save_CFLAGS"
  20102. if test x$have_gcc_Wall = xyes; then
  20103. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20105. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20106. need_gcc_Wno_multichar=no
  20107. case "$host" in
  20108. *-*-haiku*)
  20109. need_gcc_Wno_multichar=yes
  20110. ;;
  20111. esac
  20112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20113. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20114. if test x$need_gcc_Wno_multichar = xyes; then
  20115. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20116. fi
  20117. fi
  20118. }
  20119. CheckUnusedLocalTypedefs()
  20120. {
  20121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wunused-local-typedefs option" >&5
  20122. printf %s "checking for GCC -Wunused-local-typedefs option... " >&6; }
  20123. have_gcc_unused_local_typedefs=no
  20124. save_CFLAGS="$CFLAGS"
  20125. CFLAGS="$save_CFLAGS -Wunused-local-typedefs"
  20126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20127. /* end confdefs.h. */
  20128. int x = 0;
  20129. int
  20130. main (void)
  20131. {
  20132. ;
  20133. return 0;
  20134. }
  20135. _ACEOF
  20136. if ac_fn_c_try_compile "$LINENO"
  20137. then :
  20138. have_gcc_unused_local_typedefs=yes
  20139. fi
  20140. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_unused_local_typedefs" >&5
  20142. printf "%s\n" "$have_gcc_unused_local_typedefs" >&6; }
  20143. CFLAGS="$save_CFLAGS"
  20144. if test x$have_gcc_unused_local_typedefs = xyes; then
  20145. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-unused-local-typedefs"
  20146. fi
  20147. }
  20148. CheckWayland()
  20149. {
  20150. # Check whether --enable-video-wayland was given.
  20151. if test ${enable_video_wayland+y}
  20152. then :
  20153. enableval=$enable_video_wayland;
  20154. else $as_nop
  20155. enable_video_wayland=yes
  20156. fi
  20157. # Check whether --enable-video-wayland-qt-touch was given.
  20158. if test ${enable_video_wayland_qt_touch+y}
  20159. then :
  20160. enableval=$enable_video_wayland_qt_touch;
  20161. else $as_nop
  20162. enable_video_wayland_qt_touch=yes
  20163. fi
  20164. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20166. printf %s "checking for Wayland support... " >&6; }
  20167. video_wayland=no
  20168. if test x$video_opengl_egl = xyes && \
  20169. test x$video_opengles_v2 = xyes; then
  20170. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20171. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20172. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20173. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20174. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20175. then :
  20176. WAYLAND_SCANNER_CODE_MODE=private-code
  20177. else $as_nop
  20178. WAYLAND_SCANNER_CODE_MODE=code
  20179. fi
  20180. video_wayland=yes
  20181. fi
  20182. fi
  20183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20184. printf "%s\n" "$video_wayland" >&6; }
  20185. if test x$video_wayland = xyes; then
  20186. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20187. if test x$enable_video_wayland_qt_touch = xyes; then
  20188. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20189. fi
  20190. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20191. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20192. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20193. # Check whether --enable-wayland-shared was given.
  20194. if test ${enable_wayland_shared+y}
  20195. then :
  20196. enableval=$enable_wayland_shared;
  20197. else $as_nop
  20198. enable_wayland_shared=maybe
  20199. fi
  20200. case "$host" in
  20201. *)
  20202. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20203. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20204. if test x$wayland_egl_lib = x; then
  20205. # This works in Ubuntu 13.10, maybe others
  20206. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20207. fi
  20208. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20209. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20210. ;;
  20211. esac
  20212. if test x$enable_wayland_shared = xmaybe; then
  20213. enable_wayland_shared=yes
  20214. fi
  20215. if test x$have_loadso != xyes && \
  20216. test x$enable_wayland_shared = xyes; then
  20217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20218. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20219. enable_wayland_shared=no
  20220. fi
  20221. if test x$have_loadso = xyes && \
  20222. test x$enable_wayland_shared = xyes && \
  20223. test x$wayland_client_lib != x && \
  20224. test x$wayland_egl_lib != x && \
  20225. test x$wayland_cursor_lib != x && \
  20226. test x$xkbcommon_lib != x; then
  20227. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20228. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20229. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20230. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20231. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20232. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20233. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20234. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20235. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20236. else
  20237. enable_wayland_shared=no
  20238. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20239. SUMMARY_video="${SUMMARY_video} wayland"
  20240. fi
  20241. have_video=yes
  20242. # Check whether --enable-libdecor was given.
  20243. if test ${enable_libdecor+y}
  20244. then :
  20245. enableval=$enable_libdecor;
  20246. else $as_nop
  20247. enable_libdecor=yes
  20248. fi
  20249. if test x$enable_libdecor = xyes; then
  20250. pkg_failed=no
  20251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20252. printf %s "checking for libdecor-0... " >&6; }
  20253. if test -n "$DECOR_CFLAGS"; then
  20254. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20255. elif test -n "$PKG_CONFIG"; then
  20256. if test -n "$PKG_CONFIG" && \
  20257. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20258. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20259. ac_status=$?
  20260. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20261. test $ac_status = 0; }; then
  20262. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20263. test "x$?" != "x0" && pkg_failed=yes
  20264. else
  20265. pkg_failed=yes
  20266. fi
  20267. else
  20268. pkg_failed=untried
  20269. fi
  20270. if test -n "$DECOR_LIBS"; then
  20271. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20272. elif test -n "$PKG_CONFIG"; then
  20273. if test -n "$PKG_CONFIG" && \
  20274. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20275. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20276. ac_status=$?
  20277. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20278. test $ac_status = 0; }; then
  20279. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20280. test "x$?" != "x0" && pkg_failed=yes
  20281. else
  20282. pkg_failed=yes
  20283. fi
  20284. else
  20285. pkg_failed=untried
  20286. fi
  20287. if test $pkg_failed = yes; then
  20288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20289. printf "%s\n" "no" >&6; }
  20290. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20291. _pkg_short_errors_supported=yes
  20292. else
  20293. _pkg_short_errors_supported=no
  20294. fi
  20295. if test $_pkg_short_errors_supported = yes; then
  20296. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20297. else
  20298. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20299. fi
  20300. # Put the nasty error message in config.log where it belongs
  20301. echo "$DECOR_PKG_ERRORS" >&5
  20302. video_libdecor=no
  20303. elif test $pkg_failed = untried; then
  20304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20305. printf "%s\n" "no" >&6; }
  20306. video_libdecor=no
  20307. else
  20308. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20309. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20311. printf "%s\n" "yes" >&6; }
  20312. video_libdecor=yes
  20313. fi
  20314. if test x$video_libdecor = xyes; then
  20315. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20316. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20317. # Check whether --enable-libdecor-shared was given.
  20318. if test ${enable_libdecor_shared+y}
  20319. then :
  20320. enableval=$enable_libdecor_shared;
  20321. else $as_nop
  20322. enable_libdecor_shared=yes
  20323. fi
  20324. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20325. if test x$enable_wayland_shared != xyes; then
  20326. enable_libdecor_shared=no
  20327. fi
  20328. if test x$have_loadso != xyes && \
  20329. test x$enable_libdecor_shared = xyes; then
  20330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20331. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20332. fi
  20333. if test x$have_loadso = xyes && \
  20334. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20335. echo "-- dynamic libdecor -> $decor_lib"
  20336. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20337. else
  20338. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20339. fi
  20340. saved_cflags=$CFLAGS
  20341. CFLAGS="$CFLAGS $DECOR_CFLAGS"
  20342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  20343. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  20344. if test ${ac_cv_c_undeclared_builtin_options+y}
  20345. then :
  20346. printf %s "(cached) " >&6
  20347. else $as_nop
  20348. ac_save_CFLAGS=$CFLAGS
  20349. ac_cv_c_undeclared_builtin_options='cannot detect'
  20350. for ac_arg in '' -fno-builtin; do
  20351. CFLAGS="$ac_save_CFLAGS $ac_arg"
  20352. # This test program should *not* compile successfully.
  20353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20354. /* end confdefs.h. */
  20355. int
  20356. main (void)
  20357. {
  20358. (void) strchr;
  20359. ;
  20360. return 0;
  20361. }
  20362. _ACEOF
  20363. if ac_fn_c_try_compile "$LINENO"
  20364. then :
  20365. else $as_nop
  20366. # This test program should compile successfully.
  20367. # No library function is consistently available on
  20368. # freestanding implementations, so test against a dummy
  20369. # declaration. Include always-available headers on the
  20370. # off chance that they somehow elicit warnings.
  20371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20372. /* end confdefs.h. */
  20373. #include <float.h>
  20374. #include <limits.h>
  20375. #include <stdarg.h>
  20376. #include <stddef.h>
  20377. extern void ac_decl (int, char *);
  20378. int
  20379. main (void)
  20380. {
  20381. (void) ac_decl (0, (char *) 0);
  20382. (void) ac_decl;
  20383. ;
  20384. return 0;
  20385. }
  20386. _ACEOF
  20387. if ac_fn_c_try_compile "$LINENO"
  20388. then :
  20389. if test x"$ac_arg" = x
  20390. then :
  20391. ac_cv_c_undeclared_builtin_options='none needed'
  20392. else $as_nop
  20393. ac_cv_c_undeclared_builtin_options=$ac_arg
  20394. fi
  20395. break
  20396. fi
  20397. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20398. fi
  20399. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20400. done
  20401. CFLAGS=$ac_save_CFLAGS
  20402. fi
  20403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  20404. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  20405. case $ac_cv_c_undeclared_builtin_options in #(
  20406. 'cannot detect') :
  20407. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20408. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20409. as_fn_error $? "cannot make $CC report undeclared builtins
  20410. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  20411. 'none needed') :
  20412. ac_c_undeclared_builtin_options='' ;; #(
  20413. *) :
  20414. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  20415. esac
  20416. ac_fn_check_decl "$LINENO" "libdecor_frame_get_min_content_size" "ac_cv_have_decl_libdecor_frame_get_min_content_size" "#include <libdecor.h>
  20417. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20418. if test "x$ac_cv_have_decl_libdecor_frame_get_min_content_size" = xyes
  20419. then :
  20420. ac_have_decl=1
  20421. else $as_nop
  20422. ac_have_decl=0
  20423. fi
  20424. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MIN_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20425. if test $ac_have_decl = 1
  20426. then :
  20427. libdecor_get_min_max=yes
  20428. fi
  20429. ac_fn_check_decl "$LINENO" "libdecor_frame_get_max_content_size" "ac_cv_have_decl_libdecor_frame_get_max_content_size" "#include <libdecor.h>
  20430. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20431. if test "x$ac_cv_have_decl_libdecor_frame_get_max_content_size" = xyes
  20432. then :
  20433. ac_have_decl=1
  20434. else $as_nop
  20435. ac_have_decl=0
  20436. fi
  20437. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MAX_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20438. if test $ac_have_decl = 1
  20439. then :
  20440. libdecor_get_min_max=yes
  20441. fi
  20442. if test x$libdecor_get_min_max = xyes; then
  20443. printf "%s\n" "#define SDL_HAVE_LIBDECOR_GET_MIN_MAX 1" >>confdefs.h
  20444. fi
  20445. CFLAGS="$saved_cflags"
  20446. fi
  20447. fi
  20448. fi
  20449. fi
  20450. }
  20451. CheckNativeClient()
  20452. {
  20453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20454. /* end confdefs.h. */
  20455. #if !defined(__native_client__)
  20456. #error "NO NACL"
  20457. #endif
  20458. int
  20459. main (void)
  20460. {
  20461. ;
  20462. return 0;
  20463. }
  20464. _ACEOF
  20465. if ac_fn_c_try_compile "$LINENO"
  20466. then :
  20467. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20468. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20469. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20470. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20471. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20472. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20473. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20474. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20475. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20476. SUMMARY_audio="${SUMMARY_audio} nacl"
  20477. have_audio=yes
  20478. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20479. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20480. have_video=yes
  20481. fi
  20482. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20483. }
  20484. CheckRPI()
  20485. {
  20486. # Check whether --enable-video-rpi was given.
  20487. if test ${enable_video_rpi+y}
  20488. then :
  20489. enableval=$enable_video_rpi;
  20490. else $as_nop
  20491. enable_video_rpi=yes
  20492. fi
  20493. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20494. pkg_failed=no
  20495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host" >&5
  20496. printf %s "checking for bcm_host... " >&6; }
  20497. if test -n "$RPI_CFLAGS"; then
  20498. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20499. elif test -n "$PKG_CONFIG"; then
  20500. if test -n "$PKG_CONFIG" && \
  20501. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20502. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20503. ac_status=$?
  20504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20505. test $ac_status = 0; }; then
  20506. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host" 2>/dev/null`
  20507. test "x$?" != "x0" && pkg_failed=yes
  20508. else
  20509. pkg_failed=yes
  20510. fi
  20511. else
  20512. pkg_failed=untried
  20513. fi
  20514. if test -n "$RPI_LIBS"; then
  20515. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20516. elif test -n "$PKG_CONFIG"; then
  20517. if test -n "$PKG_CONFIG" && \
  20518. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20519. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20520. ac_status=$?
  20521. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20522. test $ac_status = 0; }; then
  20523. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host" 2>/dev/null`
  20524. test "x$?" != "x0" && pkg_failed=yes
  20525. else
  20526. pkg_failed=yes
  20527. fi
  20528. else
  20529. pkg_failed=untried
  20530. fi
  20531. if test $pkg_failed = yes; then
  20532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20533. printf "%s\n" "no" >&6; }
  20534. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20535. _pkg_short_errors_supported=yes
  20536. else
  20537. _pkg_short_errors_supported=no
  20538. fi
  20539. if test $_pkg_short_errors_supported = yes; then
  20540. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host" 2>&1`
  20541. else
  20542. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host" 2>&1`
  20543. fi
  20544. # Put the nasty error message in config.log where it belongs
  20545. echo "$RPI_PKG_ERRORS" >&5
  20546. video_rpi=no
  20547. elif test $pkg_failed = untried; then
  20548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20549. printf "%s\n" "no" >&6; }
  20550. video_rpi=no
  20551. else
  20552. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20553. RPI_LIBS=$pkg_cv_RPI_LIBS
  20554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20555. printf "%s\n" "yes" >&6; }
  20556. video_rpi=yes
  20557. fi
  20558. pkg_failed=no
  20559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for brcmegl" >&5
  20560. printf %s "checking for brcmegl... " >&6; }
  20561. if test -n "$RPI_EGL_CFLAGS"; then
  20562. pkg_cv_RPI_EGL_CFLAGS="$RPI_EGL_CFLAGS"
  20563. elif test -n "$PKG_CONFIG"; then
  20564. if test -n "$PKG_CONFIG" && \
  20565. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20566. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20567. ac_status=$?
  20568. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20569. test $ac_status = 0; }; then
  20570. pkg_cv_RPI_EGL_CFLAGS=`$PKG_CONFIG --cflags "brcmegl" 2>/dev/null`
  20571. test "x$?" != "x0" && pkg_failed=yes
  20572. else
  20573. pkg_failed=yes
  20574. fi
  20575. else
  20576. pkg_failed=untried
  20577. fi
  20578. if test -n "$RPI_EGL_LIBS"; then
  20579. pkg_cv_RPI_EGL_LIBS="$RPI_EGL_LIBS"
  20580. elif test -n "$PKG_CONFIG"; then
  20581. if test -n "$PKG_CONFIG" && \
  20582. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20583. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20584. ac_status=$?
  20585. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20586. test $ac_status = 0; }; then
  20587. pkg_cv_RPI_EGL_LIBS=`$PKG_CONFIG --libs "brcmegl" 2>/dev/null`
  20588. test "x$?" != "x0" && pkg_failed=yes
  20589. else
  20590. pkg_failed=yes
  20591. fi
  20592. else
  20593. pkg_failed=untried
  20594. fi
  20595. if test $pkg_failed = yes; then
  20596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20597. printf "%s\n" "no" >&6; }
  20598. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20599. _pkg_short_errors_supported=yes
  20600. else
  20601. _pkg_short_errors_supported=no
  20602. fi
  20603. if test $_pkg_short_errors_supported = yes; then
  20604. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "brcmegl" 2>&1`
  20605. else
  20606. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "brcmegl" 2>&1`
  20607. fi
  20608. # Put the nasty error message in config.log where it belongs
  20609. echo "$RPI_EGL_PKG_ERRORS" >&5
  20610. video_rpi_egl=no
  20611. elif test $pkg_failed = untried; then
  20612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20613. printf "%s\n" "no" >&6; }
  20614. video_rpi_egl=no
  20615. else
  20616. RPI_EGL_CFLAGS=$pkg_cv_RPI_EGL_CFLAGS
  20617. RPI_EGL_LIBS=$pkg_cv_RPI_EGL_LIBS
  20618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20619. printf "%s\n" "yes" >&6; }
  20620. video_rpi_egl=yes
  20621. fi
  20622. if test x$video_rpi = xno; then
  20623. if test x$ARCH = xnetbsd; then
  20624. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20625. RPI_LIBS="-L/usr/pkg/lib -lbcm_host"
  20626. else
  20627. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20628. RPI_LIBS="-L/opt/vc/lib -lbcm_host"
  20629. fi
  20630. fi
  20631. if test x$video_rpi_egl = xno; then
  20632. if test x$ARCH = xnetbsd; then
  20633. RPI_EGL_LIBS="-Wl,-R/usr/pkg/lib"
  20634. else
  20635. RPI_EGL_LIBS="-Wl,-rpath,/opt/vc/lib"
  20636. fi
  20637. fi
  20638. # Save the original compiler flags and libraries
  20639. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20640. # Add the Raspberry Pi compiler flags and libraries
  20641. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_EGL_LIBS $RPI_LIBS"
  20642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 0-3" >&5
  20643. printf %s "checking for Raspberry Pi 0-3... " >&6; }
  20644. have_video_rpi=no
  20645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20646. /* end confdefs.h. */
  20647. #include <bcm_host.h>
  20648. int
  20649. main (void)
  20650. {
  20651. bcm_host_init();
  20652. ;
  20653. return 0;
  20654. }
  20655. _ACEOF
  20656. if ac_fn_c_try_link "$LINENO"
  20657. then :
  20658. have_video_rpi=yes
  20659. fi
  20660. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20661. conftest$ac_exeext conftest.$ac_ext
  20662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20663. printf "%s\n" "$have_video_rpi" >&6; }
  20664. # Restore the compiler flags and libraries
  20665. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20666. if test x$have_video_rpi = xyes; then
  20667. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20668. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20669. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20670. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_EGL_LIBS $RPI_LIBS"
  20671. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20672. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20673. SUMMARY_video="${SUMMARY_video} rpi"
  20674. have_video=yes
  20675. fi
  20676. fi
  20677. }
  20678. CheckX11()
  20679. {
  20680. # Check whether --enable-video-x11 was given.
  20681. if test ${enable_video_x11+y}
  20682. then :
  20683. enableval=$enable_video_x11;
  20684. else $as_nop
  20685. enable_video_x11=yes
  20686. case "$host" in
  20687. *-*-darwin*|*-ios-*)
  20688. enable_video_x11=no
  20689. ;;
  20690. esac
  20691. fi
  20692. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20693. case "$host" in
  20694. *-*-darwin*)
  20695. # This isn't necessary for X11, but fixes GLX detection
  20696. if test "x$x_includes" = xNONE && \
  20697. test "x$x_libraries" = xNONE && \
  20698. test -d /opt/X11/include && \
  20699. test -d /opt/X11/lib; then
  20700. x_includes="/opt/X11/include"
  20701. x_libraries="/opt/X11/lib"
  20702. fi
  20703. ;;
  20704. esac
  20705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20706. printf %s "checking for X... " >&6; }
  20707. # Check whether --with-x was given.
  20708. if test ${with_x+y}
  20709. then :
  20710. withval=$with_x;
  20711. fi
  20712. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20713. if test "x$with_x" = xno; then
  20714. # The user explicitly disabled X.
  20715. have_x=disabled
  20716. else
  20717. case $x_includes,$x_libraries in #(
  20718. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20719. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20720. then :
  20721. printf %s "(cached) " >&6
  20722. else $as_nop
  20723. # One or both of the vars are not set, and there is no cached value.
  20724. ac_x_includes=no
  20725. ac_x_libraries=no
  20726. # Do we need to do anything special at all?
  20727. ac_save_LIBS=$LIBS
  20728. LIBS="-lX11 $LIBS"
  20729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20730. /* end confdefs.h. */
  20731. #include <X11/Xlib.h>
  20732. int
  20733. main (void)
  20734. {
  20735. XrmInitialize ()
  20736. ;
  20737. return 0;
  20738. }
  20739. _ACEOF
  20740. if ac_fn_c_try_link "$LINENO"
  20741. then :
  20742. # We can compile and link X programs with no special options.
  20743. ac_x_includes=
  20744. ac_x_libraries=
  20745. fi
  20746. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20747. conftest$ac_exeext conftest.$ac_ext
  20748. LIBS="$ac_save_LIBS"
  20749. # If that didn't work, only try xmkmf and file system searches
  20750. # for native compilation.
  20751. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20752. then :
  20753. rm -f -r conftest.dir
  20754. if mkdir conftest.dir; then
  20755. cd conftest.dir
  20756. cat >Imakefile <<'_ACEOF'
  20757. incroot:
  20758. @echo incroot='${INCROOT}'
  20759. usrlibdir:
  20760. @echo usrlibdir='${USRLIBDIR}'
  20761. libdir:
  20762. @echo libdir='${LIBDIR}'
  20763. _ACEOF
  20764. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20765. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20766. for ac_var in incroot usrlibdir libdir; do
  20767. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20768. done
  20769. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20770. for ac_extension in a so sl dylib la dll; do
  20771. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20772. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20773. ac_im_usrlibdir=$ac_im_libdir; break
  20774. fi
  20775. done
  20776. # Screen out bogus values from the imake configuration. They are
  20777. # bogus both because they are the default anyway, and because
  20778. # using them would break gcc on systems where it needs fixed includes.
  20779. case $ac_im_incroot in
  20780. /usr/include) ac_x_includes= ;;
  20781. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20782. esac
  20783. case $ac_im_usrlibdir in
  20784. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20785. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20786. esac
  20787. fi
  20788. cd ..
  20789. rm -f -r conftest.dir
  20790. fi
  20791. # Standard set of common directories for X headers.
  20792. # Check X11 before X11Rn because it is often a symlink to the current release.
  20793. ac_x_header_dirs='
  20794. /usr/X11/include
  20795. /usr/X11R7/include
  20796. /usr/X11R6/include
  20797. /usr/X11R5/include
  20798. /usr/X11R4/include
  20799. /usr/include/X11
  20800. /usr/include/X11R7
  20801. /usr/include/X11R6
  20802. /usr/include/X11R5
  20803. /usr/include/X11R4
  20804. /usr/local/X11/include
  20805. /usr/local/X11R7/include
  20806. /usr/local/X11R6/include
  20807. /usr/local/X11R5/include
  20808. /usr/local/X11R4/include
  20809. /usr/local/include/X11
  20810. /usr/local/include/X11R7
  20811. /usr/local/include/X11R6
  20812. /usr/local/include/X11R5
  20813. /usr/local/include/X11R4
  20814. /opt/X11/include
  20815. /usr/X386/include
  20816. /usr/x386/include
  20817. /usr/XFree86/include/X11
  20818. /usr/include
  20819. /usr/local/include
  20820. /usr/unsupported/include
  20821. /usr/athena/include
  20822. /usr/local/x11r5/include
  20823. /usr/lpp/Xamples/include
  20824. /usr/openwin/include
  20825. /usr/openwin/share/include'
  20826. if test "$ac_x_includes" = no; then
  20827. # Guess where to find include files, by looking for Xlib.h.
  20828. # First, try using that file with no special directory specified.
  20829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20830. /* end confdefs.h. */
  20831. #include <X11/Xlib.h>
  20832. _ACEOF
  20833. if ac_fn_c_try_cpp "$LINENO"
  20834. then :
  20835. # We can compile using X headers with no special include directory.
  20836. ac_x_includes=
  20837. else $as_nop
  20838. for ac_dir in $ac_x_header_dirs; do
  20839. if test -r "$ac_dir/X11/Xlib.h"; then
  20840. ac_x_includes=$ac_dir
  20841. break
  20842. fi
  20843. done
  20844. fi
  20845. rm -f conftest.err conftest.i conftest.$ac_ext
  20846. fi # $ac_x_includes = no
  20847. if test "$ac_x_libraries" = no; then
  20848. # Check for the libraries.
  20849. # See if we find them without any special options.
  20850. # Don't add to $LIBS permanently.
  20851. ac_save_LIBS=$LIBS
  20852. LIBS="-lX11 $LIBS"
  20853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20854. /* end confdefs.h. */
  20855. #include <X11/Xlib.h>
  20856. int
  20857. main (void)
  20858. {
  20859. XrmInitialize ()
  20860. ;
  20861. return 0;
  20862. }
  20863. _ACEOF
  20864. if ac_fn_c_try_link "$LINENO"
  20865. then :
  20866. LIBS=$ac_save_LIBS
  20867. # We can link X programs with no special library path.
  20868. ac_x_libraries=
  20869. else $as_nop
  20870. LIBS=$ac_save_LIBS
  20871. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20872. do
  20873. # Don't even attempt the hair of trying to link an X program!
  20874. for ac_extension in a so sl dylib la dll; do
  20875. if test -r "$ac_dir/libX11.$ac_extension"; then
  20876. ac_x_libraries=$ac_dir
  20877. break 2
  20878. fi
  20879. done
  20880. done
  20881. fi
  20882. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20883. conftest$ac_exeext conftest.$ac_ext
  20884. fi # $ac_x_libraries = no
  20885. fi
  20886. # Record the results.
  20887. case $ac_x_includes,$ac_x_libraries in #(
  20888. no,* | *,no | *\'*) :
  20889. # Didn't find X, or a directory has "'" in its name.
  20890. ac_cv_have_x="have_x=no" ;; #(
  20891. *) :
  20892. # Record where we found X for the cache.
  20893. ac_cv_have_x="have_x=yes\
  20894. ac_x_includes='$ac_x_includes'\
  20895. ac_x_libraries='$ac_x_libraries'" ;;
  20896. esac
  20897. fi
  20898. ;; #(
  20899. *) have_x=yes;;
  20900. esac
  20901. eval "$ac_cv_have_x"
  20902. fi # $with_x != no
  20903. if test "$have_x" != yes; then
  20904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20905. printf "%s\n" "$have_x" >&6; }
  20906. no_x=yes
  20907. else
  20908. # If each of the values was on the command line, it overrides each guess.
  20909. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20910. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20911. # Update the cache value to reflect the command line values.
  20912. ac_cv_have_x="have_x=yes\
  20913. ac_x_includes='$x_includes'\
  20914. ac_x_libraries='$x_libraries'"
  20915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20916. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20917. fi
  20918. if test "$no_x" = yes; then
  20919. # Not all programs may use this symbol, but it does not hurt to define it.
  20920. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20921. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20922. else
  20923. if test -n "$x_includes"; then
  20924. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20925. fi
  20926. # It would also be nice to do this for all -L options, not just this one.
  20927. if test -n "$x_libraries"; then
  20928. X_LIBS="$X_LIBS -L$x_libraries"
  20929. # For Solaris; some versions of Sun CC require a space after -R and
  20930. # others require no space. Words are not sufficient . . . .
  20931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20932. printf %s "checking whether -R must be followed by a space... " >&6; }
  20933. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20934. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20935. ac_c_werror_flag=yes
  20936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20937. /* end confdefs.h. */
  20938. int
  20939. main (void)
  20940. {
  20941. ;
  20942. return 0;
  20943. }
  20944. _ACEOF
  20945. if ac_fn_c_try_link "$LINENO"
  20946. then :
  20947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20948. printf "%s\n" "no" >&6; }
  20949. X_LIBS="$X_LIBS -R$x_libraries"
  20950. else $as_nop
  20951. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20953. /* end confdefs.h. */
  20954. int
  20955. main (void)
  20956. {
  20957. ;
  20958. return 0;
  20959. }
  20960. _ACEOF
  20961. if ac_fn_c_try_link "$LINENO"
  20962. then :
  20963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20964. printf "%s\n" "yes" >&6; }
  20965. X_LIBS="$X_LIBS -R $x_libraries"
  20966. else $as_nop
  20967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20968. printf "%s\n" "neither works" >&6; }
  20969. fi
  20970. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20971. conftest$ac_exeext conftest.$ac_ext
  20972. fi
  20973. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20974. conftest$ac_exeext conftest.$ac_ext
  20975. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20976. LIBS=$ac_xsave_LIBS
  20977. fi
  20978. # Check for system-dependent libraries X programs must link with.
  20979. # Do this before checking for the system-independent R6 libraries
  20980. # (-lICE), since we may need -lsocket or whatever for X linking.
  20981. if test "$ISC" = yes; then
  20982. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20983. else
  20984. # Martyn Johnson says this is needed for Ultrix, if the X
  20985. # libraries were built with DECnet support. And Karl Berry says
  20986. # the Alpha needs dnet_stub (dnet does not exist).
  20987. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20989. /* end confdefs.h. */
  20990. /* Override any GCC internal prototype to avoid an error.
  20991. Use char because int might match the return type of a GCC
  20992. builtin and then its argument prototype would still apply. */
  20993. char XOpenDisplay ();
  20994. int
  20995. main (void)
  20996. {
  20997. return XOpenDisplay ();
  20998. ;
  20999. return 0;
  21000. }
  21001. _ACEOF
  21002. if ac_fn_c_try_link "$LINENO"
  21003. then :
  21004. else $as_nop
  21005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  21006. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  21007. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  21008. then :
  21009. printf %s "(cached) " >&6
  21010. else $as_nop
  21011. ac_check_lib_save_LIBS=$LIBS
  21012. LIBS="-ldnet $LIBS"
  21013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21014. /* end confdefs.h. */
  21015. /* Override any GCC internal prototype to avoid an error.
  21016. Use char because int might match the return type of a GCC
  21017. builtin and then its argument prototype would still apply. */
  21018. char dnet_ntoa ();
  21019. int
  21020. main (void)
  21021. {
  21022. return dnet_ntoa ();
  21023. ;
  21024. return 0;
  21025. }
  21026. _ACEOF
  21027. if ac_fn_c_try_link "$LINENO"
  21028. then :
  21029. ac_cv_lib_dnet_dnet_ntoa=yes
  21030. else $as_nop
  21031. ac_cv_lib_dnet_dnet_ntoa=no
  21032. fi
  21033. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21034. conftest$ac_exeext conftest.$ac_ext
  21035. LIBS=$ac_check_lib_save_LIBS
  21036. fi
  21037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  21038. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  21039. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  21040. then :
  21041. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  21042. fi
  21043. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  21044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  21045. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  21046. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  21047. then :
  21048. printf %s "(cached) " >&6
  21049. else $as_nop
  21050. ac_check_lib_save_LIBS=$LIBS
  21051. LIBS="-ldnet_stub $LIBS"
  21052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21053. /* end confdefs.h. */
  21054. /* Override any GCC internal prototype to avoid an error.
  21055. Use char because int might match the return type of a GCC
  21056. builtin and then its argument prototype would still apply. */
  21057. char dnet_ntoa ();
  21058. int
  21059. main (void)
  21060. {
  21061. return dnet_ntoa ();
  21062. ;
  21063. return 0;
  21064. }
  21065. _ACEOF
  21066. if ac_fn_c_try_link "$LINENO"
  21067. then :
  21068. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  21069. else $as_nop
  21070. ac_cv_lib_dnet_stub_dnet_ntoa=no
  21071. fi
  21072. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21073. conftest$ac_exeext conftest.$ac_ext
  21074. LIBS=$ac_check_lib_save_LIBS
  21075. fi
  21076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  21077. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  21078. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  21079. then :
  21080. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  21081. fi
  21082. fi
  21083. fi
  21084. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21085. conftest$ac_exeext conftest.$ac_ext
  21086. LIBS="$ac_xsave_LIBS"
  21087. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  21088. # to get the SysV transport functions.
  21089. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  21090. # needs -lnsl.
  21091. # The nsl library prevents programs from opening the X display
  21092. # on Irix 5.2, according to T.E. Dickey.
  21093. # The functions gethostbyname, getservbyname, and inet_addr are
  21094. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  21095. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  21096. if test "x$ac_cv_func_gethostbyname" = xyes
  21097. then :
  21098. fi
  21099. if test $ac_cv_func_gethostbyname = no; then
  21100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  21101. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  21102. if test ${ac_cv_lib_nsl_gethostbyname+y}
  21103. then :
  21104. printf %s "(cached) " >&6
  21105. else $as_nop
  21106. ac_check_lib_save_LIBS=$LIBS
  21107. LIBS="-lnsl $LIBS"
  21108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21109. /* end confdefs.h. */
  21110. /* Override any GCC internal prototype to avoid an error.
  21111. Use char because int might match the return type of a GCC
  21112. builtin and then its argument prototype would still apply. */
  21113. char gethostbyname ();
  21114. int
  21115. main (void)
  21116. {
  21117. return gethostbyname ();
  21118. ;
  21119. return 0;
  21120. }
  21121. _ACEOF
  21122. if ac_fn_c_try_link "$LINENO"
  21123. then :
  21124. ac_cv_lib_nsl_gethostbyname=yes
  21125. else $as_nop
  21126. ac_cv_lib_nsl_gethostbyname=no
  21127. fi
  21128. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21129. conftest$ac_exeext conftest.$ac_ext
  21130. LIBS=$ac_check_lib_save_LIBS
  21131. fi
  21132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21133. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21134. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  21135. then :
  21136. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21137. fi
  21138. if test $ac_cv_lib_nsl_gethostbyname = no; then
  21139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  21140. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  21141. if test ${ac_cv_lib_bsd_gethostbyname+y}
  21142. then :
  21143. printf %s "(cached) " >&6
  21144. else $as_nop
  21145. ac_check_lib_save_LIBS=$LIBS
  21146. LIBS="-lbsd $LIBS"
  21147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21148. /* end confdefs.h. */
  21149. /* Override any GCC internal prototype to avoid an error.
  21150. Use char because int might match the return type of a GCC
  21151. builtin and then its argument prototype would still apply. */
  21152. char gethostbyname ();
  21153. int
  21154. main (void)
  21155. {
  21156. return gethostbyname ();
  21157. ;
  21158. return 0;
  21159. }
  21160. _ACEOF
  21161. if ac_fn_c_try_link "$LINENO"
  21162. then :
  21163. ac_cv_lib_bsd_gethostbyname=yes
  21164. else $as_nop
  21165. ac_cv_lib_bsd_gethostbyname=no
  21166. fi
  21167. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21168. conftest$ac_exeext conftest.$ac_ext
  21169. LIBS=$ac_check_lib_save_LIBS
  21170. fi
  21171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21172. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  21173. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  21174. then :
  21175. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21176. fi
  21177. fi
  21178. fi
  21179. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  21180. # socket/setsockopt and other routines are undefined under SCO ODT
  21181. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  21182. # on later versions), says Simon Leinen: it contains gethostby*
  21183. # variants that don't use the name server (or something). -lsocket
  21184. # must be given before -lnsl if both are needed. We assume that
  21185. # if connect needs -lnsl, so does gethostbyname.
  21186. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  21187. if test "x$ac_cv_func_connect" = xyes
  21188. then :
  21189. fi
  21190. if test $ac_cv_func_connect = no; then
  21191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  21192. printf %s "checking for connect in -lsocket... " >&6; }
  21193. if test ${ac_cv_lib_socket_connect+y}
  21194. then :
  21195. printf %s "(cached) " >&6
  21196. else $as_nop
  21197. ac_check_lib_save_LIBS=$LIBS
  21198. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21200. /* end confdefs.h. */
  21201. /* Override any GCC internal prototype to avoid an error.
  21202. Use char because int might match the return type of a GCC
  21203. builtin and then its argument prototype would still apply. */
  21204. char connect ();
  21205. int
  21206. main (void)
  21207. {
  21208. return connect ();
  21209. ;
  21210. return 0;
  21211. }
  21212. _ACEOF
  21213. if ac_fn_c_try_link "$LINENO"
  21214. then :
  21215. ac_cv_lib_socket_connect=yes
  21216. else $as_nop
  21217. ac_cv_lib_socket_connect=no
  21218. fi
  21219. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21220. conftest$ac_exeext conftest.$ac_ext
  21221. LIBS=$ac_check_lib_save_LIBS
  21222. fi
  21223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  21224. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  21225. if test "x$ac_cv_lib_socket_connect" = xyes
  21226. then :
  21227. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21228. fi
  21229. fi
  21230. # Guillermo Gomez says -lposix is necessary on A/UX.
  21231. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  21232. if test "x$ac_cv_func_remove" = xyes
  21233. then :
  21234. fi
  21235. if test $ac_cv_func_remove = no; then
  21236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  21237. printf %s "checking for remove in -lposix... " >&6; }
  21238. if test ${ac_cv_lib_posix_remove+y}
  21239. then :
  21240. printf %s "(cached) " >&6
  21241. else $as_nop
  21242. ac_check_lib_save_LIBS=$LIBS
  21243. LIBS="-lposix $LIBS"
  21244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21245. /* end confdefs.h. */
  21246. /* Override any GCC internal prototype to avoid an error.
  21247. Use char because int might match the return type of a GCC
  21248. builtin and then its argument prototype would still apply. */
  21249. char remove ();
  21250. int
  21251. main (void)
  21252. {
  21253. return remove ();
  21254. ;
  21255. return 0;
  21256. }
  21257. _ACEOF
  21258. if ac_fn_c_try_link "$LINENO"
  21259. then :
  21260. ac_cv_lib_posix_remove=yes
  21261. else $as_nop
  21262. ac_cv_lib_posix_remove=no
  21263. fi
  21264. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21265. conftest$ac_exeext conftest.$ac_ext
  21266. LIBS=$ac_check_lib_save_LIBS
  21267. fi
  21268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21269. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21270. if test "x$ac_cv_lib_posix_remove" = xyes
  21271. then :
  21272. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21273. fi
  21274. fi
  21275. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21276. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21277. if test "x$ac_cv_func_shmat" = xyes
  21278. then :
  21279. fi
  21280. if test $ac_cv_func_shmat = no; then
  21281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21282. printf %s "checking for shmat in -lipc... " >&6; }
  21283. if test ${ac_cv_lib_ipc_shmat+y}
  21284. then :
  21285. printf %s "(cached) " >&6
  21286. else $as_nop
  21287. ac_check_lib_save_LIBS=$LIBS
  21288. LIBS="-lipc $LIBS"
  21289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21290. /* end confdefs.h. */
  21291. /* Override any GCC internal prototype to avoid an error.
  21292. Use char because int might match the return type of a GCC
  21293. builtin and then its argument prototype would still apply. */
  21294. char shmat ();
  21295. int
  21296. main (void)
  21297. {
  21298. return shmat ();
  21299. ;
  21300. return 0;
  21301. }
  21302. _ACEOF
  21303. if ac_fn_c_try_link "$LINENO"
  21304. then :
  21305. ac_cv_lib_ipc_shmat=yes
  21306. else $as_nop
  21307. ac_cv_lib_ipc_shmat=no
  21308. fi
  21309. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21310. conftest$ac_exeext conftest.$ac_ext
  21311. LIBS=$ac_check_lib_save_LIBS
  21312. fi
  21313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21314. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21315. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21316. then :
  21317. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21318. fi
  21319. fi
  21320. fi
  21321. # Check for libraries that X11R6 Xt/Xaw programs need.
  21322. ac_save_LDFLAGS=$LDFLAGS
  21323. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21324. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21325. # check for ICE first), but we must link in the order -lSM -lICE or
  21326. # we get undefined symbols. So assume we have SM if we have ICE.
  21327. # These have to be linked with before -lX11, unlike the other
  21328. # libraries we check for below, so use a different variable.
  21329. # John Interrante, Karl Berry
  21330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21331. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21332. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21333. then :
  21334. printf %s "(cached) " >&6
  21335. else $as_nop
  21336. ac_check_lib_save_LIBS=$LIBS
  21337. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21339. /* end confdefs.h. */
  21340. /* Override any GCC internal prototype to avoid an error.
  21341. Use char because int might match the return type of a GCC
  21342. builtin and then its argument prototype would still apply. */
  21343. char IceConnectionNumber ();
  21344. int
  21345. main (void)
  21346. {
  21347. return IceConnectionNumber ();
  21348. ;
  21349. return 0;
  21350. }
  21351. _ACEOF
  21352. if ac_fn_c_try_link "$LINENO"
  21353. then :
  21354. ac_cv_lib_ICE_IceConnectionNumber=yes
  21355. else $as_nop
  21356. ac_cv_lib_ICE_IceConnectionNumber=no
  21357. fi
  21358. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21359. conftest$ac_exeext conftest.$ac_ext
  21360. LIBS=$ac_check_lib_save_LIBS
  21361. fi
  21362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21363. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21364. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21365. then :
  21366. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21367. fi
  21368. LDFLAGS=$ac_save_LDFLAGS
  21369. fi
  21370. if test x$have_x = xyes; then
  21371. # Check whether --enable-x11-shared was given.
  21372. if test ${enable_x11_shared+y}
  21373. then :
  21374. enableval=$enable_x11_shared;
  21375. else $as_nop
  21376. enable_x11_shared=maybe
  21377. fi
  21378. case "$host" in
  21379. *-*-darwin*)
  21380. # Apple now puts this in /opt/X11
  21381. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21382. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21383. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21384. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21385. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21386. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21387. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21388. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21389. ;;
  21390. *-*-openbsd*)
  21391. x11_lib='libX11.so'
  21392. x11ext_lib='libXext.so'
  21393. xcursor_lib='libXcursor.so'
  21394. xinput_lib='libXi.so'
  21395. xfixes_lib='libXfixes.so'
  21396. xrandr_lib='libXrandr.so'
  21397. xrender_lib='libXrender.so'
  21398. xss_lib='libXss.so'
  21399. ;;
  21400. *)
  21401. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21402. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21403. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21404. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21405. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21406. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21407. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21408. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21409. ;;
  21410. esac
  21411. if test x$ac_cv_func_shmat != xyes; then
  21412. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21413. fi
  21414. CFLAGS="$CFLAGS $X_CFLAGS"
  21415. LDFLAGS="$LDFLAGS $X_LIBS"
  21416. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21417. #include <X11/Xproto.h>
  21418. "
  21419. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21420. then :
  21421. have_xext_h_hdr=yes
  21422. else $as_nop
  21423. have_xext_h_hdr=no
  21424. fi
  21425. if test x$have_xext_h_hdr != xyes; then
  21426. as_fn_error $? "
  21427. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21428. " "$LINENO" 5
  21429. fi
  21430. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21431. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21432. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21433. # Needed so SDL applications can include SDL_syswm.h
  21434. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21435. if test x$enable_x11_shared = xmaybe; then
  21436. enable_x11_shared=yes
  21437. fi
  21438. if test x$have_loadso != xyes && \
  21439. test x$enable_x11_shared = xyes; then
  21440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21441. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21442. enable_x11_shared=no
  21443. fi
  21444. if test x$have_loadso = xyes && \
  21445. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21446. echo "-- dynamic libX11 -> $x11_lib"
  21447. echo "-- dynamic libX11ext -> $x11ext_lib"
  21448. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21449. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21450. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21451. else
  21452. enable_x11_shared=no
  21453. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21454. SUMMARY_video="${SUMMARY_video} x11"
  21455. fi
  21456. have_video=yes
  21457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21458. printf %s "checking for XGenericEvent... " >&6; }
  21459. have_XGenericEvent=no
  21460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21461. /* end confdefs.h. */
  21462. #include <X11/Xlib.h>
  21463. int
  21464. main (void)
  21465. {
  21466. Display *display;
  21467. XEvent event;
  21468. XGenericEventCookie *cookie = &event.xcookie;
  21469. XNextEvent(display, &event);
  21470. XGetEventData(display, cookie);
  21471. XFreeEventData(display, cookie);
  21472. ;
  21473. return 0;
  21474. }
  21475. _ACEOF
  21476. if ac_fn_c_try_compile "$LINENO"
  21477. then :
  21478. have_XGenericEvent=yes
  21479. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21480. fi
  21481. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21483. printf "%s\n" "$have_XGenericEvent" >&6; }
  21484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21485. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21486. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21487. then :
  21488. printf %s "(cached) " >&6
  21489. else $as_nop
  21490. ac_check_lib_save_LIBS=$LIBS
  21491. LIBS="-lX11 $LIBS"
  21492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21493. /* end confdefs.h. */
  21494. /* Override any GCC internal prototype to avoid an error.
  21495. Use char because int might match the return type of a GCC
  21496. builtin and then its argument prototype would still apply. */
  21497. char XkbKeycodeToKeysym ();
  21498. int
  21499. main (void)
  21500. {
  21501. return XkbKeycodeToKeysym ();
  21502. ;
  21503. return 0;
  21504. }
  21505. _ACEOF
  21506. if ac_fn_c_try_link "$LINENO"
  21507. then :
  21508. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21509. else $as_nop
  21510. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21511. fi
  21512. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21513. conftest$ac_exeext conftest.$ac_ext
  21514. LIBS=$ac_check_lib_save_LIBS
  21515. fi
  21516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21517. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21518. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21519. then :
  21520. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21521. fi
  21522. # Check whether --enable-video-x11-xcursor was given.
  21523. if test ${enable_video_x11_xcursor+y}
  21524. then :
  21525. enableval=$enable_video_x11_xcursor;
  21526. else $as_nop
  21527. enable_video_x11_xcursor=yes
  21528. fi
  21529. if test x$enable_video_x11_xcursor = xyes; then
  21530. definitely_enable_video_x11_xcursor=no
  21531. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21532. "
  21533. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21534. then :
  21535. have_xcursor_h_hdr=yes
  21536. else $as_nop
  21537. have_xcursor_h_hdr=no
  21538. fi
  21539. if test x$have_xcursor_h_hdr = xyes; then
  21540. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21541. echo "-- dynamic libXcursor -> $xcursor_lib"
  21542. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21543. definitely_enable_video_x11_xcursor=yes
  21544. else
  21545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21546. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21547. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21548. then :
  21549. printf %s "(cached) " >&6
  21550. else $as_nop
  21551. ac_check_lib_save_LIBS=$LIBS
  21552. LIBS="-lXcursor $LIBS"
  21553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21554. /* end confdefs.h. */
  21555. /* Override any GCC internal prototype to avoid an error.
  21556. Use char because int might match the return type of a GCC
  21557. builtin and then its argument prototype would still apply. */
  21558. char XcursorImageCreate ();
  21559. int
  21560. main (void)
  21561. {
  21562. return XcursorImageCreate ();
  21563. ;
  21564. return 0;
  21565. }
  21566. _ACEOF
  21567. if ac_fn_c_try_link "$LINENO"
  21568. then :
  21569. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21570. else $as_nop
  21571. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21572. fi
  21573. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21574. conftest$ac_exeext conftest.$ac_ext
  21575. LIBS=$ac_check_lib_save_LIBS
  21576. fi
  21577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21578. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21579. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21580. then :
  21581. have_xcursor_lib=yes
  21582. fi
  21583. if test x$have_xcursor_lib = xyes ; then
  21584. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21585. definitely_enable_video_x11_xcursor=yes
  21586. fi
  21587. fi
  21588. fi
  21589. fi
  21590. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21591. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21592. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21593. fi
  21594. # Check whether --enable-video-x11-xdbe was given.
  21595. if test ${enable_video_x11_xdbe+y}
  21596. then :
  21597. enableval=$enable_video_x11_xdbe;
  21598. else $as_nop
  21599. enable_video_x11_xdbe=yes
  21600. fi
  21601. if test x$enable_video_x11_xdbe = xyes; then
  21602. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21603. "
  21604. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21605. then :
  21606. have_dbe_h_hdr=yes
  21607. else $as_nop
  21608. have_dbe_h_hdr=no
  21609. fi
  21610. if test x$have_dbe_h_hdr = xyes; then
  21611. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21612. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21613. fi
  21614. fi
  21615. # Check whether --enable-video-x11-xinput was given.
  21616. if test ${enable_video_x11_xinput+y}
  21617. then :
  21618. enableval=$enable_video_x11_xinput;
  21619. else $as_nop
  21620. enable_video_x11_xinput=yes
  21621. fi
  21622. if test x$enable_video_x11_xinput = xyes; then
  21623. definitely_enable_video_x11_xinput=no
  21624. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21625. "
  21626. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21627. then :
  21628. have_xinput_h_hdr=yes
  21629. else $as_nop
  21630. have_xinput_h_hdr=no
  21631. fi
  21632. if test x$have_xinput_h_hdr = xyes; then
  21633. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21634. echo "-- dynamic libXi -> $xinput_lib"
  21635. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21636. definitely_enable_video_x11_xinput=yes
  21637. else
  21638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21639. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21640. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21641. then :
  21642. printf %s "(cached) " >&6
  21643. else $as_nop
  21644. ac_check_lib_save_LIBS=$LIBS
  21645. LIBS="-lXi $LIBS"
  21646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21647. /* end confdefs.h. */
  21648. /* Override any GCC internal prototype to avoid an error.
  21649. Use char because int might match the return type of a GCC
  21650. builtin and then its argument prototype would still apply. */
  21651. char XOpenDevice ();
  21652. int
  21653. main (void)
  21654. {
  21655. return XOpenDevice ();
  21656. ;
  21657. return 0;
  21658. }
  21659. _ACEOF
  21660. if ac_fn_c_try_link "$LINENO"
  21661. then :
  21662. ac_cv_lib_Xi_XOpenDevice=yes
  21663. else $as_nop
  21664. ac_cv_lib_Xi_XOpenDevice=no
  21665. fi
  21666. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21667. conftest$ac_exeext conftest.$ac_ext
  21668. LIBS=$ac_check_lib_save_LIBS
  21669. fi
  21670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21671. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21672. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21673. then :
  21674. have_xinput_lib=yes
  21675. fi
  21676. if test x$have_xinput_lib = xyes ; then
  21677. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21678. definitely_enable_video_x11_xinput=yes
  21679. fi
  21680. fi
  21681. fi
  21682. fi
  21683. if test x$definitely_enable_video_x11_xinput = xyes; then
  21684. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21685. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21687. printf %s "checking for xinput2 multitouch... " >&6; }
  21688. have_xinput2_multitouch=no
  21689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21690. /* end confdefs.h. */
  21691. #include <X11/Xlib.h>
  21692. #include <X11/Xproto.h>
  21693. #include <X11/extensions/XInput2.h>
  21694. int
  21695. main (void)
  21696. {
  21697. int event_type = XI_TouchBegin;
  21698. XITouchClassInfo *t;
  21699. ;
  21700. return 0;
  21701. }
  21702. _ACEOF
  21703. if ac_fn_c_try_compile "$LINENO"
  21704. then :
  21705. have_xinput2_multitouch=yes
  21706. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21707. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21708. fi
  21709. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21711. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21712. fi
  21713. # Check whether --enable-video-x11-xfixes was given.
  21714. if test ${enable_video_x11_xfixes+y}
  21715. then :
  21716. enableval=$enable_video_x11_xfixes;
  21717. else $as_nop
  21718. enable_video_x11_xfixes=yes
  21719. fi
  21720. if test x$enable_video_x11_xfixes = xyes; then
  21721. definitely_enable_video_x11_xfixes=no
  21722. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21724. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21726. /* end confdefs.h. */
  21727. #include <X11/Xlib.h>
  21728. #include <X11/Xproto.h>
  21729. #include <X11/extensions/XInput2.h>
  21730. #include <X11/extensions/Xfixes.h>
  21731. int
  21732. main (void)
  21733. {
  21734. BarrierEventID b;
  21735. ;
  21736. return 0;
  21737. }
  21738. _ACEOF
  21739. if ac_fn_c_try_compile "$LINENO"
  21740. then :
  21741. have_xfixes_h_hdr=yes
  21742. else $as_nop
  21743. have_xfixes_h_hdr=no
  21744. fi
  21745. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21747. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21748. if test x$have_xfixes_h_hdr = xyes; then
  21749. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21750. echo "-- dynamic libXfixes -> $xfixes_lib"
  21751. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21752. definitely_enable_video_x11_xfixes=yes
  21753. else
  21754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21755. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21756. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21757. then :
  21758. printf %s "(cached) " >&6
  21759. else $as_nop
  21760. ac_check_lib_save_LIBS=$LIBS
  21761. LIBS="-lXfixes $LIBS"
  21762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21763. /* end confdefs.h. */
  21764. /* Override any GCC internal prototype to avoid an error.
  21765. Use char because int might match the return type of a GCC
  21766. builtin and then its argument prototype would still apply. */
  21767. char XFixesCreatePointerBarrier ();
  21768. int
  21769. main (void)
  21770. {
  21771. return XFixesCreatePointerBarrier ();
  21772. ;
  21773. return 0;
  21774. }
  21775. _ACEOF
  21776. if ac_fn_c_try_link "$LINENO"
  21777. then :
  21778. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21779. else $as_nop
  21780. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21781. fi
  21782. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21783. conftest$ac_exeext conftest.$ac_ext
  21784. LIBS=$ac_check_lib_save_LIBS
  21785. fi
  21786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21787. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21788. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21789. then :
  21790. have_xfixes_lib=yes
  21791. fi
  21792. if test x$have_xfixes_lib = xyes ; then
  21793. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21794. definitely_enable_video_x11_xfixes=yes
  21795. fi
  21796. fi
  21797. fi
  21798. fi
  21799. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21800. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21801. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21802. fi
  21803. # Check whether --enable-video-x11-xrandr was given.
  21804. if test ${enable_video_x11_xrandr+y}
  21805. then :
  21806. enableval=$enable_video_x11_xrandr;
  21807. else $as_nop
  21808. enable_video_x11_xrandr=yes
  21809. fi
  21810. if test x$enable_video_x11_xrandr = xyes; then
  21811. definitely_enable_video_x11_xrandr=no
  21812. have_xrandr_h_hdr=no
  21813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21814. /* end confdefs.h. */
  21815. #include <X11/Xlib.h>
  21816. #include <X11/extensions/Xrandr.h>
  21817. int
  21818. main (void)
  21819. {
  21820. XRRScreenResources *res = NULL;
  21821. ;
  21822. return 0;
  21823. }
  21824. _ACEOF
  21825. if ac_fn_c_try_compile "$LINENO"
  21826. then :
  21827. have_xrandr_h_hdr=yes
  21828. fi
  21829. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21830. if test x$have_xrandr_h_hdr = xyes; then
  21831. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21832. echo "-- dynamic libXrandr -> $xrandr_lib"
  21833. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21834. definitely_enable_video_x11_xrandr=yes
  21835. else
  21836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21837. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21838. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21839. then :
  21840. printf %s "(cached) " >&6
  21841. else $as_nop
  21842. ac_check_lib_save_LIBS=$LIBS
  21843. LIBS="-lXrandr $LIBS"
  21844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21845. /* end confdefs.h. */
  21846. /* Override any GCC internal prototype to avoid an error.
  21847. Use char because int might match the return type of a GCC
  21848. builtin and then its argument prototype would still apply. */
  21849. char XRRQueryExtension ();
  21850. int
  21851. main (void)
  21852. {
  21853. return XRRQueryExtension ();
  21854. ;
  21855. return 0;
  21856. }
  21857. _ACEOF
  21858. if ac_fn_c_try_link "$LINENO"
  21859. then :
  21860. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21861. else $as_nop
  21862. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21863. fi
  21864. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21865. conftest$ac_exeext conftest.$ac_ext
  21866. LIBS=$ac_check_lib_save_LIBS
  21867. fi
  21868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21869. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21870. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21871. then :
  21872. have_xrandr_lib=yes
  21873. fi
  21874. if test x$have_xrandr_lib = xyes ; then
  21875. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21876. definitely_enable_video_x11_xrandr=yes
  21877. fi
  21878. fi
  21879. fi
  21880. fi
  21881. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21882. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21883. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21884. fi
  21885. # Check whether --enable-video-x11-scrnsaver was given.
  21886. if test ${enable_video_x11_scrnsaver+y}
  21887. then :
  21888. enableval=$enable_video_x11_scrnsaver;
  21889. else $as_nop
  21890. enable_video_x11_scrnsaver=yes
  21891. fi
  21892. if test x$enable_video_x11_scrnsaver = xyes; then
  21893. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21894. "
  21895. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21896. then :
  21897. have_scrnsaver_h_hdr=yes
  21898. else $as_nop
  21899. have_scrnsaver_h_hdr=no
  21900. fi
  21901. if test x$have_scrnsaver_h_hdr = xyes; then
  21902. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21903. echo "-- dynamic libXss -> $xss_lib"
  21904. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21905. definitely_enable_video_x11_scrnsaver=yes
  21906. else
  21907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21908. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21909. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21910. then :
  21911. printf %s "(cached) " >&6
  21912. else $as_nop
  21913. ac_check_lib_save_LIBS=$LIBS
  21914. LIBS="-lXss $LIBS"
  21915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21916. /* end confdefs.h. */
  21917. /* Override any GCC internal prototype to avoid an error.
  21918. Use char because int might match the return type of a GCC
  21919. builtin and then its argument prototype would still apply. */
  21920. char XScreenSaverSuspend ();
  21921. int
  21922. main (void)
  21923. {
  21924. return XScreenSaverSuspend ();
  21925. ;
  21926. return 0;
  21927. }
  21928. _ACEOF
  21929. if ac_fn_c_try_link "$LINENO"
  21930. then :
  21931. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21932. else $as_nop
  21933. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21934. fi
  21935. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21936. conftest$ac_exeext conftest.$ac_ext
  21937. LIBS=$ac_check_lib_save_LIBS
  21938. fi
  21939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21940. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21941. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21942. then :
  21943. have_xss_lib=yes
  21944. fi
  21945. if test x$have_xss_lib = xyes ; then
  21946. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21947. definitely_enable_video_x11_scrnsaver=yes
  21948. fi
  21949. fi
  21950. fi
  21951. fi
  21952. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21953. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21954. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21955. fi
  21956. # Check whether --enable-video-x11-xshape was given.
  21957. if test ${enable_video_x11_xshape+y}
  21958. then :
  21959. enableval=$enable_video_x11_xshape;
  21960. else $as_nop
  21961. enable_video_x11_xshape=yes
  21962. fi
  21963. if test x$enable_video_x11_xshape = xyes; then
  21964. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21965. "
  21966. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21967. then :
  21968. have_shape_h_hdr=yes
  21969. else $as_nop
  21970. have_shape_h_hdr=no
  21971. fi
  21972. if test x$have_shape_h_hdr = xyes; then
  21973. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21974. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21975. fi
  21976. fi
  21977. fi
  21978. fi
  21979. if test x$have_x != xyes; then
  21980. # Prevent Mesa from including X11 headers
  21981. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21982. fi
  21983. }
  21984. CheckVivanteVideo()
  21985. {
  21986. # Check whether --enable-video-vivante was given.
  21987. if test ${enable_video_vivante+y}
  21988. then :
  21989. enableval=$enable_video_vivante;
  21990. else $as_nop
  21991. enable_video_vivante=yes
  21992. fi
  21993. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21995. printf %s "checking for Vivante VDK API... " >&6; }
  21996. have_vivante_vdk=no
  21997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21998. /* end confdefs.h. */
  21999. #define LINUX
  22000. #define EGL_API_FB
  22001. #include <gc_vdk.h>
  22002. int
  22003. main (void)
  22004. {
  22005. ;
  22006. return 0;
  22007. }
  22008. _ACEOF
  22009. if ac_fn_c_try_compile "$LINENO"
  22010. then :
  22011. have_vivante_vdk=yes
  22012. fi
  22013. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  22015. printf "%s\n" "$have_vivante_vdk" >&6; }
  22016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  22017. printf %s "checking for Vivante FB API... " >&6; }
  22018. have_vivante_egl=no
  22019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22020. /* end confdefs.h. */
  22021. #define LINUX
  22022. #define EGL_API_FB
  22023. #include <EGL/eglvivante.h>
  22024. int
  22025. main (void)
  22026. {
  22027. ;
  22028. return 0;
  22029. }
  22030. _ACEOF
  22031. if ac_fn_c_try_compile "$LINENO"
  22032. then :
  22033. have_vivante_egl=yes
  22034. fi
  22035. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  22037. printf "%s\n" "$have_vivante_egl" >&6; }
  22038. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  22039. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  22040. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  22041. if test x$have_vivante_vdk = xyes; then
  22042. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  22043. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  22044. fi
  22045. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  22046. SUMMARY_video="${SUMMARY_video} vivante"
  22047. have_video=yes
  22048. fi
  22049. fi
  22050. }
  22051. CheckHaikuVideo()
  22052. {
  22053. if test x$enable_video = xyes; then
  22054. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  22055. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  22056. have_video=yes
  22057. SUMMARY_video="${SUMMARY_video} haiku"
  22058. fi
  22059. }
  22060. CheckCOCOA()
  22061. {
  22062. # Check whether --enable-video-cocoa was given.
  22063. if test ${enable_video_cocoa+y}
  22064. then :
  22065. enableval=$enable_video_cocoa;
  22066. else $as_nop
  22067. enable_video_cocoa=yes
  22068. fi
  22069. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  22070. save_CFLAGS="$CFLAGS"
  22071. CFLAGS="$CFLAGS -x objective-c"
  22072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  22073. printf %s "checking for Cocoa framework... " >&6; }
  22074. have_cocoa=no
  22075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22076. /* end confdefs.h. */
  22077. #import <Cocoa/Cocoa.h>
  22078. int
  22079. main (void)
  22080. {
  22081. ;
  22082. return 0;
  22083. }
  22084. _ACEOF
  22085. if ac_fn_c_try_compile "$LINENO"
  22086. then :
  22087. have_cocoa=yes
  22088. fi
  22089. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  22091. printf "%s\n" "$have_cocoa" >&6; }
  22092. CFLAGS="$save_CFLAGS"
  22093. if test x$have_cocoa = xyes; then
  22094. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  22095. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  22096. SUMMARY_video="${SUMMARY_video} cocoa"
  22097. have_video=yes
  22098. fi
  22099. fi
  22100. }
  22101. CheckMETAL()
  22102. {
  22103. # Check whether --enable-video-metal was given.
  22104. if test ${enable_video_metal+y}
  22105. then :
  22106. enableval=$enable_video_metal;
  22107. else $as_nop
  22108. enable_video_metal=yes
  22109. fi
  22110. # Check whether --enable-render-metal was given.
  22111. if test ${enable_render_metal+y}
  22112. then :
  22113. enableval=$enable_render_metal;
  22114. else $as_nop
  22115. enable_render_metal=yes
  22116. fi
  22117. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  22118. save_CFLAGS="$CFLAGS"
  22119. CFLAGS="$CFLAGS -x objective-c"
  22120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  22121. printf %s "checking for Metal framework... " >&6; }
  22122. have_metal=no
  22123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22124. /* end confdefs.h. */
  22125. #import <Cocoa/Cocoa.h>
  22126. #import <Metal/Metal.h>
  22127. #import <QuartzCore/CAMetalLayer.h>
  22128. #if TARGET_CPU_X86
  22129. #error Metal doesn't work on this configuration
  22130. #endif
  22131. int
  22132. main (void)
  22133. {
  22134. ;
  22135. return 0;
  22136. }
  22137. _ACEOF
  22138. if ac_fn_c_try_compile "$LINENO"
  22139. then :
  22140. have_metal=yes
  22141. fi
  22142. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22143. CFLAGS="$save_CFLAGS"
  22144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  22145. printf "%s\n" "$have_metal" >&6; }
  22146. if test x$have_metal = xyes; then
  22147. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  22148. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  22149. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  22150. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  22151. fi
  22152. SUMMARY_video="${SUMMARY_video} metal"
  22153. else
  22154. enable_video_metal=no
  22155. enable_render_metal=no
  22156. fi
  22157. fi
  22158. }
  22159. CheckDirectFB()
  22160. {
  22161. # Check whether --enable-video-directfb was given.
  22162. if test ${enable_video_directfb+y}
  22163. then :
  22164. enableval=$enable_video_directfb;
  22165. else $as_nop
  22166. enable_video_directfb=no
  22167. fi
  22168. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  22169. pkg_failed=no
  22170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  22171. printf %s "checking for directfb >= 1.0.0... " >&6; }
  22172. if test -n "$DIRECTFB_CFLAGS"; then
  22173. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  22174. elif test -n "$PKG_CONFIG"; then
  22175. if test -n "$PKG_CONFIG" && \
  22176. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22177. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22178. ac_status=$?
  22179. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22180. test $ac_status = 0; }; then
  22181. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  22182. test "x$?" != "x0" && pkg_failed=yes
  22183. else
  22184. pkg_failed=yes
  22185. fi
  22186. else
  22187. pkg_failed=untried
  22188. fi
  22189. if test -n "$DIRECTFB_LIBS"; then
  22190. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  22191. elif test -n "$PKG_CONFIG"; then
  22192. if test -n "$PKG_CONFIG" && \
  22193. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22194. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22195. ac_status=$?
  22196. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22197. test $ac_status = 0; }; then
  22198. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  22199. test "x$?" != "x0" && pkg_failed=yes
  22200. else
  22201. pkg_failed=yes
  22202. fi
  22203. else
  22204. pkg_failed=untried
  22205. fi
  22206. if test $pkg_failed = yes; then
  22207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22208. printf "%s\n" "no" >&6; }
  22209. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22210. _pkg_short_errors_supported=yes
  22211. else
  22212. _pkg_short_errors_supported=no
  22213. fi
  22214. if test $_pkg_short_errors_supported = yes; then
  22215. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22216. else
  22217. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22218. fi
  22219. # Put the nasty error message in config.log where it belongs
  22220. echo "$DIRECTFB_PKG_ERRORS" >&5
  22221. video_directfb=no
  22222. elif test $pkg_failed = untried; then
  22223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22224. printf "%s\n" "no" >&6; }
  22225. video_directfb=no
  22226. else
  22227. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  22228. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  22229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22230. printf "%s\n" "yes" >&6; }
  22231. video_directfb=yes
  22232. fi
  22233. if test x$video_directfb = xyes; then
  22234. # SuSE 11.1 installs directfb-config without directfb-devel
  22235. save_CPPFLAGS="$CPPFLAGS"
  22236. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  22237. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  22238. if test "x$ac_cv_header_directfb_h" = xyes
  22239. then :
  22240. have_directfb_hdr=yes
  22241. else $as_nop
  22242. have_directfb_hdr=no
  22243. fi
  22244. CPPFLAGS="$save_CPPFLAGS"
  22245. video_directfb=$have_directfb_hdr
  22246. fi
  22247. if test x$video_directfb = xyes; then
  22248. # Check whether --enable-directfb-shared was given.
  22249. if test ${enable_directfb_shared+y}
  22250. then :
  22251. enableval=$enable_directfb_shared;
  22252. else $as_nop
  22253. enable_directfb_shared=yes
  22254. fi
  22255. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22256. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22257. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22258. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22259. directfb_shared=no
  22260. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22261. if test x$have_loadso != xyes && \
  22262. test x$enable_directfb_shared = xyes; then
  22263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22264. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22265. fi
  22266. if test x$have_loadso = xyes && \
  22267. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22268. directfb_shared=yes
  22269. echo "-- dynamic libdirectfb -> $directfb_lib"
  22270. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22271. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22272. else
  22273. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22274. SUMMARY_video="${SUMMARY_video} directfb"
  22275. fi
  22276. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22277. have_video=yes
  22278. fi
  22279. fi
  22280. }
  22281. CheckKMSDRM()
  22282. {
  22283. # Check whether --enable-video-kmsdrm was given.
  22284. if test ${enable_video_kmsdrm+y}
  22285. then :
  22286. enableval=$enable_video_kmsdrm;
  22287. else $as_nop
  22288. enable_video_kmsdrm=yes
  22289. fi
  22290. if test x$enable_video = xyes && \
  22291. test x$enable_video_kmsdrm = xyes && \
  22292. test x$video_opengl_egl = xyes; then
  22293. video_kmsdrm=no
  22294. pkg_failed=no
  22295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22296. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22297. if test -n "$LIBDRM_CFLAGS"; then
  22298. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22299. elif test -n "$PKG_CONFIG"; then
  22300. if test -n "$PKG_CONFIG" && \
  22301. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22302. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22303. ac_status=$?
  22304. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22305. test $ac_status = 0; }; then
  22306. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22307. test "x$?" != "x0" && pkg_failed=yes
  22308. else
  22309. pkg_failed=yes
  22310. fi
  22311. else
  22312. pkg_failed=untried
  22313. fi
  22314. if test -n "$LIBDRM_LIBS"; then
  22315. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22316. elif test -n "$PKG_CONFIG"; then
  22317. if test -n "$PKG_CONFIG" && \
  22318. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22319. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22320. ac_status=$?
  22321. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22322. test $ac_status = 0; }; then
  22323. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22324. test "x$?" != "x0" && pkg_failed=yes
  22325. else
  22326. pkg_failed=yes
  22327. fi
  22328. else
  22329. pkg_failed=untried
  22330. fi
  22331. if test $pkg_failed = yes; then
  22332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22333. printf "%s\n" "no" >&6; }
  22334. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22335. _pkg_short_errors_supported=yes
  22336. else
  22337. _pkg_short_errors_supported=no
  22338. fi
  22339. if test $_pkg_short_errors_supported = yes; then
  22340. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22341. else
  22342. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22343. fi
  22344. # Put the nasty error message in config.log where it belongs
  22345. echo "$LIBDRM_PKG_ERRORS" >&5
  22346. libdrm_avail=no
  22347. elif test $pkg_failed = untried; then
  22348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22349. printf "%s\n" "no" >&6; }
  22350. libdrm_avail=no
  22351. else
  22352. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22353. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22355. printf "%s\n" "yes" >&6; }
  22356. libdrm_avail=yes
  22357. fi
  22358. pkg_failed=no
  22359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22360. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22361. if test -n "$LIBGBM_CFLAGS"; then
  22362. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22363. elif test -n "$PKG_CONFIG"; then
  22364. if test -n "$PKG_CONFIG" && \
  22365. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22366. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22367. ac_status=$?
  22368. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22369. test $ac_status = 0; }; then
  22370. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22371. test "x$?" != "x0" && pkg_failed=yes
  22372. else
  22373. pkg_failed=yes
  22374. fi
  22375. else
  22376. pkg_failed=untried
  22377. fi
  22378. if test -n "$LIBGBM_LIBS"; then
  22379. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22380. elif test -n "$PKG_CONFIG"; then
  22381. if test -n "$PKG_CONFIG" && \
  22382. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22383. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22384. ac_status=$?
  22385. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22386. test $ac_status = 0; }; then
  22387. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22388. test "x$?" != "x0" && pkg_failed=yes
  22389. else
  22390. pkg_failed=yes
  22391. fi
  22392. else
  22393. pkg_failed=untried
  22394. fi
  22395. if test $pkg_failed = yes; then
  22396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22397. printf "%s\n" "no" >&6; }
  22398. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22399. _pkg_short_errors_supported=yes
  22400. else
  22401. _pkg_short_errors_supported=no
  22402. fi
  22403. if test $_pkg_short_errors_supported = yes; then
  22404. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22405. else
  22406. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22407. fi
  22408. # Put the nasty error message in config.log where it belongs
  22409. echo "$LIBGBM_PKG_ERRORS" >&5
  22410. libgbm_avail=no
  22411. elif test $pkg_failed = untried; then
  22412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22413. printf "%s\n" "no" >&6; }
  22414. libgbm_avail=no
  22415. else
  22416. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22417. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22419. printf "%s\n" "yes" >&6; }
  22420. libgbm_avail=yes
  22421. fi
  22422. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22423. video_kmsdrm=yes
  22424. fi
  22425. if test x$video_kmsdrm = xyes; then
  22426. # Check whether --enable-kmsdrm-shared was given.
  22427. if test ${enable_kmsdrm_shared+y}
  22428. then :
  22429. enableval=$enable_kmsdrm_shared;
  22430. else $as_nop
  22431. enable_kmsdrm_shared=yes
  22432. fi
  22433. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22434. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22435. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22437. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22438. kmsdrm_shared=no
  22439. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22440. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22441. if test x$have_loadso != xyes && \
  22442. test x$enable_kmsdrm_shared = xyes; then
  22443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22444. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22445. fi
  22446. if test x$have_loadso = xyes && \
  22447. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22448. kmsdrm_shared=yes
  22449. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22450. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22451. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22452. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22453. else
  22454. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22455. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22456. fi
  22457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22458. printf "%s\n" "$kmsdrm_shared" >&6; }
  22459. if test x$kmsdrm_shared = xyes; then
  22460. echo "-- dynamic libdrm -> $drm_lib"
  22461. echo "-- dynamic libgbm -> $gbm_lib"
  22462. fi
  22463. have_video=yes
  22464. fi
  22465. fi
  22466. }
  22467. CheckDummyVideo()
  22468. {
  22469. # Check whether --enable-video-dummy was given.
  22470. if test ${enable_video_dummy+y}
  22471. then :
  22472. enableval=$enable_video_dummy;
  22473. else $as_nop
  22474. enable_video_dummy=yes
  22475. fi
  22476. if test x$enable_video_dummy = xyes; then
  22477. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22478. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22479. have_video=yes
  22480. SUMMARY_video="${SUMMARY_video} dummy"
  22481. fi
  22482. }
  22483. CheckOffscreenVideo()
  22484. {
  22485. # Check whether --enable-video-offscreen was given.
  22486. if test ${enable_video_offscreen+y}
  22487. then :
  22488. enableval=$enable_video_offscreen;
  22489. else $as_nop
  22490. enable_video_offscreen=yes
  22491. fi
  22492. if test x$enable_video_offscreen = xyes; then
  22493. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22494. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22495. have_video=yes
  22496. SUMMARY_video="${SUMMARY_video} offscreen"
  22497. fi
  22498. }
  22499. CheckQNXVideo()
  22500. {
  22501. if test x$enable_video = xyes; then
  22502. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22503. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22504. have_video=yes
  22505. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22506. SUMMARY_video="${SUMMARY_video} qnx"
  22507. fi
  22508. }
  22509. CheckQNXAudio()
  22510. {
  22511. if test x$enable_audio = xyes; then
  22512. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22513. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22514. have_audio=yes
  22515. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22516. SUMMARY_audio="${SUMMARY_audio} qsa"
  22517. fi
  22518. }
  22519. # Check whether --enable-video-opengl was given.
  22520. if test ${enable_video_opengl+y}
  22521. then :
  22522. enableval=$enable_video_opengl;
  22523. else $as_nop
  22524. enable_video_opengl=yes
  22525. fi
  22526. CheckGLX()
  22527. {
  22528. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22530. printf %s "checking for GLX support... " >&6; }
  22531. video_opengl_glx=no
  22532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22533. /* end confdefs.h. */
  22534. #include <GL/glx.h>
  22535. int
  22536. main (void)
  22537. {
  22538. ;
  22539. return 0;
  22540. }
  22541. _ACEOF
  22542. if ac_fn_c_try_compile "$LINENO"
  22543. then :
  22544. video_opengl_glx=yes
  22545. fi
  22546. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22548. printf "%s\n" "$video_opengl_glx" >&6; }
  22549. if test x$video_opengl_glx = xyes; then
  22550. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22551. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22552. fi
  22553. fi
  22554. }
  22555. # Check whether --enable-video-opengles was given.
  22556. if test ${enable_video_opengles+y}
  22557. then :
  22558. enableval=$enable_video_opengles;
  22559. else $as_nop
  22560. enable_video_opengles=yes
  22561. fi
  22562. # Check whether --enable-video-opengles1 was given.
  22563. if test ${enable_video_opengles1+y}
  22564. then :
  22565. enableval=$enable_video_opengles1;
  22566. else $as_nop
  22567. enable_video_opengles1=yes
  22568. fi
  22569. # Check whether --enable-video-opengles2 was given.
  22570. if test ${enable_video_opengles2+y}
  22571. then :
  22572. enableval=$enable_video_opengles2;
  22573. else $as_nop
  22574. enable_video_opengles2=yes
  22575. fi
  22576. CheckEGL()
  22577. {
  22578. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22580. printf %s "checking for EGL support... " >&6; }
  22581. video_opengl_egl=no
  22582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22583. /* end confdefs.h. */
  22584. #define LINUX
  22585. #define EGL_API_FB
  22586. #define MESA_EGL_NO_X11_HEADERS
  22587. #define EGL_NO_X11
  22588. #include <EGL/egl.h>
  22589. #include <EGL/eglext.h>
  22590. int
  22591. main (void)
  22592. {
  22593. ;
  22594. return 0;
  22595. }
  22596. _ACEOF
  22597. if ac_fn_c_try_compile "$LINENO"
  22598. then :
  22599. video_opengl_egl=yes
  22600. fi
  22601. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22603. printf "%s\n" "$video_opengl_egl" >&6; }
  22604. if test x$video_opengl_egl = xyes; then
  22605. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22606. fi
  22607. fi
  22608. }
  22609. CheckOpenGL()
  22610. {
  22611. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22613. printf %s "checking for OpenGL headers... " >&6; }
  22614. video_opengl=no
  22615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22616. /* end confdefs.h. */
  22617. #include <GL/gl.h>
  22618. #include <GL/glext.h>
  22619. int
  22620. main (void)
  22621. {
  22622. ;
  22623. return 0;
  22624. }
  22625. _ACEOF
  22626. if ac_fn_c_try_compile "$LINENO"
  22627. then :
  22628. video_opengl=yes
  22629. fi
  22630. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22632. printf "%s\n" "$video_opengl" >&6; }
  22633. if test x$video_opengl = xyes; then
  22634. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22635. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22636. SUMMARY_video="${SUMMARY_video} opengl"
  22637. fi
  22638. fi
  22639. }
  22640. CheckOpenGLES()
  22641. {
  22642. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22643. if test x$enable_video_opengles1 = xyes; then
  22644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22645. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22646. video_opengles_v1=no
  22647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22648. /* end confdefs.h. */
  22649. #include <GLES/gl.h>
  22650. #include <GLES/glext.h>
  22651. int
  22652. main (void)
  22653. {
  22654. ;
  22655. return 0;
  22656. }
  22657. _ACEOF
  22658. if ac_fn_c_try_compile "$LINENO"
  22659. then :
  22660. video_opengles_v1=yes
  22661. fi
  22662. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22664. printf "%s\n" "$video_opengles_v1" >&6; }
  22665. if test x$video_opengles_v1 = xyes; then
  22666. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22667. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22668. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22669. fi
  22670. fi
  22671. if test x$enable_video_opengles2 = xyes; then
  22672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22673. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22674. video_opengles_v2=no
  22675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22676. /* end confdefs.h. */
  22677. #include <GLES2/gl2.h>
  22678. #include <GLES2/gl2ext.h>
  22679. int
  22680. main (void)
  22681. {
  22682. ;
  22683. return 0;
  22684. }
  22685. _ACEOF
  22686. if ac_fn_c_try_compile "$LINENO"
  22687. then :
  22688. video_opengles_v2=yes
  22689. fi
  22690. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22692. printf "%s\n" "$video_opengles_v2" >&6; }
  22693. if test x$video_opengles_v2 = xyes; then
  22694. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22695. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22696. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22697. fi
  22698. fi
  22699. fi
  22700. }
  22701. CheckWINDOWSGL()
  22702. {
  22703. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22704. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22705. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22706. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22707. SUMMARY_video="${SUMMARY_video} opengl"
  22708. fi
  22709. }
  22710. CheckWINDOWSGLES()
  22711. {
  22712. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22714. printf %s "checking for EGL support... " >&6; }
  22715. video_opengl_egl=no
  22716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22717. /* end confdefs.h. */
  22718. #include <EGL/egl.h>
  22719. int
  22720. main (void)
  22721. {
  22722. ;
  22723. return 0;
  22724. }
  22725. _ACEOF
  22726. if ac_fn_c_try_compile "$LINENO"
  22727. then :
  22728. video_opengl_egl=yes
  22729. fi
  22730. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22732. printf "%s\n" "$video_opengl_egl" >&6; }
  22733. if test x$video_opengl_egl = xyes; then
  22734. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22735. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22736. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22737. fi
  22738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22739. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22740. video_opengles_v2=no
  22741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22742. /* end confdefs.h. */
  22743. #include <GLES2/gl2.h>
  22744. #include <GLES2/gl2ext.h>
  22745. int
  22746. main (void)
  22747. {
  22748. ;
  22749. return 0;
  22750. }
  22751. _ACEOF
  22752. if ac_fn_c_try_compile "$LINENO"
  22753. then :
  22754. video_opengles_v2=yes
  22755. fi
  22756. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22758. printf "%s\n" "$video_opengles_v2" >&6; }
  22759. if test x$video_opengles_v2 = xyes; then
  22760. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22761. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22762. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22763. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22764. fi
  22765. fi
  22766. }
  22767. CheckHaikuGL()
  22768. {
  22769. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22770. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22771. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22772. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22773. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22774. SUMMARY_video="${SUMMARY_video} opengl"
  22775. fi
  22776. }
  22777. CheckMacGL()
  22778. {
  22779. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22780. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22781. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22782. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22783. SUMMARY_video="${SUMMARY_video} opengl"
  22784. fi
  22785. }
  22786. CheckMacGLES()
  22787. {
  22788. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22789. video_opengl_egl=yes
  22790. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22791. video_opengles_v2=yes
  22792. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22793. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22794. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22795. fi
  22796. }
  22797. CheckEmscriptenGLES()
  22798. {
  22799. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22801. printf %s "checking for EGL support... " >&6; }
  22802. video_opengl_egl=no
  22803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22804. /* end confdefs.h. */
  22805. #include <EGL/egl.h>
  22806. int
  22807. main (void)
  22808. {
  22809. ;
  22810. return 0;
  22811. }
  22812. _ACEOF
  22813. if ac_fn_c_try_compile "$LINENO"
  22814. then :
  22815. video_opengl_egl=yes
  22816. fi
  22817. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22819. printf "%s\n" "$video_opengl_egl" >&6; }
  22820. if test x$video_opengl_egl = xyes; then
  22821. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22822. fi
  22823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22824. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22825. video_opengles_v2=no
  22826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22827. /* end confdefs.h. */
  22828. #include <GLES2/gl2.h>
  22829. #include <GLES2/gl2ext.h>
  22830. int
  22831. main (void)
  22832. {
  22833. ;
  22834. return 0;
  22835. }
  22836. _ACEOF
  22837. if ac_fn_c_try_compile "$LINENO"
  22838. then :
  22839. video_opengles_v2=yes
  22840. fi
  22841. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22843. printf "%s\n" "$video_opengles_v2" >&6; }
  22844. if test x$video_opengles_v2 = xyes; then
  22845. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22846. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22847. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22848. fi
  22849. fi
  22850. }
  22851. # Check whether --enable-video-vulkan was given.
  22852. if test ${enable_video_vulkan+y}
  22853. then :
  22854. enableval=$enable_video_vulkan;
  22855. else $as_nop
  22856. enable_video_vulkan=yes
  22857. fi
  22858. CheckVulkan()
  22859. {
  22860. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22861. case "$host" in
  22862. *-*-android*)
  22863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22864. /* end confdefs.h. */
  22865. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22866. #error Vulkan doesn't work on this configuration
  22867. #endif
  22868. int
  22869. main (void)
  22870. {
  22871. ;
  22872. return 0;
  22873. }
  22874. _ACEOF
  22875. if ac_fn_c_try_compile "$LINENO"
  22876. then :
  22877. else $as_nop
  22878. enable_video_vulkan=no
  22879. fi
  22880. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22881. ;;
  22882. *-*-solaris*)
  22883. enable_video_vulkan=no
  22884. ;;
  22885. *-*-darwin*)
  22886. save_CFLAGS="$CFLAGS"
  22887. CFLAGS="$CFLAGS -x objective-c"
  22888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22889. /* end confdefs.h. */
  22890. #include <Cocoa/Cocoa.h>
  22891. #include <Metal/Metal.h>
  22892. #include <QuartzCore/CAMetalLayer.h>
  22893. #if TARGET_CPU_X86
  22894. #error Vulkan doesn't work on this configuration
  22895. #endif
  22896. int
  22897. main (void)
  22898. {
  22899. ;
  22900. return 0;
  22901. }
  22902. _ACEOF
  22903. if ac_fn_c_try_compile "$LINENO"
  22904. then :
  22905. else $as_nop
  22906. enable_video_vulkan=no
  22907. fi
  22908. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22909. CFLAGS="$save_CFLAGS"
  22910. ;;
  22911. *)
  22912. ;;
  22913. esac
  22914. if test x$enable_video_vulkan = xno; then
  22915. # For reasons I am totally unable to see, I get an undefined macro error if
  22916. # I put this in the AC_TRY_COMPILE.
  22917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22918. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22919. fi
  22920. fi
  22921. if test x$have_loadso != xyes; then
  22922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22923. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22924. enable_video_vulkan=no
  22925. fi
  22926. if test x$enable_video_vulkan = xyes; then
  22927. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22928. SUMMARY_video="${SUMMARY_video} vulkan"
  22929. fi
  22930. }
  22931. CheckInputEvents()
  22932. {
  22933. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  22934. if test "x$ac_cv_header_linux_input_h" = xyes
  22935. then :
  22936. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  22937. fi
  22938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22939. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22940. use_input_events=no
  22941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22942. /* end confdefs.h. */
  22943. #include <linux/input.h>
  22944. int
  22945. main (void)
  22946. {
  22947. #ifndef EVIOCGNAME
  22948. #error EVIOCGNAME() ioctl not available
  22949. #endif
  22950. ;
  22951. return 0;
  22952. }
  22953. _ACEOF
  22954. if ac_fn_c_try_compile "$LINENO"
  22955. then :
  22956. use_input_events=yes
  22957. fi
  22958. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22960. printf "%s\n" "$use_input_events" >&6; }
  22961. if test x$use_input_events = xyes; then
  22962. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22963. SUMMARY_input="${SUMMARY_input} linuxev"
  22964. fi
  22965. }
  22966. CheckInputKD()
  22967. {
  22968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22969. printf %s "checking for Linux kd.h... " >&6; }
  22970. use_input_kd=no
  22971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22972. /* end confdefs.h. */
  22973. #include <linux/kd.h>
  22974. #include <linux/keyboard.h>
  22975. #include <sys/ioctl.h>
  22976. int
  22977. main (void)
  22978. {
  22979. struct kbentry kbe;
  22980. kbe.kb_table = KG_CTRL;
  22981. ioctl(0, KDGKBENT, &kbe);
  22982. ;
  22983. return 0;
  22984. }
  22985. _ACEOF
  22986. if ac_fn_c_try_compile "$LINENO"
  22987. then :
  22988. use_input_kd=yes
  22989. fi
  22990. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22992. printf "%s\n" "$use_input_kd" >&6; }
  22993. if test x$use_input_kd = xyes; then
  22994. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22995. SUMMARY_input="${SUMMARY_input} linuxkd"
  22996. fi
  22997. }
  22998. CheckInputKBIO()
  22999. {
  23000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  23001. printf %s "checking for FreeBSD kbio.h... " >&6; }
  23002. use_input_kbio=no
  23003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23004. /* end confdefs.h. */
  23005. #include <sys/kbio.h>
  23006. #include <sys/ioctl.h>
  23007. int
  23008. main (void)
  23009. {
  23010. accentmap_t accTable;
  23011. ioctl(0, KDENABIO, 1);
  23012. ;
  23013. return 0;
  23014. }
  23015. _ACEOF
  23016. if ac_fn_c_try_compile "$LINENO"
  23017. then :
  23018. use_input_kbio=yes
  23019. fi
  23020. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  23022. printf "%s\n" "$use_input_kbio" >&6; }
  23023. if test x$use_input_kbio = xyes; then
  23024. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  23025. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  23026. fi
  23027. }
  23028. CheckInputWSCONS()
  23029. {
  23030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  23031. printf %s "checking for OpenBSD wscons... " >&6; }
  23032. use_input_wscons=no
  23033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23034. /* end confdefs.h. */
  23035. #include <sys/time.h>
  23036. #include <dev/wscons/wsconsio.h>
  23037. #include <dev/wscons/wsksymdef.h>
  23038. #include <dev/wscons/wsksymvar.h>
  23039. #include <sys/ioctl.h>
  23040. int
  23041. main (void)
  23042. {
  23043. struct wskbd_map_data data;
  23044. ioctl(0, WSKBDIO_GETMAP, &data);
  23045. ;
  23046. return 0;
  23047. }
  23048. _ACEOF
  23049. if ac_fn_c_try_compile "$LINENO"
  23050. then :
  23051. use_input_wscons=yes
  23052. fi
  23053. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  23055. printf "%s\n" "$use_input_wscons" >&6; }
  23056. if test x$use_input_wscons = xyes; then
  23057. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  23058. SUMMARY_input="${SUMMARY_input} wscons"
  23059. fi
  23060. }
  23061. CheckLibUDev()
  23062. {
  23063. # Check whether --enable-libudev was given.
  23064. if test ${enable_libudev+y}
  23065. then :
  23066. enableval=$enable_libudev;
  23067. else $as_nop
  23068. enable_libudev=yes
  23069. fi
  23070. if test x$enable_libudev = xyes; then
  23071. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  23072. if test "x$ac_cv_header_libudev_h" = xyes
  23073. then :
  23074. have_libudev_h_hdr=yes
  23075. else $as_nop
  23076. have_libudev_h_hdr=no
  23077. fi
  23078. if test x$have_libudev_h_hdr = xyes; then
  23079. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  23080. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23081. if test x$udev_lib != x; then
  23082. echo "-- dynamic udev -> $udev_lib"
  23083. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  23084. fi
  23085. fi
  23086. fi
  23087. }
  23088. CheckDBus()
  23089. {
  23090. # Check whether --enable-dbus was given.
  23091. if test ${enable_dbus+y}
  23092. then :
  23093. enableval=$enable_dbus;
  23094. else $as_nop
  23095. enable_dbus=yes
  23096. fi
  23097. if test x$enable_dbus = xyes; then
  23098. pkg_failed=no
  23099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  23100. printf %s "checking for dbus-1... " >&6; }
  23101. if test -n "$DBUS_CFLAGS"; then
  23102. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  23103. elif test -n "$PKG_CONFIG"; then
  23104. if test -n "$PKG_CONFIG" && \
  23105. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23106. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23107. ac_status=$?
  23108. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23109. test $ac_status = 0; }; then
  23110. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  23111. test "x$?" != "x0" && pkg_failed=yes
  23112. else
  23113. pkg_failed=yes
  23114. fi
  23115. else
  23116. pkg_failed=untried
  23117. fi
  23118. if test -n "$DBUS_LIBS"; then
  23119. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  23120. elif test -n "$PKG_CONFIG"; then
  23121. if test -n "$PKG_CONFIG" && \
  23122. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23123. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23124. ac_status=$?
  23125. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23126. test $ac_status = 0; }; then
  23127. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  23128. test "x$?" != "x0" && pkg_failed=yes
  23129. else
  23130. pkg_failed=yes
  23131. fi
  23132. else
  23133. pkg_failed=untried
  23134. fi
  23135. if test $pkg_failed = yes; then
  23136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23137. printf "%s\n" "no" >&6; }
  23138. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23139. _pkg_short_errors_supported=yes
  23140. else
  23141. _pkg_short_errors_supported=no
  23142. fi
  23143. if test $_pkg_short_errors_supported = yes; then
  23144. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  23145. else
  23146. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  23147. fi
  23148. # Put the nasty error message in config.log where it belongs
  23149. echo "$DBUS_PKG_ERRORS" >&5
  23150. have_dbus=no
  23151. elif test $pkg_failed = untried; then
  23152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23153. printf "%s\n" "no" >&6; }
  23154. have_dbus=no
  23155. else
  23156. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  23157. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  23158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23159. printf "%s\n" "yes" >&6; }
  23160. have_dbus=yes
  23161. fi
  23162. save_CPPFLAGS="$CPPFLAGS"
  23163. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  23164. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  23165. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  23166. then :
  23167. have_dbus_dbus_h_hdr=yes
  23168. else $as_nop
  23169. have_dbus_dbus_h_hdr=no
  23170. fi
  23171. CPPFLAGS="$save_CPPFLAGS"
  23172. if test x$have_dbus_dbus_h_hdr = xyes; then
  23173. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  23174. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  23175. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  23176. fi
  23177. fi
  23178. }
  23179. CheckIME()
  23180. {
  23181. # Check whether --enable-ime was given.
  23182. if test ${enable_ime+y}
  23183. then :
  23184. enableval=$enable_ime;
  23185. else $as_nop
  23186. enable_ime=yes
  23187. fi
  23188. if test x$enable_ime = xyes; then
  23189. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  23190. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  23191. fi
  23192. }
  23193. CheckInotify()
  23194. {
  23195. save_LIBS="$LIBS"
  23196. case "$host" in
  23197. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  23198. ;;
  23199. esac
  23200. for ac_header in sys/inotify.h
  23201. do :
  23202. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  23203. if test "x$ac_cv_header_sys_inotify_h" = xyes
  23204. then :
  23205. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  23206. have_inotify_inotify_h_hdr=yes
  23207. fi
  23208. done
  23209. for ac_func in inotify_init
  23210. do :
  23211. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  23212. if test "x$ac_cv_func_inotify_init" = xyes
  23213. then :
  23214. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  23215. have_inotify=yes
  23216. fi
  23217. done
  23218. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  23219. if test "x$ac_cv_func_inotify_init1" = xyes
  23220. then :
  23221. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  23222. fi
  23223. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  23224. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  23225. case "$host" in
  23226. *-*-freebsd*|*-*-dragonfly*)
  23227. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  23228. ;;
  23229. esac
  23230. fi
  23231. LIBS="$save_LIBS"
  23232. }
  23233. CheckIBus()
  23234. {
  23235. # Check whether --enable-ibus was given.
  23236. if test ${enable_ibus+y}
  23237. then :
  23238. enableval=$enable_ibus;
  23239. else $as_nop
  23240. enable_ibus=yes
  23241. fi
  23242. if test x$enable_ibus = xyes; then
  23243. pkg_failed=no
  23244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  23245. printf %s "checking for ibus-1.0... " >&6; }
  23246. if test -n "$IBUS_CFLAGS"; then
  23247. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23248. elif test -n "$PKG_CONFIG"; then
  23249. if test -n "$PKG_CONFIG" && \
  23250. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23251. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23252. ac_status=$?
  23253. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23254. test $ac_status = 0; }; then
  23255. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23256. test "x$?" != "x0" && pkg_failed=yes
  23257. else
  23258. pkg_failed=yes
  23259. fi
  23260. else
  23261. pkg_failed=untried
  23262. fi
  23263. if test -n "$IBUS_LIBS"; then
  23264. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23265. elif test -n "$PKG_CONFIG"; then
  23266. if test -n "$PKG_CONFIG" && \
  23267. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23268. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23269. ac_status=$?
  23270. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23271. test $ac_status = 0; }; then
  23272. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23273. test "x$?" != "x0" && pkg_failed=yes
  23274. else
  23275. pkg_failed=yes
  23276. fi
  23277. else
  23278. pkg_failed=untried
  23279. fi
  23280. if test $pkg_failed = yes; then
  23281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23282. printf "%s\n" "no" >&6; }
  23283. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23284. _pkg_short_errors_supported=yes
  23285. else
  23286. _pkg_short_errors_supported=no
  23287. fi
  23288. if test $_pkg_short_errors_supported = yes; then
  23289. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23290. else
  23291. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23292. fi
  23293. # Put the nasty error message in config.log where it belongs
  23294. echo "$IBUS_PKG_ERRORS" >&5
  23295. have_ibus=no
  23296. elif test $pkg_failed = untried; then
  23297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23298. printf "%s\n" "no" >&6; }
  23299. have_ibus=no
  23300. else
  23301. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23302. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23304. printf "%s\n" "yes" >&6; }
  23305. have_ibus=yes
  23306. fi
  23307. save_CPPFLAGS="$CPPFLAGS"
  23308. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23309. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23310. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23311. then :
  23312. have_ibus_ibus_h_hdr=yes
  23313. else $as_nop
  23314. have_ibus_ibus_h_hdr=no
  23315. fi
  23316. CPPFLAGS="$save_CPPFLAGS"
  23317. if test x$have_ibus_ibus_h_hdr = xyes; then
  23318. if test x$enable_ime != xyes; then
  23319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23320. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23321. have_ibus_ibus_h_hdr=no
  23322. elif test x$enable_dbus != xyes; then
  23323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23324. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23325. have_ibus_ibus_h_hdr=no
  23326. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23328. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23329. have_ibus_ibus_h_hdr=no
  23330. else
  23331. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23332. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23333. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23334. fi
  23335. fi
  23336. fi
  23337. }
  23338. CheckFcitx()
  23339. {
  23340. # Check whether --enable-fcitx was given.
  23341. if test ${enable_fcitx+y}
  23342. then :
  23343. enableval=$enable_fcitx;
  23344. else $as_nop
  23345. enable_fcitx=yes
  23346. fi
  23347. if test x$enable_fcitx = xyes; then
  23348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23349. printf %s "checking for fcitx support... " >&6; }
  23350. have_fcitx=no
  23351. if test x$enable_ime != xyes; then
  23352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23353. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23354. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23356. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23357. else
  23358. have_fcitx=yes
  23359. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23360. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23361. fi
  23362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23363. printf "%s\n" "$have_fcitx" >&6; }
  23364. fi
  23365. }
  23366. CheckJoystickMFI()
  23367. {
  23368. # Check whether --enable-joystick-mfi was given.
  23369. if test ${enable_joystick_mfi+y}
  23370. then :
  23371. enableval=$enable_joystick_mfi;
  23372. else $as_nop
  23373. enable_joystick_mfi=yes
  23374. fi
  23375. if test x$enable_joystick_mfi = xyes; then
  23376. save_CFLAGS="$CFLAGS"
  23377. save_LDFLAGS="$LDFLAGS"
  23378. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23379. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23381. printf %s "checking for GameController framework... " >&6; }
  23382. enable_joystick_mfi=no
  23383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23384. /* end confdefs.h. */
  23385. #include <AvailabilityMacros.h>
  23386. #include <TargetConditionals.h>
  23387. #import <GameController/GameController.h>
  23388. int
  23389. main (void)
  23390. {
  23391. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23392. #error GameController framework doesn't work on this configuration
  23393. #endif
  23394. #if TARGET_CPU_X86
  23395. #error GameController framework doesn't work on this configuration
  23396. #endif
  23397. ;
  23398. return 0;
  23399. }
  23400. _ACEOF
  23401. if ac_fn_c_try_link "$LINENO"
  23402. then :
  23403. enable_joystick_mfi=yes
  23404. fi
  23405. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23406. conftest$ac_exeext conftest.$ac_ext
  23407. CFLAGS="$save_CFLAGS"
  23408. LDFLAGS="$save_LDFLAGS"
  23409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23410. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23411. if test x$enable_joystick_mfi = xyes; then
  23412. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23413. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23414. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23415. fi
  23416. fi
  23417. }
  23418. CheckPTHREAD()
  23419. {
  23420. case "$host" in
  23421. *-*-emscripten*)
  23422. enable_pthreads_default=no
  23423. ;;
  23424. *)
  23425. enable_pthreads_default=yes
  23426. ;;
  23427. esac
  23428. # Check whether --enable-pthreads was given.
  23429. if test ${enable_pthreads+y}
  23430. then :
  23431. enableval=$enable_pthreads;
  23432. else $as_nop
  23433. enable_pthreads=maybe
  23434. fi
  23435. # Check whether --enable-pthread-sem was given.
  23436. if test ${enable_pthread_sem+y}
  23437. then :
  23438. enableval=$enable_pthread_sem;
  23439. else $as_nop
  23440. enable_pthread_sem=maybe
  23441. fi
  23442. if test x$enable_pthreads = xmaybe; then
  23443. enable_pthreads=$enable_pthreads_default
  23444. fi
  23445. if test x$enable_pthread_sem = xmaybe; then
  23446. enable_pthread_sem=$enable_pthreads
  23447. fi
  23448. case "$host" in
  23449. *-*-android*)
  23450. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23451. pthread_lib=""
  23452. ;;
  23453. *-*-linux*|*-*-uclinux*)
  23454. pthread_cflags="-D_REENTRANT"
  23455. pthread_lib="-lpthread"
  23456. ;;
  23457. *-*-bsdi*)
  23458. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23459. pthread_lib=""
  23460. ;;
  23461. *-*-darwin*)
  23462. pthread_cflags="-D_THREAD_SAFE"
  23463. # causes Carbon.p complaints?
  23464. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23465. ;;
  23466. *-*-freebsd*|*-*-dragonfly*)
  23467. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23468. pthread_lib="-pthread"
  23469. ;;
  23470. *-*-netbsd*)
  23471. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23472. pthread_lib="-lpthread"
  23473. ;;
  23474. *-*-openbsd*)
  23475. pthread_cflags="-D_REENTRANT"
  23476. pthread_lib="-lpthread"
  23477. ;;
  23478. *-*-solaris2.9)
  23479. # From Solaris 9+, posix4's preferred name is rt.
  23480. pthread_cflags="-D_REENTRANT"
  23481. pthread_lib="-lpthread -lrt"
  23482. ;;
  23483. *-*-solaris2.10)
  23484. # Solaris 10+ merged pthread into libc.
  23485. pthread_cflags="-D_REENTRANT"
  23486. pthread_lib="-lrt"
  23487. ;;
  23488. *-*-solaris*)
  23489. # Solaris 11+ merged rt into libc.
  23490. pthread_cflags="-D_REENTRANT"
  23491. pthread_lib=""
  23492. ;;
  23493. *-*-sysv5*)
  23494. pthread_cflags="-D_REENTRANT -Kthread"
  23495. pthread_lib=""
  23496. ;;
  23497. *-*-aix*)
  23498. pthread_cflags="-D_REENTRANT -mthreads"
  23499. pthread_lib="-lpthread"
  23500. ;;
  23501. *-*-hpux11*)
  23502. pthread_cflags="-D_REENTRANT"
  23503. pthread_lib="-L/usr/lib -lpthread"
  23504. ;;
  23505. *-*-haiku*)
  23506. pthread_cflags="-D_REENTRANT"
  23507. pthread_lib=""
  23508. ;;
  23509. *-*-nto*)
  23510. pthread_cflags="-D_REENTRANT"
  23511. pthread_lib=""
  23512. ;;
  23513. *-*-emscripten*)
  23514. pthread_cflags="-D_REENTRANT -pthread"
  23515. pthread_lib="-pthread"
  23516. ;;
  23517. *)
  23518. pthread_cflags="-D_REENTRANT"
  23519. pthread_lib="-lpthread"
  23520. ;;
  23521. esac
  23522. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23523. # Save the original compiler flags and libraries
  23524. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23525. # Add the pthread compiler flags and libraries
  23526. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23527. # Check to see if we have pthread support on this system
  23528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23529. printf %s "checking for pthreads... " >&6; }
  23530. use_pthreads=no
  23531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23532. /* end confdefs.h. */
  23533. #include <pthread.h>
  23534. int
  23535. main (void)
  23536. {
  23537. pthread_attr_t type;
  23538. pthread_attr_init(&type);
  23539. ;
  23540. return 0;
  23541. }
  23542. _ACEOF
  23543. if ac_fn_c_try_link "$LINENO"
  23544. then :
  23545. use_pthreads=yes
  23546. fi
  23547. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23548. conftest$ac_exeext conftest.$ac_ext
  23549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23550. printf "%s\n" "$use_pthreads" >&6; }
  23551. # Restore the compiler flags and libraries
  23552. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23553. # Do futher testing if we have pthread support...
  23554. if test x$use_pthreads = xyes; then
  23555. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23556. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23557. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23558. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23559. # Save the original compiler flags and libraries
  23560. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23561. # Add the pthread compiler flags and libraries
  23562. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23563. # Check to see if recursive mutexes are available
  23564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23565. printf %s "checking for recursive mutexes... " >&6; }
  23566. has_recursive_mutexes=no
  23567. if test x$has_recursive_mutexes = xno; then
  23568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23569. /* end confdefs.h. */
  23570. #define _GNU_SOURCE 1
  23571. #include <pthread.h>
  23572. int
  23573. main (void)
  23574. {
  23575. pthread_mutexattr_t attr;
  23576. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23577. ;
  23578. return 0;
  23579. }
  23580. _ACEOF
  23581. if ac_fn_c_try_link "$LINENO"
  23582. then :
  23583. has_recursive_mutexes=yes
  23584. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23585. fi
  23586. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23587. conftest$ac_exeext conftest.$ac_ext
  23588. fi
  23589. if test x$has_recursive_mutexes = xno; then
  23590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23591. /* end confdefs.h. */
  23592. #define _GNU_SOURCE 1
  23593. #include <pthread.h>
  23594. int
  23595. main (void)
  23596. {
  23597. pthread_mutexattr_t attr;
  23598. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23599. ;
  23600. return 0;
  23601. }
  23602. _ACEOF
  23603. if ac_fn_c_try_link "$LINENO"
  23604. then :
  23605. has_recursive_mutexes=yes
  23606. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23607. fi
  23608. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23609. conftest$ac_exeext conftest.$ac_ext
  23610. fi
  23611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23612. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23613. # Check to see if pthread semaphore support is missing
  23614. if test x$enable_pthread_sem = xyes; then
  23615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23616. printf %s "checking for pthread semaphores... " >&6; }
  23617. have_pthread_sem=no
  23618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23619. /* end confdefs.h. */
  23620. #include <pthread.h>
  23621. #include <semaphore.h>
  23622. int
  23623. main (void)
  23624. {
  23625. ;
  23626. return 0;
  23627. }
  23628. _ACEOF
  23629. if ac_fn_c_try_compile "$LINENO"
  23630. then :
  23631. have_pthread_sem=yes
  23632. fi
  23633. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23635. printf "%s\n" "$have_pthread_sem" >&6; }
  23636. fi
  23637. if test x$have_pthread_sem = xyes; then
  23638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23639. printf %s "checking for sem_timedwait... " >&6; }
  23640. have_sem_timedwait=no
  23641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23642. /* end confdefs.h. */
  23643. #include <pthread.h>
  23644. #include <semaphore.h>
  23645. int
  23646. main (void)
  23647. {
  23648. sem_timedwait(NULL, NULL);
  23649. ;
  23650. return 0;
  23651. }
  23652. _ACEOF
  23653. if ac_fn_c_try_link "$LINENO"
  23654. then :
  23655. have_sem_timedwait=yes
  23656. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23657. fi
  23658. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23659. conftest$ac_exeext conftest.$ac_ext
  23660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23661. printf "%s\n" "$have_sem_timedwait" >&6; }
  23662. fi
  23663. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23664. "
  23665. if test "x$ac_cv_header_pthread_np_h" = xyes
  23666. then :
  23667. have_pthread_np_h=yes
  23668. else $as_nop
  23669. have_pthread_np_h=no
  23670. fi
  23671. if test x$have_pthread_np_h = xyes; then
  23672. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23673. fi
  23674. # Check to see if pthread naming is available
  23675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23676. printf %s "checking for pthread_setname_np... " >&6; }
  23677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23678. /* end confdefs.h. */
  23679. /* Override any GCC internal prototype to avoid an error.
  23680. Use char because int might match the return type of a GCC
  23681. builtin and then its argument prototype would still apply. */
  23682. char pthread_setname_np ();
  23683. int
  23684. main (void)
  23685. {
  23686. return pthread_setname_np ();
  23687. ;
  23688. return 0;
  23689. }
  23690. _ACEOF
  23691. if ac_fn_c_try_link "$LINENO"
  23692. then :
  23693. has_pthread_setname_np=yes
  23694. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23695. else $as_nop
  23696. has_pthread_setname_np=no
  23697. fi
  23698. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23699. conftest$ac_exeext conftest.$ac_ext
  23700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23701. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23703. printf %s "checking for pthread_set_name_np... " >&6; }
  23704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23705. /* end confdefs.h. */
  23706. /* Override any GCC internal prototype to avoid an error.
  23707. Use char because int might match the return type of a GCC
  23708. builtin and then its argument prototype would still apply. */
  23709. char pthread_set_name_np ();
  23710. int
  23711. main (void)
  23712. {
  23713. return pthread_set_name_np ();
  23714. ;
  23715. return 0;
  23716. }
  23717. _ACEOF
  23718. if ac_fn_c_try_link "$LINENO"
  23719. then :
  23720. has_pthread_set_name_np=yes
  23721. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23722. else $as_nop
  23723. has_pthread_set_name_np=no
  23724. fi
  23725. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23726. conftest$ac_exeext conftest.$ac_ext
  23727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23728. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23729. # Restore the compiler flags and libraries
  23730. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23731. # Basic thread creation functions
  23732. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23733. # Semaphores
  23734. # We can fake these with mutexes and condition variables if necessary
  23735. if test x$have_pthread_sem = xyes; then
  23736. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23737. else
  23738. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23739. fi
  23740. # Mutexes
  23741. # We can fake these with semaphores if necessary
  23742. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23743. # Condition variables
  23744. # We can fake these with semaphores and mutexes if necessary
  23745. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23746. # Thread local storage
  23747. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23748. have_threads=yes
  23749. fi
  23750. fi
  23751. }
  23752. CheckWINDOWS()
  23753. {
  23754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23755. printf %s "checking Windows compiler... " >&6; }
  23756. have_win32_gcc=no
  23757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23758. /* end confdefs.h. */
  23759. #include <windows.h>
  23760. int
  23761. main (void)
  23762. {
  23763. ;
  23764. return 0;
  23765. }
  23766. _ACEOF
  23767. if ac_fn_c_try_compile "$LINENO"
  23768. then :
  23769. have_win32_gcc=yes
  23770. fi
  23771. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23773. printf "%s\n" "$have_win32_gcc" >&6; }
  23774. if test x$have_win32_gcc != xyes; then
  23775. as_fn_error $? "
  23776. *** Your compiler ($CC) does not produce Windows executables!
  23777. " "$LINENO" 5
  23778. fi
  23779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23780. printf %s "checking Windows CE... " >&6; }
  23781. have_wince=no
  23782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23783. /* end confdefs.h. */
  23784. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23785. #error This is not Windows CE
  23786. #endif
  23787. int
  23788. main (void)
  23789. {
  23790. ;
  23791. return 0;
  23792. }
  23793. _ACEOF
  23794. if ac_fn_c_try_compile "$LINENO"
  23795. then :
  23796. have_wince=yes
  23797. as_fn_error $? "
  23798. *** Sorry, Windows CE is no longer supported.
  23799. " "$LINENO" 5
  23800. fi
  23801. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23803. printf "%s\n" "$have_wince" >&6; }
  23804. # headers needed elsewhere
  23805. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23806. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23807. then :
  23808. have_tpcshrd_h=yes
  23809. fi
  23810. if test x$have_tpcshrd_h = xyes; then
  23811. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23812. fi
  23813. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23814. if test "x$ac_cv_header_roapi_h" = xyes
  23815. then :
  23816. have_roapi_h=yes
  23817. fi
  23818. if test x$have_roapi_h = xyes; then
  23819. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23820. fi
  23821. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23822. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23823. then :
  23824. have_shellscalingapi_h=yes
  23825. fi
  23826. if test x$shellscalingapi_h = xyes; then
  23827. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23828. fi
  23829. }
  23830. CheckOS2()
  23831. {
  23832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23833. printf %s "checking OS/2 compiler... " >&6; }
  23834. have_os2_gcc=no
  23835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23836. /* end confdefs.h. */
  23837. #include <os2.h>
  23838. int
  23839. main (void)
  23840. {
  23841. ;
  23842. return 0;
  23843. }
  23844. _ACEOF
  23845. if ac_fn_c_try_compile "$LINENO"
  23846. then :
  23847. have_os2_gcc=yes
  23848. fi
  23849. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23851. printf "%s\n" "$have_os2_gcc" >&6; }
  23852. if test x$have_os2_gcc != xyes; then
  23853. as_fn_error $? "
  23854. *** Your compiler ($CC) does not produce OS/2 executables!
  23855. " "$LINENO" 5
  23856. fi
  23857. }
  23858. CheckDIRECTX()
  23859. {
  23860. # Check whether --enable-directx was given.
  23861. if test ${enable_directx+y}
  23862. then :
  23863. enableval=$enable_directx;
  23864. else $as_nop
  23865. enable_directx=yes
  23866. fi
  23867. if test x$enable_directx = xyes; then
  23868. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23869. if test "x$ac_cv_header_d3d9_h" = xyes
  23870. then :
  23871. have_d3d=yes
  23872. fi
  23873. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23874. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23875. then :
  23876. have_d3d11=yes
  23877. fi
  23878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compatible d3d12 headers" >&5
  23879. printf %s "checking for compatible d3d12 headers... " >&6; }
  23880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23881. /* end confdefs.h. */
  23882. #include <d3d12.h>
  23883. #include <d3d12sdklayers.h>
  23884. ID3D12Device1 *device;
  23885. int
  23886. main (void)
  23887. {
  23888. ;
  23889. return 0;
  23890. }
  23891. _ACEOF
  23892. if ac_fn_c_try_compile "$LINENO"
  23893. then :
  23894. have_d3d12=yes
  23895. else $as_nop
  23896. have_d3d12=no
  23897. fi
  23898. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23900. printf "%s\n" "$have_d3d12" >&6; }
  23901. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23902. if test "x$ac_cv_header_ddraw_h" = xyes
  23903. then :
  23904. have_ddraw=yes
  23905. fi
  23906. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23907. if test "x$ac_cv_header_dsound_h" = xyes
  23908. then :
  23909. have_dsound=yes
  23910. fi
  23911. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23912. if test "x$ac_cv_header_dinput_h" = xyes
  23913. then :
  23914. have_dinput=yes
  23915. fi
  23916. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23917. if test "x$ac_cv_header_dxgi_h" = xyes
  23918. then :
  23919. have_dxgi=yes
  23920. fi
  23921. if test x$have_ddraw = xyes; then
  23922. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23923. fi
  23924. if test x$have_dinput = xyes; then
  23925. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23926. fi
  23927. if test x$have_dsound = xyes; then
  23928. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23929. fi
  23930. if test x$have_dxgi = xyes; then
  23931. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23932. fi
  23933. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23934. # FIXME: ...so force it off for now.
  23935. case "$host" in
  23936. *-*-cygwin*)
  23937. have_dinput=false
  23938. ;;
  23939. esac
  23940. fi
  23941. # Check whether --enable-xinput was given.
  23942. if test ${enable_xinput+y}
  23943. then :
  23944. enableval=$enable_xinput;
  23945. else $as_nop
  23946. enable_xinput=yes
  23947. fi
  23948. if test x$enable_xinput = xyes; then
  23949. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23950. if test "x$ac_cv_header_xinput_h" = xyes
  23951. then :
  23952. have_xinput=yes
  23953. fi
  23954. if test x$have_xinput = xyes; then
  23955. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23956. fi
  23957. fi
  23958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23959. printf %s "checking for windows.gaming.input.h... " >&6; }
  23960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23961. /* end confdefs.h. */
  23962. #define COBJMACROS
  23963. #include <windows.gaming.input.h>
  23964. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23965. int
  23966. main (void)
  23967. {
  23968. ;
  23969. return 0;
  23970. }
  23971. _ACEOF
  23972. if ac_fn_c_try_compile "$LINENO"
  23973. then :
  23974. have_wgi=yes
  23975. else $as_nop
  23976. have_wgi=no
  23977. fi
  23978. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23980. printf "%s\n" "$have_wgi" >&6; }
  23981. if test x$have_wgi = xyes; then
  23982. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23983. fi
  23984. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23985. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23986. then :
  23987. have_wasapi=yes
  23988. fi
  23989. if test x$have_wasapi = xyes; then
  23990. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23991. fi
  23992. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23993. if test "x$ac_cv_header_audioclient_h" = xyes
  23994. then :
  23995. else $as_nop
  23996. have_wasapi=no
  23997. fi
  23998. if test x$have_wasapi = xyes; then
  23999. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  24000. fi
  24001. # Check whether --enable-wasapi was given.
  24002. if test ${enable_wasapi+y}
  24003. then :
  24004. enableval=$enable_wasapi;
  24005. else $as_nop
  24006. enable_wasapi=yes
  24007. fi
  24008. }
  24009. CheckDLOPEN()
  24010. {
  24011. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  24012. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  24013. if test "x$ac_cv_header_dlfcn_h" = xyes
  24014. then :
  24015. have_dlfcn_h=yes
  24016. else $as_nop
  24017. have_dlfcn_h=no
  24018. fi
  24019. have_dlopen=no
  24020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  24021. printf %s "checking for dlopen in -lc... " >&6; }
  24022. if test ${ac_cv_lib_c_dlopen+y}
  24023. then :
  24024. printf %s "(cached) " >&6
  24025. else $as_nop
  24026. ac_check_lib_save_LIBS=$LIBS
  24027. LIBS="-lc $LIBS"
  24028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24029. /* end confdefs.h. */
  24030. /* Override any GCC internal prototype to avoid an error.
  24031. Use char because int might match the return type of a GCC
  24032. builtin and then its argument prototype would still apply. */
  24033. char dlopen ();
  24034. int
  24035. main (void)
  24036. {
  24037. return dlopen ();
  24038. ;
  24039. return 0;
  24040. }
  24041. _ACEOF
  24042. if ac_fn_c_try_link "$LINENO"
  24043. then :
  24044. ac_cv_lib_c_dlopen=yes
  24045. else $as_nop
  24046. ac_cv_lib_c_dlopen=no
  24047. fi
  24048. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24049. conftest$ac_exeext conftest.$ac_ext
  24050. LIBS=$ac_check_lib_save_LIBS
  24051. fi
  24052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  24053. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  24054. if test "x$ac_cv_lib_c_dlopen" = xyes
  24055. then :
  24056. have_dlopen=yes
  24057. else $as_nop
  24058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  24059. printf %s "checking for dlopen in -ldl... " >&6; }
  24060. if test ${ac_cv_lib_dl_dlopen+y}
  24061. then :
  24062. printf %s "(cached) " >&6
  24063. else $as_nop
  24064. ac_check_lib_save_LIBS=$LIBS
  24065. LIBS="-ldl $LIBS"
  24066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24067. /* end confdefs.h. */
  24068. /* Override any GCC internal prototype to avoid an error.
  24069. Use char because int might match the return type of a GCC
  24070. builtin and then its argument prototype would still apply. */
  24071. char dlopen ();
  24072. int
  24073. main (void)
  24074. {
  24075. return dlopen ();
  24076. ;
  24077. return 0;
  24078. }
  24079. _ACEOF
  24080. if ac_fn_c_try_link "$LINENO"
  24081. then :
  24082. ac_cv_lib_dl_dlopen=yes
  24083. else $as_nop
  24084. ac_cv_lib_dl_dlopen=no
  24085. fi
  24086. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24087. conftest$ac_exeext conftest.$ac_ext
  24088. LIBS=$ac_check_lib_save_LIBS
  24089. fi
  24090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  24091. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  24092. if test "x$ac_cv_lib_dl_dlopen" = xyes
  24093. then :
  24094. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  24095. fi
  24096. fi
  24097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  24098. printf %s "checking for dlopen... " >&6; }
  24099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  24100. printf "%s\n" "$have_dlopen" >&6; }
  24101. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  24102. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  24103. if test x$enable_loadso = xyes; then
  24104. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  24105. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  24106. have_loadso=yes
  24107. fi
  24108. fi
  24109. }
  24110. CheckO_CLOEXEC()
  24111. {
  24112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  24113. printf %s "checking for O_CLOEXEC... " >&6; }
  24114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24115. /* end confdefs.h. */
  24116. #include <fcntl.h>
  24117. int flag = O_CLOEXEC;
  24118. int
  24119. main (void)
  24120. {
  24121. ;
  24122. return 0;
  24123. }
  24124. _ACEOF
  24125. if ac_fn_c_try_compile "$LINENO"
  24126. then :
  24127. have_o_cloexec=yes
  24128. else $as_nop
  24129. have_o_cloexec=no
  24130. fi
  24131. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  24133. printf "%s\n" "$have_o_cloexec" >&6; }
  24134. if test $have_o_cloexec = yes; then
  24135. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  24136. fi
  24137. }
  24138. CheckUSBHID()
  24139. {
  24140. case "$host" in
  24141. *-*-*bsd*|*-*-dragonfly*)
  24142. if test x$enable_joystick = xyes; then
  24143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  24144. printf %s "checking for hid_init in -lusbhid... " >&6; }
  24145. if test ${ac_cv_lib_usbhid_hid_init+y}
  24146. then :
  24147. printf %s "(cached) " >&6
  24148. else $as_nop
  24149. ac_check_lib_save_LIBS=$LIBS
  24150. LIBS="-lusbhid $LIBS"
  24151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24152. /* end confdefs.h. */
  24153. /* Override any GCC internal prototype to avoid an error.
  24154. Use char because int might match the return type of a GCC
  24155. builtin and then its argument prototype would still apply. */
  24156. char hid_init ();
  24157. int
  24158. main (void)
  24159. {
  24160. return hid_init ();
  24161. ;
  24162. return 0;
  24163. }
  24164. _ACEOF
  24165. if ac_fn_c_try_link "$LINENO"
  24166. then :
  24167. ac_cv_lib_usbhid_hid_init=yes
  24168. else $as_nop
  24169. ac_cv_lib_usbhid_hid_init=no
  24170. fi
  24171. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24172. conftest$ac_exeext conftest.$ac_ext
  24173. LIBS=$ac_check_lib_save_LIBS
  24174. fi
  24175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  24176. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  24177. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  24178. then :
  24179. have_libusbhid=yes
  24180. fi
  24181. if test x$have_libusbhid = xyes; then
  24182. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  24183. if test "x$ac_cv_header_usbhid_h" = xyes
  24184. then :
  24185. USB_CFLAGS="-DHAVE_USBHID_H"
  24186. fi
  24187. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  24188. if test "x$ac_cv_header_libusbhid_h" = xyes
  24189. then :
  24190. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  24191. fi
  24192. USB_LIBS="$USB_LIBS -lusbhid"
  24193. else
  24194. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24195. if test "x$ac_cv_header_usb_h" = xyes
  24196. then :
  24197. USB_CFLAGS="-DHAVE_USB_H"
  24198. fi
  24199. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24200. if test "x$ac_cv_header_libusb_h" = xyes
  24201. then :
  24202. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24203. fi
  24204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24205. printf %s "checking for hid_init in -lusb... " >&6; }
  24206. if test ${ac_cv_lib_usb_hid_init+y}
  24207. then :
  24208. printf %s "(cached) " >&6
  24209. else $as_nop
  24210. ac_check_lib_save_LIBS=$LIBS
  24211. LIBS="-lusb $LIBS"
  24212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24213. /* end confdefs.h. */
  24214. /* Override any GCC internal prototype to avoid an error.
  24215. Use char because int might match the return type of a GCC
  24216. builtin and then its argument prototype would still apply. */
  24217. char hid_init ();
  24218. int
  24219. main (void)
  24220. {
  24221. return hid_init ();
  24222. ;
  24223. return 0;
  24224. }
  24225. _ACEOF
  24226. if ac_fn_c_try_link "$LINENO"
  24227. then :
  24228. ac_cv_lib_usb_hid_init=yes
  24229. else $as_nop
  24230. ac_cv_lib_usb_hid_init=no
  24231. fi
  24232. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24233. conftest$ac_exeext conftest.$ac_ext
  24234. LIBS=$ac_check_lib_save_LIBS
  24235. fi
  24236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24237. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24238. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24239. then :
  24240. USB_LIBS="$USB_LIBS -lusb"
  24241. fi
  24242. fi
  24243. save_CFLAGS="$CFLAGS"
  24244. CFLAGS="$CFLAGS $USB_CFLAGS"
  24245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24246. printf %s "checking for usbhid... " >&6; }
  24247. have_usbhid=no
  24248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24249. /* end confdefs.h. */
  24250. #include <stdint.h>
  24251. #if defined(HAVE_USB_H)
  24252. #include <usb.h>
  24253. #endif
  24254. #ifdef __DragonFly__
  24255. # include <bus/u4b/usb.h>
  24256. # include <bus/u4b/usbhid.h>
  24257. #else
  24258. # include <dev/usb/usb.h>
  24259. # include <dev/usb/usbhid.h>
  24260. #endif
  24261. #if defined(HAVE_USBHID_H)
  24262. #include <usbhid.h>
  24263. #elif defined(HAVE_LIBUSB_H)
  24264. #include <libusb.h>
  24265. #elif defined(HAVE_LIBUSBHID_H)
  24266. #include <libusbhid.h>
  24267. #endif
  24268. int
  24269. main (void)
  24270. {
  24271. struct report_desc *repdesc;
  24272. struct usb_ctl_report *repbuf;
  24273. hid_kind_t hidkind;
  24274. ;
  24275. return 0;
  24276. }
  24277. _ACEOF
  24278. if ac_fn_c_try_compile "$LINENO"
  24279. then :
  24280. have_usbhid=yes
  24281. fi
  24282. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24284. printf "%s\n" "$have_usbhid" >&6; }
  24285. if test x$have_usbhid = xyes; then
  24286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24287. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24288. have_usbhid_ucr_data=no
  24289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24290. /* end confdefs.h. */
  24291. #include <stdint.h>
  24292. #if defined(HAVE_USB_H)
  24293. #include <usb.h>
  24294. #endif
  24295. #ifdef __DragonFly__
  24296. # include <bus/u4b/usb.h>
  24297. # include <bus/u4b/usbhid.h>
  24298. #else
  24299. # include <dev/usb/usb.h>
  24300. # include <dev/usb/usbhid.h>
  24301. #endif
  24302. #if defined(HAVE_USBHID_H)
  24303. #include <usbhid.h>
  24304. #elif defined(HAVE_LIBUSB_H)
  24305. #include <libusb.h>
  24306. #elif defined(HAVE_LIBUSBHID_H)
  24307. #include <libusbhid.h>
  24308. #endif
  24309. int
  24310. main (void)
  24311. {
  24312. struct usb_ctl_report buf;
  24313. if (buf.ucr_data) { }
  24314. ;
  24315. return 0;
  24316. }
  24317. _ACEOF
  24318. if ac_fn_c_try_compile "$LINENO"
  24319. then :
  24320. have_usbhid_ucr_data=yes
  24321. fi
  24322. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24323. if test x$have_usbhid_ucr_data = xyes; then
  24324. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24325. fi
  24326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24327. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24329. printf %s "checking for new usbhid API... " >&6; }
  24330. have_usbhid_new=no
  24331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24332. /* end confdefs.h. */
  24333. #include <stdint.h>
  24334. #if defined(HAVE_USB_H)
  24335. #include <usb.h>
  24336. #endif
  24337. #ifdef __DragonFly__
  24338. #include <bus/u4b/usb.h>
  24339. #include <bus/u4b/usbhid.h>
  24340. #else
  24341. #include <dev/usb/usb.h>
  24342. #include <dev/usb/usbhid.h>
  24343. #endif
  24344. #if defined(HAVE_USBHID_H)
  24345. #include <usbhid.h>
  24346. #elif defined(HAVE_LIBUSB_H)
  24347. #include <libusb.h>
  24348. #elif defined(HAVE_LIBUSBHID_H)
  24349. #include <libusbhid.h>
  24350. #endif
  24351. int
  24352. main (void)
  24353. {
  24354. report_desc_t d;
  24355. hid_start_parse(d, 1, 1);
  24356. ;
  24357. return 0;
  24358. }
  24359. _ACEOF
  24360. if ac_fn_c_try_compile "$LINENO"
  24361. then :
  24362. have_usbhid_new=yes
  24363. fi
  24364. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24365. if test x$have_usbhid_new = xyes; then
  24366. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24367. fi
  24368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24369. printf "%s\n" "$have_usbhid_new" >&6; }
  24370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24371. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24372. have_machine_joystick=no
  24373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24374. /* end confdefs.h. */
  24375. #include <machine/joystick.h>
  24376. int
  24377. main (void)
  24378. {
  24379. struct joystick t;
  24380. ;
  24381. return 0;
  24382. }
  24383. _ACEOF
  24384. if ac_fn_c_try_compile "$LINENO"
  24385. then :
  24386. have_machine_joystick=yes
  24387. fi
  24388. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24389. if test x$have_machine_joystick = xyes; then
  24390. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24391. fi
  24392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24393. printf "%s\n" "$have_machine_joystick" >&6; }
  24394. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24395. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24396. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24397. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24398. have_joystick=yes
  24399. fi
  24400. CFLAGS="$save_CFLAGS"
  24401. fi
  24402. ;;
  24403. esac
  24404. }
  24405. CheckHIDAPI()
  24406. {
  24407. # Check whether --enable-hidapi-joystick was given.
  24408. if test ${enable_hidapi_joystick+y}
  24409. then :
  24410. enableval=$enable_hidapi_joystick;
  24411. else $as_nop
  24412. enable_hidapi_joystick=yes
  24413. fi
  24414. # Check whether --enable-hidapi-libusb was given.
  24415. if test ${enable_hidapi_libusb+y}
  24416. then :
  24417. enableval=$enable_hidapi_libusb;
  24418. else $as_nop
  24419. enable_hidapi_libusb=maybe
  24420. fi
  24421. if test x$enable_hidapi = xyes; then
  24422. case "$host" in
  24423. # libusb does not support iOS
  24424. *-ios-* )
  24425. enable_hidapi_libusb=no
  24426. ;;
  24427. # On the other hand, *BSD specifically uses libusb only
  24428. *-*-*bsd* )
  24429. enable_hidapi_libusb=yes
  24430. require_hidapi_libusb=yes
  24431. ;;
  24432. *-*-os2* )
  24433. enable_hidapi_libusb=yes
  24434. ;;
  24435. esac
  24436. hidapi_support=yes
  24437. if test x$enable_hidapi_libusb = xyes; then
  24438. pkg_failed=no
  24439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24440. printf %s "checking for libusb-1.0... " >&6; }
  24441. if test -n "$LIBUSB_CFLAGS"; then
  24442. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24443. elif test -n "$PKG_CONFIG"; then
  24444. if test -n "$PKG_CONFIG" && \
  24445. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24446. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24447. ac_status=$?
  24448. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24449. test $ac_status = 0; }; then
  24450. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24451. test "x$?" != "x0" && pkg_failed=yes
  24452. else
  24453. pkg_failed=yes
  24454. fi
  24455. else
  24456. pkg_failed=untried
  24457. fi
  24458. if test -n "$LIBUSB_LIBS"; then
  24459. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24460. elif test -n "$PKG_CONFIG"; then
  24461. if test -n "$PKG_CONFIG" && \
  24462. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24463. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24464. ac_status=$?
  24465. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24466. test $ac_status = 0; }; then
  24467. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24468. test "x$?" != "x0" && pkg_failed=yes
  24469. else
  24470. pkg_failed=yes
  24471. fi
  24472. else
  24473. pkg_failed=untried
  24474. fi
  24475. if test $pkg_failed = yes; then
  24476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24477. printf "%s\n" "no" >&6; }
  24478. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24479. _pkg_short_errors_supported=yes
  24480. else
  24481. _pkg_short_errors_supported=no
  24482. fi
  24483. if test $_pkg_short_errors_supported = yes; then
  24484. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24485. else
  24486. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24487. fi
  24488. # Put the nasty error message in config.log where it belongs
  24489. echo "$LIBUSB_PKG_ERRORS" >&5
  24490. have_libusb=no
  24491. elif test $pkg_failed = untried; then
  24492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24493. printf "%s\n" "no" >&6; }
  24494. have_libusb=no
  24495. else
  24496. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24497. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24499. printf "%s\n" "yes" >&6; }
  24500. have_libusb=yes
  24501. fi
  24502. save_CPPFLAGS="$CPPFLAGS"
  24503. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24504. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24505. if test "x$ac_cv_header_libusb_h" = xyes
  24506. then :
  24507. have_libusb_h=yes
  24508. else $as_nop
  24509. have_libusb_h=no
  24510. fi
  24511. CPPFLAGS="$save_CPPFLAGS"
  24512. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24513. hidapi_support=no
  24514. fi
  24515. fi
  24516. if test x$hidapi_support = xyes; then
  24517. if test x$have_libusb_h = xyes; then
  24518. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24519. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24520. if test x$require_hidapi_libusb = xyes; then
  24521. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24522. else
  24523. if test x$have_loadso != xyes; then
  24524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24525. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24526. fi
  24527. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24528. libusb_lib=""
  24529. case "$host" in
  24530. *-*-darwin* )
  24531. libusb_lib="libusb-1.0.0.dylib"
  24532. ;;
  24533. *-*-cygwin* | *-*-mingw* )
  24534. libusb_lib="libusb-1.0.dll"
  24535. ;;
  24536. *-*-os2* )
  24537. libusb_lib="usb100.dll"
  24538. ;;
  24539. esac
  24540. if test x$libusb_lib = x; then
  24541. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24542. fi
  24543. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24544. fi
  24545. fi
  24546. fi
  24547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24548. printf %s "checking for hidapi joystick support... " >&6; }
  24549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24550. printf "%s\n" "$hidapi_support" >&6; }
  24551. fi
  24552. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24553. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24554. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24555. fi
  24556. }
  24557. CheckClockGettime()
  24558. {
  24559. # Check whether --enable-clock_gettime was given.
  24560. if test ${enable_clock_gettime+y}
  24561. then :
  24562. enableval=$enable_clock_gettime;
  24563. else $as_nop
  24564. enable_clock_gettime=yes
  24565. fi
  24566. if test x$enable_clock_gettime = xyes; then
  24567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24568. printf %s "checking for clock_gettime in -lc... " >&6; }
  24569. if test ${ac_cv_lib_c_clock_gettime+y}
  24570. then :
  24571. printf %s "(cached) " >&6
  24572. else $as_nop
  24573. ac_check_lib_save_LIBS=$LIBS
  24574. LIBS="-lc $LIBS"
  24575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24576. /* end confdefs.h. */
  24577. /* Override any GCC internal prototype to avoid an error.
  24578. Use char because int might match the return type of a GCC
  24579. builtin and then its argument prototype would still apply. */
  24580. char clock_gettime ();
  24581. int
  24582. main (void)
  24583. {
  24584. return clock_gettime ();
  24585. ;
  24586. return 0;
  24587. }
  24588. _ACEOF
  24589. if ac_fn_c_try_link "$LINENO"
  24590. then :
  24591. ac_cv_lib_c_clock_gettime=yes
  24592. else $as_nop
  24593. ac_cv_lib_c_clock_gettime=no
  24594. fi
  24595. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24596. conftest$ac_exeext conftest.$ac_ext
  24597. LIBS=$ac_check_lib_save_LIBS
  24598. fi
  24599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24600. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24601. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24602. then :
  24603. have_clock_gettime=yes
  24604. fi
  24605. if test x$have_clock_gettime = xyes; then
  24606. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24607. else
  24608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24609. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24610. if test ${ac_cv_lib_rt_clock_gettime+y}
  24611. then :
  24612. printf %s "(cached) " >&6
  24613. else $as_nop
  24614. ac_check_lib_save_LIBS=$LIBS
  24615. LIBS="-lrt $LIBS"
  24616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24617. /* end confdefs.h. */
  24618. /* Override any GCC internal prototype to avoid an error.
  24619. Use char because int might match the return type of a GCC
  24620. builtin and then its argument prototype would still apply. */
  24621. char clock_gettime ();
  24622. int
  24623. main (void)
  24624. {
  24625. return clock_gettime ();
  24626. ;
  24627. return 0;
  24628. }
  24629. _ACEOF
  24630. if ac_fn_c_try_link "$LINENO"
  24631. then :
  24632. ac_cv_lib_rt_clock_gettime=yes
  24633. else $as_nop
  24634. ac_cv_lib_rt_clock_gettime=no
  24635. fi
  24636. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24637. conftest$ac_exeext conftest.$ac_ext
  24638. LIBS=$ac_check_lib_save_LIBS
  24639. fi
  24640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24641. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24642. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24643. then :
  24644. have_clock_gettime=yes
  24645. fi
  24646. if test x$have_clock_gettime = xyes; then
  24647. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24648. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24649. fi
  24650. fi
  24651. fi
  24652. }
  24653. CheckLinuxVersion()
  24654. {
  24655. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24656. if test "x$ac_cv_header_linux_version_h" = xyes
  24657. then :
  24658. have_linux_version_h=yes
  24659. fi
  24660. if test x$have_linux_version_h = xyes; then
  24661. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24662. fi
  24663. }
  24664. CheckRPATH()
  24665. {
  24666. # Check whether --enable-rpath was given.
  24667. if test ${enable_rpath+y}
  24668. then :
  24669. enableval=$enable_rpath;
  24670. else $as_nop
  24671. enable_rpath=yes
  24672. fi
  24673. }
  24674. CheckEventSignals()
  24675. {
  24676. # Check whether --enable-backgrounding-signal was given.
  24677. if test ${enable_backgrounding_signal+y}
  24678. then :
  24679. enableval=$enable_backgrounding_signal;
  24680. else $as_nop
  24681. enable_backgrounding_signal=no
  24682. fi
  24683. if test x$enable_backgrounding_signal != xno; then
  24684. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24685. fi
  24686. # Check whether --enable-foregrounding-signal was given.
  24687. if test ${enable_foregrounding_signal+y}
  24688. then :
  24689. enableval=$enable_foregrounding_signal;
  24690. else $as_nop
  24691. enable_foregrounding_signal=no
  24692. fi
  24693. if test x$enable_foregrounding_signal != xno; then
  24694. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24695. fi
  24696. }
  24697. CheckVirtualJoystick()
  24698. {
  24699. # Check whether --enable-joystick-virtual was given.
  24700. if test ${enable_joystick_virtual+y}
  24701. then :
  24702. enableval=$enable_joystick_virtual;
  24703. else $as_nop
  24704. enable_joystick_virtual=yes
  24705. fi
  24706. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24707. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24708. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24709. have_joystick_virtual=yes
  24710. fi
  24711. }
  24712. CheckWarnAll
  24713. CheckUnusedLocalTypedefs
  24714. CheckNoStrictAliasing
  24715. CheckEventSignals
  24716. have_locale=no
  24717. case "$host" in
  24718. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24719. case "$host" in
  24720. *-*-android*)
  24721. # Android
  24722. ARCH=android
  24723. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24724. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24725. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24726. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24727. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24728. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24729. if test x$enable_video = xyes; then
  24730. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24731. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24732. SUMMARY_video="${SUMMARY_video} android"
  24733. have_video=yes
  24734. fi
  24735. ;;
  24736. *-*-linux*) ARCH=linux ;;
  24737. *-*-uclinux*) ARCH=linux ;;
  24738. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24739. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24740. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24741. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24742. *-*-bsdi*) ARCH=bsdi ;;
  24743. *-*-freebsd*) ARCH=freebsd ;;
  24744. *-*-dragonfly*) ARCH=freebsd ;;
  24745. *-*-netbsd*) ARCH=netbsd ;;
  24746. *-*-openbsd*) ARCH=openbsd ;;
  24747. *-*-sysv5*) ARCH=sysv5 ;;
  24748. *-*-solaris*) ARCH=solaris ;;
  24749. *-*-hpux*) ARCH=hpux ;;
  24750. *-*-aix*) ARCH=aix ;;
  24751. *-*-minix*) ARCH=minix ;;
  24752. *-*-nto*) ARCH=nto
  24753. CheckQNXVideo
  24754. ;;
  24755. esac
  24756. CheckVisibilityHidden
  24757. CheckWerror
  24758. CheckDeclarationAfterStatement
  24759. CheckDummyVideo
  24760. CheckOffscreenVideo
  24761. CheckDiskAudio
  24762. CheckDummyAudio
  24763. CheckDLOPEN
  24764. CheckARM
  24765. CheckNEON
  24766. CheckO_CLOEXEC
  24767. CheckOSS
  24768. CheckALSA
  24769. CheckPipewire
  24770. CheckPulseAudio
  24771. CheckJACK
  24772. CheckARTSC
  24773. CheckESD
  24774. CheckNAS
  24775. CheckSNDIO
  24776. CheckFusionSound
  24777. CheckLibSampleRate
  24778. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24779. CheckRPI
  24780. CheckX11
  24781. CheckDirectFB
  24782. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24783. CheckEGL
  24784. CheckKMSDRM
  24785. CheckGLX
  24786. CheckOpenGL
  24787. CheckOpenGLES
  24788. CheckVulkan
  24789. CheckWayland
  24790. CheckInputEvents
  24791. CheckLibUDev
  24792. CheckDBus
  24793. CheckIME
  24794. CheckInotify
  24795. CheckIBus
  24796. CheckFcitx
  24797. case $ARCH in
  24798. linux)
  24799. CheckInputKD
  24800. ;;
  24801. freebsd)
  24802. CheckInputKBIO
  24803. ;;
  24804. openbsd|netbsd)
  24805. CheckInputWSCONS
  24806. ;;
  24807. esac
  24808. CheckUSBHID
  24809. CheckHIDAPI
  24810. CheckPTHREAD
  24811. CheckClockGettime
  24812. CheckLinuxVersion
  24813. CheckRPATH
  24814. CheckVivanteVideo
  24815. # Set up files for the misc library
  24816. if test x$enable_misc = xyes; then
  24817. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24818. have_misc=yes
  24819. fi
  24820. # Set up files for the locale library
  24821. if test x$enable_locale = xyes; then
  24822. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24823. have_locale=yes
  24824. fi
  24825. # Set up files for the audio library
  24826. if test x$enable_audio = xyes; then
  24827. case $ARCH in
  24828. sysv5|solaris|hpux)
  24829. # Newer Solaris-based systems, like OpenIndiana, don't have this interface anymore. Check for the header first.
  24830. ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
  24831. if test "x$ac_cv_header_sys_audioio_h" = xyes
  24832. then :
  24833. have_sys_audioio_h=yes
  24834. else $as_nop
  24835. have_sys_audioio_h=no
  24836. fi
  24837. if test x$have_sys_audioio_h = xyes; then
  24838. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24839. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24840. SUMMARY_audio="${SUMMARY_audio} sun"
  24841. have_audio=yes
  24842. fi
  24843. ;;
  24844. netbsd) # Don't use this on OpenBSD, it's busted.
  24845. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24846. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24847. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24848. have_audio=yes
  24849. ;;
  24850. aix)
  24851. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24852. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24853. SUMMARY_audio="${SUMMARY_audio} paudio"
  24854. have_audio=yes
  24855. ;;
  24856. android)
  24857. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24858. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24859. SUMMARY_audio="${SUMMARY_audio} android"
  24860. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24861. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24862. SUMMARY_audio="${SUMMARY_audio} openslES"
  24863. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24864. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24865. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24866. have_audio=yes
  24867. ;;
  24868. nto)
  24869. CheckQNXAudio
  24870. ;;
  24871. esac
  24872. fi
  24873. # Set up files for the joystick library
  24874. if test x$enable_joystick = xyes; then
  24875. case $ARCH in
  24876. linux)
  24877. if test "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. freebsd)
  24885. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24886. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24887. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24888. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24889. have_joystick=yes
  24890. fi
  24891. ;;
  24892. android)
  24893. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24894. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24895. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24896. have_joystick=yes
  24897. ;;
  24898. esac
  24899. fi
  24900. # Set up files for the haptic library
  24901. if test x$enable_haptic = xyes; then
  24902. case $ARCH in
  24903. linux|freebsd)
  24904. if test x$use_input_events = xyes; then
  24905. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24906. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24907. have_haptic=yes
  24908. fi
  24909. ;;
  24910. android)
  24911. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24912. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24913. have_haptic=yes
  24914. ;;
  24915. esac
  24916. fi
  24917. # Set up files for the sensor library
  24918. if test x$enable_sensor = xyes; then
  24919. case $ARCH in
  24920. android)
  24921. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24922. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24923. have_sensor=yes
  24924. ;;
  24925. esac
  24926. fi
  24927. # Set up files for the power library
  24928. if test x$enable_power = xyes; then
  24929. case $ARCH in
  24930. linux)
  24931. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24932. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24933. have_power=yes
  24934. ;;
  24935. android)
  24936. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24937. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24938. have_power=yes
  24939. ;;
  24940. esac
  24941. fi
  24942. # Set up files for the filesystem library
  24943. if test x$enable_filesystem = xyes; then
  24944. case $ARCH in
  24945. android)
  24946. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24947. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24948. have_filesystem=yes
  24949. ;;
  24950. *)
  24951. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24952. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24953. have_filesystem=yes
  24954. ;;
  24955. esac
  24956. fi
  24957. # Set up files for the timer library
  24958. if test x$enable_timers = xyes; then
  24959. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24960. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24961. have_timers=yes
  24962. fi
  24963. # Set up files for udev hotplugging support
  24964. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24965. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24966. fi
  24967. # Set up files for evdev input
  24968. if test x$use_input_events = xyes; then
  24969. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24970. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24971. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24972. fi
  24973. # Set up files for wscons input
  24974. if test x$use_input_wscons = xyes; then
  24975. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24976. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24977. fi
  24978. # Set up other core UNIX files
  24979. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24980. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24981. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24982. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24983. ;;
  24984. *-*-cygwin* | *-*-mingw*)
  24985. ARCH=win32
  24986. if test "$build" != "$host"; then # cross-compiling
  24987. # Default cross-compile location
  24988. ac_default_prefix=/usr/local/cross-tools/$host
  24989. else
  24990. # Look for the location of the tools and install there
  24991. if test "$BUILD_PREFIX" != ""; then
  24992. ac_default_prefix=$BUILD_PREFIX
  24993. fi
  24994. fi
  24995. if test x$enable_loadso = xyes; then
  24996. have_loadso=yes
  24997. fi
  24998. CheckGDwarf4
  24999. CheckWerror
  25000. CheckDeclarationAfterStatement
  25001. CheckDummyVideo
  25002. CheckOffscreenVideo
  25003. CheckDiskAudio
  25004. CheckDummyAudio
  25005. CheckWINDOWS
  25006. CheckWINDOWSGL
  25007. CheckWINDOWSGLES
  25008. CheckVulkan
  25009. CheckDIRECTX
  25010. CheckHIDAPI
  25011. # Set up the core platform files
  25012. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  25013. # Set up files for the misc library
  25014. if test x$enable_misc = xyes; then
  25015. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  25016. have_misc=yes
  25017. fi
  25018. # Use the Windows locale APIs.
  25019. if test x$enable_locale = xyes; then
  25020. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  25021. have_locale=yes
  25022. fi
  25023. # Set up files for the video library
  25024. if test x$enable_video = xyes; then
  25025. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  25026. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  25027. have_video=yes
  25028. # Check whether --enable-render-d3d was given.
  25029. if test ${enable_render_d3d+y}
  25030. then :
  25031. enableval=$enable_render_d3d;
  25032. else $as_nop
  25033. enable_render_d3d=yes
  25034. fi
  25035. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  25036. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  25037. SUMMARY_video="${SUMMARY_video} d3d9"
  25038. fi
  25039. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  25040. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  25041. SUMMARY_video="${SUMMARY_video} d3d11"
  25042. fi
  25043. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  25044. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  25045. SUMMARY_video="${SUMMARY_video} d3d12"
  25046. fi
  25047. fi
  25048. # Set up files for the audio library
  25049. if test x$enable_audio = xyes; then
  25050. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  25051. SUMMARY_audio="${SUMMARY_audio} winmm"
  25052. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  25053. if test x$have_dsound = xyes; then
  25054. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  25055. SUMMARY_audio="${SUMMARY_audio} directsound"
  25056. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  25057. fi
  25058. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  25059. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  25060. SUMMARY_audio="${SUMMARY_audio} wasapi"
  25061. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  25062. fi
  25063. have_audio=yes
  25064. fi
  25065. # Set up files for the joystick library
  25066. if test x$enable_joystick = xyes; then
  25067. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  25068. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  25069. if test x$have_xinput = xyes; then
  25070. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  25071. fi
  25072. if test x$have_wgi = xyes; then
  25073. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  25074. fi
  25075. if test x$have_dinput = xyes; then
  25076. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  25077. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  25078. fi
  25079. fi
  25080. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  25081. have_joystick=yes
  25082. fi
  25083. if test x$enable_haptic = xyes; then
  25084. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  25085. if test x$have_xinput = xyes; then
  25086. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  25087. fi
  25088. if test x$have_dinput = xyes; then
  25089. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  25090. fi
  25091. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  25092. have_haptic=yes
  25093. fi
  25094. fi
  25095. # Set up files for the sensor library
  25096. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  25097. if test "x$ac_cv_header_sensorsapi_h" = xyes
  25098. then :
  25099. have_winsensors=yes
  25100. else $as_nop
  25101. have_winsensors=no
  25102. fi
  25103. if test x$have_winsensors = xyes; then
  25104. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  25105. fi
  25106. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  25107. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  25108. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  25109. have_sensor=yes
  25110. fi
  25111. # Set up files for the power library
  25112. if test x$enable_power = xyes; then
  25113. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  25114. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  25115. have_power=yes
  25116. fi
  25117. # Set up files for the filesystem library
  25118. if test x$enable_filesystem = xyes; then
  25119. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  25120. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  25121. have_filesystem=yes
  25122. fi
  25123. # Set up files for the thread library
  25124. if test x$enable_threads = xyes; then
  25125. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  25126. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  25127. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  25128. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25129. have_threads=yes
  25130. fi
  25131. # Set up files for the timer library
  25132. if test x$enable_timers = xyes; then
  25133. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  25134. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  25135. have_timers=yes
  25136. fi
  25137. # Set up files for the shared object loading library
  25138. if test x$enable_loadso = xyes; then
  25139. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  25140. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  25141. fi
  25142. # Set up the system libraries we need
  25143. if test -f /lib/w32api/libuuid.a; then
  25144. LIBUUID=/lib/w32api/libuuid.a
  25145. else
  25146. LIBUUID=-luuid
  25147. fi
  25148. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  25149. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  25150. # The Windows platform requires special setup
  25151. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  25152. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  25153. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  25154. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  25155. # Check to see if this is a mingw or cygwin build
  25156. have_mingw32=
  25157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  25158. printf %s "checking for main in -lmingw32... " >&6; }
  25159. if test ${ac_cv_lib_mingw32_main+y}
  25160. then :
  25161. printf %s "(cached) " >&6
  25162. else $as_nop
  25163. ac_check_lib_save_LIBS=$LIBS
  25164. LIBS="-lmingw32 $LIBS"
  25165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25166. /* end confdefs.h. */
  25167. int
  25168. main (void)
  25169. {
  25170. return main ();
  25171. ;
  25172. return 0;
  25173. }
  25174. _ACEOF
  25175. if ac_fn_c_try_link "$LINENO"
  25176. then :
  25177. ac_cv_lib_mingw32_main=yes
  25178. else $as_nop
  25179. ac_cv_lib_mingw32_main=no
  25180. fi
  25181. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25182. conftest$ac_exeext conftest.$ac_ext
  25183. LIBS=$ac_check_lib_save_LIBS
  25184. fi
  25185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  25186. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  25187. if test "x$ac_cv_lib_mingw32_main" = xyes
  25188. then :
  25189. have_mingw32=yes
  25190. fi
  25191. if test x$have_mingw32 = xyes; then
  25192. SDL_LIBS="-lmingw32 $SDL_LIBS"
  25193. else
  25194. SDL_LIBS="-lcygwin $SDL_LIBS"
  25195. fi
  25196. ;;
  25197. *-*-beos*)
  25198. as_fn_error $? "
  25199. *** BeOS support has been removed as of SDL 2.0.2.
  25200. " "$LINENO" 5
  25201. ;;
  25202. *-*-haiku*)
  25203. ARCH=haiku
  25204. ac_default_prefix=/boot/system
  25205. CheckDummyVideo
  25206. CheckOffscreenVideo
  25207. CheckDiskAudio
  25208. CheckDummyAudio
  25209. CheckDLOPEN
  25210. CheckO_CLOEXEC
  25211. CheckHaikuVideo
  25212. CheckHaikuGL
  25213. CheckPTHREAD
  25214. # Set up files for the audio library
  25215. if test x$enable_audio = xyes; then
  25216. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25217. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25218. SUMMARY_audio="${SUMMARY_audio} haiku"
  25219. have_audio=yes
  25220. fi
  25221. # Set up files for the joystick library
  25222. if test x$enable_joystick = xyes; then
  25223. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25224. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25225. have_joystick=yes
  25226. fi
  25227. # Set up files for the timer library
  25228. if test x$enable_timers = xyes; then
  25229. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25230. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25231. have_timers=yes
  25232. fi
  25233. # Set up files for the system power library
  25234. if test x$enable_power = xyes; then
  25235. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25236. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25237. have_power=yes
  25238. fi
  25239. # Set up files for the system filesystem library
  25240. if test x$enable_filesystem = xyes; then
  25241. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25242. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25243. have_filesystem=yes
  25244. fi
  25245. # Set up files for the misc library
  25246. if test x$enable_misc = xyes; then
  25247. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25248. have_misc=yes
  25249. fi
  25250. # Set up files for the locale library
  25251. if test x$enable_locale = xyes; then
  25252. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25253. have_locale=yes
  25254. fi
  25255. # The Haiku platform requires special setup.
  25256. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25257. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25258. ;;
  25259. *-ios-*)
  25260. ARCH=ios
  25261. CheckVisibilityHidden
  25262. CheckWerror
  25263. CheckNoErrorDeprecatedDeclarationsWerror
  25264. CheckDeclarationAfterStatement
  25265. CheckDummyVideo
  25266. CheckOffscreenVideo
  25267. CheckDiskAudio
  25268. CheckDummyAudio
  25269. CheckDLOPEN
  25270. CheckO_CLOEXEC
  25271. CheckMETAL
  25272. CheckVulkan
  25273. CheckPTHREAD
  25274. # Set up files for the misc library
  25275. if test x$enable_misc = xyes; then
  25276. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25277. have_misc=yes
  25278. fi
  25279. # Set up files for the locale library
  25280. if test x$enable_locale = xyes; then
  25281. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25282. have_locale=yes
  25283. fi
  25284. # Set up files for the audio library
  25285. if test x$enable_audio = xyes; then
  25286. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25287. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25288. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25289. have_audio=yes
  25290. fi
  25291. # Set up files for the joystick library
  25292. if test x$enable_joystick = xyes; then
  25293. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25294. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25295. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25296. have_joystick=yes
  25297. else
  25298. # Need this code for accelerometer as joystick support
  25299. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25300. fi
  25301. # Set up files for the haptic library
  25302. #if test x$enable_haptic = xyes; then
  25303. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25304. # have_haptic=yes
  25305. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25306. #fi
  25307. # Set up files for the sensor library
  25308. if test x$enable_sensor = xyes; then
  25309. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25310. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25311. have_sensor=yes
  25312. fi
  25313. # Set up files for the power library
  25314. if test x$enable_power = xyes; then
  25315. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25316. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25317. have_power=yes
  25318. fi
  25319. # Set up files for the filesystem library
  25320. if test x$enable_filesystem = xyes; then
  25321. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25322. have_filesystem=yes
  25323. fi
  25324. # Set up additional files for the file library
  25325. if test x$enable_file = xyes; then
  25326. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25327. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25328. fi
  25329. # Set up files for the timer library
  25330. if test x$enable_timers = xyes; then
  25331. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25332. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25333. have_timers=yes
  25334. fi
  25335. # Set up other core UNIX files
  25336. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25337. # The iOS platform requires special setup.
  25338. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25339. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25340. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25341. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25342. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25343. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25344. SUMMARY_video="${SUMMARY_video} uikit"
  25345. have_video=yes
  25346. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25347. if test x$enable_system_iconv = xyes; then
  25348. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25349. fi
  25350. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25351. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25352. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25353. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25355. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25356. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25357. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25358. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25360. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25361. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25362. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25363. fi
  25364. ;;
  25365. *-*-darwin* )
  25366. # This could be either full "Mac OS X", or plain "Darwin" which is
  25367. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25368. # Next line is broken, and a few files below require Mac OS X (full)
  25369. ARCH=macosx
  25370. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25371. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25372. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25373. CheckObjectiveCARC
  25374. CheckVisibilityHidden
  25375. CheckWerror
  25376. CheckNoErrorDeprecatedDeclarationsWerror
  25377. CheckDeclarationAfterStatement
  25378. CheckDummyVideo
  25379. CheckOffscreenVideo
  25380. CheckDiskAudio
  25381. CheckDummyAudio
  25382. CheckDLOPEN
  25383. CheckO_CLOEXEC
  25384. CheckCOCOA
  25385. CheckMETAL
  25386. CheckX11
  25387. CheckMacGL
  25388. CheckMacGLES
  25389. CheckGLX
  25390. CheckOpenGL
  25391. CheckVulkan
  25392. CheckPTHREAD
  25393. CheckHIDAPI
  25394. # Set up files for the misc library
  25395. if test x$enable_misc = xyes; then
  25396. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25397. have_misc=yes
  25398. fi
  25399. # Set up files for the locale library
  25400. if test x$enable_locale = xyes; then
  25401. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25402. have_locale=yes
  25403. fi
  25404. # Set up files for the audio library
  25405. if test x$enable_audio = xyes; then
  25406. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25407. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25408. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25409. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25410. have_audio=yes
  25411. fi
  25412. # Set up files for the joystick library
  25413. if test x$enable_joystick = xyes; then
  25414. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25415. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25416. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25417. CheckJoystickMFI
  25418. have_joystick=yes
  25419. fi
  25420. # Set up files for the haptic library
  25421. if test x$enable_haptic = xyes; then
  25422. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25423. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25424. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25425. have_haptic=yes
  25426. fi
  25427. # Set up files for the power library
  25428. if test x$enable_power = xyes; then
  25429. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25430. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25431. have_power=yes
  25432. fi
  25433. # Set up files for the filesystem library
  25434. if test x$enable_filesystem = xyes; then
  25435. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25436. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25437. have_filesystem=yes
  25438. fi
  25439. # Set up files for the timer library
  25440. if test x$enable_timers = xyes; then
  25441. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25442. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25443. have_timers=yes
  25444. fi
  25445. # Set up additional files for the file library
  25446. if test x$enable_file = xyes; then
  25447. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25448. fi
  25449. # Set up other core UNIX files
  25450. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25451. # The Mac OS X platform requires special setup.
  25452. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25453. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25454. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25455. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25456. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25457. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25458. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25459. fi
  25460. ;;
  25461. *-nacl|*-pnacl)
  25462. ARCH=nacl
  25463. CheckNativeClient
  25464. CheckDummyAudio
  25465. CheckDummyVideo
  25466. CheckOffscreenVideo
  25467. CheckInputEvents
  25468. CheckPTHREAD
  25469. CheckO_CLOEXEC
  25470. # Set up files for the timer library
  25471. if test x$enable_timers = xyes; then
  25472. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25473. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25474. have_timers=yes
  25475. fi
  25476. if test x$enable_filesystem = xyes; then
  25477. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25478. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25479. have_filesystem=yes
  25480. fi
  25481. ;;
  25482. *-*-emscripten* )
  25483. if test x$enable_video = xyes; then
  25484. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25485. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25486. have_video=yes
  25487. SUMMARY_video="${SUMMARY_video} emscripten"
  25488. fi
  25489. if test x$enable_audio = xyes; then
  25490. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25491. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25492. have_audio=yes
  25493. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25494. fi
  25495. CheckVisibilityHidden
  25496. CheckWerror
  25497. CheckDeclarationAfterStatement
  25498. CheckDummyVideo
  25499. CheckOffscreenVideo
  25500. CheckDiskAudio
  25501. CheckDummyAudio
  25502. CheckPTHREAD
  25503. CheckDLOPEN
  25504. CheckClockGettime
  25505. CheckEmscriptenGLES
  25506. # Set up files for the misc library
  25507. if test x$enable_misc = xyes; then
  25508. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25509. have_misc=yes
  25510. fi
  25511. # Set up files for the power library
  25512. if test x$enable_power = xyes; then
  25513. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25514. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25515. have_power=yes
  25516. fi
  25517. # Set up files for the joystick library
  25518. if test x$enable_joystick = xyes; then
  25519. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25520. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25521. have_joystick=yes
  25522. fi
  25523. # Set up files for the filesystem library
  25524. if test x$enable_filesystem = xyes; then
  25525. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25526. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25527. have_filesystem=yes
  25528. fi
  25529. # Set up files for the timer library
  25530. if test x$enable_timers = xyes; then
  25531. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25532. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25533. have_timers=yes
  25534. fi
  25535. # Set up files for the locale library
  25536. if test x$enable_locale = xyes; then
  25537. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25538. have_locale=yes
  25539. fi
  25540. ;;
  25541. *-*-riscos*)
  25542. ARCH=riscos
  25543. CheckVisibilityHidden
  25544. CheckWerror
  25545. CheckDeclarationAfterStatement
  25546. CheckDummyVideo
  25547. CheckOffscreenVideo
  25548. CheckDiskAudio
  25549. CheckDummyAudio
  25550. CheckDLOPEN
  25551. CheckO_CLOEXEC
  25552. CheckOSS
  25553. CheckPTHREAD
  25554. CheckClockGettime
  25555. # Set up files for the misc library
  25556. if test x$enable_misc = xyes; then
  25557. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25558. have_misc=yes
  25559. fi
  25560. # Set up files for the video library
  25561. if test x$enable_video = xyes; then
  25562. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25563. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25564. have_video=yes
  25565. SUMMARY_video="${SUMMARY_video} riscos"
  25566. fi
  25567. # Set up files for the filesystem library
  25568. if test x$enable_filesystem = xyes; then
  25569. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25570. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25571. have_filesystem=yes
  25572. fi
  25573. # Set up files for the timer library
  25574. if test x$enable_timers = xyes; then
  25575. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25576. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25577. have_timers=yes
  25578. fi
  25579. ;;
  25580. *-*-os2*)
  25581. ARCH=os2
  25582. if test "$build" != "$host"; then # cross-compiling
  25583. # Default cross-compile location
  25584. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25585. else
  25586. # Look for the location of the tools and install there
  25587. if test "$BUILD_PREFIX" != ""; then
  25588. ac_default_prefix=$BUILD_PREFIX
  25589. fi
  25590. fi
  25591. enable_static=no # disable static builds
  25592. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25593. CheckOS2
  25594. CheckWerror
  25595. CheckDeclarationAfterStatement
  25596. CheckDummyVideo
  25597. CheckDiskAudio
  25598. CheckDummyAudio
  25599. CheckHIDAPI
  25600. # Set up the core platform files
  25601. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25602. if test x$enable_system_iconv = xyes; then
  25603. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25604. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25605. fi
  25606. fi
  25607. # Use the Unix locale APIs.
  25608. if test x$enable_locale = xyes; then
  25609. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25610. have_locale=yes
  25611. fi
  25612. # Set up files for the video library
  25613. if test x$enable_video = xyes; then
  25614. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25615. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25616. have_video=yes
  25617. SUMMARY_video="${SUMMARY_video} OS/2"
  25618. fi
  25619. # Set up files for the audio library
  25620. if test x$enable_audio = xyes; then
  25621. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25622. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25623. have_audio=yes
  25624. SUMMARY_audio="${SUMMARY_audio} OS/2"
  25625. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25626. fi
  25627. # Set up files for the thread library
  25628. if test x$enable_threads = xyes; then
  25629. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25630. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25631. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25632. have_threads=yes
  25633. fi
  25634. # Set up files for the timer library
  25635. if test x$enable_timers = xyes; then
  25636. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25637. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25638. have_timers=yes
  25639. fi
  25640. # Set up files for the shared object loading library
  25641. if test x$enable_loadso = xyes; then
  25642. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25643. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25644. have_loadso=yes
  25645. fi
  25646. # Set up files for the filesystem library
  25647. if test x$enable_filesystem = xyes; then
  25648. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25649. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25650. have_filesystem=yes
  25651. fi
  25652. # Set up files for the joystick library
  25653. if test x$enable_joystick = xyes; then
  25654. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25655. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25656. have_joystick=yes
  25657. fi
  25658. ;;
  25659. *)
  25660. as_fn_error $? "
  25661. *** Unsupported host: Please add to configure.ac
  25662. " "$LINENO" 5
  25663. ;;
  25664. esac
  25665. CheckVirtualJoystick
  25666. # Check whether to install sdl2-config
  25667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25668. printf %s "checking whether to install sdl2-config... " >&6; }
  25669. # Check whether --enable-sdl2-config was given.
  25670. if test ${enable_sdl2_config+y}
  25671. then :
  25672. enableval=$enable_sdl2_config; case "${enableval}" in
  25673. yes) enable_sdl2_config="TRUE" ;;
  25674. no) enable_sdl2_config="FALSE" ;;
  25675. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25676. esac
  25677. else $as_nop
  25678. enable_sdl2_config="TRUE"
  25679. fi
  25680. if test "$enable_sdl2_config" = "TRUE"; then
  25681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25682. printf "%s\n" "yes" >&6; }
  25683. else
  25684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25685. printf "%s\n" "no" >&6; }
  25686. fi
  25687. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25688. # Check whether --enable-vendor-info was given.
  25689. if test ${enable_vendor_info+y}
  25690. then :
  25691. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25692. else $as_nop
  25693. enable_vendor_info=
  25694. fi
  25695. if test "$enable_vendor_info" = no
  25696. then :
  25697. enable_vendor_info=
  25698. fi
  25699. SDL_VENDOR_INFO=$enable_vendor_info
  25700. # Verify that we have all the platform specific files we need
  25701. if test x$have_audio != xyes; then
  25702. if test x$enable_audio = xyes; then
  25703. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25704. fi
  25705. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25706. fi
  25707. if test x$have_video != xyes; then
  25708. if test x$enable_video = xyes; then
  25709. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25710. fi
  25711. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25712. fi
  25713. if test x$have_misc != xyes; then
  25714. if test x$enable_misc = xyes; then
  25715. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25716. fi
  25717. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25718. fi
  25719. if test x$have_locale != xyes; then
  25720. if test x$enable_locale = xyes; then
  25721. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25722. fi
  25723. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25724. fi
  25725. if test x$have_joystick != xyes; then
  25726. if test x$enable_joystick = xyes; then
  25727. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25728. fi
  25729. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25730. fi
  25731. if test x$have_haptic != xyes; then
  25732. if test x$enable_haptic = xyes; then
  25733. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25734. fi
  25735. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25736. fi
  25737. if test x$have_sensor != xyes; then
  25738. if test x$enable_sensor = xyes; then
  25739. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25740. fi
  25741. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25742. fi
  25743. if test x$have_threads != xyes; then
  25744. if test x$enable_threads = xyes; then
  25745. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25746. fi
  25747. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25748. fi
  25749. if test x$have_timers != xyes; then
  25750. if test x$enable_timers = xyes; then
  25751. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25752. fi
  25753. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25754. fi
  25755. if test x$have_filesystem != xyes; then
  25756. if test x$enable_filesystem = xyes; then
  25757. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25758. fi
  25759. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25760. fi
  25761. if test x$have_loadso != xyes; then
  25762. if test x$enable_loadso = xyes; then
  25763. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25764. fi
  25765. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25766. fi
  25767. if test x$SDLMAIN_SOURCES = x; then
  25768. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25769. fi
  25770. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25771. if test x$video_wayland = xyes; then
  25772. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25773. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25774. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25775. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25776. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25777. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25778. echo ;\
  25779. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25780. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25781. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25782. echo ;\
  25783. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25784. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25785. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25786. echo ;\
  25787. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25788. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25789. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25790. done ;\
  25791. echo ;\
  25792. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25793. fi
  25794. OBJECTS=`echo $SOURCES`
  25795. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25796. for EXT in asm cc m c S; do
  25797. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25798. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25799. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25800. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25801. done
  25802. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25803. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25804. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25805. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25806. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25807. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25808. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25809. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25810. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25811. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25812. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25813. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25814. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25815. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25816. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25817. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25818. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25819. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25820. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25821. # Set runtime shared library paths as needed
  25822. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25823. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25824. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25826. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25827. have_enable_new_dtags=no
  25828. save_LDFLAGS="$LDFLAGS"
  25829. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25831. /* end confdefs.h. */
  25832. int
  25833. main (void)
  25834. {
  25835. ;
  25836. return 0;
  25837. }
  25838. _ACEOF
  25839. if ac_fn_c_try_link "$LINENO"
  25840. then :
  25841. have_enable_new_dtags=yes
  25842. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25843. fi
  25844. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25845. conftest$ac_exeext conftest.$ac_ext
  25846. LDFLAGS="$save_LDFLAGS"
  25847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25848. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25849. fi
  25850. if test $ARCH = solaris; then
  25851. SDL_RLD_FLAGS="-R\${libdir}"
  25852. fi
  25853. else
  25854. SDL_RLD_FLAGS=""
  25855. fi
  25856. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25857. pkg_cmakedir='$libdir/cmake/SDL2'
  25858. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25859. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25860. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25861. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25862. _lcl_receval="$_lcl_from"
  25863. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25864. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25865. _lcl_receval_old=''
  25866. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25867. _lcl_receval_old="$_lcl_receval"
  25868. eval _lcl_receval="\"$_lcl_receval\""
  25869. done
  25870. echo "$_lcl_receval")`
  25871. _lcl_receval="$_lcl_to"
  25872. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25873. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25874. _lcl_receval_old=''
  25875. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25876. _lcl_receval_old="$_lcl_receval"
  25877. eval _lcl_receval="\"$_lcl_receval\""
  25878. done
  25879. echo "$_lcl_receval")`
  25880. _lcl_notation="$_lcl_from$_lcl_to"
  25881. case ":$_lcl_from:" in
  25882. # change empty paths to '.'
  25883. ::) _lcl_from='.' ;;
  25884. # strip trailing slashes
  25885. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25886. :*:) ;;
  25887. esac
  25888. # squeeze repeated slashes
  25889. case '/' in
  25890. # if the path contains any backslashes, turn slashes into backslashes
  25891. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25892. # if the path contains slashes, also turn backslashes into slashes
  25893. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25894. esac
  25895. case ":$_lcl_to:" in
  25896. # change empty paths to '.'
  25897. ::) _lcl_to='.' ;;
  25898. # strip trailing slashes
  25899. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25900. :*:) ;;
  25901. esac
  25902. # squeeze repeated slashes
  25903. case '/' in
  25904. # if the path contains any backslashes, turn slashes into backslashes
  25905. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25906. # if the path contains slashes, also turn backslashes into slashes
  25907. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25908. esac
  25909. _lcl_common_prefix=''
  25910. _lcl_second_prefix_match=''
  25911. while test "$_lcl_second_prefix_match" != 0; do
  25912. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25913. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25914. if test "$_lcl_second_prefix_match" != 0; then
  25915. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25916. _lcl_common_prefix="$_lcl_first_prefix"
  25917. else
  25918. _lcl_second_prefix_match=0
  25919. fi
  25920. fi
  25921. done
  25922. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25923. _lcl_first_rel=''
  25924. _lcl_tmp='xxx'
  25925. while test "$_lcl_tmp" != ''; do
  25926. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25927. if test "$_lcl_first_suffix" != ''; then
  25928. _lcl_first_suffix="$_lcl_tmp"
  25929. _lcl_first_rel="../$_lcl_first_rel"
  25930. fi
  25931. done
  25932. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25933. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25934. case ":$_lcl_result_tmp:" in
  25935. # change empty paths to '.'
  25936. ::) _lcl_result_tmp='.' ;;
  25937. # strip trailing slashes
  25938. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25939. :*:) ;;
  25940. esac
  25941. # squeeze repeated slashes
  25942. case "$_lcl_notation" in
  25943. # if the path contains any backslashes, turn slashes into backslashes
  25944. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25945. # if the path contains slashes, also turn backslashes into slashes
  25946. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25947. esac
  25948. eval $_lcl_result_var='$_lcl_result_tmp'
  25949. done
  25950. PKGCONFIG_DEPENDS=""
  25951. if test x$enable_shared = xyes; then
  25952. PKGCONFIG_LIBS_PRIV="
  25953. Libs.private:"
  25954. ENABLE_SHARED_TRUE=
  25955. ENABLE_SHARED_FALSE="#"
  25956. else
  25957. PKGCONFIG_LIBS_PRIV=
  25958. ENABLE_SHARED_TRUE="#"
  25959. ENABLE_SHARED_FALSE=
  25960. fi
  25961. if test x$enable_static = xyes; then
  25962. ENABLE_STATIC_TRUE=
  25963. ENABLE_STATIC_FALSE="#"
  25964. else
  25965. ENABLE_STATIC_TRUE="#"
  25966. ENABLE_STATIC_FALSE=
  25967. fi
  25968. cat >Makefile.rules <<__EOF__
  25969. # Build rules for objects
  25970. -include \$(OBJECTS:.lo=.d)
  25971. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25972. $srcdir/src/SDL.c: update-revision
  25973. $DEPENDS
  25974. $VERSION_DEPENDS
  25975. $SDLMAIN_DEPENDS
  25976. $SDLTEST_DEPENDS
  25977. $WAYLAND_PROTOCOLS_DEPENDS
  25978. __EOF__
  25979. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25980. ac_config_commands="$ac_config_commands sdl2_config"
  25981. SUMMARY="SDL2 Configure Summary:\n"
  25982. if test x$enable_shared = xyes; then
  25983. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25984. fi
  25985. if test x$enable_static = xyes; then
  25986. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25987. fi
  25988. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25989. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25990. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25991. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25992. if test x$have_x = xyes; then
  25993. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25994. fi
  25995. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25996. if test x$have_joystick_virtual = xyes; then
  25997. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25998. else
  25999. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  26000. fi
  26001. if test x$have_samplerate_h_hdr = xyes; then
  26002. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  26003. else
  26004. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  26005. fi
  26006. if test x$have_libudev_h_hdr = xyes; then
  26007. SUMMARY="${SUMMARY}Using libudev : YES\n"
  26008. else
  26009. SUMMARY="${SUMMARY}Using libudev : NO\n"
  26010. fi
  26011. if test x$have_dbus_dbus_h_hdr = xyes; then
  26012. SUMMARY="${SUMMARY}Using dbus : YES\n"
  26013. else
  26014. SUMMARY="${SUMMARY}Using dbus : NO\n"
  26015. fi
  26016. if test x$enable_ime = xyes; then
  26017. SUMMARY="${SUMMARY}Using ime : YES\n"
  26018. else
  26019. SUMMARY="${SUMMARY}Using ime : NO\n"
  26020. fi
  26021. if test x$have_ibus_ibus_h_hdr = xyes; then
  26022. SUMMARY="${SUMMARY}Using ibus : YES\n"
  26023. else
  26024. SUMMARY="${SUMMARY}Using ibus : NO\n"
  26025. fi
  26026. if test x$have_fcitx = xyes; then
  26027. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  26028. else
  26029. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  26030. fi
  26031. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  26032. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  26033. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  26034. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26035. SUMMARY="${SUMMARY}configure script with:\n"
  26036. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  26037. fi
  26038. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  26039. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  26040. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  26041. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26042. SUMMARY="${SUMMARY}configure script with:\n"
  26043. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  26044. fi
  26045. ac_config_commands="$ac_config_commands summary"
  26046. cat >confcache <<\_ACEOF
  26047. # This file is a shell script that caches the results of configure
  26048. # tests run on this system so they can be shared between configure
  26049. # scripts and configure runs, see configure's option --config-cache.
  26050. # It is not useful on other systems. If it contains results you don't
  26051. # want to keep, you may remove or edit it.
  26052. #
  26053. # config.status only pays attention to the cache file if you give it
  26054. # the --recheck option to rerun configure.
  26055. #
  26056. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26057. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26058. # following values.
  26059. _ACEOF
  26060. # The following way of writing the cache mishandles newlines in values,
  26061. # but we know of no workaround that is simple, portable, and efficient.
  26062. # So, we kill variables containing newlines.
  26063. # Ultrix sh set writes to stderr and can't be redirected directly,
  26064. # and sets the high bit in the cache file unless we assign to the vars.
  26065. (
  26066. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26067. eval ac_val=\$$ac_var
  26068. case $ac_val in #(
  26069. *${as_nl}*)
  26070. case $ac_var in #(
  26071. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26072. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26073. esac
  26074. case $ac_var in #(
  26075. _ | IFS | as_nl) ;; #(
  26076. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26077. *) { eval $ac_var=; unset $ac_var;} ;;
  26078. esac ;;
  26079. esac
  26080. done
  26081. (set) 2>&1 |
  26082. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26083. *${as_nl}ac_space=\ *)
  26084. # `set' does not quote correctly, so add quotes: double-quote
  26085. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26086. sed -n \
  26087. "s/'/'\\\\''/g;
  26088. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26089. ;; #(
  26090. *)
  26091. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26092. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26093. ;;
  26094. esac |
  26095. sort
  26096. ) |
  26097. sed '
  26098. /^ac_cv_env_/b end
  26099. t clear
  26100. :clear
  26101. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  26102. t end
  26103. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26104. :end' >>confcache
  26105. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26106. if test -w "$cache_file"; then
  26107. if test "x$cache_file" != "x/dev/null"; then
  26108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26109. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  26110. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26111. cat confcache >"$cache_file"
  26112. else
  26113. case $cache_file in #(
  26114. */* | ?:*)
  26115. mv -f confcache "$cache_file"$$ &&
  26116. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26117. *)
  26118. mv -f confcache "$cache_file" ;;
  26119. esac
  26120. fi
  26121. fi
  26122. else
  26123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26124. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  26125. fi
  26126. fi
  26127. rm -f confcache
  26128. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26129. # Let make expand exec_prefix.
  26130. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26131. DEFS=-DHAVE_CONFIG_H
  26132. ac_libobjs=
  26133. ac_ltlibobjs=
  26134. U=
  26135. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26136. # 1. Remove the extension, and $U if already installed.
  26137. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26138. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  26139. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26140. # will be set to the directory where LIBOBJS objects are built.
  26141. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26142. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26143. done
  26144. LIBOBJS=$ac_libobjs
  26145. LTLIBOBJS=$ac_ltlibobjs
  26146. : "${CONFIG_STATUS=./config.status}"
  26147. ac_write_fail=0
  26148. ac_clean_files_save=$ac_clean_files
  26149. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26151. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  26152. as_write_fail=0
  26153. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26154. #! $SHELL
  26155. # Generated by $as_me.
  26156. # Run this file to recreate the current configuration.
  26157. # Compiler output produced by configure, useful for debugging
  26158. # configure, is in config.log if it exists.
  26159. debug=false
  26160. ac_cs_recheck=false
  26161. ac_cs_silent=false
  26162. SHELL=\${CONFIG_SHELL-$SHELL}
  26163. export SHELL
  26164. _ASEOF
  26165. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26166. ## -------------------- ##
  26167. ## M4sh Initialization. ##
  26168. ## -------------------- ##
  26169. # Be more Bourne compatible
  26170. DUALCASE=1; export DUALCASE # for MKS sh
  26171. as_nop=:
  26172. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  26173. then :
  26174. emulate sh
  26175. NULLCMD=:
  26176. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26177. # is contrary to our usage. Disable this feature.
  26178. alias -g '${1+"$@"}'='"$@"'
  26179. setopt NO_GLOB_SUBST
  26180. else $as_nop
  26181. case `(set -o) 2>/dev/null` in #(
  26182. *posix*) :
  26183. set -o posix ;; #(
  26184. *) :
  26185. ;;
  26186. esac
  26187. fi
  26188. # Reset variables that may have inherited troublesome values from
  26189. # the environment.
  26190. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  26191. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  26192. # side effect of setting IFS to empty, thus disabling word splitting.)
  26193. # Quoting is to prevent editors from complaining about space-tab.
  26194. as_nl='
  26195. '
  26196. export as_nl
  26197. IFS=" "" $as_nl"
  26198. PS1='$ '
  26199. PS2='> '
  26200. PS4='+ '
  26201. # Ensure predictable behavior from utilities with locale-dependent output.
  26202. LC_ALL=C
  26203. export LC_ALL
  26204. LANGUAGE=C
  26205. export LANGUAGE
  26206. # We cannot yet rely on "unset" to work, but we need these variables
  26207. # to be unset--not just set to an empty or harmless value--now, to
  26208. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26209. # also avoids known problems related to "unset" and subshell syntax
  26210. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26211. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26212. do eval test \${$as_var+y} \
  26213. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26214. done
  26215. # Ensure that fds 0, 1, and 2 are open.
  26216. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26217. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26218. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26219. # The user is always right.
  26220. if ${PATH_SEPARATOR+false} :; then
  26221. PATH_SEPARATOR=:
  26222. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26223. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26224. PATH_SEPARATOR=';'
  26225. }
  26226. fi
  26227. # Find who we are. Look in the path if we contain no directory separator.
  26228. as_myself=
  26229. case $0 in #((
  26230. *[\\/]* ) as_myself=$0 ;;
  26231. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26232. for as_dir in $PATH
  26233. do
  26234. IFS=$as_save_IFS
  26235. case $as_dir in #(((
  26236. '') as_dir=./ ;;
  26237. */) ;;
  26238. *) as_dir=$as_dir/ ;;
  26239. esac
  26240. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26241. done
  26242. IFS=$as_save_IFS
  26243. ;;
  26244. esac
  26245. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26246. # in which case we are not to be found in the path.
  26247. if test "x$as_myself" = x; then
  26248. as_myself=$0
  26249. fi
  26250. if test ! -f "$as_myself"; then
  26251. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26252. exit 1
  26253. fi
  26254. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26255. # ----------------------------------------
  26256. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26257. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26258. # script with STATUS, using 1 if that was 0.
  26259. as_fn_error ()
  26260. {
  26261. as_status=$1; test $as_status -eq 0 && as_status=1
  26262. if test "$4"; then
  26263. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26264. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26265. fi
  26266. printf "%s\n" "$as_me: error: $2" >&2
  26267. as_fn_exit $as_status
  26268. } # as_fn_error
  26269. # as_fn_set_status STATUS
  26270. # -----------------------
  26271. # Set $? to STATUS, without forking.
  26272. as_fn_set_status ()
  26273. {
  26274. return $1
  26275. } # as_fn_set_status
  26276. # as_fn_exit STATUS
  26277. # -----------------
  26278. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26279. as_fn_exit ()
  26280. {
  26281. set +e
  26282. as_fn_set_status $1
  26283. exit $1
  26284. } # as_fn_exit
  26285. # as_fn_unset VAR
  26286. # ---------------
  26287. # Portably unset VAR.
  26288. as_fn_unset ()
  26289. {
  26290. { eval $1=; unset $1;}
  26291. }
  26292. as_unset=as_fn_unset
  26293. # as_fn_append VAR VALUE
  26294. # ----------------------
  26295. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26296. # advantage of any shell optimizations that allow amortized linear growth over
  26297. # repeated appends, instead of the typical quadratic growth present in naive
  26298. # implementations.
  26299. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26300. then :
  26301. eval 'as_fn_append ()
  26302. {
  26303. eval $1+=\$2
  26304. }'
  26305. else $as_nop
  26306. as_fn_append ()
  26307. {
  26308. eval $1=\$$1\$2
  26309. }
  26310. fi # as_fn_append
  26311. # as_fn_arith ARG...
  26312. # ------------------
  26313. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26314. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26315. # must be portable across $(()) and expr.
  26316. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26317. then :
  26318. eval 'as_fn_arith ()
  26319. {
  26320. as_val=$(( $* ))
  26321. }'
  26322. else $as_nop
  26323. as_fn_arith ()
  26324. {
  26325. as_val=`expr "$@" || test $? -eq 1`
  26326. }
  26327. fi # as_fn_arith
  26328. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26329. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26330. as_expr=expr
  26331. else
  26332. as_expr=false
  26333. fi
  26334. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26335. as_basename=basename
  26336. else
  26337. as_basename=false
  26338. fi
  26339. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26340. as_dirname=dirname
  26341. else
  26342. as_dirname=false
  26343. fi
  26344. as_me=`$as_basename -- "$0" ||
  26345. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26346. X"$0" : 'X\(//\)$' \| \
  26347. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26348. printf "%s\n" X/"$0" |
  26349. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26350. s//\1/
  26351. q
  26352. }
  26353. /^X\/\(\/\/\)$/{
  26354. s//\1/
  26355. q
  26356. }
  26357. /^X\/\(\/\).*/{
  26358. s//\1/
  26359. q
  26360. }
  26361. s/.*/./; q'`
  26362. # Avoid depending upon Character Ranges.
  26363. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26364. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26365. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26366. as_cr_digits='0123456789'
  26367. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26368. # Determine whether it's possible to make 'echo' print without a newline.
  26369. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26370. # for compatibility with existing Makefiles.
  26371. ECHO_C= ECHO_N= ECHO_T=
  26372. case `echo -n x` in #(((((
  26373. -n*)
  26374. case `echo 'xy\c'` in
  26375. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26376. xy) ECHO_C='\c';;
  26377. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26378. ECHO_T=' ';;
  26379. esac;;
  26380. *)
  26381. ECHO_N='-n';;
  26382. esac
  26383. # For backward compatibility with old third-party macros, we provide
  26384. # the shell variables $as_echo and $as_echo_n. New code should use
  26385. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26386. as_echo='printf %s\n'
  26387. as_echo_n='printf %s'
  26388. rm -f conf$$ conf$$.exe conf$$.file
  26389. if test -d conf$$.dir; then
  26390. rm -f conf$$.dir/conf$$.file
  26391. else
  26392. rm -f conf$$.dir
  26393. mkdir conf$$.dir 2>/dev/null
  26394. fi
  26395. if (echo >conf$$.file) 2>/dev/null; then
  26396. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26397. as_ln_s='ln -s'
  26398. # ... but there are two gotchas:
  26399. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26400. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26401. # In both cases, we have to default to `cp -pR'.
  26402. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26403. as_ln_s='cp -pR'
  26404. elif ln conf$$.file conf$$ 2>/dev/null; then
  26405. as_ln_s=ln
  26406. else
  26407. as_ln_s='cp -pR'
  26408. fi
  26409. else
  26410. as_ln_s='cp -pR'
  26411. fi
  26412. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26413. rmdir conf$$.dir 2>/dev/null
  26414. # as_fn_mkdir_p
  26415. # -------------
  26416. # Create "$as_dir" as a directory, including parents if necessary.
  26417. as_fn_mkdir_p ()
  26418. {
  26419. case $as_dir in #(
  26420. -*) as_dir=./$as_dir;;
  26421. esac
  26422. test -d "$as_dir" || eval $as_mkdir_p || {
  26423. as_dirs=
  26424. while :; do
  26425. case $as_dir in #(
  26426. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26427. *) as_qdir=$as_dir;;
  26428. esac
  26429. as_dirs="'$as_qdir' $as_dirs"
  26430. as_dir=`$as_dirname -- "$as_dir" ||
  26431. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26432. X"$as_dir" : 'X\(//\)[^/]' \| \
  26433. X"$as_dir" : 'X\(//\)$' \| \
  26434. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26435. printf "%s\n" X"$as_dir" |
  26436. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26437. s//\1/
  26438. q
  26439. }
  26440. /^X\(\/\/\)[^/].*/{
  26441. s//\1/
  26442. q
  26443. }
  26444. /^X\(\/\/\)$/{
  26445. s//\1/
  26446. q
  26447. }
  26448. /^X\(\/\).*/{
  26449. s//\1/
  26450. q
  26451. }
  26452. s/.*/./; q'`
  26453. test -d "$as_dir" && break
  26454. done
  26455. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26456. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26457. } # as_fn_mkdir_p
  26458. if mkdir -p . 2>/dev/null; then
  26459. as_mkdir_p='mkdir -p "$as_dir"'
  26460. else
  26461. test -d ./-p && rmdir ./-p
  26462. as_mkdir_p=false
  26463. fi
  26464. # as_fn_executable_p FILE
  26465. # -----------------------
  26466. # Test if FILE is an executable regular file.
  26467. as_fn_executable_p ()
  26468. {
  26469. test -f "$1" && test -x "$1"
  26470. } # as_fn_executable_p
  26471. as_test_x='test -x'
  26472. as_executable_p=as_fn_executable_p
  26473. # Sed expression to map a string onto a valid CPP name.
  26474. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26475. # Sed expression to map a string onto a valid variable name.
  26476. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26477. exec 6>&1
  26478. ## ----------------------------------- ##
  26479. ## Main body of $CONFIG_STATUS script. ##
  26480. ## ----------------------------------- ##
  26481. _ASEOF
  26482. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26483. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26484. # Save the log message, to keep $0 and so on meaningful, and to
  26485. # report actual input values of CONFIG_FILES etc. instead of their
  26486. # values after options handling.
  26487. ac_log="
  26488. This file was extended by $as_me, which was
  26489. generated by GNU Autoconf 2.71. Invocation command line was
  26490. CONFIG_FILES = $CONFIG_FILES
  26491. CONFIG_HEADERS = $CONFIG_HEADERS
  26492. CONFIG_LINKS = $CONFIG_LINKS
  26493. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26494. $ $0 $@
  26495. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26496. "
  26497. _ACEOF
  26498. case $ac_config_files in *"
  26499. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26500. esac
  26501. case $ac_config_headers in *"
  26502. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26503. esac
  26504. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26505. # Files that config.status was made for.
  26506. config_files="$ac_config_files"
  26507. config_headers="$ac_config_headers"
  26508. config_commands="$ac_config_commands"
  26509. _ACEOF
  26510. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26511. ac_cs_usage="\
  26512. \`$as_me' instantiates files and other configuration actions
  26513. from templates according to the current configuration. Unless the files
  26514. and actions are specified as TAGs, all are instantiated by default.
  26515. Usage: $0 [OPTION]... [TAG]...
  26516. -h, --help print this help, then exit
  26517. -V, --version print version number and configuration settings, then exit
  26518. --config print configuration, then exit
  26519. -q, --quiet, --silent
  26520. do not print progress messages
  26521. -d, --debug don't remove temporary files
  26522. --recheck update $as_me by reconfiguring in the same conditions
  26523. --file=FILE[:TEMPLATE]
  26524. instantiate the configuration file FILE
  26525. --header=FILE[:TEMPLATE]
  26526. instantiate the configuration header FILE
  26527. Configuration files:
  26528. $config_files
  26529. Configuration headers:
  26530. $config_headers
  26531. Configuration commands:
  26532. $config_commands
  26533. Report bugs to the package provider."
  26534. _ACEOF
  26535. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26536. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26537. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26538. ac_cs_config='$ac_cs_config_escaped'
  26539. ac_cs_version="\\
  26540. config.status
  26541. configured by $0, generated by GNU Autoconf 2.71,
  26542. with options \\"\$ac_cs_config\\"
  26543. Copyright (C) 2021 Free Software Foundation, Inc.
  26544. This config.status script is free software; the Free Software Foundation
  26545. gives unlimited permission to copy, distribute and modify it."
  26546. ac_pwd='$ac_pwd'
  26547. srcdir='$srcdir'
  26548. INSTALL='$INSTALL'
  26549. AWK='$AWK'
  26550. test -n "\$AWK" || AWK=awk
  26551. _ACEOF
  26552. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26553. # The default lists apply if the user does not specify any file.
  26554. ac_need_defaults=:
  26555. while test $# != 0
  26556. do
  26557. case $1 in
  26558. --*=?*)
  26559. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26560. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26561. ac_shift=:
  26562. ;;
  26563. --*=)
  26564. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26565. ac_optarg=
  26566. ac_shift=:
  26567. ;;
  26568. *)
  26569. ac_option=$1
  26570. ac_optarg=$2
  26571. ac_shift=shift
  26572. ;;
  26573. esac
  26574. case $ac_option in
  26575. # Handling of the options.
  26576. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26577. ac_cs_recheck=: ;;
  26578. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26579. printf "%s\n" "$ac_cs_version"; exit ;;
  26580. --config | --confi | --conf | --con | --co | --c )
  26581. printf "%s\n" "$ac_cs_config"; exit ;;
  26582. --debug | --debu | --deb | --de | --d | -d )
  26583. debug=: ;;
  26584. --file | --fil | --fi | --f )
  26585. $ac_shift
  26586. case $ac_optarg in
  26587. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26588. '') as_fn_error $? "missing file argument" ;;
  26589. esac
  26590. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26591. ac_need_defaults=false;;
  26592. --header | --heade | --head | --hea )
  26593. $ac_shift
  26594. case $ac_optarg in
  26595. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26596. esac
  26597. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26598. ac_need_defaults=false;;
  26599. --he | --h)
  26600. # Conflict between --help and --header
  26601. as_fn_error $? "ambiguous option: \`$1'
  26602. Try \`$0 --help' for more information.";;
  26603. --help | --hel | -h )
  26604. printf "%s\n" "$ac_cs_usage"; exit ;;
  26605. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26606. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26607. ac_cs_silent=: ;;
  26608. # This is an error.
  26609. -*) as_fn_error $? "unrecognized option: \`$1'
  26610. Try \`$0 --help' for more information." ;;
  26611. *) as_fn_append ac_config_targets " $1"
  26612. ac_need_defaults=false ;;
  26613. esac
  26614. shift
  26615. done
  26616. ac_configure_extra_args=
  26617. if $ac_cs_silent; then
  26618. exec 6>/dev/null
  26619. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26620. fi
  26621. _ACEOF
  26622. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26623. if \$ac_cs_recheck; then
  26624. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26625. shift
  26626. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26627. CONFIG_SHELL='$SHELL'
  26628. export CONFIG_SHELL
  26629. exec "\$@"
  26630. fi
  26631. _ACEOF
  26632. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26633. exec 5>>config.log
  26634. {
  26635. echo
  26636. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26637. ## Running $as_me. ##
  26638. _ASBOX
  26639. printf "%s\n" "$ac_log"
  26640. } >&5
  26641. _ACEOF
  26642. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26643. #
  26644. # INIT-COMMANDS
  26645. #
  26646. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26647. # if CDPATH is set.
  26648. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26649. sed_quote_subst='$sed_quote_subst'
  26650. double_quote_subst='$double_quote_subst'
  26651. delay_variable_subst='$delay_variable_subst'
  26652. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26653. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26654. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26655. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26656. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26657. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26658. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26659. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26660. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26661. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26662. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26663. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26664. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26665. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26666. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26667. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26668. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26669. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26670. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26671. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26672. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26673. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26674. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26675. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26676. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26677. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26678. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26679. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26680. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26681. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26682. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26683. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26684. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26685. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26686. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26687. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26688. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26689. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26690. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26691. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26692. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26693. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26694. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26695. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26696. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26697. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26698. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26699. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26700. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26701. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26702. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26703. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26704. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26705. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26706. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26707. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26708. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26709. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26710. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26711. 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"`'
  26712. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26713. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26714. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26715. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26716. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26717. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26718. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26719. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26720. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26721. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26722. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26723. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26724. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26725. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26726. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26727. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26728. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26729. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26730. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26731. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26732. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26733. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26734. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26735. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26736. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26737. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26738. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26739. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26740. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26741. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26742. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26743. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26744. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26745. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26746. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26747. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26748. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26749. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26750. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26751. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26752. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26753. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26754. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26755. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26756. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26757. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26758. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26759. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26760. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26761. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26762. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26763. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26764. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26765. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26766. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26767. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26768. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26769. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26770. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26771. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26772. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26773. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26774. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26775. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26776. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26777. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26778. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26779. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26780. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26781. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26782. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26783. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26784. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26785. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26786. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26787. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26788. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26789. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26790. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26791. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26792. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26793. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26794. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26795. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26796. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26797. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26798. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26799. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26800. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26801. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26802. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26803. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26804. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26805. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26806. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26807. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26808. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26809. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26810. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26811. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26812. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26813. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26814. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26815. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26816. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26817. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26818. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26819. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26820. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26821. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26822. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26823. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26824. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26825. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26826. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26827. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26828. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26829. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26830. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26831. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26832. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26833. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26834. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26835. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26836. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26837. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26838. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26839. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26840. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26841. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26842. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26843. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26844. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26845. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26846. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26847. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26848. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26849. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26850. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26851. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26852. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26853. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26854. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26855. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26856. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26857. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26858. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26859. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26860. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26861. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26862. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26863. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26864. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26865. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26866. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26867. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26868. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26869. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26870. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26871. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26872. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26873. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26874. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26875. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26876. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26877. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26878. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26879. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26880. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26881. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26882. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26883. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26884. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26885. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26886. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26887. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26888. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26889. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26890. LTCC='$LTCC'
  26891. LTCFLAGS='$LTCFLAGS'
  26892. compiler='$compiler_DEFAULT'
  26893. # A function that is used when there is no print builtin or printf.
  26894. func_fallback_echo ()
  26895. {
  26896. eval 'cat <<_LTECHO_EOF
  26897. \$1
  26898. _LTECHO_EOF'
  26899. }
  26900. # Quote evaled strings.
  26901. for var in AS \
  26902. DLLTOOL \
  26903. OBJDUMP \
  26904. SHELL \
  26905. ECHO \
  26906. PATH_SEPARATOR \
  26907. SED \
  26908. GREP \
  26909. EGREP \
  26910. FGREP \
  26911. LD \
  26912. NM \
  26913. LN_S \
  26914. lt_SP2NL \
  26915. lt_NL2SP \
  26916. reload_flag \
  26917. deplibs_check_method \
  26918. file_magic_cmd \
  26919. file_magic_glob \
  26920. want_nocaseglob \
  26921. sharedlib_from_linklib_cmd \
  26922. AR \
  26923. AR_FLAGS \
  26924. archiver_list_spec \
  26925. STRIP \
  26926. RANLIB \
  26927. CC \
  26928. CFLAGS \
  26929. compiler \
  26930. lt_cv_sys_global_symbol_pipe \
  26931. lt_cv_sys_global_symbol_to_cdecl \
  26932. lt_cv_sys_global_symbol_to_import \
  26933. lt_cv_sys_global_symbol_to_c_name_address \
  26934. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26935. lt_cv_nm_interface \
  26936. nm_file_list_spec \
  26937. lt_cv_truncate_bin \
  26938. lt_prog_compiler_no_builtin_flag \
  26939. lt_prog_compiler_pic \
  26940. lt_prog_compiler_wl \
  26941. lt_prog_compiler_static \
  26942. lt_cv_prog_compiler_c_o \
  26943. need_locks \
  26944. MANIFEST_TOOL \
  26945. DSYMUTIL \
  26946. NMEDIT \
  26947. LIPO \
  26948. OTOOL \
  26949. OTOOL64 \
  26950. shrext_cmds \
  26951. export_dynamic_flag_spec \
  26952. whole_archive_flag_spec \
  26953. compiler_needs_object \
  26954. with_gnu_ld \
  26955. allow_undefined_flag \
  26956. no_undefined_flag \
  26957. hardcode_libdir_flag_spec \
  26958. hardcode_libdir_separator \
  26959. exclude_expsyms \
  26960. include_expsyms \
  26961. file_list_spec \
  26962. variables_saved_for_relink \
  26963. libname_spec \
  26964. library_names_spec \
  26965. soname_spec \
  26966. install_override_mode \
  26967. finish_eval \
  26968. old_striplib \
  26969. striplib \
  26970. compiler_lib_search_dirs \
  26971. predep_objects \
  26972. postdep_objects \
  26973. predeps \
  26974. postdeps \
  26975. compiler_lib_search_path \
  26976. LD_RC \
  26977. LD_CXX \
  26978. reload_flag_RC \
  26979. reload_flag_CXX \
  26980. compiler_RC \
  26981. compiler_CXX \
  26982. lt_prog_compiler_no_builtin_flag_RC \
  26983. lt_prog_compiler_no_builtin_flag_CXX \
  26984. lt_prog_compiler_pic_RC \
  26985. lt_prog_compiler_pic_CXX \
  26986. lt_prog_compiler_wl_RC \
  26987. lt_prog_compiler_wl_CXX \
  26988. lt_prog_compiler_static_RC \
  26989. lt_prog_compiler_static_CXX \
  26990. lt_cv_prog_compiler_c_o_RC \
  26991. lt_cv_prog_compiler_c_o_CXX \
  26992. export_dynamic_flag_spec_RC \
  26993. export_dynamic_flag_spec_CXX \
  26994. whole_archive_flag_spec_RC \
  26995. whole_archive_flag_spec_CXX \
  26996. compiler_needs_object_RC \
  26997. compiler_needs_object_CXX \
  26998. with_gnu_ld_RC \
  26999. with_gnu_ld_CXX \
  27000. allow_undefined_flag_RC \
  27001. allow_undefined_flag_CXX \
  27002. no_undefined_flag_RC \
  27003. no_undefined_flag_CXX \
  27004. hardcode_libdir_flag_spec_RC \
  27005. hardcode_libdir_flag_spec_CXX \
  27006. hardcode_libdir_separator_RC \
  27007. hardcode_libdir_separator_CXX \
  27008. exclude_expsyms_RC \
  27009. exclude_expsyms_CXX \
  27010. include_expsyms_RC \
  27011. include_expsyms_CXX \
  27012. file_list_spec_RC \
  27013. file_list_spec_CXX \
  27014. compiler_lib_search_dirs_RC \
  27015. compiler_lib_search_dirs_CXX \
  27016. predep_objects_RC \
  27017. predep_objects_CXX \
  27018. postdep_objects_RC \
  27019. postdep_objects_CXX \
  27020. predeps_RC \
  27021. predeps_CXX \
  27022. postdeps_RC \
  27023. postdeps_CXX \
  27024. compiler_lib_search_path_RC \
  27025. compiler_lib_search_path_CXX; do
  27026. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27027. *[\\\\\\\`\\"\\\$]*)
  27028. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27029. ;;
  27030. *)
  27031. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27032. ;;
  27033. esac
  27034. done
  27035. # Double-quote double-evaled strings.
  27036. for var in reload_cmds \
  27037. old_postinstall_cmds \
  27038. old_postuninstall_cmds \
  27039. old_archive_cmds \
  27040. extract_expsyms_cmds \
  27041. old_archive_from_new_cmds \
  27042. old_archive_from_expsyms_cmds \
  27043. archive_cmds \
  27044. archive_expsym_cmds \
  27045. module_cmds \
  27046. module_expsym_cmds \
  27047. export_symbols_cmds \
  27048. prelink_cmds \
  27049. postlink_cmds \
  27050. postinstall_cmds \
  27051. postuninstall_cmds \
  27052. finish_cmds \
  27053. sys_lib_search_path_spec \
  27054. configure_time_dlsearch_path \
  27055. configure_time_lt_sys_library_path \
  27056. reload_cmds_RC \
  27057. reload_cmds_CXX \
  27058. old_archive_cmds_RC \
  27059. old_archive_cmds_CXX \
  27060. old_archive_from_new_cmds_RC \
  27061. old_archive_from_new_cmds_CXX \
  27062. old_archive_from_expsyms_cmds_RC \
  27063. old_archive_from_expsyms_cmds_CXX \
  27064. archive_cmds_RC \
  27065. archive_cmds_CXX \
  27066. archive_expsym_cmds_RC \
  27067. archive_expsym_cmds_CXX \
  27068. module_cmds_RC \
  27069. module_cmds_CXX \
  27070. module_expsym_cmds_RC \
  27071. module_expsym_cmds_CXX \
  27072. export_symbols_cmds_RC \
  27073. export_symbols_cmds_CXX \
  27074. prelink_cmds_RC \
  27075. prelink_cmds_CXX \
  27076. postlink_cmds_RC \
  27077. postlink_cmds_CXX; do
  27078. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27079. *[\\\\\\\`\\"\\\$]*)
  27080. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27081. ;;
  27082. *)
  27083. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27084. ;;
  27085. esac
  27086. done
  27087. ac_aux_dir='$ac_aux_dir'
  27088. # See if we are running on zsh, and set the options that allow our
  27089. # commands through without removal of \ escapes INIT.
  27090. if test -n "\${ZSH_VERSION+set}"; then
  27091. setopt NO_GLOB_SUBST
  27092. fi
  27093. PACKAGE='$PACKAGE'
  27094. VERSION='$VERSION'
  27095. RM='$RM'
  27096. ofile='$ofile'
  27097. SUMMARY="$SUMMARY"
  27098. _ACEOF
  27099. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27100. # Handling of arguments.
  27101. for ac_config_target in $ac_config_targets
  27102. do
  27103. case $ac_config_target in
  27104. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  27105. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  27106. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  27107. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  27108. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  27109. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  27110. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  27111. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  27112. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  27113. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  27114. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27115. esac
  27116. done
  27117. # If the user did not use the arguments to specify the items to instantiate,
  27118. # then the envvar interface is used. Set only those that are not.
  27119. # We use the long form for the default assignment because of an extremely
  27120. # bizarre bug on SunOS 4.1.3.
  27121. if $ac_need_defaults; then
  27122. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  27123. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  27124. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  27125. fi
  27126. # Have a temporary directory for convenience. Make it in the build tree
  27127. # simply because there is no reason against having it here, and in addition,
  27128. # creating and moving files from /tmp can sometimes cause problems.
  27129. # Hook for its removal unless debugging.
  27130. # Note that there is a small window in which the directory will not be cleaned:
  27131. # after its creation but before its name has been assigned to `$tmp'.
  27132. $debug ||
  27133. {
  27134. tmp= ac_tmp=
  27135. trap 'exit_status=$?
  27136. : "${ac_tmp:=$tmp}"
  27137. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27138. ' 0
  27139. trap 'as_fn_exit 1' 1 2 13 15
  27140. }
  27141. # Create a (secure) tmp directory for tmp files.
  27142. {
  27143. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27144. test -d "$tmp"
  27145. } ||
  27146. {
  27147. tmp=./conf$$-$RANDOM
  27148. (umask 077 && mkdir "$tmp")
  27149. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27150. ac_tmp=$tmp
  27151. # Set up the scripts for CONFIG_FILES section.
  27152. # No need to generate them if there are no CONFIG_FILES.
  27153. # This happens for instance with `./config.status config.h'.
  27154. if test -n "$CONFIG_FILES"; then
  27155. ac_cr=`echo X | tr X '\015'`
  27156. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27157. # But we know of no other shell where ac_cr would be empty at this
  27158. # point, so we can use a bashism as a fallback.
  27159. if test "x$ac_cr" = x; then
  27160. eval ac_cr=\$\'\\r\'
  27161. fi
  27162. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27163. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27164. ac_cs_awk_cr='\\r'
  27165. else
  27166. ac_cs_awk_cr=$ac_cr
  27167. fi
  27168. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27169. _ACEOF
  27170. {
  27171. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27172. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27173. echo "_ACEOF"
  27174. } >conf$$subs.sh ||
  27175. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27176. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27177. ac_delim='%!_!# '
  27178. for ac_last_try in false false false false false :; do
  27179. . ./conf$$subs.sh ||
  27180. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27181. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27182. if test $ac_delim_n = $ac_delim_num; then
  27183. break
  27184. elif $ac_last_try; then
  27185. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27186. else
  27187. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27188. fi
  27189. done
  27190. rm -f conf$$subs.sh
  27191. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27192. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27193. _ACEOF
  27194. sed -n '
  27195. h
  27196. s/^/S["/; s/!.*/"]=/
  27197. p
  27198. g
  27199. s/^[^!]*!//
  27200. :repl
  27201. t repl
  27202. s/'"$ac_delim"'$//
  27203. t delim
  27204. :nl
  27205. h
  27206. s/\(.\{148\}\)..*/\1/
  27207. t more1
  27208. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27209. p
  27210. n
  27211. b repl
  27212. :more1
  27213. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27214. p
  27215. g
  27216. s/.\{148\}//
  27217. t nl
  27218. :delim
  27219. h
  27220. s/\(.\{148\}\)..*/\1/
  27221. t more2
  27222. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27223. p
  27224. b
  27225. :more2
  27226. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27227. p
  27228. g
  27229. s/.\{148\}//
  27230. t delim
  27231. ' <conf$$subs.awk | sed '
  27232. /^[^""]/{
  27233. N
  27234. s/\n//
  27235. }
  27236. ' >>$CONFIG_STATUS || ac_write_fail=1
  27237. rm -f conf$$subs.awk
  27238. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27239. _ACAWK
  27240. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27241. for (key in S) S_is_set[key] = 1
  27242. FS = ""
  27243. }
  27244. {
  27245. line = $ 0
  27246. nfields = split(line, field, "@")
  27247. substed = 0
  27248. len = length(field[1])
  27249. for (i = 2; i < nfields; i++) {
  27250. key = field[i]
  27251. keylen = length(key)
  27252. if (S_is_set[key]) {
  27253. value = S[key]
  27254. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27255. len += length(value) + length(field[++i])
  27256. substed = 1
  27257. } else
  27258. len += 1 + keylen
  27259. }
  27260. print line
  27261. }
  27262. _ACAWK
  27263. _ACEOF
  27264. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27265. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27266. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27267. else
  27268. cat
  27269. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27270. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27271. _ACEOF
  27272. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27273. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27274. # trailing colons and then remove the whole line if VPATH becomes empty
  27275. # (actually we leave an empty line to preserve line numbers).
  27276. if test "x$srcdir" = x.; then
  27277. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27278. h
  27279. s///
  27280. s/^/:/
  27281. s/[ ]*$/:/
  27282. s/:\$(srcdir):/:/g
  27283. s/:\${srcdir}:/:/g
  27284. s/:@srcdir@:/:/g
  27285. s/^:*//
  27286. s/:*$//
  27287. x
  27288. s/\(=[ ]*\).*/\1/
  27289. G
  27290. s/\n//
  27291. s/^[^=]*=[ ]*$//
  27292. }'
  27293. fi
  27294. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27295. fi # test -n "$CONFIG_FILES"
  27296. # Set up the scripts for CONFIG_HEADERS section.
  27297. # No need to generate them if there are no CONFIG_HEADERS.
  27298. # This happens for instance with `./config.status Makefile'.
  27299. if test -n "$CONFIG_HEADERS"; then
  27300. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27301. BEGIN {
  27302. _ACEOF
  27303. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27304. # here-document in config.status, that substitutes the proper values into
  27305. # config.h.in to produce config.h.
  27306. # Create a delimiter string that does not exist in confdefs.h, to ease
  27307. # handling of long lines.
  27308. ac_delim='%!_!# '
  27309. for ac_last_try in false false :; do
  27310. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27311. if test -z "$ac_tt"; then
  27312. break
  27313. elif $ac_last_try; then
  27314. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27315. else
  27316. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27317. fi
  27318. done
  27319. # For the awk script, D is an array of macro values keyed by name,
  27320. # likewise P contains macro parameters if any. Preserve backslash
  27321. # newline sequences.
  27322. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27323. sed -n '
  27324. s/.\{148\}/&'"$ac_delim"'/g
  27325. t rset
  27326. :rset
  27327. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27328. t def
  27329. d
  27330. :def
  27331. s/\\$//
  27332. t bsnl
  27333. s/["\\]/\\&/g
  27334. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27335. D["\1"]=" \3"/p
  27336. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27337. d
  27338. :bsnl
  27339. s/["\\]/\\&/g
  27340. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27341. D["\1"]=" \3\\\\\\n"\\/p
  27342. t cont
  27343. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27344. t cont
  27345. d
  27346. :cont
  27347. n
  27348. s/.\{148\}/&'"$ac_delim"'/g
  27349. t clear
  27350. :clear
  27351. s/\\$//
  27352. t bsnlc
  27353. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27354. d
  27355. :bsnlc
  27356. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27357. b cont
  27358. ' <confdefs.h | sed '
  27359. s/'"$ac_delim"'/"\\\
  27360. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27361. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27362. for (key in D) D_is_set[key] = 1
  27363. FS = ""
  27364. }
  27365. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27366. line = \$ 0
  27367. split(line, arg, " ")
  27368. if (arg[1] == "#") {
  27369. defundef = arg[2]
  27370. mac1 = arg[3]
  27371. } else {
  27372. defundef = substr(arg[1], 2)
  27373. mac1 = arg[2]
  27374. }
  27375. split(mac1, mac2, "(") #)
  27376. macro = mac2[1]
  27377. prefix = substr(line, 1, index(line, defundef) - 1)
  27378. if (D_is_set[macro]) {
  27379. # Preserve the white space surrounding the "#".
  27380. print prefix "define", macro P[macro] D[macro]
  27381. next
  27382. } else {
  27383. # Replace #undef with comments. This is necessary, for example,
  27384. # in the case of _POSIX_SOURCE, which is predefined and required
  27385. # on some systems where configure will not decide to define it.
  27386. if (defundef == "undef") {
  27387. print "/*", prefix defundef, macro, "*/"
  27388. next
  27389. }
  27390. }
  27391. }
  27392. { print }
  27393. _ACAWK
  27394. _ACEOF
  27395. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27396. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27397. fi # test -n "$CONFIG_HEADERS"
  27398. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27399. shift
  27400. for ac_tag
  27401. do
  27402. case $ac_tag in
  27403. :[FHLC]) ac_mode=$ac_tag; continue;;
  27404. esac
  27405. case $ac_mode$ac_tag in
  27406. :[FHL]*:*);;
  27407. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27408. :[FH]-) ac_tag=-:-;;
  27409. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27410. esac
  27411. ac_save_IFS=$IFS
  27412. IFS=:
  27413. set x $ac_tag
  27414. IFS=$ac_save_IFS
  27415. shift
  27416. ac_file=$1
  27417. shift
  27418. case $ac_mode in
  27419. :L) ac_source=$1;;
  27420. :[FH])
  27421. ac_file_inputs=
  27422. for ac_f
  27423. do
  27424. case $ac_f in
  27425. -) ac_f="$ac_tmp/stdin";;
  27426. *) # Look for the file first in the build tree, then in the source tree
  27427. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27428. # because $ac_f cannot contain `:'.
  27429. test -f "$ac_f" ||
  27430. case $ac_f in
  27431. [\\/$]*) false;;
  27432. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27433. esac ||
  27434. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27435. esac
  27436. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27437. as_fn_append ac_file_inputs " '$ac_f'"
  27438. done
  27439. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27440. # use $as_me), people would be surprised to read:
  27441. # /* config.h. Generated by config.status. */
  27442. configure_input='Generated from '`
  27443. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27444. `' by configure.'
  27445. if test x"$ac_file" != x-; then
  27446. configure_input="$ac_file. $configure_input"
  27447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27448. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27449. fi
  27450. # Neutralize special characters interpreted by sed in replacement strings.
  27451. case $configure_input in #(
  27452. *\&* | *\|* | *\\* )
  27453. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27454. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27455. *) ac_sed_conf_input=$configure_input;;
  27456. esac
  27457. case $ac_tag in
  27458. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27459. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27460. esac
  27461. ;;
  27462. esac
  27463. ac_dir=`$as_dirname -- "$ac_file" ||
  27464. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27465. X"$ac_file" : 'X\(//\)[^/]' \| \
  27466. X"$ac_file" : 'X\(//\)$' \| \
  27467. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27468. printf "%s\n" X"$ac_file" |
  27469. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27470. s//\1/
  27471. q
  27472. }
  27473. /^X\(\/\/\)[^/].*/{
  27474. s//\1/
  27475. q
  27476. }
  27477. /^X\(\/\/\)$/{
  27478. s//\1/
  27479. q
  27480. }
  27481. /^X\(\/\).*/{
  27482. s//\1/
  27483. q
  27484. }
  27485. s/.*/./; q'`
  27486. as_dir="$ac_dir"; as_fn_mkdir_p
  27487. ac_builddir=.
  27488. case "$ac_dir" in
  27489. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27490. *)
  27491. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27492. # A ".." for each directory in $ac_dir_suffix.
  27493. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27494. case $ac_top_builddir_sub in
  27495. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27496. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27497. esac ;;
  27498. esac
  27499. ac_abs_top_builddir=$ac_pwd
  27500. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27501. # for backward compatibility:
  27502. ac_top_builddir=$ac_top_build_prefix
  27503. case $srcdir in
  27504. .) # We are building in place.
  27505. ac_srcdir=.
  27506. ac_top_srcdir=$ac_top_builddir_sub
  27507. ac_abs_top_srcdir=$ac_pwd ;;
  27508. [\\/]* | ?:[\\/]* ) # Absolute name.
  27509. ac_srcdir=$srcdir$ac_dir_suffix;
  27510. ac_top_srcdir=$srcdir
  27511. ac_abs_top_srcdir=$srcdir ;;
  27512. *) # Relative name.
  27513. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27514. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27515. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27516. esac
  27517. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27518. case $ac_mode in
  27519. :F)
  27520. #
  27521. # CONFIG_FILE
  27522. #
  27523. case $INSTALL in
  27524. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27525. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27526. esac
  27527. _ACEOF
  27528. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27529. # If the template does not know about datarootdir, expand it.
  27530. # FIXME: This hack should be removed a few years after 2.60.
  27531. ac_datarootdir_hack=; ac_datarootdir_seen=
  27532. ac_sed_dataroot='
  27533. /datarootdir/ {
  27534. p
  27535. q
  27536. }
  27537. /@datadir@/p
  27538. /@docdir@/p
  27539. /@infodir@/p
  27540. /@localedir@/p
  27541. /@mandir@/p'
  27542. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27543. *datarootdir*) ac_datarootdir_seen=yes;;
  27544. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27546. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27547. _ACEOF
  27548. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27549. ac_datarootdir_hack='
  27550. s&@datadir@&$datadir&g
  27551. s&@docdir@&$docdir&g
  27552. s&@infodir@&$infodir&g
  27553. s&@localedir@&$localedir&g
  27554. s&@mandir@&$mandir&g
  27555. s&\\\${datarootdir}&$datarootdir&g' ;;
  27556. esac
  27557. _ACEOF
  27558. # Neutralize VPATH when `$srcdir' = `.'.
  27559. # Shell code in configure.ac might set extrasub.
  27560. # FIXME: do we really want to maintain this feature?
  27561. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27562. ac_sed_extra="$ac_vpsub
  27563. $extrasub
  27564. _ACEOF
  27565. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27566. :t
  27567. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27568. s|@configure_input@|$ac_sed_conf_input|;t t
  27569. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27570. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27571. s&@srcdir@&$ac_srcdir&;t t
  27572. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27573. s&@top_srcdir@&$ac_top_srcdir&;t t
  27574. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27575. s&@builddir@&$ac_builddir&;t t
  27576. s&@abs_builddir@&$ac_abs_builddir&;t t
  27577. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27578. s&@INSTALL@&$ac_INSTALL&;t t
  27579. $ac_datarootdir_hack
  27580. "
  27581. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27582. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27583. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27584. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27585. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27586. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27588. which seems to be undefined. Please make sure it is defined" >&5
  27589. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27590. which seems to be undefined. Please make sure it is defined" >&2;}
  27591. rm -f "$ac_tmp/stdin"
  27592. case $ac_file in
  27593. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27594. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27595. esac \
  27596. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27597. ;;
  27598. :H)
  27599. #
  27600. # CONFIG_HEADER
  27601. #
  27602. if test x"$ac_file" != x-; then
  27603. {
  27604. printf "%s\n" "/* $configure_input */" >&1 \
  27605. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27606. } >"$ac_tmp/config.h" \
  27607. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27608. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27610. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27611. else
  27612. rm -f "$ac_file"
  27613. mv "$ac_tmp/config.h" "$ac_file" \
  27614. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27615. fi
  27616. else
  27617. printf "%s\n" "/* $configure_input */" >&1 \
  27618. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27619. || as_fn_error $? "could not create -" "$LINENO" 5
  27620. fi
  27621. ;;
  27622. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27623. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27624. ;;
  27625. esac
  27626. case $ac_file$ac_mode in
  27627. "libtool":C)
  27628. # See if we are running on zsh, and set the options that allow our
  27629. # commands through without removal of \ escapes.
  27630. if test -n "${ZSH_VERSION+set}"; then
  27631. setopt NO_GLOB_SUBST
  27632. fi
  27633. cfgfile=${ofile}T
  27634. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27635. $RM "$cfgfile"
  27636. cat <<_LT_EOF >> "$cfgfile"
  27637. #! $SHELL
  27638. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27639. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27640. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27641. # Provide generalized library-building support services.
  27642. # Written by Gordon Matzigkeit, 1996
  27643. # Copyright (C) 2014 Free Software Foundation, Inc.
  27644. # This is free software; see the source for copying conditions. There is NO
  27645. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27646. # GNU Libtool is free software; you can redistribute it and/or modify
  27647. # it under the terms of the GNU General Public License as published by
  27648. # the Free Software Foundation; either version 2 of of the License, or
  27649. # (at your option) any later version.
  27650. #
  27651. # As a special exception to the GNU General Public License, if you
  27652. # distribute this file as part of a program or library that is built
  27653. # using GNU Libtool, you may include this file under the same
  27654. # distribution terms that you use for the rest of that program.
  27655. #
  27656. # GNU Libtool is distributed in the hope that it will be useful, but
  27657. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27658. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27659. # GNU General Public License for more details.
  27660. #
  27661. # You should have received a copy of the GNU General Public License
  27662. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27663. # The names of the tagged configurations supported by this script.
  27664. available_tags='RC CXX '
  27665. # Configured defaults for sys_lib_dlsearch_path munging.
  27666. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27667. # ### BEGIN LIBTOOL CONFIG
  27668. # Which release of libtool.m4 was used?
  27669. macro_version=$macro_version
  27670. macro_revision=$macro_revision
  27671. # Assembler program.
  27672. AS=$lt_AS
  27673. # DLL creation program.
  27674. DLLTOOL=$lt_DLLTOOL
  27675. # Object dumper program.
  27676. OBJDUMP=$lt_OBJDUMP
  27677. # Whether or not to build shared libraries.
  27678. build_libtool_libs=$enable_shared
  27679. # Whether or not to build static libraries.
  27680. build_old_libs=$enable_static
  27681. # What type of objects to build.
  27682. pic_mode=$pic_mode
  27683. # Whether or not to optimize for fast installation.
  27684. fast_install=$enable_fast_install
  27685. # Shared archive member basename,for filename based shared library versioning on AIX.
  27686. shared_archive_member_spec=$shared_archive_member_spec
  27687. # Shell to use when invoking shell scripts.
  27688. SHELL=$lt_SHELL
  27689. # An echo program that protects backslashes.
  27690. ECHO=$lt_ECHO
  27691. # The PATH separator for the build system.
  27692. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27693. # The host system.
  27694. host_alias=$host_alias
  27695. host=$host
  27696. host_os=$host_os
  27697. # The build system.
  27698. build_alias=$build_alias
  27699. build=$build
  27700. build_os=$build_os
  27701. # A sed program that does not truncate output.
  27702. SED=$lt_SED
  27703. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27704. Xsed="\$SED -e 1s/^X//"
  27705. # A grep program that handles long lines.
  27706. GREP=$lt_GREP
  27707. # An ERE matcher.
  27708. EGREP=$lt_EGREP
  27709. # A literal string matcher.
  27710. FGREP=$lt_FGREP
  27711. # A BSD- or MS-compatible name lister.
  27712. NM=$lt_NM
  27713. # Whether we need soft or hard links.
  27714. LN_S=$lt_LN_S
  27715. # What is the maximum length of a command?
  27716. max_cmd_len=$max_cmd_len
  27717. # Object file suffix (normally "o").
  27718. objext=$ac_objext
  27719. # Executable file suffix (normally "").
  27720. exeext=$exeext
  27721. # whether the shell understands "unset".
  27722. lt_unset=$lt_unset
  27723. # turn spaces into newlines.
  27724. SP2NL=$lt_lt_SP2NL
  27725. # turn newlines into spaces.
  27726. NL2SP=$lt_lt_NL2SP
  27727. # convert \$build file names to \$host format.
  27728. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27729. # convert \$build files to toolchain format.
  27730. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27731. # Method to check whether dependent libraries are shared objects.
  27732. deplibs_check_method=$lt_deplibs_check_method
  27733. # Command to use when deplibs_check_method = "file_magic".
  27734. file_magic_cmd=$lt_file_magic_cmd
  27735. # How to find potential files when deplibs_check_method = "file_magic".
  27736. file_magic_glob=$lt_file_magic_glob
  27737. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27738. want_nocaseglob=$lt_want_nocaseglob
  27739. # Command to associate shared and link libraries.
  27740. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27741. # The archiver.
  27742. AR=$lt_AR
  27743. # Flags to create an archive.
  27744. AR_FLAGS=$lt_AR_FLAGS
  27745. # How to feed a file listing to the archiver.
  27746. archiver_list_spec=$lt_archiver_list_spec
  27747. # A symbol stripping program.
  27748. STRIP=$lt_STRIP
  27749. # Commands used to install an old-style archive.
  27750. RANLIB=$lt_RANLIB
  27751. old_postinstall_cmds=$lt_old_postinstall_cmds
  27752. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27753. # Whether to use a lock for old archive extraction.
  27754. lock_old_archive_extraction=$lock_old_archive_extraction
  27755. # A C compiler.
  27756. LTCC=$lt_CC
  27757. # LTCC compiler flags.
  27758. LTCFLAGS=$lt_CFLAGS
  27759. # Take the output of nm and produce a listing of raw symbols and C names.
  27760. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27761. # Transform the output of nm in a proper C declaration.
  27762. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27763. # Transform the output of nm into a list of symbols to manually relocate.
  27764. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27765. # Transform the output of nm in a C name address pair.
  27766. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27767. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27768. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27769. # The name lister interface.
  27770. nm_interface=$lt_lt_cv_nm_interface
  27771. # Specify filename containing input files for \$NM.
  27772. nm_file_list_spec=$lt_nm_file_list_spec
  27773. # The root where to search for dependent libraries,and where our libraries should be installed.
  27774. lt_sysroot=$lt_sysroot
  27775. # Command to truncate a binary pipe.
  27776. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27777. # The name of the directory that contains temporary libtool files.
  27778. objdir=$objdir
  27779. # Used to examine libraries when file_magic_cmd begins with "file".
  27780. MAGIC_CMD=$MAGIC_CMD
  27781. # Must we lock files when doing compilation?
  27782. need_locks=$lt_need_locks
  27783. # Manifest tool.
  27784. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27785. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27786. DSYMUTIL=$lt_DSYMUTIL
  27787. # Tool to change global to local symbols on Mac OS X.
  27788. NMEDIT=$lt_NMEDIT
  27789. # Tool to manipulate fat objects and archives on Mac OS X.
  27790. LIPO=$lt_LIPO
  27791. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27792. OTOOL=$lt_OTOOL
  27793. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27794. OTOOL64=$lt_OTOOL64
  27795. # Old archive suffix (normally "a").
  27796. libext=$libext
  27797. # Shared library suffix (normally ".so").
  27798. shrext_cmds=$lt_shrext_cmds
  27799. # The commands to extract the exported symbol list from a shared archive.
  27800. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27801. # Variables whose values should be saved in libtool wrapper scripts and
  27802. # restored at link time.
  27803. variables_saved_for_relink=$lt_variables_saved_for_relink
  27804. # Do we need the "lib" prefix for modules?
  27805. need_lib_prefix=$need_lib_prefix
  27806. # Do we need a version for libraries?
  27807. need_version=$need_version
  27808. # Library versioning type.
  27809. version_type=$version_type
  27810. # Shared library runtime path variable.
  27811. runpath_var=$runpath_var
  27812. # Shared library path variable.
  27813. shlibpath_var=$shlibpath_var
  27814. # Is shlibpath searched before the hard-coded library search path?
  27815. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27816. # Format of library name prefix.
  27817. libname_spec=$lt_libname_spec
  27818. # List of archive names. First name is the real one, the rest are links.
  27819. # The last name is the one that the linker finds with -lNAME
  27820. library_names_spec=$lt_library_names_spec
  27821. # The coded name of the library, if different from the real name.
  27822. soname_spec=$lt_soname_spec
  27823. # Permission mode override for installation of shared libraries.
  27824. install_override_mode=$lt_install_override_mode
  27825. # Command to use after installation of a shared archive.
  27826. postinstall_cmds=$lt_postinstall_cmds
  27827. # Command to use after uninstallation of a shared archive.
  27828. postuninstall_cmds=$lt_postuninstall_cmds
  27829. # Commands used to finish a libtool library installation in a directory.
  27830. finish_cmds=$lt_finish_cmds
  27831. # As "finish_cmds", except a single script fragment to be evaled but
  27832. # not shown.
  27833. finish_eval=$lt_finish_eval
  27834. # Whether we should hardcode library paths into libraries.
  27835. hardcode_into_libs=$hardcode_into_libs
  27836. # Compile-time system search path for libraries.
  27837. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27838. # Detected run-time system search path for libraries.
  27839. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27840. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27841. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27842. # Whether dlopen is supported.
  27843. dlopen_support=$enable_dlopen
  27844. # Whether dlopen of programs is supported.
  27845. dlopen_self=$enable_dlopen_self
  27846. # Whether dlopen of statically linked programs is supported.
  27847. dlopen_self_static=$enable_dlopen_self_static
  27848. # Commands to strip libraries.
  27849. old_striplib=$lt_old_striplib
  27850. striplib=$lt_striplib
  27851. # The linker used to build libraries.
  27852. LD=$lt_LD
  27853. # How to create reloadable object files.
  27854. reload_flag=$lt_reload_flag
  27855. reload_cmds=$lt_reload_cmds
  27856. # Commands used to build an old-style archive.
  27857. old_archive_cmds=$lt_old_archive_cmds
  27858. # A language specific compiler.
  27859. CC=$lt_compiler
  27860. # Is the compiler the GNU compiler?
  27861. with_gcc=$GCC
  27862. # Compiler flag to turn off builtin functions.
  27863. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27864. # Additional compiler flags for building library objects.
  27865. pic_flag=$lt_lt_prog_compiler_pic
  27866. # How to pass a linker flag through the compiler.
  27867. wl=$lt_lt_prog_compiler_wl
  27868. # Compiler flag to prevent dynamic linking.
  27869. link_static_flag=$lt_lt_prog_compiler_static
  27870. # Does compiler simultaneously support -c and -o options?
  27871. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27872. # Whether or not to add -lc for building shared libraries.
  27873. build_libtool_need_lc=$archive_cmds_need_lc
  27874. # Whether or not to disallow shared libs when runtime libs are static.
  27875. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27876. # Compiler flag to allow reflexive dlopens.
  27877. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27878. # Compiler flag to generate shared objects directly from archives.
  27879. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27880. # Whether the compiler copes with passing no objects directly.
  27881. compiler_needs_object=$lt_compiler_needs_object
  27882. # Create an old-style archive from a shared archive.
  27883. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27884. # Create a temporary old-style archive to link instead of a shared archive.
  27885. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27886. # Commands used to build a shared archive.
  27887. archive_cmds=$lt_archive_cmds
  27888. archive_expsym_cmds=$lt_archive_expsym_cmds
  27889. # Commands used to build a loadable module if different from building
  27890. # a shared archive.
  27891. module_cmds=$lt_module_cmds
  27892. module_expsym_cmds=$lt_module_expsym_cmds
  27893. # Whether we are building with GNU ld or not.
  27894. with_gnu_ld=$lt_with_gnu_ld
  27895. # Flag that allows shared libraries with undefined symbols to be built.
  27896. allow_undefined_flag=$lt_allow_undefined_flag
  27897. # Flag that enforces no undefined symbols.
  27898. no_undefined_flag=$lt_no_undefined_flag
  27899. # Flag to hardcode \$libdir into a binary during linking.
  27900. # This must work even if \$libdir does not exist
  27901. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27902. # Whether we need a single "-rpath" flag with a separated argument.
  27903. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27904. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27905. # DIR into the resulting binary.
  27906. hardcode_direct=$hardcode_direct
  27907. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27908. # DIR into the resulting binary and the resulting library dependency is
  27909. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27910. # library is relocated.
  27911. hardcode_direct_absolute=$hardcode_direct_absolute
  27912. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27913. # into the resulting binary.
  27914. hardcode_minus_L=$hardcode_minus_L
  27915. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27916. # into the resulting binary.
  27917. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27918. # Set to "yes" if building a shared library automatically hardcodes DIR
  27919. # into the library and all subsequent libraries and executables linked
  27920. # against it.
  27921. hardcode_automatic=$hardcode_automatic
  27922. # Set to yes if linker adds runtime paths of dependent libraries
  27923. # to runtime path list.
  27924. inherit_rpath=$inherit_rpath
  27925. # Whether libtool must link a program against all its dependency libraries.
  27926. link_all_deplibs=$link_all_deplibs
  27927. # Set to "yes" if exported symbols are required.
  27928. always_export_symbols=$always_export_symbols
  27929. # The commands to list exported symbols.
  27930. export_symbols_cmds=$lt_export_symbols_cmds
  27931. # Symbols that should not be listed in the preloaded symbols.
  27932. exclude_expsyms=$lt_exclude_expsyms
  27933. # Symbols that must always be exported.
  27934. include_expsyms=$lt_include_expsyms
  27935. # Commands necessary for linking programs (against libraries) with templates.
  27936. prelink_cmds=$lt_prelink_cmds
  27937. # Commands necessary for finishing linking programs.
  27938. postlink_cmds=$lt_postlink_cmds
  27939. # Specify filename containing input files.
  27940. file_list_spec=$lt_file_list_spec
  27941. # How to hardcode a shared library path into an executable.
  27942. hardcode_action=$hardcode_action
  27943. # The directories searched by this compiler when creating a shared library.
  27944. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27945. # Dependencies to place before and after the objects being linked to
  27946. # create a shared library.
  27947. predep_objects=$lt_predep_objects
  27948. postdep_objects=$lt_postdep_objects
  27949. predeps=$lt_predeps
  27950. postdeps=$lt_postdeps
  27951. # The library search path used internally by the compiler when linking
  27952. # a shared library.
  27953. compiler_lib_search_path=$lt_compiler_lib_search_path
  27954. # ### END LIBTOOL CONFIG
  27955. _LT_EOF
  27956. cat <<'_LT_EOF' >> "$cfgfile"
  27957. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27958. # func_munge_path_list VARIABLE PATH
  27959. # -----------------------------------
  27960. # VARIABLE is name of variable containing _space_ separated list of
  27961. # directories to be munged by the contents of PATH, which is string
  27962. # having a format:
  27963. # "DIR[:DIR]:"
  27964. # string "DIR[ DIR]" will be prepended to VARIABLE
  27965. # ":DIR[:DIR]"
  27966. # string "DIR[ DIR]" will be appended to VARIABLE
  27967. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27968. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27969. # "DIRA[ DIRA]" will be appended to VARIABLE
  27970. # "DIR[:DIR]"
  27971. # VARIABLE will be replaced by "DIR[ DIR]"
  27972. func_munge_path_list ()
  27973. {
  27974. case x$2 in
  27975. x)
  27976. ;;
  27977. *:)
  27978. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27979. ;;
  27980. x:*)
  27981. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27982. ;;
  27983. *::*)
  27984. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27985. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27986. ;;
  27987. *)
  27988. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27989. ;;
  27990. esac
  27991. }
  27992. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27993. func_cc_basename ()
  27994. {
  27995. for cc_temp in $*""; do
  27996. case $cc_temp in
  27997. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27998. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27999. \-*) ;;
  28000. *) break;;
  28001. esac
  28002. done
  28003. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  28004. }
  28005. # ### END FUNCTIONS SHARED WITH CONFIGURE
  28006. _LT_EOF
  28007. case $host_os in
  28008. aix3*)
  28009. cat <<\_LT_EOF >> "$cfgfile"
  28010. # AIX sometimes has problems with the GCC collect2 program. For some
  28011. # reason, if we set the COLLECT_NAMES environment variable, the problems
  28012. # vanish in a puff of smoke.
  28013. if test set != "${COLLECT_NAMES+set}"; then
  28014. COLLECT_NAMES=
  28015. export COLLECT_NAMES
  28016. fi
  28017. _LT_EOF
  28018. ;;
  28019. esac
  28020. ltmain=$ac_aux_dir/ltmain.sh
  28021. # We use sed instead of cat because bash on DJGPP gets confused if
  28022. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  28023. # text mode, it properly converts lines to CR/LF. This bash problem
  28024. # is reportedly fixed, but why not run on old versions too?
  28025. sed '$q' "$ltmain" >> "$cfgfile" \
  28026. || (rm -f "$cfgfile"; exit 1)
  28027. mv -f "$cfgfile" "$ofile" ||
  28028. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  28029. chmod +x "$ofile"
  28030. cat <<_LT_EOF >> "$ofile"
  28031. # ### BEGIN LIBTOOL TAG CONFIG: RC
  28032. # The linker used to build libraries.
  28033. LD=$lt_LD_RC
  28034. # How to create reloadable object files.
  28035. reload_flag=$lt_reload_flag_RC
  28036. reload_cmds=$lt_reload_cmds_RC
  28037. # Commands used to build an old-style archive.
  28038. old_archive_cmds=$lt_old_archive_cmds_RC
  28039. # A language specific compiler.
  28040. CC=$lt_compiler_RC
  28041. # Is the compiler the GNU compiler?
  28042. with_gcc=$GCC_RC
  28043. # Compiler flag to turn off builtin functions.
  28044. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  28045. # Additional compiler flags for building library objects.
  28046. pic_flag=$lt_lt_prog_compiler_pic_RC
  28047. # How to pass a linker flag through the compiler.
  28048. wl=$lt_lt_prog_compiler_wl_RC
  28049. # Compiler flag to prevent dynamic linking.
  28050. link_static_flag=$lt_lt_prog_compiler_static_RC
  28051. # Does compiler simultaneously support -c and -o options?
  28052. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  28053. # Whether or not to add -lc for building shared libraries.
  28054. build_libtool_need_lc=$archive_cmds_need_lc_RC
  28055. # Whether or not to disallow shared libs when runtime libs are static.
  28056. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  28057. # Compiler flag to allow reflexive dlopens.
  28058. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  28059. # Compiler flag to generate shared objects directly from archives.
  28060. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  28061. # Whether the compiler copes with passing no objects directly.
  28062. compiler_needs_object=$lt_compiler_needs_object_RC
  28063. # Create an old-style archive from a shared archive.
  28064. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  28065. # Create a temporary old-style archive to link instead of a shared archive.
  28066. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  28067. # Commands used to build a shared archive.
  28068. archive_cmds=$lt_archive_cmds_RC
  28069. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  28070. # Commands used to build a loadable module if different from building
  28071. # a shared archive.
  28072. module_cmds=$lt_module_cmds_RC
  28073. module_expsym_cmds=$lt_module_expsym_cmds_RC
  28074. # Whether we are building with GNU ld or not.
  28075. with_gnu_ld=$lt_with_gnu_ld_RC
  28076. # Flag that allows shared libraries with undefined symbols to be built.
  28077. allow_undefined_flag=$lt_allow_undefined_flag_RC
  28078. # Flag that enforces no undefined symbols.
  28079. no_undefined_flag=$lt_no_undefined_flag_RC
  28080. # Flag to hardcode \$libdir into a binary during linking.
  28081. # This must work even if \$libdir does not exist
  28082. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  28083. # Whether we need a single "-rpath" flag with a separated argument.
  28084. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  28085. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28086. # DIR into the resulting binary.
  28087. hardcode_direct=$hardcode_direct_RC
  28088. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28089. # DIR into the resulting binary and the resulting library dependency is
  28090. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28091. # library is relocated.
  28092. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  28093. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28094. # into the resulting binary.
  28095. hardcode_minus_L=$hardcode_minus_L_RC
  28096. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28097. # into the resulting binary.
  28098. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  28099. # Set to "yes" if building a shared library automatically hardcodes DIR
  28100. # into the library and all subsequent libraries and executables linked
  28101. # against it.
  28102. hardcode_automatic=$hardcode_automatic_RC
  28103. # Set to yes if linker adds runtime paths of dependent libraries
  28104. # to runtime path list.
  28105. inherit_rpath=$inherit_rpath_RC
  28106. # Whether libtool must link a program against all its dependency libraries.
  28107. link_all_deplibs=$link_all_deplibs_RC
  28108. # Set to "yes" if exported symbols are required.
  28109. always_export_symbols=$always_export_symbols_RC
  28110. # The commands to list exported symbols.
  28111. export_symbols_cmds=$lt_export_symbols_cmds_RC
  28112. # Symbols that should not be listed in the preloaded symbols.
  28113. exclude_expsyms=$lt_exclude_expsyms_RC
  28114. # Symbols that must always be exported.
  28115. include_expsyms=$lt_include_expsyms_RC
  28116. # Commands necessary for linking programs (against libraries) with templates.
  28117. prelink_cmds=$lt_prelink_cmds_RC
  28118. # Commands necessary for finishing linking programs.
  28119. postlink_cmds=$lt_postlink_cmds_RC
  28120. # Specify filename containing input files.
  28121. file_list_spec=$lt_file_list_spec_RC
  28122. # How to hardcode a shared library path into an executable.
  28123. hardcode_action=$hardcode_action_RC
  28124. # The directories searched by this compiler when creating a shared library.
  28125. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  28126. # Dependencies to place before and after the objects being linked to
  28127. # create a shared library.
  28128. predep_objects=$lt_predep_objects_RC
  28129. postdep_objects=$lt_postdep_objects_RC
  28130. predeps=$lt_predeps_RC
  28131. postdeps=$lt_postdeps_RC
  28132. # The library search path used internally by the compiler when linking
  28133. # a shared library.
  28134. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  28135. # ### END LIBTOOL TAG CONFIG: RC
  28136. _LT_EOF
  28137. cat <<_LT_EOF >> "$ofile"
  28138. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  28139. # The linker used to build libraries.
  28140. LD=$lt_LD_CXX
  28141. # How to create reloadable object files.
  28142. reload_flag=$lt_reload_flag_CXX
  28143. reload_cmds=$lt_reload_cmds_CXX
  28144. # Commands used to build an old-style archive.
  28145. old_archive_cmds=$lt_old_archive_cmds_CXX
  28146. # A language specific compiler.
  28147. CC=$lt_compiler_CXX
  28148. # Is the compiler the GNU compiler?
  28149. with_gcc=$GCC_CXX
  28150. # Compiler flag to turn off builtin functions.
  28151. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  28152. # Additional compiler flags for building library objects.
  28153. pic_flag=$lt_lt_prog_compiler_pic_CXX
  28154. # How to pass a linker flag through the compiler.
  28155. wl=$lt_lt_prog_compiler_wl_CXX
  28156. # Compiler flag to prevent dynamic linking.
  28157. link_static_flag=$lt_lt_prog_compiler_static_CXX
  28158. # Does compiler simultaneously support -c and -o options?
  28159. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  28160. # Whether or not to add -lc for building shared libraries.
  28161. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  28162. # Whether or not to disallow shared libs when runtime libs are static.
  28163. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  28164. # Compiler flag to allow reflexive dlopens.
  28165. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  28166. # Compiler flag to generate shared objects directly from archives.
  28167. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  28168. # Whether the compiler copes with passing no objects directly.
  28169. compiler_needs_object=$lt_compiler_needs_object_CXX
  28170. # Create an old-style archive from a shared archive.
  28171. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  28172. # Create a temporary old-style archive to link instead of a shared archive.
  28173. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  28174. # Commands used to build a shared archive.
  28175. archive_cmds=$lt_archive_cmds_CXX
  28176. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  28177. # Commands used to build a loadable module if different from building
  28178. # a shared archive.
  28179. module_cmds=$lt_module_cmds_CXX
  28180. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  28181. # Whether we are building with GNU ld or not.
  28182. with_gnu_ld=$lt_with_gnu_ld_CXX
  28183. # Flag that allows shared libraries with undefined symbols to be built.
  28184. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  28185. # Flag that enforces no undefined symbols.
  28186. no_undefined_flag=$lt_no_undefined_flag_CXX
  28187. # Flag to hardcode \$libdir into a binary during linking.
  28188. # This must work even if \$libdir does not exist
  28189. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  28190. # Whether we need a single "-rpath" flag with a separated argument.
  28191. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  28192. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28193. # DIR into the resulting binary.
  28194. hardcode_direct=$hardcode_direct_CXX
  28195. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28196. # DIR into the resulting binary and the resulting library dependency is
  28197. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28198. # library is relocated.
  28199. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  28200. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28201. # into the resulting binary.
  28202. hardcode_minus_L=$hardcode_minus_L_CXX
  28203. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28204. # into the resulting binary.
  28205. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28206. # Set to "yes" if building a shared library automatically hardcodes DIR
  28207. # into the library and all subsequent libraries and executables linked
  28208. # against it.
  28209. hardcode_automatic=$hardcode_automatic_CXX
  28210. # Set to yes if linker adds runtime paths of dependent libraries
  28211. # to runtime path list.
  28212. inherit_rpath=$inherit_rpath_CXX
  28213. # Whether libtool must link a program against all its dependency libraries.
  28214. link_all_deplibs=$link_all_deplibs_CXX
  28215. # Set to "yes" if exported symbols are required.
  28216. always_export_symbols=$always_export_symbols_CXX
  28217. # The commands to list exported symbols.
  28218. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28219. # Symbols that should not be listed in the preloaded symbols.
  28220. exclude_expsyms=$lt_exclude_expsyms_CXX
  28221. # Symbols that must always be exported.
  28222. include_expsyms=$lt_include_expsyms_CXX
  28223. # Commands necessary for linking programs (against libraries) with templates.
  28224. prelink_cmds=$lt_prelink_cmds_CXX
  28225. # Commands necessary for finishing linking programs.
  28226. postlink_cmds=$lt_postlink_cmds_CXX
  28227. # Specify filename containing input files.
  28228. file_list_spec=$lt_file_list_spec_CXX
  28229. # How to hardcode a shared library path into an executable.
  28230. hardcode_action=$hardcode_action_CXX
  28231. # The directories searched by this compiler when creating a shared library.
  28232. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28233. # Dependencies to place before and after the objects being linked to
  28234. # create a shared library.
  28235. predep_objects=$lt_predep_objects_CXX
  28236. postdep_objects=$lt_postdep_objects_CXX
  28237. predeps=$lt_predeps_CXX
  28238. postdeps=$lt_postdeps_CXX
  28239. # The library search path used internally by the compiler when linking
  28240. # a shared library.
  28241. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28242. # ### END LIBTOOL TAG CONFIG: CXX
  28243. _LT_EOF
  28244. ;;
  28245. "sdl2_config":C) chmod a+x sdl2-config ;;
  28246. "summary":C) printf "$SUMMARY" ;;
  28247. esac
  28248. done # for ac_tag
  28249. as_fn_exit 0
  28250. _ACEOF
  28251. ac_clean_files=$ac_clean_files_save
  28252. test $ac_write_fail = 0 ||
  28253. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28254. # configure is writing to config.log, and then calls config.status.
  28255. # config.status does its own redirection, appending to config.log.
  28256. # Unfortunately, on DOS this fails, as config.log is still kept open
  28257. # by configure, so config.status won't be able to write to it; its
  28258. # output is simply discarded. So we exec the FD to /dev/null,
  28259. # effectively closing config.log, so it can be properly (re)opened and
  28260. # appended to by config.status. When coming back to configure, we
  28261. # need to make the FD available again.
  28262. if test "$no_create" != yes; then
  28263. ac_cs_success=:
  28264. ac_config_status_args=
  28265. test "$silent" = yes &&
  28266. ac_config_status_args="$ac_config_status_args --quiet"
  28267. exec 5>/dev/null
  28268. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28269. exec 5>>config.log
  28270. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28271. # would make configure fail if this is the last instruction.
  28272. $ac_cs_success || as_fn_exit 1
  28273. fi
  28274. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28276. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28277. fi