configure 965 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873
  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" "_uitoa" "ac_cv_func__uitoa"
  17072. if test "x$ac_cv_func__uitoa" = xyes
  17073. then :
  17074. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  17075. fi
  17076. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17077. if test "x$ac_cv_func__ultoa" = xyes
  17078. then :
  17079. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17080. fi
  17081. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  17082. if test "x$ac_cv_func_strtod" = xyes
  17083. then :
  17084. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  17085. fi
  17086. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17087. if test "x$ac_cv_func_strtol" = xyes
  17088. then :
  17089. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17090. fi
  17091. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17092. if test "x$ac_cv_func_strtoul" = xyes
  17093. then :
  17094. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17095. fi
  17096. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17097. if test "x$ac_cv_func__i64toa" = xyes
  17098. then :
  17099. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17100. fi
  17101. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17102. if test "x$ac_cv_func__ui64toa" = xyes
  17103. then :
  17104. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17105. fi
  17106. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17107. if test "x$ac_cv_func_strtoll" = xyes
  17108. then :
  17109. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17110. fi
  17111. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17112. if test "x$ac_cv_func_strtoull" = xyes
  17113. then :
  17114. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17115. fi
  17116. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17117. if test "x$ac_cv_func_atoi" = xyes
  17118. then :
  17119. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17120. fi
  17121. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17122. if test "x$ac_cv_func_atof" = xyes
  17123. then :
  17124. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17125. fi
  17126. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17127. if test "x$ac_cv_func_strcmp" = xyes
  17128. then :
  17129. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17130. fi
  17131. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17132. if test "x$ac_cv_func_strncmp" = xyes
  17133. then :
  17134. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17135. fi
  17136. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17137. if test "x$ac_cv_func__stricmp" = xyes
  17138. then :
  17139. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17140. fi
  17141. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17142. if test "x$ac_cv_func_strcasecmp" = xyes
  17143. then :
  17144. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17145. fi
  17146. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17147. if test "x$ac_cv_func__strnicmp" = xyes
  17148. then :
  17149. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17150. fi
  17151. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17152. if test "x$ac_cv_func_strncasecmp" = xyes
  17153. then :
  17154. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17155. fi
  17156. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17157. if test "x$ac_cv_func_strcasestr" = xyes
  17158. then :
  17159. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17160. fi
  17161. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17162. if test "x$ac_cv_func_vsscanf" = xyes
  17163. then :
  17164. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17165. fi
  17166. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17167. if test "x$ac_cv_func_vsnprintf" = xyes
  17168. then :
  17169. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17170. fi
  17171. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17172. if test "x$ac_cv_func_fopen64" = xyes
  17173. then :
  17174. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17175. fi
  17176. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17177. if test "x$ac_cv_func_fseeko" = xyes
  17178. then :
  17179. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17180. fi
  17181. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17182. if test "x$ac_cv_func_fseeko64" = xyes
  17183. then :
  17184. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17185. fi
  17186. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17187. if test "x$ac_cv_func_sigaction" = xyes
  17188. then :
  17189. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17190. fi
  17191. ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait"
  17192. if test "x$ac_cv_func_sigtimedwait" = xyes
  17193. then :
  17194. printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
  17195. fi
  17196. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17197. if test "x$ac_cv_func_setjmp" = xyes
  17198. then :
  17199. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17200. fi
  17201. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17202. if test "x$ac_cv_func_nanosleep" = xyes
  17203. then :
  17204. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17205. fi
  17206. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17207. if test "x$ac_cv_func_sysconf" = xyes
  17208. then :
  17209. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17210. fi
  17211. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17212. if test "x$ac_cv_func_sysctlbyname" = xyes
  17213. then :
  17214. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17215. fi
  17216. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17217. if test "x$ac_cv_func_getauxval" = xyes
  17218. then :
  17219. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17220. fi
  17221. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17222. if test "x$ac_cv_func_elf_aux_info" = xyes
  17223. then :
  17224. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17225. fi
  17226. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17227. if test "x$ac_cv_func_poll" = xyes
  17228. then :
  17229. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17230. fi
  17231. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  17232. if test "x$ac_cv_func_memfd_create" = xyes
  17233. then :
  17234. printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
  17235. fi
  17236. ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  17237. if test "x$ac_cv_func_posix_fallocate" = xyes
  17238. then :
  17239. printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
  17240. fi
  17241. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17242. if test "x$ac_cv_func__Exit" = xyes
  17243. then :
  17244. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17245. fi
  17246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17247. printf %s "checking for pow in -lm... " >&6; }
  17248. if test ${ac_cv_lib_m_pow+y}
  17249. then :
  17250. printf %s "(cached) " >&6
  17251. else $as_nop
  17252. ac_check_lib_save_LIBS=$LIBS
  17253. LIBS="-lm $LIBS"
  17254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17255. /* end confdefs.h. */
  17256. /* Override any GCC internal prototype to avoid an error.
  17257. Use char because int might match the return type of a GCC
  17258. builtin and then its argument prototype would still apply. */
  17259. char pow ();
  17260. int
  17261. main (void)
  17262. {
  17263. return pow ();
  17264. ;
  17265. return 0;
  17266. }
  17267. _ACEOF
  17268. if ac_fn_c_try_link "$LINENO"
  17269. then :
  17270. ac_cv_lib_m_pow=yes
  17271. else $as_nop
  17272. ac_cv_lib_m_pow=no
  17273. fi
  17274. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17275. conftest$ac_exeext conftest.$ac_ext
  17276. LIBS=$ac_check_lib_save_LIBS
  17277. fi
  17278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17279. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17280. if test "x$ac_cv_lib_m_pow" = xyes
  17281. then :
  17282. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17283. fi
  17284. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17285. if test "x$ac_cv_func_acos" = xyes
  17286. then :
  17287. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17288. fi
  17289. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17290. if test "x$ac_cv_func_acosf" = xyes
  17291. then :
  17292. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17293. fi
  17294. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17295. if test "x$ac_cv_func_asin" = xyes
  17296. then :
  17297. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17298. fi
  17299. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17300. if test "x$ac_cv_func_asinf" = xyes
  17301. then :
  17302. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17303. fi
  17304. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17305. if test "x$ac_cv_func_atan" = xyes
  17306. then :
  17307. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17308. fi
  17309. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17310. if test "x$ac_cv_func_atanf" = xyes
  17311. then :
  17312. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17313. fi
  17314. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17315. if test "x$ac_cv_func_atan2" = xyes
  17316. then :
  17317. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17318. fi
  17319. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17320. if test "x$ac_cv_func_atan2f" = xyes
  17321. then :
  17322. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17323. fi
  17324. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17325. if test "x$ac_cv_func_ceil" = xyes
  17326. then :
  17327. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17328. fi
  17329. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17330. if test "x$ac_cv_func_ceilf" = xyes
  17331. then :
  17332. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17333. fi
  17334. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17335. if test "x$ac_cv_func_copysign" = xyes
  17336. then :
  17337. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17338. fi
  17339. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17340. if test "x$ac_cv_func_copysignf" = xyes
  17341. then :
  17342. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17343. fi
  17344. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17345. if test "x$ac_cv_func_cos" = xyes
  17346. then :
  17347. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17348. fi
  17349. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17350. if test "x$ac_cv_func_cosf" = xyes
  17351. then :
  17352. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17353. fi
  17354. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17355. if test "x$ac_cv_func_exp" = xyes
  17356. then :
  17357. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17358. fi
  17359. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17360. if test "x$ac_cv_func_expf" = xyes
  17361. then :
  17362. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17363. fi
  17364. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17365. if test "x$ac_cv_func_fabs" = xyes
  17366. then :
  17367. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17368. fi
  17369. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17370. if test "x$ac_cv_func_fabsf" = xyes
  17371. then :
  17372. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17373. fi
  17374. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17375. if test "x$ac_cv_func_floor" = xyes
  17376. then :
  17377. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17378. fi
  17379. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17380. if test "x$ac_cv_func_floorf" = xyes
  17381. then :
  17382. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17383. fi
  17384. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17385. if test "x$ac_cv_func_trunc" = xyes
  17386. then :
  17387. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17388. fi
  17389. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17390. if test "x$ac_cv_func_truncf" = xyes
  17391. then :
  17392. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17393. fi
  17394. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17395. if test "x$ac_cv_func_fmod" = xyes
  17396. then :
  17397. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17398. fi
  17399. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17400. if test "x$ac_cv_func_fmodf" = xyes
  17401. then :
  17402. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17403. fi
  17404. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17405. if test "x$ac_cv_func_log" = xyes
  17406. then :
  17407. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17408. fi
  17409. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17410. if test "x$ac_cv_func_logf" = xyes
  17411. then :
  17412. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17413. fi
  17414. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17415. if test "x$ac_cv_func_log10" = xyes
  17416. then :
  17417. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17418. fi
  17419. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17420. if test "x$ac_cv_func_log10f" = xyes
  17421. then :
  17422. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17423. fi
  17424. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17425. if test "x$ac_cv_func_lround" = xyes
  17426. then :
  17427. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17428. fi
  17429. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17430. if test "x$ac_cv_func_lroundf" = xyes
  17431. then :
  17432. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17433. fi
  17434. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17435. if test "x$ac_cv_func_pow" = xyes
  17436. then :
  17437. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17438. fi
  17439. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17440. if test "x$ac_cv_func_powf" = xyes
  17441. then :
  17442. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17443. fi
  17444. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17445. if test "x$ac_cv_func_round" = xyes
  17446. then :
  17447. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17448. fi
  17449. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17450. if test "x$ac_cv_func_roundf" = xyes
  17451. then :
  17452. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17453. fi
  17454. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17455. if test "x$ac_cv_func_scalbn" = xyes
  17456. then :
  17457. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17458. fi
  17459. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17460. if test "x$ac_cv_func_scalbnf" = xyes
  17461. then :
  17462. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17463. fi
  17464. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17465. if test "x$ac_cv_func_sin" = xyes
  17466. then :
  17467. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17468. fi
  17469. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17470. if test "x$ac_cv_func_sinf" = xyes
  17471. then :
  17472. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17473. fi
  17474. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17475. if test "x$ac_cv_func_sqrt" = xyes
  17476. then :
  17477. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17478. fi
  17479. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17480. if test "x$ac_cv_func_sqrtf" = xyes
  17481. then :
  17482. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17483. fi
  17484. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17485. if test "x$ac_cv_func_tan" = xyes
  17486. then :
  17487. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17488. fi
  17489. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17490. if test "x$ac_cv_func_tanf" = xyes
  17491. then :
  17492. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17493. fi
  17494. if test x$enable_system_iconv = xyes; then
  17495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libc" >&5
  17496. printf %s "checking for iconv in libc... " >&6; }
  17497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17498. /* end confdefs.h. */
  17499. #define LIBICONV_PLUG 1 /* in case libiconv header is in include path */
  17500. #include <stddef.h>
  17501. #include <iconv.h>
  17502. int
  17503. main (void)
  17504. {
  17505. iconv_open(NULL,NULL);
  17506. ;
  17507. return 0;
  17508. }
  17509. _ACEOF
  17510. if ac_fn_c_try_link "$LINENO"
  17511. then :
  17512. have_libc_iconv=yes
  17513. else $as_nop
  17514. have_libc_iconv=no
  17515. fi
  17516. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17517. conftest$ac_exeext conftest.$ac_ext
  17518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libc_iconv" >&5
  17519. printf "%s\n" "$have_libc_iconv" >&6; }
  17520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libiconv" >&5
  17521. printf %s "checking for iconv in libiconv... " >&6; }
  17522. save_LIBS="$LIBS"
  17523. LIBS="$LIBS -liconv"
  17524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17525. /* end confdefs.h. */
  17526. #include <stddef.h>
  17527. #include <iconv.h>
  17528. int
  17529. main (void)
  17530. {
  17531. iconv_open(NULL,NULL);
  17532. ;
  17533. return 0;
  17534. }
  17535. _ACEOF
  17536. if ac_fn_c_try_link "$LINENO"
  17537. then :
  17538. have_libiconv=yes
  17539. else $as_nop
  17540. have_libiconv=no
  17541. fi
  17542. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17543. conftest$ac_exeext conftest.$ac_ext
  17544. LIBS="$save_LIBS"
  17545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libiconv" >&5
  17546. printf "%s\n" "$have_libiconv" >&6; }
  17547. if test x$have_libc_iconv = xyes || test x$have_libiconv = xyes; then
  17548. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17549. if test x$have_libiconv = xyes; then
  17550. if test x$have_libc_iconv != xyes; then
  17551. use_libiconv=yes
  17552. elif test x$enable_libiconv = xyes; then
  17553. use_libiconv=yes
  17554. fi
  17555. fi
  17556. if test x$use_libiconv = xyes; then
  17557. printf "%s\n" "#define SDL_USE_LIBICONV 1" >>confdefs.h
  17558. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17559. echo "-- Using iconv from libiconv"
  17560. else
  17561. echo "-- Using iconv from libc"
  17562. fi
  17563. fi
  17564. fi
  17565. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17566. "
  17567. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17568. then :
  17569. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17570. fi
  17571. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17572. if test "x$ac_cv_header_libunwind_h" = xyes
  17573. then :
  17574. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17575. fi
  17576. fi
  17577. # Check whether --enable-gcc-atomics was given.
  17578. if test ${enable_gcc_atomics+y}
  17579. then :
  17580. enableval=$enable_gcc_atomics;
  17581. else $as_nop
  17582. enable_gcc_atomics=yes
  17583. fi
  17584. if test x$enable_gcc_atomics = xyes; then
  17585. have_gcc_atomics=no
  17586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17587. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17589. /* end confdefs.h. */
  17590. int
  17591. main (void)
  17592. {
  17593. int a;
  17594. void *x, *y, *z;
  17595. __sync_lock_test_and_set(&a, 4);
  17596. __sync_lock_test_and_set(&x, y);
  17597. __sync_fetch_and_add(&a, 1);
  17598. __sync_bool_compare_and_swap(&a, 5, 10);
  17599. __sync_bool_compare_and_swap(&x, y, z);
  17600. ;
  17601. return 0;
  17602. }
  17603. _ACEOF
  17604. if ac_fn_c_try_link "$LINENO"
  17605. then :
  17606. have_gcc_atomics=yes
  17607. fi
  17608. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17609. conftest$ac_exeext conftest.$ac_ext
  17610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17611. printf "%s\n" "$have_gcc_atomics" >&6; }
  17612. if test x$have_gcc_atomics = xyes; then
  17613. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17614. else
  17615. # See if we have the minimum operation needed for GCC atomics
  17616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17617. /* end confdefs.h. */
  17618. int
  17619. main (void)
  17620. {
  17621. int a;
  17622. __sync_lock_test_and_set(&a, 1);
  17623. __sync_lock_release(&a);
  17624. ;
  17625. return 0;
  17626. }
  17627. _ACEOF
  17628. if ac_fn_c_try_link "$LINENO"
  17629. then :
  17630. have_gcc_sync_lock_test_and_set=yes
  17631. fi
  17632. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17633. conftest$ac_exeext conftest.$ac_ext
  17634. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17635. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17636. fi
  17637. fi
  17638. fi
  17639. # Standard C sources
  17640. SOURCES="$SOURCES $srcdir/src/*.c"
  17641. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17642. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17643. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17644. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17645. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17646. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17647. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17648. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17649. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17650. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17651. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17652. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17653. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17654. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17655. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17656. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17657. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17658. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17659. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17660. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17661. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17662. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17663. case "$host" in
  17664. *-*-emscripten*)
  17665. default_atomic=no
  17666. ;;
  17667. *)
  17668. default_atomic=yes
  17669. ;;
  17670. esac
  17671. # Check whether --enable-atomic was given.
  17672. if test ${enable_atomic+y}
  17673. then :
  17674. enableval=$enable_atomic;
  17675. else $as_nop
  17676. enable_atomic=$default_atomic
  17677. fi
  17678. if test x$enable_atomic != xyes; then
  17679. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17680. else
  17681. SUMMARY_modules="${SUMMARY_modules} atomic"
  17682. fi
  17683. # Check whether --enable-audio was given.
  17684. if test ${enable_audio+y}
  17685. then :
  17686. enableval=$enable_audio;
  17687. else $as_nop
  17688. enable_audio=yes
  17689. fi
  17690. if test x$enable_audio != xyes; then
  17691. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17692. else
  17693. SUMMARY_modules="${SUMMARY_modules} audio"
  17694. fi
  17695. # Check whether --enable-video was given.
  17696. if test ${enable_video+y}
  17697. then :
  17698. enableval=$enable_video;
  17699. else $as_nop
  17700. enable_video=yes
  17701. fi
  17702. if test x$enable_video != xyes; then
  17703. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17704. else
  17705. SUMMARY_modules="${SUMMARY_modules} video"
  17706. fi
  17707. # Check whether --enable-render was given.
  17708. if test ${enable_render+y}
  17709. then :
  17710. enableval=$enable_render;
  17711. else $as_nop
  17712. enable_render=yes
  17713. fi
  17714. if test x$enable_render != xyes; then
  17715. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17716. else
  17717. SUMMARY_modules="${SUMMARY_modules} render"
  17718. fi
  17719. # Check whether --enable-events was given.
  17720. if test ${enable_events+y}
  17721. then :
  17722. enableval=$enable_events;
  17723. else $as_nop
  17724. enable_events=yes
  17725. fi
  17726. if test x$enable_events != xyes; then
  17727. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17728. else
  17729. SUMMARY_modules="${SUMMARY_modules} events"
  17730. fi
  17731. # Check whether --enable-joystick was given.
  17732. if test ${enable_joystick+y}
  17733. then :
  17734. enableval=$enable_joystick;
  17735. else $as_nop
  17736. enable_joystick=yes
  17737. fi
  17738. if test x$enable_joystick != xyes; then
  17739. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17740. else
  17741. SUMMARY_modules="${SUMMARY_modules} joystick"
  17742. fi
  17743. # Check whether --enable-haptic was given.
  17744. if test ${enable_haptic+y}
  17745. then :
  17746. enableval=$enable_haptic;
  17747. else $as_nop
  17748. enable_haptic=yes
  17749. fi
  17750. if test x$enable_haptic != xyes; then
  17751. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17752. else
  17753. SUMMARY_modules="${SUMMARY_modules} haptic"
  17754. fi
  17755. # Check whether --enable-hidapi was given.
  17756. if test ${enable_hidapi+y}
  17757. then :
  17758. enableval=$enable_hidapi;
  17759. else $as_nop
  17760. enable_hidapi=yes
  17761. fi
  17762. if test x$enable_hidapi != xyes; then
  17763. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17764. else
  17765. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17766. fi
  17767. # Check whether --enable-sensor was given.
  17768. if test ${enable_sensor+y}
  17769. then :
  17770. enableval=$enable_sensor;
  17771. else $as_nop
  17772. enable_sensor=yes
  17773. fi
  17774. if test x$enable_sensor != xyes; then
  17775. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17776. else
  17777. SUMMARY_modules="${SUMMARY_modules} sensor"
  17778. fi
  17779. # Check whether --enable-power was given.
  17780. if test ${enable_power+y}
  17781. then :
  17782. enableval=$enable_power;
  17783. else $as_nop
  17784. enable_power=yes
  17785. fi
  17786. if test x$enable_power != xyes; then
  17787. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17788. else
  17789. SUMMARY_modules="${SUMMARY_modules} power"
  17790. fi
  17791. # Check whether --enable-filesystem was given.
  17792. if test ${enable_filesystem+y}
  17793. then :
  17794. enableval=$enable_filesystem;
  17795. else $as_nop
  17796. enable_filesystem=yes
  17797. fi
  17798. if test x$enable_filesystem != xyes; then
  17799. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17800. else
  17801. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17802. fi
  17803. # Many subsystems depend on threads, so leave them enabled by default
  17804. #AC_ARG_ENABLE(threads,
  17805. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17806. # , enable_threads=yes)
  17807. enable_threads=yes
  17808. if test x$enable_threads != xyes; then
  17809. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17810. else
  17811. SUMMARY_modules="${SUMMARY_modules} threads"
  17812. fi
  17813. # Check whether --enable-timers was given.
  17814. if test ${enable_timers+y}
  17815. then :
  17816. enableval=$enable_timers;
  17817. else $as_nop
  17818. enable_timers=yes
  17819. fi
  17820. if test x$enable_timers != xyes; then
  17821. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17822. else
  17823. SUMMARY_modules="${SUMMARY_modules} timers"
  17824. fi
  17825. # Check whether --enable-file was given.
  17826. if test ${enable_file+y}
  17827. then :
  17828. enableval=$enable_file;
  17829. else $as_nop
  17830. enable_file=yes
  17831. fi
  17832. if test x$enable_file != xyes; then
  17833. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17834. else
  17835. SUMMARY_modules="${SUMMARY_modules} file"
  17836. fi
  17837. # Check whether --enable-misc was given.
  17838. if test ${enable_misc+y}
  17839. then :
  17840. enableval=$enable_misc;
  17841. else $as_nop
  17842. enable_misc=yes
  17843. fi
  17844. if test x$enable_misc != xyes; then
  17845. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17846. else
  17847. SUMMARY_modules="${SUMMARY_modules} misc"
  17848. fi
  17849. # Check whether --enable-locale was given.
  17850. if test ${enable_locale+y}
  17851. then :
  17852. enableval=$enable_locale;
  17853. else $as_nop
  17854. enable_locale=yes
  17855. fi
  17856. if test x$enable_locale != xyes; then
  17857. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17858. else
  17859. SUMMARY_modules="${SUMMARY_modules} locale"
  17860. fi
  17861. # Check whether --enable-loadso was given.
  17862. if test ${enable_loadso+y}
  17863. then :
  17864. enableval=$enable_loadso;
  17865. else $as_nop
  17866. enable_loadso=yes
  17867. fi
  17868. if test x$enable_loadso != xyes; then
  17869. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17870. else
  17871. SUMMARY_modules="${SUMMARY_modules} loadso"
  17872. fi
  17873. # Check whether --enable-cpuinfo was given.
  17874. if test ${enable_cpuinfo+y}
  17875. then :
  17876. enableval=$enable_cpuinfo;
  17877. else $as_nop
  17878. enable_cpuinfo=yes
  17879. fi
  17880. if test x$enable_cpuinfo != xyes; then
  17881. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17882. else
  17883. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17884. fi
  17885. # Check whether --enable-assembly was given.
  17886. if test ${enable_assembly+y}
  17887. then :
  17888. enableval=$enable_assembly;
  17889. else $as_nop
  17890. enable_assembly=yes
  17891. fi
  17892. if test x$enable_assembly = xyes; then
  17893. SUMMARY_modules="${SUMMARY_modules} assembly"
  17894. # Make sure that we don't generate floating point code that would
  17895. # cause illegal instruction exceptions on older processors
  17896. case "$host" in
  17897. *-*-darwin*)
  17898. # Don't need to worry about Apple hardware, it's all SSE capable
  17899. default_ssemath=yes
  17900. ;;
  17901. *64-*-*)
  17902. # x86 64-bit architectures all have SSE instructions
  17903. default_ssemath=yes
  17904. ;;
  17905. *)
  17906. default_ssemath=no
  17907. ;;
  17908. esac
  17909. # Check whether --enable-ssemath was given.
  17910. if test ${enable_ssemath+y}
  17911. then :
  17912. enableval=$enable_ssemath;
  17913. else $as_nop
  17914. enable_ssemath=$default_ssemath
  17915. fi
  17916. if test x$enable_ssemath = xno; then
  17917. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17918. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17919. fi
  17920. fi
  17921. # Check whether --enable-mmx was given.
  17922. if test ${enable_mmx+y}
  17923. then :
  17924. enableval=$enable_mmx;
  17925. else $as_nop
  17926. enable_mmx=yes
  17927. fi
  17928. if test x$enable_mmx = xyes; then
  17929. save_CFLAGS="$CFLAGS"
  17930. have_gcc_mmx=no
  17931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17932. printf %s "checking for GCC -mmmx option... " >&6; }
  17933. mmx_CFLAGS="-mmmx"
  17934. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17936. /* end confdefs.h. */
  17937. #ifdef __MINGW32__
  17938. #include <_mingw.h>
  17939. #ifdef __MINGW64_VERSION_MAJOR
  17940. #include <intrin.h>
  17941. #else
  17942. #include <mmintrin.h>
  17943. #endif
  17944. #else
  17945. #include <mmintrin.h>
  17946. #endif
  17947. #ifndef __MMX__
  17948. #error Assembler CPP flag not enabled
  17949. #endif
  17950. int
  17951. main (void)
  17952. {
  17953. ;
  17954. return 0;
  17955. }
  17956. _ACEOF
  17957. if ac_fn_c_try_compile "$LINENO"
  17958. then :
  17959. have_gcc_mmx=yes
  17960. fi
  17961. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17963. printf "%s\n" "$have_gcc_mmx" >&6; }
  17964. CFLAGS="$save_CFLAGS"
  17965. if test x$have_gcc_mmx = xyes; then
  17966. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17967. SUMMARY_math="${SUMMARY_math} mmx"
  17968. fi
  17969. fi
  17970. # Check whether --enable-3dnow was given.
  17971. if test ${enable_3dnow+y}
  17972. then :
  17973. enableval=$enable_3dnow;
  17974. else $as_nop
  17975. enable_3dnow=no
  17976. fi
  17977. if test x$enable_3dnow = xyes; then
  17978. save_CFLAGS="$CFLAGS"
  17979. have_gcc_3dnow=no
  17980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17981. printf %s "checking for GCC -m3dnow option... " >&6; }
  17982. amd3dnow_CFLAGS="-m3dnow"
  17983. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17985. /* end confdefs.h. */
  17986. #include <mm3dnow.h>
  17987. #ifndef __3dNOW__
  17988. #error Assembler CPP flag not enabled
  17989. #endif
  17990. int
  17991. main (void)
  17992. {
  17993. void *p = 0;
  17994. _m_prefetch(p);
  17995. ;
  17996. return 0;
  17997. }
  17998. _ACEOF
  17999. if ac_fn_c_try_link "$LINENO"
  18000. then :
  18001. have_gcc_3dnow=yes
  18002. fi
  18003. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18004. conftest$ac_exeext conftest.$ac_ext
  18005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  18006. printf "%s\n" "$have_gcc_3dnow" >&6; }
  18007. CFLAGS="$save_CFLAGS"
  18008. if test x$have_gcc_3dnow = xyes; then
  18009. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  18010. SUMMARY_math="${SUMMARY_math} 3dnow"
  18011. fi
  18012. fi
  18013. # Check whether --enable-sse was given.
  18014. if test ${enable_sse+y}
  18015. then :
  18016. enableval=$enable_sse;
  18017. else $as_nop
  18018. enable_sse=yes
  18019. fi
  18020. if test x$enable_sse = xyes; then
  18021. save_CFLAGS="$CFLAGS"
  18022. have_gcc_sse=no
  18023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  18024. printf %s "checking for GCC -msse option... " >&6; }
  18025. sse_CFLAGS="-msse"
  18026. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  18027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18028. /* end confdefs.h. */
  18029. #ifdef __MINGW32__
  18030. #include <_mingw.h>
  18031. #ifdef __MINGW64_VERSION_MAJOR
  18032. #include <intrin.h>
  18033. #else
  18034. #include <xmmintrin.h>
  18035. #endif
  18036. #else
  18037. #include <xmmintrin.h>
  18038. #endif
  18039. #ifndef __SSE__
  18040. #error Assembler CPP flag not enabled
  18041. #endif
  18042. int
  18043. main (void)
  18044. {
  18045. ;
  18046. return 0;
  18047. }
  18048. _ACEOF
  18049. if ac_fn_c_try_compile "$LINENO"
  18050. then :
  18051. have_gcc_sse=yes
  18052. fi
  18053. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  18055. printf "%s\n" "$have_gcc_sse" >&6; }
  18056. CFLAGS="$save_CFLAGS"
  18057. if test x$have_gcc_sse = xyes; then
  18058. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  18059. SUMMARY_math="${SUMMARY_math} sse"
  18060. fi
  18061. fi
  18062. # Check whether --enable-sse2 was given.
  18063. if test ${enable_sse2+y}
  18064. then :
  18065. enableval=$enable_sse2;
  18066. else $as_nop
  18067. enable_sse2=$default_ssemath
  18068. fi
  18069. if test x$enable_sse2 = xyes; then
  18070. save_CFLAGS="$CFLAGS"
  18071. have_gcc_sse2=no
  18072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  18073. printf %s "checking for GCC -msse2 option... " >&6; }
  18074. sse2_CFLAGS="-msse2"
  18075. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  18076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18077. /* end confdefs.h. */
  18078. #ifdef __MINGW32__
  18079. #include <_mingw.h>
  18080. #ifdef __MINGW64_VERSION_MAJOR
  18081. #include <intrin.h>
  18082. #else
  18083. #include <emmintrin.h>
  18084. #endif
  18085. #else
  18086. #include <emmintrin.h>
  18087. #endif
  18088. #ifndef __SSE2__
  18089. #error Assembler CPP flag not enabled
  18090. #endif
  18091. int
  18092. main (void)
  18093. {
  18094. ;
  18095. return 0;
  18096. }
  18097. _ACEOF
  18098. if ac_fn_c_try_compile "$LINENO"
  18099. then :
  18100. have_gcc_sse2=yes
  18101. fi
  18102. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  18104. printf "%s\n" "$have_gcc_sse2" >&6; }
  18105. CFLAGS="$save_CFLAGS"
  18106. if test x$have_gcc_sse2 = xyes; then
  18107. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  18108. SUMMARY_math="${SUMMARY_math} sse2"
  18109. fi
  18110. fi
  18111. # Check whether --enable-sse3 was given.
  18112. if test ${enable_sse3+y}
  18113. then :
  18114. enableval=$enable_sse3;
  18115. else $as_nop
  18116. enable_sse3=$default_ssemath
  18117. fi
  18118. if test x$enable_sse3 = xyes; then
  18119. save_CFLAGS="$CFLAGS"
  18120. have_gcc_sse3=no
  18121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  18122. printf %s "checking for GCC -msse3 option... " >&6; }
  18123. sse3_CFLAGS="-msse3"
  18124. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18126. /* end confdefs.h. */
  18127. #ifdef __MINGW32__
  18128. #include <_mingw.h>
  18129. #ifdef __MINGW64_VERSION_MAJOR
  18130. #include <intrin.h>
  18131. #else
  18132. #include <pmmintrin.h>
  18133. #endif
  18134. #else
  18135. #include <pmmintrin.h>
  18136. #endif
  18137. #ifndef __SSE2__
  18138. #error Assembler CPP flag not enabled
  18139. #endif
  18140. int
  18141. main (void)
  18142. {
  18143. ;
  18144. return 0;
  18145. }
  18146. _ACEOF
  18147. if ac_fn_c_try_compile "$LINENO"
  18148. then :
  18149. have_gcc_sse3=yes
  18150. fi
  18151. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18153. printf "%s\n" "$have_gcc_sse3" >&6; }
  18154. CFLAGS="$save_CFLAGS"
  18155. if test x$have_gcc_sse3 = xyes; then
  18156. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18157. SUMMARY_math="${SUMMARY_math} sse3"
  18158. fi
  18159. fi
  18160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18161. printf %s "checking for immintrin.h... " >&6; }
  18162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18163. /* end confdefs.h. */
  18164. #include <immintrin.h>
  18165. int
  18166. main (void)
  18167. {
  18168. ;
  18169. return 0;
  18170. }
  18171. _ACEOF
  18172. if ac_fn_c_try_compile "$LINENO"
  18173. then :
  18174. have_immintrin_h_hdr=yes
  18175. else $as_nop
  18176. have_immintrin_h_hdr=no
  18177. fi
  18178. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18180. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18181. if test x$have_immintrin_h_hdr = xyes; then
  18182. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18183. fi
  18184. # Check whether --enable-altivec was given.
  18185. if test ${enable_altivec+y}
  18186. then :
  18187. enableval=$enable_altivec;
  18188. else $as_nop
  18189. enable_altivec=yes
  18190. fi
  18191. if test x$enable_altivec = xyes; then
  18192. save_CFLAGS="$CFLAGS"
  18193. have_gcc_altivec=no
  18194. have_altivec_h_hdr=no
  18195. altivec_CFLAGS="-maltivec"
  18196. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18198. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18200. /* end confdefs.h. */
  18201. #include <altivec.h>
  18202. vector unsigned int vzero() {
  18203. return vec_splat_u32(0);
  18204. }
  18205. int
  18206. main (void)
  18207. {
  18208. ;
  18209. return 0;
  18210. }
  18211. _ACEOF
  18212. if ac_fn_c_try_compile "$LINENO"
  18213. then :
  18214. have_gcc_altivec=yes
  18215. have_altivec_h_hdr=yes
  18216. fi
  18217. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18219. printf "%s\n" "$have_gcc_altivec" >&6; }
  18220. if test x$have_gcc_altivec = xno; then
  18221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18222. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18224. /* end confdefs.h. */
  18225. vector unsigned int vzero() {
  18226. return vec_splat_u32(0);
  18227. }
  18228. int
  18229. main (void)
  18230. {
  18231. ;
  18232. return 0;
  18233. }
  18234. _ACEOF
  18235. if ac_fn_c_try_compile "$LINENO"
  18236. then :
  18237. have_gcc_altivec=yes
  18238. fi
  18239. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18241. printf "%s\n" "$have_gcc_altivec" >&6; }
  18242. fi
  18243. if test x$have_gcc_altivec = xno; then
  18244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18245. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18246. altivec_CFLAGS="-faltivec"
  18247. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18249. /* end confdefs.h. */
  18250. #include <altivec.h>
  18251. vector unsigned int vzero() {
  18252. return vec_splat_u32(0);
  18253. }
  18254. int
  18255. main (void)
  18256. {
  18257. ;
  18258. return 0;
  18259. }
  18260. _ACEOF
  18261. if ac_fn_c_try_compile "$LINENO"
  18262. then :
  18263. have_gcc_altivec=yes
  18264. have_altivec_h_hdr=yes
  18265. fi
  18266. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18268. printf "%s\n" "$have_gcc_altivec" >&6; }
  18269. fi
  18270. if test x$have_gcc_altivec = xno; then
  18271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18272. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18274. /* end confdefs.h. */
  18275. vector unsigned int vzero() {
  18276. return vec_splat_u32(0);
  18277. }
  18278. int
  18279. main (void)
  18280. {
  18281. ;
  18282. return 0;
  18283. }
  18284. _ACEOF
  18285. if ac_fn_c_try_compile "$LINENO"
  18286. then :
  18287. have_gcc_altivec=yes
  18288. fi
  18289. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18291. printf "%s\n" "$have_gcc_altivec" >&6; }
  18292. fi
  18293. CFLAGS="$save_CFLAGS"
  18294. if test x$have_gcc_altivec = xyes; then
  18295. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18296. if test x$have_altivec_h_hdr = xyes; then
  18297. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18298. fi
  18299. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18300. SUMMARY_math="${SUMMARY_math} altivec"
  18301. fi
  18302. fi
  18303. fi
  18304. # Check whether --enable-lsx was given.
  18305. if test ${enable_lsx+y}
  18306. then :
  18307. enableval=$enable_lsx;
  18308. else $as_nop
  18309. enable_lsx=yes
  18310. fi
  18311. if test x$enable_lsx = xyes; then
  18312. save_CFLAGS="$CFLAGS"
  18313. have_gcc_lsx=no
  18314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18315. printf %s "checking for GCC -mlsx option... " >&6; }
  18316. lsx_CFLAGS="-mlsx"
  18317. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18319. /* end confdefs.h. */
  18320. #ifndef __loongarch_sx
  18321. #error Assembler CPP flag not enabled
  18322. #endif
  18323. int
  18324. main (void)
  18325. {
  18326. ;
  18327. return 0;
  18328. }
  18329. _ACEOF
  18330. if ac_fn_c_try_compile "$LINENO"
  18331. then :
  18332. have_gcc_lsx=yes
  18333. fi
  18334. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18336. printf "%s\n" "$have_gcc_lsx" >&6; }
  18337. CFLAGS="$save_CFLAGS"
  18338. if test x$have_gcc_lsx = xyes; then
  18339. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18340. SUMMARY_math="${SUMMARY_math} lsx"
  18341. fi
  18342. fi
  18343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18344. printf %s "checking for lsxintrin.h... " >&6; }
  18345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18346. /* end confdefs.h. */
  18347. #include <lsxintrin.h>
  18348. int
  18349. main (void)
  18350. {
  18351. ;
  18352. return 0;
  18353. }
  18354. _ACEOF
  18355. if ac_fn_c_try_compile "$LINENO"
  18356. then :
  18357. have_lsxintrin_h_hdr=yes
  18358. else $as_nop
  18359. have_lsxintrin_h_hdr=no
  18360. fi
  18361. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18363. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18364. if test x$have_lsxintrin_h_hdr = xyes; then
  18365. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18366. fi
  18367. CheckOSS()
  18368. {
  18369. # Check whether --enable-oss was given.
  18370. if test ${enable_oss+y}
  18371. then :
  18372. enableval=$enable_oss;
  18373. else $as_nop
  18374. enable_oss=maybe
  18375. fi
  18376. if test x$enable_oss = xmaybe; then
  18377. enable_oss=yes
  18378. fi
  18379. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18381. printf %s "checking for OSS audio support... " >&6; }
  18382. have_oss=no
  18383. if test x$have_oss != xyes; then
  18384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18385. /* end confdefs.h. */
  18386. #include <sys/soundcard.h>
  18387. int
  18388. main (void)
  18389. {
  18390. int arg = SNDCTL_DSP_SETFRAGMENT;
  18391. ;
  18392. return 0;
  18393. }
  18394. _ACEOF
  18395. if ac_fn_c_try_compile "$LINENO"
  18396. then :
  18397. have_oss=yes
  18398. fi
  18399. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18400. fi
  18401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18402. printf "%s\n" "$have_oss" >&6; }
  18403. if test x$have_oss = xyes; then
  18404. SUMMARY_audio="${SUMMARY_audio} oss"
  18405. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18406. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18407. have_audio=yes
  18408. # We may need to link with ossaudio emulation library
  18409. case "$host" in
  18410. *-*-netbsd*)
  18411. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18412. esac
  18413. fi
  18414. fi
  18415. }
  18416. CheckALSA()
  18417. {
  18418. # Check whether --enable-alsa was given.
  18419. if test ${enable_alsa+y}
  18420. then :
  18421. enableval=$enable_alsa;
  18422. else $as_nop
  18423. enable_alsa=yes
  18424. fi
  18425. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18426. alsa_save_CFLAGS="$CFLAGS"
  18427. alsa_save_LDFLAGS="$LDFLAGS"
  18428. alsa_save_LIBS="$LIBS"
  18429. alsa_found=yes
  18430. # Check whether --with-alsa-prefix was given.
  18431. if test ${with_alsa_prefix+y}
  18432. then :
  18433. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18434. else $as_nop
  18435. alsa_prefix=""
  18436. fi
  18437. # Check whether --with-alsa-inc-prefix was given.
  18438. if test ${with_alsa_inc_prefix+y}
  18439. then :
  18440. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18441. else $as_nop
  18442. alsa_inc_prefix=""
  18443. fi
  18444. # Check whether --enable-alsatest was given.
  18445. if test ${enable_alsatest+y}
  18446. then :
  18447. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18448. else $as_nop
  18449. enable_alsatest=yes
  18450. fi
  18451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18452. printf %s "checking for ALSA CFLAGS... " >&6; }
  18453. if test "$alsa_inc_prefix" != "" ; then
  18454. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18455. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18456. fi
  18457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18458. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18460. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18461. if test "$alsa_prefix" != "" ; then
  18462. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18463. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18464. fi
  18465. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18466. LIBS=`echo $LIBS | sed 's/-lm//'`
  18467. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18468. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18469. LIBS=`echo $LIBS | sed 's/ //'`
  18470. LIBS="$ALSA_LIBS $LIBS"
  18471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18472. printf "%s\n" "$ALSA_LIBS" >&6; }
  18473. min_alsa_version=1.0.11
  18474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18475. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18476. no_alsa=""
  18477. alsa_min_major_version=`echo $min_alsa_version | \
  18478. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18479. alsa_min_minor_version=`echo $min_alsa_version | \
  18480. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18481. alsa_min_micro_version=`echo $min_alsa_version | \
  18482. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18483. ac_ext=c
  18484. ac_cpp='$CPP $CPPFLAGS'
  18485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18489. /* end confdefs.h. */
  18490. #include <alsa/asoundlib.h>
  18491. int
  18492. main (void)
  18493. {
  18494. /* ensure backward compatibility */
  18495. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18496. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18497. #endif
  18498. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18499. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18500. #endif
  18501. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18502. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18503. #endif
  18504. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18505. exit(0);
  18506. # else
  18507. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18508. # error not present
  18509. # endif
  18510. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18511. exit(0);
  18512. # else
  18513. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18514. # error not present
  18515. # endif
  18516. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18517. # error not present
  18518. # endif
  18519. # endif
  18520. # endif
  18521. exit(0);
  18522. ;
  18523. return 0;
  18524. }
  18525. _ACEOF
  18526. if ac_fn_c_try_compile "$LINENO"
  18527. then :
  18528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18529. printf "%s\n" "found." >&6; }
  18530. else $as_nop
  18531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18532. printf "%s\n" "not present." >&6; }
  18533. alsa_found=no
  18534. fi
  18535. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18536. ac_ext=c
  18537. ac_cpp='$CPP $CPPFLAGS'
  18538. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18539. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18540. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18541. if test "x$enable_alsatest" = "xyes"; then
  18542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18543. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18544. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18545. then :
  18546. printf %s "(cached) " >&6
  18547. else $as_nop
  18548. ac_check_lib_save_LIBS=$LIBS
  18549. LIBS="-lasound $LIBS"
  18550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18551. /* end confdefs.h. */
  18552. /* Override any GCC internal prototype to avoid an error.
  18553. Use char because int might match the return type of a GCC
  18554. builtin and then its argument prototype would still apply. */
  18555. char snd_ctl_open ();
  18556. int
  18557. main (void)
  18558. {
  18559. return snd_ctl_open ();
  18560. ;
  18561. return 0;
  18562. }
  18563. _ACEOF
  18564. if ac_fn_c_try_link "$LINENO"
  18565. then :
  18566. ac_cv_lib_asound_snd_ctl_open=yes
  18567. else $as_nop
  18568. ac_cv_lib_asound_snd_ctl_open=no
  18569. fi
  18570. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18571. conftest$ac_exeext conftest.$ac_ext
  18572. LIBS=$ac_check_lib_save_LIBS
  18573. fi
  18574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18575. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18576. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18577. then :
  18578. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18579. LIBS="-lasound $LIBS"
  18580. else $as_nop
  18581. alsa_found=no
  18582. fi
  18583. fi
  18584. if test "x$alsa_found" = "xyes" ; then
  18585. have_alsa=yes
  18586. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18587. LIBS=`echo $LIBS | sed 's/ //'`
  18588. LIBS="-lasound $LIBS"
  18589. fi
  18590. if test "x$alsa_found" = "xno" ; then
  18591. have_alsa=no
  18592. CFLAGS="$alsa_save_CFLAGS"
  18593. LDFLAGS="$alsa_save_LDFLAGS"
  18594. LIBS="$alsa_save_LIBS"
  18595. ALSA_CFLAGS=""
  18596. ALSA_LIBS=""
  18597. fi
  18598. # Restore all flags from before the ALSA detection runs
  18599. CFLAGS="$alsa_save_CFLAGS"
  18600. LDFLAGS="$alsa_save_LDFLAGS"
  18601. LIBS="$alsa_save_LIBS"
  18602. if test x$have_alsa = xyes; then
  18603. # Check whether --enable-alsa-shared was given.
  18604. if test ${enable_alsa_shared+y}
  18605. then :
  18606. enableval=$enable_alsa_shared;
  18607. else $as_nop
  18608. enable_alsa_shared=yes
  18609. fi
  18610. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18611. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18612. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18613. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18614. if test x$have_loadso != xyes && \
  18615. test x$enable_alsa_shared = xyes; then
  18616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18617. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18618. fi
  18619. if test x$have_loadso = xyes && \
  18620. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18621. echo "-- dynamic libasound -> $alsa_lib"
  18622. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18623. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18624. else
  18625. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18626. SUMMARY_audio="${SUMMARY_audio} alsa"
  18627. fi
  18628. have_audio=yes
  18629. fi
  18630. fi
  18631. }
  18632. CheckJACK()
  18633. {
  18634. # Check whether --enable-jack was given.
  18635. if test ${enable_jack+y}
  18636. then :
  18637. enableval=$enable_jack;
  18638. else $as_nop
  18639. enable_jack=yes
  18640. fi
  18641. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18642. pkg_failed=no
  18643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18644. printf %s "checking for jack >= 0.125... " >&6; }
  18645. if test -n "$JACK_CFLAGS"; then
  18646. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18647. elif test -n "$PKG_CONFIG"; then
  18648. if test -n "$PKG_CONFIG" && \
  18649. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18650. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18651. ac_status=$?
  18652. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18653. test $ac_status = 0; }; then
  18654. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18655. test "x$?" != "x0" && pkg_failed=yes
  18656. else
  18657. pkg_failed=yes
  18658. fi
  18659. else
  18660. pkg_failed=untried
  18661. fi
  18662. if test -n "$JACK_LIBS"; then
  18663. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18664. elif test -n "$PKG_CONFIG"; then
  18665. if test -n "$PKG_CONFIG" && \
  18666. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18667. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18668. ac_status=$?
  18669. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18670. test $ac_status = 0; }; then
  18671. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18672. test "x$?" != "x0" && pkg_failed=yes
  18673. else
  18674. pkg_failed=yes
  18675. fi
  18676. else
  18677. pkg_failed=untried
  18678. fi
  18679. if test $pkg_failed = yes; then
  18680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18681. printf "%s\n" "no" >&6; }
  18682. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18683. _pkg_short_errors_supported=yes
  18684. else
  18685. _pkg_short_errors_supported=no
  18686. fi
  18687. if test $_pkg_short_errors_supported = yes; then
  18688. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18689. else
  18690. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18691. fi
  18692. # Put the nasty error message in config.log where it belongs
  18693. echo "$JACK_PKG_ERRORS" >&5
  18694. audio_jack=no
  18695. elif test $pkg_failed = untried; then
  18696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18697. printf "%s\n" "no" >&6; }
  18698. audio_jack=no
  18699. else
  18700. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18701. JACK_LIBS=$pkg_cv_JACK_LIBS
  18702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18703. printf "%s\n" "yes" >&6; }
  18704. audio_jack=yes
  18705. fi
  18706. if test x$audio_jack = xyes; then
  18707. # Check whether --enable-jack-shared was given.
  18708. if test ${enable_jack_shared+y}
  18709. then :
  18710. enableval=$enable_jack_shared;
  18711. else $as_nop
  18712. enable_jack_shared=yes
  18713. fi
  18714. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18715. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18716. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18717. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18718. if test x$have_loadso != xyes && \
  18719. test x$enable_jack_shared = xyes; then
  18720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18721. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18722. fi
  18723. if test x$have_loadso = xyes && \
  18724. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18725. echo "-- dynamic libjack -> $jack_lib"
  18726. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18727. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18728. case "$host" in
  18729. # On Solaris, jack must be linked deferred explicitly
  18730. # to prevent undefined symbol failures.
  18731. *-*-solaris*)
  18732. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18733. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18734. esac
  18735. else
  18736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18737. SUMMARY_audio="${SUMMARY_audio} jack"
  18738. fi
  18739. have_audio=yes
  18740. fi
  18741. fi
  18742. }
  18743. CheckESD()
  18744. {
  18745. # Check whether --enable-esd was given.
  18746. if test ${enable_esd+y}
  18747. then :
  18748. enableval=$enable_esd;
  18749. else $as_nop
  18750. enable_esd=yes
  18751. fi
  18752. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18753. pkg_failed=no
  18754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18755. printf %s "checking for esound >= 0.2.8... " >&6; }
  18756. if test -n "$ESD_CFLAGS"; then
  18757. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18758. elif test -n "$PKG_CONFIG"; then
  18759. if test -n "$PKG_CONFIG" && \
  18760. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18761. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18762. ac_status=$?
  18763. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18764. test $ac_status = 0; }; then
  18765. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18766. test "x$?" != "x0" && pkg_failed=yes
  18767. else
  18768. pkg_failed=yes
  18769. fi
  18770. else
  18771. pkg_failed=untried
  18772. fi
  18773. if test -n "$ESD_LIBS"; then
  18774. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18775. elif test -n "$PKG_CONFIG"; then
  18776. if test -n "$PKG_CONFIG" && \
  18777. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18778. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18779. ac_status=$?
  18780. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18781. test $ac_status = 0; }; then
  18782. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18783. test "x$?" != "x0" && pkg_failed=yes
  18784. else
  18785. pkg_failed=yes
  18786. fi
  18787. else
  18788. pkg_failed=untried
  18789. fi
  18790. if test $pkg_failed = yes; then
  18791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18792. printf "%s\n" "no" >&6; }
  18793. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18794. _pkg_short_errors_supported=yes
  18795. else
  18796. _pkg_short_errors_supported=no
  18797. fi
  18798. if test $_pkg_short_errors_supported = yes; then
  18799. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18800. else
  18801. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18802. fi
  18803. # Put the nasty error message in config.log where it belongs
  18804. echo "$ESD_PKG_ERRORS" >&5
  18805. have_esd=no
  18806. elif test $pkg_failed = untried; then
  18807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18808. printf "%s\n" "no" >&6; }
  18809. have_esd=no
  18810. else
  18811. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18812. ESD_LIBS=$pkg_cv_ESD_LIBS
  18813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18814. printf "%s\n" "yes" >&6; }
  18815. have_esd=yes
  18816. fi
  18817. if test x$have_esd = xno; then
  18818. # Check whether --with-esd-prefix was given.
  18819. if test ${with_esd_prefix+y}
  18820. then :
  18821. withval=$with_esd_prefix; esd_prefix="$withval"
  18822. else $as_nop
  18823. esd_prefix=""
  18824. fi
  18825. # Check whether --with-esd-exec-prefix was given.
  18826. if test ${with_esd_exec_prefix+y}
  18827. then :
  18828. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18829. else $as_nop
  18830. esd_exec_prefix=""
  18831. fi
  18832. # Check whether --enable-esdtest was given.
  18833. if test ${enable_esdtest+y}
  18834. then :
  18835. enableval=$enable_esdtest;
  18836. else $as_nop
  18837. enable_esdtest=yes
  18838. fi
  18839. if test x$esd_exec_prefix != x ; then
  18840. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18841. if test x${ESD_CONFIG+set} != xset ; then
  18842. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18843. fi
  18844. fi
  18845. if test x$esd_prefix != x ; then
  18846. esd_args="$esd_args --prefix=$esd_prefix"
  18847. if test x${ESD_CONFIG+set} != xset ; then
  18848. ESD_CONFIG=$esd_prefix/bin/esd-config
  18849. fi
  18850. fi
  18851. # Extract the first word of "esd-config", so it can be a program name with args.
  18852. set dummy esd-config; ac_word=$2
  18853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18854. printf %s "checking for $ac_word... " >&6; }
  18855. if test ${ac_cv_path_ESD_CONFIG+y}
  18856. then :
  18857. printf %s "(cached) " >&6
  18858. else $as_nop
  18859. case $ESD_CONFIG in
  18860. [\\/]* | ?:[\\/]*)
  18861. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18862. ;;
  18863. *)
  18864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18865. for as_dir in $PATH
  18866. do
  18867. IFS=$as_save_IFS
  18868. case $as_dir in #(((
  18869. '') as_dir=./ ;;
  18870. */) ;;
  18871. *) as_dir=$as_dir/ ;;
  18872. esac
  18873. for ac_exec_ext in '' $ac_executable_extensions; do
  18874. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18875. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18876. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18877. break 2
  18878. fi
  18879. done
  18880. done
  18881. IFS=$as_save_IFS
  18882. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18883. ;;
  18884. esac
  18885. fi
  18886. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18887. if test -n "$ESD_CONFIG"; then
  18888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18889. printf "%s\n" "$ESD_CONFIG" >&6; }
  18890. else
  18891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18892. printf "%s\n" "no" >&6; }
  18893. fi
  18894. min_esd_version=0.2.8
  18895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18896. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18897. no_esd=""
  18898. if test "$ESD_CONFIG" = "no" ; then
  18899. no_esd=yes
  18900. else
  18901. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18902. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18903. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18904. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18905. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18906. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18907. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18908. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18909. if test "x$enable_esdtest" = "xyes" ; then
  18910. ac_ext=c
  18911. ac_cpp='$CPP $CPPFLAGS'
  18912. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18913. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18914. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18915. ac_save_CFLAGS="$CFLAGS"
  18916. ac_save_LIBS="$LIBS"
  18917. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18918. LIBS="$LIBS $ESD_LIBS"
  18919. rm -f conf.esdtest
  18920. if test "$cross_compiling" = yes
  18921. then :
  18922. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18923. else $as_nop
  18924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18925. /* end confdefs.h. */
  18926. #include <stdio.h>
  18927. #include <stdlib.h>
  18928. #include <esd.h>
  18929. int main (void)
  18930. {
  18931. int major, minor, micro;
  18932. FILE *fp = fopen("conf.esdtest", "w");
  18933. if (fp) fclose(fp);
  18934. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18935. printf("%s, bad version string\n", "$min_esd_version");
  18936. exit(1);
  18937. }
  18938. if (($esd_major_version > major) ||
  18939. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18940. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18941. {
  18942. return 0;
  18943. }
  18944. else
  18945. {
  18946. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18947. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18948. printf("*** best to upgrade to the required version.\n");
  18949. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18950. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18951. printf("*** config.cache before re-running configure\n");
  18952. return 1;
  18953. }
  18954. }
  18955. _ACEOF
  18956. if ac_fn_c_try_run "$LINENO"
  18957. then :
  18958. else $as_nop
  18959. no_esd=yes
  18960. fi
  18961. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18962. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18963. fi
  18964. CFLAGS="$ac_save_CFLAGS"
  18965. LIBS="$ac_save_LIBS"
  18966. ac_ext=c
  18967. ac_cpp='$CPP $CPPFLAGS'
  18968. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18969. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18970. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18971. fi
  18972. fi
  18973. if test "x$no_esd" = x ; then
  18974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18975. printf "%s\n" "yes" >&6; }
  18976. have_esd=yes
  18977. else
  18978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18979. printf "%s\n" "no" >&6; }
  18980. if test "$ESD_CONFIG" = "no" ; then
  18981. :
  18982. else
  18983. if test -f conf.esdtest ; then
  18984. :
  18985. else
  18986. echo "*** Could not run ESD test program, checking why..."
  18987. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18988. LIBS="$LIBS $ESD_LIBS"
  18989. ac_ext=c
  18990. ac_cpp='$CPP $CPPFLAGS'
  18991. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18992. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18993. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18995. /* end confdefs.h. */
  18996. #include <stdio.h>
  18997. #include <esd.h>
  18998. int
  18999. main (void)
  19000. {
  19001. return 0;
  19002. ;
  19003. return 0;
  19004. }
  19005. _ACEOF
  19006. if ac_fn_c_try_link "$LINENO"
  19007. then :
  19008. echo "*** The test program compiled, but did not run. This usually means"
  19009. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  19010. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  19011. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  19012. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  19013. echo "*** is required on your system"
  19014. echo "***"
  19015. echo "*** If you have an old version installed, it is best to remove it, although"
  19016. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  19017. else $as_nop
  19018. echo "*** The test program failed to compile or link. See the file config.log for the"
  19019. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  19020. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  19021. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  19022. fi
  19023. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19024. conftest$ac_exeext conftest.$ac_ext
  19025. CFLAGS="$ac_save_CFLAGS"
  19026. LIBS="$ac_save_LIBS"
  19027. ac_ext=c
  19028. ac_cpp='$CPP $CPPFLAGS'
  19029. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19030. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19031. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19032. fi
  19033. fi
  19034. ESD_CFLAGS=""
  19035. ESD_LIBS=""
  19036. have_esd=no
  19037. fi
  19038. rm -f conf.esdtest
  19039. fi
  19040. if test x$have_esd = xyes; then
  19041. # Check whether --enable-esd-shared was given.
  19042. if test ${enable_esd_shared+y}
  19043. then :
  19044. enableval=$enable_esd_shared;
  19045. else $as_nop
  19046. enable_esd_shared=yes
  19047. fi
  19048. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19049. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  19050. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  19051. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  19052. if test x$have_loadso != xyes && \
  19053. test x$enable_esd_shared = xyes; then
  19054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  19055. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  19056. fi
  19057. if test x$have_loadso = xyes && \
  19058. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  19059. echo "-- dynamic libesd -> $esd_lib"
  19060. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  19061. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  19062. else
  19063. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  19064. SUMMARY_audio="${SUMMARY_audio} esd"
  19065. fi
  19066. have_audio=yes
  19067. fi
  19068. fi
  19069. }
  19070. CheckPipewire()
  19071. {
  19072. # Check whether --enable-pipewire was given.
  19073. if test ${enable_pipewire+y}
  19074. then :
  19075. enableval=$enable_pipewire;
  19076. else $as_nop
  19077. enable_pipewire=yes
  19078. fi
  19079. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19080. pkg_failed=no
  19081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19082. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19083. if test -n "$PIPEWIRE_CFLAGS"; then
  19084. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19085. elif test -n "$PKG_CONFIG"; then
  19086. if test -n "$PKG_CONFIG" && \
  19087. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19088. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19089. ac_status=$?
  19090. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19091. test $ac_status = 0; }; then
  19092. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19093. test "x$?" != "x0" && pkg_failed=yes
  19094. else
  19095. pkg_failed=yes
  19096. fi
  19097. else
  19098. pkg_failed=untried
  19099. fi
  19100. if test -n "$PIPEWIRE_LIBS"; then
  19101. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19102. elif test -n "$PKG_CONFIG"; then
  19103. if test -n "$PKG_CONFIG" && \
  19104. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19105. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19106. ac_status=$?
  19107. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19108. test $ac_status = 0; }; then
  19109. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19110. test "x$?" != "x0" && pkg_failed=yes
  19111. else
  19112. pkg_failed=yes
  19113. fi
  19114. else
  19115. pkg_failed=untried
  19116. fi
  19117. if test $pkg_failed = yes; then
  19118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19119. printf "%s\n" "no" >&6; }
  19120. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19121. _pkg_short_errors_supported=yes
  19122. else
  19123. _pkg_short_errors_supported=no
  19124. fi
  19125. if test $_pkg_short_errors_supported = yes; then
  19126. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19127. else
  19128. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19129. fi
  19130. # Put the nasty error message in config.log where it belongs
  19131. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19132. audio_pipewire=no
  19133. elif test $pkg_failed = untried; then
  19134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19135. printf "%s\n" "no" >&6; }
  19136. audio_pipewire=no
  19137. else
  19138. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19139. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19141. printf "%s\n" "yes" >&6; }
  19142. audio_pipewire=yes
  19143. fi
  19144. if test x$audio_pipewire = xyes; then
  19145. # Check whether --enable-pipewire-shared was given.
  19146. if test ${enable_pipewire_shared+y}
  19147. then :
  19148. enableval=$enable_pipewire_shared;
  19149. else $as_nop
  19150. enable_pipewire_shared=yes
  19151. fi
  19152. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19153. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19154. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19155. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19156. if test x$have_loadso != xyes && \
  19157. test x$enable_pipewire_shared = xyes; then
  19158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19159. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19160. fi
  19161. if test x$have_loadso = xyes && \
  19162. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19163. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19164. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19165. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19166. else
  19167. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19168. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19169. fi
  19170. have_audio=yes
  19171. fi
  19172. fi
  19173. }
  19174. CheckPulseAudio()
  19175. {
  19176. # Check whether --enable-pulseaudio was given.
  19177. if test ${enable_pulseaudio+y}
  19178. then :
  19179. enableval=$enable_pulseaudio;
  19180. else $as_nop
  19181. enable_pulseaudio=yes
  19182. fi
  19183. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19184. pkg_failed=no
  19185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse >= 0.9.15" >&5
  19186. printf %s "checking for libpulse >= 0.9.15... " >&6; }
  19187. if test -n "$PULSEAUDIO_CFLAGS"; then
  19188. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19189. elif test -n "$PKG_CONFIG"; then
  19190. if test -n "$PKG_CONFIG" && \
  19191. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19192. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19193. ac_status=$?
  19194. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19195. test $ac_status = 0; }; then
  19196. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.15" 2>/dev/null`
  19197. test "x$?" != "x0" && pkg_failed=yes
  19198. else
  19199. pkg_failed=yes
  19200. fi
  19201. else
  19202. pkg_failed=untried
  19203. fi
  19204. if test -n "$PULSEAUDIO_LIBS"; then
  19205. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19206. elif test -n "$PKG_CONFIG"; then
  19207. if test -n "$PKG_CONFIG" && \
  19208. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19209. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19210. ac_status=$?
  19211. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19212. test $ac_status = 0; }; then
  19213. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.15" 2>/dev/null`
  19214. test "x$?" != "x0" && pkg_failed=yes
  19215. else
  19216. pkg_failed=yes
  19217. fi
  19218. else
  19219. pkg_failed=untried
  19220. fi
  19221. if test $pkg_failed = yes; then
  19222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19223. printf "%s\n" "no" >&6; }
  19224. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19225. _pkg_short_errors_supported=yes
  19226. else
  19227. _pkg_short_errors_supported=no
  19228. fi
  19229. if test $_pkg_short_errors_supported = yes; then
  19230. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19231. else
  19232. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19233. fi
  19234. # Put the nasty error message in config.log where it belongs
  19235. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19236. audio_pulseaudio=no
  19237. elif test $pkg_failed = untried; then
  19238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19239. printf "%s\n" "no" >&6; }
  19240. audio_pulseaudio=no
  19241. else
  19242. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19243. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19245. printf "%s\n" "yes" >&6; }
  19246. audio_pulseaudio=yes
  19247. fi
  19248. if test x$audio_pulseaudio = xyes; then
  19249. # Check whether --enable-pulseaudio-shared was given.
  19250. if test ${enable_pulseaudio_shared+y}
  19251. then :
  19252. enableval=$enable_pulseaudio_shared;
  19253. else $as_nop
  19254. enable_pulseaudio_shared=yes
  19255. fi
  19256. pulseaudio_lib=`find_lib "libpulse.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19257. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19258. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19259. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19260. if test x$have_loadso != xyes && \
  19261. test x$enable_pulseaudio_shared = xyes; then
  19262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19263. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19264. fi
  19265. if test x$have_loadso = xyes && \
  19266. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19267. echo "-- dynamic libpulse -> $pulseaudio_lib"
  19268. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19269. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19270. case "$host" in
  19271. # On Solaris, pulseaudio must be linked deferred explicitly
  19272. # to prevent undefined symbol failures.
  19273. *-*-solaris*)
  19274. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19275. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19276. esac
  19277. else
  19278. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19279. SUMMARY_audio="${SUMMARY_audio} pulse"
  19280. fi
  19281. have_audio=yes
  19282. fi
  19283. fi
  19284. }
  19285. CheckARTSC()
  19286. {
  19287. # Check whether --enable-arts was given.
  19288. if test ${enable_arts+y}
  19289. then :
  19290. enableval=$enable_arts;
  19291. else $as_nop
  19292. enable_arts=yes
  19293. fi
  19294. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19295. # Extract the first word of "artsc-config", so it can be a program name with args.
  19296. set dummy artsc-config; ac_word=$2
  19297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19298. printf %s "checking for $ac_word... " >&6; }
  19299. if test ${ac_cv_path_ARTSCONFIG+y}
  19300. then :
  19301. printf %s "(cached) " >&6
  19302. else $as_nop
  19303. case $ARTSCONFIG in
  19304. [\\/]* | ?:[\\/]*)
  19305. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19306. ;;
  19307. *)
  19308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19309. for as_dir in $PATH
  19310. do
  19311. IFS=$as_save_IFS
  19312. case $as_dir in #(((
  19313. '') as_dir=./ ;;
  19314. */) ;;
  19315. *) as_dir=$as_dir/ ;;
  19316. esac
  19317. for ac_exec_ext in '' $ac_executable_extensions; do
  19318. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19319. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19320. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19321. break 2
  19322. fi
  19323. done
  19324. done
  19325. IFS=$as_save_IFS
  19326. ;;
  19327. esac
  19328. fi
  19329. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19330. if test -n "$ARTSCONFIG"; then
  19331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19332. printf "%s\n" "$ARTSCONFIG" >&6; }
  19333. else
  19334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19335. printf "%s\n" "no" >&6; }
  19336. fi
  19337. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19338. : # arts isn't installed
  19339. else
  19340. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19341. ARTS_LIBS=`$ARTSCONFIG --libs`
  19342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19343. printf %s "checking for aRts development environment... " >&6; }
  19344. audio_arts=no
  19345. save_CFLAGS="$CFLAGS"
  19346. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19348. /* end confdefs.h. */
  19349. #include <artsc.h>
  19350. int
  19351. main (void)
  19352. {
  19353. arts_stream_t stream;
  19354. ;
  19355. return 0;
  19356. }
  19357. _ACEOF
  19358. if ac_fn_c_try_compile "$LINENO"
  19359. then :
  19360. audio_arts=yes
  19361. fi
  19362. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19363. CFLAGS="$save_CFLAGS"
  19364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19365. printf "%s\n" "$audio_arts" >&6; }
  19366. if test x$audio_arts = xyes; then
  19367. # Check whether --enable-arts-shared was given.
  19368. if test ${enable_arts_shared+y}
  19369. then :
  19370. enableval=$enable_arts_shared;
  19371. else $as_nop
  19372. enable_arts_shared=yes
  19373. fi
  19374. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19375. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19376. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19377. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19378. if test x$have_loadso != xyes && \
  19379. test x$enable_arts_shared = xyes; then
  19380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19381. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19382. fi
  19383. if test x$have_loadso = xyes && \
  19384. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19385. echo "-- dynamic libartsc -> $arts_lib"
  19386. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19387. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19388. else
  19389. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19390. SUMMARY_audio="${SUMMARY_audio} arts"
  19391. fi
  19392. have_audio=yes
  19393. fi
  19394. fi
  19395. fi
  19396. }
  19397. CheckNAS()
  19398. {
  19399. # Check whether --enable-nas was given.
  19400. if test ${enable_nas+y}
  19401. then :
  19402. enableval=$enable_nas;
  19403. else $as_nop
  19404. enable_nas=yes
  19405. fi
  19406. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19407. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19408. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19409. then :
  19410. have_nas_hdr=yes
  19411. fi
  19412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19413. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19414. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19415. then :
  19416. printf %s "(cached) " >&6
  19417. else $as_nop
  19418. ac_check_lib_save_LIBS=$LIBS
  19419. LIBS="-laudio $LIBS"
  19420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19421. /* end confdefs.h. */
  19422. /* Override any GCC internal prototype to avoid an error.
  19423. Use char because int might match the return type of a GCC
  19424. builtin and then its argument prototype would still apply. */
  19425. char AuOpenServer ();
  19426. int
  19427. main (void)
  19428. {
  19429. return AuOpenServer ();
  19430. ;
  19431. return 0;
  19432. }
  19433. _ACEOF
  19434. if ac_fn_c_try_link "$LINENO"
  19435. then :
  19436. ac_cv_lib_audio_AuOpenServer=yes
  19437. else $as_nop
  19438. ac_cv_lib_audio_AuOpenServer=no
  19439. fi
  19440. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19441. conftest$ac_exeext conftest.$ac_ext
  19442. LIBS=$ac_check_lib_save_LIBS
  19443. fi
  19444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19445. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19446. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19447. then :
  19448. have_nas_lib=yes
  19449. fi
  19450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19451. printf %s "checking for NAS audio support... " >&6; }
  19452. have_nas=no
  19453. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19454. have_nas=yes
  19455. NAS_LIBS="-laudio"
  19456. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19457. have_nas=yes
  19458. NAS_CFLAGS="-I/usr/X11R6/include/"
  19459. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19460. fi
  19461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19462. printf "%s\n" "$have_nas" >&6; }
  19463. if test x$have_nas = xyes; then
  19464. # Check whether --enable-nas-shared was given.
  19465. if test ${enable_nas_shared+y}
  19466. then :
  19467. enableval=$enable_nas_shared;
  19468. else $as_nop
  19469. enable_nas_shared=yes
  19470. fi
  19471. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19472. if test x$have_loadso != xyes && \
  19473. test x$enable_nas_shared = xyes; then
  19474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19475. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19476. fi
  19477. if test x$have_loadso = xyes && \
  19478. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19479. echo "-- dynamic libaudio -> $nas_lib"
  19480. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19481. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19482. else
  19483. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19484. SUMMARY_audio="${SUMMARY_audio} nas"
  19485. fi
  19486. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19487. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19488. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19489. have_audio=yes
  19490. fi
  19491. fi
  19492. }
  19493. CheckSNDIO()
  19494. {
  19495. # Check whether --enable-sndio was given.
  19496. if test ${enable_sndio+y}
  19497. then :
  19498. enableval=$enable_sndio;
  19499. else $as_nop
  19500. enable_sndio=yes
  19501. fi
  19502. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19503. pkg_failed=no
  19504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19505. printf %s "checking for sndio... " >&6; }
  19506. if test -n "$SNDIO_CFLAGS"; then
  19507. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19508. elif test -n "$PKG_CONFIG"; then
  19509. if test -n "$PKG_CONFIG" && \
  19510. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19511. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19512. ac_status=$?
  19513. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19514. test $ac_status = 0; }; then
  19515. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19516. test "x$?" != "x0" && pkg_failed=yes
  19517. else
  19518. pkg_failed=yes
  19519. fi
  19520. else
  19521. pkg_failed=untried
  19522. fi
  19523. if test -n "$SNDIO_LIBS"; then
  19524. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19525. elif test -n "$PKG_CONFIG"; then
  19526. if test -n "$PKG_CONFIG" && \
  19527. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19528. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19529. ac_status=$?
  19530. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19531. test $ac_status = 0; }; then
  19532. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19533. test "x$?" != "x0" && pkg_failed=yes
  19534. else
  19535. pkg_failed=yes
  19536. fi
  19537. else
  19538. pkg_failed=untried
  19539. fi
  19540. if test $pkg_failed = yes; then
  19541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19542. printf "%s\n" "no" >&6; }
  19543. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19544. _pkg_short_errors_supported=yes
  19545. else
  19546. _pkg_short_errors_supported=no
  19547. fi
  19548. if test $_pkg_short_errors_supported = yes; then
  19549. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19550. else
  19551. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19552. fi
  19553. # Put the nasty error message in config.log where it belongs
  19554. echo "$SNDIO_PKG_ERRORS" >&5
  19555. audio_sndio=no
  19556. elif test $pkg_failed = untried; then
  19557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19558. printf "%s\n" "no" >&6; }
  19559. audio_sndio=no
  19560. else
  19561. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19562. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19564. printf "%s\n" "yes" >&6; }
  19565. audio_sndio=yes
  19566. fi
  19567. if test x$audio_sndio = xyes; then
  19568. # Check whether --enable-sndio-shared was given.
  19569. if test ${enable_sndio_shared+y}
  19570. then :
  19571. enableval=$enable_sndio_shared;
  19572. else $as_nop
  19573. enable_sndio_shared=yes
  19574. fi
  19575. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19576. if test x$have_loadso != xyes && \
  19577. test x$enable_sndio_shared = xyes; then
  19578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19579. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19580. fi
  19581. if test x$have_loadso = xyes && \
  19582. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19583. echo "-- dynamic libsndio -> $sndio_lib"
  19584. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19585. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19586. else
  19587. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19588. SUMMARY_audio="${SUMMARY_audio} sndio"
  19589. fi
  19590. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19591. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19592. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19593. have_audio=yes
  19594. fi
  19595. fi
  19596. }
  19597. CheckFusionSound()
  19598. {
  19599. # Check whether --enable-fusionsound was given.
  19600. if test ${enable_fusionsound+y}
  19601. then :
  19602. enableval=$enable_fusionsound;
  19603. else $as_nop
  19604. enable_fusionsound=no
  19605. fi
  19606. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19607. pkg_failed=no
  19608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19609. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19610. if test -n "$FUSIONSOUND_CFLAGS"; then
  19611. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19612. elif test -n "$PKG_CONFIG"; then
  19613. if test -n "$PKG_CONFIG" && \
  19614. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19615. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19616. ac_status=$?
  19617. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19618. test $ac_status = 0; }; then
  19619. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19620. test "x$?" != "x0" && pkg_failed=yes
  19621. else
  19622. pkg_failed=yes
  19623. fi
  19624. else
  19625. pkg_failed=untried
  19626. fi
  19627. if test -n "$FUSIONSOUND_LIBS"; then
  19628. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19629. elif test -n "$PKG_CONFIG"; then
  19630. if test -n "$PKG_CONFIG" && \
  19631. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19632. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19633. ac_status=$?
  19634. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19635. test $ac_status = 0; }; then
  19636. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19637. test "x$?" != "x0" && pkg_failed=yes
  19638. else
  19639. pkg_failed=yes
  19640. fi
  19641. else
  19642. pkg_failed=untried
  19643. fi
  19644. if test $pkg_failed = yes; then
  19645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19646. printf "%s\n" "no" >&6; }
  19647. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19648. _pkg_short_errors_supported=yes
  19649. else
  19650. _pkg_short_errors_supported=no
  19651. fi
  19652. if test $_pkg_short_errors_supported = yes; then
  19653. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19654. else
  19655. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19656. fi
  19657. # Put the nasty error message in config.log where it belongs
  19658. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19659. fusionsound=no
  19660. elif test $pkg_failed = untried; then
  19661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19662. printf "%s\n" "no" >&6; }
  19663. fusionsound=no
  19664. else
  19665. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19666. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19668. printf "%s\n" "yes" >&6; }
  19669. fusionsound=yes
  19670. fi
  19671. if test x$fusionsound = xyes; then
  19672. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19673. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19674. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19675. # Check whether --enable-fusionsound-shared was given.
  19676. if test ${enable_fusionsound_shared+y}
  19677. then :
  19678. enableval=$enable_fusionsound_shared;
  19679. else $as_nop
  19680. enable_fusionsound_shared=yes
  19681. fi
  19682. fusionsound_shared=no
  19683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19684. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19685. if test x$have_loadso != xyes && \
  19686. test x$enable_fusionsound_shared = xyes; then
  19687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19688. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19689. fi
  19690. if test x$have_loadso = xyes && \
  19691. test x$enable_fusionsound_shared = xyes; then
  19692. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19693. fusionsound_shared=yes
  19694. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19695. else
  19696. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19697. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19698. fi
  19699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19700. printf "%s\n" "$fusionsound_shared" >&6; }
  19701. have_audio=yes
  19702. fi
  19703. fi
  19704. }
  19705. CheckDiskAudio()
  19706. {
  19707. # Check whether --enable-diskaudio was given.
  19708. if test ${enable_diskaudio+y}
  19709. then :
  19710. enableval=$enable_diskaudio;
  19711. else $as_nop
  19712. enable_diskaudio=yes
  19713. fi
  19714. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19715. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19716. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19717. SUMMARY_audio="${SUMMARY_audio} disk"
  19718. have_audio=yes
  19719. fi
  19720. }
  19721. CheckDummyAudio()
  19722. {
  19723. # Check whether --enable-dummyaudio was given.
  19724. if test ${enable_dummyaudio+y}
  19725. then :
  19726. enableval=$enable_dummyaudio;
  19727. else $as_nop
  19728. enable_dummyaudio=yes
  19729. fi
  19730. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19731. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19732. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19733. SUMMARY_audio="${SUMMARY_audio} dummy"
  19734. have_audio=yes
  19735. fi
  19736. }
  19737. CheckLibSampleRate()
  19738. {
  19739. # Check whether --enable-libsamplerate was given.
  19740. if test ${enable_libsamplerate+y}
  19741. then :
  19742. enableval=$enable_libsamplerate;
  19743. else $as_nop
  19744. enable_libsamplerate=yes
  19745. fi
  19746. if test x$enable_libsamplerate = xyes; then
  19747. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19748. if test "x$ac_cv_header_samplerate_h" = xyes
  19749. then :
  19750. have_samplerate_h_hdr=yes
  19751. else $as_nop
  19752. have_samplerate_h_hdr=no
  19753. fi
  19754. if test x$have_samplerate_h_hdr = xyes; then
  19755. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19756. # Check whether --enable-libsamplerate-shared was given.
  19757. if test ${enable_libsamplerate_shared+y}
  19758. then :
  19759. enableval=$enable_libsamplerate_shared;
  19760. else $as_nop
  19761. enable_libsamplerate_shared=yes
  19762. fi
  19763. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19764. if test x$have_loadso != xyes && \
  19765. test x$enable_libsamplerate_shared = xyes; then
  19766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19767. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19768. fi
  19769. if test x$have_loadso = xyes && \
  19770. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19771. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19772. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19773. else
  19774. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19775. fi
  19776. fi
  19777. fi
  19778. }
  19779. CheckARM()
  19780. {
  19781. # Check whether --enable-arm-simd was given.
  19782. if test ${enable_arm_simd+y}
  19783. then :
  19784. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19785. else $as_nop
  19786. enable_arm_simd=no
  19787. fi
  19788. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19789. save_CFLAGS="$CFLAGS"
  19790. have_arm_simd=no
  19791. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19793. printf %s "checking for ARM SIMD... " >&6; }
  19794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19795. /* end confdefs.h. */
  19796. .text
  19797. .arch armv6
  19798. .object_arch armv4
  19799. .arm
  19800. .altmacro
  19801. #ifndef __ARM_EABI__
  19802. #error EABI is required (to be sure that calling conventions are compatible)
  19803. #endif
  19804. pld [r0]
  19805. uqadd8 r0, r0, r0
  19806. _ACEOF
  19807. if ac_fn_c_try_compile "$LINENO"
  19808. then :
  19809. have_arm_simd=yes
  19810. fi
  19811. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19813. printf "%s\n" "$have_arm_simd" >&6; }
  19814. CFLAGS="$save_CFLAGS"
  19815. if test x$have_arm_simd = xyes; then
  19816. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19817. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19818. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19819. fi
  19820. fi
  19821. }
  19822. CheckNEON()
  19823. {
  19824. # Check whether --enable-arm-neon was given.
  19825. if test ${enable_arm_neon+y}
  19826. then :
  19827. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19828. else $as_nop
  19829. enable_arm_neon=no
  19830. fi
  19831. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19832. save_CFLAGS="$CFLAGS"
  19833. have_arm_neon=no
  19834. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19836. printf %s "checking for ARM NEON... " >&6; }
  19837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19838. /* end confdefs.h. */
  19839. .text
  19840. .fpu neon
  19841. .arch armv7a
  19842. .object_arch armv4
  19843. .eabi_attribute 10, 0
  19844. .arm
  19845. .altmacro
  19846. #ifndef __ARM_EABI__
  19847. #error EABI is required (to be sure that calling conventions are compatible)
  19848. #endif
  19849. pld [r0]
  19850. vmovn.u16 d0, q0
  19851. _ACEOF
  19852. if ac_fn_c_try_compile "$LINENO"
  19853. then :
  19854. have_arm_neon=yes
  19855. fi
  19856. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19858. printf "%s\n" "$have_arm_neon" >&6; }
  19859. CFLAGS="$save_CFLAGS"
  19860. if test x$have_arm_neon = xyes; then
  19861. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19862. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19863. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19864. fi
  19865. fi
  19866. }
  19867. CheckObjectiveCARC()
  19868. {
  19869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19870. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19871. have_clang_objc_arc=no
  19872. save_CFLAGS="$CFLAGS"
  19873. CFLAGS="$save_CFLAGS -fobjc-arc"
  19874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19875. /* end confdefs.h. */
  19876. int x = 0;
  19877. int
  19878. main (void)
  19879. {
  19880. ;
  19881. return 0;
  19882. }
  19883. _ACEOF
  19884. if ac_fn_c_try_compile "$LINENO"
  19885. then :
  19886. have_clang_objc_arc=yes
  19887. fi
  19888. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19890. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19891. CFLAGS="$save_CFLAGS"
  19892. if test x$have_clang_objc_arc = xyes; then
  19893. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19894. fi
  19895. }
  19896. CheckGDwarf4()
  19897. {
  19898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19899. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19900. have_gcc_gdwarf4=no
  19901. save_CFLAGS="$CFLAGS"
  19902. CFLAGS="$save_CFLAGS -gdwarf-4"
  19903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19904. /* end confdefs.h. */
  19905. int x = 0;
  19906. int
  19907. main (void)
  19908. {
  19909. ;
  19910. return 0;
  19911. }
  19912. _ACEOF
  19913. if ac_fn_c_try_compile "$LINENO"
  19914. then :
  19915. have_gcc_gdwarf4=yes
  19916. fi
  19917. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19919. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19920. CFLAGS="$save_CFLAGS"
  19921. if test x$have_gcc_gdwarf4 = xyes; then
  19922. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19923. fi
  19924. }
  19925. CheckVisibilityHidden()
  19926. {
  19927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19928. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19929. have_gcc_fvisibility=no
  19930. visibility_CFLAGS="-fvisibility=hidden"
  19931. save_CFLAGS="$CFLAGS"
  19932. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19934. /* end confdefs.h. */
  19935. #if !defined(__GNUC__) || __GNUC__ < 4
  19936. #error SDL only uses visibility attributes in GCC 4 or newer
  19937. #endif
  19938. int
  19939. main (void)
  19940. {
  19941. ;
  19942. return 0;
  19943. }
  19944. _ACEOF
  19945. if ac_fn_c_try_compile "$LINENO"
  19946. then :
  19947. have_gcc_fvisibility=yes
  19948. fi
  19949. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19951. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19952. CFLAGS="$save_CFLAGS"
  19953. if test x$have_gcc_fvisibility = xyes; then
  19954. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19955. fi
  19956. }
  19957. CheckNoStrictAliasing()
  19958. {
  19959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19960. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19961. have_gcc_no_strict_aliasing=no
  19962. save_CFLAGS="$CFLAGS"
  19963. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19965. /* end confdefs.h. */
  19966. int x = 0;
  19967. int
  19968. main (void)
  19969. {
  19970. ;
  19971. return 0;
  19972. }
  19973. _ACEOF
  19974. if ac_fn_c_try_compile "$LINENO"
  19975. then :
  19976. have_gcc_no_strict_aliasing=yes
  19977. fi
  19978. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19980. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19981. CFLAGS="$save_CFLAGS"
  19982. if test x$have_gcc_no_strict_aliasing = xyes; then
  19983. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19984. fi
  19985. }
  19986. CheckWerror()
  19987. {
  19988. # Check whether --enable-werror was given.
  19989. if test ${enable_werror+y}
  19990. then :
  19991. enableval=$enable_werror; enable_werror=$enableval
  19992. else $as_nop
  19993. enable_werror=no
  19994. fi
  19995. if test x$enable_werror = xyes; then
  19996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19997. printf %s "checking for GCC -Werror option... " >&6; }
  19998. have_gcc_werror=no
  19999. save_CFLAGS="$CFLAGS"
  20000. CFLAGS="$save_CFLAGS -Werror"
  20001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20002. /* end confdefs.h. */
  20003. int x = 0;
  20004. int
  20005. main (void)
  20006. {
  20007. ;
  20008. return 0;
  20009. }
  20010. _ACEOF
  20011. if ac_fn_c_try_compile "$LINENO"
  20012. then :
  20013. have_gcc_werror=yes
  20014. fi
  20015. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20017. printf "%s\n" "$have_gcc_werror" >&6; }
  20018. CFLAGS="$save_CFLAGS"
  20019. if test x$have_gcc_werror = xyes; then
  20020. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  20021. fi
  20022. fi
  20023. }
  20024. CheckNoErrorDeprecatedDeclarationsWerror()
  20025. {
  20026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  20027. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  20028. have_gcc_no_werror_deprecated_declarations=no
  20029. save_CFLAGS="$CFLAGS"
  20030. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  20031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20032. /* end confdefs.h. */
  20033. int x = 0;
  20034. int
  20035. main (void)
  20036. {
  20037. ;
  20038. return 0;
  20039. }
  20040. _ACEOF
  20041. if ac_fn_c_try_compile "$LINENO"
  20042. then :
  20043. have_gcc_no_werror_deprecated_declarations=yes
  20044. fi
  20045. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20047. printf "%s\n" "$have_gcc_werror" >&6; }
  20048. CFLAGS="$save_CFLAGS"
  20049. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20050. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20051. fi
  20052. }
  20053. CheckDeclarationAfterStatement()
  20054. {
  20055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20056. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20057. have_gcc_declaration_after_statement=no
  20058. save_CFLAGS="$CFLAGS"
  20059. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20061. /* end confdefs.h. */
  20062. int x = 0;
  20063. int
  20064. main (void)
  20065. {
  20066. ;
  20067. return 0;
  20068. }
  20069. _ACEOF
  20070. if ac_fn_c_try_compile "$LINENO"
  20071. then :
  20072. have_gcc_declaration_after_statement=yes
  20073. fi
  20074. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20076. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20077. CFLAGS="$save_CFLAGS"
  20078. if test x$have_gcc_declaration_after_statement = xyes; then
  20079. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20080. fi
  20081. }
  20082. CheckWarnAll()
  20083. {
  20084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20085. printf %s "checking for GCC -Wall option... " >&6; }
  20086. have_gcc_Wall=no
  20087. save_CFLAGS="$CFLAGS"
  20088. CFLAGS="$save_CFLAGS -Wall"
  20089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20090. /* end confdefs.h. */
  20091. int x = 0;
  20092. int
  20093. main (void)
  20094. {
  20095. ;
  20096. return 0;
  20097. }
  20098. _ACEOF
  20099. if ac_fn_c_try_compile "$LINENO"
  20100. then :
  20101. have_gcc_Wall=yes
  20102. fi
  20103. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20105. printf "%s\n" "$have_gcc_Wall" >&6; }
  20106. CFLAGS="$save_CFLAGS"
  20107. if test x$have_gcc_Wall = xyes; then
  20108. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20110. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20111. need_gcc_Wno_multichar=no
  20112. case "$host" in
  20113. *-*-haiku*)
  20114. need_gcc_Wno_multichar=yes
  20115. ;;
  20116. esac
  20117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20118. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20119. if test x$need_gcc_Wno_multichar = xyes; then
  20120. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20121. fi
  20122. fi
  20123. }
  20124. CheckUnusedLocalTypedefs()
  20125. {
  20126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wunused-local-typedefs option" >&5
  20127. printf %s "checking for GCC -Wunused-local-typedefs option... " >&6; }
  20128. have_gcc_unused_local_typedefs=no
  20129. save_CFLAGS="$CFLAGS"
  20130. CFLAGS="$save_CFLAGS -Wunused-local-typedefs"
  20131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20132. /* end confdefs.h. */
  20133. int x = 0;
  20134. int
  20135. main (void)
  20136. {
  20137. ;
  20138. return 0;
  20139. }
  20140. _ACEOF
  20141. if ac_fn_c_try_compile "$LINENO"
  20142. then :
  20143. have_gcc_unused_local_typedefs=yes
  20144. fi
  20145. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_unused_local_typedefs" >&5
  20147. printf "%s\n" "$have_gcc_unused_local_typedefs" >&6; }
  20148. CFLAGS="$save_CFLAGS"
  20149. if test x$have_gcc_unused_local_typedefs = xyes; then
  20150. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-unused-local-typedefs"
  20151. fi
  20152. }
  20153. CheckWayland()
  20154. {
  20155. # Check whether --enable-video-wayland was given.
  20156. if test ${enable_video_wayland+y}
  20157. then :
  20158. enableval=$enable_video_wayland;
  20159. else $as_nop
  20160. enable_video_wayland=yes
  20161. fi
  20162. # Check whether --enable-video-wayland-qt-touch was given.
  20163. if test ${enable_video_wayland_qt_touch+y}
  20164. then :
  20165. enableval=$enable_video_wayland_qt_touch;
  20166. else $as_nop
  20167. enable_video_wayland_qt_touch=yes
  20168. fi
  20169. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20171. printf %s "checking for Wayland support... " >&6; }
  20172. video_wayland=no
  20173. if test x$video_opengl_egl = xyes && \
  20174. test x$video_opengles_v2 = xyes; then
  20175. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20176. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20177. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20178. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20179. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20180. then :
  20181. WAYLAND_SCANNER_CODE_MODE=private-code
  20182. else $as_nop
  20183. WAYLAND_SCANNER_CODE_MODE=code
  20184. fi
  20185. video_wayland=yes
  20186. fi
  20187. fi
  20188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20189. printf "%s\n" "$video_wayland" >&6; }
  20190. if test x$video_wayland = xyes; then
  20191. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20192. if test x$enable_video_wayland_qt_touch = xyes; then
  20193. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20194. fi
  20195. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20196. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20197. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20198. # Check whether --enable-wayland-shared was given.
  20199. if test ${enable_wayland_shared+y}
  20200. then :
  20201. enableval=$enable_wayland_shared;
  20202. else $as_nop
  20203. enable_wayland_shared=maybe
  20204. fi
  20205. case "$host" in
  20206. *)
  20207. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20208. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20209. if test x$wayland_egl_lib = x; then
  20210. # This works in Ubuntu 13.10, maybe others
  20211. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20212. fi
  20213. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20214. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20215. ;;
  20216. esac
  20217. if test x$enable_wayland_shared = xmaybe; then
  20218. enable_wayland_shared=yes
  20219. fi
  20220. if test x$have_loadso != xyes && \
  20221. test x$enable_wayland_shared = xyes; then
  20222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20223. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20224. enable_wayland_shared=no
  20225. fi
  20226. if test x$have_loadso = xyes && \
  20227. test x$enable_wayland_shared = xyes && \
  20228. test x$wayland_client_lib != x && \
  20229. test x$wayland_egl_lib != x && \
  20230. test x$wayland_cursor_lib != x && \
  20231. test x$xkbcommon_lib != x; then
  20232. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20233. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20234. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20235. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20236. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20237. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20238. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20239. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20240. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20241. else
  20242. enable_wayland_shared=no
  20243. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20244. SUMMARY_video="${SUMMARY_video} wayland"
  20245. fi
  20246. have_video=yes
  20247. # Check whether --enable-libdecor was given.
  20248. if test ${enable_libdecor+y}
  20249. then :
  20250. enableval=$enable_libdecor;
  20251. else $as_nop
  20252. enable_libdecor=yes
  20253. fi
  20254. if test x$enable_libdecor = xyes; then
  20255. pkg_failed=no
  20256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20257. printf %s "checking for libdecor-0... " >&6; }
  20258. if test -n "$DECOR_CFLAGS"; then
  20259. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20260. elif test -n "$PKG_CONFIG"; then
  20261. if test -n "$PKG_CONFIG" && \
  20262. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20263. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20264. ac_status=$?
  20265. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20266. test $ac_status = 0; }; then
  20267. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20268. test "x$?" != "x0" && pkg_failed=yes
  20269. else
  20270. pkg_failed=yes
  20271. fi
  20272. else
  20273. pkg_failed=untried
  20274. fi
  20275. if test -n "$DECOR_LIBS"; then
  20276. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20277. elif test -n "$PKG_CONFIG"; then
  20278. if test -n "$PKG_CONFIG" && \
  20279. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20280. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20281. ac_status=$?
  20282. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20283. test $ac_status = 0; }; then
  20284. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20285. test "x$?" != "x0" && pkg_failed=yes
  20286. else
  20287. pkg_failed=yes
  20288. fi
  20289. else
  20290. pkg_failed=untried
  20291. fi
  20292. if test $pkg_failed = yes; then
  20293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20294. printf "%s\n" "no" >&6; }
  20295. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20296. _pkg_short_errors_supported=yes
  20297. else
  20298. _pkg_short_errors_supported=no
  20299. fi
  20300. if test $_pkg_short_errors_supported = yes; then
  20301. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20302. else
  20303. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20304. fi
  20305. # Put the nasty error message in config.log where it belongs
  20306. echo "$DECOR_PKG_ERRORS" >&5
  20307. video_libdecor=no
  20308. elif test $pkg_failed = untried; then
  20309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20310. printf "%s\n" "no" >&6; }
  20311. video_libdecor=no
  20312. else
  20313. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20314. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20316. printf "%s\n" "yes" >&6; }
  20317. video_libdecor=yes
  20318. fi
  20319. if test x$video_libdecor = xyes; then
  20320. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20321. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20322. # Check whether --enable-libdecor-shared was given.
  20323. if test ${enable_libdecor_shared+y}
  20324. then :
  20325. enableval=$enable_libdecor_shared;
  20326. else $as_nop
  20327. enable_libdecor_shared=yes
  20328. fi
  20329. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20330. if test x$enable_wayland_shared != xyes; then
  20331. enable_libdecor_shared=no
  20332. fi
  20333. if test x$have_loadso != xyes && \
  20334. test x$enable_libdecor_shared = xyes; then
  20335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20336. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20337. fi
  20338. if test x$have_loadso = xyes && \
  20339. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20340. echo "-- dynamic libdecor -> $decor_lib"
  20341. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20342. else
  20343. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20344. fi
  20345. saved_cflags=$CFLAGS
  20346. CFLAGS="$CFLAGS $DECOR_CFLAGS"
  20347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  20348. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  20349. if test ${ac_cv_c_undeclared_builtin_options+y}
  20350. then :
  20351. printf %s "(cached) " >&6
  20352. else $as_nop
  20353. ac_save_CFLAGS=$CFLAGS
  20354. ac_cv_c_undeclared_builtin_options='cannot detect'
  20355. for ac_arg in '' -fno-builtin; do
  20356. CFLAGS="$ac_save_CFLAGS $ac_arg"
  20357. # This test program should *not* compile successfully.
  20358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20359. /* end confdefs.h. */
  20360. int
  20361. main (void)
  20362. {
  20363. (void) strchr;
  20364. ;
  20365. return 0;
  20366. }
  20367. _ACEOF
  20368. if ac_fn_c_try_compile "$LINENO"
  20369. then :
  20370. else $as_nop
  20371. # This test program should compile successfully.
  20372. # No library function is consistently available on
  20373. # freestanding implementations, so test against a dummy
  20374. # declaration. Include always-available headers on the
  20375. # off chance that they somehow elicit warnings.
  20376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20377. /* end confdefs.h. */
  20378. #include <float.h>
  20379. #include <limits.h>
  20380. #include <stdarg.h>
  20381. #include <stddef.h>
  20382. extern void ac_decl (int, char *);
  20383. int
  20384. main (void)
  20385. {
  20386. (void) ac_decl (0, (char *) 0);
  20387. (void) ac_decl;
  20388. ;
  20389. return 0;
  20390. }
  20391. _ACEOF
  20392. if ac_fn_c_try_compile "$LINENO"
  20393. then :
  20394. if test x"$ac_arg" = x
  20395. then :
  20396. ac_cv_c_undeclared_builtin_options='none needed'
  20397. else $as_nop
  20398. ac_cv_c_undeclared_builtin_options=$ac_arg
  20399. fi
  20400. break
  20401. fi
  20402. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20403. fi
  20404. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20405. done
  20406. CFLAGS=$ac_save_CFLAGS
  20407. fi
  20408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  20409. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  20410. case $ac_cv_c_undeclared_builtin_options in #(
  20411. 'cannot detect') :
  20412. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20413. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20414. as_fn_error $? "cannot make $CC report undeclared builtins
  20415. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  20416. 'none needed') :
  20417. ac_c_undeclared_builtin_options='' ;; #(
  20418. *) :
  20419. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  20420. esac
  20421. ac_fn_check_decl "$LINENO" "libdecor_frame_get_min_content_size" "ac_cv_have_decl_libdecor_frame_get_min_content_size" "#include <libdecor.h>
  20422. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20423. if test "x$ac_cv_have_decl_libdecor_frame_get_min_content_size" = xyes
  20424. then :
  20425. ac_have_decl=1
  20426. else $as_nop
  20427. ac_have_decl=0
  20428. fi
  20429. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MIN_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20430. if test $ac_have_decl = 1
  20431. then :
  20432. libdecor_get_min_max=yes
  20433. fi
  20434. ac_fn_check_decl "$LINENO" "libdecor_frame_get_max_content_size" "ac_cv_have_decl_libdecor_frame_get_max_content_size" "#include <libdecor.h>
  20435. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20436. if test "x$ac_cv_have_decl_libdecor_frame_get_max_content_size" = xyes
  20437. then :
  20438. ac_have_decl=1
  20439. else $as_nop
  20440. ac_have_decl=0
  20441. fi
  20442. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MAX_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20443. if test $ac_have_decl = 1
  20444. then :
  20445. libdecor_get_min_max=yes
  20446. fi
  20447. if test x$libdecor_get_min_max = xyes; then
  20448. printf "%s\n" "#define SDL_HAVE_LIBDECOR_GET_MIN_MAX 1" >>confdefs.h
  20449. fi
  20450. CFLAGS="$saved_cflags"
  20451. fi
  20452. fi
  20453. fi
  20454. fi
  20455. }
  20456. CheckNativeClient()
  20457. {
  20458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20459. /* end confdefs.h. */
  20460. #if !defined(__native_client__)
  20461. #error "NO NACL"
  20462. #endif
  20463. int
  20464. main (void)
  20465. {
  20466. ;
  20467. return 0;
  20468. }
  20469. _ACEOF
  20470. if ac_fn_c_try_compile "$LINENO"
  20471. then :
  20472. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20473. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20474. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20475. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20476. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20477. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20478. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20479. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20480. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20481. SUMMARY_audio="${SUMMARY_audio} nacl"
  20482. have_audio=yes
  20483. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20484. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20485. have_video=yes
  20486. fi
  20487. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20488. }
  20489. CheckRPI()
  20490. {
  20491. # Check whether --enable-video-rpi was given.
  20492. if test ${enable_video_rpi+y}
  20493. then :
  20494. enableval=$enable_video_rpi;
  20495. else $as_nop
  20496. enable_video_rpi=yes
  20497. fi
  20498. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20499. pkg_failed=no
  20500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host" >&5
  20501. printf %s "checking for bcm_host... " >&6; }
  20502. if test -n "$RPI_CFLAGS"; then
  20503. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20504. elif test -n "$PKG_CONFIG"; then
  20505. if test -n "$PKG_CONFIG" && \
  20506. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20507. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20508. ac_status=$?
  20509. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20510. test $ac_status = 0; }; then
  20511. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host" 2>/dev/null`
  20512. test "x$?" != "x0" && pkg_failed=yes
  20513. else
  20514. pkg_failed=yes
  20515. fi
  20516. else
  20517. pkg_failed=untried
  20518. fi
  20519. if test -n "$RPI_LIBS"; then
  20520. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20521. elif test -n "$PKG_CONFIG"; then
  20522. if test -n "$PKG_CONFIG" && \
  20523. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20524. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20525. ac_status=$?
  20526. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20527. test $ac_status = 0; }; then
  20528. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host" 2>/dev/null`
  20529. test "x$?" != "x0" && pkg_failed=yes
  20530. else
  20531. pkg_failed=yes
  20532. fi
  20533. else
  20534. pkg_failed=untried
  20535. fi
  20536. if test $pkg_failed = yes; then
  20537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20538. printf "%s\n" "no" >&6; }
  20539. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20540. _pkg_short_errors_supported=yes
  20541. else
  20542. _pkg_short_errors_supported=no
  20543. fi
  20544. if test $_pkg_short_errors_supported = yes; then
  20545. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host" 2>&1`
  20546. else
  20547. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host" 2>&1`
  20548. fi
  20549. # Put the nasty error message in config.log where it belongs
  20550. echo "$RPI_PKG_ERRORS" >&5
  20551. video_rpi=no
  20552. elif test $pkg_failed = untried; then
  20553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20554. printf "%s\n" "no" >&6; }
  20555. video_rpi=no
  20556. else
  20557. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20558. RPI_LIBS=$pkg_cv_RPI_LIBS
  20559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20560. printf "%s\n" "yes" >&6; }
  20561. video_rpi=yes
  20562. fi
  20563. pkg_failed=no
  20564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for brcmegl" >&5
  20565. printf %s "checking for brcmegl... " >&6; }
  20566. if test -n "$RPI_EGL_CFLAGS"; then
  20567. pkg_cv_RPI_EGL_CFLAGS="$RPI_EGL_CFLAGS"
  20568. elif test -n "$PKG_CONFIG"; then
  20569. if test -n "$PKG_CONFIG" && \
  20570. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20571. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20572. ac_status=$?
  20573. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20574. test $ac_status = 0; }; then
  20575. pkg_cv_RPI_EGL_CFLAGS=`$PKG_CONFIG --cflags "brcmegl" 2>/dev/null`
  20576. test "x$?" != "x0" && pkg_failed=yes
  20577. else
  20578. pkg_failed=yes
  20579. fi
  20580. else
  20581. pkg_failed=untried
  20582. fi
  20583. if test -n "$RPI_EGL_LIBS"; then
  20584. pkg_cv_RPI_EGL_LIBS="$RPI_EGL_LIBS"
  20585. elif test -n "$PKG_CONFIG"; then
  20586. if test -n "$PKG_CONFIG" && \
  20587. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20588. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20589. ac_status=$?
  20590. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20591. test $ac_status = 0; }; then
  20592. pkg_cv_RPI_EGL_LIBS=`$PKG_CONFIG --libs "brcmegl" 2>/dev/null`
  20593. test "x$?" != "x0" && pkg_failed=yes
  20594. else
  20595. pkg_failed=yes
  20596. fi
  20597. else
  20598. pkg_failed=untried
  20599. fi
  20600. if test $pkg_failed = yes; then
  20601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20602. printf "%s\n" "no" >&6; }
  20603. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20604. _pkg_short_errors_supported=yes
  20605. else
  20606. _pkg_short_errors_supported=no
  20607. fi
  20608. if test $_pkg_short_errors_supported = yes; then
  20609. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "brcmegl" 2>&1`
  20610. else
  20611. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "brcmegl" 2>&1`
  20612. fi
  20613. # Put the nasty error message in config.log where it belongs
  20614. echo "$RPI_EGL_PKG_ERRORS" >&5
  20615. video_rpi_egl=no
  20616. elif test $pkg_failed = untried; then
  20617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20618. printf "%s\n" "no" >&6; }
  20619. video_rpi_egl=no
  20620. else
  20621. RPI_EGL_CFLAGS=$pkg_cv_RPI_EGL_CFLAGS
  20622. RPI_EGL_LIBS=$pkg_cv_RPI_EGL_LIBS
  20623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20624. printf "%s\n" "yes" >&6; }
  20625. video_rpi_egl=yes
  20626. fi
  20627. if test x$video_rpi = xno; then
  20628. if test x$ARCH = xnetbsd; then
  20629. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20630. RPI_LIBS="-L/usr/pkg/lib -lbcm_host"
  20631. else
  20632. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20633. RPI_LIBS="-L/opt/vc/lib -lbcm_host"
  20634. fi
  20635. fi
  20636. if test x$video_rpi_egl = xno; then
  20637. if test x$ARCH = xnetbsd; then
  20638. RPI_EGL_LIBS="-Wl,-R/usr/pkg/lib"
  20639. else
  20640. RPI_EGL_LIBS="-Wl,-rpath,/opt/vc/lib"
  20641. fi
  20642. fi
  20643. # Save the original compiler flags and libraries
  20644. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20645. # Add the Raspberry Pi compiler flags and libraries
  20646. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_EGL_LIBS $RPI_LIBS"
  20647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 0-3" >&5
  20648. printf %s "checking for Raspberry Pi 0-3... " >&6; }
  20649. have_video_rpi=no
  20650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20651. /* end confdefs.h. */
  20652. #include <bcm_host.h>
  20653. int
  20654. main (void)
  20655. {
  20656. bcm_host_init();
  20657. ;
  20658. return 0;
  20659. }
  20660. _ACEOF
  20661. if ac_fn_c_try_link "$LINENO"
  20662. then :
  20663. have_video_rpi=yes
  20664. fi
  20665. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20666. conftest$ac_exeext conftest.$ac_ext
  20667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20668. printf "%s\n" "$have_video_rpi" >&6; }
  20669. # Restore the compiler flags and libraries
  20670. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20671. if test x$have_video_rpi = xyes; then
  20672. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20673. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20674. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20675. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_EGL_LIBS $RPI_LIBS"
  20676. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20677. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20678. SUMMARY_video="${SUMMARY_video} rpi"
  20679. have_video=yes
  20680. fi
  20681. fi
  20682. }
  20683. CheckX11()
  20684. {
  20685. # Check whether --enable-video-x11 was given.
  20686. if test ${enable_video_x11+y}
  20687. then :
  20688. enableval=$enable_video_x11;
  20689. else $as_nop
  20690. enable_video_x11=yes
  20691. case "$host" in
  20692. *-*-darwin*|*-ios-*)
  20693. enable_video_x11=no
  20694. ;;
  20695. esac
  20696. fi
  20697. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20698. case "$host" in
  20699. *-*-darwin*)
  20700. # This isn't necessary for X11, but fixes GLX detection
  20701. if test "x$x_includes" = xNONE && \
  20702. test "x$x_libraries" = xNONE && \
  20703. test -d /opt/X11/include && \
  20704. test -d /opt/X11/lib; then
  20705. x_includes="/opt/X11/include"
  20706. x_libraries="/opt/X11/lib"
  20707. fi
  20708. ;;
  20709. esac
  20710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20711. printf %s "checking for X... " >&6; }
  20712. # Check whether --with-x was given.
  20713. if test ${with_x+y}
  20714. then :
  20715. withval=$with_x;
  20716. fi
  20717. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20718. if test "x$with_x" = xno; then
  20719. # The user explicitly disabled X.
  20720. have_x=disabled
  20721. else
  20722. case $x_includes,$x_libraries in #(
  20723. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20724. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20725. then :
  20726. printf %s "(cached) " >&6
  20727. else $as_nop
  20728. # One or both of the vars are not set, and there is no cached value.
  20729. ac_x_includes=no
  20730. ac_x_libraries=no
  20731. # Do we need to do anything special at all?
  20732. ac_save_LIBS=$LIBS
  20733. LIBS="-lX11 $LIBS"
  20734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20735. /* end confdefs.h. */
  20736. #include <X11/Xlib.h>
  20737. int
  20738. main (void)
  20739. {
  20740. XrmInitialize ()
  20741. ;
  20742. return 0;
  20743. }
  20744. _ACEOF
  20745. if ac_fn_c_try_link "$LINENO"
  20746. then :
  20747. # We can compile and link X programs with no special options.
  20748. ac_x_includes=
  20749. ac_x_libraries=
  20750. fi
  20751. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20752. conftest$ac_exeext conftest.$ac_ext
  20753. LIBS="$ac_save_LIBS"
  20754. # If that didn't work, only try xmkmf and file system searches
  20755. # for native compilation.
  20756. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20757. then :
  20758. rm -f -r conftest.dir
  20759. if mkdir conftest.dir; then
  20760. cd conftest.dir
  20761. cat >Imakefile <<'_ACEOF'
  20762. incroot:
  20763. @echo incroot='${INCROOT}'
  20764. usrlibdir:
  20765. @echo usrlibdir='${USRLIBDIR}'
  20766. libdir:
  20767. @echo libdir='${LIBDIR}'
  20768. _ACEOF
  20769. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20770. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20771. for ac_var in incroot usrlibdir libdir; do
  20772. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20773. done
  20774. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20775. for ac_extension in a so sl dylib la dll; do
  20776. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20777. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20778. ac_im_usrlibdir=$ac_im_libdir; break
  20779. fi
  20780. done
  20781. # Screen out bogus values from the imake configuration. They are
  20782. # bogus both because they are the default anyway, and because
  20783. # using them would break gcc on systems where it needs fixed includes.
  20784. case $ac_im_incroot in
  20785. /usr/include) ac_x_includes= ;;
  20786. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20787. esac
  20788. case $ac_im_usrlibdir in
  20789. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20790. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20791. esac
  20792. fi
  20793. cd ..
  20794. rm -f -r conftest.dir
  20795. fi
  20796. # Standard set of common directories for X headers.
  20797. # Check X11 before X11Rn because it is often a symlink to the current release.
  20798. ac_x_header_dirs='
  20799. /usr/X11/include
  20800. /usr/X11R7/include
  20801. /usr/X11R6/include
  20802. /usr/X11R5/include
  20803. /usr/X11R4/include
  20804. /usr/include/X11
  20805. /usr/include/X11R7
  20806. /usr/include/X11R6
  20807. /usr/include/X11R5
  20808. /usr/include/X11R4
  20809. /usr/local/X11/include
  20810. /usr/local/X11R7/include
  20811. /usr/local/X11R6/include
  20812. /usr/local/X11R5/include
  20813. /usr/local/X11R4/include
  20814. /usr/local/include/X11
  20815. /usr/local/include/X11R7
  20816. /usr/local/include/X11R6
  20817. /usr/local/include/X11R5
  20818. /usr/local/include/X11R4
  20819. /opt/X11/include
  20820. /usr/X386/include
  20821. /usr/x386/include
  20822. /usr/XFree86/include/X11
  20823. /usr/include
  20824. /usr/local/include
  20825. /usr/unsupported/include
  20826. /usr/athena/include
  20827. /usr/local/x11r5/include
  20828. /usr/lpp/Xamples/include
  20829. /usr/openwin/include
  20830. /usr/openwin/share/include'
  20831. if test "$ac_x_includes" = no; then
  20832. # Guess where to find include files, by looking for Xlib.h.
  20833. # First, try using that file with no special directory specified.
  20834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20835. /* end confdefs.h. */
  20836. #include <X11/Xlib.h>
  20837. _ACEOF
  20838. if ac_fn_c_try_cpp "$LINENO"
  20839. then :
  20840. # We can compile using X headers with no special include directory.
  20841. ac_x_includes=
  20842. else $as_nop
  20843. for ac_dir in $ac_x_header_dirs; do
  20844. if test -r "$ac_dir/X11/Xlib.h"; then
  20845. ac_x_includes=$ac_dir
  20846. break
  20847. fi
  20848. done
  20849. fi
  20850. rm -f conftest.err conftest.i conftest.$ac_ext
  20851. fi # $ac_x_includes = no
  20852. if test "$ac_x_libraries" = no; then
  20853. # Check for the libraries.
  20854. # See if we find them without any special options.
  20855. # Don't add to $LIBS permanently.
  20856. ac_save_LIBS=$LIBS
  20857. LIBS="-lX11 $LIBS"
  20858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20859. /* end confdefs.h. */
  20860. #include <X11/Xlib.h>
  20861. int
  20862. main (void)
  20863. {
  20864. XrmInitialize ()
  20865. ;
  20866. return 0;
  20867. }
  20868. _ACEOF
  20869. if ac_fn_c_try_link "$LINENO"
  20870. then :
  20871. LIBS=$ac_save_LIBS
  20872. # We can link X programs with no special library path.
  20873. ac_x_libraries=
  20874. else $as_nop
  20875. LIBS=$ac_save_LIBS
  20876. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20877. do
  20878. # Don't even attempt the hair of trying to link an X program!
  20879. for ac_extension in a so sl dylib la dll; do
  20880. if test -r "$ac_dir/libX11.$ac_extension"; then
  20881. ac_x_libraries=$ac_dir
  20882. break 2
  20883. fi
  20884. done
  20885. done
  20886. fi
  20887. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20888. conftest$ac_exeext conftest.$ac_ext
  20889. fi # $ac_x_libraries = no
  20890. fi
  20891. # Record the results.
  20892. case $ac_x_includes,$ac_x_libraries in #(
  20893. no,* | *,no | *\'*) :
  20894. # Didn't find X, or a directory has "'" in its name.
  20895. ac_cv_have_x="have_x=no" ;; #(
  20896. *) :
  20897. # Record where we found X for the cache.
  20898. ac_cv_have_x="have_x=yes\
  20899. ac_x_includes='$ac_x_includes'\
  20900. ac_x_libraries='$ac_x_libraries'" ;;
  20901. esac
  20902. fi
  20903. ;; #(
  20904. *) have_x=yes;;
  20905. esac
  20906. eval "$ac_cv_have_x"
  20907. fi # $with_x != no
  20908. if test "$have_x" != yes; then
  20909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20910. printf "%s\n" "$have_x" >&6; }
  20911. no_x=yes
  20912. else
  20913. # If each of the values was on the command line, it overrides each guess.
  20914. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20915. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20916. # Update the cache value to reflect the command line values.
  20917. ac_cv_have_x="have_x=yes\
  20918. ac_x_includes='$x_includes'\
  20919. ac_x_libraries='$x_libraries'"
  20920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20921. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20922. fi
  20923. if test "$no_x" = yes; then
  20924. # Not all programs may use this symbol, but it does not hurt to define it.
  20925. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20926. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20927. else
  20928. if test -n "$x_includes"; then
  20929. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20930. fi
  20931. # It would also be nice to do this for all -L options, not just this one.
  20932. if test -n "$x_libraries"; then
  20933. X_LIBS="$X_LIBS -L$x_libraries"
  20934. # For Solaris; some versions of Sun CC require a space after -R and
  20935. # others require no space. Words are not sufficient . . . .
  20936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20937. printf %s "checking whether -R must be followed by a space... " >&6; }
  20938. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20939. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20940. ac_c_werror_flag=yes
  20941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20942. /* end confdefs.h. */
  20943. int
  20944. main (void)
  20945. {
  20946. ;
  20947. return 0;
  20948. }
  20949. _ACEOF
  20950. if ac_fn_c_try_link "$LINENO"
  20951. then :
  20952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20953. printf "%s\n" "no" >&6; }
  20954. X_LIBS="$X_LIBS -R$x_libraries"
  20955. else $as_nop
  20956. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20958. /* end confdefs.h. */
  20959. int
  20960. main (void)
  20961. {
  20962. ;
  20963. return 0;
  20964. }
  20965. _ACEOF
  20966. if ac_fn_c_try_link "$LINENO"
  20967. then :
  20968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20969. printf "%s\n" "yes" >&6; }
  20970. X_LIBS="$X_LIBS -R $x_libraries"
  20971. else $as_nop
  20972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20973. printf "%s\n" "neither works" >&6; }
  20974. fi
  20975. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20976. conftest$ac_exeext conftest.$ac_ext
  20977. fi
  20978. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20979. conftest$ac_exeext conftest.$ac_ext
  20980. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20981. LIBS=$ac_xsave_LIBS
  20982. fi
  20983. # Check for system-dependent libraries X programs must link with.
  20984. # Do this before checking for the system-independent R6 libraries
  20985. # (-lICE), since we may need -lsocket or whatever for X linking.
  20986. if test "$ISC" = yes; then
  20987. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20988. else
  20989. # Martyn Johnson says this is needed for Ultrix, if the X
  20990. # libraries were built with DECnet support. And Karl Berry says
  20991. # the Alpha needs dnet_stub (dnet does not exist).
  20992. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20994. /* end confdefs.h. */
  20995. /* Override any GCC internal prototype to avoid an error.
  20996. Use char because int might match the return type of a GCC
  20997. builtin and then its argument prototype would still apply. */
  20998. char XOpenDisplay ();
  20999. int
  21000. main (void)
  21001. {
  21002. return XOpenDisplay ();
  21003. ;
  21004. return 0;
  21005. }
  21006. _ACEOF
  21007. if ac_fn_c_try_link "$LINENO"
  21008. then :
  21009. else $as_nop
  21010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  21011. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  21012. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  21013. then :
  21014. printf %s "(cached) " >&6
  21015. else $as_nop
  21016. ac_check_lib_save_LIBS=$LIBS
  21017. LIBS="-ldnet $LIBS"
  21018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21019. /* end confdefs.h. */
  21020. /* Override any GCC internal prototype to avoid an error.
  21021. Use char because int might match the return type of a GCC
  21022. builtin and then its argument prototype would still apply. */
  21023. char dnet_ntoa ();
  21024. int
  21025. main (void)
  21026. {
  21027. return dnet_ntoa ();
  21028. ;
  21029. return 0;
  21030. }
  21031. _ACEOF
  21032. if ac_fn_c_try_link "$LINENO"
  21033. then :
  21034. ac_cv_lib_dnet_dnet_ntoa=yes
  21035. else $as_nop
  21036. ac_cv_lib_dnet_dnet_ntoa=no
  21037. fi
  21038. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21039. conftest$ac_exeext conftest.$ac_ext
  21040. LIBS=$ac_check_lib_save_LIBS
  21041. fi
  21042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  21043. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  21044. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  21045. then :
  21046. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  21047. fi
  21048. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  21049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  21050. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  21051. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  21052. then :
  21053. printf %s "(cached) " >&6
  21054. else $as_nop
  21055. ac_check_lib_save_LIBS=$LIBS
  21056. LIBS="-ldnet_stub $LIBS"
  21057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21058. /* end confdefs.h. */
  21059. /* Override any GCC internal prototype to avoid an error.
  21060. Use char because int might match the return type of a GCC
  21061. builtin and then its argument prototype would still apply. */
  21062. char dnet_ntoa ();
  21063. int
  21064. main (void)
  21065. {
  21066. return dnet_ntoa ();
  21067. ;
  21068. return 0;
  21069. }
  21070. _ACEOF
  21071. if ac_fn_c_try_link "$LINENO"
  21072. then :
  21073. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  21074. else $as_nop
  21075. ac_cv_lib_dnet_stub_dnet_ntoa=no
  21076. fi
  21077. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21078. conftest$ac_exeext conftest.$ac_ext
  21079. LIBS=$ac_check_lib_save_LIBS
  21080. fi
  21081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  21082. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  21083. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  21084. then :
  21085. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  21086. fi
  21087. fi
  21088. fi
  21089. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21090. conftest$ac_exeext conftest.$ac_ext
  21091. LIBS="$ac_xsave_LIBS"
  21092. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  21093. # to get the SysV transport functions.
  21094. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  21095. # needs -lnsl.
  21096. # The nsl library prevents programs from opening the X display
  21097. # on Irix 5.2, according to T.E. Dickey.
  21098. # The functions gethostbyname, getservbyname, and inet_addr are
  21099. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  21100. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  21101. if test "x$ac_cv_func_gethostbyname" = xyes
  21102. then :
  21103. fi
  21104. if test $ac_cv_func_gethostbyname = no; then
  21105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  21106. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  21107. if test ${ac_cv_lib_nsl_gethostbyname+y}
  21108. then :
  21109. printf %s "(cached) " >&6
  21110. else $as_nop
  21111. ac_check_lib_save_LIBS=$LIBS
  21112. LIBS="-lnsl $LIBS"
  21113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21114. /* end confdefs.h. */
  21115. /* Override any GCC internal prototype to avoid an error.
  21116. Use char because int might match the return type of a GCC
  21117. builtin and then its argument prototype would still apply. */
  21118. char gethostbyname ();
  21119. int
  21120. main (void)
  21121. {
  21122. return gethostbyname ();
  21123. ;
  21124. return 0;
  21125. }
  21126. _ACEOF
  21127. if ac_fn_c_try_link "$LINENO"
  21128. then :
  21129. ac_cv_lib_nsl_gethostbyname=yes
  21130. else $as_nop
  21131. ac_cv_lib_nsl_gethostbyname=no
  21132. fi
  21133. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21134. conftest$ac_exeext conftest.$ac_ext
  21135. LIBS=$ac_check_lib_save_LIBS
  21136. fi
  21137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21138. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21139. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  21140. then :
  21141. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21142. fi
  21143. if test $ac_cv_lib_nsl_gethostbyname = no; then
  21144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  21145. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  21146. if test ${ac_cv_lib_bsd_gethostbyname+y}
  21147. then :
  21148. printf %s "(cached) " >&6
  21149. else $as_nop
  21150. ac_check_lib_save_LIBS=$LIBS
  21151. LIBS="-lbsd $LIBS"
  21152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21153. /* end confdefs.h. */
  21154. /* Override any GCC internal prototype to avoid an error.
  21155. Use char because int might match the return type of a GCC
  21156. builtin and then its argument prototype would still apply. */
  21157. char gethostbyname ();
  21158. int
  21159. main (void)
  21160. {
  21161. return gethostbyname ();
  21162. ;
  21163. return 0;
  21164. }
  21165. _ACEOF
  21166. if ac_fn_c_try_link "$LINENO"
  21167. then :
  21168. ac_cv_lib_bsd_gethostbyname=yes
  21169. else $as_nop
  21170. ac_cv_lib_bsd_gethostbyname=no
  21171. fi
  21172. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21173. conftest$ac_exeext conftest.$ac_ext
  21174. LIBS=$ac_check_lib_save_LIBS
  21175. fi
  21176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21177. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  21178. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  21179. then :
  21180. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21181. fi
  21182. fi
  21183. fi
  21184. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  21185. # socket/setsockopt and other routines are undefined under SCO ODT
  21186. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  21187. # on later versions), says Simon Leinen: it contains gethostby*
  21188. # variants that don't use the name server (or something). -lsocket
  21189. # must be given before -lnsl if both are needed. We assume that
  21190. # if connect needs -lnsl, so does gethostbyname.
  21191. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  21192. if test "x$ac_cv_func_connect" = xyes
  21193. then :
  21194. fi
  21195. if test $ac_cv_func_connect = no; then
  21196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  21197. printf %s "checking for connect in -lsocket... " >&6; }
  21198. if test ${ac_cv_lib_socket_connect+y}
  21199. then :
  21200. printf %s "(cached) " >&6
  21201. else $as_nop
  21202. ac_check_lib_save_LIBS=$LIBS
  21203. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21205. /* end confdefs.h. */
  21206. /* Override any GCC internal prototype to avoid an error.
  21207. Use char because int might match the return type of a GCC
  21208. builtin and then its argument prototype would still apply. */
  21209. char connect ();
  21210. int
  21211. main (void)
  21212. {
  21213. return connect ();
  21214. ;
  21215. return 0;
  21216. }
  21217. _ACEOF
  21218. if ac_fn_c_try_link "$LINENO"
  21219. then :
  21220. ac_cv_lib_socket_connect=yes
  21221. else $as_nop
  21222. ac_cv_lib_socket_connect=no
  21223. fi
  21224. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21225. conftest$ac_exeext conftest.$ac_ext
  21226. LIBS=$ac_check_lib_save_LIBS
  21227. fi
  21228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  21229. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  21230. if test "x$ac_cv_lib_socket_connect" = xyes
  21231. then :
  21232. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21233. fi
  21234. fi
  21235. # Guillermo Gomez says -lposix is necessary on A/UX.
  21236. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  21237. if test "x$ac_cv_func_remove" = xyes
  21238. then :
  21239. fi
  21240. if test $ac_cv_func_remove = no; then
  21241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  21242. printf %s "checking for remove in -lposix... " >&6; }
  21243. if test ${ac_cv_lib_posix_remove+y}
  21244. then :
  21245. printf %s "(cached) " >&6
  21246. else $as_nop
  21247. ac_check_lib_save_LIBS=$LIBS
  21248. LIBS="-lposix $LIBS"
  21249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21250. /* end confdefs.h. */
  21251. /* Override any GCC internal prototype to avoid an error.
  21252. Use char because int might match the return type of a GCC
  21253. builtin and then its argument prototype would still apply. */
  21254. char remove ();
  21255. int
  21256. main (void)
  21257. {
  21258. return remove ();
  21259. ;
  21260. return 0;
  21261. }
  21262. _ACEOF
  21263. if ac_fn_c_try_link "$LINENO"
  21264. then :
  21265. ac_cv_lib_posix_remove=yes
  21266. else $as_nop
  21267. ac_cv_lib_posix_remove=no
  21268. fi
  21269. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21270. conftest$ac_exeext conftest.$ac_ext
  21271. LIBS=$ac_check_lib_save_LIBS
  21272. fi
  21273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21274. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21275. if test "x$ac_cv_lib_posix_remove" = xyes
  21276. then :
  21277. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21278. fi
  21279. fi
  21280. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21281. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21282. if test "x$ac_cv_func_shmat" = xyes
  21283. then :
  21284. fi
  21285. if test $ac_cv_func_shmat = no; then
  21286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21287. printf %s "checking for shmat in -lipc... " >&6; }
  21288. if test ${ac_cv_lib_ipc_shmat+y}
  21289. then :
  21290. printf %s "(cached) " >&6
  21291. else $as_nop
  21292. ac_check_lib_save_LIBS=$LIBS
  21293. LIBS="-lipc $LIBS"
  21294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21295. /* end confdefs.h. */
  21296. /* Override any GCC internal prototype to avoid an error.
  21297. Use char because int might match the return type of a GCC
  21298. builtin and then its argument prototype would still apply. */
  21299. char shmat ();
  21300. int
  21301. main (void)
  21302. {
  21303. return shmat ();
  21304. ;
  21305. return 0;
  21306. }
  21307. _ACEOF
  21308. if ac_fn_c_try_link "$LINENO"
  21309. then :
  21310. ac_cv_lib_ipc_shmat=yes
  21311. else $as_nop
  21312. ac_cv_lib_ipc_shmat=no
  21313. fi
  21314. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21315. conftest$ac_exeext conftest.$ac_ext
  21316. LIBS=$ac_check_lib_save_LIBS
  21317. fi
  21318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21319. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21320. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21321. then :
  21322. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21323. fi
  21324. fi
  21325. fi
  21326. # Check for libraries that X11R6 Xt/Xaw programs need.
  21327. ac_save_LDFLAGS=$LDFLAGS
  21328. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21329. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21330. # check for ICE first), but we must link in the order -lSM -lICE or
  21331. # we get undefined symbols. So assume we have SM if we have ICE.
  21332. # These have to be linked with before -lX11, unlike the other
  21333. # libraries we check for below, so use a different variable.
  21334. # John Interrante, Karl Berry
  21335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21336. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21337. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21338. then :
  21339. printf %s "(cached) " >&6
  21340. else $as_nop
  21341. ac_check_lib_save_LIBS=$LIBS
  21342. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21344. /* end confdefs.h. */
  21345. /* Override any GCC internal prototype to avoid an error.
  21346. Use char because int might match the return type of a GCC
  21347. builtin and then its argument prototype would still apply. */
  21348. char IceConnectionNumber ();
  21349. int
  21350. main (void)
  21351. {
  21352. return IceConnectionNumber ();
  21353. ;
  21354. return 0;
  21355. }
  21356. _ACEOF
  21357. if ac_fn_c_try_link "$LINENO"
  21358. then :
  21359. ac_cv_lib_ICE_IceConnectionNumber=yes
  21360. else $as_nop
  21361. ac_cv_lib_ICE_IceConnectionNumber=no
  21362. fi
  21363. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21364. conftest$ac_exeext conftest.$ac_ext
  21365. LIBS=$ac_check_lib_save_LIBS
  21366. fi
  21367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21368. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21369. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21370. then :
  21371. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21372. fi
  21373. LDFLAGS=$ac_save_LDFLAGS
  21374. fi
  21375. if test x$have_x = xyes; then
  21376. # Check whether --enable-x11-shared was given.
  21377. if test ${enable_x11_shared+y}
  21378. then :
  21379. enableval=$enable_x11_shared;
  21380. else $as_nop
  21381. enable_x11_shared=maybe
  21382. fi
  21383. case "$host" in
  21384. *-*-darwin*)
  21385. # Apple now puts this in /opt/X11
  21386. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21387. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21388. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21389. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21390. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21391. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21392. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21393. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21394. ;;
  21395. *-*-openbsd*)
  21396. x11_lib='libX11.so'
  21397. x11ext_lib='libXext.so'
  21398. xcursor_lib='libXcursor.so'
  21399. xinput_lib='libXi.so'
  21400. xfixes_lib='libXfixes.so'
  21401. xrandr_lib='libXrandr.so'
  21402. xrender_lib='libXrender.so'
  21403. xss_lib='libXss.so'
  21404. ;;
  21405. *)
  21406. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21407. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21408. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21409. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21410. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21411. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21412. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21413. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21414. ;;
  21415. esac
  21416. if test x$ac_cv_func_shmat != xyes; then
  21417. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21418. fi
  21419. CFLAGS="$CFLAGS $X_CFLAGS"
  21420. LDFLAGS="$LDFLAGS $X_LIBS"
  21421. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21422. #include <X11/Xproto.h>
  21423. "
  21424. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21425. then :
  21426. have_xext_h_hdr=yes
  21427. else $as_nop
  21428. have_xext_h_hdr=no
  21429. fi
  21430. if test x$have_xext_h_hdr != xyes; then
  21431. as_fn_error $? "
  21432. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21433. " "$LINENO" 5
  21434. fi
  21435. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21436. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21437. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21438. # Needed so SDL applications can include SDL_syswm.h
  21439. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21440. if test x$enable_x11_shared = xmaybe; then
  21441. enable_x11_shared=yes
  21442. fi
  21443. if test x$have_loadso != xyes && \
  21444. test x$enable_x11_shared = xyes; then
  21445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21446. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21447. enable_x11_shared=no
  21448. fi
  21449. if test x$have_loadso = xyes && \
  21450. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21451. echo "-- dynamic libX11 -> $x11_lib"
  21452. echo "-- dynamic libX11ext -> $x11ext_lib"
  21453. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21454. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21455. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21456. else
  21457. enable_x11_shared=no
  21458. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21459. SUMMARY_video="${SUMMARY_video} x11"
  21460. fi
  21461. have_video=yes
  21462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21463. printf %s "checking for XGenericEvent... " >&6; }
  21464. have_XGenericEvent=no
  21465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21466. /* end confdefs.h. */
  21467. #include <X11/Xlib.h>
  21468. int
  21469. main (void)
  21470. {
  21471. Display *display;
  21472. XEvent event;
  21473. XGenericEventCookie *cookie = &event.xcookie;
  21474. XNextEvent(display, &event);
  21475. XGetEventData(display, cookie);
  21476. XFreeEventData(display, cookie);
  21477. ;
  21478. return 0;
  21479. }
  21480. _ACEOF
  21481. if ac_fn_c_try_compile "$LINENO"
  21482. then :
  21483. have_XGenericEvent=yes
  21484. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21485. fi
  21486. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21488. printf "%s\n" "$have_XGenericEvent" >&6; }
  21489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21490. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21491. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21492. then :
  21493. printf %s "(cached) " >&6
  21494. else $as_nop
  21495. ac_check_lib_save_LIBS=$LIBS
  21496. LIBS="-lX11 $LIBS"
  21497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21498. /* end confdefs.h. */
  21499. /* Override any GCC internal prototype to avoid an error.
  21500. Use char because int might match the return type of a GCC
  21501. builtin and then its argument prototype would still apply. */
  21502. char XkbKeycodeToKeysym ();
  21503. int
  21504. main (void)
  21505. {
  21506. return XkbKeycodeToKeysym ();
  21507. ;
  21508. return 0;
  21509. }
  21510. _ACEOF
  21511. if ac_fn_c_try_link "$LINENO"
  21512. then :
  21513. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21514. else $as_nop
  21515. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21516. fi
  21517. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21518. conftest$ac_exeext conftest.$ac_ext
  21519. LIBS=$ac_check_lib_save_LIBS
  21520. fi
  21521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21522. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21523. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21524. then :
  21525. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21526. fi
  21527. # Check whether --enable-video-x11-xcursor was given.
  21528. if test ${enable_video_x11_xcursor+y}
  21529. then :
  21530. enableval=$enable_video_x11_xcursor;
  21531. else $as_nop
  21532. enable_video_x11_xcursor=yes
  21533. fi
  21534. if test x$enable_video_x11_xcursor = xyes; then
  21535. definitely_enable_video_x11_xcursor=no
  21536. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21537. "
  21538. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21539. then :
  21540. have_xcursor_h_hdr=yes
  21541. else $as_nop
  21542. have_xcursor_h_hdr=no
  21543. fi
  21544. if test x$have_xcursor_h_hdr = xyes; then
  21545. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21546. echo "-- dynamic libXcursor -> $xcursor_lib"
  21547. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21548. definitely_enable_video_x11_xcursor=yes
  21549. else
  21550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21551. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21552. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21553. then :
  21554. printf %s "(cached) " >&6
  21555. else $as_nop
  21556. ac_check_lib_save_LIBS=$LIBS
  21557. LIBS="-lXcursor $LIBS"
  21558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21559. /* end confdefs.h. */
  21560. /* Override any GCC internal prototype to avoid an error.
  21561. Use char because int might match the return type of a GCC
  21562. builtin and then its argument prototype would still apply. */
  21563. char XcursorImageCreate ();
  21564. int
  21565. main (void)
  21566. {
  21567. return XcursorImageCreate ();
  21568. ;
  21569. return 0;
  21570. }
  21571. _ACEOF
  21572. if ac_fn_c_try_link "$LINENO"
  21573. then :
  21574. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21575. else $as_nop
  21576. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21577. fi
  21578. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21579. conftest$ac_exeext conftest.$ac_ext
  21580. LIBS=$ac_check_lib_save_LIBS
  21581. fi
  21582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21583. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21584. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21585. then :
  21586. have_xcursor_lib=yes
  21587. fi
  21588. if test x$have_xcursor_lib = xyes ; then
  21589. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21590. definitely_enable_video_x11_xcursor=yes
  21591. fi
  21592. fi
  21593. fi
  21594. fi
  21595. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21596. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21597. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21598. fi
  21599. # Check whether --enable-video-x11-xdbe was given.
  21600. if test ${enable_video_x11_xdbe+y}
  21601. then :
  21602. enableval=$enable_video_x11_xdbe;
  21603. else $as_nop
  21604. enable_video_x11_xdbe=yes
  21605. fi
  21606. if test x$enable_video_x11_xdbe = xyes; then
  21607. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21608. "
  21609. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21610. then :
  21611. have_dbe_h_hdr=yes
  21612. else $as_nop
  21613. have_dbe_h_hdr=no
  21614. fi
  21615. if test x$have_dbe_h_hdr = xyes; then
  21616. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21617. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21618. fi
  21619. fi
  21620. # Check whether --enable-video-x11-xinput was given.
  21621. if test ${enable_video_x11_xinput+y}
  21622. then :
  21623. enableval=$enable_video_x11_xinput;
  21624. else $as_nop
  21625. enable_video_x11_xinput=yes
  21626. fi
  21627. if test x$enable_video_x11_xinput = xyes; then
  21628. definitely_enable_video_x11_xinput=no
  21629. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21630. "
  21631. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21632. then :
  21633. have_xinput_h_hdr=yes
  21634. else $as_nop
  21635. have_xinput_h_hdr=no
  21636. fi
  21637. if test x$have_xinput_h_hdr = xyes; then
  21638. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21639. echo "-- dynamic libXi -> $xinput_lib"
  21640. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21641. definitely_enable_video_x11_xinput=yes
  21642. else
  21643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21644. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21645. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21646. then :
  21647. printf %s "(cached) " >&6
  21648. else $as_nop
  21649. ac_check_lib_save_LIBS=$LIBS
  21650. LIBS="-lXi $LIBS"
  21651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21652. /* end confdefs.h. */
  21653. /* Override any GCC internal prototype to avoid an error.
  21654. Use char because int might match the return type of a GCC
  21655. builtin and then its argument prototype would still apply. */
  21656. char XOpenDevice ();
  21657. int
  21658. main (void)
  21659. {
  21660. return XOpenDevice ();
  21661. ;
  21662. return 0;
  21663. }
  21664. _ACEOF
  21665. if ac_fn_c_try_link "$LINENO"
  21666. then :
  21667. ac_cv_lib_Xi_XOpenDevice=yes
  21668. else $as_nop
  21669. ac_cv_lib_Xi_XOpenDevice=no
  21670. fi
  21671. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21672. conftest$ac_exeext conftest.$ac_ext
  21673. LIBS=$ac_check_lib_save_LIBS
  21674. fi
  21675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21676. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21677. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21678. then :
  21679. have_xinput_lib=yes
  21680. fi
  21681. if test x$have_xinput_lib = xyes ; then
  21682. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21683. definitely_enable_video_x11_xinput=yes
  21684. fi
  21685. fi
  21686. fi
  21687. fi
  21688. if test x$definitely_enable_video_x11_xinput = xyes; then
  21689. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21690. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21692. printf %s "checking for xinput2 multitouch... " >&6; }
  21693. have_xinput2_multitouch=no
  21694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21695. /* end confdefs.h. */
  21696. #include <X11/Xlib.h>
  21697. #include <X11/Xproto.h>
  21698. #include <X11/extensions/XInput2.h>
  21699. int
  21700. main (void)
  21701. {
  21702. int event_type = XI_TouchBegin;
  21703. XITouchClassInfo *t;
  21704. ;
  21705. return 0;
  21706. }
  21707. _ACEOF
  21708. if ac_fn_c_try_compile "$LINENO"
  21709. then :
  21710. have_xinput2_multitouch=yes
  21711. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21712. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21713. fi
  21714. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21716. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21717. fi
  21718. # Check whether --enable-video-x11-xfixes was given.
  21719. if test ${enable_video_x11_xfixes+y}
  21720. then :
  21721. enableval=$enable_video_x11_xfixes;
  21722. else $as_nop
  21723. enable_video_x11_xfixes=yes
  21724. fi
  21725. if test x$enable_video_x11_xfixes = xyes; then
  21726. definitely_enable_video_x11_xfixes=no
  21727. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21729. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21731. /* end confdefs.h. */
  21732. #include <X11/Xlib.h>
  21733. #include <X11/Xproto.h>
  21734. #include <X11/extensions/XInput2.h>
  21735. #include <X11/extensions/Xfixes.h>
  21736. int
  21737. main (void)
  21738. {
  21739. BarrierEventID b;
  21740. ;
  21741. return 0;
  21742. }
  21743. _ACEOF
  21744. if ac_fn_c_try_compile "$LINENO"
  21745. then :
  21746. have_xfixes_h_hdr=yes
  21747. else $as_nop
  21748. have_xfixes_h_hdr=no
  21749. fi
  21750. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21752. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21753. if test x$have_xfixes_h_hdr = xyes; then
  21754. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21755. echo "-- dynamic libXfixes -> $xfixes_lib"
  21756. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21757. definitely_enable_video_x11_xfixes=yes
  21758. else
  21759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21760. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21761. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21762. then :
  21763. printf %s "(cached) " >&6
  21764. else $as_nop
  21765. ac_check_lib_save_LIBS=$LIBS
  21766. LIBS="-lXfixes $LIBS"
  21767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21768. /* end confdefs.h. */
  21769. /* Override any GCC internal prototype to avoid an error.
  21770. Use char because int might match the return type of a GCC
  21771. builtin and then its argument prototype would still apply. */
  21772. char XFixesCreatePointerBarrier ();
  21773. int
  21774. main (void)
  21775. {
  21776. return XFixesCreatePointerBarrier ();
  21777. ;
  21778. return 0;
  21779. }
  21780. _ACEOF
  21781. if ac_fn_c_try_link "$LINENO"
  21782. then :
  21783. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21784. else $as_nop
  21785. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21786. fi
  21787. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21788. conftest$ac_exeext conftest.$ac_ext
  21789. LIBS=$ac_check_lib_save_LIBS
  21790. fi
  21791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21792. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21793. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21794. then :
  21795. have_xfixes_lib=yes
  21796. fi
  21797. if test x$have_xfixes_lib = xyes ; then
  21798. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21799. definitely_enable_video_x11_xfixes=yes
  21800. fi
  21801. fi
  21802. fi
  21803. fi
  21804. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21805. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21806. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21807. fi
  21808. # Check whether --enable-video-x11-xrandr was given.
  21809. if test ${enable_video_x11_xrandr+y}
  21810. then :
  21811. enableval=$enable_video_x11_xrandr;
  21812. else $as_nop
  21813. enable_video_x11_xrandr=yes
  21814. fi
  21815. if test x$enable_video_x11_xrandr = xyes; then
  21816. definitely_enable_video_x11_xrandr=no
  21817. have_xrandr_h_hdr=no
  21818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21819. /* end confdefs.h. */
  21820. #include <X11/Xlib.h>
  21821. #include <X11/extensions/Xrandr.h>
  21822. int
  21823. main (void)
  21824. {
  21825. XRRScreenResources *res = NULL;
  21826. ;
  21827. return 0;
  21828. }
  21829. _ACEOF
  21830. if ac_fn_c_try_compile "$LINENO"
  21831. then :
  21832. have_xrandr_h_hdr=yes
  21833. fi
  21834. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21835. if test x$have_xrandr_h_hdr = xyes; then
  21836. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21837. echo "-- dynamic libXrandr -> $xrandr_lib"
  21838. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21839. definitely_enable_video_x11_xrandr=yes
  21840. else
  21841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21842. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21843. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21844. then :
  21845. printf %s "(cached) " >&6
  21846. else $as_nop
  21847. ac_check_lib_save_LIBS=$LIBS
  21848. LIBS="-lXrandr $LIBS"
  21849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21850. /* end confdefs.h. */
  21851. /* Override any GCC internal prototype to avoid an error.
  21852. Use char because int might match the return type of a GCC
  21853. builtin and then its argument prototype would still apply. */
  21854. char XRRQueryExtension ();
  21855. int
  21856. main (void)
  21857. {
  21858. return XRRQueryExtension ();
  21859. ;
  21860. return 0;
  21861. }
  21862. _ACEOF
  21863. if ac_fn_c_try_link "$LINENO"
  21864. then :
  21865. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21866. else $as_nop
  21867. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21868. fi
  21869. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21870. conftest$ac_exeext conftest.$ac_ext
  21871. LIBS=$ac_check_lib_save_LIBS
  21872. fi
  21873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21874. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21875. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21876. then :
  21877. have_xrandr_lib=yes
  21878. fi
  21879. if test x$have_xrandr_lib = xyes ; then
  21880. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21881. definitely_enable_video_x11_xrandr=yes
  21882. fi
  21883. fi
  21884. fi
  21885. fi
  21886. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21887. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21888. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21889. fi
  21890. # Check whether --enable-video-x11-scrnsaver was given.
  21891. if test ${enable_video_x11_scrnsaver+y}
  21892. then :
  21893. enableval=$enable_video_x11_scrnsaver;
  21894. else $as_nop
  21895. enable_video_x11_scrnsaver=yes
  21896. fi
  21897. if test x$enable_video_x11_scrnsaver = xyes; then
  21898. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21899. "
  21900. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21901. then :
  21902. have_scrnsaver_h_hdr=yes
  21903. else $as_nop
  21904. have_scrnsaver_h_hdr=no
  21905. fi
  21906. if test x$have_scrnsaver_h_hdr = xyes; then
  21907. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21908. echo "-- dynamic libXss -> $xss_lib"
  21909. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21910. definitely_enable_video_x11_scrnsaver=yes
  21911. else
  21912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21913. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21914. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21915. then :
  21916. printf %s "(cached) " >&6
  21917. else $as_nop
  21918. ac_check_lib_save_LIBS=$LIBS
  21919. LIBS="-lXss $LIBS"
  21920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21921. /* end confdefs.h. */
  21922. /* Override any GCC internal prototype to avoid an error.
  21923. Use char because int might match the return type of a GCC
  21924. builtin and then its argument prototype would still apply. */
  21925. char XScreenSaverSuspend ();
  21926. int
  21927. main (void)
  21928. {
  21929. return XScreenSaverSuspend ();
  21930. ;
  21931. return 0;
  21932. }
  21933. _ACEOF
  21934. if ac_fn_c_try_link "$LINENO"
  21935. then :
  21936. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21937. else $as_nop
  21938. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21939. fi
  21940. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21941. conftest$ac_exeext conftest.$ac_ext
  21942. LIBS=$ac_check_lib_save_LIBS
  21943. fi
  21944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21945. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21946. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21947. then :
  21948. have_xss_lib=yes
  21949. fi
  21950. if test x$have_xss_lib = xyes ; then
  21951. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21952. definitely_enable_video_x11_scrnsaver=yes
  21953. fi
  21954. fi
  21955. fi
  21956. fi
  21957. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21958. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21959. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21960. fi
  21961. # Check whether --enable-video-x11-xshape was given.
  21962. if test ${enable_video_x11_xshape+y}
  21963. then :
  21964. enableval=$enable_video_x11_xshape;
  21965. else $as_nop
  21966. enable_video_x11_xshape=yes
  21967. fi
  21968. if test x$enable_video_x11_xshape = xyes; then
  21969. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21970. "
  21971. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21972. then :
  21973. have_shape_h_hdr=yes
  21974. else $as_nop
  21975. have_shape_h_hdr=no
  21976. fi
  21977. if test x$have_shape_h_hdr = xyes; then
  21978. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21979. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21980. fi
  21981. fi
  21982. fi
  21983. fi
  21984. if test x$have_x != xyes; then
  21985. # Prevent Mesa from including X11 headers
  21986. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21987. fi
  21988. }
  21989. CheckVivanteVideo()
  21990. {
  21991. # Check whether --enable-video-vivante was given.
  21992. if test ${enable_video_vivante+y}
  21993. then :
  21994. enableval=$enable_video_vivante;
  21995. else $as_nop
  21996. enable_video_vivante=yes
  21997. fi
  21998. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  22000. printf %s "checking for Vivante VDK API... " >&6; }
  22001. have_vivante_vdk=no
  22002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22003. /* end confdefs.h. */
  22004. #define LINUX
  22005. #define EGL_API_FB
  22006. #include <gc_vdk.h>
  22007. int
  22008. main (void)
  22009. {
  22010. ;
  22011. return 0;
  22012. }
  22013. _ACEOF
  22014. if ac_fn_c_try_compile "$LINENO"
  22015. then :
  22016. have_vivante_vdk=yes
  22017. fi
  22018. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  22020. printf "%s\n" "$have_vivante_vdk" >&6; }
  22021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  22022. printf %s "checking for Vivante FB API... " >&6; }
  22023. have_vivante_egl=no
  22024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22025. /* end confdefs.h. */
  22026. #define LINUX
  22027. #define EGL_API_FB
  22028. #include <EGL/eglvivante.h>
  22029. int
  22030. main (void)
  22031. {
  22032. ;
  22033. return 0;
  22034. }
  22035. _ACEOF
  22036. if ac_fn_c_try_compile "$LINENO"
  22037. then :
  22038. have_vivante_egl=yes
  22039. fi
  22040. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  22042. printf "%s\n" "$have_vivante_egl" >&6; }
  22043. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  22044. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  22045. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  22046. if test x$have_vivante_vdk = xyes; then
  22047. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  22048. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  22049. fi
  22050. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  22051. SUMMARY_video="${SUMMARY_video} vivante"
  22052. have_video=yes
  22053. fi
  22054. fi
  22055. }
  22056. CheckHaikuVideo()
  22057. {
  22058. if test x$enable_video = xyes; then
  22059. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  22060. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  22061. have_video=yes
  22062. SUMMARY_video="${SUMMARY_video} haiku"
  22063. fi
  22064. }
  22065. CheckCOCOA()
  22066. {
  22067. # Check whether --enable-video-cocoa was given.
  22068. if test ${enable_video_cocoa+y}
  22069. then :
  22070. enableval=$enable_video_cocoa;
  22071. else $as_nop
  22072. enable_video_cocoa=yes
  22073. fi
  22074. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  22075. save_CFLAGS="$CFLAGS"
  22076. CFLAGS="$CFLAGS -x objective-c"
  22077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  22078. printf %s "checking for Cocoa framework... " >&6; }
  22079. have_cocoa=no
  22080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22081. /* end confdefs.h. */
  22082. #import <Cocoa/Cocoa.h>
  22083. int
  22084. main (void)
  22085. {
  22086. ;
  22087. return 0;
  22088. }
  22089. _ACEOF
  22090. if ac_fn_c_try_compile "$LINENO"
  22091. then :
  22092. have_cocoa=yes
  22093. fi
  22094. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  22096. printf "%s\n" "$have_cocoa" >&6; }
  22097. CFLAGS="$save_CFLAGS"
  22098. if test x$have_cocoa = xyes; then
  22099. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  22100. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  22101. SUMMARY_video="${SUMMARY_video} cocoa"
  22102. have_video=yes
  22103. fi
  22104. fi
  22105. }
  22106. CheckMETAL()
  22107. {
  22108. # Check whether --enable-video-metal was given.
  22109. if test ${enable_video_metal+y}
  22110. then :
  22111. enableval=$enable_video_metal;
  22112. else $as_nop
  22113. enable_video_metal=yes
  22114. fi
  22115. # Check whether --enable-render-metal was given.
  22116. if test ${enable_render_metal+y}
  22117. then :
  22118. enableval=$enable_render_metal;
  22119. else $as_nop
  22120. enable_render_metal=yes
  22121. fi
  22122. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  22123. save_CFLAGS="$CFLAGS"
  22124. CFLAGS="$CFLAGS -x objective-c"
  22125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  22126. printf %s "checking for Metal framework... " >&6; }
  22127. have_metal=no
  22128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22129. /* end confdefs.h. */
  22130. #import <Cocoa/Cocoa.h>
  22131. #import <Metal/Metal.h>
  22132. #import <QuartzCore/CAMetalLayer.h>
  22133. #if TARGET_CPU_X86
  22134. #error Metal doesn't work on this configuration
  22135. #endif
  22136. int
  22137. main (void)
  22138. {
  22139. ;
  22140. return 0;
  22141. }
  22142. _ACEOF
  22143. if ac_fn_c_try_compile "$LINENO"
  22144. then :
  22145. have_metal=yes
  22146. fi
  22147. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22148. CFLAGS="$save_CFLAGS"
  22149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  22150. printf "%s\n" "$have_metal" >&6; }
  22151. if test x$have_metal = xyes; then
  22152. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  22153. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  22154. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  22155. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  22156. fi
  22157. SUMMARY_video="${SUMMARY_video} metal"
  22158. else
  22159. enable_video_metal=no
  22160. enable_render_metal=no
  22161. fi
  22162. fi
  22163. }
  22164. CheckDirectFB()
  22165. {
  22166. # Check whether --enable-video-directfb was given.
  22167. if test ${enable_video_directfb+y}
  22168. then :
  22169. enableval=$enable_video_directfb;
  22170. else $as_nop
  22171. enable_video_directfb=no
  22172. fi
  22173. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  22174. pkg_failed=no
  22175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  22176. printf %s "checking for directfb >= 1.0.0... " >&6; }
  22177. if test -n "$DIRECTFB_CFLAGS"; then
  22178. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  22179. elif test -n "$PKG_CONFIG"; then
  22180. if test -n "$PKG_CONFIG" && \
  22181. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22182. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22183. ac_status=$?
  22184. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22185. test $ac_status = 0; }; then
  22186. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  22187. test "x$?" != "x0" && pkg_failed=yes
  22188. else
  22189. pkg_failed=yes
  22190. fi
  22191. else
  22192. pkg_failed=untried
  22193. fi
  22194. if test -n "$DIRECTFB_LIBS"; then
  22195. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  22196. elif test -n "$PKG_CONFIG"; then
  22197. if test -n "$PKG_CONFIG" && \
  22198. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22199. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22200. ac_status=$?
  22201. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22202. test $ac_status = 0; }; then
  22203. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  22204. test "x$?" != "x0" && pkg_failed=yes
  22205. else
  22206. pkg_failed=yes
  22207. fi
  22208. else
  22209. pkg_failed=untried
  22210. fi
  22211. if test $pkg_failed = yes; then
  22212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22213. printf "%s\n" "no" >&6; }
  22214. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22215. _pkg_short_errors_supported=yes
  22216. else
  22217. _pkg_short_errors_supported=no
  22218. fi
  22219. if test $_pkg_short_errors_supported = yes; then
  22220. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22221. else
  22222. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22223. fi
  22224. # Put the nasty error message in config.log where it belongs
  22225. echo "$DIRECTFB_PKG_ERRORS" >&5
  22226. video_directfb=no
  22227. elif test $pkg_failed = untried; then
  22228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22229. printf "%s\n" "no" >&6; }
  22230. video_directfb=no
  22231. else
  22232. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  22233. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  22234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22235. printf "%s\n" "yes" >&6; }
  22236. video_directfb=yes
  22237. fi
  22238. if test x$video_directfb = xyes; then
  22239. # SuSE 11.1 installs directfb-config without directfb-devel
  22240. save_CPPFLAGS="$CPPFLAGS"
  22241. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  22242. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  22243. if test "x$ac_cv_header_directfb_h" = xyes
  22244. then :
  22245. have_directfb_hdr=yes
  22246. else $as_nop
  22247. have_directfb_hdr=no
  22248. fi
  22249. CPPFLAGS="$save_CPPFLAGS"
  22250. video_directfb=$have_directfb_hdr
  22251. fi
  22252. if test x$video_directfb = xyes; then
  22253. # Check whether --enable-directfb-shared was given.
  22254. if test ${enable_directfb_shared+y}
  22255. then :
  22256. enableval=$enable_directfb_shared;
  22257. else $as_nop
  22258. enable_directfb_shared=yes
  22259. fi
  22260. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22261. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22262. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22263. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22264. directfb_shared=no
  22265. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22266. if test x$have_loadso != xyes && \
  22267. test x$enable_directfb_shared = xyes; then
  22268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22269. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22270. fi
  22271. if test x$have_loadso = xyes && \
  22272. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22273. directfb_shared=yes
  22274. echo "-- dynamic libdirectfb -> $directfb_lib"
  22275. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22276. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22277. else
  22278. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22279. SUMMARY_video="${SUMMARY_video} directfb"
  22280. fi
  22281. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22282. have_video=yes
  22283. fi
  22284. fi
  22285. }
  22286. CheckKMSDRM()
  22287. {
  22288. # Check whether --enable-video-kmsdrm was given.
  22289. if test ${enable_video_kmsdrm+y}
  22290. then :
  22291. enableval=$enable_video_kmsdrm;
  22292. else $as_nop
  22293. enable_video_kmsdrm=yes
  22294. fi
  22295. if test x$enable_video = xyes && \
  22296. test x$enable_video_kmsdrm = xyes && \
  22297. test x$video_opengl_egl = xyes; then
  22298. video_kmsdrm=no
  22299. pkg_failed=no
  22300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22301. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22302. if test -n "$LIBDRM_CFLAGS"; then
  22303. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22304. elif test -n "$PKG_CONFIG"; then
  22305. if test -n "$PKG_CONFIG" && \
  22306. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22307. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22308. ac_status=$?
  22309. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22310. test $ac_status = 0; }; then
  22311. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22312. test "x$?" != "x0" && pkg_failed=yes
  22313. else
  22314. pkg_failed=yes
  22315. fi
  22316. else
  22317. pkg_failed=untried
  22318. fi
  22319. if test -n "$LIBDRM_LIBS"; then
  22320. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22321. elif test -n "$PKG_CONFIG"; then
  22322. if test -n "$PKG_CONFIG" && \
  22323. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22324. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22325. ac_status=$?
  22326. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22327. test $ac_status = 0; }; then
  22328. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22329. test "x$?" != "x0" && pkg_failed=yes
  22330. else
  22331. pkg_failed=yes
  22332. fi
  22333. else
  22334. pkg_failed=untried
  22335. fi
  22336. if test $pkg_failed = yes; then
  22337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22338. printf "%s\n" "no" >&6; }
  22339. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22340. _pkg_short_errors_supported=yes
  22341. else
  22342. _pkg_short_errors_supported=no
  22343. fi
  22344. if test $_pkg_short_errors_supported = yes; then
  22345. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22346. else
  22347. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22348. fi
  22349. # Put the nasty error message in config.log where it belongs
  22350. echo "$LIBDRM_PKG_ERRORS" >&5
  22351. libdrm_avail=no
  22352. elif test $pkg_failed = untried; then
  22353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22354. printf "%s\n" "no" >&6; }
  22355. libdrm_avail=no
  22356. else
  22357. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22358. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22360. printf "%s\n" "yes" >&6; }
  22361. libdrm_avail=yes
  22362. fi
  22363. pkg_failed=no
  22364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22365. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22366. if test -n "$LIBGBM_CFLAGS"; then
  22367. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22368. elif test -n "$PKG_CONFIG"; then
  22369. if test -n "$PKG_CONFIG" && \
  22370. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22371. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22372. ac_status=$?
  22373. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22374. test $ac_status = 0; }; then
  22375. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22376. test "x$?" != "x0" && pkg_failed=yes
  22377. else
  22378. pkg_failed=yes
  22379. fi
  22380. else
  22381. pkg_failed=untried
  22382. fi
  22383. if test -n "$LIBGBM_LIBS"; then
  22384. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22385. elif test -n "$PKG_CONFIG"; then
  22386. if test -n "$PKG_CONFIG" && \
  22387. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22388. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22389. ac_status=$?
  22390. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22391. test $ac_status = 0; }; then
  22392. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22393. test "x$?" != "x0" && pkg_failed=yes
  22394. else
  22395. pkg_failed=yes
  22396. fi
  22397. else
  22398. pkg_failed=untried
  22399. fi
  22400. if test $pkg_failed = yes; then
  22401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22402. printf "%s\n" "no" >&6; }
  22403. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22404. _pkg_short_errors_supported=yes
  22405. else
  22406. _pkg_short_errors_supported=no
  22407. fi
  22408. if test $_pkg_short_errors_supported = yes; then
  22409. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22410. else
  22411. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22412. fi
  22413. # Put the nasty error message in config.log where it belongs
  22414. echo "$LIBGBM_PKG_ERRORS" >&5
  22415. libgbm_avail=no
  22416. elif test $pkg_failed = untried; then
  22417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22418. printf "%s\n" "no" >&6; }
  22419. libgbm_avail=no
  22420. else
  22421. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22422. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22424. printf "%s\n" "yes" >&6; }
  22425. libgbm_avail=yes
  22426. fi
  22427. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22428. video_kmsdrm=yes
  22429. fi
  22430. if test x$video_kmsdrm = xyes; then
  22431. # Check whether --enable-kmsdrm-shared was given.
  22432. if test ${enable_kmsdrm_shared+y}
  22433. then :
  22434. enableval=$enable_kmsdrm_shared;
  22435. else $as_nop
  22436. enable_kmsdrm_shared=yes
  22437. fi
  22438. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22439. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22440. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22442. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22443. kmsdrm_shared=no
  22444. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22445. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22446. if test x$have_loadso != xyes && \
  22447. test x$enable_kmsdrm_shared = xyes; then
  22448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22449. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22450. fi
  22451. if test x$have_loadso = xyes && \
  22452. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22453. kmsdrm_shared=yes
  22454. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22455. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22456. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22457. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22458. else
  22459. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22460. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22461. fi
  22462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22463. printf "%s\n" "$kmsdrm_shared" >&6; }
  22464. if test x$kmsdrm_shared = xyes; then
  22465. echo "-- dynamic libdrm -> $drm_lib"
  22466. echo "-- dynamic libgbm -> $gbm_lib"
  22467. fi
  22468. have_video=yes
  22469. fi
  22470. fi
  22471. }
  22472. CheckDummyVideo()
  22473. {
  22474. # Check whether --enable-video-dummy was given.
  22475. if test ${enable_video_dummy+y}
  22476. then :
  22477. enableval=$enable_video_dummy;
  22478. else $as_nop
  22479. enable_video_dummy=yes
  22480. fi
  22481. if test x$enable_video_dummy = xyes; then
  22482. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22483. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22484. have_video=yes
  22485. SUMMARY_video="${SUMMARY_video} dummy"
  22486. fi
  22487. }
  22488. CheckOffscreenVideo()
  22489. {
  22490. # Check whether --enable-video-offscreen was given.
  22491. if test ${enable_video_offscreen+y}
  22492. then :
  22493. enableval=$enable_video_offscreen;
  22494. else $as_nop
  22495. enable_video_offscreen=yes
  22496. fi
  22497. if test x$enable_video_offscreen = xyes; then
  22498. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22499. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22500. have_video=yes
  22501. SUMMARY_video="${SUMMARY_video} offscreen"
  22502. fi
  22503. }
  22504. CheckQNXVideo()
  22505. {
  22506. if test x$enable_video = xyes; then
  22507. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22508. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22509. have_video=yes
  22510. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22511. SUMMARY_video="${SUMMARY_video} qnx"
  22512. fi
  22513. }
  22514. CheckQNXAudio()
  22515. {
  22516. if test x$enable_audio = xyes; then
  22517. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22518. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22519. have_audio=yes
  22520. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22521. SUMMARY_audio="${SUMMARY_audio} qsa"
  22522. fi
  22523. }
  22524. # Check whether --enable-video-opengl was given.
  22525. if test ${enable_video_opengl+y}
  22526. then :
  22527. enableval=$enable_video_opengl;
  22528. else $as_nop
  22529. enable_video_opengl=yes
  22530. fi
  22531. CheckGLX()
  22532. {
  22533. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22535. printf %s "checking for GLX support... " >&6; }
  22536. video_opengl_glx=no
  22537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22538. /* end confdefs.h. */
  22539. #include <GL/glx.h>
  22540. int
  22541. main (void)
  22542. {
  22543. ;
  22544. return 0;
  22545. }
  22546. _ACEOF
  22547. if ac_fn_c_try_compile "$LINENO"
  22548. then :
  22549. video_opengl_glx=yes
  22550. fi
  22551. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22553. printf "%s\n" "$video_opengl_glx" >&6; }
  22554. if test x$video_opengl_glx = xyes; then
  22555. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22556. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22557. fi
  22558. fi
  22559. }
  22560. # Check whether --enable-video-opengles was given.
  22561. if test ${enable_video_opengles+y}
  22562. then :
  22563. enableval=$enable_video_opengles;
  22564. else $as_nop
  22565. enable_video_opengles=yes
  22566. fi
  22567. # Check whether --enable-video-opengles1 was given.
  22568. if test ${enable_video_opengles1+y}
  22569. then :
  22570. enableval=$enable_video_opengles1;
  22571. else $as_nop
  22572. enable_video_opengles1=yes
  22573. fi
  22574. # Check whether --enable-video-opengles2 was given.
  22575. if test ${enable_video_opengles2+y}
  22576. then :
  22577. enableval=$enable_video_opengles2;
  22578. else $as_nop
  22579. enable_video_opengles2=yes
  22580. fi
  22581. CheckEGL()
  22582. {
  22583. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22585. printf %s "checking for EGL support... " >&6; }
  22586. video_opengl_egl=no
  22587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22588. /* end confdefs.h. */
  22589. #define LINUX
  22590. #define EGL_API_FB
  22591. #define MESA_EGL_NO_X11_HEADERS
  22592. #define EGL_NO_X11
  22593. #include <EGL/egl.h>
  22594. #include <EGL/eglext.h>
  22595. int
  22596. main (void)
  22597. {
  22598. ;
  22599. return 0;
  22600. }
  22601. _ACEOF
  22602. if ac_fn_c_try_compile "$LINENO"
  22603. then :
  22604. video_opengl_egl=yes
  22605. fi
  22606. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22608. printf "%s\n" "$video_opengl_egl" >&6; }
  22609. if test x$video_opengl_egl = xyes; then
  22610. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22611. fi
  22612. fi
  22613. }
  22614. CheckOpenGL()
  22615. {
  22616. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22618. printf %s "checking for OpenGL headers... " >&6; }
  22619. video_opengl=no
  22620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22621. /* end confdefs.h. */
  22622. #include <GL/gl.h>
  22623. #include <GL/glext.h>
  22624. int
  22625. main (void)
  22626. {
  22627. ;
  22628. return 0;
  22629. }
  22630. _ACEOF
  22631. if ac_fn_c_try_compile "$LINENO"
  22632. then :
  22633. video_opengl=yes
  22634. fi
  22635. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22637. printf "%s\n" "$video_opengl" >&6; }
  22638. if test x$video_opengl = xyes; then
  22639. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22640. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22641. SUMMARY_video="${SUMMARY_video} opengl"
  22642. fi
  22643. fi
  22644. }
  22645. CheckOpenGLES()
  22646. {
  22647. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22648. if test x$enable_video_opengles1 = xyes; then
  22649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22650. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22651. video_opengles_v1=no
  22652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22653. /* end confdefs.h. */
  22654. #include <GLES/gl.h>
  22655. #include <GLES/glext.h>
  22656. int
  22657. main (void)
  22658. {
  22659. ;
  22660. return 0;
  22661. }
  22662. _ACEOF
  22663. if ac_fn_c_try_compile "$LINENO"
  22664. then :
  22665. video_opengles_v1=yes
  22666. fi
  22667. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22669. printf "%s\n" "$video_opengles_v1" >&6; }
  22670. if test x$video_opengles_v1 = xyes; then
  22671. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22672. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22673. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22674. fi
  22675. fi
  22676. if test x$enable_video_opengles2 = xyes; then
  22677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22678. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22679. video_opengles_v2=no
  22680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22681. /* end confdefs.h. */
  22682. #include <GLES2/gl2.h>
  22683. #include <GLES2/gl2ext.h>
  22684. int
  22685. main (void)
  22686. {
  22687. ;
  22688. return 0;
  22689. }
  22690. _ACEOF
  22691. if ac_fn_c_try_compile "$LINENO"
  22692. then :
  22693. video_opengles_v2=yes
  22694. fi
  22695. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22697. printf "%s\n" "$video_opengles_v2" >&6; }
  22698. if test x$video_opengles_v2 = xyes; then
  22699. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22700. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22701. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22702. fi
  22703. fi
  22704. fi
  22705. }
  22706. CheckWINDOWSGL()
  22707. {
  22708. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22709. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22710. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22711. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22712. SUMMARY_video="${SUMMARY_video} opengl"
  22713. fi
  22714. }
  22715. CheckWINDOWSGLES()
  22716. {
  22717. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22719. printf %s "checking for EGL support... " >&6; }
  22720. video_opengl_egl=no
  22721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22722. /* end confdefs.h. */
  22723. #include <EGL/egl.h>
  22724. int
  22725. main (void)
  22726. {
  22727. ;
  22728. return 0;
  22729. }
  22730. _ACEOF
  22731. if ac_fn_c_try_compile "$LINENO"
  22732. then :
  22733. video_opengl_egl=yes
  22734. fi
  22735. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22737. printf "%s\n" "$video_opengl_egl" >&6; }
  22738. if test x$video_opengl_egl = xyes; then
  22739. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22740. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22741. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22742. fi
  22743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22744. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22745. video_opengles_v2=no
  22746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22747. /* end confdefs.h. */
  22748. #include <GLES2/gl2.h>
  22749. #include <GLES2/gl2ext.h>
  22750. int
  22751. main (void)
  22752. {
  22753. ;
  22754. return 0;
  22755. }
  22756. _ACEOF
  22757. if ac_fn_c_try_compile "$LINENO"
  22758. then :
  22759. video_opengles_v2=yes
  22760. fi
  22761. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22763. printf "%s\n" "$video_opengles_v2" >&6; }
  22764. if test x$video_opengles_v2 = xyes; then
  22765. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22766. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22767. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22768. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22769. fi
  22770. fi
  22771. }
  22772. CheckHaikuGL()
  22773. {
  22774. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22775. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22776. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22777. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22778. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22779. SUMMARY_video="${SUMMARY_video} opengl"
  22780. fi
  22781. }
  22782. CheckMacGL()
  22783. {
  22784. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22785. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22786. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22787. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22788. SUMMARY_video="${SUMMARY_video} opengl"
  22789. fi
  22790. }
  22791. CheckMacGLES()
  22792. {
  22793. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22794. video_opengl_egl=yes
  22795. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22796. video_opengles_v2=yes
  22797. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22798. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22799. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22800. fi
  22801. }
  22802. CheckEmscriptenGLES()
  22803. {
  22804. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22806. printf %s "checking for EGL support... " >&6; }
  22807. video_opengl_egl=no
  22808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22809. /* end confdefs.h. */
  22810. #include <EGL/egl.h>
  22811. int
  22812. main (void)
  22813. {
  22814. ;
  22815. return 0;
  22816. }
  22817. _ACEOF
  22818. if ac_fn_c_try_compile "$LINENO"
  22819. then :
  22820. video_opengl_egl=yes
  22821. fi
  22822. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22824. printf "%s\n" "$video_opengl_egl" >&6; }
  22825. if test x$video_opengl_egl = xyes; then
  22826. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22827. fi
  22828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22829. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22830. video_opengles_v2=no
  22831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22832. /* end confdefs.h. */
  22833. #include <GLES2/gl2.h>
  22834. #include <GLES2/gl2ext.h>
  22835. int
  22836. main (void)
  22837. {
  22838. ;
  22839. return 0;
  22840. }
  22841. _ACEOF
  22842. if ac_fn_c_try_compile "$LINENO"
  22843. then :
  22844. video_opengles_v2=yes
  22845. fi
  22846. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22848. printf "%s\n" "$video_opengles_v2" >&6; }
  22849. if test x$video_opengles_v2 = xyes; then
  22850. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22851. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22852. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22853. fi
  22854. fi
  22855. }
  22856. # Check whether --enable-video-vulkan was given.
  22857. if test ${enable_video_vulkan+y}
  22858. then :
  22859. enableval=$enable_video_vulkan;
  22860. else $as_nop
  22861. enable_video_vulkan=yes
  22862. fi
  22863. CheckVulkan()
  22864. {
  22865. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22866. case "$host" in
  22867. *-*-android*)
  22868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22869. /* end confdefs.h. */
  22870. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22871. #error Vulkan doesn't work on this configuration
  22872. #endif
  22873. int
  22874. main (void)
  22875. {
  22876. ;
  22877. return 0;
  22878. }
  22879. _ACEOF
  22880. if ac_fn_c_try_compile "$LINENO"
  22881. then :
  22882. else $as_nop
  22883. enable_video_vulkan=no
  22884. fi
  22885. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22886. ;;
  22887. *-*-solaris*)
  22888. enable_video_vulkan=no
  22889. ;;
  22890. *-*-darwin*)
  22891. save_CFLAGS="$CFLAGS"
  22892. CFLAGS="$CFLAGS -x objective-c"
  22893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22894. /* end confdefs.h. */
  22895. #include <Cocoa/Cocoa.h>
  22896. #include <Metal/Metal.h>
  22897. #include <QuartzCore/CAMetalLayer.h>
  22898. #if TARGET_CPU_X86
  22899. #error Vulkan doesn't work on this configuration
  22900. #endif
  22901. int
  22902. main (void)
  22903. {
  22904. ;
  22905. return 0;
  22906. }
  22907. _ACEOF
  22908. if ac_fn_c_try_compile "$LINENO"
  22909. then :
  22910. else $as_nop
  22911. enable_video_vulkan=no
  22912. fi
  22913. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22914. CFLAGS="$save_CFLAGS"
  22915. ;;
  22916. *)
  22917. ;;
  22918. esac
  22919. if test x$enable_video_vulkan = xno; then
  22920. # For reasons I am totally unable to see, I get an undefined macro error if
  22921. # I put this in the AC_TRY_COMPILE.
  22922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22923. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22924. fi
  22925. fi
  22926. if test x$have_loadso != xyes; then
  22927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22928. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22929. enable_video_vulkan=no
  22930. fi
  22931. if test x$enable_video_vulkan = xyes; then
  22932. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22933. SUMMARY_video="${SUMMARY_video} vulkan"
  22934. fi
  22935. }
  22936. CheckInputEvents()
  22937. {
  22938. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  22939. if test "x$ac_cv_header_linux_input_h" = xyes
  22940. then :
  22941. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  22942. fi
  22943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22944. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22945. use_input_events=no
  22946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22947. /* end confdefs.h. */
  22948. #include <linux/input.h>
  22949. int
  22950. main (void)
  22951. {
  22952. #ifndef EVIOCGNAME
  22953. #error EVIOCGNAME() ioctl not available
  22954. #endif
  22955. ;
  22956. return 0;
  22957. }
  22958. _ACEOF
  22959. if ac_fn_c_try_compile "$LINENO"
  22960. then :
  22961. use_input_events=yes
  22962. fi
  22963. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22965. printf "%s\n" "$use_input_events" >&6; }
  22966. if test x$use_input_events = xyes; then
  22967. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22968. SUMMARY_input="${SUMMARY_input} linuxev"
  22969. fi
  22970. }
  22971. CheckInputKD()
  22972. {
  22973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22974. printf %s "checking for Linux kd.h... " >&6; }
  22975. use_input_kd=no
  22976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22977. /* end confdefs.h. */
  22978. #include <linux/kd.h>
  22979. #include <linux/keyboard.h>
  22980. #include <sys/ioctl.h>
  22981. int
  22982. main (void)
  22983. {
  22984. struct kbentry kbe;
  22985. kbe.kb_table = KG_CTRL;
  22986. ioctl(0, KDGKBENT, &kbe);
  22987. ;
  22988. return 0;
  22989. }
  22990. _ACEOF
  22991. if ac_fn_c_try_compile "$LINENO"
  22992. then :
  22993. use_input_kd=yes
  22994. fi
  22995. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22997. printf "%s\n" "$use_input_kd" >&6; }
  22998. if test x$use_input_kd = xyes; then
  22999. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  23000. SUMMARY_input="${SUMMARY_input} linuxkd"
  23001. fi
  23002. }
  23003. CheckInputKBIO()
  23004. {
  23005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  23006. printf %s "checking for FreeBSD kbio.h... " >&6; }
  23007. use_input_kbio=no
  23008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23009. /* end confdefs.h. */
  23010. #include <sys/kbio.h>
  23011. #include <sys/ioctl.h>
  23012. int
  23013. main (void)
  23014. {
  23015. accentmap_t accTable;
  23016. ioctl(0, KDENABIO, 1);
  23017. ;
  23018. return 0;
  23019. }
  23020. _ACEOF
  23021. if ac_fn_c_try_compile "$LINENO"
  23022. then :
  23023. use_input_kbio=yes
  23024. fi
  23025. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  23027. printf "%s\n" "$use_input_kbio" >&6; }
  23028. if test x$use_input_kbio = xyes; then
  23029. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  23030. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  23031. fi
  23032. }
  23033. CheckInputWSCONS()
  23034. {
  23035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  23036. printf %s "checking for OpenBSD wscons... " >&6; }
  23037. use_input_wscons=no
  23038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23039. /* end confdefs.h. */
  23040. #include <sys/time.h>
  23041. #include <dev/wscons/wsconsio.h>
  23042. #include <dev/wscons/wsksymdef.h>
  23043. #include <dev/wscons/wsksymvar.h>
  23044. #include <sys/ioctl.h>
  23045. int
  23046. main (void)
  23047. {
  23048. struct wskbd_map_data data;
  23049. ioctl(0, WSKBDIO_GETMAP, &data);
  23050. ;
  23051. return 0;
  23052. }
  23053. _ACEOF
  23054. if ac_fn_c_try_compile "$LINENO"
  23055. then :
  23056. use_input_wscons=yes
  23057. fi
  23058. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  23060. printf "%s\n" "$use_input_wscons" >&6; }
  23061. if test x$use_input_wscons = xyes; then
  23062. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  23063. SUMMARY_input="${SUMMARY_input} wscons"
  23064. fi
  23065. }
  23066. CheckLibUDev()
  23067. {
  23068. # Check whether --enable-libudev was given.
  23069. if test ${enable_libudev+y}
  23070. then :
  23071. enableval=$enable_libudev;
  23072. else $as_nop
  23073. enable_libudev=yes
  23074. fi
  23075. if test x$enable_libudev = xyes; then
  23076. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  23077. if test "x$ac_cv_header_libudev_h" = xyes
  23078. then :
  23079. have_libudev_h_hdr=yes
  23080. else $as_nop
  23081. have_libudev_h_hdr=no
  23082. fi
  23083. if test x$have_libudev_h_hdr = xyes; then
  23084. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  23085. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23086. if test x$udev_lib != x; then
  23087. echo "-- dynamic udev -> $udev_lib"
  23088. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  23089. fi
  23090. fi
  23091. fi
  23092. }
  23093. CheckDBus()
  23094. {
  23095. # Check whether --enable-dbus was given.
  23096. if test ${enable_dbus+y}
  23097. then :
  23098. enableval=$enable_dbus;
  23099. else $as_nop
  23100. enable_dbus=yes
  23101. fi
  23102. if test x$enable_dbus = xyes; then
  23103. pkg_failed=no
  23104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  23105. printf %s "checking for dbus-1... " >&6; }
  23106. if test -n "$DBUS_CFLAGS"; then
  23107. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  23108. elif test -n "$PKG_CONFIG"; then
  23109. if test -n "$PKG_CONFIG" && \
  23110. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23111. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23112. ac_status=$?
  23113. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23114. test $ac_status = 0; }; then
  23115. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  23116. test "x$?" != "x0" && pkg_failed=yes
  23117. else
  23118. pkg_failed=yes
  23119. fi
  23120. else
  23121. pkg_failed=untried
  23122. fi
  23123. if test -n "$DBUS_LIBS"; then
  23124. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  23125. elif test -n "$PKG_CONFIG"; then
  23126. if test -n "$PKG_CONFIG" && \
  23127. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23128. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23129. ac_status=$?
  23130. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23131. test $ac_status = 0; }; then
  23132. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  23133. test "x$?" != "x0" && pkg_failed=yes
  23134. else
  23135. pkg_failed=yes
  23136. fi
  23137. else
  23138. pkg_failed=untried
  23139. fi
  23140. if test $pkg_failed = yes; then
  23141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23142. printf "%s\n" "no" >&6; }
  23143. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23144. _pkg_short_errors_supported=yes
  23145. else
  23146. _pkg_short_errors_supported=no
  23147. fi
  23148. if test $_pkg_short_errors_supported = yes; then
  23149. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  23150. else
  23151. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  23152. fi
  23153. # Put the nasty error message in config.log where it belongs
  23154. echo "$DBUS_PKG_ERRORS" >&5
  23155. have_dbus=no
  23156. elif test $pkg_failed = untried; then
  23157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23158. printf "%s\n" "no" >&6; }
  23159. have_dbus=no
  23160. else
  23161. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  23162. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  23163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23164. printf "%s\n" "yes" >&6; }
  23165. have_dbus=yes
  23166. fi
  23167. save_CPPFLAGS="$CPPFLAGS"
  23168. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  23169. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  23170. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  23171. then :
  23172. have_dbus_dbus_h_hdr=yes
  23173. else $as_nop
  23174. have_dbus_dbus_h_hdr=no
  23175. fi
  23176. CPPFLAGS="$save_CPPFLAGS"
  23177. if test x$have_dbus_dbus_h_hdr = xyes; then
  23178. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  23179. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  23180. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  23181. fi
  23182. fi
  23183. }
  23184. CheckIME()
  23185. {
  23186. # Check whether --enable-ime was given.
  23187. if test ${enable_ime+y}
  23188. then :
  23189. enableval=$enable_ime;
  23190. else $as_nop
  23191. enable_ime=yes
  23192. fi
  23193. if test x$enable_ime = xyes; then
  23194. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  23195. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  23196. fi
  23197. }
  23198. CheckInotify()
  23199. {
  23200. save_LIBS="$LIBS"
  23201. case "$host" in
  23202. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  23203. ;;
  23204. esac
  23205. for ac_header in sys/inotify.h
  23206. do :
  23207. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  23208. if test "x$ac_cv_header_sys_inotify_h" = xyes
  23209. then :
  23210. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  23211. have_inotify_inotify_h_hdr=yes
  23212. fi
  23213. done
  23214. for ac_func in inotify_init
  23215. do :
  23216. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  23217. if test "x$ac_cv_func_inotify_init" = xyes
  23218. then :
  23219. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  23220. have_inotify=yes
  23221. fi
  23222. done
  23223. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  23224. if test "x$ac_cv_func_inotify_init1" = xyes
  23225. then :
  23226. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  23227. fi
  23228. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  23229. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  23230. case "$host" in
  23231. *-*-freebsd*|*-*-dragonfly*)
  23232. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  23233. ;;
  23234. esac
  23235. fi
  23236. LIBS="$save_LIBS"
  23237. }
  23238. CheckIBus()
  23239. {
  23240. # Check whether --enable-ibus was given.
  23241. if test ${enable_ibus+y}
  23242. then :
  23243. enableval=$enable_ibus;
  23244. else $as_nop
  23245. enable_ibus=yes
  23246. fi
  23247. if test x$enable_ibus = xyes; then
  23248. pkg_failed=no
  23249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  23250. printf %s "checking for ibus-1.0... " >&6; }
  23251. if test -n "$IBUS_CFLAGS"; then
  23252. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23253. elif test -n "$PKG_CONFIG"; then
  23254. if test -n "$PKG_CONFIG" && \
  23255. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23256. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23257. ac_status=$?
  23258. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23259. test $ac_status = 0; }; then
  23260. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23261. test "x$?" != "x0" && pkg_failed=yes
  23262. else
  23263. pkg_failed=yes
  23264. fi
  23265. else
  23266. pkg_failed=untried
  23267. fi
  23268. if test -n "$IBUS_LIBS"; then
  23269. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23270. elif test -n "$PKG_CONFIG"; then
  23271. if test -n "$PKG_CONFIG" && \
  23272. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23273. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23274. ac_status=$?
  23275. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23276. test $ac_status = 0; }; then
  23277. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23278. test "x$?" != "x0" && pkg_failed=yes
  23279. else
  23280. pkg_failed=yes
  23281. fi
  23282. else
  23283. pkg_failed=untried
  23284. fi
  23285. if test $pkg_failed = yes; then
  23286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23287. printf "%s\n" "no" >&6; }
  23288. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23289. _pkg_short_errors_supported=yes
  23290. else
  23291. _pkg_short_errors_supported=no
  23292. fi
  23293. if test $_pkg_short_errors_supported = yes; then
  23294. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23295. else
  23296. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23297. fi
  23298. # Put the nasty error message in config.log where it belongs
  23299. echo "$IBUS_PKG_ERRORS" >&5
  23300. have_ibus=no
  23301. elif test $pkg_failed = untried; then
  23302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23303. printf "%s\n" "no" >&6; }
  23304. have_ibus=no
  23305. else
  23306. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23307. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23309. printf "%s\n" "yes" >&6; }
  23310. have_ibus=yes
  23311. fi
  23312. save_CPPFLAGS="$CPPFLAGS"
  23313. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23314. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23315. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23316. then :
  23317. have_ibus_ibus_h_hdr=yes
  23318. else $as_nop
  23319. have_ibus_ibus_h_hdr=no
  23320. fi
  23321. CPPFLAGS="$save_CPPFLAGS"
  23322. if test x$have_ibus_ibus_h_hdr = xyes; then
  23323. if test x$enable_ime != xyes; then
  23324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23325. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23326. have_ibus_ibus_h_hdr=no
  23327. elif test x$enable_dbus != xyes; then
  23328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23329. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23330. have_ibus_ibus_h_hdr=no
  23331. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23333. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23334. have_ibus_ibus_h_hdr=no
  23335. else
  23336. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23337. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23338. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23339. fi
  23340. fi
  23341. fi
  23342. }
  23343. CheckFcitx()
  23344. {
  23345. # Check whether --enable-fcitx was given.
  23346. if test ${enable_fcitx+y}
  23347. then :
  23348. enableval=$enable_fcitx;
  23349. else $as_nop
  23350. enable_fcitx=yes
  23351. fi
  23352. if test x$enable_fcitx = xyes; then
  23353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23354. printf %s "checking for fcitx support... " >&6; }
  23355. have_fcitx=no
  23356. if test x$enable_ime != xyes; then
  23357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23358. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23359. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23361. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23362. else
  23363. have_fcitx=yes
  23364. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23365. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23366. fi
  23367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23368. printf "%s\n" "$have_fcitx" >&6; }
  23369. fi
  23370. }
  23371. CheckJoystickMFI()
  23372. {
  23373. # Check whether --enable-joystick-mfi was given.
  23374. if test ${enable_joystick_mfi+y}
  23375. then :
  23376. enableval=$enable_joystick_mfi;
  23377. else $as_nop
  23378. enable_joystick_mfi=yes
  23379. fi
  23380. if test x$enable_joystick_mfi = xyes; then
  23381. save_CFLAGS="$CFLAGS"
  23382. save_LDFLAGS="$LDFLAGS"
  23383. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23384. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23386. printf %s "checking for GameController framework... " >&6; }
  23387. enable_joystick_mfi=no
  23388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23389. /* end confdefs.h. */
  23390. #include <AvailabilityMacros.h>
  23391. #include <TargetConditionals.h>
  23392. #import <GameController/GameController.h>
  23393. int
  23394. main (void)
  23395. {
  23396. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23397. #error GameController framework doesn't work on this configuration
  23398. #endif
  23399. #if TARGET_CPU_X86
  23400. #error GameController framework doesn't work on this configuration
  23401. #endif
  23402. ;
  23403. return 0;
  23404. }
  23405. _ACEOF
  23406. if ac_fn_c_try_link "$LINENO"
  23407. then :
  23408. enable_joystick_mfi=yes
  23409. fi
  23410. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23411. conftest$ac_exeext conftest.$ac_ext
  23412. CFLAGS="$save_CFLAGS"
  23413. LDFLAGS="$save_LDFLAGS"
  23414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23415. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23416. if test x$enable_joystick_mfi = xyes; then
  23417. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23418. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23419. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23420. fi
  23421. fi
  23422. }
  23423. CheckPTHREAD()
  23424. {
  23425. case "$host" in
  23426. *-*-emscripten*)
  23427. enable_pthreads_default=no
  23428. ;;
  23429. *)
  23430. enable_pthreads_default=yes
  23431. ;;
  23432. esac
  23433. # Check whether --enable-pthreads was given.
  23434. if test ${enable_pthreads+y}
  23435. then :
  23436. enableval=$enable_pthreads;
  23437. else $as_nop
  23438. enable_pthreads=maybe
  23439. fi
  23440. # Check whether --enable-pthread-sem was given.
  23441. if test ${enable_pthread_sem+y}
  23442. then :
  23443. enableval=$enable_pthread_sem;
  23444. else $as_nop
  23445. enable_pthread_sem=maybe
  23446. fi
  23447. if test x$enable_pthreads = xmaybe; then
  23448. enable_pthreads=$enable_pthreads_default
  23449. fi
  23450. if test x$enable_pthread_sem = xmaybe; then
  23451. enable_pthread_sem=$enable_pthreads
  23452. fi
  23453. case "$host" in
  23454. *-*-android*)
  23455. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23456. pthread_lib=""
  23457. ;;
  23458. *-*-linux*|*-*-uclinux*)
  23459. pthread_cflags="-D_REENTRANT"
  23460. pthread_lib="-lpthread"
  23461. ;;
  23462. *-*-bsdi*)
  23463. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23464. pthread_lib=""
  23465. ;;
  23466. *-*-darwin*)
  23467. pthread_cflags="-D_THREAD_SAFE"
  23468. # causes Carbon.p complaints?
  23469. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23470. ;;
  23471. *-*-freebsd*|*-*-dragonfly*)
  23472. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23473. pthread_lib="-pthread"
  23474. ;;
  23475. *-*-netbsd*)
  23476. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23477. pthread_lib="-lpthread"
  23478. ;;
  23479. *-*-openbsd*)
  23480. pthread_cflags="-D_REENTRANT"
  23481. pthread_lib="-lpthread"
  23482. ;;
  23483. *-*-solaris2.9)
  23484. # From Solaris 9+, posix4's preferred name is rt.
  23485. pthread_cflags="-D_REENTRANT"
  23486. pthread_lib="-lpthread -lrt"
  23487. ;;
  23488. *-*-solaris2.10)
  23489. # Solaris 10+ merged pthread into libc.
  23490. pthread_cflags="-D_REENTRANT"
  23491. pthread_lib="-lrt"
  23492. ;;
  23493. *-*-solaris*)
  23494. # Solaris 11+ merged rt into libc.
  23495. pthread_cflags="-D_REENTRANT"
  23496. pthread_lib=""
  23497. ;;
  23498. *-*-sysv5*)
  23499. pthread_cflags="-D_REENTRANT -Kthread"
  23500. pthread_lib=""
  23501. ;;
  23502. *-*-aix*)
  23503. pthread_cflags="-D_REENTRANT -mthreads"
  23504. pthread_lib="-lpthread"
  23505. ;;
  23506. *-*-hpux11*)
  23507. pthread_cflags="-D_REENTRANT"
  23508. pthread_lib="-L/usr/lib -lpthread"
  23509. ;;
  23510. *-*-haiku*)
  23511. pthread_cflags="-D_REENTRANT"
  23512. pthread_lib=""
  23513. ;;
  23514. *-*-nto*)
  23515. pthread_cflags="-D_REENTRANT"
  23516. pthread_lib=""
  23517. ;;
  23518. *-*-emscripten*)
  23519. pthread_cflags="-D_REENTRANT -pthread"
  23520. pthread_lib="-pthread"
  23521. ;;
  23522. *)
  23523. pthread_cflags="-D_REENTRANT"
  23524. pthread_lib="-lpthread"
  23525. ;;
  23526. esac
  23527. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23528. # Save the original compiler flags and libraries
  23529. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23530. # Add the pthread compiler flags and libraries
  23531. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23532. # Check to see if we have pthread support on this system
  23533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23534. printf %s "checking for pthreads... " >&6; }
  23535. use_pthreads=no
  23536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23537. /* end confdefs.h. */
  23538. #include <pthread.h>
  23539. int
  23540. main (void)
  23541. {
  23542. pthread_attr_t type;
  23543. pthread_attr_init(&type);
  23544. ;
  23545. return 0;
  23546. }
  23547. _ACEOF
  23548. if ac_fn_c_try_link "$LINENO"
  23549. then :
  23550. use_pthreads=yes
  23551. fi
  23552. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23553. conftest$ac_exeext conftest.$ac_ext
  23554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23555. printf "%s\n" "$use_pthreads" >&6; }
  23556. # Restore the compiler flags and libraries
  23557. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23558. # Do futher testing if we have pthread support...
  23559. if test x$use_pthreads = xyes; then
  23560. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23561. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23562. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23563. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23564. # Save the original compiler flags and libraries
  23565. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23566. # Add the pthread compiler flags and libraries
  23567. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23568. # Check to see if recursive mutexes are available
  23569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23570. printf %s "checking for recursive mutexes... " >&6; }
  23571. has_recursive_mutexes=no
  23572. if test x$has_recursive_mutexes = xno; then
  23573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23574. /* end confdefs.h. */
  23575. #define _GNU_SOURCE 1
  23576. #include <pthread.h>
  23577. int
  23578. main (void)
  23579. {
  23580. pthread_mutexattr_t attr;
  23581. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23582. ;
  23583. return 0;
  23584. }
  23585. _ACEOF
  23586. if ac_fn_c_try_link "$LINENO"
  23587. then :
  23588. has_recursive_mutexes=yes
  23589. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23590. fi
  23591. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23592. conftest$ac_exeext conftest.$ac_ext
  23593. fi
  23594. if test x$has_recursive_mutexes = xno; then
  23595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23596. /* end confdefs.h. */
  23597. #define _GNU_SOURCE 1
  23598. #include <pthread.h>
  23599. int
  23600. main (void)
  23601. {
  23602. pthread_mutexattr_t attr;
  23603. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23604. ;
  23605. return 0;
  23606. }
  23607. _ACEOF
  23608. if ac_fn_c_try_link "$LINENO"
  23609. then :
  23610. has_recursive_mutexes=yes
  23611. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23612. fi
  23613. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23614. conftest$ac_exeext conftest.$ac_ext
  23615. fi
  23616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23617. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23618. # Check to see if pthread semaphore support is missing
  23619. if test x$enable_pthread_sem = xyes; then
  23620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23621. printf %s "checking for pthread semaphores... " >&6; }
  23622. have_pthread_sem=no
  23623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23624. /* end confdefs.h. */
  23625. #include <pthread.h>
  23626. #include <semaphore.h>
  23627. int
  23628. main (void)
  23629. {
  23630. ;
  23631. return 0;
  23632. }
  23633. _ACEOF
  23634. if ac_fn_c_try_compile "$LINENO"
  23635. then :
  23636. have_pthread_sem=yes
  23637. fi
  23638. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23640. printf "%s\n" "$have_pthread_sem" >&6; }
  23641. fi
  23642. if test x$have_pthread_sem = xyes; then
  23643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23644. printf %s "checking for sem_timedwait... " >&6; }
  23645. have_sem_timedwait=no
  23646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23647. /* end confdefs.h. */
  23648. #include <pthread.h>
  23649. #include <semaphore.h>
  23650. int
  23651. main (void)
  23652. {
  23653. sem_timedwait(NULL, NULL);
  23654. ;
  23655. return 0;
  23656. }
  23657. _ACEOF
  23658. if ac_fn_c_try_link "$LINENO"
  23659. then :
  23660. have_sem_timedwait=yes
  23661. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23662. fi
  23663. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23664. conftest$ac_exeext conftest.$ac_ext
  23665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23666. printf "%s\n" "$have_sem_timedwait" >&6; }
  23667. fi
  23668. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23669. "
  23670. if test "x$ac_cv_header_pthread_np_h" = xyes
  23671. then :
  23672. have_pthread_np_h=yes
  23673. else $as_nop
  23674. have_pthread_np_h=no
  23675. fi
  23676. if test x$have_pthread_np_h = xyes; then
  23677. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23678. fi
  23679. # Check to see if pthread naming is available
  23680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23681. printf %s "checking for pthread_setname_np... " >&6; }
  23682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23683. /* end confdefs.h. */
  23684. /* Override any GCC internal prototype to avoid an error.
  23685. Use char because int might match the return type of a GCC
  23686. builtin and then its argument prototype would still apply. */
  23687. char pthread_setname_np ();
  23688. int
  23689. main (void)
  23690. {
  23691. return pthread_setname_np ();
  23692. ;
  23693. return 0;
  23694. }
  23695. _ACEOF
  23696. if ac_fn_c_try_link "$LINENO"
  23697. then :
  23698. has_pthread_setname_np=yes
  23699. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23700. else $as_nop
  23701. has_pthread_setname_np=no
  23702. fi
  23703. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23704. conftest$ac_exeext conftest.$ac_ext
  23705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23706. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23708. printf %s "checking for pthread_set_name_np... " >&6; }
  23709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23710. /* end confdefs.h. */
  23711. /* Override any GCC internal prototype to avoid an error.
  23712. Use char because int might match the return type of a GCC
  23713. builtin and then its argument prototype would still apply. */
  23714. char pthread_set_name_np ();
  23715. int
  23716. main (void)
  23717. {
  23718. return pthread_set_name_np ();
  23719. ;
  23720. return 0;
  23721. }
  23722. _ACEOF
  23723. if ac_fn_c_try_link "$LINENO"
  23724. then :
  23725. has_pthread_set_name_np=yes
  23726. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23727. else $as_nop
  23728. has_pthread_set_name_np=no
  23729. fi
  23730. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23731. conftest$ac_exeext conftest.$ac_ext
  23732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23733. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23734. # Restore the compiler flags and libraries
  23735. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23736. # Basic thread creation functions
  23737. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23738. # Semaphores
  23739. # We can fake these with mutexes and condition variables if necessary
  23740. if test x$have_pthread_sem = xyes; then
  23741. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23742. else
  23743. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23744. fi
  23745. # Mutexes
  23746. # We can fake these with semaphores if necessary
  23747. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23748. # Condition variables
  23749. # We can fake these with semaphores and mutexes if necessary
  23750. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23751. # Thread local storage
  23752. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23753. have_threads=yes
  23754. fi
  23755. fi
  23756. }
  23757. CheckWINDOWS()
  23758. {
  23759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23760. printf %s "checking Windows compiler... " >&6; }
  23761. have_win32_gcc=no
  23762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23763. /* end confdefs.h. */
  23764. #include <windows.h>
  23765. int
  23766. main (void)
  23767. {
  23768. ;
  23769. return 0;
  23770. }
  23771. _ACEOF
  23772. if ac_fn_c_try_compile "$LINENO"
  23773. then :
  23774. have_win32_gcc=yes
  23775. fi
  23776. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23778. printf "%s\n" "$have_win32_gcc" >&6; }
  23779. if test x$have_win32_gcc != xyes; then
  23780. as_fn_error $? "
  23781. *** Your compiler ($CC) does not produce Windows executables!
  23782. " "$LINENO" 5
  23783. fi
  23784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23785. printf %s "checking Windows CE... " >&6; }
  23786. have_wince=no
  23787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23788. /* end confdefs.h. */
  23789. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23790. #error This is not Windows CE
  23791. #endif
  23792. int
  23793. main (void)
  23794. {
  23795. ;
  23796. return 0;
  23797. }
  23798. _ACEOF
  23799. if ac_fn_c_try_compile "$LINENO"
  23800. then :
  23801. have_wince=yes
  23802. as_fn_error $? "
  23803. *** Sorry, Windows CE is no longer supported.
  23804. " "$LINENO" 5
  23805. fi
  23806. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23808. printf "%s\n" "$have_wince" >&6; }
  23809. # headers needed elsewhere
  23810. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23811. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23812. then :
  23813. have_tpcshrd_h=yes
  23814. fi
  23815. if test x$have_tpcshrd_h = xyes; then
  23816. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23817. fi
  23818. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23819. if test "x$ac_cv_header_roapi_h" = xyes
  23820. then :
  23821. have_roapi_h=yes
  23822. fi
  23823. if test x$have_roapi_h = xyes; then
  23824. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23825. fi
  23826. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23827. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23828. then :
  23829. have_shellscalingapi_h=yes
  23830. fi
  23831. if test x$shellscalingapi_h = xyes; then
  23832. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23833. fi
  23834. }
  23835. CheckOS2()
  23836. {
  23837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23838. printf %s "checking OS/2 compiler... " >&6; }
  23839. have_os2_gcc=no
  23840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23841. /* end confdefs.h. */
  23842. #include <os2.h>
  23843. int
  23844. main (void)
  23845. {
  23846. ;
  23847. return 0;
  23848. }
  23849. _ACEOF
  23850. if ac_fn_c_try_compile "$LINENO"
  23851. then :
  23852. have_os2_gcc=yes
  23853. fi
  23854. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23856. printf "%s\n" "$have_os2_gcc" >&6; }
  23857. if test x$have_os2_gcc != xyes; then
  23858. as_fn_error $? "
  23859. *** Your compiler ($CC) does not produce OS/2 executables!
  23860. " "$LINENO" 5
  23861. fi
  23862. }
  23863. CheckDIRECTX()
  23864. {
  23865. # Check whether --enable-directx was given.
  23866. if test ${enable_directx+y}
  23867. then :
  23868. enableval=$enable_directx;
  23869. else $as_nop
  23870. enable_directx=yes
  23871. fi
  23872. if test x$enable_directx = xyes; then
  23873. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23874. if test "x$ac_cv_header_d3d9_h" = xyes
  23875. then :
  23876. have_d3d=yes
  23877. fi
  23878. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23879. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23880. then :
  23881. have_d3d11=yes
  23882. fi
  23883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compatible d3d12 headers" >&5
  23884. printf %s "checking for compatible d3d12 headers... " >&6; }
  23885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23886. /* end confdefs.h. */
  23887. #include <d3d12.h>
  23888. #include <d3d12sdklayers.h>
  23889. ID3D12Device1 *device;
  23890. int
  23891. main (void)
  23892. {
  23893. ;
  23894. return 0;
  23895. }
  23896. _ACEOF
  23897. if ac_fn_c_try_compile "$LINENO"
  23898. then :
  23899. have_d3d12=yes
  23900. else $as_nop
  23901. have_d3d12=no
  23902. fi
  23903. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23905. printf "%s\n" "$have_d3d12" >&6; }
  23906. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23907. if test "x$ac_cv_header_ddraw_h" = xyes
  23908. then :
  23909. have_ddraw=yes
  23910. fi
  23911. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23912. if test "x$ac_cv_header_dsound_h" = xyes
  23913. then :
  23914. have_dsound=yes
  23915. fi
  23916. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23917. if test "x$ac_cv_header_dinput_h" = xyes
  23918. then :
  23919. have_dinput=yes
  23920. fi
  23921. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23922. if test "x$ac_cv_header_dxgi_h" = xyes
  23923. then :
  23924. have_dxgi=yes
  23925. fi
  23926. if test x$have_ddraw = xyes; then
  23927. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23928. fi
  23929. if test x$have_dinput = xyes; then
  23930. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23931. fi
  23932. if test x$have_dsound = xyes; then
  23933. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23934. fi
  23935. if test x$have_dxgi = xyes; then
  23936. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23937. fi
  23938. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23939. # FIXME: ...so force it off for now.
  23940. case "$host" in
  23941. *-*-cygwin*)
  23942. have_dinput=false
  23943. ;;
  23944. esac
  23945. fi
  23946. # Check whether --enable-xinput was given.
  23947. if test ${enable_xinput+y}
  23948. then :
  23949. enableval=$enable_xinput;
  23950. else $as_nop
  23951. enable_xinput=yes
  23952. fi
  23953. if test x$enable_xinput = xyes; then
  23954. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23955. if test "x$ac_cv_header_xinput_h" = xyes
  23956. then :
  23957. have_xinput=yes
  23958. fi
  23959. if test x$have_xinput = xyes; then
  23960. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23961. fi
  23962. fi
  23963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23964. printf %s "checking for windows.gaming.input.h... " >&6; }
  23965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23966. /* end confdefs.h. */
  23967. #define COBJMACROS
  23968. #include <windows.gaming.input.h>
  23969. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23970. int
  23971. main (void)
  23972. {
  23973. ;
  23974. return 0;
  23975. }
  23976. _ACEOF
  23977. if ac_fn_c_try_compile "$LINENO"
  23978. then :
  23979. have_wgi=yes
  23980. else $as_nop
  23981. have_wgi=no
  23982. fi
  23983. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23985. printf "%s\n" "$have_wgi" >&6; }
  23986. if test x$have_wgi = xyes; then
  23987. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23988. fi
  23989. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23990. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23991. then :
  23992. have_wasapi=yes
  23993. fi
  23994. if test x$have_wasapi = xyes; then
  23995. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23996. fi
  23997. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23998. if test "x$ac_cv_header_audioclient_h" = xyes
  23999. then :
  24000. else $as_nop
  24001. have_wasapi=no
  24002. fi
  24003. if test x$have_wasapi = xyes; then
  24004. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  24005. fi
  24006. # Check whether --enable-wasapi was given.
  24007. if test ${enable_wasapi+y}
  24008. then :
  24009. enableval=$enable_wasapi;
  24010. else $as_nop
  24011. enable_wasapi=yes
  24012. fi
  24013. }
  24014. CheckDLOPEN()
  24015. {
  24016. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  24017. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  24018. if test "x$ac_cv_header_dlfcn_h" = xyes
  24019. then :
  24020. have_dlfcn_h=yes
  24021. else $as_nop
  24022. have_dlfcn_h=no
  24023. fi
  24024. have_dlopen=no
  24025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  24026. printf %s "checking for dlopen in -lc... " >&6; }
  24027. if test ${ac_cv_lib_c_dlopen+y}
  24028. then :
  24029. printf %s "(cached) " >&6
  24030. else $as_nop
  24031. ac_check_lib_save_LIBS=$LIBS
  24032. LIBS="-lc $LIBS"
  24033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24034. /* end confdefs.h. */
  24035. /* Override any GCC internal prototype to avoid an error.
  24036. Use char because int might match the return type of a GCC
  24037. builtin and then its argument prototype would still apply. */
  24038. char dlopen ();
  24039. int
  24040. main (void)
  24041. {
  24042. return dlopen ();
  24043. ;
  24044. return 0;
  24045. }
  24046. _ACEOF
  24047. if ac_fn_c_try_link "$LINENO"
  24048. then :
  24049. ac_cv_lib_c_dlopen=yes
  24050. else $as_nop
  24051. ac_cv_lib_c_dlopen=no
  24052. fi
  24053. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24054. conftest$ac_exeext conftest.$ac_ext
  24055. LIBS=$ac_check_lib_save_LIBS
  24056. fi
  24057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  24058. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  24059. if test "x$ac_cv_lib_c_dlopen" = xyes
  24060. then :
  24061. have_dlopen=yes
  24062. else $as_nop
  24063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  24064. printf %s "checking for dlopen in -ldl... " >&6; }
  24065. if test ${ac_cv_lib_dl_dlopen+y}
  24066. then :
  24067. printf %s "(cached) " >&6
  24068. else $as_nop
  24069. ac_check_lib_save_LIBS=$LIBS
  24070. LIBS="-ldl $LIBS"
  24071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24072. /* end confdefs.h. */
  24073. /* Override any GCC internal prototype to avoid an error.
  24074. Use char because int might match the return type of a GCC
  24075. builtin and then its argument prototype would still apply. */
  24076. char dlopen ();
  24077. int
  24078. main (void)
  24079. {
  24080. return dlopen ();
  24081. ;
  24082. return 0;
  24083. }
  24084. _ACEOF
  24085. if ac_fn_c_try_link "$LINENO"
  24086. then :
  24087. ac_cv_lib_dl_dlopen=yes
  24088. else $as_nop
  24089. ac_cv_lib_dl_dlopen=no
  24090. fi
  24091. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24092. conftest$ac_exeext conftest.$ac_ext
  24093. LIBS=$ac_check_lib_save_LIBS
  24094. fi
  24095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  24096. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  24097. if test "x$ac_cv_lib_dl_dlopen" = xyes
  24098. then :
  24099. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  24100. fi
  24101. fi
  24102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  24103. printf %s "checking for dlopen... " >&6; }
  24104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  24105. printf "%s\n" "$have_dlopen" >&6; }
  24106. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  24107. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  24108. if test x$enable_loadso = xyes; then
  24109. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  24110. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  24111. have_loadso=yes
  24112. fi
  24113. fi
  24114. }
  24115. CheckO_CLOEXEC()
  24116. {
  24117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  24118. printf %s "checking for O_CLOEXEC... " >&6; }
  24119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24120. /* end confdefs.h. */
  24121. #include <fcntl.h>
  24122. int flag = O_CLOEXEC;
  24123. int
  24124. main (void)
  24125. {
  24126. ;
  24127. return 0;
  24128. }
  24129. _ACEOF
  24130. if ac_fn_c_try_compile "$LINENO"
  24131. then :
  24132. have_o_cloexec=yes
  24133. else $as_nop
  24134. have_o_cloexec=no
  24135. fi
  24136. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  24138. printf "%s\n" "$have_o_cloexec" >&6; }
  24139. if test $have_o_cloexec = yes; then
  24140. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  24141. fi
  24142. }
  24143. CheckUSBHID()
  24144. {
  24145. case "$host" in
  24146. *-*-*bsd*|*-*-dragonfly*)
  24147. if test x$enable_joystick = xyes; then
  24148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  24149. printf %s "checking for hid_init in -lusbhid... " >&6; }
  24150. if test ${ac_cv_lib_usbhid_hid_init+y}
  24151. then :
  24152. printf %s "(cached) " >&6
  24153. else $as_nop
  24154. ac_check_lib_save_LIBS=$LIBS
  24155. LIBS="-lusbhid $LIBS"
  24156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24157. /* end confdefs.h. */
  24158. /* Override any GCC internal prototype to avoid an error.
  24159. Use char because int might match the return type of a GCC
  24160. builtin and then its argument prototype would still apply. */
  24161. char hid_init ();
  24162. int
  24163. main (void)
  24164. {
  24165. return hid_init ();
  24166. ;
  24167. return 0;
  24168. }
  24169. _ACEOF
  24170. if ac_fn_c_try_link "$LINENO"
  24171. then :
  24172. ac_cv_lib_usbhid_hid_init=yes
  24173. else $as_nop
  24174. ac_cv_lib_usbhid_hid_init=no
  24175. fi
  24176. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24177. conftest$ac_exeext conftest.$ac_ext
  24178. LIBS=$ac_check_lib_save_LIBS
  24179. fi
  24180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  24181. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  24182. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  24183. then :
  24184. have_libusbhid=yes
  24185. fi
  24186. if test x$have_libusbhid = xyes; then
  24187. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  24188. if test "x$ac_cv_header_usbhid_h" = xyes
  24189. then :
  24190. USB_CFLAGS="-DHAVE_USBHID_H"
  24191. fi
  24192. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  24193. if test "x$ac_cv_header_libusbhid_h" = xyes
  24194. then :
  24195. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  24196. fi
  24197. USB_LIBS="$USB_LIBS -lusbhid"
  24198. else
  24199. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24200. if test "x$ac_cv_header_usb_h" = xyes
  24201. then :
  24202. USB_CFLAGS="-DHAVE_USB_H"
  24203. fi
  24204. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24205. if test "x$ac_cv_header_libusb_h" = xyes
  24206. then :
  24207. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24208. fi
  24209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24210. printf %s "checking for hid_init in -lusb... " >&6; }
  24211. if test ${ac_cv_lib_usb_hid_init+y}
  24212. then :
  24213. printf %s "(cached) " >&6
  24214. else $as_nop
  24215. ac_check_lib_save_LIBS=$LIBS
  24216. LIBS="-lusb $LIBS"
  24217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24218. /* end confdefs.h. */
  24219. /* Override any GCC internal prototype to avoid an error.
  24220. Use char because int might match the return type of a GCC
  24221. builtin and then its argument prototype would still apply. */
  24222. char hid_init ();
  24223. int
  24224. main (void)
  24225. {
  24226. return hid_init ();
  24227. ;
  24228. return 0;
  24229. }
  24230. _ACEOF
  24231. if ac_fn_c_try_link "$LINENO"
  24232. then :
  24233. ac_cv_lib_usb_hid_init=yes
  24234. else $as_nop
  24235. ac_cv_lib_usb_hid_init=no
  24236. fi
  24237. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24238. conftest$ac_exeext conftest.$ac_ext
  24239. LIBS=$ac_check_lib_save_LIBS
  24240. fi
  24241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24242. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24243. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24244. then :
  24245. USB_LIBS="$USB_LIBS -lusb"
  24246. fi
  24247. fi
  24248. save_CFLAGS="$CFLAGS"
  24249. CFLAGS="$CFLAGS $USB_CFLAGS"
  24250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24251. printf %s "checking for usbhid... " >&6; }
  24252. have_usbhid=no
  24253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24254. /* end confdefs.h. */
  24255. #include <stdint.h>
  24256. #if defined(HAVE_USB_H)
  24257. #include <usb.h>
  24258. #endif
  24259. #ifdef __DragonFly__
  24260. # include <bus/u4b/usb.h>
  24261. # include <bus/u4b/usbhid.h>
  24262. #else
  24263. # include <dev/usb/usb.h>
  24264. # include <dev/usb/usbhid.h>
  24265. #endif
  24266. #if defined(HAVE_USBHID_H)
  24267. #include <usbhid.h>
  24268. #elif defined(HAVE_LIBUSB_H)
  24269. #include <libusb.h>
  24270. #elif defined(HAVE_LIBUSBHID_H)
  24271. #include <libusbhid.h>
  24272. #endif
  24273. int
  24274. main (void)
  24275. {
  24276. struct report_desc *repdesc;
  24277. struct usb_ctl_report *repbuf;
  24278. hid_kind_t hidkind;
  24279. ;
  24280. return 0;
  24281. }
  24282. _ACEOF
  24283. if ac_fn_c_try_compile "$LINENO"
  24284. then :
  24285. have_usbhid=yes
  24286. fi
  24287. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24289. printf "%s\n" "$have_usbhid" >&6; }
  24290. if test x$have_usbhid = xyes; then
  24291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24292. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24293. have_usbhid_ucr_data=no
  24294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24295. /* end confdefs.h. */
  24296. #include <stdint.h>
  24297. #if defined(HAVE_USB_H)
  24298. #include <usb.h>
  24299. #endif
  24300. #ifdef __DragonFly__
  24301. # include <bus/u4b/usb.h>
  24302. # include <bus/u4b/usbhid.h>
  24303. #else
  24304. # include <dev/usb/usb.h>
  24305. # include <dev/usb/usbhid.h>
  24306. #endif
  24307. #if defined(HAVE_USBHID_H)
  24308. #include <usbhid.h>
  24309. #elif defined(HAVE_LIBUSB_H)
  24310. #include <libusb.h>
  24311. #elif defined(HAVE_LIBUSBHID_H)
  24312. #include <libusbhid.h>
  24313. #endif
  24314. int
  24315. main (void)
  24316. {
  24317. struct usb_ctl_report buf;
  24318. if (buf.ucr_data) { }
  24319. ;
  24320. return 0;
  24321. }
  24322. _ACEOF
  24323. if ac_fn_c_try_compile "$LINENO"
  24324. then :
  24325. have_usbhid_ucr_data=yes
  24326. fi
  24327. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24328. if test x$have_usbhid_ucr_data = xyes; then
  24329. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24330. fi
  24331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24332. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24334. printf %s "checking for new usbhid API... " >&6; }
  24335. have_usbhid_new=no
  24336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24337. /* end confdefs.h. */
  24338. #include <stdint.h>
  24339. #if defined(HAVE_USB_H)
  24340. #include <usb.h>
  24341. #endif
  24342. #ifdef __DragonFly__
  24343. #include <bus/u4b/usb.h>
  24344. #include <bus/u4b/usbhid.h>
  24345. #else
  24346. #include <dev/usb/usb.h>
  24347. #include <dev/usb/usbhid.h>
  24348. #endif
  24349. #if defined(HAVE_USBHID_H)
  24350. #include <usbhid.h>
  24351. #elif defined(HAVE_LIBUSB_H)
  24352. #include <libusb.h>
  24353. #elif defined(HAVE_LIBUSBHID_H)
  24354. #include <libusbhid.h>
  24355. #endif
  24356. int
  24357. main (void)
  24358. {
  24359. report_desc_t d;
  24360. hid_start_parse(d, 1, 1);
  24361. ;
  24362. return 0;
  24363. }
  24364. _ACEOF
  24365. if ac_fn_c_try_compile "$LINENO"
  24366. then :
  24367. have_usbhid_new=yes
  24368. fi
  24369. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24370. if test x$have_usbhid_new = xyes; then
  24371. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24372. fi
  24373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24374. printf "%s\n" "$have_usbhid_new" >&6; }
  24375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24376. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24377. have_machine_joystick=no
  24378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24379. /* end confdefs.h. */
  24380. #include <machine/joystick.h>
  24381. int
  24382. main (void)
  24383. {
  24384. struct joystick t;
  24385. ;
  24386. return 0;
  24387. }
  24388. _ACEOF
  24389. if ac_fn_c_try_compile "$LINENO"
  24390. then :
  24391. have_machine_joystick=yes
  24392. fi
  24393. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24394. if test x$have_machine_joystick = xyes; then
  24395. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24396. fi
  24397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24398. printf "%s\n" "$have_machine_joystick" >&6; }
  24399. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24400. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24401. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24402. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24403. have_joystick=yes
  24404. fi
  24405. CFLAGS="$save_CFLAGS"
  24406. fi
  24407. ;;
  24408. esac
  24409. }
  24410. CheckHIDAPI()
  24411. {
  24412. # Check whether --enable-hidapi-joystick was given.
  24413. if test ${enable_hidapi_joystick+y}
  24414. then :
  24415. enableval=$enable_hidapi_joystick;
  24416. else $as_nop
  24417. enable_hidapi_joystick=yes
  24418. fi
  24419. # Check whether --enable-hidapi-libusb was given.
  24420. if test ${enable_hidapi_libusb+y}
  24421. then :
  24422. enableval=$enable_hidapi_libusb;
  24423. else $as_nop
  24424. enable_hidapi_libusb=maybe
  24425. fi
  24426. if test x$enable_hidapi = xyes; then
  24427. case "$host" in
  24428. # libusb does not support iOS
  24429. *-ios-* )
  24430. enable_hidapi_libusb=no
  24431. ;;
  24432. # On the other hand, *BSD specifically uses libusb only
  24433. *-*-*bsd* )
  24434. enable_hidapi_libusb=yes
  24435. require_hidapi_libusb=yes
  24436. ;;
  24437. *-*-os2* )
  24438. enable_hidapi_libusb=yes
  24439. ;;
  24440. esac
  24441. hidapi_support=yes
  24442. if test x$enable_hidapi_libusb = xyes; then
  24443. pkg_failed=no
  24444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24445. printf %s "checking for libusb-1.0... " >&6; }
  24446. if test -n "$LIBUSB_CFLAGS"; then
  24447. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24448. elif test -n "$PKG_CONFIG"; then
  24449. if test -n "$PKG_CONFIG" && \
  24450. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24451. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24452. ac_status=$?
  24453. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24454. test $ac_status = 0; }; then
  24455. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24456. test "x$?" != "x0" && pkg_failed=yes
  24457. else
  24458. pkg_failed=yes
  24459. fi
  24460. else
  24461. pkg_failed=untried
  24462. fi
  24463. if test -n "$LIBUSB_LIBS"; then
  24464. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24465. elif test -n "$PKG_CONFIG"; then
  24466. if test -n "$PKG_CONFIG" && \
  24467. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24468. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24469. ac_status=$?
  24470. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24471. test $ac_status = 0; }; then
  24472. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24473. test "x$?" != "x0" && pkg_failed=yes
  24474. else
  24475. pkg_failed=yes
  24476. fi
  24477. else
  24478. pkg_failed=untried
  24479. fi
  24480. if test $pkg_failed = yes; then
  24481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24482. printf "%s\n" "no" >&6; }
  24483. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24484. _pkg_short_errors_supported=yes
  24485. else
  24486. _pkg_short_errors_supported=no
  24487. fi
  24488. if test $_pkg_short_errors_supported = yes; then
  24489. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24490. else
  24491. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24492. fi
  24493. # Put the nasty error message in config.log where it belongs
  24494. echo "$LIBUSB_PKG_ERRORS" >&5
  24495. have_libusb=no
  24496. elif test $pkg_failed = untried; then
  24497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24498. printf "%s\n" "no" >&6; }
  24499. have_libusb=no
  24500. else
  24501. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24502. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24504. printf "%s\n" "yes" >&6; }
  24505. have_libusb=yes
  24506. fi
  24507. save_CPPFLAGS="$CPPFLAGS"
  24508. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24509. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24510. if test "x$ac_cv_header_libusb_h" = xyes
  24511. then :
  24512. have_libusb_h=yes
  24513. else $as_nop
  24514. have_libusb_h=no
  24515. fi
  24516. CPPFLAGS="$save_CPPFLAGS"
  24517. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24518. hidapi_support=no
  24519. fi
  24520. fi
  24521. if test x$hidapi_support = xyes; then
  24522. if test x$have_libusb_h = xyes; then
  24523. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24524. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24525. if test x$require_hidapi_libusb = xyes; then
  24526. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24527. else
  24528. if test x$have_loadso != xyes; then
  24529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24530. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24531. fi
  24532. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24533. libusb_lib=""
  24534. case "$host" in
  24535. *-*-darwin* )
  24536. libusb_lib="libusb-1.0.0.dylib"
  24537. ;;
  24538. *-*-cygwin* | *-*-mingw* )
  24539. libusb_lib="libusb-1.0.dll"
  24540. ;;
  24541. *-*-os2* )
  24542. libusb_lib="usb100.dll"
  24543. ;;
  24544. esac
  24545. if test x$libusb_lib = x; then
  24546. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24547. fi
  24548. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24549. fi
  24550. fi
  24551. fi
  24552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24553. printf %s "checking for hidapi joystick support... " >&6; }
  24554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24555. printf "%s\n" "$hidapi_support" >&6; }
  24556. fi
  24557. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24558. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24559. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24560. fi
  24561. }
  24562. CheckClockGettime()
  24563. {
  24564. # Check whether --enable-clock_gettime was given.
  24565. if test ${enable_clock_gettime+y}
  24566. then :
  24567. enableval=$enable_clock_gettime;
  24568. else $as_nop
  24569. enable_clock_gettime=yes
  24570. fi
  24571. if test x$enable_clock_gettime = xyes; then
  24572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24573. printf %s "checking for clock_gettime in -lc... " >&6; }
  24574. if test ${ac_cv_lib_c_clock_gettime+y}
  24575. then :
  24576. printf %s "(cached) " >&6
  24577. else $as_nop
  24578. ac_check_lib_save_LIBS=$LIBS
  24579. LIBS="-lc $LIBS"
  24580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24581. /* end confdefs.h. */
  24582. /* Override any GCC internal prototype to avoid an error.
  24583. Use char because int might match the return type of a GCC
  24584. builtin and then its argument prototype would still apply. */
  24585. char clock_gettime ();
  24586. int
  24587. main (void)
  24588. {
  24589. return clock_gettime ();
  24590. ;
  24591. return 0;
  24592. }
  24593. _ACEOF
  24594. if ac_fn_c_try_link "$LINENO"
  24595. then :
  24596. ac_cv_lib_c_clock_gettime=yes
  24597. else $as_nop
  24598. ac_cv_lib_c_clock_gettime=no
  24599. fi
  24600. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24601. conftest$ac_exeext conftest.$ac_ext
  24602. LIBS=$ac_check_lib_save_LIBS
  24603. fi
  24604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24605. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24606. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24607. then :
  24608. have_clock_gettime=yes
  24609. fi
  24610. if test x$have_clock_gettime = xyes; then
  24611. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24612. else
  24613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24614. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24615. if test ${ac_cv_lib_rt_clock_gettime+y}
  24616. then :
  24617. printf %s "(cached) " >&6
  24618. else $as_nop
  24619. ac_check_lib_save_LIBS=$LIBS
  24620. LIBS="-lrt $LIBS"
  24621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24622. /* end confdefs.h. */
  24623. /* Override any GCC internal prototype to avoid an error.
  24624. Use char because int might match the return type of a GCC
  24625. builtin and then its argument prototype would still apply. */
  24626. char clock_gettime ();
  24627. int
  24628. main (void)
  24629. {
  24630. return clock_gettime ();
  24631. ;
  24632. return 0;
  24633. }
  24634. _ACEOF
  24635. if ac_fn_c_try_link "$LINENO"
  24636. then :
  24637. ac_cv_lib_rt_clock_gettime=yes
  24638. else $as_nop
  24639. ac_cv_lib_rt_clock_gettime=no
  24640. fi
  24641. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24642. conftest$ac_exeext conftest.$ac_ext
  24643. LIBS=$ac_check_lib_save_LIBS
  24644. fi
  24645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24646. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24647. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24648. then :
  24649. have_clock_gettime=yes
  24650. fi
  24651. if test x$have_clock_gettime = xyes; then
  24652. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24653. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24654. fi
  24655. fi
  24656. fi
  24657. }
  24658. CheckLinuxVersion()
  24659. {
  24660. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24661. if test "x$ac_cv_header_linux_version_h" = xyes
  24662. then :
  24663. have_linux_version_h=yes
  24664. fi
  24665. if test x$have_linux_version_h = xyes; then
  24666. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24667. fi
  24668. }
  24669. CheckRPATH()
  24670. {
  24671. # Check whether --enable-rpath was given.
  24672. if test ${enable_rpath+y}
  24673. then :
  24674. enableval=$enable_rpath;
  24675. else $as_nop
  24676. enable_rpath=yes
  24677. fi
  24678. }
  24679. CheckEventSignals()
  24680. {
  24681. # Check whether --enable-backgrounding-signal was given.
  24682. if test ${enable_backgrounding_signal+y}
  24683. then :
  24684. enableval=$enable_backgrounding_signal;
  24685. else $as_nop
  24686. enable_backgrounding_signal=no
  24687. fi
  24688. if test x$enable_backgrounding_signal != xno; then
  24689. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24690. fi
  24691. # Check whether --enable-foregrounding-signal was given.
  24692. if test ${enable_foregrounding_signal+y}
  24693. then :
  24694. enableval=$enable_foregrounding_signal;
  24695. else $as_nop
  24696. enable_foregrounding_signal=no
  24697. fi
  24698. if test x$enable_foregrounding_signal != xno; then
  24699. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24700. fi
  24701. }
  24702. CheckVirtualJoystick()
  24703. {
  24704. # Check whether --enable-joystick-virtual was given.
  24705. if test ${enable_joystick_virtual+y}
  24706. then :
  24707. enableval=$enable_joystick_virtual;
  24708. else $as_nop
  24709. enable_joystick_virtual=yes
  24710. fi
  24711. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24712. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24713. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24714. have_joystick_virtual=yes
  24715. fi
  24716. }
  24717. CheckWarnAll
  24718. CheckUnusedLocalTypedefs
  24719. CheckNoStrictAliasing
  24720. CheckEventSignals
  24721. have_locale=no
  24722. case "$host" in
  24723. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24724. case "$host" in
  24725. *-*-android*)
  24726. # Android
  24727. ARCH=android
  24728. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24729. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24730. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24731. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24732. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24733. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24734. if test x$enable_video = xyes; then
  24735. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24736. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24737. SUMMARY_video="${SUMMARY_video} android"
  24738. have_video=yes
  24739. fi
  24740. ;;
  24741. *-*-linux*) ARCH=linux ;;
  24742. *-*-uclinux*) ARCH=linux ;;
  24743. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24744. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24745. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24746. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24747. *-*-bsdi*) ARCH=bsdi ;;
  24748. *-*-freebsd*) ARCH=freebsd ;;
  24749. *-*-dragonfly*) ARCH=freebsd ;;
  24750. *-*-netbsd*) ARCH=netbsd ;;
  24751. *-*-openbsd*) ARCH=openbsd ;;
  24752. *-*-sysv5*) ARCH=sysv5 ;;
  24753. *-*-solaris*) ARCH=solaris ;;
  24754. *-*-hpux*) ARCH=hpux ;;
  24755. *-*-aix*) ARCH=aix ;;
  24756. *-*-minix*) ARCH=minix ;;
  24757. *-*-nto*) ARCH=nto
  24758. CheckQNXVideo
  24759. ;;
  24760. esac
  24761. CheckVisibilityHidden
  24762. CheckWerror
  24763. CheckDeclarationAfterStatement
  24764. CheckDummyVideo
  24765. CheckOffscreenVideo
  24766. CheckDiskAudio
  24767. CheckDummyAudio
  24768. CheckDLOPEN
  24769. CheckARM
  24770. CheckNEON
  24771. CheckO_CLOEXEC
  24772. CheckOSS
  24773. CheckALSA
  24774. CheckPipewire
  24775. CheckPulseAudio
  24776. CheckJACK
  24777. CheckARTSC
  24778. CheckESD
  24779. CheckNAS
  24780. CheckSNDIO
  24781. CheckFusionSound
  24782. CheckLibSampleRate
  24783. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24784. CheckRPI
  24785. CheckX11
  24786. CheckDirectFB
  24787. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24788. CheckEGL
  24789. CheckKMSDRM
  24790. CheckGLX
  24791. CheckOpenGL
  24792. CheckOpenGLES
  24793. CheckVulkan
  24794. CheckWayland
  24795. CheckInputEvents
  24796. CheckLibUDev
  24797. CheckDBus
  24798. CheckIME
  24799. CheckInotify
  24800. CheckIBus
  24801. CheckFcitx
  24802. case $ARCH in
  24803. linux)
  24804. CheckInputKD
  24805. ;;
  24806. freebsd)
  24807. CheckInputKBIO
  24808. ;;
  24809. openbsd|netbsd)
  24810. CheckInputWSCONS
  24811. ;;
  24812. esac
  24813. CheckUSBHID
  24814. CheckHIDAPI
  24815. CheckPTHREAD
  24816. CheckClockGettime
  24817. CheckLinuxVersion
  24818. CheckRPATH
  24819. CheckVivanteVideo
  24820. # Set up files for the misc library
  24821. if test x$enable_misc = xyes; then
  24822. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24823. have_misc=yes
  24824. fi
  24825. # Set up files for the locale library
  24826. if test x$enable_locale = xyes; then
  24827. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24828. have_locale=yes
  24829. fi
  24830. # Set up files for the audio library
  24831. if test x$enable_audio = xyes; then
  24832. case $ARCH in
  24833. sysv5|solaris|hpux)
  24834. # Newer Solaris-based systems, like OpenIndiana, don't have this interface anymore. Check for the header first.
  24835. ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
  24836. if test "x$ac_cv_header_sys_audioio_h" = xyes
  24837. then :
  24838. have_sys_audioio_h=yes
  24839. else $as_nop
  24840. have_sys_audioio_h=no
  24841. fi
  24842. if test x$have_sys_audioio_h = xyes; then
  24843. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24844. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24845. SUMMARY_audio="${SUMMARY_audio} sun"
  24846. have_audio=yes
  24847. fi
  24848. ;;
  24849. netbsd) # Don't use this on OpenBSD, it's busted.
  24850. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24851. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24852. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24853. have_audio=yes
  24854. ;;
  24855. aix)
  24856. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24857. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24858. SUMMARY_audio="${SUMMARY_audio} paudio"
  24859. have_audio=yes
  24860. ;;
  24861. android)
  24862. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24863. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24864. SUMMARY_audio="${SUMMARY_audio} android"
  24865. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24866. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24867. SUMMARY_audio="${SUMMARY_audio} openslES"
  24868. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24869. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24870. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24871. have_audio=yes
  24872. ;;
  24873. nto)
  24874. CheckQNXAudio
  24875. ;;
  24876. esac
  24877. fi
  24878. # Set up files for the joystick library
  24879. if test x$enable_joystick = xyes; then
  24880. case $ARCH in
  24881. linux)
  24882. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24883. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24884. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24885. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24886. have_joystick=yes
  24887. fi
  24888. ;;
  24889. freebsd)
  24890. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24891. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24892. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24893. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24894. have_joystick=yes
  24895. fi
  24896. ;;
  24897. android)
  24898. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24899. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24900. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24901. have_joystick=yes
  24902. ;;
  24903. esac
  24904. fi
  24905. # Set up files for the haptic library
  24906. if test x$enable_haptic = xyes; then
  24907. case $ARCH in
  24908. linux|freebsd)
  24909. if test x$use_input_events = xyes; then
  24910. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24911. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24912. have_haptic=yes
  24913. fi
  24914. ;;
  24915. android)
  24916. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24917. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24918. have_haptic=yes
  24919. ;;
  24920. esac
  24921. fi
  24922. # Set up files for the sensor library
  24923. if test x$enable_sensor = xyes; then
  24924. case $ARCH in
  24925. android)
  24926. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24927. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24928. have_sensor=yes
  24929. ;;
  24930. esac
  24931. fi
  24932. # Set up files for the power library
  24933. if test x$enable_power = xyes; then
  24934. case $ARCH in
  24935. linux)
  24936. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24937. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24938. have_power=yes
  24939. ;;
  24940. android)
  24941. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24942. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24943. have_power=yes
  24944. ;;
  24945. esac
  24946. fi
  24947. # Set up files for the filesystem library
  24948. if test x$enable_filesystem = xyes; then
  24949. case $ARCH in
  24950. android)
  24951. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24952. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24953. have_filesystem=yes
  24954. ;;
  24955. *)
  24956. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24957. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24958. have_filesystem=yes
  24959. ;;
  24960. esac
  24961. fi
  24962. # Set up files for the timer library
  24963. if test x$enable_timers = xyes; then
  24964. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24965. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24966. have_timers=yes
  24967. fi
  24968. # Set up files for udev hotplugging support
  24969. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24970. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24971. fi
  24972. # Set up files for evdev input
  24973. if test x$use_input_events = xyes; then
  24974. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24975. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24976. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24977. fi
  24978. # Set up files for wscons input
  24979. if test x$use_input_wscons = xyes; then
  24980. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24981. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24982. fi
  24983. # Set up other core UNIX files
  24984. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24985. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24986. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24987. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24988. ;;
  24989. *-*-cygwin* | *-*-mingw*)
  24990. ARCH=win32
  24991. if test "$build" != "$host"; then # cross-compiling
  24992. # Default cross-compile location
  24993. ac_default_prefix=/usr/local/cross-tools/$host
  24994. else
  24995. # Look for the location of the tools and install there
  24996. if test "$BUILD_PREFIX" != ""; then
  24997. ac_default_prefix=$BUILD_PREFIX
  24998. fi
  24999. fi
  25000. if test x$enable_loadso = xyes; then
  25001. have_loadso=yes
  25002. fi
  25003. CheckGDwarf4
  25004. CheckWerror
  25005. CheckDeclarationAfterStatement
  25006. CheckDummyVideo
  25007. CheckOffscreenVideo
  25008. CheckDiskAudio
  25009. CheckDummyAudio
  25010. CheckWINDOWS
  25011. CheckWINDOWSGL
  25012. CheckWINDOWSGLES
  25013. CheckVulkan
  25014. CheckDIRECTX
  25015. CheckHIDAPI
  25016. # Set up the core platform files
  25017. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  25018. # Set up files for the misc library
  25019. if test x$enable_misc = xyes; then
  25020. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  25021. have_misc=yes
  25022. fi
  25023. # Use the Windows locale APIs.
  25024. if test x$enable_locale = xyes; then
  25025. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  25026. have_locale=yes
  25027. fi
  25028. # Set up files for the video library
  25029. if test x$enable_video = xyes; then
  25030. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  25031. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  25032. have_video=yes
  25033. # Check whether --enable-render-d3d was given.
  25034. if test ${enable_render_d3d+y}
  25035. then :
  25036. enableval=$enable_render_d3d;
  25037. else $as_nop
  25038. enable_render_d3d=yes
  25039. fi
  25040. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  25041. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  25042. SUMMARY_video="${SUMMARY_video} d3d9"
  25043. fi
  25044. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  25045. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  25046. SUMMARY_video="${SUMMARY_video} d3d11"
  25047. fi
  25048. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  25049. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  25050. SUMMARY_video="${SUMMARY_video} d3d12"
  25051. fi
  25052. fi
  25053. # Set up files for the audio library
  25054. if test x$enable_audio = xyes; then
  25055. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  25056. SUMMARY_audio="${SUMMARY_audio} winmm"
  25057. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  25058. if test x$have_dsound = xyes; then
  25059. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  25060. SUMMARY_audio="${SUMMARY_audio} directsound"
  25061. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  25062. fi
  25063. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  25064. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  25065. SUMMARY_audio="${SUMMARY_audio} wasapi"
  25066. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  25067. fi
  25068. have_audio=yes
  25069. fi
  25070. # Set up files for the joystick library
  25071. if test x$enable_joystick = xyes; then
  25072. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  25073. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  25074. if test x$have_xinput = xyes; then
  25075. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  25076. fi
  25077. if test x$have_wgi = xyes; then
  25078. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  25079. fi
  25080. if test x$have_dinput = xyes; then
  25081. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  25082. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  25083. fi
  25084. fi
  25085. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  25086. have_joystick=yes
  25087. fi
  25088. if test x$enable_haptic = xyes; then
  25089. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  25090. if test x$have_xinput = xyes; then
  25091. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  25092. fi
  25093. if test x$have_dinput = xyes; then
  25094. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  25095. fi
  25096. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  25097. have_haptic=yes
  25098. fi
  25099. fi
  25100. # Set up files for the sensor library
  25101. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  25102. if test "x$ac_cv_header_sensorsapi_h" = xyes
  25103. then :
  25104. have_winsensors=yes
  25105. else $as_nop
  25106. have_winsensors=no
  25107. fi
  25108. if test x$have_winsensors = xyes; then
  25109. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  25110. fi
  25111. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  25112. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  25113. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  25114. have_sensor=yes
  25115. fi
  25116. # Set up files for the power library
  25117. if test x$enable_power = xyes; then
  25118. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  25119. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  25120. have_power=yes
  25121. fi
  25122. # Set up files for the filesystem library
  25123. if test x$enable_filesystem = xyes; then
  25124. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  25125. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  25126. have_filesystem=yes
  25127. fi
  25128. # Set up files for the thread library
  25129. if test x$enable_threads = xyes; then
  25130. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  25131. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  25132. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  25133. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25134. have_threads=yes
  25135. fi
  25136. # Set up files for the timer library
  25137. if test x$enable_timers = xyes; then
  25138. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  25139. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  25140. have_timers=yes
  25141. fi
  25142. # Set up files for the shared object loading library
  25143. if test x$enable_loadso = xyes; then
  25144. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  25145. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  25146. fi
  25147. # Set up the system libraries we need
  25148. if test -f /lib/w32api/libuuid.a; then
  25149. LIBUUID=/lib/w32api/libuuid.a
  25150. else
  25151. LIBUUID=-luuid
  25152. fi
  25153. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  25154. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  25155. # The Windows platform requires special setup
  25156. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  25157. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  25158. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  25159. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  25160. # Check to see if this is a mingw or cygwin build
  25161. have_mingw32=
  25162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  25163. printf %s "checking for main in -lmingw32... " >&6; }
  25164. if test ${ac_cv_lib_mingw32_main+y}
  25165. then :
  25166. printf %s "(cached) " >&6
  25167. else $as_nop
  25168. ac_check_lib_save_LIBS=$LIBS
  25169. LIBS="-lmingw32 $LIBS"
  25170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25171. /* end confdefs.h. */
  25172. int
  25173. main (void)
  25174. {
  25175. return main ();
  25176. ;
  25177. return 0;
  25178. }
  25179. _ACEOF
  25180. if ac_fn_c_try_link "$LINENO"
  25181. then :
  25182. ac_cv_lib_mingw32_main=yes
  25183. else $as_nop
  25184. ac_cv_lib_mingw32_main=no
  25185. fi
  25186. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25187. conftest$ac_exeext conftest.$ac_ext
  25188. LIBS=$ac_check_lib_save_LIBS
  25189. fi
  25190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  25191. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  25192. if test "x$ac_cv_lib_mingw32_main" = xyes
  25193. then :
  25194. have_mingw32=yes
  25195. fi
  25196. if test x$have_mingw32 = xyes; then
  25197. SDL_LIBS="-lmingw32 $SDL_LIBS"
  25198. else
  25199. SDL_LIBS="-lcygwin $SDL_LIBS"
  25200. fi
  25201. ;;
  25202. *-*-beos*)
  25203. as_fn_error $? "
  25204. *** BeOS support has been removed as of SDL 2.0.2.
  25205. " "$LINENO" 5
  25206. ;;
  25207. *-*-haiku*)
  25208. ARCH=haiku
  25209. ac_default_prefix=/boot/system
  25210. CheckDummyVideo
  25211. CheckOffscreenVideo
  25212. CheckDiskAudio
  25213. CheckDummyAudio
  25214. CheckDLOPEN
  25215. CheckO_CLOEXEC
  25216. CheckHaikuVideo
  25217. CheckHaikuGL
  25218. CheckPTHREAD
  25219. # Set up files for the audio library
  25220. if test x$enable_audio = xyes; then
  25221. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25222. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25223. SUMMARY_audio="${SUMMARY_audio} haiku"
  25224. have_audio=yes
  25225. fi
  25226. # Set up files for the joystick library
  25227. if test x$enable_joystick = xyes; then
  25228. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25229. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25230. have_joystick=yes
  25231. fi
  25232. # Set up files for the timer library
  25233. if test x$enable_timers = xyes; then
  25234. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25235. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25236. have_timers=yes
  25237. fi
  25238. # Set up files for the system power library
  25239. if test x$enable_power = xyes; then
  25240. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25241. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25242. have_power=yes
  25243. fi
  25244. # Set up files for the system filesystem library
  25245. if test x$enable_filesystem = xyes; then
  25246. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25247. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25248. have_filesystem=yes
  25249. fi
  25250. # Set up files for the misc library
  25251. if test x$enable_misc = xyes; then
  25252. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25253. have_misc=yes
  25254. fi
  25255. # Set up files for the locale library
  25256. if test x$enable_locale = xyes; then
  25257. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25258. have_locale=yes
  25259. fi
  25260. # The Haiku platform requires special setup.
  25261. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25262. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25263. ;;
  25264. *-ios-*)
  25265. ARCH=ios
  25266. CheckVisibilityHidden
  25267. CheckWerror
  25268. CheckNoErrorDeprecatedDeclarationsWerror
  25269. CheckDeclarationAfterStatement
  25270. CheckDummyVideo
  25271. CheckOffscreenVideo
  25272. CheckDiskAudio
  25273. CheckDummyAudio
  25274. CheckDLOPEN
  25275. CheckO_CLOEXEC
  25276. CheckMETAL
  25277. CheckVulkan
  25278. CheckPTHREAD
  25279. # Set up files for the misc library
  25280. if test x$enable_misc = xyes; then
  25281. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25282. have_misc=yes
  25283. fi
  25284. # Set up files for the locale library
  25285. if test x$enable_locale = xyes; then
  25286. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25287. have_locale=yes
  25288. fi
  25289. # Set up files for the audio library
  25290. if test x$enable_audio = xyes; then
  25291. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25292. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25293. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25294. have_audio=yes
  25295. fi
  25296. # Set up files for the joystick library
  25297. if test x$enable_joystick = xyes; then
  25298. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25299. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25300. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25301. have_joystick=yes
  25302. else
  25303. # Need this code for accelerometer as joystick support
  25304. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25305. fi
  25306. # Set up files for the haptic library
  25307. #if test x$enable_haptic = xyes; then
  25308. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25309. # have_haptic=yes
  25310. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25311. #fi
  25312. # Set up files for the sensor library
  25313. if test x$enable_sensor = xyes; then
  25314. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25315. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25316. have_sensor=yes
  25317. fi
  25318. # Set up files for the power library
  25319. if test x$enable_power = xyes; then
  25320. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25321. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25322. have_power=yes
  25323. fi
  25324. # Set up files for the filesystem library
  25325. if test x$enable_filesystem = xyes; then
  25326. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25327. have_filesystem=yes
  25328. fi
  25329. # Set up additional files for the file library
  25330. if test x$enable_file = xyes; then
  25331. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25332. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25333. fi
  25334. # Set up files for the timer library
  25335. if test x$enable_timers = xyes; then
  25336. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25337. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25338. have_timers=yes
  25339. fi
  25340. # Set up other core UNIX files
  25341. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25342. # The iOS platform requires special setup.
  25343. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25344. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25345. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25346. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25347. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25348. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25349. SUMMARY_video="${SUMMARY_video} uikit"
  25350. have_video=yes
  25351. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25352. if test x$enable_system_iconv = xyes; then
  25353. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25354. fi
  25355. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25356. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25357. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25358. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25360. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25361. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25362. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25363. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25364. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25365. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25366. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25367. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25368. fi
  25369. ;;
  25370. *-*-darwin* )
  25371. # This could be either full "Mac OS X", or plain "Darwin" which is
  25372. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25373. # Next line is broken, and a few files below require Mac OS X (full)
  25374. ARCH=macosx
  25375. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25376. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25377. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25378. CheckObjectiveCARC
  25379. CheckVisibilityHidden
  25380. CheckWerror
  25381. CheckNoErrorDeprecatedDeclarationsWerror
  25382. CheckDeclarationAfterStatement
  25383. CheckDummyVideo
  25384. CheckOffscreenVideo
  25385. CheckDiskAudio
  25386. CheckDummyAudio
  25387. CheckDLOPEN
  25388. CheckO_CLOEXEC
  25389. CheckCOCOA
  25390. CheckMETAL
  25391. CheckX11
  25392. CheckMacGL
  25393. CheckMacGLES
  25394. CheckGLX
  25395. CheckOpenGL
  25396. CheckVulkan
  25397. CheckPTHREAD
  25398. CheckHIDAPI
  25399. # Set up files for the misc library
  25400. if test x$enable_misc = xyes; then
  25401. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25402. have_misc=yes
  25403. fi
  25404. # Set up files for the locale library
  25405. if test x$enable_locale = xyes; then
  25406. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25407. have_locale=yes
  25408. fi
  25409. # Set up files for the audio library
  25410. if test x$enable_audio = xyes; then
  25411. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25412. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25413. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25414. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25415. have_audio=yes
  25416. fi
  25417. # Set up files for the joystick library
  25418. if test x$enable_joystick = xyes; then
  25419. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25420. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25421. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25422. CheckJoystickMFI
  25423. have_joystick=yes
  25424. fi
  25425. # Set up files for the haptic library
  25426. if test x$enable_haptic = xyes; then
  25427. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25428. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25429. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25430. have_haptic=yes
  25431. fi
  25432. # Set up files for the power library
  25433. if test x$enable_power = xyes; then
  25434. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25435. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25436. have_power=yes
  25437. fi
  25438. # Set up files for the filesystem library
  25439. if test x$enable_filesystem = xyes; then
  25440. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25441. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25442. have_filesystem=yes
  25443. fi
  25444. # Set up files for the timer library
  25445. if test x$enable_timers = xyes; then
  25446. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25447. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25448. have_timers=yes
  25449. fi
  25450. # Set up additional files for the file library
  25451. if test x$enable_file = xyes; then
  25452. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25453. fi
  25454. # Set up other core UNIX files
  25455. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25456. # The Mac OS X platform requires special setup.
  25457. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25458. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25459. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25460. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25461. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25462. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25463. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25464. fi
  25465. ;;
  25466. *-nacl|*-pnacl)
  25467. ARCH=nacl
  25468. CheckNativeClient
  25469. CheckDummyAudio
  25470. CheckDummyVideo
  25471. CheckOffscreenVideo
  25472. CheckInputEvents
  25473. CheckPTHREAD
  25474. CheckO_CLOEXEC
  25475. # Set up files for the timer library
  25476. if test x$enable_timers = xyes; then
  25477. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25478. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25479. have_timers=yes
  25480. fi
  25481. if test x$enable_filesystem = xyes; then
  25482. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25483. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25484. have_filesystem=yes
  25485. fi
  25486. ;;
  25487. *-*-emscripten* )
  25488. if test x$enable_video = xyes; then
  25489. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25490. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25491. have_video=yes
  25492. SUMMARY_video="${SUMMARY_video} emscripten"
  25493. fi
  25494. if test x$enable_audio = xyes; then
  25495. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25496. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25497. have_audio=yes
  25498. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25499. fi
  25500. CheckVisibilityHidden
  25501. CheckWerror
  25502. CheckDeclarationAfterStatement
  25503. CheckDummyVideo
  25504. CheckOffscreenVideo
  25505. CheckDiskAudio
  25506. CheckDummyAudio
  25507. CheckPTHREAD
  25508. CheckDLOPEN
  25509. CheckClockGettime
  25510. CheckEmscriptenGLES
  25511. # Set up files for the misc library
  25512. if test x$enable_misc = xyes; then
  25513. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25514. have_misc=yes
  25515. fi
  25516. # Set up files for the power library
  25517. if test x$enable_power = xyes; then
  25518. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25519. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25520. have_power=yes
  25521. fi
  25522. # Set up files for the joystick library
  25523. if test x$enable_joystick = xyes; then
  25524. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25525. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25526. have_joystick=yes
  25527. fi
  25528. # Set up files for the filesystem library
  25529. if test x$enable_filesystem = xyes; then
  25530. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25531. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25532. have_filesystem=yes
  25533. fi
  25534. # Set up files for the timer library
  25535. if test x$enable_timers = xyes; then
  25536. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25537. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25538. have_timers=yes
  25539. fi
  25540. # Set up files for the locale library
  25541. if test x$enable_locale = xyes; then
  25542. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25543. have_locale=yes
  25544. fi
  25545. ;;
  25546. *-*-riscos*)
  25547. ARCH=riscos
  25548. CheckVisibilityHidden
  25549. CheckWerror
  25550. CheckDeclarationAfterStatement
  25551. CheckDummyVideo
  25552. CheckOffscreenVideo
  25553. CheckDiskAudio
  25554. CheckDummyAudio
  25555. CheckDLOPEN
  25556. CheckO_CLOEXEC
  25557. CheckOSS
  25558. CheckPTHREAD
  25559. CheckClockGettime
  25560. # Set up files for the misc library
  25561. if test x$enable_misc = xyes; then
  25562. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25563. have_misc=yes
  25564. fi
  25565. # Set up files for the video library
  25566. if test x$enable_video = xyes; then
  25567. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25568. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25569. have_video=yes
  25570. SUMMARY_video="${SUMMARY_video} riscos"
  25571. fi
  25572. # Set up files for the filesystem library
  25573. if test x$enable_filesystem = xyes; then
  25574. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25575. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25576. have_filesystem=yes
  25577. fi
  25578. # Set up files for the timer library
  25579. if test x$enable_timers = xyes; then
  25580. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25581. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25582. have_timers=yes
  25583. fi
  25584. ;;
  25585. *-*-os2*)
  25586. ARCH=os2
  25587. if test "$build" != "$host"; then # cross-compiling
  25588. # Default cross-compile location
  25589. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25590. else
  25591. # Look for the location of the tools and install there
  25592. if test "$BUILD_PREFIX" != ""; then
  25593. ac_default_prefix=$BUILD_PREFIX
  25594. fi
  25595. fi
  25596. enable_static=no # disable static builds
  25597. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25598. CheckOS2
  25599. CheckWerror
  25600. CheckDeclarationAfterStatement
  25601. CheckDummyVideo
  25602. CheckDiskAudio
  25603. CheckDummyAudio
  25604. CheckHIDAPI
  25605. # Set up the core platform files
  25606. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25607. if test x$enable_system_iconv = xyes; then
  25608. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25609. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25610. fi
  25611. fi
  25612. # Use the Unix locale APIs.
  25613. if test x$enable_locale = xyes; then
  25614. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25615. have_locale=yes
  25616. fi
  25617. # Set up files for the video library
  25618. if test x$enable_video = xyes; then
  25619. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25620. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25621. have_video=yes
  25622. SUMMARY_video="${SUMMARY_video} OS/2"
  25623. fi
  25624. # Set up files for the audio library
  25625. if test x$enable_audio = xyes; then
  25626. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25627. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25628. have_audio=yes
  25629. SUMMARY_audio="${SUMMARY_audio} OS/2"
  25630. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25631. fi
  25632. # Set up files for the thread library
  25633. if test x$enable_threads = xyes; then
  25634. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25635. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25636. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25637. have_threads=yes
  25638. fi
  25639. # Set up files for the timer library
  25640. if test x$enable_timers = xyes; then
  25641. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25642. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25643. have_timers=yes
  25644. fi
  25645. # Set up files for the shared object loading library
  25646. if test x$enable_loadso = xyes; then
  25647. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25648. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25649. have_loadso=yes
  25650. fi
  25651. # Set up files for the filesystem library
  25652. if test x$enable_filesystem = xyes; then
  25653. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25654. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25655. have_filesystem=yes
  25656. fi
  25657. # Set up files for the joystick library
  25658. if test x$enable_joystick = xyes; then
  25659. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25660. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25661. have_joystick=yes
  25662. fi
  25663. ;;
  25664. *)
  25665. as_fn_error $? "
  25666. *** Unsupported host: Please add to configure.ac
  25667. " "$LINENO" 5
  25668. ;;
  25669. esac
  25670. CheckVirtualJoystick
  25671. # Check whether to install sdl2-config
  25672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25673. printf %s "checking whether to install sdl2-config... " >&6; }
  25674. # Check whether --enable-sdl2-config was given.
  25675. if test ${enable_sdl2_config+y}
  25676. then :
  25677. enableval=$enable_sdl2_config; case "${enableval}" in
  25678. yes) enable_sdl2_config="TRUE" ;;
  25679. no) enable_sdl2_config="FALSE" ;;
  25680. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25681. esac
  25682. else $as_nop
  25683. enable_sdl2_config="TRUE"
  25684. fi
  25685. if test "$enable_sdl2_config" = "TRUE"; then
  25686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25687. printf "%s\n" "yes" >&6; }
  25688. else
  25689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25690. printf "%s\n" "no" >&6; }
  25691. fi
  25692. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25693. # Check whether --enable-vendor-info was given.
  25694. if test ${enable_vendor_info+y}
  25695. then :
  25696. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25697. else $as_nop
  25698. enable_vendor_info=
  25699. fi
  25700. if test "$enable_vendor_info" = no
  25701. then :
  25702. enable_vendor_info=
  25703. fi
  25704. SDL_VENDOR_INFO=$enable_vendor_info
  25705. # Verify that we have all the platform specific files we need
  25706. if test x$have_audio != xyes; then
  25707. if test x$enable_audio = xyes; then
  25708. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25709. fi
  25710. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25711. fi
  25712. if test x$have_video != xyes; then
  25713. if test x$enable_video = xyes; then
  25714. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25715. fi
  25716. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25717. fi
  25718. if test x$have_misc != xyes; then
  25719. if test x$enable_misc = xyes; then
  25720. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25721. fi
  25722. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25723. fi
  25724. if test x$have_locale != xyes; then
  25725. if test x$enable_locale = xyes; then
  25726. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25727. fi
  25728. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25729. fi
  25730. if test x$have_joystick != xyes; then
  25731. if test x$enable_joystick = xyes; then
  25732. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25733. fi
  25734. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25735. fi
  25736. if test x$have_haptic != xyes; then
  25737. if test x$enable_haptic = xyes; then
  25738. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25739. fi
  25740. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25741. fi
  25742. if test x$have_sensor != xyes; then
  25743. if test x$enable_sensor = xyes; then
  25744. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25745. fi
  25746. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25747. fi
  25748. if test x$have_threads != xyes; then
  25749. if test x$enable_threads = xyes; then
  25750. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25751. fi
  25752. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25753. fi
  25754. if test x$have_timers != xyes; then
  25755. if test x$enable_timers = xyes; then
  25756. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25757. fi
  25758. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25759. fi
  25760. if test x$have_filesystem != xyes; then
  25761. if test x$enable_filesystem = xyes; then
  25762. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25763. fi
  25764. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25765. fi
  25766. if test x$have_loadso != xyes; then
  25767. if test x$enable_loadso = xyes; then
  25768. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25769. fi
  25770. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25771. fi
  25772. if test x$SDLMAIN_SOURCES = x; then
  25773. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25774. fi
  25775. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25776. if test x$video_wayland = xyes; then
  25777. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25778. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25779. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25780. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25781. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25782. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25783. echo ;\
  25784. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25785. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25786. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25787. echo ;\
  25788. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25789. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25790. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25791. echo ;\
  25792. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25793. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25794. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25795. done ;\
  25796. echo ;\
  25797. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25798. fi
  25799. OBJECTS=`echo $SOURCES`
  25800. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25801. for EXT in asm cc m c S; do
  25802. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25803. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25804. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25805. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25806. done
  25807. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25808. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25809. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25810. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25811. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25812. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25813. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25814. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25815. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25816. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25817. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25818. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25819. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25820. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25821. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25822. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25823. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25824. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25825. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25826. # Set runtime shared library paths as needed
  25827. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25828. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25829. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25831. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25832. have_enable_new_dtags=no
  25833. save_LDFLAGS="$LDFLAGS"
  25834. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25836. /* end confdefs.h. */
  25837. int
  25838. main (void)
  25839. {
  25840. ;
  25841. return 0;
  25842. }
  25843. _ACEOF
  25844. if ac_fn_c_try_link "$LINENO"
  25845. then :
  25846. have_enable_new_dtags=yes
  25847. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25848. fi
  25849. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25850. conftest$ac_exeext conftest.$ac_ext
  25851. LDFLAGS="$save_LDFLAGS"
  25852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25853. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25854. fi
  25855. if test $ARCH = solaris; then
  25856. SDL_RLD_FLAGS="-R\${libdir}"
  25857. fi
  25858. else
  25859. SDL_RLD_FLAGS=""
  25860. fi
  25861. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25862. pkg_cmakedir='$libdir/cmake/SDL2'
  25863. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25864. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25865. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25866. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25867. _lcl_receval="$_lcl_from"
  25868. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25869. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25870. _lcl_receval_old=''
  25871. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25872. _lcl_receval_old="$_lcl_receval"
  25873. eval _lcl_receval="\"$_lcl_receval\""
  25874. done
  25875. echo "$_lcl_receval")`
  25876. _lcl_receval="$_lcl_to"
  25877. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25878. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25879. _lcl_receval_old=''
  25880. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25881. _lcl_receval_old="$_lcl_receval"
  25882. eval _lcl_receval="\"$_lcl_receval\""
  25883. done
  25884. echo "$_lcl_receval")`
  25885. _lcl_notation="$_lcl_from$_lcl_to"
  25886. case ":$_lcl_from:" in
  25887. # change empty paths to '.'
  25888. ::) _lcl_from='.' ;;
  25889. # strip trailing slashes
  25890. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25891. :*:) ;;
  25892. esac
  25893. # squeeze repeated slashes
  25894. case '/' in
  25895. # if the path contains any backslashes, turn slashes into backslashes
  25896. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25897. # if the path contains slashes, also turn backslashes into slashes
  25898. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25899. esac
  25900. case ":$_lcl_to:" in
  25901. # change empty paths to '.'
  25902. ::) _lcl_to='.' ;;
  25903. # strip trailing slashes
  25904. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25905. :*:) ;;
  25906. esac
  25907. # squeeze repeated slashes
  25908. case '/' in
  25909. # if the path contains any backslashes, turn slashes into backslashes
  25910. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25911. # if the path contains slashes, also turn backslashes into slashes
  25912. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25913. esac
  25914. _lcl_common_prefix=''
  25915. _lcl_second_prefix_match=''
  25916. while test "$_lcl_second_prefix_match" != 0; do
  25917. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25918. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25919. if test "$_lcl_second_prefix_match" != 0; then
  25920. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25921. _lcl_common_prefix="$_lcl_first_prefix"
  25922. else
  25923. _lcl_second_prefix_match=0
  25924. fi
  25925. fi
  25926. done
  25927. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25928. _lcl_first_rel=''
  25929. _lcl_tmp='xxx'
  25930. while test "$_lcl_tmp" != ''; do
  25931. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25932. if test "$_lcl_first_suffix" != ''; then
  25933. _lcl_first_suffix="$_lcl_tmp"
  25934. _lcl_first_rel="../$_lcl_first_rel"
  25935. fi
  25936. done
  25937. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25938. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25939. case ":$_lcl_result_tmp:" in
  25940. # change empty paths to '.'
  25941. ::) _lcl_result_tmp='.' ;;
  25942. # strip trailing slashes
  25943. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25944. :*:) ;;
  25945. esac
  25946. # squeeze repeated slashes
  25947. case "$_lcl_notation" in
  25948. # if the path contains any backslashes, turn slashes into backslashes
  25949. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25950. # if the path contains slashes, also turn backslashes into slashes
  25951. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25952. esac
  25953. eval $_lcl_result_var='$_lcl_result_tmp'
  25954. done
  25955. PKGCONFIG_DEPENDS=""
  25956. if test x$enable_shared = xyes; then
  25957. PKGCONFIG_LIBS_PRIV="
  25958. Libs.private:"
  25959. ENABLE_SHARED_TRUE=
  25960. ENABLE_SHARED_FALSE="#"
  25961. else
  25962. PKGCONFIG_LIBS_PRIV=
  25963. ENABLE_SHARED_TRUE="#"
  25964. ENABLE_SHARED_FALSE=
  25965. fi
  25966. if test x$enable_static = xyes; then
  25967. ENABLE_STATIC_TRUE=
  25968. ENABLE_STATIC_FALSE="#"
  25969. else
  25970. ENABLE_STATIC_TRUE="#"
  25971. ENABLE_STATIC_FALSE=
  25972. fi
  25973. cat >Makefile.rules <<__EOF__
  25974. # Build rules for objects
  25975. -include \$(OBJECTS:.lo=.d)
  25976. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25977. $srcdir/src/SDL.c: update-revision
  25978. $DEPENDS
  25979. $VERSION_DEPENDS
  25980. $SDLMAIN_DEPENDS
  25981. $SDLTEST_DEPENDS
  25982. $WAYLAND_PROTOCOLS_DEPENDS
  25983. __EOF__
  25984. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25985. ac_config_commands="$ac_config_commands sdl2_config"
  25986. SUMMARY="SDL2 Configure Summary:\n"
  25987. if test x$enable_shared = xyes; then
  25988. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25989. fi
  25990. if test x$enable_static = xyes; then
  25991. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25992. fi
  25993. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25994. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25995. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25996. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25997. if test x$have_x = xyes; then
  25998. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25999. fi
  26000. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  26001. if test x$have_joystick_virtual = xyes; then
  26002. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  26003. else
  26004. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  26005. fi
  26006. if test x$have_samplerate_h_hdr = xyes; then
  26007. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  26008. else
  26009. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  26010. fi
  26011. if test x$have_libudev_h_hdr = xyes; then
  26012. SUMMARY="${SUMMARY}Using libudev : YES\n"
  26013. else
  26014. SUMMARY="${SUMMARY}Using libudev : NO\n"
  26015. fi
  26016. if test x$have_dbus_dbus_h_hdr = xyes; then
  26017. SUMMARY="${SUMMARY}Using dbus : YES\n"
  26018. else
  26019. SUMMARY="${SUMMARY}Using dbus : NO\n"
  26020. fi
  26021. if test x$enable_ime = xyes; then
  26022. SUMMARY="${SUMMARY}Using ime : YES\n"
  26023. else
  26024. SUMMARY="${SUMMARY}Using ime : NO\n"
  26025. fi
  26026. if test x$have_ibus_ibus_h_hdr = xyes; then
  26027. SUMMARY="${SUMMARY}Using ibus : YES\n"
  26028. else
  26029. SUMMARY="${SUMMARY}Using ibus : NO\n"
  26030. fi
  26031. if test x$have_fcitx = xyes; then
  26032. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  26033. else
  26034. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  26035. fi
  26036. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  26037. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  26038. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  26039. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26040. SUMMARY="${SUMMARY}configure script with:\n"
  26041. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  26042. fi
  26043. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  26044. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  26045. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  26046. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26047. SUMMARY="${SUMMARY}configure script with:\n"
  26048. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  26049. fi
  26050. ac_config_commands="$ac_config_commands summary"
  26051. cat >confcache <<\_ACEOF
  26052. # This file is a shell script that caches the results of configure
  26053. # tests run on this system so they can be shared between configure
  26054. # scripts and configure runs, see configure's option --config-cache.
  26055. # It is not useful on other systems. If it contains results you don't
  26056. # want to keep, you may remove or edit it.
  26057. #
  26058. # config.status only pays attention to the cache file if you give it
  26059. # the --recheck option to rerun configure.
  26060. #
  26061. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26062. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26063. # following values.
  26064. _ACEOF
  26065. # The following way of writing the cache mishandles newlines in values,
  26066. # but we know of no workaround that is simple, portable, and efficient.
  26067. # So, we kill variables containing newlines.
  26068. # Ultrix sh set writes to stderr and can't be redirected directly,
  26069. # and sets the high bit in the cache file unless we assign to the vars.
  26070. (
  26071. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26072. eval ac_val=\$$ac_var
  26073. case $ac_val in #(
  26074. *${as_nl}*)
  26075. case $ac_var in #(
  26076. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26077. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26078. esac
  26079. case $ac_var in #(
  26080. _ | IFS | as_nl) ;; #(
  26081. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26082. *) { eval $ac_var=; unset $ac_var;} ;;
  26083. esac ;;
  26084. esac
  26085. done
  26086. (set) 2>&1 |
  26087. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26088. *${as_nl}ac_space=\ *)
  26089. # `set' does not quote correctly, so add quotes: double-quote
  26090. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26091. sed -n \
  26092. "s/'/'\\\\''/g;
  26093. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26094. ;; #(
  26095. *)
  26096. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26097. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26098. ;;
  26099. esac |
  26100. sort
  26101. ) |
  26102. sed '
  26103. /^ac_cv_env_/b end
  26104. t clear
  26105. :clear
  26106. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  26107. t end
  26108. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26109. :end' >>confcache
  26110. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26111. if test -w "$cache_file"; then
  26112. if test "x$cache_file" != "x/dev/null"; then
  26113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26114. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  26115. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26116. cat confcache >"$cache_file"
  26117. else
  26118. case $cache_file in #(
  26119. */* | ?:*)
  26120. mv -f confcache "$cache_file"$$ &&
  26121. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26122. *)
  26123. mv -f confcache "$cache_file" ;;
  26124. esac
  26125. fi
  26126. fi
  26127. else
  26128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26129. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  26130. fi
  26131. fi
  26132. rm -f confcache
  26133. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26134. # Let make expand exec_prefix.
  26135. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26136. DEFS=-DHAVE_CONFIG_H
  26137. ac_libobjs=
  26138. ac_ltlibobjs=
  26139. U=
  26140. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26141. # 1. Remove the extension, and $U if already installed.
  26142. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26143. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  26144. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26145. # will be set to the directory where LIBOBJS objects are built.
  26146. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26147. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26148. done
  26149. LIBOBJS=$ac_libobjs
  26150. LTLIBOBJS=$ac_ltlibobjs
  26151. : "${CONFIG_STATUS=./config.status}"
  26152. ac_write_fail=0
  26153. ac_clean_files_save=$ac_clean_files
  26154. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26156. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  26157. as_write_fail=0
  26158. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26159. #! $SHELL
  26160. # Generated by $as_me.
  26161. # Run this file to recreate the current configuration.
  26162. # Compiler output produced by configure, useful for debugging
  26163. # configure, is in config.log if it exists.
  26164. debug=false
  26165. ac_cs_recheck=false
  26166. ac_cs_silent=false
  26167. SHELL=\${CONFIG_SHELL-$SHELL}
  26168. export SHELL
  26169. _ASEOF
  26170. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26171. ## -------------------- ##
  26172. ## M4sh Initialization. ##
  26173. ## -------------------- ##
  26174. # Be more Bourne compatible
  26175. DUALCASE=1; export DUALCASE # for MKS sh
  26176. as_nop=:
  26177. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  26178. then :
  26179. emulate sh
  26180. NULLCMD=:
  26181. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26182. # is contrary to our usage. Disable this feature.
  26183. alias -g '${1+"$@"}'='"$@"'
  26184. setopt NO_GLOB_SUBST
  26185. else $as_nop
  26186. case `(set -o) 2>/dev/null` in #(
  26187. *posix*) :
  26188. set -o posix ;; #(
  26189. *) :
  26190. ;;
  26191. esac
  26192. fi
  26193. # Reset variables that may have inherited troublesome values from
  26194. # the environment.
  26195. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  26196. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  26197. # side effect of setting IFS to empty, thus disabling word splitting.)
  26198. # Quoting is to prevent editors from complaining about space-tab.
  26199. as_nl='
  26200. '
  26201. export as_nl
  26202. IFS=" "" $as_nl"
  26203. PS1='$ '
  26204. PS2='> '
  26205. PS4='+ '
  26206. # Ensure predictable behavior from utilities with locale-dependent output.
  26207. LC_ALL=C
  26208. export LC_ALL
  26209. LANGUAGE=C
  26210. export LANGUAGE
  26211. # We cannot yet rely on "unset" to work, but we need these variables
  26212. # to be unset--not just set to an empty or harmless value--now, to
  26213. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26214. # also avoids known problems related to "unset" and subshell syntax
  26215. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26216. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26217. do eval test \${$as_var+y} \
  26218. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26219. done
  26220. # Ensure that fds 0, 1, and 2 are open.
  26221. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26222. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26223. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26224. # The user is always right.
  26225. if ${PATH_SEPARATOR+false} :; then
  26226. PATH_SEPARATOR=:
  26227. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26228. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26229. PATH_SEPARATOR=';'
  26230. }
  26231. fi
  26232. # Find who we are. Look in the path if we contain no directory separator.
  26233. as_myself=
  26234. case $0 in #((
  26235. *[\\/]* ) as_myself=$0 ;;
  26236. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26237. for as_dir in $PATH
  26238. do
  26239. IFS=$as_save_IFS
  26240. case $as_dir in #(((
  26241. '') as_dir=./ ;;
  26242. */) ;;
  26243. *) as_dir=$as_dir/ ;;
  26244. esac
  26245. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26246. done
  26247. IFS=$as_save_IFS
  26248. ;;
  26249. esac
  26250. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26251. # in which case we are not to be found in the path.
  26252. if test "x$as_myself" = x; then
  26253. as_myself=$0
  26254. fi
  26255. if test ! -f "$as_myself"; then
  26256. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26257. exit 1
  26258. fi
  26259. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26260. # ----------------------------------------
  26261. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26262. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26263. # script with STATUS, using 1 if that was 0.
  26264. as_fn_error ()
  26265. {
  26266. as_status=$1; test $as_status -eq 0 && as_status=1
  26267. if test "$4"; then
  26268. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26269. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26270. fi
  26271. printf "%s\n" "$as_me: error: $2" >&2
  26272. as_fn_exit $as_status
  26273. } # as_fn_error
  26274. # as_fn_set_status STATUS
  26275. # -----------------------
  26276. # Set $? to STATUS, without forking.
  26277. as_fn_set_status ()
  26278. {
  26279. return $1
  26280. } # as_fn_set_status
  26281. # as_fn_exit STATUS
  26282. # -----------------
  26283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26284. as_fn_exit ()
  26285. {
  26286. set +e
  26287. as_fn_set_status $1
  26288. exit $1
  26289. } # as_fn_exit
  26290. # as_fn_unset VAR
  26291. # ---------------
  26292. # Portably unset VAR.
  26293. as_fn_unset ()
  26294. {
  26295. { eval $1=; unset $1;}
  26296. }
  26297. as_unset=as_fn_unset
  26298. # as_fn_append VAR VALUE
  26299. # ----------------------
  26300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26301. # advantage of any shell optimizations that allow amortized linear growth over
  26302. # repeated appends, instead of the typical quadratic growth present in naive
  26303. # implementations.
  26304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26305. then :
  26306. eval 'as_fn_append ()
  26307. {
  26308. eval $1+=\$2
  26309. }'
  26310. else $as_nop
  26311. as_fn_append ()
  26312. {
  26313. eval $1=\$$1\$2
  26314. }
  26315. fi # as_fn_append
  26316. # as_fn_arith ARG...
  26317. # ------------------
  26318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26320. # must be portable across $(()) and expr.
  26321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26322. then :
  26323. eval 'as_fn_arith ()
  26324. {
  26325. as_val=$(( $* ))
  26326. }'
  26327. else $as_nop
  26328. as_fn_arith ()
  26329. {
  26330. as_val=`expr "$@" || test $? -eq 1`
  26331. }
  26332. fi # as_fn_arith
  26333. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26334. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26335. as_expr=expr
  26336. else
  26337. as_expr=false
  26338. fi
  26339. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26340. as_basename=basename
  26341. else
  26342. as_basename=false
  26343. fi
  26344. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26345. as_dirname=dirname
  26346. else
  26347. as_dirname=false
  26348. fi
  26349. as_me=`$as_basename -- "$0" ||
  26350. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26351. X"$0" : 'X\(//\)$' \| \
  26352. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26353. printf "%s\n" X/"$0" |
  26354. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26355. s//\1/
  26356. q
  26357. }
  26358. /^X\/\(\/\/\)$/{
  26359. s//\1/
  26360. q
  26361. }
  26362. /^X\/\(\/\).*/{
  26363. s//\1/
  26364. q
  26365. }
  26366. s/.*/./; q'`
  26367. # Avoid depending upon Character Ranges.
  26368. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26369. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26370. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26371. as_cr_digits='0123456789'
  26372. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26373. # Determine whether it's possible to make 'echo' print without a newline.
  26374. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26375. # for compatibility with existing Makefiles.
  26376. ECHO_C= ECHO_N= ECHO_T=
  26377. case `echo -n x` in #(((((
  26378. -n*)
  26379. case `echo 'xy\c'` in
  26380. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26381. xy) ECHO_C='\c';;
  26382. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26383. ECHO_T=' ';;
  26384. esac;;
  26385. *)
  26386. ECHO_N='-n';;
  26387. esac
  26388. # For backward compatibility with old third-party macros, we provide
  26389. # the shell variables $as_echo and $as_echo_n. New code should use
  26390. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26391. as_echo='printf %s\n'
  26392. as_echo_n='printf %s'
  26393. rm -f conf$$ conf$$.exe conf$$.file
  26394. if test -d conf$$.dir; then
  26395. rm -f conf$$.dir/conf$$.file
  26396. else
  26397. rm -f conf$$.dir
  26398. mkdir conf$$.dir 2>/dev/null
  26399. fi
  26400. if (echo >conf$$.file) 2>/dev/null; then
  26401. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26402. as_ln_s='ln -s'
  26403. # ... but there are two gotchas:
  26404. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26405. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26406. # In both cases, we have to default to `cp -pR'.
  26407. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26408. as_ln_s='cp -pR'
  26409. elif ln conf$$.file conf$$ 2>/dev/null; then
  26410. as_ln_s=ln
  26411. else
  26412. as_ln_s='cp -pR'
  26413. fi
  26414. else
  26415. as_ln_s='cp -pR'
  26416. fi
  26417. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26418. rmdir conf$$.dir 2>/dev/null
  26419. # as_fn_mkdir_p
  26420. # -------------
  26421. # Create "$as_dir" as a directory, including parents if necessary.
  26422. as_fn_mkdir_p ()
  26423. {
  26424. case $as_dir in #(
  26425. -*) as_dir=./$as_dir;;
  26426. esac
  26427. test -d "$as_dir" || eval $as_mkdir_p || {
  26428. as_dirs=
  26429. while :; do
  26430. case $as_dir in #(
  26431. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26432. *) as_qdir=$as_dir;;
  26433. esac
  26434. as_dirs="'$as_qdir' $as_dirs"
  26435. as_dir=`$as_dirname -- "$as_dir" ||
  26436. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26437. X"$as_dir" : 'X\(//\)[^/]' \| \
  26438. X"$as_dir" : 'X\(//\)$' \| \
  26439. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26440. printf "%s\n" X"$as_dir" |
  26441. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26442. s//\1/
  26443. q
  26444. }
  26445. /^X\(\/\/\)[^/].*/{
  26446. s//\1/
  26447. q
  26448. }
  26449. /^X\(\/\/\)$/{
  26450. s//\1/
  26451. q
  26452. }
  26453. /^X\(\/\).*/{
  26454. s//\1/
  26455. q
  26456. }
  26457. s/.*/./; q'`
  26458. test -d "$as_dir" && break
  26459. done
  26460. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26461. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26462. } # as_fn_mkdir_p
  26463. if mkdir -p . 2>/dev/null; then
  26464. as_mkdir_p='mkdir -p "$as_dir"'
  26465. else
  26466. test -d ./-p && rmdir ./-p
  26467. as_mkdir_p=false
  26468. fi
  26469. # as_fn_executable_p FILE
  26470. # -----------------------
  26471. # Test if FILE is an executable regular file.
  26472. as_fn_executable_p ()
  26473. {
  26474. test -f "$1" && test -x "$1"
  26475. } # as_fn_executable_p
  26476. as_test_x='test -x'
  26477. as_executable_p=as_fn_executable_p
  26478. # Sed expression to map a string onto a valid CPP name.
  26479. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26480. # Sed expression to map a string onto a valid variable name.
  26481. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26482. exec 6>&1
  26483. ## ----------------------------------- ##
  26484. ## Main body of $CONFIG_STATUS script. ##
  26485. ## ----------------------------------- ##
  26486. _ASEOF
  26487. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26488. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26489. # Save the log message, to keep $0 and so on meaningful, and to
  26490. # report actual input values of CONFIG_FILES etc. instead of their
  26491. # values after options handling.
  26492. ac_log="
  26493. This file was extended by $as_me, which was
  26494. generated by GNU Autoconf 2.71. Invocation command line was
  26495. CONFIG_FILES = $CONFIG_FILES
  26496. CONFIG_HEADERS = $CONFIG_HEADERS
  26497. CONFIG_LINKS = $CONFIG_LINKS
  26498. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26499. $ $0 $@
  26500. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26501. "
  26502. _ACEOF
  26503. case $ac_config_files in *"
  26504. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26505. esac
  26506. case $ac_config_headers in *"
  26507. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26508. esac
  26509. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26510. # Files that config.status was made for.
  26511. config_files="$ac_config_files"
  26512. config_headers="$ac_config_headers"
  26513. config_commands="$ac_config_commands"
  26514. _ACEOF
  26515. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26516. ac_cs_usage="\
  26517. \`$as_me' instantiates files and other configuration actions
  26518. from templates according to the current configuration. Unless the files
  26519. and actions are specified as TAGs, all are instantiated by default.
  26520. Usage: $0 [OPTION]... [TAG]...
  26521. -h, --help print this help, then exit
  26522. -V, --version print version number and configuration settings, then exit
  26523. --config print configuration, then exit
  26524. -q, --quiet, --silent
  26525. do not print progress messages
  26526. -d, --debug don't remove temporary files
  26527. --recheck update $as_me by reconfiguring in the same conditions
  26528. --file=FILE[:TEMPLATE]
  26529. instantiate the configuration file FILE
  26530. --header=FILE[:TEMPLATE]
  26531. instantiate the configuration header FILE
  26532. Configuration files:
  26533. $config_files
  26534. Configuration headers:
  26535. $config_headers
  26536. Configuration commands:
  26537. $config_commands
  26538. Report bugs to the package provider."
  26539. _ACEOF
  26540. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26541. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26542. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26543. ac_cs_config='$ac_cs_config_escaped'
  26544. ac_cs_version="\\
  26545. config.status
  26546. configured by $0, generated by GNU Autoconf 2.71,
  26547. with options \\"\$ac_cs_config\\"
  26548. Copyright (C) 2021 Free Software Foundation, Inc.
  26549. This config.status script is free software; the Free Software Foundation
  26550. gives unlimited permission to copy, distribute and modify it."
  26551. ac_pwd='$ac_pwd'
  26552. srcdir='$srcdir'
  26553. INSTALL='$INSTALL'
  26554. AWK='$AWK'
  26555. test -n "\$AWK" || AWK=awk
  26556. _ACEOF
  26557. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26558. # The default lists apply if the user does not specify any file.
  26559. ac_need_defaults=:
  26560. while test $# != 0
  26561. do
  26562. case $1 in
  26563. --*=?*)
  26564. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26565. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26566. ac_shift=:
  26567. ;;
  26568. --*=)
  26569. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26570. ac_optarg=
  26571. ac_shift=:
  26572. ;;
  26573. *)
  26574. ac_option=$1
  26575. ac_optarg=$2
  26576. ac_shift=shift
  26577. ;;
  26578. esac
  26579. case $ac_option in
  26580. # Handling of the options.
  26581. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26582. ac_cs_recheck=: ;;
  26583. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26584. printf "%s\n" "$ac_cs_version"; exit ;;
  26585. --config | --confi | --conf | --con | --co | --c )
  26586. printf "%s\n" "$ac_cs_config"; exit ;;
  26587. --debug | --debu | --deb | --de | --d | -d )
  26588. debug=: ;;
  26589. --file | --fil | --fi | --f )
  26590. $ac_shift
  26591. case $ac_optarg in
  26592. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26593. '') as_fn_error $? "missing file argument" ;;
  26594. esac
  26595. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26596. ac_need_defaults=false;;
  26597. --header | --heade | --head | --hea )
  26598. $ac_shift
  26599. case $ac_optarg in
  26600. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26601. esac
  26602. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26603. ac_need_defaults=false;;
  26604. --he | --h)
  26605. # Conflict between --help and --header
  26606. as_fn_error $? "ambiguous option: \`$1'
  26607. Try \`$0 --help' for more information.";;
  26608. --help | --hel | -h )
  26609. printf "%s\n" "$ac_cs_usage"; exit ;;
  26610. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26611. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26612. ac_cs_silent=: ;;
  26613. # This is an error.
  26614. -*) as_fn_error $? "unrecognized option: \`$1'
  26615. Try \`$0 --help' for more information." ;;
  26616. *) as_fn_append ac_config_targets " $1"
  26617. ac_need_defaults=false ;;
  26618. esac
  26619. shift
  26620. done
  26621. ac_configure_extra_args=
  26622. if $ac_cs_silent; then
  26623. exec 6>/dev/null
  26624. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26625. fi
  26626. _ACEOF
  26627. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26628. if \$ac_cs_recheck; then
  26629. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26630. shift
  26631. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26632. CONFIG_SHELL='$SHELL'
  26633. export CONFIG_SHELL
  26634. exec "\$@"
  26635. fi
  26636. _ACEOF
  26637. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26638. exec 5>>config.log
  26639. {
  26640. echo
  26641. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26642. ## Running $as_me. ##
  26643. _ASBOX
  26644. printf "%s\n" "$ac_log"
  26645. } >&5
  26646. _ACEOF
  26647. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26648. #
  26649. # INIT-COMMANDS
  26650. #
  26651. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26652. # if CDPATH is set.
  26653. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26654. sed_quote_subst='$sed_quote_subst'
  26655. double_quote_subst='$double_quote_subst'
  26656. delay_variable_subst='$delay_variable_subst'
  26657. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26658. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26659. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26660. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26661. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26662. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26663. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26664. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26665. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26666. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26667. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26668. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26669. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26670. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26671. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26672. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26673. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26674. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26675. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26676. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26677. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26678. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26679. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26680. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26681. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26682. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26683. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26684. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26685. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26686. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26687. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26688. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26689. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26690. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26691. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26692. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26693. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26694. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26695. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26696. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26697. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26698. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26699. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26700. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26701. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26702. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26703. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26704. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26705. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26706. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26707. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26708. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26709. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26710. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26711. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26712. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26713. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26714. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26715. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26716. 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"`'
  26717. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26718. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26719. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26720. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26721. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26722. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26723. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26724. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26725. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26726. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26727. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26728. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26729. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26730. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26731. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26732. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26733. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26734. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26735. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26736. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26737. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26738. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26739. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26740. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26741. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26742. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26743. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26744. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26745. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26746. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26747. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26748. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26749. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26750. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26751. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26752. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26753. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26754. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26755. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26756. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26757. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26758. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26759. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26760. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26761. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26762. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26763. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26764. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26765. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26766. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26767. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26768. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26769. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26770. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26771. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26772. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26773. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26774. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26775. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26776. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26777. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26778. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26779. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26780. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26781. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26782. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26783. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26784. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26785. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26786. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26787. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26788. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26789. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26790. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26791. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26792. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26793. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26794. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26795. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26796. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26797. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26798. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26799. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26800. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26801. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26802. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26803. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26804. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26805. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26806. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26807. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26808. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26809. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26810. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26811. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26812. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26813. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26814. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26815. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26816. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26817. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26818. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26819. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26820. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26821. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26822. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26823. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26824. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26825. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26826. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26827. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26828. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26829. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26830. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26831. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26832. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26833. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26834. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26835. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26836. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26837. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26838. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26839. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26840. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26841. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26842. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26843. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26844. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26845. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26846. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26847. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26848. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26849. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26850. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26851. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26852. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26853. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26854. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26855. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26856. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26857. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26858. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26859. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26860. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26861. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26862. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26863. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26864. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26865. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26866. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26867. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26868. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26869. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26870. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26871. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26872. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26873. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26874. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26875. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26876. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26877. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26878. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26879. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26880. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26881. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26882. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26883. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26884. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26885. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26886. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26887. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26888. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26889. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26890. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26891. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26892. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26893. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26894. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26895. LTCC='$LTCC'
  26896. LTCFLAGS='$LTCFLAGS'
  26897. compiler='$compiler_DEFAULT'
  26898. # A function that is used when there is no print builtin or printf.
  26899. func_fallback_echo ()
  26900. {
  26901. eval 'cat <<_LTECHO_EOF
  26902. \$1
  26903. _LTECHO_EOF'
  26904. }
  26905. # Quote evaled strings.
  26906. for var in AS \
  26907. DLLTOOL \
  26908. OBJDUMP \
  26909. SHELL \
  26910. ECHO \
  26911. PATH_SEPARATOR \
  26912. SED \
  26913. GREP \
  26914. EGREP \
  26915. FGREP \
  26916. LD \
  26917. NM \
  26918. LN_S \
  26919. lt_SP2NL \
  26920. lt_NL2SP \
  26921. reload_flag \
  26922. deplibs_check_method \
  26923. file_magic_cmd \
  26924. file_magic_glob \
  26925. want_nocaseglob \
  26926. sharedlib_from_linklib_cmd \
  26927. AR \
  26928. AR_FLAGS \
  26929. archiver_list_spec \
  26930. STRIP \
  26931. RANLIB \
  26932. CC \
  26933. CFLAGS \
  26934. compiler \
  26935. lt_cv_sys_global_symbol_pipe \
  26936. lt_cv_sys_global_symbol_to_cdecl \
  26937. lt_cv_sys_global_symbol_to_import \
  26938. lt_cv_sys_global_symbol_to_c_name_address \
  26939. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26940. lt_cv_nm_interface \
  26941. nm_file_list_spec \
  26942. lt_cv_truncate_bin \
  26943. lt_prog_compiler_no_builtin_flag \
  26944. lt_prog_compiler_pic \
  26945. lt_prog_compiler_wl \
  26946. lt_prog_compiler_static \
  26947. lt_cv_prog_compiler_c_o \
  26948. need_locks \
  26949. MANIFEST_TOOL \
  26950. DSYMUTIL \
  26951. NMEDIT \
  26952. LIPO \
  26953. OTOOL \
  26954. OTOOL64 \
  26955. shrext_cmds \
  26956. export_dynamic_flag_spec \
  26957. whole_archive_flag_spec \
  26958. compiler_needs_object \
  26959. with_gnu_ld \
  26960. allow_undefined_flag \
  26961. no_undefined_flag \
  26962. hardcode_libdir_flag_spec \
  26963. hardcode_libdir_separator \
  26964. exclude_expsyms \
  26965. include_expsyms \
  26966. file_list_spec \
  26967. variables_saved_for_relink \
  26968. libname_spec \
  26969. library_names_spec \
  26970. soname_spec \
  26971. install_override_mode \
  26972. finish_eval \
  26973. old_striplib \
  26974. striplib \
  26975. compiler_lib_search_dirs \
  26976. predep_objects \
  26977. postdep_objects \
  26978. predeps \
  26979. postdeps \
  26980. compiler_lib_search_path \
  26981. LD_RC \
  26982. LD_CXX \
  26983. reload_flag_RC \
  26984. reload_flag_CXX \
  26985. compiler_RC \
  26986. compiler_CXX \
  26987. lt_prog_compiler_no_builtin_flag_RC \
  26988. lt_prog_compiler_no_builtin_flag_CXX \
  26989. lt_prog_compiler_pic_RC \
  26990. lt_prog_compiler_pic_CXX \
  26991. lt_prog_compiler_wl_RC \
  26992. lt_prog_compiler_wl_CXX \
  26993. lt_prog_compiler_static_RC \
  26994. lt_prog_compiler_static_CXX \
  26995. lt_cv_prog_compiler_c_o_RC \
  26996. lt_cv_prog_compiler_c_o_CXX \
  26997. export_dynamic_flag_spec_RC \
  26998. export_dynamic_flag_spec_CXX \
  26999. whole_archive_flag_spec_RC \
  27000. whole_archive_flag_spec_CXX \
  27001. compiler_needs_object_RC \
  27002. compiler_needs_object_CXX \
  27003. with_gnu_ld_RC \
  27004. with_gnu_ld_CXX \
  27005. allow_undefined_flag_RC \
  27006. allow_undefined_flag_CXX \
  27007. no_undefined_flag_RC \
  27008. no_undefined_flag_CXX \
  27009. hardcode_libdir_flag_spec_RC \
  27010. hardcode_libdir_flag_spec_CXX \
  27011. hardcode_libdir_separator_RC \
  27012. hardcode_libdir_separator_CXX \
  27013. exclude_expsyms_RC \
  27014. exclude_expsyms_CXX \
  27015. include_expsyms_RC \
  27016. include_expsyms_CXX \
  27017. file_list_spec_RC \
  27018. file_list_spec_CXX \
  27019. compiler_lib_search_dirs_RC \
  27020. compiler_lib_search_dirs_CXX \
  27021. predep_objects_RC \
  27022. predep_objects_CXX \
  27023. postdep_objects_RC \
  27024. postdep_objects_CXX \
  27025. predeps_RC \
  27026. predeps_CXX \
  27027. postdeps_RC \
  27028. postdeps_CXX \
  27029. compiler_lib_search_path_RC \
  27030. compiler_lib_search_path_CXX; do
  27031. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27032. *[\\\\\\\`\\"\\\$]*)
  27033. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27034. ;;
  27035. *)
  27036. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27037. ;;
  27038. esac
  27039. done
  27040. # Double-quote double-evaled strings.
  27041. for var in reload_cmds \
  27042. old_postinstall_cmds \
  27043. old_postuninstall_cmds \
  27044. old_archive_cmds \
  27045. extract_expsyms_cmds \
  27046. old_archive_from_new_cmds \
  27047. old_archive_from_expsyms_cmds \
  27048. archive_cmds \
  27049. archive_expsym_cmds \
  27050. module_cmds \
  27051. module_expsym_cmds \
  27052. export_symbols_cmds \
  27053. prelink_cmds \
  27054. postlink_cmds \
  27055. postinstall_cmds \
  27056. postuninstall_cmds \
  27057. finish_cmds \
  27058. sys_lib_search_path_spec \
  27059. configure_time_dlsearch_path \
  27060. configure_time_lt_sys_library_path \
  27061. reload_cmds_RC \
  27062. reload_cmds_CXX \
  27063. old_archive_cmds_RC \
  27064. old_archive_cmds_CXX \
  27065. old_archive_from_new_cmds_RC \
  27066. old_archive_from_new_cmds_CXX \
  27067. old_archive_from_expsyms_cmds_RC \
  27068. old_archive_from_expsyms_cmds_CXX \
  27069. archive_cmds_RC \
  27070. archive_cmds_CXX \
  27071. archive_expsym_cmds_RC \
  27072. archive_expsym_cmds_CXX \
  27073. module_cmds_RC \
  27074. module_cmds_CXX \
  27075. module_expsym_cmds_RC \
  27076. module_expsym_cmds_CXX \
  27077. export_symbols_cmds_RC \
  27078. export_symbols_cmds_CXX \
  27079. prelink_cmds_RC \
  27080. prelink_cmds_CXX \
  27081. postlink_cmds_RC \
  27082. postlink_cmds_CXX; do
  27083. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27084. *[\\\\\\\`\\"\\\$]*)
  27085. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27086. ;;
  27087. *)
  27088. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27089. ;;
  27090. esac
  27091. done
  27092. ac_aux_dir='$ac_aux_dir'
  27093. # See if we are running on zsh, and set the options that allow our
  27094. # commands through without removal of \ escapes INIT.
  27095. if test -n "\${ZSH_VERSION+set}"; then
  27096. setopt NO_GLOB_SUBST
  27097. fi
  27098. PACKAGE='$PACKAGE'
  27099. VERSION='$VERSION'
  27100. RM='$RM'
  27101. ofile='$ofile'
  27102. SUMMARY="$SUMMARY"
  27103. _ACEOF
  27104. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27105. # Handling of arguments.
  27106. for ac_config_target in $ac_config_targets
  27107. do
  27108. case $ac_config_target in
  27109. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  27110. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  27111. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  27112. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  27113. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  27114. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  27115. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  27116. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  27117. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  27118. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  27119. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27120. esac
  27121. done
  27122. # If the user did not use the arguments to specify the items to instantiate,
  27123. # then the envvar interface is used. Set only those that are not.
  27124. # We use the long form for the default assignment because of an extremely
  27125. # bizarre bug on SunOS 4.1.3.
  27126. if $ac_need_defaults; then
  27127. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  27128. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  27129. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  27130. fi
  27131. # Have a temporary directory for convenience. Make it in the build tree
  27132. # simply because there is no reason against having it here, and in addition,
  27133. # creating and moving files from /tmp can sometimes cause problems.
  27134. # Hook for its removal unless debugging.
  27135. # Note that there is a small window in which the directory will not be cleaned:
  27136. # after its creation but before its name has been assigned to `$tmp'.
  27137. $debug ||
  27138. {
  27139. tmp= ac_tmp=
  27140. trap 'exit_status=$?
  27141. : "${ac_tmp:=$tmp}"
  27142. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27143. ' 0
  27144. trap 'as_fn_exit 1' 1 2 13 15
  27145. }
  27146. # Create a (secure) tmp directory for tmp files.
  27147. {
  27148. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27149. test -d "$tmp"
  27150. } ||
  27151. {
  27152. tmp=./conf$$-$RANDOM
  27153. (umask 077 && mkdir "$tmp")
  27154. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27155. ac_tmp=$tmp
  27156. # Set up the scripts for CONFIG_FILES section.
  27157. # No need to generate them if there are no CONFIG_FILES.
  27158. # This happens for instance with `./config.status config.h'.
  27159. if test -n "$CONFIG_FILES"; then
  27160. ac_cr=`echo X | tr X '\015'`
  27161. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27162. # But we know of no other shell where ac_cr would be empty at this
  27163. # point, so we can use a bashism as a fallback.
  27164. if test "x$ac_cr" = x; then
  27165. eval ac_cr=\$\'\\r\'
  27166. fi
  27167. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27168. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27169. ac_cs_awk_cr='\\r'
  27170. else
  27171. ac_cs_awk_cr=$ac_cr
  27172. fi
  27173. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27174. _ACEOF
  27175. {
  27176. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27177. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27178. echo "_ACEOF"
  27179. } >conf$$subs.sh ||
  27180. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27181. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27182. ac_delim='%!_!# '
  27183. for ac_last_try in false false false false false :; do
  27184. . ./conf$$subs.sh ||
  27185. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27186. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27187. if test $ac_delim_n = $ac_delim_num; then
  27188. break
  27189. elif $ac_last_try; then
  27190. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27191. else
  27192. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27193. fi
  27194. done
  27195. rm -f conf$$subs.sh
  27196. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27197. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27198. _ACEOF
  27199. sed -n '
  27200. h
  27201. s/^/S["/; s/!.*/"]=/
  27202. p
  27203. g
  27204. s/^[^!]*!//
  27205. :repl
  27206. t repl
  27207. s/'"$ac_delim"'$//
  27208. t delim
  27209. :nl
  27210. h
  27211. s/\(.\{148\}\)..*/\1/
  27212. t more1
  27213. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27214. p
  27215. n
  27216. b repl
  27217. :more1
  27218. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27219. p
  27220. g
  27221. s/.\{148\}//
  27222. t nl
  27223. :delim
  27224. h
  27225. s/\(.\{148\}\)..*/\1/
  27226. t more2
  27227. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27228. p
  27229. b
  27230. :more2
  27231. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27232. p
  27233. g
  27234. s/.\{148\}//
  27235. t delim
  27236. ' <conf$$subs.awk | sed '
  27237. /^[^""]/{
  27238. N
  27239. s/\n//
  27240. }
  27241. ' >>$CONFIG_STATUS || ac_write_fail=1
  27242. rm -f conf$$subs.awk
  27243. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27244. _ACAWK
  27245. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27246. for (key in S) S_is_set[key] = 1
  27247. FS = ""
  27248. }
  27249. {
  27250. line = $ 0
  27251. nfields = split(line, field, "@")
  27252. substed = 0
  27253. len = length(field[1])
  27254. for (i = 2; i < nfields; i++) {
  27255. key = field[i]
  27256. keylen = length(key)
  27257. if (S_is_set[key]) {
  27258. value = S[key]
  27259. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27260. len += length(value) + length(field[++i])
  27261. substed = 1
  27262. } else
  27263. len += 1 + keylen
  27264. }
  27265. print line
  27266. }
  27267. _ACAWK
  27268. _ACEOF
  27269. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27270. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27271. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27272. else
  27273. cat
  27274. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27275. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27276. _ACEOF
  27277. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27278. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27279. # trailing colons and then remove the whole line if VPATH becomes empty
  27280. # (actually we leave an empty line to preserve line numbers).
  27281. if test "x$srcdir" = x.; then
  27282. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27283. h
  27284. s///
  27285. s/^/:/
  27286. s/[ ]*$/:/
  27287. s/:\$(srcdir):/:/g
  27288. s/:\${srcdir}:/:/g
  27289. s/:@srcdir@:/:/g
  27290. s/^:*//
  27291. s/:*$//
  27292. x
  27293. s/\(=[ ]*\).*/\1/
  27294. G
  27295. s/\n//
  27296. s/^[^=]*=[ ]*$//
  27297. }'
  27298. fi
  27299. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27300. fi # test -n "$CONFIG_FILES"
  27301. # Set up the scripts for CONFIG_HEADERS section.
  27302. # No need to generate them if there are no CONFIG_HEADERS.
  27303. # This happens for instance with `./config.status Makefile'.
  27304. if test -n "$CONFIG_HEADERS"; then
  27305. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27306. BEGIN {
  27307. _ACEOF
  27308. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27309. # here-document in config.status, that substitutes the proper values into
  27310. # config.h.in to produce config.h.
  27311. # Create a delimiter string that does not exist in confdefs.h, to ease
  27312. # handling of long lines.
  27313. ac_delim='%!_!# '
  27314. for ac_last_try in false false :; do
  27315. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27316. if test -z "$ac_tt"; then
  27317. break
  27318. elif $ac_last_try; then
  27319. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27320. else
  27321. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27322. fi
  27323. done
  27324. # For the awk script, D is an array of macro values keyed by name,
  27325. # likewise P contains macro parameters if any. Preserve backslash
  27326. # newline sequences.
  27327. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27328. sed -n '
  27329. s/.\{148\}/&'"$ac_delim"'/g
  27330. t rset
  27331. :rset
  27332. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27333. t def
  27334. d
  27335. :def
  27336. s/\\$//
  27337. t bsnl
  27338. s/["\\]/\\&/g
  27339. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27340. D["\1"]=" \3"/p
  27341. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27342. d
  27343. :bsnl
  27344. s/["\\]/\\&/g
  27345. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27346. D["\1"]=" \3\\\\\\n"\\/p
  27347. t cont
  27348. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27349. t cont
  27350. d
  27351. :cont
  27352. n
  27353. s/.\{148\}/&'"$ac_delim"'/g
  27354. t clear
  27355. :clear
  27356. s/\\$//
  27357. t bsnlc
  27358. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27359. d
  27360. :bsnlc
  27361. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27362. b cont
  27363. ' <confdefs.h | sed '
  27364. s/'"$ac_delim"'/"\\\
  27365. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27366. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27367. for (key in D) D_is_set[key] = 1
  27368. FS = ""
  27369. }
  27370. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27371. line = \$ 0
  27372. split(line, arg, " ")
  27373. if (arg[1] == "#") {
  27374. defundef = arg[2]
  27375. mac1 = arg[3]
  27376. } else {
  27377. defundef = substr(arg[1], 2)
  27378. mac1 = arg[2]
  27379. }
  27380. split(mac1, mac2, "(") #)
  27381. macro = mac2[1]
  27382. prefix = substr(line, 1, index(line, defundef) - 1)
  27383. if (D_is_set[macro]) {
  27384. # Preserve the white space surrounding the "#".
  27385. print prefix "define", macro P[macro] D[macro]
  27386. next
  27387. } else {
  27388. # Replace #undef with comments. This is necessary, for example,
  27389. # in the case of _POSIX_SOURCE, which is predefined and required
  27390. # on some systems where configure will not decide to define it.
  27391. if (defundef == "undef") {
  27392. print "/*", prefix defundef, macro, "*/"
  27393. next
  27394. }
  27395. }
  27396. }
  27397. { print }
  27398. _ACAWK
  27399. _ACEOF
  27400. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27401. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27402. fi # test -n "$CONFIG_HEADERS"
  27403. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27404. shift
  27405. for ac_tag
  27406. do
  27407. case $ac_tag in
  27408. :[FHLC]) ac_mode=$ac_tag; continue;;
  27409. esac
  27410. case $ac_mode$ac_tag in
  27411. :[FHL]*:*);;
  27412. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27413. :[FH]-) ac_tag=-:-;;
  27414. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27415. esac
  27416. ac_save_IFS=$IFS
  27417. IFS=:
  27418. set x $ac_tag
  27419. IFS=$ac_save_IFS
  27420. shift
  27421. ac_file=$1
  27422. shift
  27423. case $ac_mode in
  27424. :L) ac_source=$1;;
  27425. :[FH])
  27426. ac_file_inputs=
  27427. for ac_f
  27428. do
  27429. case $ac_f in
  27430. -) ac_f="$ac_tmp/stdin";;
  27431. *) # Look for the file first in the build tree, then in the source tree
  27432. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27433. # because $ac_f cannot contain `:'.
  27434. test -f "$ac_f" ||
  27435. case $ac_f in
  27436. [\\/$]*) false;;
  27437. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27438. esac ||
  27439. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27440. esac
  27441. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27442. as_fn_append ac_file_inputs " '$ac_f'"
  27443. done
  27444. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27445. # use $as_me), people would be surprised to read:
  27446. # /* config.h. Generated by config.status. */
  27447. configure_input='Generated from '`
  27448. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27449. `' by configure.'
  27450. if test x"$ac_file" != x-; then
  27451. configure_input="$ac_file. $configure_input"
  27452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27453. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27454. fi
  27455. # Neutralize special characters interpreted by sed in replacement strings.
  27456. case $configure_input in #(
  27457. *\&* | *\|* | *\\* )
  27458. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27459. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27460. *) ac_sed_conf_input=$configure_input;;
  27461. esac
  27462. case $ac_tag in
  27463. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27464. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27465. esac
  27466. ;;
  27467. esac
  27468. ac_dir=`$as_dirname -- "$ac_file" ||
  27469. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27470. X"$ac_file" : 'X\(//\)[^/]' \| \
  27471. X"$ac_file" : 'X\(//\)$' \| \
  27472. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27473. printf "%s\n" X"$ac_file" |
  27474. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27475. s//\1/
  27476. q
  27477. }
  27478. /^X\(\/\/\)[^/].*/{
  27479. s//\1/
  27480. q
  27481. }
  27482. /^X\(\/\/\)$/{
  27483. s//\1/
  27484. q
  27485. }
  27486. /^X\(\/\).*/{
  27487. s//\1/
  27488. q
  27489. }
  27490. s/.*/./; q'`
  27491. as_dir="$ac_dir"; as_fn_mkdir_p
  27492. ac_builddir=.
  27493. case "$ac_dir" in
  27494. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27495. *)
  27496. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27497. # A ".." for each directory in $ac_dir_suffix.
  27498. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27499. case $ac_top_builddir_sub in
  27500. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27501. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27502. esac ;;
  27503. esac
  27504. ac_abs_top_builddir=$ac_pwd
  27505. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27506. # for backward compatibility:
  27507. ac_top_builddir=$ac_top_build_prefix
  27508. case $srcdir in
  27509. .) # We are building in place.
  27510. ac_srcdir=.
  27511. ac_top_srcdir=$ac_top_builddir_sub
  27512. ac_abs_top_srcdir=$ac_pwd ;;
  27513. [\\/]* | ?:[\\/]* ) # Absolute name.
  27514. ac_srcdir=$srcdir$ac_dir_suffix;
  27515. ac_top_srcdir=$srcdir
  27516. ac_abs_top_srcdir=$srcdir ;;
  27517. *) # Relative name.
  27518. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27519. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27520. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27521. esac
  27522. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27523. case $ac_mode in
  27524. :F)
  27525. #
  27526. # CONFIG_FILE
  27527. #
  27528. case $INSTALL in
  27529. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27530. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27531. esac
  27532. _ACEOF
  27533. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27534. # If the template does not know about datarootdir, expand it.
  27535. # FIXME: This hack should be removed a few years after 2.60.
  27536. ac_datarootdir_hack=; ac_datarootdir_seen=
  27537. ac_sed_dataroot='
  27538. /datarootdir/ {
  27539. p
  27540. q
  27541. }
  27542. /@datadir@/p
  27543. /@docdir@/p
  27544. /@infodir@/p
  27545. /@localedir@/p
  27546. /@mandir@/p'
  27547. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27548. *datarootdir*) ac_datarootdir_seen=yes;;
  27549. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27551. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27552. _ACEOF
  27553. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27554. ac_datarootdir_hack='
  27555. s&@datadir@&$datadir&g
  27556. s&@docdir@&$docdir&g
  27557. s&@infodir@&$infodir&g
  27558. s&@localedir@&$localedir&g
  27559. s&@mandir@&$mandir&g
  27560. s&\\\${datarootdir}&$datarootdir&g' ;;
  27561. esac
  27562. _ACEOF
  27563. # Neutralize VPATH when `$srcdir' = `.'.
  27564. # Shell code in configure.ac might set extrasub.
  27565. # FIXME: do we really want to maintain this feature?
  27566. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27567. ac_sed_extra="$ac_vpsub
  27568. $extrasub
  27569. _ACEOF
  27570. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27571. :t
  27572. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27573. s|@configure_input@|$ac_sed_conf_input|;t t
  27574. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27575. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27576. s&@srcdir@&$ac_srcdir&;t t
  27577. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27578. s&@top_srcdir@&$ac_top_srcdir&;t t
  27579. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27580. s&@builddir@&$ac_builddir&;t t
  27581. s&@abs_builddir@&$ac_abs_builddir&;t t
  27582. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27583. s&@INSTALL@&$ac_INSTALL&;t t
  27584. $ac_datarootdir_hack
  27585. "
  27586. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27587. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27588. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27589. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27590. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27591. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27593. which seems to be undefined. Please make sure it is defined" >&5
  27594. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27595. which seems to be undefined. Please make sure it is defined" >&2;}
  27596. rm -f "$ac_tmp/stdin"
  27597. case $ac_file in
  27598. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27599. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27600. esac \
  27601. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27602. ;;
  27603. :H)
  27604. #
  27605. # CONFIG_HEADER
  27606. #
  27607. if test x"$ac_file" != x-; then
  27608. {
  27609. printf "%s\n" "/* $configure_input */" >&1 \
  27610. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27611. } >"$ac_tmp/config.h" \
  27612. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27613. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27615. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27616. else
  27617. rm -f "$ac_file"
  27618. mv "$ac_tmp/config.h" "$ac_file" \
  27619. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27620. fi
  27621. else
  27622. printf "%s\n" "/* $configure_input */" >&1 \
  27623. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27624. || as_fn_error $? "could not create -" "$LINENO" 5
  27625. fi
  27626. ;;
  27627. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27628. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27629. ;;
  27630. esac
  27631. case $ac_file$ac_mode in
  27632. "libtool":C)
  27633. # See if we are running on zsh, and set the options that allow our
  27634. # commands through without removal of \ escapes.
  27635. if test -n "${ZSH_VERSION+set}"; then
  27636. setopt NO_GLOB_SUBST
  27637. fi
  27638. cfgfile=${ofile}T
  27639. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27640. $RM "$cfgfile"
  27641. cat <<_LT_EOF >> "$cfgfile"
  27642. #! $SHELL
  27643. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27644. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27645. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27646. # Provide generalized library-building support services.
  27647. # Written by Gordon Matzigkeit, 1996
  27648. # Copyright (C) 2014 Free Software Foundation, Inc.
  27649. # This is free software; see the source for copying conditions. There is NO
  27650. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27651. # GNU Libtool is free software; you can redistribute it and/or modify
  27652. # it under the terms of the GNU General Public License as published by
  27653. # the Free Software Foundation; either version 2 of of the License, or
  27654. # (at your option) any later version.
  27655. #
  27656. # As a special exception to the GNU General Public License, if you
  27657. # distribute this file as part of a program or library that is built
  27658. # using GNU Libtool, you may include this file under the same
  27659. # distribution terms that you use for the rest of that program.
  27660. #
  27661. # GNU Libtool is distributed in the hope that it will be useful, but
  27662. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27663. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27664. # GNU General Public License for more details.
  27665. #
  27666. # You should have received a copy of the GNU General Public License
  27667. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27668. # The names of the tagged configurations supported by this script.
  27669. available_tags='RC CXX '
  27670. # Configured defaults for sys_lib_dlsearch_path munging.
  27671. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27672. # ### BEGIN LIBTOOL CONFIG
  27673. # Which release of libtool.m4 was used?
  27674. macro_version=$macro_version
  27675. macro_revision=$macro_revision
  27676. # Assembler program.
  27677. AS=$lt_AS
  27678. # DLL creation program.
  27679. DLLTOOL=$lt_DLLTOOL
  27680. # Object dumper program.
  27681. OBJDUMP=$lt_OBJDUMP
  27682. # Whether or not to build shared libraries.
  27683. build_libtool_libs=$enable_shared
  27684. # Whether or not to build static libraries.
  27685. build_old_libs=$enable_static
  27686. # What type of objects to build.
  27687. pic_mode=$pic_mode
  27688. # Whether or not to optimize for fast installation.
  27689. fast_install=$enable_fast_install
  27690. # Shared archive member basename,for filename based shared library versioning on AIX.
  27691. shared_archive_member_spec=$shared_archive_member_spec
  27692. # Shell to use when invoking shell scripts.
  27693. SHELL=$lt_SHELL
  27694. # An echo program that protects backslashes.
  27695. ECHO=$lt_ECHO
  27696. # The PATH separator for the build system.
  27697. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27698. # The host system.
  27699. host_alias=$host_alias
  27700. host=$host
  27701. host_os=$host_os
  27702. # The build system.
  27703. build_alias=$build_alias
  27704. build=$build
  27705. build_os=$build_os
  27706. # A sed program that does not truncate output.
  27707. SED=$lt_SED
  27708. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27709. Xsed="\$SED -e 1s/^X//"
  27710. # A grep program that handles long lines.
  27711. GREP=$lt_GREP
  27712. # An ERE matcher.
  27713. EGREP=$lt_EGREP
  27714. # A literal string matcher.
  27715. FGREP=$lt_FGREP
  27716. # A BSD- or MS-compatible name lister.
  27717. NM=$lt_NM
  27718. # Whether we need soft or hard links.
  27719. LN_S=$lt_LN_S
  27720. # What is the maximum length of a command?
  27721. max_cmd_len=$max_cmd_len
  27722. # Object file suffix (normally "o").
  27723. objext=$ac_objext
  27724. # Executable file suffix (normally "").
  27725. exeext=$exeext
  27726. # whether the shell understands "unset".
  27727. lt_unset=$lt_unset
  27728. # turn spaces into newlines.
  27729. SP2NL=$lt_lt_SP2NL
  27730. # turn newlines into spaces.
  27731. NL2SP=$lt_lt_NL2SP
  27732. # convert \$build file names to \$host format.
  27733. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27734. # convert \$build files to toolchain format.
  27735. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27736. # Method to check whether dependent libraries are shared objects.
  27737. deplibs_check_method=$lt_deplibs_check_method
  27738. # Command to use when deplibs_check_method = "file_magic".
  27739. file_magic_cmd=$lt_file_magic_cmd
  27740. # How to find potential files when deplibs_check_method = "file_magic".
  27741. file_magic_glob=$lt_file_magic_glob
  27742. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27743. want_nocaseglob=$lt_want_nocaseglob
  27744. # Command to associate shared and link libraries.
  27745. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27746. # The archiver.
  27747. AR=$lt_AR
  27748. # Flags to create an archive.
  27749. AR_FLAGS=$lt_AR_FLAGS
  27750. # How to feed a file listing to the archiver.
  27751. archiver_list_spec=$lt_archiver_list_spec
  27752. # A symbol stripping program.
  27753. STRIP=$lt_STRIP
  27754. # Commands used to install an old-style archive.
  27755. RANLIB=$lt_RANLIB
  27756. old_postinstall_cmds=$lt_old_postinstall_cmds
  27757. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27758. # Whether to use a lock for old archive extraction.
  27759. lock_old_archive_extraction=$lock_old_archive_extraction
  27760. # A C compiler.
  27761. LTCC=$lt_CC
  27762. # LTCC compiler flags.
  27763. LTCFLAGS=$lt_CFLAGS
  27764. # Take the output of nm and produce a listing of raw symbols and C names.
  27765. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27766. # Transform the output of nm in a proper C declaration.
  27767. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27768. # Transform the output of nm into a list of symbols to manually relocate.
  27769. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27770. # Transform the output of nm in a C name address pair.
  27771. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27772. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27773. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27774. # The name lister interface.
  27775. nm_interface=$lt_lt_cv_nm_interface
  27776. # Specify filename containing input files for \$NM.
  27777. nm_file_list_spec=$lt_nm_file_list_spec
  27778. # The root where to search for dependent libraries,and where our libraries should be installed.
  27779. lt_sysroot=$lt_sysroot
  27780. # Command to truncate a binary pipe.
  27781. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27782. # The name of the directory that contains temporary libtool files.
  27783. objdir=$objdir
  27784. # Used to examine libraries when file_magic_cmd begins with "file".
  27785. MAGIC_CMD=$MAGIC_CMD
  27786. # Must we lock files when doing compilation?
  27787. need_locks=$lt_need_locks
  27788. # Manifest tool.
  27789. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27790. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27791. DSYMUTIL=$lt_DSYMUTIL
  27792. # Tool to change global to local symbols on Mac OS X.
  27793. NMEDIT=$lt_NMEDIT
  27794. # Tool to manipulate fat objects and archives on Mac OS X.
  27795. LIPO=$lt_LIPO
  27796. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27797. OTOOL=$lt_OTOOL
  27798. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27799. OTOOL64=$lt_OTOOL64
  27800. # Old archive suffix (normally "a").
  27801. libext=$libext
  27802. # Shared library suffix (normally ".so").
  27803. shrext_cmds=$lt_shrext_cmds
  27804. # The commands to extract the exported symbol list from a shared archive.
  27805. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27806. # Variables whose values should be saved in libtool wrapper scripts and
  27807. # restored at link time.
  27808. variables_saved_for_relink=$lt_variables_saved_for_relink
  27809. # Do we need the "lib" prefix for modules?
  27810. need_lib_prefix=$need_lib_prefix
  27811. # Do we need a version for libraries?
  27812. need_version=$need_version
  27813. # Library versioning type.
  27814. version_type=$version_type
  27815. # Shared library runtime path variable.
  27816. runpath_var=$runpath_var
  27817. # Shared library path variable.
  27818. shlibpath_var=$shlibpath_var
  27819. # Is shlibpath searched before the hard-coded library search path?
  27820. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27821. # Format of library name prefix.
  27822. libname_spec=$lt_libname_spec
  27823. # List of archive names. First name is the real one, the rest are links.
  27824. # The last name is the one that the linker finds with -lNAME
  27825. library_names_spec=$lt_library_names_spec
  27826. # The coded name of the library, if different from the real name.
  27827. soname_spec=$lt_soname_spec
  27828. # Permission mode override for installation of shared libraries.
  27829. install_override_mode=$lt_install_override_mode
  27830. # Command to use after installation of a shared archive.
  27831. postinstall_cmds=$lt_postinstall_cmds
  27832. # Command to use after uninstallation of a shared archive.
  27833. postuninstall_cmds=$lt_postuninstall_cmds
  27834. # Commands used to finish a libtool library installation in a directory.
  27835. finish_cmds=$lt_finish_cmds
  27836. # As "finish_cmds", except a single script fragment to be evaled but
  27837. # not shown.
  27838. finish_eval=$lt_finish_eval
  27839. # Whether we should hardcode library paths into libraries.
  27840. hardcode_into_libs=$hardcode_into_libs
  27841. # Compile-time system search path for libraries.
  27842. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27843. # Detected run-time system search path for libraries.
  27844. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27845. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27846. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27847. # Whether dlopen is supported.
  27848. dlopen_support=$enable_dlopen
  27849. # Whether dlopen of programs is supported.
  27850. dlopen_self=$enable_dlopen_self
  27851. # Whether dlopen of statically linked programs is supported.
  27852. dlopen_self_static=$enable_dlopen_self_static
  27853. # Commands to strip libraries.
  27854. old_striplib=$lt_old_striplib
  27855. striplib=$lt_striplib
  27856. # The linker used to build libraries.
  27857. LD=$lt_LD
  27858. # How to create reloadable object files.
  27859. reload_flag=$lt_reload_flag
  27860. reload_cmds=$lt_reload_cmds
  27861. # Commands used to build an old-style archive.
  27862. old_archive_cmds=$lt_old_archive_cmds
  27863. # A language specific compiler.
  27864. CC=$lt_compiler
  27865. # Is the compiler the GNU compiler?
  27866. with_gcc=$GCC
  27867. # Compiler flag to turn off builtin functions.
  27868. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27869. # Additional compiler flags for building library objects.
  27870. pic_flag=$lt_lt_prog_compiler_pic
  27871. # How to pass a linker flag through the compiler.
  27872. wl=$lt_lt_prog_compiler_wl
  27873. # Compiler flag to prevent dynamic linking.
  27874. link_static_flag=$lt_lt_prog_compiler_static
  27875. # Does compiler simultaneously support -c and -o options?
  27876. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27877. # Whether or not to add -lc for building shared libraries.
  27878. build_libtool_need_lc=$archive_cmds_need_lc
  27879. # Whether or not to disallow shared libs when runtime libs are static.
  27880. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27881. # Compiler flag to allow reflexive dlopens.
  27882. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27883. # Compiler flag to generate shared objects directly from archives.
  27884. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27885. # Whether the compiler copes with passing no objects directly.
  27886. compiler_needs_object=$lt_compiler_needs_object
  27887. # Create an old-style archive from a shared archive.
  27888. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27889. # Create a temporary old-style archive to link instead of a shared archive.
  27890. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27891. # Commands used to build a shared archive.
  27892. archive_cmds=$lt_archive_cmds
  27893. archive_expsym_cmds=$lt_archive_expsym_cmds
  27894. # Commands used to build a loadable module if different from building
  27895. # a shared archive.
  27896. module_cmds=$lt_module_cmds
  27897. module_expsym_cmds=$lt_module_expsym_cmds
  27898. # Whether we are building with GNU ld or not.
  27899. with_gnu_ld=$lt_with_gnu_ld
  27900. # Flag that allows shared libraries with undefined symbols to be built.
  27901. allow_undefined_flag=$lt_allow_undefined_flag
  27902. # Flag that enforces no undefined symbols.
  27903. no_undefined_flag=$lt_no_undefined_flag
  27904. # Flag to hardcode \$libdir into a binary during linking.
  27905. # This must work even if \$libdir does not exist
  27906. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27907. # Whether we need a single "-rpath" flag with a separated argument.
  27908. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27909. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27910. # DIR into the resulting binary.
  27911. hardcode_direct=$hardcode_direct
  27912. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27913. # DIR into the resulting binary and the resulting library dependency is
  27914. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27915. # library is relocated.
  27916. hardcode_direct_absolute=$hardcode_direct_absolute
  27917. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27918. # into the resulting binary.
  27919. hardcode_minus_L=$hardcode_minus_L
  27920. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27921. # into the resulting binary.
  27922. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27923. # Set to "yes" if building a shared library automatically hardcodes DIR
  27924. # into the library and all subsequent libraries and executables linked
  27925. # against it.
  27926. hardcode_automatic=$hardcode_automatic
  27927. # Set to yes if linker adds runtime paths of dependent libraries
  27928. # to runtime path list.
  27929. inherit_rpath=$inherit_rpath
  27930. # Whether libtool must link a program against all its dependency libraries.
  27931. link_all_deplibs=$link_all_deplibs
  27932. # Set to "yes" if exported symbols are required.
  27933. always_export_symbols=$always_export_symbols
  27934. # The commands to list exported symbols.
  27935. export_symbols_cmds=$lt_export_symbols_cmds
  27936. # Symbols that should not be listed in the preloaded symbols.
  27937. exclude_expsyms=$lt_exclude_expsyms
  27938. # Symbols that must always be exported.
  27939. include_expsyms=$lt_include_expsyms
  27940. # Commands necessary for linking programs (against libraries) with templates.
  27941. prelink_cmds=$lt_prelink_cmds
  27942. # Commands necessary for finishing linking programs.
  27943. postlink_cmds=$lt_postlink_cmds
  27944. # Specify filename containing input files.
  27945. file_list_spec=$lt_file_list_spec
  27946. # How to hardcode a shared library path into an executable.
  27947. hardcode_action=$hardcode_action
  27948. # The directories searched by this compiler when creating a shared library.
  27949. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27950. # Dependencies to place before and after the objects being linked to
  27951. # create a shared library.
  27952. predep_objects=$lt_predep_objects
  27953. postdep_objects=$lt_postdep_objects
  27954. predeps=$lt_predeps
  27955. postdeps=$lt_postdeps
  27956. # The library search path used internally by the compiler when linking
  27957. # a shared library.
  27958. compiler_lib_search_path=$lt_compiler_lib_search_path
  27959. # ### END LIBTOOL CONFIG
  27960. _LT_EOF
  27961. cat <<'_LT_EOF' >> "$cfgfile"
  27962. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27963. # func_munge_path_list VARIABLE PATH
  27964. # -----------------------------------
  27965. # VARIABLE is name of variable containing _space_ separated list of
  27966. # directories to be munged by the contents of PATH, which is string
  27967. # having a format:
  27968. # "DIR[:DIR]:"
  27969. # string "DIR[ DIR]" will be prepended to VARIABLE
  27970. # ":DIR[:DIR]"
  27971. # string "DIR[ DIR]" will be appended to VARIABLE
  27972. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27973. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27974. # "DIRA[ DIRA]" will be appended to VARIABLE
  27975. # "DIR[:DIR]"
  27976. # VARIABLE will be replaced by "DIR[ DIR]"
  27977. func_munge_path_list ()
  27978. {
  27979. case x$2 in
  27980. x)
  27981. ;;
  27982. *:)
  27983. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27984. ;;
  27985. x:*)
  27986. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27987. ;;
  27988. *::*)
  27989. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27990. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27991. ;;
  27992. *)
  27993. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27994. ;;
  27995. esac
  27996. }
  27997. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27998. func_cc_basename ()
  27999. {
  28000. for cc_temp in $*""; do
  28001. case $cc_temp in
  28002. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  28003. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  28004. \-*) ;;
  28005. *) break;;
  28006. esac
  28007. done
  28008. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  28009. }
  28010. # ### END FUNCTIONS SHARED WITH CONFIGURE
  28011. _LT_EOF
  28012. case $host_os in
  28013. aix3*)
  28014. cat <<\_LT_EOF >> "$cfgfile"
  28015. # AIX sometimes has problems with the GCC collect2 program. For some
  28016. # reason, if we set the COLLECT_NAMES environment variable, the problems
  28017. # vanish in a puff of smoke.
  28018. if test set != "${COLLECT_NAMES+set}"; then
  28019. COLLECT_NAMES=
  28020. export COLLECT_NAMES
  28021. fi
  28022. _LT_EOF
  28023. ;;
  28024. esac
  28025. ltmain=$ac_aux_dir/ltmain.sh
  28026. # We use sed instead of cat because bash on DJGPP gets confused if
  28027. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  28028. # text mode, it properly converts lines to CR/LF. This bash problem
  28029. # is reportedly fixed, but why not run on old versions too?
  28030. sed '$q' "$ltmain" >> "$cfgfile" \
  28031. || (rm -f "$cfgfile"; exit 1)
  28032. mv -f "$cfgfile" "$ofile" ||
  28033. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  28034. chmod +x "$ofile"
  28035. cat <<_LT_EOF >> "$ofile"
  28036. # ### BEGIN LIBTOOL TAG CONFIG: RC
  28037. # The linker used to build libraries.
  28038. LD=$lt_LD_RC
  28039. # How to create reloadable object files.
  28040. reload_flag=$lt_reload_flag_RC
  28041. reload_cmds=$lt_reload_cmds_RC
  28042. # Commands used to build an old-style archive.
  28043. old_archive_cmds=$lt_old_archive_cmds_RC
  28044. # A language specific compiler.
  28045. CC=$lt_compiler_RC
  28046. # Is the compiler the GNU compiler?
  28047. with_gcc=$GCC_RC
  28048. # Compiler flag to turn off builtin functions.
  28049. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  28050. # Additional compiler flags for building library objects.
  28051. pic_flag=$lt_lt_prog_compiler_pic_RC
  28052. # How to pass a linker flag through the compiler.
  28053. wl=$lt_lt_prog_compiler_wl_RC
  28054. # Compiler flag to prevent dynamic linking.
  28055. link_static_flag=$lt_lt_prog_compiler_static_RC
  28056. # Does compiler simultaneously support -c and -o options?
  28057. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  28058. # Whether or not to add -lc for building shared libraries.
  28059. build_libtool_need_lc=$archive_cmds_need_lc_RC
  28060. # Whether or not to disallow shared libs when runtime libs are static.
  28061. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  28062. # Compiler flag to allow reflexive dlopens.
  28063. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  28064. # Compiler flag to generate shared objects directly from archives.
  28065. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  28066. # Whether the compiler copes with passing no objects directly.
  28067. compiler_needs_object=$lt_compiler_needs_object_RC
  28068. # Create an old-style archive from a shared archive.
  28069. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  28070. # Create a temporary old-style archive to link instead of a shared archive.
  28071. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  28072. # Commands used to build a shared archive.
  28073. archive_cmds=$lt_archive_cmds_RC
  28074. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  28075. # Commands used to build a loadable module if different from building
  28076. # a shared archive.
  28077. module_cmds=$lt_module_cmds_RC
  28078. module_expsym_cmds=$lt_module_expsym_cmds_RC
  28079. # Whether we are building with GNU ld or not.
  28080. with_gnu_ld=$lt_with_gnu_ld_RC
  28081. # Flag that allows shared libraries with undefined symbols to be built.
  28082. allow_undefined_flag=$lt_allow_undefined_flag_RC
  28083. # Flag that enforces no undefined symbols.
  28084. no_undefined_flag=$lt_no_undefined_flag_RC
  28085. # Flag to hardcode \$libdir into a binary during linking.
  28086. # This must work even if \$libdir does not exist
  28087. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  28088. # Whether we need a single "-rpath" flag with a separated argument.
  28089. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  28090. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28091. # DIR into the resulting binary.
  28092. hardcode_direct=$hardcode_direct_RC
  28093. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28094. # DIR into the resulting binary and the resulting library dependency is
  28095. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28096. # library is relocated.
  28097. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  28098. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28099. # into the resulting binary.
  28100. hardcode_minus_L=$hardcode_minus_L_RC
  28101. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28102. # into the resulting binary.
  28103. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  28104. # Set to "yes" if building a shared library automatically hardcodes DIR
  28105. # into the library and all subsequent libraries and executables linked
  28106. # against it.
  28107. hardcode_automatic=$hardcode_automatic_RC
  28108. # Set to yes if linker adds runtime paths of dependent libraries
  28109. # to runtime path list.
  28110. inherit_rpath=$inherit_rpath_RC
  28111. # Whether libtool must link a program against all its dependency libraries.
  28112. link_all_deplibs=$link_all_deplibs_RC
  28113. # Set to "yes" if exported symbols are required.
  28114. always_export_symbols=$always_export_symbols_RC
  28115. # The commands to list exported symbols.
  28116. export_symbols_cmds=$lt_export_symbols_cmds_RC
  28117. # Symbols that should not be listed in the preloaded symbols.
  28118. exclude_expsyms=$lt_exclude_expsyms_RC
  28119. # Symbols that must always be exported.
  28120. include_expsyms=$lt_include_expsyms_RC
  28121. # Commands necessary for linking programs (against libraries) with templates.
  28122. prelink_cmds=$lt_prelink_cmds_RC
  28123. # Commands necessary for finishing linking programs.
  28124. postlink_cmds=$lt_postlink_cmds_RC
  28125. # Specify filename containing input files.
  28126. file_list_spec=$lt_file_list_spec_RC
  28127. # How to hardcode a shared library path into an executable.
  28128. hardcode_action=$hardcode_action_RC
  28129. # The directories searched by this compiler when creating a shared library.
  28130. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  28131. # Dependencies to place before and after the objects being linked to
  28132. # create a shared library.
  28133. predep_objects=$lt_predep_objects_RC
  28134. postdep_objects=$lt_postdep_objects_RC
  28135. predeps=$lt_predeps_RC
  28136. postdeps=$lt_postdeps_RC
  28137. # The library search path used internally by the compiler when linking
  28138. # a shared library.
  28139. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  28140. # ### END LIBTOOL TAG CONFIG: RC
  28141. _LT_EOF
  28142. cat <<_LT_EOF >> "$ofile"
  28143. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  28144. # The linker used to build libraries.
  28145. LD=$lt_LD_CXX
  28146. # How to create reloadable object files.
  28147. reload_flag=$lt_reload_flag_CXX
  28148. reload_cmds=$lt_reload_cmds_CXX
  28149. # Commands used to build an old-style archive.
  28150. old_archive_cmds=$lt_old_archive_cmds_CXX
  28151. # A language specific compiler.
  28152. CC=$lt_compiler_CXX
  28153. # Is the compiler the GNU compiler?
  28154. with_gcc=$GCC_CXX
  28155. # Compiler flag to turn off builtin functions.
  28156. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  28157. # Additional compiler flags for building library objects.
  28158. pic_flag=$lt_lt_prog_compiler_pic_CXX
  28159. # How to pass a linker flag through the compiler.
  28160. wl=$lt_lt_prog_compiler_wl_CXX
  28161. # Compiler flag to prevent dynamic linking.
  28162. link_static_flag=$lt_lt_prog_compiler_static_CXX
  28163. # Does compiler simultaneously support -c and -o options?
  28164. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  28165. # Whether or not to add -lc for building shared libraries.
  28166. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  28167. # Whether or not to disallow shared libs when runtime libs are static.
  28168. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  28169. # Compiler flag to allow reflexive dlopens.
  28170. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  28171. # Compiler flag to generate shared objects directly from archives.
  28172. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  28173. # Whether the compiler copes with passing no objects directly.
  28174. compiler_needs_object=$lt_compiler_needs_object_CXX
  28175. # Create an old-style archive from a shared archive.
  28176. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  28177. # Create a temporary old-style archive to link instead of a shared archive.
  28178. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  28179. # Commands used to build a shared archive.
  28180. archive_cmds=$lt_archive_cmds_CXX
  28181. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  28182. # Commands used to build a loadable module if different from building
  28183. # a shared archive.
  28184. module_cmds=$lt_module_cmds_CXX
  28185. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  28186. # Whether we are building with GNU ld or not.
  28187. with_gnu_ld=$lt_with_gnu_ld_CXX
  28188. # Flag that allows shared libraries with undefined symbols to be built.
  28189. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  28190. # Flag that enforces no undefined symbols.
  28191. no_undefined_flag=$lt_no_undefined_flag_CXX
  28192. # Flag to hardcode \$libdir into a binary during linking.
  28193. # This must work even if \$libdir does not exist
  28194. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  28195. # Whether we need a single "-rpath" flag with a separated argument.
  28196. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  28197. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28198. # DIR into the resulting binary.
  28199. hardcode_direct=$hardcode_direct_CXX
  28200. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28201. # DIR into the resulting binary and the resulting library dependency is
  28202. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28203. # library is relocated.
  28204. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  28205. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28206. # into the resulting binary.
  28207. hardcode_minus_L=$hardcode_minus_L_CXX
  28208. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28209. # into the resulting binary.
  28210. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28211. # Set to "yes" if building a shared library automatically hardcodes DIR
  28212. # into the library and all subsequent libraries and executables linked
  28213. # against it.
  28214. hardcode_automatic=$hardcode_automatic_CXX
  28215. # Set to yes if linker adds runtime paths of dependent libraries
  28216. # to runtime path list.
  28217. inherit_rpath=$inherit_rpath_CXX
  28218. # Whether libtool must link a program against all its dependency libraries.
  28219. link_all_deplibs=$link_all_deplibs_CXX
  28220. # Set to "yes" if exported symbols are required.
  28221. always_export_symbols=$always_export_symbols_CXX
  28222. # The commands to list exported symbols.
  28223. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28224. # Symbols that should not be listed in the preloaded symbols.
  28225. exclude_expsyms=$lt_exclude_expsyms_CXX
  28226. # Symbols that must always be exported.
  28227. include_expsyms=$lt_include_expsyms_CXX
  28228. # Commands necessary for linking programs (against libraries) with templates.
  28229. prelink_cmds=$lt_prelink_cmds_CXX
  28230. # Commands necessary for finishing linking programs.
  28231. postlink_cmds=$lt_postlink_cmds_CXX
  28232. # Specify filename containing input files.
  28233. file_list_spec=$lt_file_list_spec_CXX
  28234. # How to hardcode a shared library path into an executable.
  28235. hardcode_action=$hardcode_action_CXX
  28236. # The directories searched by this compiler when creating a shared library.
  28237. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28238. # Dependencies to place before and after the objects being linked to
  28239. # create a shared library.
  28240. predep_objects=$lt_predep_objects_CXX
  28241. postdep_objects=$lt_postdep_objects_CXX
  28242. predeps=$lt_predeps_CXX
  28243. postdeps=$lt_postdeps_CXX
  28244. # The library search path used internally by the compiler when linking
  28245. # a shared library.
  28246. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28247. # ### END LIBTOOL TAG CONFIG: CXX
  28248. _LT_EOF
  28249. ;;
  28250. "sdl2_config":C) chmod a+x sdl2-config ;;
  28251. "summary":C) printf "$SUMMARY" ;;
  28252. esac
  28253. done # for ac_tag
  28254. as_fn_exit 0
  28255. _ACEOF
  28256. ac_clean_files=$ac_clean_files_save
  28257. test $ac_write_fail = 0 ||
  28258. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28259. # configure is writing to config.log, and then calls config.status.
  28260. # config.status does its own redirection, appending to config.log.
  28261. # Unfortunately, on DOS this fails, as config.log is still kept open
  28262. # by configure, so config.status won't be able to write to it; its
  28263. # output is simply discarded. So we exec the FD to /dev/null,
  28264. # effectively closing config.log, so it can be properly (re)opened and
  28265. # appended to by config.status. When coming back to configure, we
  28266. # need to make the FD available again.
  28267. if test "$no_create" != yes; then
  28268. ac_cs_success=:
  28269. ac_config_status_args=
  28270. test "$silent" = yes &&
  28271. ac_config_status_args="$ac_config_status_args --quiet"
  28272. exec 5>/dev/null
  28273. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28274. exec 5>>config.log
  28275. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28276. # would make configure fail if this is the last instruction.
  28277. $ac_cs_success || as_fn_exit 1
  28278. fi
  28279. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28281. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28282. fi