configure 947 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. SDL_RLD_FLAGS
  621. SDL_STATIC_LIBS
  622. SDL_LIBS
  623. SDL_CFLAGS
  624. bin_prefix_relpath
  625. cmake_prefix_relpath
  626. INSTALL_SDL2_CONFIG
  627. LIBUSB_LIBS
  628. LIBUSB_CFLAGS
  629. IBUS_LIBS
  630. IBUS_CFLAGS
  631. DBUS_LIBS
  632. DBUS_CFLAGS
  633. LIBGBM_LIBS
  634. LIBGBM_CFLAGS
  635. LIBDRM_LIBS
  636. LIBDRM_CFLAGS
  637. DIRECTFB_LIBS
  638. DIRECTFB_CFLAGS
  639. X_EXTRA_LIBS
  640. X_LIBS
  641. X_PRE_LIBS
  642. X_CFLAGS
  643. XMKMF
  644. RPI_LIBS
  645. RPI_CFLAGS
  646. DECOR_LIBS
  647. DECOR_CFLAGS
  648. FUSIONSOUND_LIBS
  649. FUSIONSOUND_CFLAGS
  650. ARTSCONFIG
  651. PULSEAUDIO_LIBS
  652. PULSEAUDIO_CFLAGS
  653. PIPEWIRE_LIBS
  654. PIPEWIRE_CFLAGS
  655. ESD_LIBS
  656. ESD_CFLAGS
  657. ESD_CONFIG
  658. JACK_LIBS
  659. JACK_CFLAGS
  660. ALSA_LIBS
  661. ALSA_CFLAGS
  662. ALLOCA
  663. CPP
  664. LIBTOOLLINKERTAG
  665. LINKER
  666. PKG_CONFIG_LIBDIR
  667. PKG_CONFIG_PATH
  668. PKG_CONFIG
  669. SET_MAKE
  670. INSTALL_DATA
  671. INSTALL_SCRIPT
  672. INSTALL_PROGRAM
  673. CXXCPP
  674. ac_ct_CXX
  675. CXXFLAGS
  676. CXX
  677. LT_AGE
  678. LT_REVISION
  679. LT_CURRENT
  680. LT_RELEASE
  681. RC
  682. LT_SYS_LIBRARY_PATH
  683. OTOOL64
  684. OTOOL
  685. LIPO
  686. NMEDIT
  687. DSYMUTIL
  688. MANIFEST_TOOL
  689. AWK
  690. RANLIB
  691. STRIP
  692. ac_ct_AR
  693. AR
  694. LN_S
  695. NM
  696. ac_ct_DUMPBIN
  697. DUMPBIN
  698. LD
  699. FGREP
  700. EGREP
  701. GREP
  702. SED
  703. OBJEXT
  704. EXEEXT
  705. ac_ct_CC
  706. CPPFLAGS
  707. LDFLAGS
  708. CFLAGS
  709. CC
  710. host_os
  711. host_vendor
  712. host_cpu
  713. host
  714. build_os
  715. build_vendor
  716. build_cpu
  717. build
  718. LIBTOOL
  719. OBJDUMP
  720. DLLTOOL
  721. AS
  722. SDL_VERSION
  723. SDL_BINARY_AGE
  724. SDL_INTERFACE_AGE
  725. SDL_MICRO_VERSION
  726. SDL_MINOR_VERSION
  727. SDL_MAJOR_VERSION
  728. target_alias
  729. host_alias
  730. build_alias
  731. LIBS
  732. ECHO_T
  733. ECHO_N
  734. ECHO_C
  735. DEFS
  736. mandir
  737. localedir
  738. libdir
  739. psdir
  740. pdfdir
  741. dvidir
  742. htmldir
  743. infodir
  744. docdir
  745. oldincludedir
  746. includedir
  747. runstatedir
  748. localstatedir
  749. sharedstatedir
  750. sysconfdir
  751. datadir
  752. datarootdir
  753. libexecdir
  754. sbindir
  755. bindir
  756. program_transform_name
  757. prefix
  758. exec_prefix
  759. PACKAGE_URL
  760. PACKAGE_BUGREPORT
  761. PACKAGE_STRING
  762. PACKAGE_VERSION
  763. PACKAGE_TARNAME
  764. PACKAGE_NAME
  765. PATH_SEPARATOR
  766. SHELL'
  767. ac_subst_files=''
  768. ac_user_opts='
  769. enable_option_checking
  770. enable_shared
  771. enable_static
  772. with_pic
  773. enable_fast_install
  774. with_aix_soname
  775. with_gnu_ld
  776. with_sysroot
  777. enable_libtool_lock
  778. enable_largefile
  779. enable_assertions
  780. enable_dependency_tracking
  781. enable_libc
  782. enable_gcc_atomics
  783. enable_atomic
  784. enable_audio
  785. enable_video
  786. enable_render
  787. enable_events
  788. enable_joystick
  789. enable_haptic
  790. enable_hidapi
  791. enable_sensor
  792. enable_power
  793. enable_filesystem
  794. enable_timers
  795. enable_file
  796. enable_misc
  797. enable_locale
  798. enable_loadso
  799. enable_cpuinfo
  800. enable_assembly
  801. enable_ssemath
  802. enable_mmx
  803. enable_3dnow
  804. enable_sse
  805. enable_sse2
  806. enable_sse3
  807. enable_altivec
  808. enable_lsx
  809. enable_lasx
  810. enable_oss
  811. enable_alsa
  812. with_alsa_prefix
  813. with_alsa_inc_prefix
  814. enable_alsatest
  815. enable_alsa_shared
  816. enable_jack
  817. enable_jack_shared
  818. enable_esd
  819. with_esd_prefix
  820. with_esd_exec_prefix
  821. enable_esdtest
  822. enable_esd_shared
  823. enable_pipewire
  824. enable_pipewire_shared
  825. enable_pulseaudio
  826. enable_pulseaudio_shared
  827. enable_arts
  828. enable_arts_shared
  829. enable_nas
  830. enable_nas_shared
  831. enable_sndio
  832. enable_sndio_shared
  833. enable_fusionsound
  834. enable_fusionsound_shared
  835. enable_diskaudio
  836. enable_dummyaudio
  837. enable_libsamplerate
  838. enable_libsamplerate_shared
  839. enable_arm_simd
  840. enable_arm_neon
  841. enable_video_wayland
  842. enable_video_wayland_qt_touch
  843. enable_wayland_shared
  844. enable_libdecor
  845. enable_libdecor_shared
  846. enable_video_rpi
  847. enable_video_x11
  848. with_x
  849. enable_x11_shared
  850. enable_video_x11_xcursor
  851. enable_video_x11_xdbe
  852. enable_video_x11_xinput
  853. enable_video_x11_xfixes
  854. enable_video_x11_xrandr
  855. enable_video_x11_scrnsaver
  856. enable_video_x11_xshape
  857. enable_video_vivante
  858. enable_video_cocoa
  859. enable_video_metal
  860. enable_render_metal
  861. enable_video_directfb
  862. enable_directfb_shared
  863. enable_video_kmsdrm
  864. enable_kmsdrm_shared
  865. enable_video_dummy
  866. enable_video_offscreen
  867. enable_video_opengl
  868. enable_video_opengles
  869. enable_video_opengles1
  870. enable_video_opengles2
  871. enable_video_vulkan
  872. enable_libudev
  873. enable_dbus
  874. enable_ime
  875. enable_ibus
  876. enable_fcitx
  877. enable_joystick_mfi
  878. enable_pthreads
  879. enable_pthread_sem
  880. enable_directx
  881. enable_xinput
  882. enable_wasapi
  883. enable_hidapi_joystick
  884. enable_hidapi_libusb
  885. enable_clock_gettime
  886. enable_rpath
  887. enable_backgrounding_signal
  888. enable_foregrounding_signal
  889. enable_joystick_virtual
  890. enable_render_d3d
  891. enable_sdl2_config
  892. '
  893. ac_precious_vars='build_alias
  894. host_alias
  895. target_alias
  896. CC
  897. CFLAGS
  898. LDFLAGS
  899. LIBS
  900. CPPFLAGS
  901. LT_SYS_LIBRARY_PATH
  902. CXX
  903. CXXFLAGS
  904. CCC
  905. CXXCPP
  906. PKG_CONFIG
  907. PKG_CONFIG_PATH
  908. PKG_CONFIG_LIBDIR
  909. CPP
  910. JACK_CFLAGS
  911. JACK_LIBS
  912. PIPEWIRE_CFLAGS
  913. PIPEWIRE_LIBS
  914. PULSEAUDIO_CFLAGS
  915. PULSEAUDIO_LIBS
  916. FUSIONSOUND_CFLAGS
  917. FUSIONSOUND_LIBS
  918. DECOR_CFLAGS
  919. DECOR_LIBS
  920. RPI_CFLAGS
  921. RPI_LIBS
  922. XMKMF
  923. DIRECTFB_CFLAGS
  924. DIRECTFB_LIBS
  925. LIBDRM_CFLAGS
  926. LIBDRM_LIBS
  927. LIBGBM_CFLAGS
  928. LIBGBM_LIBS
  929. DBUS_CFLAGS
  930. DBUS_LIBS
  931. IBUS_CFLAGS
  932. IBUS_LIBS
  933. LIBUSB_CFLAGS
  934. LIBUSB_LIBS'
  935. # Initialize some variables set by options.
  936. ac_init_help=
  937. ac_init_version=false
  938. ac_unrecognized_opts=
  939. ac_unrecognized_sep=
  940. # The variables have the same names as the options, with
  941. # dashes changed to underlines.
  942. cache_file=/dev/null
  943. exec_prefix=NONE
  944. no_create=
  945. no_recursion=
  946. prefix=NONE
  947. program_prefix=NONE
  948. program_suffix=NONE
  949. program_transform_name=s,x,x,
  950. silent=
  951. site=
  952. srcdir=
  953. verbose=
  954. x_includes=NONE
  955. x_libraries=NONE
  956. # Installation directory options.
  957. # These are left unexpanded so users can "make install exec_prefix=/foo"
  958. # and all the variables that are supposed to be based on exec_prefix
  959. # by default will actually change.
  960. # Use braces instead of parens because sh, perl, etc. also accept them.
  961. # (The list follows the same order as the GNU Coding Standards.)
  962. bindir='${exec_prefix}/bin'
  963. sbindir='${exec_prefix}/sbin'
  964. libexecdir='${exec_prefix}/libexec'
  965. datarootdir='${prefix}/share'
  966. datadir='${datarootdir}'
  967. sysconfdir='${prefix}/etc'
  968. sharedstatedir='${prefix}/com'
  969. localstatedir='${prefix}/var'
  970. runstatedir='${localstatedir}/run'
  971. includedir='${prefix}/include'
  972. oldincludedir='/usr/include'
  973. docdir='${datarootdir}/doc/${PACKAGE}'
  974. infodir='${datarootdir}/info'
  975. htmldir='${docdir}'
  976. dvidir='${docdir}'
  977. pdfdir='${docdir}'
  978. psdir='${docdir}'
  979. libdir='${exec_prefix}/lib'
  980. localedir='${datarootdir}/locale'
  981. mandir='${datarootdir}/man'
  982. ac_prev=
  983. ac_dashdash=
  984. for ac_option
  985. do
  986. # If the previous option needs an argument, assign it.
  987. if test -n "$ac_prev"; then
  988. eval $ac_prev=\$ac_option
  989. ac_prev=
  990. continue
  991. fi
  992. case $ac_option in
  993. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  994. *=) ac_optarg= ;;
  995. *) ac_optarg=yes ;;
  996. esac
  997. case $ac_dashdash$ac_option in
  998. --)
  999. ac_dashdash=yes ;;
  1000. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1001. ac_prev=bindir ;;
  1002. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1003. bindir=$ac_optarg ;;
  1004. -build | --build | --buil | --bui | --bu)
  1005. ac_prev=build_alias ;;
  1006. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1007. build_alias=$ac_optarg ;;
  1008. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1009. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1010. ac_prev=cache_file ;;
  1011. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1012. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1013. cache_file=$ac_optarg ;;
  1014. --config-cache | -C)
  1015. cache_file=config.cache ;;
  1016. -datadir | --datadir | --datadi | --datad)
  1017. ac_prev=datadir ;;
  1018. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1019. datadir=$ac_optarg ;;
  1020. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1021. | --dataroo | --dataro | --datar)
  1022. ac_prev=datarootdir ;;
  1023. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1024. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1025. datarootdir=$ac_optarg ;;
  1026. -disable-* | --disable-*)
  1027. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1028. # Reject names that are not valid shell variable names.
  1029. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1030. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1031. ac_useropt_orig=$ac_useropt
  1032. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1033. case $ac_user_opts in
  1034. *"
  1035. "enable_$ac_useropt"
  1036. "*) ;;
  1037. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1038. ac_unrecognized_sep=', ';;
  1039. esac
  1040. eval enable_$ac_useropt=no ;;
  1041. -docdir | --docdir | --docdi | --doc | --do)
  1042. ac_prev=docdir ;;
  1043. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1044. docdir=$ac_optarg ;;
  1045. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1046. ac_prev=dvidir ;;
  1047. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1048. dvidir=$ac_optarg ;;
  1049. -enable-* | --enable-*)
  1050. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1051. # Reject names that are not valid shell variable names.
  1052. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1053. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1054. ac_useropt_orig=$ac_useropt
  1055. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1056. case $ac_user_opts in
  1057. *"
  1058. "enable_$ac_useropt"
  1059. "*) ;;
  1060. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1061. ac_unrecognized_sep=', ';;
  1062. esac
  1063. eval enable_$ac_useropt=\$ac_optarg ;;
  1064. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1065. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1066. | --exec | --exe | --ex)
  1067. ac_prev=exec_prefix ;;
  1068. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1069. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1070. | --exec=* | --exe=* | --ex=*)
  1071. exec_prefix=$ac_optarg ;;
  1072. -gas | --gas | --ga | --g)
  1073. # Obsolete; use --with-gas.
  1074. with_gas=yes ;;
  1075. -help | --help | --hel | --he | -h)
  1076. ac_init_help=long ;;
  1077. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1078. ac_init_help=recursive ;;
  1079. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1080. ac_init_help=short ;;
  1081. -host | --host | --hos | --ho)
  1082. ac_prev=host_alias ;;
  1083. -host=* | --host=* | --hos=* | --ho=*)
  1084. host_alias=$ac_optarg ;;
  1085. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1086. ac_prev=htmldir ;;
  1087. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1088. | --ht=*)
  1089. htmldir=$ac_optarg ;;
  1090. -includedir | --includedir | --includedi | --included | --include \
  1091. | --includ | --inclu | --incl | --inc)
  1092. ac_prev=includedir ;;
  1093. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1094. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1095. includedir=$ac_optarg ;;
  1096. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1097. ac_prev=infodir ;;
  1098. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1099. infodir=$ac_optarg ;;
  1100. -libdir | --libdir | --libdi | --libd)
  1101. ac_prev=libdir ;;
  1102. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1103. libdir=$ac_optarg ;;
  1104. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1105. | --libexe | --libex | --libe)
  1106. ac_prev=libexecdir ;;
  1107. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1108. | --libexe=* | --libex=* | --libe=*)
  1109. libexecdir=$ac_optarg ;;
  1110. -localedir | --localedir | --localedi | --localed | --locale)
  1111. ac_prev=localedir ;;
  1112. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1113. localedir=$ac_optarg ;;
  1114. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1115. | --localstate | --localstat | --localsta | --localst | --locals)
  1116. ac_prev=localstatedir ;;
  1117. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1118. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1119. localstatedir=$ac_optarg ;;
  1120. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1121. ac_prev=mandir ;;
  1122. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1123. mandir=$ac_optarg ;;
  1124. -nfp | --nfp | --nf)
  1125. # Obsolete; use --without-fp.
  1126. with_fp=no ;;
  1127. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1128. | --no-cr | --no-c | -n)
  1129. no_create=yes ;;
  1130. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1131. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1132. no_recursion=yes ;;
  1133. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1134. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1135. | --oldin | --oldi | --old | --ol | --o)
  1136. ac_prev=oldincludedir ;;
  1137. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1138. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1139. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1140. oldincludedir=$ac_optarg ;;
  1141. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1142. ac_prev=prefix ;;
  1143. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1144. prefix=$ac_optarg ;;
  1145. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1146. | --program-pre | --program-pr | --program-p)
  1147. ac_prev=program_prefix ;;
  1148. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1149. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1150. program_prefix=$ac_optarg ;;
  1151. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1152. | --program-suf | --program-su | --program-s)
  1153. ac_prev=program_suffix ;;
  1154. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1155. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1156. program_suffix=$ac_optarg ;;
  1157. -program-transform-name | --program-transform-name \
  1158. | --program-transform-nam | --program-transform-na \
  1159. | --program-transform-n | --program-transform- \
  1160. | --program-transform | --program-transfor \
  1161. | --program-transfo | --program-transf \
  1162. | --program-trans | --program-tran \
  1163. | --progr-tra | --program-tr | --program-t)
  1164. ac_prev=program_transform_name ;;
  1165. -program-transform-name=* | --program-transform-name=* \
  1166. | --program-transform-nam=* | --program-transform-na=* \
  1167. | --program-transform-n=* | --program-transform-=* \
  1168. | --program-transform=* | --program-transfor=* \
  1169. | --program-transfo=* | --program-transf=* \
  1170. | --program-trans=* | --program-tran=* \
  1171. | --progr-tra=* | --program-tr=* | --program-t=*)
  1172. program_transform_name=$ac_optarg ;;
  1173. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1174. ac_prev=pdfdir ;;
  1175. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1176. pdfdir=$ac_optarg ;;
  1177. -psdir | --psdir | --psdi | --psd | --ps)
  1178. ac_prev=psdir ;;
  1179. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1180. psdir=$ac_optarg ;;
  1181. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1182. | -silent | --silent | --silen | --sile | --sil)
  1183. silent=yes ;;
  1184. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1185. | --runstate | --runstat | --runsta | --runst | --runs \
  1186. | --run | --ru | --r)
  1187. ac_prev=runstatedir ;;
  1188. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1189. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1190. | --run=* | --ru=* | --r=*)
  1191. runstatedir=$ac_optarg ;;
  1192. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1193. ac_prev=sbindir ;;
  1194. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1195. | --sbi=* | --sb=*)
  1196. sbindir=$ac_optarg ;;
  1197. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1198. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1199. | --sharedst | --shareds | --shared | --share | --shar \
  1200. | --sha | --sh)
  1201. ac_prev=sharedstatedir ;;
  1202. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1203. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1204. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1205. | --sha=* | --sh=*)
  1206. sharedstatedir=$ac_optarg ;;
  1207. -site | --site | --sit)
  1208. ac_prev=site ;;
  1209. -site=* | --site=* | --sit=*)
  1210. site=$ac_optarg ;;
  1211. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1212. ac_prev=srcdir ;;
  1213. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1214. srcdir=$ac_optarg ;;
  1215. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1216. | --syscon | --sysco | --sysc | --sys | --sy)
  1217. ac_prev=sysconfdir ;;
  1218. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1219. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1220. sysconfdir=$ac_optarg ;;
  1221. -target | --target | --targe | --targ | --tar | --ta | --t)
  1222. ac_prev=target_alias ;;
  1223. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1224. target_alias=$ac_optarg ;;
  1225. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1226. verbose=yes ;;
  1227. -version | --version | --versio | --versi | --vers | -V)
  1228. ac_init_version=: ;;
  1229. -with-* | --with-*)
  1230. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1231. # Reject names that are not valid shell variable names.
  1232. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1233. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1234. ac_useropt_orig=$ac_useropt
  1235. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1236. case $ac_user_opts in
  1237. *"
  1238. "with_$ac_useropt"
  1239. "*) ;;
  1240. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1241. ac_unrecognized_sep=', ';;
  1242. esac
  1243. eval with_$ac_useropt=\$ac_optarg ;;
  1244. -without-* | --without-*)
  1245. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1246. # Reject names that are not valid shell variable names.
  1247. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1248. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1249. ac_useropt_orig=$ac_useropt
  1250. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1251. case $ac_user_opts in
  1252. *"
  1253. "with_$ac_useropt"
  1254. "*) ;;
  1255. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1256. ac_unrecognized_sep=', ';;
  1257. esac
  1258. eval with_$ac_useropt=no ;;
  1259. --x)
  1260. # Obsolete; use --with-x.
  1261. with_x=yes ;;
  1262. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1263. | --x-incl | --x-inc | --x-in | --x-i)
  1264. ac_prev=x_includes ;;
  1265. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1266. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1267. x_includes=$ac_optarg ;;
  1268. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1269. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1270. ac_prev=x_libraries ;;
  1271. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1272. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1273. x_libraries=$ac_optarg ;;
  1274. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1275. Try \`$0 --help' for more information"
  1276. ;;
  1277. *=*)
  1278. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1279. # Reject names that are not valid shell variable names.
  1280. case $ac_envvar in #(
  1281. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1282. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1283. esac
  1284. eval $ac_envvar=\$ac_optarg
  1285. export $ac_envvar ;;
  1286. *)
  1287. # FIXME: should be removed in autoconf 3.0.
  1288. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1289. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1290. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1291. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1292. ;;
  1293. esac
  1294. done
  1295. if test -n "$ac_prev"; then
  1296. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1297. as_fn_error $? "missing argument to $ac_option"
  1298. fi
  1299. if test -n "$ac_unrecognized_opts"; then
  1300. case $enable_option_checking in
  1301. no) ;;
  1302. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1303. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1304. esac
  1305. fi
  1306. # Check all directory arguments for consistency.
  1307. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1308. datadir sysconfdir sharedstatedir localstatedir includedir \
  1309. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1310. libdir localedir mandir runstatedir
  1311. do
  1312. eval ac_val=\$$ac_var
  1313. # Remove trailing slashes.
  1314. case $ac_val in
  1315. */ )
  1316. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1317. eval $ac_var=\$ac_val;;
  1318. esac
  1319. # Be sure to have absolute directory names.
  1320. case $ac_val in
  1321. [\\/$]* | ?:[\\/]* ) continue;;
  1322. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1323. esac
  1324. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1325. done
  1326. # There might be people who depend on the old broken behavior: `$host'
  1327. # used to hold the argument of --host etc.
  1328. # FIXME: To remove some day.
  1329. build=$build_alias
  1330. host=$host_alias
  1331. target=$target_alias
  1332. # FIXME: To remove some day.
  1333. if test "x$host_alias" != x; then
  1334. if test "x$build_alias" = x; then
  1335. cross_compiling=maybe
  1336. elif test "x$build_alias" != "x$host_alias"; then
  1337. cross_compiling=yes
  1338. fi
  1339. fi
  1340. ac_tool_prefix=
  1341. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1342. test "$silent" = yes && exec 6>/dev/null
  1343. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1344. ac_ls_di=`ls -di .` &&
  1345. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1346. as_fn_error $? "working directory cannot be determined"
  1347. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1348. as_fn_error $? "pwd does not report name of working directory"
  1349. # Find the source files, if location was not specified.
  1350. if test -z "$srcdir"; then
  1351. ac_srcdir_defaulted=yes
  1352. # Try the directory containing this script, then the parent directory.
  1353. ac_confdir=`$as_dirname -- "$as_myself" ||
  1354. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1355. X"$as_myself" : 'X\(//\)[^/]' \| \
  1356. X"$as_myself" : 'X\(//\)$' \| \
  1357. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1358. printf "%s\n" X"$as_myself" |
  1359. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1360. s//\1/
  1361. q
  1362. }
  1363. /^X\(\/\/\)[^/].*/{
  1364. s//\1/
  1365. q
  1366. }
  1367. /^X\(\/\/\)$/{
  1368. s//\1/
  1369. q
  1370. }
  1371. /^X\(\/\).*/{
  1372. s//\1/
  1373. q
  1374. }
  1375. s/.*/./; q'`
  1376. srcdir=$ac_confdir
  1377. if test ! -r "$srcdir/$ac_unique_file"; then
  1378. srcdir=..
  1379. fi
  1380. else
  1381. ac_srcdir_defaulted=no
  1382. fi
  1383. if test ! -r "$srcdir/$ac_unique_file"; then
  1384. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1385. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1386. fi
  1387. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1388. ac_abs_confdir=`(
  1389. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1390. pwd)`
  1391. # When building in place, set srcdir=.
  1392. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1393. srcdir=.
  1394. fi
  1395. # Remove unnecessary trailing slashes from srcdir.
  1396. # Double slashes in file names in object file debugging info
  1397. # mess up M-x gdb in Emacs.
  1398. case $srcdir in
  1399. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1400. esac
  1401. for ac_var in $ac_precious_vars; do
  1402. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1403. eval ac_env_${ac_var}_value=\$${ac_var}
  1404. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1405. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1406. done
  1407. #
  1408. # Report the --help message.
  1409. #
  1410. if test "$ac_init_help" = "long"; then
  1411. # Omit some internal or obsolete options to make the list less imposing.
  1412. # This message is too long to be a string in the A/UX 3.1 sh.
  1413. cat <<_ACEOF
  1414. \`configure' configures this package to adapt to many kinds of systems.
  1415. Usage: $0 [OPTION]... [VAR=VALUE]...
  1416. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1417. VAR=VALUE. See below for descriptions of some of the useful variables.
  1418. Defaults for the options are specified in brackets.
  1419. Configuration:
  1420. -h, --help display this help and exit
  1421. --help=short display options specific to this package
  1422. --help=recursive display the short help of all the included packages
  1423. -V, --version display version information and exit
  1424. -q, --quiet, --silent do not print \`checking ...' messages
  1425. --cache-file=FILE cache test results in FILE [disabled]
  1426. -C, --config-cache alias for \`--cache-file=config.cache'
  1427. -n, --no-create do not create output files
  1428. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1429. Installation directories:
  1430. --prefix=PREFIX install architecture-independent files in PREFIX
  1431. [$ac_default_prefix]
  1432. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1433. [PREFIX]
  1434. By default, \`make install' will install all the files in
  1435. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1436. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1437. for instance \`--prefix=\$HOME'.
  1438. For better control, use the options below.
  1439. Fine tuning of the installation directories:
  1440. --bindir=DIR user executables [EPREFIX/bin]
  1441. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1442. --libexecdir=DIR program executables [EPREFIX/libexec]
  1443. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1444. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1445. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1446. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1447. --libdir=DIR object code libraries [EPREFIX/lib]
  1448. --includedir=DIR C header files [PREFIX/include]
  1449. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1450. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1451. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1452. --infodir=DIR info documentation [DATAROOTDIR/info]
  1453. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1454. --mandir=DIR man documentation [DATAROOTDIR/man]
  1455. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1456. --htmldir=DIR html documentation [DOCDIR]
  1457. --dvidir=DIR dvi documentation [DOCDIR]
  1458. --pdfdir=DIR pdf documentation [DOCDIR]
  1459. --psdir=DIR ps documentation [DOCDIR]
  1460. _ACEOF
  1461. cat <<\_ACEOF
  1462. X features:
  1463. --x-includes=DIR X include files are in DIR
  1464. --x-libraries=DIR X library files are in DIR
  1465. System types:
  1466. --build=BUILD configure for building on BUILD [guessed]
  1467. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1468. _ACEOF
  1469. fi
  1470. if test -n "$ac_init_help"; then
  1471. cat <<\_ACEOF
  1472. Optional Features:
  1473. --disable-option-checking ignore unrecognized --enable/--with options
  1474. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1475. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1476. --enable-shared[=PKGS] build shared libraries [default=yes]
  1477. --enable-static[=PKGS] build static libraries [default=yes]
  1478. --enable-fast-install[=PKGS]
  1479. optimize for fast installation [default=yes]
  1480. --disable-libtool-lock avoid locking (might break parallel builds)
  1481. --disable-largefile omit support for large files
  1482. --enable-assertions Enable internal sanity checks
  1483. (auto/disabled/release/enabled/paranoid)
  1484. [default=auto]
  1485. --enable-dependency-tracking
  1486. Use gcc -MMD -MT dependency tracking [default=yes]
  1487. --enable-libc Use the system C library [default=yes]
  1488. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1489. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1490. --enable-audio Enable the audio subsystem [default=yes]
  1491. --enable-video Enable the video subsystem [default=yes]
  1492. --enable-render Enable the render subsystem [default=yes]
  1493. --enable-events Enable the events subsystem [default=yes]
  1494. --enable-joystick Enable the joystick subsystem [default=yes]
  1495. --enable-haptic Enable the haptic (force feedback) subsystem
  1496. [default=yes]
  1497. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1498. --enable-sensor Enable the sensor subsystem [default=yes]
  1499. --enable-power Enable the power subsystem [default=yes]
  1500. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1501. --enable-timers Enable the timer subsystem [default=yes]
  1502. --enable-file Enable the file subsystem [default=yes]
  1503. --enable-misc Enable the misc subsystem [default=yes]
  1504. --enable-locale Enable the locale subsystem [default=yes]
  1505. --enable-loadso Enable the shared object loading subsystem
  1506. [default=yes]
  1507. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1508. --enable-assembly Enable assembly routines [default=yes]
  1509. --enable-ssemath Allow GCC to use SSE floating point math
  1510. [default=maybe]
  1511. --enable-mmx use MMX assembly routines [default=yes]
  1512. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1513. --enable-sse use SSE assembly routines [default=yes]
  1514. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1515. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1516. --enable-altivec use Altivec assembly routines [default=yes]
  1517. --enable-lsx use LSX assembly routines [default=yes]
  1518. --enable-lasx use LASX assembly routines [default=yes]
  1519. --enable-oss support the OSS audio API [default=maybe]
  1520. --enable-alsa support the ALSA audio API [default=yes]
  1521. --disable-alsatest Do not try to compile and run a test Alsa program
  1522. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1523. --enable-jack use JACK audio [default=yes]
  1524. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1525. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1526. --disable-esdtest Do not try to compile and run a test ESD program
  1527. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1528. --enable-pipewire use Pipewire audio [default=yes]
  1529. --enable-pipewire-shared
  1530. dynamically load Pipewire support [default=yes]
  1531. --enable-pulseaudio use PulseAudio [default=yes]
  1532. --enable-pulseaudio-shared
  1533. dynamically load PulseAudio support [default=yes]
  1534. --enable-arts support the Analog Real Time Synthesizer
  1535. [default=yes]
  1536. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1537. --enable-nas support the NAS audio API [default=yes]
  1538. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1539. --enable-sndio support the sndio audio API [default=yes]
  1540. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1541. --enable-fusionsound use FusionSound audio driver [default=no]
  1542. --enable-fusionsound-shared
  1543. dynamically load fusionsound audio support
  1544. [default=yes]
  1545. --enable-diskaudio support the disk writer audio driver [default=yes]
  1546. --enable-dummyaudio support the dummy audio driver [default=yes]
  1547. --enable-libsamplerate use libsamplerate for audio rate conversion
  1548. [default=yes]
  1549. --enable-libsamplerate-shared
  1550. dynamically load libsamplerate [default=yes]
  1551. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1552. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1553. --enable-video-wayland use Wayland video driver [default=yes]
  1554. --enable-video-wayland-qt-touch
  1555. QtWayland server support for Wayland video driver
  1556. [default=yes]
  1557. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1558. --enable-libdecor use libdecor for Wayland client-side decorations
  1559. [default=yes]
  1560. --enable-libdecor-shared
  1561. dynamically load libdecor [default=yes]
  1562. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1563. --enable-video-x11 use X11 video driver [default=yes]
  1564. --enable-x11-shared dynamically load X11 support [default=maybe]
  1565. --enable-video-x11-xcursor
  1566. enable X11 Xcursor support [default=yes]
  1567. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1568. --enable-video-x11-xinput
  1569. enable X11 XInput extension for manymouse, tablets,
  1570. etc [default=yes]
  1571. --enable-video-x11-xfixes
  1572. enable X11 Xfixes support [default=yes]
  1573. --enable-video-x11-xrandr
  1574. enable X11 Xrandr extension for fullscreen
  1575. [default=yes]
  1576. --enable-video-x11-scrnsaver
  1577. enable X11 screensaver extension [default=yes]
  1578. --enable-video-x11-xshape
  1579. enable X11 XShape support [default=yes]
  1580. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1581. --enable-video-cocoa use Cocoa video driver [default=yes]
  1582. --enable-video-metal include Metal support [default=yes]
  1583. --enable-render-metal enable the Metal render driver [default=yes]
  1584. --enable-video-directfb use DirectFB video driver [default=no]
  1585. --enable-directfb-shared
  1586. dynamically load directfb support [default=yes]
  1587. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1588. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1589. --enable-video-dummy use dummy video driver [default=yes]
  1590. --enable-video-offscreen
  1591. use offscreen video driver [default=no]
  1592. --enable-video-opengl include OpenGL support [default=yes]
  1593. --enable-video-opengles include OpenGL ES support [default=yes]
  1594. --enable-video-opengles1
  1595. include OpenGL ES 1.1 support [default=yes]
  1596. --enable-video-opengles2
  1597. include OpenGL ES 2.0 support [default=yes]
  1598. --enable-video-vulkan include Vulkan support [default=yes]
  1599. --enable-libudev enable libudev support [default=yes]
  1600. --enable-dbus enable D-Bus support [default=yes]
  1601. --enable-ime enable IME support [default=yes]
  1602. --enable-ibus enable IBus support [default=yes]
  1603. --enable-fcitx enable fcitx support [default=yes]
  1604. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1605. --enable-pthreads use POSIX threads for multi-threading
  1606. [default=maybe]
  1607. --enable-pthread-sem use pthread semaphores [default=maybe]
  1608. --enable-directx use DirectX for Windows audio/video [default=yes]
  1609. --enable-xinput use Xinput for Windows [default=yes]
  1610. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1611. --enable-hidapi-joystick
  1612. use HIDAPI for low level joystick drivers
  1613. [default=yes]
  1614. --enable-hidapi-libusb use libusb for low level joystick drivers
  1615. [default=maybe]
  1616. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1617. UNIX [default=yes]
  1618. --enable-rpath use an rpath when linking SDL [default=yes]
  1619. --enable-backgrounding-signal
  1620. number to use for magic backgrounding signal or 'no'
  1621. [default=no]
  1622. --enable-foregrounding-signal
  1623. number to use for magic foregrounding signal or 'no'
  1624. [default=no]
  1625. --enable-joystick-virtual
  1626. enable virtual joystick APIs [default=yes]
  1627. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1628. --enable-sdl2-config Install sdl2-config [default=yes]
  1629. Optional Packages:
  1630. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1631. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1632. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1633. both]
  1634. --with-aix-soname=aix|svr4|both
  1635. shared library versioning (aka "SONAME") variant to
  1636. provide on AIX, [default=aix].
  1637. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1638. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1639. compiler's sysroot if not specified).
  1640. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1641. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1642. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1643. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1644. --with-x use the X Window System
  1645. Some influential environment variables:
  1646. CC C compiler command
  1647. CFLAGS C compiler flags
  1648. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1649. nonstandard directory <lib dir>
  1650. LIBS libraries to pass to the linker, e.g. -l<library>
  1651. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1652. you have headers in a nonstandard directory <include dir>
  1653. LT_SYS_LIBRARY_PATH
  1654. User-defined run-time library search path.
  1655. CXX C++ compiler command
  1656. CXXFLAGS C++ compiler flags
  1657. CXXCPP C++ preprocessor
  1658. PKG_CONFIG path to pkg-config utility
  1659. PKG_CONFIG_PATH
  1660. directories to add to pkg-config's search path
  1661. PKG_CONFIG_LIBDIR
  1662. path overriding pkg-config's built-in search path
  1663. CPP C preprocessor
  1664. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1665. JACK_LIBS linker flags for JACK, overriding pkg-config
  1666. PIPEWIRE_CFLAGS
  1667. C compiler flags for PIPEWIRE, overriding pkg-config
  1668. PIPEWIRE_LIBS
  1669. linker flags for PIPEWIRE, overriding pkg-config
  1670. PULSEAUDIO_CFLAGS
  1671. C compiler flags for PULSEAUDIO, overriding pkg-config
  1672. PULSEAUDIO_LIBS
  1673. linker flags for PULSEAUDIO, overriding pkg-config
  1674. FUSIONSOUND_CFLAGS
  1675. C compiler flags for FUSIONSOUND, overriding pkg-config
  1676. FUSIONSOUND_LIBS
  1677. linker flags for FUSIONSOUND, overriding pkg-config
  1678. DECOR_CFLAGS
  1679. C compiler flags for DECOR, overriding pkg-config
  1680. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1681. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1682. RPI_LIBS linker flags for RPI, overriding pkg-config
  1683. XMKMF Path to xmkmf, Makefile generator for X Window System
  1684. DIRECTFB_CFLAGS
  1685. C compiler flags for DIRECTFB, overriding pkg-config
  1686. DIRECTFB_LIBS
  1687. linker flags for DIRECTFB, overriding pkg-config
  1688. LIBDRM_CFLAGS
  1689. C compiler flags for LIBDRM, overriding pkg-config
  1690. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1691. LIBGBM_CFLAGS
  1692. C compiler flags for LIBGBM, overriding pkg-config
  1693. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1694. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1695. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1696. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1697. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1698. LIBUSB_CFLAGS
  1699. C compiler flags for LIBUSB, overriding pkg-config
  1700. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1701. Use these variables to override the choices made by `configure' or to help
  1702. it to find libraries and programs with nonstandard names/locations.
  1703. Report bugs to the package provider.
  1704. _ACEOF
  1705. ac_status=$?
  1706. fi
  1707. if test "$ac_init_help" = "recursive"; then
  1708. # If there are subdirs, report their specific --help.
  1709. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1710. test -d "$ac_dir" ||
  1711. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1712. continue
  1713. ac_builddir=.
  1714. case "$ac_dir" in
  1715. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1716. *)
  1717. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1718. # A ".." for each directory in $ac_dir_suffix.
  1719. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1720. case $ac_top_builddir_sub in
  1721. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1722. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1723. esac ;;
  1724. esac
  1725. ac_abs_top_builddir=$ac_pwd
  1726. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1727. # for backward compatibility:
  1728. ac_top_builddir=$ac_top_build_prefix
  1729. case $srcdir in
  1730. .) # We are building in place.
  1731. ac_srcdir=.
  1732. ac_top_srcdir=$ac_top_builddir_sub
  1733. ac_abs_top_srcdir=$ac_pwd ;;
  1734. [\\/]* | ?:[\\/]* ) # Absolute name.
  1735. ac_srcdir=$srcdir$ac_dir_suffix;
  1736. ac_top_srcdir=$srcdir
  1737. ac_abs_top_srcdir=$srcdir ;;
  1738. *) # Relative name.
  1739. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1740. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1741. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1742. esac
  1743. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1744. cd "$ac_dir" || { ac_status=$?; continue; }
  1745. # Check for configure.gnu first; this name is used for a wrapper for
  1746. # Metaconfig's "Configure" on case-insensitive file systems.
  1747. if test -f "$ac_srcdir/configure.gnu"; then
  1748. echo &&
  1749. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1750. elif test -f "$ac_srcdir/configure"; then
  1751. echo &&
  1752. $SHELL "$ac_srcdir/configure" --help=recursive
  1753. else
  1754. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1755. fi || ac_status=$?
  1756. cd "$ac_pwd" || { ac_status=$?; break; }
  1757. done
  1758. fi
  1759. test -n "$ac_init_help" && exit $ac_status
  1760. if $ac_init_version; then
  1761. cat <<\_ACEOF
  1762. configure
  1763. generated by GNU Autoconf 2.71
  1764. Copyright (C) 2021 Free Software Foundation, Inc.
  1765. This configure script is free software; the Free Software Foundation
  1766. gives unlimited permission to copy, distribute and modify it.
  1767. _ACEOF
  1768. exit
  1769. fi
  1770. ## ------------------------ ##
  1771. ## Autoconf initialization. ##
  1772. ## ------------------------ ##
  1773. # ac_fn_c_try_compile LINENO
  1774. # --------------------------
  1775. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1776. ac_fn_c_try_compile ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. rm -f conftest.$ac_objext conftest.beam
  1780. if { { ac_try="$ac_compile"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. printf "%s\n" "$ac_try_echo"; } >&5
  1787. (eval "$ac_compile") 2>conftest.err
  1788. ac_status=$?
  1789. if test -s conftest.err; then
  1790. grep -v '^ *+' conftest.err >conftest.er1
  1791. cat conftest.er1 >&5
  1792. mv -f conftest.er1 conftest.err
  1793. fi
  1794. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1795. test $ac_status = 0; } && {
  1796. test -z "$ac_c_werror_flag" ||
  1797. test ! -s conftest.err
  1798. } && test -s conftest.$ac_objext
  1799. then :
  1800. ac_retval=0
  1801. else $as_nop
  1802. printf "%s\n" "$as_me: failed program was:" >&5
  1803. sed 's/^/| /' conftest.$ac_ext >&5
  1804. ac_retval=1
  1805. fi
  1806. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1807. as_fn_set_status $ac_retval
  1808. } # ac_fn_c_try_compile
  1809. # ac_fn_c_try_link LINENO
  1810. # -----------------------
  1811. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1812. ac_fn_c_try_link ()
  1813. {
  1814. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1815. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1816. if { { ac_try="$ac_link"
  1817. case "(($ac_try" in
  1818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1819. *) ac_try_echo=$ac_try;;
  1820. esac
  1821. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1822. printf "%s\n" "$ac_try_echo"; } >&5
  1823. (eval "$ac_link") 2>conftest.err
  1824. ac_status=$?
  1825. if test -s conftest.err; then
  1826. grep -v '^ *+' conftest.err >conftest.er1
  1827. cat conftest.er1 >&5
  1828. mv -f conftest.er1 conftest.err
  1829. fi
  1830. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1831. test $ac_status = 0; } && {
  1832. test -z "$ac_c_werror_flag" ||
  1833. test ! -s conftest.err
  1834. } && test -s conftest$ac_exeext && {
  1835. test "$cross_compiling" = yes ||
  1836. test -x conftest$ac_exeext
  1837. }
  1838. then :
  1839. ac_retval=0
  1840. else $as_nop
  1841. printf "%s\n" "$as_me: failed program was:" >&5
  1842. sed 's/^/| /' conftest.$ac_ext >&5
  1843. ac_retval=1
  1844. fi
  1845. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1846. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1847. # interfere with the next link command; also delete a directory that is
  1848. # left behind by Apple's compiler. We do this before executing the actions.
  1849. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1850. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1851. as_fn_set_status $ac_retval
  1852. } # ac_fn_c_try_link
  1853. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1854. # -------------------------------------------------------
  1855. # Tests whether HEADER exists and can be compiled using the include files in
  1856. # INCLUDES, setting the cache variable VAR accordingly.
  1857. ac_fn_c_check_header_compile ()
  1858. {
  1859. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1861. printf %s "checking for $2... " >&6; }
  1862. if eval test \${$3+y}
  1863. then :
  1864. printf %s "(cached) " >&6
  1865. else $as_nop
  1866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1867. /* end confdefs.h. */
  1868. $4
  1869. #include <$2>
  1870. _ACEOF
  1871. if ac_fn_c_try_compile "$LINENO"
  1872. then :
  1873. eval "$3=yes"
  1874. else $as_nop
  1875. eval "$3=no"
  1876. fi
  1877. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1878. fi
  1879. eval ac_res=\$$3
  1880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1881. printf "%s\n" "$ac_res" >&6; }
  1882. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1883. } # ac_fn_c_check_header_compile
  1884. # ac_fn_c_check_func LINENO FUNC VAR
  1885. # ----------------------------------
  1886. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1887. ac_fn_c_check_func ()
  1888. {
  1889. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1891. printf %s "checking for $2... " >&6; }
  1892. if eval test \${$3+y}
  1893. then :
  1894. printf %s "(cached) " >&6
  1895. else $as_nop
  1896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1897. /* end confdefs.h. */
  1898. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1899. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1900. #define $2 innocuous_$2
  1901. /* System header to define __stub macros and hopefully few prototypes,
  1902. which can conflict with char $2 (); below. */
  1903. #include <limits.h>
  1904. #undef $2
  1905. /* Override any GCC internal prototype to avoid an error.
  1906. Use char because int might match the return type of a GCC
  1907. builtin and then its argument prototype would still apply. */
  1908. #ifdef __cplusplus
  1909. extern "C"
  1910. #endif
  1911. char $2 ();
  1912. /* The GNU C library defines this for functions which it implements
  1913. to always fail with ENOSYS. Some functions are actually named
  1914. something starting with __ and the normal name is an alias. */
  1915. #if defined __stub_$2 || defined __stub___$2
  1916. choke me
  1917. #endif
  1918. int
  1919. main (void)
  1920. {
  1921. return $2 ();
  1922. ;
  1923. return 0;
  1924. }
  1925. _ACEOF
  1926. if ac_fn_c_try_link "$LINENO"
  1927. then :
  1928. eval "$3=yes"
  1929. else $as_nop
  1930. eval "$3=no"
  1931. fi
  1932. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1933. conftest$ac_exeext conftest.$ac_ext
  1934. fi
  1935. eval ac_res=\$$3
  1936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1937. printf "%s\n" "$ac_res" >&6; }
  1938. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1939. } # ac_fn_c_check_func
  1940. # ac_fn_cxx_try_compile LINENO
  1941. # ----------------------------
  1942. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1943. ac_fn_cxx_try_compile ()
  1944. {
  1945. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1946. rm -f conftest.$ac_objext conftest.beam
  1947. if { { ac_try="$ac_compile"
  1948. case "(($ac_try" in
  1949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1950. *) ac_try_echo=$ac_try;;
  1951. esac
  1952. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1953. printf "%s\n" "$ac_try_echo"; } >&5
  1954. (eval "$ac_compile") 2>conftest.err
  1955. ac_status=$?
  1956. if test -s conftest.err; then
  1957. grep -v '^ *+' conftest.err >conftest.er1
  1958. cat conftest.er1 >&5
  1959. mv -f conftest.er1 conftest.err
  1960. fi
  1961. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1962. test $ac_status = 0; } && {
  1963. test -z "$ac_cxx_werror_flag" ||
  1964. test ! -s conftest.err
  1965. } && test -s conftest.$ac_objext
  1966. then :
  1967. ac_retval=0
  1968. else $as_nop
  1969. printf "%s\n" "$as_me: failed program was:" >&5
  1970. sed 's/^/| /' conftest.$ac_ext >&5
  1971. ac_retval=1
  1972. fi
  1973. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1974. as_fn_set_status $ac_retval
  1975. } # ac_fn_cxx_try_compile
  1976. # ac_fn_cxx_try_cpp LINENO
  1977. # ------------------------
  1978. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1979. ac_fn_cxx_try_cpp ()
  1980. {
  1981. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1982. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1983. case "(($ac_try" in
  1984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1985. *) ac_try_echo=$ac_try;;
  1986. esac
  1987. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1988. printf "%s\n" "$ac_try_echo"; } >&5
  1989. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1990. ac_status=$?
  1991. if test -s conftest.err; then
  1992. grep -v '^ *+' conftest.err >conftest.er1
  1993. cat conftest.er1 >&5
  1994. mv -f conftest.er1 conftest.err
  1995. fi
  1996. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1997. test $ac_status = 0; } > conftest.i && {
  1998. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1999. test ! -s conftest.err
  2000. }
  2001. then :
  2002. ac_retval=0
  2003. else $as_nop
  2004. printf "%s\n" "$as_me: failed program was:" >&5
  2005. sed 's/^/| /' conftest.$ac_ext >&5
  2006. ac_retval=1
  2007. fi
  2008. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2009. as_fn_set_status $ac_retval
  2010. } # ac_fn_cxx_try_cpp
  2011. # ac_fn_cxx_try_link LINENO
  2012. # -------------------------
  2013. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2014. ac_fn_cxx_try_link ()
  2015. {
  2016. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2017. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2018. if { { ac_try="$ac_link"
  2019. case "(($ac_try" in
  2020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2021. *) ac_try_echo=$ac_try;;
  2022. esac
  2023. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2024. printf "%s\n" "$ac_try_echo"; } >&5
  2025. (eval "$ac_link") 2>conftest.err
  2026. ac_status=$?
  2027. if test -s conftest.err; then
  2028. grep -v '^ *+' conftest.err >conftest.er1
  2029. cat conftest.er1 >&5
  2030. mv -f conftest.er1 conftest.err
  2031. fi
  2032. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2033. test $ac_status = 0; } && {
  2034. test -z "$ac_cxx_werror_flag" ||
  2035. test ! -s conftest.err
  2036. } && test -s conftest$ac_exeext && {
  2037. test "$cross_compiling" = yes ||
  2038. test -x conftest$ac_exeext
  2039. }
  2040. then :
  2041. ac_retval=0
  2042. else $as_nop
  2043. printf "%s\n" "$as_me: failed program was:" >&5
  2044. sed 's/^/| /' conftest.$ac_ext >&5
  2045. ac_retval=1
  2046. fi
  2047. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2048. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2049. # interfere with the next link command; also delete a directory that is
  2050. # left behind by Apple's compiler. We do this before executing the actions.
  2051. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2052. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2053. as_fn_set_status $ac_retval
  2054. } # ac_fn_cxx_try_link
  2055. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2056. # -------------------------------------------
  2057. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2058. # variable VAR accordingly.
  2059. ac_fn_c_check_type ()
  2060. {
  2061. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2063. printf %s "checking for $2... " >&6; }
  2064. if eval test \${$3+y}
  2065. then :
  2066. printf %s "(cached) " >&6
  2067. else $as_nop
  2068. eval "$3=no"
  2069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2070. /* end confdefs.h. */
  2071. $4
  2072. int
  2073. main (void)
  2074. {
  2075. if (sizeof ($2))
  2076. return 0;
  2077. ;
  2078. return 0;
  2079. }
  2080. _ACEOF
  2081. if ac_fn_c_try_compile "$LINENO"
  2082. then :
  2083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2084. /* end confdefs.h. */
  2085. $4
  2086. int
  2087. main (void)
  2088. {
  2089. if (sizeof (($2)))
  2090. return 0;
  2091. ;
  2092. return 0;
  2093. }
  2094. _ACEOF
  2095. if ac_fn_c_try_compile "$LINENO"
  2096. then :
  2097. else $as_nop
  2098. eval "$3=yes"
  2099. fi
  2100. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2101. fi
  2102. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2103. fi
  2104. eval ac_res=\$$3
  2105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2106. printf "%s\n" "$ac_res" >&6; }
  2107. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2108. } # ac_fn_c_check_type
  2109. # ac_fn_c_try_cpp LINENO
  2110. # ----------------------
  2111. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2112. ac_fn_c_try_cpp ()
  2113. {
  2114. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2115. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2116. case "(($ac_try" in
  2117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2118. *) ac_try_echo=$ac_try;;
  2119. esac
  2120. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2121. printf "%s\n" "$ac_try_echo"; } >&5
  2122. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2123. ac_status=$?
  2124. if test -s conftest.err; then
  2125. grep -v '^ *+' conftest.err >conftest.er1
  2126. cat conftest.er1 >&5
  2127. mv -f conftest.er1 conftest.err
  2128. fi
  2129. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2130. test $ac_status = 0; } > conftest.i && {
  2131. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2132. test ! -s conftest.err
  2133. }
  2134. then :
  2135. ac_retval=0
  2136. else $as_nop
  2137. printf "%s\n" "$as_me: failed program was:" >&5
  2138. sed 's/^/| /' conftest.$ac_ext >&5
  2139. ac_retval=1
  2140. fi
  2141. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2142. as_fn_set_status $ac_retval
  2143. } # ac_fn_c_try_cpp
  2144. # ac_fn_c_try_run LINENO
  2145. # ----------------------
  2146. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2147. # executables *can* be run.
  2148. ac_fn_c_try_run ()
  2149. {
  2150. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2151. if { { ac_try="$ac_link"
  2152. case "(($ac_try" in
  2153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2154. *) ac_try_echo=$ac_try;;
  2155. esac
  2156. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2157. printf "%s\n" "$ac_try_echo"; } >&5
  2158. (eval "$ac_link") 2>&5
  2159. ac_status=$?
  2160. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2161. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2162. { { case "(($ac_try" in
  2163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2164. *) ac_try_echo=$ac_try;;
  2165. esac
  2166. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2167. printf "%s\n" "$ac_try_echo"; } >&5
  2168. (eval "$ac_try") 2>&5
  2169. ac_status=$?
  2170. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2171. test $ac_status = 0; }; }
  2172. then :
  2173. ac_retval=0
  2174. else $as_nop
  2175. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2176. printf "%s\n" "$as_me: failed program was:" >&5
  2177. sed 's/^/| /' conftest.$ac_ext >&5
  2178. ac_retval=$ac_status
  2179. fi
  2180. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2181. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2182. as_fn_set_status $ac_retval
  2183. } # ac_fn_c_try_run
  2184. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2185. # ----------------------------------------------------
  2186. # Tries to find if the field MEMBER exists in type AGGR, after including
  2187. # INCLUDES, setting cache variable VAR accordingly.
  2188. ac_fn_c_check_member ()
  2189. {
  2190. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2192. printf %s "checking for $2.$3... " >&6; }
  2193. if eval test \${$4+y}
  2194. then :
  2195. printf %s "(cached) " >&6
  2196. else $as_nop
  2197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2198. /* end confdefs.h. */
  2199. $5
  2200. int
  2201. main (void)
  2202. {
  2203. static $2 ac_aggr;
  2204. if (ac_aggr.$3)
  2205. return 0;
  2206. ;
  2207. return 0;
  2208. }
  2209. _ACEOF
  2210. if ac_fn_c_try_compile "$LINENO"
  2211. then :
  2212. eval "$4=yes"
  2213. else $as_nop
  2214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2215. /* end confdefs.h. */
  2216. $5
  2217. int
  2218. main (void)
  2219. {
  2220. static $2 ac_aggr;
  2221. if (sizeof ac_aggr.$3)
  2222. return 0;
  2223. ;
  2224. return 0;
  2225. }
  2226. _ACEOF
  2227. if ac_fn_c_try_compile "$LINENO"
  2228. then :
  2229. eval "$4=yes"
  2230. else $as_nop
  2231. eval "$4=no"
  2232. fi
  2233. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2234. fi
  2235. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2236. fi
  2237. eval ac_res=\$$4
  2238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2239. printf "%s\n" "$ac_res" >&6; }
  2240. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2241. } # ac_fn_c_check_member
  2242. ac_configure_args_raw=
  2243. for ac_arg
  2244. do
  2245. case $ac_arg in
  2246. *\'*)
  2247. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2248. esac
  2249. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2250. done
  2251. case $ac_configure_args_raw in
  2252. *$as_nl*)
  2253. ac_safe_unquote= ;;
  2254. *)
  2255. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2256. ac_unsafe_a="$ac_unsafe_z#~"
  2257. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2258. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2259. esac
  2260. cat >config.log <<_ACEOF
  2261. This file contains any messages produced by compilers while
  2262. running configure, to aid debugging if configure makes a mistake.
  2263. It was created by $as_me, which was
  2264. generated by GNU Autoconf 2.71. Invocation command line was
  2265. $ $0$ac_configure_args_raw
  2266. _ACEOF
  2267. exec 5>>config.log
  2268. {
  2269. cat <<_ASUNAME
  2270. ## --------- ##
  2271. ## Platform. ##
  2272. ## --------- ##
  2273. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2274. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2275. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2276. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2277. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2278. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2279. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2280. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2281. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2282. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2283. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2284. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2285. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2286. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2287. _ASUNAME
  2288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2289. for as_dir in $PATH
  2290. do
  2291. IFS=$as_save_IFS
  2292. case $as_dir in #(((
  2293. '') as_dir=./ ;;
  2294. */) ;;
  2295. *) as_dir=$as_dir/ ;;
  2296. esac
  2297. printf "%s\n" "PATH: $as_dir"
  2298. done
  2299. IFS=$as_save_IFS
  2300. } >&5
  2301. cat >&5 <<_ACEOF
  2302. ## ----------- ##
  2303. ## Core tests. ##
  2304. ## ----------- ##
  2305. _ACEOF
  2306. # Keep a trace of the command line.
  2307. # Strip out --no-create and --no-recursion so they do not pile up.
  2308. # Strip out --silent because we don't want to record it for future runs.
  2309. # Also quote any args containing shell meta-characters.
  2310. # Make two passes to allow for proper duplicate-argument suppression.
  2311. ac_configure_args=
  2312. ac_configure_args0=
  2313. ac_configure_args1=
  2314. ac_must_keep_next=false
  2315. for ac_pass in 1 2
  2316. do
  2317. for ac_arg
  2318. do
  2319. case $ac_arg in
  2320. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2321. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2322. | -silent | --silent | --silen | --sile | --sil)
  2323. continue ;;
  2324. *\'*)
  2325. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2326. esac
  2327. case $ac_pass in
  2328. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2329. 2)
  2330. as_fn_append ac_configure_args1 " '$ac_arg'"
  2331. if test $ac_must_keep_next = true; then
  2332. ac_must_keep_next=false # Got value, back to normal.
  2333. else
  2334. case $ac_arg in
  2335. *=* | --config-cache | -C | -disable-* | --disable-* \
  2336. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2337. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2338. | -with-* | --with-* | -without-* | --without-* | --x)
  2339. case "$ac_configure_args0 " in
  2340. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2341. esac
  2342. ;;
  2343. -* ) ac_must_keep_next=true ;;
  2344. esac
  2345. fi
  2346. as_fn_append ac_configure_args " '$ac_arg'"
  2347. ;;
  2348. esac
  2349. done
  2350. done
  2351. { ac_configure_args0=; unset ac_configure_args0;}
  2352. { ac_configure_args1=; unset ac_configure_args1;}
  2353. # When interrupted or exit'd, cleanup temporary files, and complete
  2354. # config.log. We remove comments because anyway the quotes in there
  2355. # would cause problems or look ugly.
  2356. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2357. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2358. trap 'exit_status=$?
  2359. # Sanitize IFS.
  2360. IFS=" "" $as_nl"
  2361. # Save into config.log some information that might help in debugging.
  2362. {
  2363. echo
  2364. printf "%s\n" "## ---------------- ##
  2365. ## Cache variables. ##
  2366. ## ---------------- ##"
  2367. echo
  2368. # The following way of writing the cache mishandles newlines in values,
  2369. (
  2370. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2371. eval ac_val=\$$ac_var
  2372. case $ac_val in #(
  2373. *${as_nl}*)
  2374. case $ac_var in #(
  2375. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2376. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2377. esac
  2378. case $ac_var in #(
  2379. _ | IFS | as_nl) ;; #(
  2380. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2381. *) { eval $ac_var=; unset $ac_var;} ;;
  2382. esac ;;
  2383. esac
  2384. done
  2385. (set) 2>&1 |
  2386. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2387. *${as_nl}ac_space=\ *)
  2388. sed -n \
  2389. "s/'\''/'\''\\\\'\'''\''/g;
  2390. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2391. ;; #(
  2392. *)
  2393. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2394. ;;
  2395. esac |
  2396. sort
  2397. )
  2398. echo
  2399. printf "%s\n" "## ----------------- ##
  2400. ## Output variables. ##
  2401. ## ----------------- ##"
  2402. echo
  2403. for ac_var in $ac_subst_vars
  2404. do
  2405. eval ac_val=\$$ac_var
  2406. case $ac_val in
  2407. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2408. esac
  2409. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2410. done | sort
  2411. echo
  2412. if test -n "$ac_subst_files"; then
  2413. printf "%s\n" "## ------------------- ##
  2414. ## File substitutions. ##
  2415. ## ------------------- ##"
  2416. echo
  2417. for ac_var in $ac_subst_files
  2418. do
  2419. eval ac_val=\$$ac_var
  2420. case $ac_val in
  2421. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2422. esac
  2423. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2424. done | sort
  2425. echo
  2426. fi
  2427. if test -s confdefs.h; then
  2428. printf "%s\n" "## ----------- ##
  2429. ## confdefs.h. ##
  2430. ## ----------- ##"
  2431. echo
  2432. cat confdefs.h
  2433. echo
  2434. fi
  2435. test "$ac_signal" != 0 &&
  2436. printf "%s\n" "$as_me: caught signal $ac_signal"
  2437. printf "%s\n" "$as_me: exit $exit_status"
  2438. } >&5
  2439. rm -f core *.core core.conftest.* &&
  2440. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2441. exit $exit_status
  2442. ' 0
  2443. for ac_signal in 1 2 13 15; do
  2444. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2445. done
  2446. ac_signal=0
  2447. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2448. rm -f -r conftest* confdefs.h
  2449. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2450. # Predefined preprocessor variables.
  2451. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2452. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2453. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2454. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2455. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2456. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2457. # Let the site file select an alternate cache file if it wants to.
  2458. # Prefer an explicitly selected file to automatically selected ones.
  2459. if test -n "$CONFIG_SITE"; then
  2460. ac_site_files="$CONFIG_SITE"
  2461. elif test "x$prefix" != xNONE; then
  2462. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2463. else
  2464. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2465. fi
  2466. for ac_site_file in $ac_site_files
  2467. do
  2468. case $ac_site_file in #(
  2469. */*) :
  2470. ;; #(
  2471. *) :
  2472. ac_site_file=./$ac_site_file ;;
  2473. esac
  2474. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2476. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2477. sed 's/^/| /' "$ac_site_file" >&5
  2478. . "$ac_site_file" \
  2479. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2480. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2481. as_fn_error $? "failed to load site script $ac_site_file
  2482. See \`config.log' for more details" "$LINENO" 5; }
  2483. fi
  2484. done
  2485. if test -r "$cache_file"; then
  2486. # Some versions of bash will fail to source /dev/null (special files
  2487. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2488. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2490. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2491. case $cache_file in
  2492. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2493. *) . "./$cache_file";;
  2494. esac
  2495. fi
  2496. else
  2497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2498. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2499. >$cache_file
  2500. fi
  2501. # Test code for whether the C compiler supports C89 (global declarations)
  2502. ac_c_conftest_c89_globals='
  2503. /* Does the compiler advertise C89 conformance?
  2504. Do not test the value of __STDC__, because some compilers set it to 0
  2505. while being otherwise adequately conformant. */
  2506. #if !defined __STDC__
  2507. # error "Compiler does not advertise C89 conformance"
  2508. #endif
  2509. #include <stddef.h>
  2510. #include <stdarg.h>
  2511. struct stat;
  2512. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2513. struct buf { int x; };
  2514. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2515. static char *e (p, i)
  2516. char **p;
  2517. int i;
  2518. {
  2519. return p[i];
  2520. }
  2521. static char *f (char * (*g) (char **, int), char **p, ...)
  2522. {
  2523. char *s;
  2524. va_list v;
  2525. va_start (v,p);
  2526. s = g (p, va_arg (v,int));
  2527. va_end (v);
  2528. return s;
  2529. }
  2530. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2531. function prototypes and stuff, but not \xHH hex character constants.
  2532. These do not provoke an error unfortunately, instead are silently treated
  2533. as an "x". The following induces an error, until -std is added to get
  2534. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2535. array size at least. It is necessary to write \x00 == 0 to get something
  2536. that is true only with -std. */
  2537. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2538. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2539. inside strings and character constants. */
  2540. #define FOO(x) '\''x'\''
  2541. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2542. int test (int i, double x);
  2543. struct s1 {int (*f) (int a);};
  2544. struct s2 {int (*f) (double a);};
  2545. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2546. int, int);'
  2547. # Test code for whether the C compiler supports C89 (body of main).
  2548. ac_c_conftest_c89_main='
  2549. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2550. '
  2551. # Test code for whether the C compiler supports C99 (global declarations)
  2552. ac_c_conftest_c99_globals='
  2553. // Does the compiler advertise C99 conformance?
  2554. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2555. # error "Compiler does not advertise C99 conformance"
  2556. #endif
  2557. #include <stdbool.h>
  2558. extern int puts (const char *);
  2559. extern int printf (const char *, ...);
  2560. extern int dprintf (int, const char *, ...);
  2561. extern void *malloc (size_t);
  2562. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2563. // dprintf is used instead of fprintf to avoid needing to declare
  2564. // FILE and stderr.
  2565. #define debug(...) dprintf (2, __VA_ARGS__)
  2566. #define showlist(...) puts (#__VA_ARGS__)
  2567. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2568. static void
  2569. test_varargs_macros (void)
  2570. {
  2571. int x = 1234;
  2572. int y = 5678;
  2573. debug ("Flag");
  2574. debug ("X = %d\n", x);
  2575. showlist (The first, second, and third items.);
  2576. report (x>y, "x is %d but y is %d", x, y);
  2577. }
  2578. // Check long long types.
  2579. #define BIG64 18446744073709551615ull
  2580. #define BIG32 4294967295ul
  2581. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2582. #if !BIG_OK
  2583. #error "your preprocessor is broken"
  2584. #endif
  2585. #if BIG_OK
  2586. #else
  2587. #error "your preprocessor is broken"
  2588. #endif
  2589. static long long int bignum = -9223372036854775807LL;
  2590. static unsigned long long int ubignum = BIG64;
  2591. struct incomplete_array
  2592. {
  2593. int datasize;
  2594. double data[];
  2595. };
  2596. struct named_init {
  2597. int number;
  2598. const wchar_t *name;
  2599. double average;
  2600. };
  2601. typedef const char *ccp;
  2602. static inline int
  2603. test_restrict (ccp restrict text)
  2604. {
  2605. // See if C++-style comments work.
  2606. // Iterate through items via the restricted pointer.
  2607. // Also check for declarations in for loops.
  2608. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2609. continue;
  2610. return 0;
  2611. }
  2612. // Check varargs and va_copy.
  2613. static bool
  2614. test_varargs (const char *format, ...)
  2615. {
  2616. va_list args;
  2617. va_start (args, format);
  2618. va_list args_copy;
  2619. va_copy (args_copy, args);
  2620. const char *str = "";
  2621. int number = 0;
  2622. float fnumber = 0;
  2623. while (*format)
  2624. {
  2625. switch (*format++)
  2626. {
  2627. case '\''s'\'': // string
  2628. str = va_arg (args_copy, const char *);
  2629. break;
  2630. case '\''d'\'': // int
  2631. number = va_arg (args_copy, int);
  2632. break;
  2633. case '\''f'\'': // float
  2634. fnumber = va_arg (args_copy, double);
  2635. break;
  2636. default:
  2637. break;
  2638. }
  2639. }
  2640. va_end (args_copy);
  2641. va_end (args);
  2642. return *str && number && fnumber;
  2643. }
  2644. '
  2645. # Test code for whether the C compiler supports C99 (body of main).
  2646. ac_c_conftest_c99_main='
  2647. // Check bool.
  2648. _Bool success = false;
  2649. success |= (argc != 0);
  2650. // Check restrict.
  2651. if (test_restrict ("String literal") == 0)
  2652. success = true;
  2653. char *restrict newvar = "Another string";
  2654. // Check varargs.
  2655. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2656. test_varargs_macros ();
  2657. // Check flexible array members.
  2658. struct incomplete_array *ia =
  2659. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2660. ia->datasize = 10;
  2661. for (int i = 0; i < ia->datasize; ++i)
  2662. ia->data[i] = i * 1.234;
  2663. // Check named initializers.
  2664. struct named_init ni = {
  2665. .number = 34,
  2666. .name = L"Test wide string",
  2667. .average = 543.34343,
  2668. };
  2669. ni.number = 58;
  2670. int dynamic_array[ni.number];
  2671. dynamic_array[0] = argv[0][0];
  2672. dynamic_array[ni.number - 1] = 543;
  2673. // work around unused variable warnings
  2674. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2675. || dynamic_array[ni.number - 1] != 543);
  2676. '
  2677. # Test code for whether the C compiler supports C11 (global declarations)
  2678. ac_c_conftest_c11_globals='
  2679. // Does the compiler advertise C11 conformance?
  2680. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2681. # error "Compiler does not advertise C11 conformance"
  2682. #endif
  2683. // Check _Alignas.
  2684. char _Alignas (double) aligned_as_double;
  2685. char _Alignas (0) no_special_alignment;
  2686. extern char aligned_as_int;
  2687. char _Alignas (0) _Alignas (int) aligned_as_int;
  2688. // Check _Alignof.
  2689. enum
  2690. {
  2691. int_alignment = _Alignof (int),
  2692. int_array_alignment = _Alignof (int[100]),
  2693. char_alignment = _Alignof (char)
  2694. };
  2695. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2696. // Check _Noreturn.
  2697. int _Noreturn does_not_return (void) { for (;;) continue; }
  2698. // Check _Static_assert.
  2699. struct test_static_assert
  2700. {
  2701. int x;
  2702. _Static_assert (sizeof (int) <= sizeof (long int),
  2703. "_Static_assert does not work in struct");
  2704. long int y;
  2705. };
  2706. // Check UTF-8 literals.
  2707. #define u8 syntax error!
  2708. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2709. // Check duplicate typedefs.
  2710. typedef long *long_ptr;
  2711. typedef long int *long_ptr;
  2712. typedef long_ptr long_ptr;
  2713. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2714. struct anonymous
  2715. {
  2716. union {
  2717. struct { int i; int j; };
  2718. struct { int k; long int l; } w;
  2719. };
  2720. int m;
  2721. } v1;
  2722. '
  2723. # Test code for whether the C compiler supports C11 (body of main).
  2724. ac_c_conftest_c11_main='
  2725. _Static_assert ((offsetof (struct anonymous, i)
  2726. == offsetof (struct anonymous, w.k)),
  2727. "Anonymous union alignment botch");
  2728. v1.i = 2;
  2729. v1.w.k = 5;
  2730. ok |= v1.i != 5;
  2731. '
  2732. # Test code for whether the C compiler supports C11 (complete).
  2733. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2734. ${ac_c_conftest_c99_globals}
  2735. ${ac_c_conftest_c11_globals}
  2736. int
  2737. main (int argc, char **argv)
  2738. {
  2739. int ok = 0;
  2740. ${ac_c_conftest_c89_main}
  2741. ${ac_c_conftest_c99_main}
  2742. ${ac_c_conftest_c11_main}
  2743. return ok;
  2744. }
  2745. "
  2746. # Test code for whether the C compiler supports C99 (complete).
  2747. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2748. ${ac_c_conftest_c99_globals}
  2749. int
  2750. main (int argc, char **argv)
  2751. {
  2752. int ok = 0;
  2753. ${ac_c_conftest_c89_main}
  2754. ${ac_c_conftest_c99_main}
  2755. return ok;
  2756. }
  2757. "
  2758. # Test code for whether the C compiler supports C89 (complete).
  2759. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2760. int
  2761. main (int argc, char **argv)
  2762. {
  2763. int ok = 0;
  2764. ${ac_c_conftest_c89_main}
  2765. return ok;
  2766. }
  2767. "
  2768. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2769. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2770. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2771. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2772. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2773. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2774. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2775. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2776. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2777. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2778. ac_cxx_conftest_cxx98_globals='
  2779. // Does the compiler advertise C++98 conformance?
  2780. #if !defined __cplusplus || __cplusplus < 199711L
  2781. # error "Compiler does not advertise C++98 conformance"
  2782. #endif
  2783. // These inclusions are to reject old compilers that
  2784. // lack the unsuffixed header files.
  2785. #include <cstdlib>
  2786. #include <exception>
  2787. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2788. extern void assert (int);
  2789. namespace std {
  2790. extern int strcmp (const char *, const char *);
  2791. }
  2792. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2793. using std::exception;
  2794. using std::strcmp;
  2795. namespace {
  2796. void test_exception_syntax()
  2797. {
  2798. try {
  2799. throw "test";
  2800. } catch (const char *s) {
  2801. // Extra parentheses suppress a warning when building autoconf itself,
  2802. // due to lint rules shared with more typical C programs.
  2803. assert (!(strcmp) (s, "test"));
  2804. }
  2805. }
  2806. template <typename T> struct test_template
  2807. {
  2808. T const val;
  2809. explicit test_template(T t) : val(t) {}
  2810. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2811. };
  2812. } // anonymous namespace
  2813. '
  2814. # Test code for whether the C++ compiler supports C++98 (body of main)
  2815. ac_cxx_conftest_cxx98_main='
  2816. assert (argc);
  2817. assert (! argv[0]);
  2818. {
  2819. test_exception_syntax ();
  2820. test_template<double> tt (2.0);
  2821. assert (tt.add (4) == 6.0);
  2822. assert (true && !false);
  2823. }
  2824. '
  2825. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2826. ac_cxx_conftest_cxx11_globals='
  2827. // Does the compiler advertise C++ 2011 conformance?
  2828. #if !defined __cplusplus || __cplusplus < 201103L
  2829. # error "Compiler does not advertise C++11 conformance"
  2830. #endif
  2831. namespace cxx11test
  2832. {
  2833. constexpr int get_val() { return 20; }
  2834. struct testinit
  2835. {
  2836. int i;
  2837. double d;
  2838. };
  2839. class delegate
  2840. {
  2841. public:
  2842. delegate(int n) : n(n) {}
  2843. delegate(): delegate(2354) {}
  2844. virtual int getval() { return this->n; };
  2845. protected:
  2846. int n;
  2847. };
  2848. class overridden : public delegate
  2849. {
  2850. public:
  2851. overridden(int n): delegate(n) {}
  2852. virtual int getval() override final { return this->n * 2; }
  2853. };
  2854. class nocopy
  2855. {
  2856. public:
  2857. nocopy(int i): i(i) {}
  2858. nocopy() = default;
  2859. nocopy(const nocopy&) = delete;
  2860. nocopy & operator=(const nocopy&) = delete;
  2861. private:
  2862. int i;
  2863. };
  2864. // for testing lambda expressions
  2865. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2866. {
  2867. return f(v);
  2868. }
  2869. // for testing variadic templates and trailing return types
  2870. template <typename V> auto sum(V first) -> V
  2871. {
  2872. return first;
  2873. }
  2874. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2875. {
  2876. return first + sum(rest...);
  2877. }
  2878. }
  2879. '
  2880. # Test code for whether the C++ compiler supports C++11 (body of main)
  2881. ac_cxx_conftest_cxx11_main='
  2882. {
  2883. // Test auto and decltype
  2884. auto a1 = 6538;
  2885. auto a2 = 48573953.4;
  2886. auto a3 = "String literal";
  2887. int total = 0;
  2888. for (auto i = a3; *i; ++i) { total += *i; }
  2889. decltype(a2) a4 = 34895.034;
  2890. }
  2891. {
  2892. // Test constexpr
  2893. short sa[cxx11test::get_val()] = { 0 };
  2894. }
  2895. {
  2896. // Test initializer lists
  2897. cxx11test::testinit il = { 4323, 435234.23544 };
  2898. }
  2899. {
  2900. // Test range-based for
  2901. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2902. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2903. for (auto &x : array) { x += 23; }
  2904. }
  2905. {
  2906. // Test lambda expressions
  2907. using cxx11test::eval;
  2908. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2909. double d = 2.0;
  2910. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2911. assert (d == 5.0);
  2912. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2913. assert (d == 5.0);
  2914. }
  2915. {
  2916. // Test use of variadic templates
  2917. using cxx11test::sum;
  2918. auto a = sum(1);
  2919. auto b = sum(1, 2);
  2920. auto c = sum(1.0, 2.0, 3.0);
  2921. }
  2922. {
  2923. // Test constructor delegation
  2924. cxx11test::delegate d1;
  2925. cxx11test::delegate d2();
  2926. cxx11test::delegate d3(45);
  2927. }
  2928. {
  2929. // Test override and final
  2930. cxx11test::overridden o1(55464);
  2931. }
  2932. {
  2933. // Test nullptr
  2934. char *c = nullptr;
  2935. }
  2936. {
  2937. // Test template brackets
  2938. test_template<::test_template<int>> v(test_template<int>(12));
  2939. }
  2940. {
  2941. // Unicode literals
  2942. char const *utf8 = u8"UTF-8 string \u2500";
  2943. char16_t const *utf16 = u"UTF-8 string \u2500";
  2944. char32_t const *utf32 = U"UTF-32 string \u2500";
  2945. }
  2946. '
  2947. # Test code for whether the C compiler supports C++11 (complete).
  2948. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2949. ${ac_cxx_conftest_cxx11_globals}
  2950. int
  2951. main (int argc, char **argv)
  2952. {
  2953. int ok = 0;
  2954. ${ac_cxx_conftest_cxx98_main}
  2955. ${ac_cxx_conftest_cxx11_main}
  2956. return ok;
  2957. }
  2958. "
  2959. # Test code for whether the C compiler supports C++98 (complete).
  2960. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2961. int
  2962. main (int argc, char **argv)
  2963. {
  2964. int ok = 0;
  2965. ${ac_cxx_conftest_cxx98_main}
  2966. return ok;
  2967. }
  2968. "
  2969. # Auxiliary files required by this configure script.
  2970. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2971. # Locations in which to look for auxiliary files.
  2972. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2973. # Search for a directory containing all of the required auxiliary files,
  2974. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2975. # If we don't find one directory that contains all the files we need,
  2976. # we report the set of missing files from the *first* directory in
  2977. # $ac_aux_dir_candidates and give up.
  2978. ac_missing_aux_files=""
  2979. ac_first_candidate=:
  2980. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2982. as_found=false
  2983. for as_dir in $ac_aux_dir_candidates
  2984. do
  2985. IFS=$as_save_IFS
  2986. case $as_dir in #(((
  2987. '') as_dir=./ ;;
  2988. */) ;;
  2989. *) as_dir=$as_dir/ ;;
  2990. esac
  2991. as_found=:
  2992. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2993. ac_aux_dir_found=yes
  2994. ac_install_sh=
  2995. for ac_aux in $ac_aux_files
  2996. do
  2997. # As a special case, if "install-sh" is required, that requirement
  2998. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2999. # and $ac_install_sh is set appropriately for whichever one is found.
  3000. if test x"$ac_aux" = x"install-sh"
  3001. then
  3002. if test -f "${as_dir}install-sh"; then
  3003. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3004. ac_install_sh="${as_dir}install-sh -c"
  3005. elif test -f "${as_dir}install.sh"; then
  3006. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3007. ac_install_sh="${as_dir}install.sh -c"
  3008. elif test -f "${as_dir}shtool"; then
  3009. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3010. ac_install_sh="${as_dir}shtool install -c"
  3011. else
  3012. ac_aux_dir_found=no
  3013. if $ac_first_candidate; then
  3014. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3015. else
  3016. break
  3017. fi
  3018. fi
  3019. else
  3020. if test -f "${as_dir}${ac_aux}"; then
  3021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3022. else
  3023. ac_aux_dir_found=no
  3024. if $ac_first_candidate; then
  3025. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3026. else
  3027. break
  3028. fi
  3029. fi
  3030. fi
  3031. done
  3032. if test "$ac_aux_dir_found" = yes; then
  3033. ac_aux_dir="$as_dir"
  3034. break
  3035. fi
  3036. ac_first_candidate=false
  3037. as_found=false
  3038. done
  3039. IFS=$as_save_IFS
  3040. if $as_found
  3041. then :
  3042. else $as_nop
  3043. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3044. fi
  3045. # These three variables are undocumented and unsupported,
  3046. # and are intended to be withdrawn in a future Autoconf release.
  3047. # They can cause serious problems if a builder's source tree is in a directory
  3048. # whose full name contains unusual characters.
  3049. if test -f "${ac_aux_dir}config.guess"; then
  3050. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3051. fi
  3052. if test -f "${ac_aux_dir}config.sub"; then
  3053. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3054. fi
  3055. if test -f "$ac_aux_dir/configure"; then
  3056. ac_configure="$SHELL ${ac_aux_dir}configure"
  3057. fi
  3058. # Check that the precious variables saved in the cache have kept the same
  3059. # value.
  3060. ac_cache_corrupted=false
  3061. for ac_var in $ac_precious_vars; do
  3062. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3063. eval ac_new_set=\$ac_env_${ac_var}_set
  3064. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3065. eval ac_new_val=\$ac_env_${ac_var}_value
  3066. case $ac_old_set,$ac_new_set in
  3067. set,)
  3068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3069. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3070. ac_cache_corrupted=: ;;
  3071. ,set)
  3072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3073. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3074. ac_cache_corrupted=: ;;
  3075. ,);;
  3076. *)
  3077. if test "x$ac_old_val" != "x$ac_new_val"; then
  3078. # differences in whitespace do not lead to failure.
  3079. ac_old_val_w=`echo x $ac_old_val`
  3080. ac_new_val_w=`echo x $ac_new_val`
  3081. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3083. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3084. ac_cache_corrupted=:
  3085. else
  3086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3087. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3088. eval $ac_var=\$ac_old_val
  3089. fi
  3090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3091. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3093. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3094. fi;;
  3095. esac
  3096. # Pass precious variables to config.status.
  3097. if test "$ac_new_set" = set; then
  3098. case $ac_new_val in
  3099. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3100. *) ac_arg=$ac_var=$ac_new_val ;;
  3101. esac
  3102. case " $ac_configure_args " in
  3103. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3104. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3105. esac
  3106. fi
  3107. done
  3108. if $ac_cache_corrupted; then
  3109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3110. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3112. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3113. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3114. and start over" "$LINENO" 5
  3115. fi
  3116. ## -------------------- ##
  3117. ## Main body of script. ##
  3118. ## -------------------- ##
  3119. ac_ext=c
  3120. ac_cpp='$CPP $CPPFLAGS'
  3121. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3122. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3123. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3124. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3125. orig_CFLAGS="$CFLAGS"
  3126. # See docs/release_checklist.md
  3127. SDL_MAJOR_VERSION=2
  3128. SDL_MINOR_VERSION=24
  3129. SDL_MICRO_VERSION=0
  3130. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3131. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3132. case "$SDL_MINOR_VERSION" in #(
  3133. *[02468]) :
  3134. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3135. *) :
  3136. SDL_INTERFACE_AGE=0 ;; #(
  3137. *) :
  3138. ;;
  3139. esac
  3140. # libtool versioning
  3141. case `pwd` in
  3142. *\ * | *\ *)
  3143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3144. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3145. esac
  3146. macro_version='2.4.6'
  3147. macro_revision='2.4.6'
  3148. ltmain=$ac_aux_dir/ltmain.sh
  3149. # Make sure we can run config.sub.
  3150. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3151. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3153. printf %s "checking build system type... " >&6; }
  3154. if test ${ac_cv_build+y}
  3155. then :
  3156. printf %s "(cached) " >&6
  3157. else $as_nop
  3158. ac_build_alias=$build_alias
  3159. test "x$ac_build_alias" = x &&
  3160. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3161. test "x$ac_build_alias" = x &&
  3162. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3163. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3164. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3165. fi
  3166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3167. printf "%s\n" "$ac_cv_build" >&6; }
  3168. case $ac_cv_build in
  3169. *-*-*) ;;
  3170. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3171. esac
  3172. build=$ac_cv_build
  3173. ac_save_IFS=$IFS; IFS='-'
  3174. set x $ac_cv_build
  3175. shift
  3176. build_cpu=$1
  3177. build_vendor=$2
  3178. shift; shift
  3179. # Remember, the first character of IFS is used to create $*,
  3180. # except with old shells:
  3181. build_os=$*
  3182. IFS=$ac_save_IFS
  3183. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3185. printf %s "checking host system type... " >&6; }
  3186. if test ${ac_cv_host+y}
  3187. then :
  3188. printf %s "(cached) " >&6
  3189. else $as_nop
  3190. if test "x$host_alias" = x; then
  3191. ac_cv_host=$ac_cv_build
  3192. else
  3193. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3194. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3195. fi
  3196. fi
  3197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3198. printf "%s\n" "$ac_cv_host" >&6; }
  3199. case $ac_cv_host in
  3200. *-*-*) ;;
  3201. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3202. esac
  3203. host=$ac_cv_host
  3204. ac_save_IFS=$IFS; IFS='-'
  3205. set x $ac_cv_host
  3206. shift
  3207. host_cpu=$1
  3208. host_vendor=$2
  3209. shift; shift
  3210. # Remember, the first character of IFS is used to create $*,
  3211. # except with old shells:
  3212. host_os=$*
  3213. IFS=$ac_save_IFS
  3214. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3215. # Backslashify metacharacters that are still active within
  3216. # double-quoted strings.
  3217. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3218. # Same as above, but do not quote variable references.
  3219. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3220. # Sed substitution to delay expansion of an escaped shell variable in a
  3221. # double_quote_subst'ed string.
  3222. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3223. # Sed substitution to delay expansion of an escaped single quote.
  3224. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3225. # Sed substitution to avoid accidental globbing in evaled expressions
  3226. no_glob_subst='s/\*/\\\*/g'
  3227. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3228. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3229. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3231. printf %s "checking how to print strings... " >&6; }
  3232. # Test print first, because it will be a builtin if present.
  3233. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3234. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3235. ECHO='print -r --'
  3236. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3237. ECHO='printf %s\n'
  3238. else
  3239. # Use this function as a fallback that always works.
  3240. func_fallback_echo ()
  3241. {
  3242. eval 'cat <<_LTECHO_EOF
  3243. $1
  3244. _LTECHO_EOF'
  3245. }
  3246. ECHO='func_fallback_echo'
  3247. fi
  3248. # func_echo_all arg...
  3249. # Invoke $ECHO with all args, space-separated.
  3250. func_echo_all ()
  3251. {
  3252. $ECHO ""
  3253. }
  3254. case $ECHO in
  3255. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3256. printf "%s\n" "printf" >&6; } ;;
  3257. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3258. printf "%s\n" "print -r" >&6; } ;;
  3259. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3260. printf "%s\n" "cat" >&6; } ;;
  3261. esac
  3262. ac_ext=c
  3263. ac_cpp='$CPP $CPPFLAGS'
  3264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3267. if test -n "$ac_tool_prefix"; then
  3268. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3269. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3271. printf %s "checking for $ac_word... " >&6; }
  3272. if test ${ac_cv_prog_CC+y}
  3273. then :
  3274. printf %s "(cached) " >&6
  3275. else $as_nop
  3276. if test -n "$CC"; then
  3277. ac_cv_prog_CC="$CC" # Let the user override the test.
  3278. else
  3279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3280. for as_dir in $PATH
  3281. do
  3282. IFS=$as_save_IFS
  3283. case $as_dir in #(((
  3284. '') as_dir=./ ;;
  3285. */) ;;
  3286. *) as_dir=$as_dir/ ;;
  3287. esac
  3288. for ac_exec_ext in '' $ac_executable_extensions; do
  3289. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3290. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3291. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3292. break 2
  3293. fi
  3294. done
  3295. done
  3296. IFS=$as_save_IFS
  3297. fi
  3298. fi
  3299. CC=$ac_cv_prog_CC
  3300. if test -n "$CC"; then
  3301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3302. printf "%s\n" "$CC" >&6; }
  3303. else
  3304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3305. printf "%s\n" "no" >&6; }
  3306. fi
  3307. fi
  3308. if test -z "$ac_cv_prog_CC"; then
  3309. ac_ct_CC=$CC
  3310. # Extract the first word of "gcc", so it can be a program name with args.
  3311. set dummy gcc; ac_word=$2
  3312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3313. printf %s "checking for $ac_word... " >&6; }
  3314. if test ${ac_cv_prog_ac_ct_CC+y}
  3315. then :
  3316. printf %s "(cached) " >&6
  3317. else $as_nop
  3318. if test -n "$ac_ct_CC"; then
  3319. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3320. else
  3321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3322. for as_dir in $PATH
  3323. do
  3324. IFS=$as_save_IFS
  3325. case $as_dir in #(((
  3326. '') as_dir=./ ;;
  3327. */) ;;
  3328. *) as_dir=$as_dir/ ;;
  3329. esac
  3330. for ac_exec_ext in '' $ac_executable_extensions; do
  3331. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3332. ac_cv_prog_ac_ct_CC="gcc"
  3333. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3334. break 2
  3335. fi
  3336. done
  3337. done
  3338. IFS=$as_save_IFS
  3339. fi
  3340. fi
  3341. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3342. if test -n "$ac_ct_CC"; then
  3343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3344. printf "%s\n" "$ac_ct_CC" >&6; }
  3345. else
  3346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3347. printf "%s\n" "no" >&6; }
  3348. fi
  3349. if test "x$ac_ct_CC" = x; then
  3350. CC=""
  3351. else
  3352. case $cross_compiling:$ac_tool_warned in
  3353. yes:)
  3354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3355. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3356. ac_tool_warned=yes ;;
  3357. esac
  3358. CC=$ac_ct_CC
  3359. fi
  3360. else
  3361. CC="$ac_cv_prog_CC"
  3362. fi
  3363. if test -z "$CC"; then
  3364. if test -n "$ac_tool_prefix"; then
  3365. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3366. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3368. printf %s "checking for $ac_word... " >&6; }
  3369. if test ${ac_cv_prog_CC+y}
  3370. then :
  3371. printf %s "(cached) " >&6
  3372. else $as_nop
  3373. if test -n "$CC"; then
  3374. ac_cv_prog_CC="$CC" # Let the user override the test.
  3375. else
  3376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3377. for as_dir in $PATH
  3378. do
  3379. IFS=$as_save_IFS
  3380. case $as_dir in #(((
  3381. '') as_dir=./ ;;
  3382. */) ;;
  3383. *) as_dir=$as_dir/ ;;
  3384. esac
  3385. for ac_exec_ext in '' $ac_executable_extensions; do
  3386. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3387. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3388. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3389. break 2
  3390. fi
  3391. done
  3392. done
  3393. IFS=$as_save_IFS
  3394. fi
  3395. fi
  3396. CC=$ac_cv_prog_CC
  3397. if test -n "$CC"; then
  3398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3399. printf "%s\n" "$CC" >&6; }
  3400. else
  3401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3402. printf "%s\n" "no" >&6; }
  3403. fi
  3404. fi
  3405. fi
  3406. if test -z "$CC"; then
  3407. # Extract the first word of "cc", so it can be a program name with args.
  3408. set dummy cc; ac_word=$2
  3409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3410. printf %s "checking for $ac_word... " >&6; }
  3411. if test ${ac_cv_prog_CC+y}
  3412. then :
  3413. printf %s "(cached) " >&6
  3414. else $as_nop
  3415. if test -n "$CC"; then
  3416. ac_cv_prog_CC="$CC" # Let the user override the test.
  3417. else
  3418. ac_prog_rejected=no
  3419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3420. for as_dir in $PATH
  3421. do
  3422. IFS=$as_save_IFS
  3423. case $as_dir in #(((
  3424. '') as_dir=./ ;;
  3425. */) ;;
  3426. *) as_dir=$as_dir/ ;;
  3427. esac
  3428. for ac_exec_ext in '' $ac_executable_extensions; do
  3429. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3430. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3431. ac_prog_rejected=yes
  3432. continue
  3433. fi
  3434. ac_cv_prog_CC="cc"
  3435. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3436. break 2
  3437. fi
  3438. done
  3439. done
  3440. IFS=$as_save_IFS
  3441. if test $ac_prog_rejected = yes; then
  3442. # We found a bogon in the path, so make sure we never use it.
  3443. set dummy $ac_cv_prog_CC
  3444. shift
  3445. if test $# != 0; then
  3446. # We chose a different compiler from the bogus one.
  3447. # However, it has the same basename, so the bogon will be chosen
  3448. # first if we set CC to just the basename; use the full file name.
  3449. shift
  3450. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3451. fi
  3452. fi
  3453. fi
  3454. fi
  3455. CC=$ac_cv_prog_CC
  3456. if test -n "$CC"; then
  3457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3458. printf "%s\n" "$CC" >&6; }
  3459. else
  3460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3461. printf "%s\n" "no" >&6; }
  3462. fi
  3463. fi
  3464. if test -z "$CC"; then
  3465. if test -n "$ac_tool_prefix"; then
  3466. for ac_prog in cl.exe
  3467. do
  3468. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3469. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3471. printf %s "checking for $ac_word... " >&6; }
  3472. if test ${ac_cv_prog_CC+y}
  3473. then :
  3474. printf %s "(cached) " >&6
  3475. else $as_nop
  3476. if test -n "$CC"; then
  3477. ac_cv_prog_CC="$CC" # Let the user override the test.
  3478. else
  3479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3480. for as_dir in $PATH
  3481. do
  3482. IFS=$as_save_IFS
  3483. case $as_dir in #(((
  3484. '') as_dir=./ ;;
  3485. */) ;;
  3486. *) as_dir=$as_dir/ ;;
  3487. esac
  3488. for ac_exec_ext in '' $ac_executable_extensions; do
  3489. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3490. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3491. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3492. break 2
  3493. fi
  3494. done
  3495. done
  3496. IFS=$as_save_IFS
  3497. fi
  3498. fi
  3499. CC=$ac_cv_prog_CC
  3500. if test -n "$CC"; then
  3501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3502. printf "%s\n" "$CC" >&6; }
  3503. else
  3504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3505. printf "%s\n" "no" >&6; }
  3506. fi
  3507. test -n "$CC" && break
  3508. done
  3509. fi
  3510. if test -z "$CC"; then
  3511. ac_ct_CC=$CC
  3512. for ac_prog in cl.exe
  3513. do
  3514. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3515. set dummy $ac_prog; ac_word=$2
  3516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3517. printf %s "checking for $ac_word... " >&6; }
  3518. if test ${ac_cv_prog_ac_ct_CC+y}
  3519. then :
  3520. printf %s "(cached) " >&6
  3521. else $as_nop
  3522. if test -n "$ac_ct_CC"; then
  3523. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3524. else
  3525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3526. for as_dir in $PATH
  3527. do
  3528. IFS=$as_save_IFS
  3529. case $as_dir in #(((
  3530. '') as_dir=./ ;;
  3531. */) ;;
  3532. *) as_dir=$as_dir/ ;;
  3533. esac
  3534. for ac_exec_ext in '' $ac_executable_extensions; do
  3535. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3536. ac_cv_prog_ac_ct_CC="$ac_prog"
  3537. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3538. break 2
  3539. fi
  3540. done
  3541. done
  3542. IFS=$as_save_IFS
  3543. fi
  3544. fi
  3545. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3546. if test -n "$ac_ct_CC"; then
  3547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3548. printf "%s\n" "$ac_ct_CC" >&6; }
  3549. else
  3550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3551. printf "%s\n" "no" >&6; }
  3552. fi
  3553. test -n "$ac_ct_CC" && break
  3554. done
  3555. if test "x$ac_ct_CC" = x; then
  3556. CC=""
  3557. else
  3558. case $cross_compiling:$ac_tool_warned in
  3559. yes:)
  3560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3561. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3562. ac_tool_warned=yes ;;
  3563. esac
  3564. CC=$ac_ct_CC
  3565. fi
  3566. fi
  3567. fi
  3568. if test -z "$CC"; then
  3569. if test -n "$ac_tool_prefix"; then
  3570. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3571. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3573. printf %s "checking for $ac_word... " >&6; }
  3574. if test ${ac_cv_prog_CC+y}
  3575. then :
  3576. printf %s "(cached) " >&6
  3577. else $as_nop
  3578. if test -n "$CC"; then
  3579. ac_cv_prog_CC="$CC" # Let the user override the test.
  3580. else
  3581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3582. for as_dir in $PATH
  3583. do
  3584. IFS=$as_save_IFS
  3585. case $as_dir in #(((
  3586. '') as_dir=./ ;;
  3587. */) ;;
  3588. *) as_dir=$as_dir/ ;;
  3589. esac
  3590. for ac_exec_ext in '' $ac_executable_extensions; do
  3591. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3592. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3593. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3594. break 2
  3595. fi
  3596. done
  3597. done
  3598. IFS=$as_save_IFS
  3599. fi
  3600. fi
  3601. CC=$ac_cv_prog_CC
  3602. if test -n "$CC"; then
  3603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3604. printf "%s\n" "$CC" >&6; }
  3605. else
  3606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3607. printf "%s\n" "no" >&6; }
  3608. fi
  3609. fi
  3610. if test -z "$ac_cv_prog_CC"; then
  3611. ac_ct_CC=$CC
  3612. # Extract the first word of "clang", so it can be a program name with args.
  3613. set dummy clang; ac_word=$2
  3614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3615. printf %s "checking for $ac_word... " >&6; }
  3616. if test ${ac_cv_prog_ac_ct_CC+y}
  3617. then :
  3618. printf %s "(cached) " >&6
  3619. else $as_nop
  3620. if test -n "$ac_ct_CC"; then
  3621. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3622. else
  3623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3624. for as_dir in $PATH
  3625. do
  3626. IFS=$as_save_IFS
  3627. case $as_dir in #(((
  3628. '') as_dir=./ ;;
  3629. */) ;;
  3630. *) as_dir=$as_dir/ ;;
  3631. esac
  3632. for ac_exec_ext in '' $ac_executable_extensions; do
  3633. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3634. ac_cv_prog_ac_ct_CC="clang"
  3635. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3636. break 2
  3637. fi
  3638. done
  3639. done
  3640. IFS=$as_save_IFS
  3641. fi
  3642. fi
  3643. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3644. if test -n "$ac_ct_CC"; then
  3645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3646. printf "%s\n" "$ac_ct_CC" >&6; }
  3647. else
  3648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3649. printf "%s\n" "no" >&6; }
  3650. fi
  3651. if test "x$ac_ct_CC" = x; then
  3652. CC=""
  3653. else
  3654. case $cross_compiling:$ac_tool_warned in
  3655. yes:)
  3656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3657. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3658. ac_tool_warned=yes ;;
  3659. esac
  3660. CC=$ac_ct_CC
  3661. fi
  3662. else
  3663. CC="$ac_cv_prog_CC"
  3664. fi
  3665. fi
  3666. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3667. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3668. as_fn_error $? "no acceptable C compiler found in \$PATH
  3669. See \`config.log' for more details" "$LINENO" 5; }
  3670. # Provide some information about the compiler.
  3671. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3672. set X $ac_compile
  3673. ac_compiler=$2
  3674. for ac_option in --version -v -V -qversion -version; do
  3675. { { ac_try="$ac_compiler $ac_option >&5"
  3676. case "(($ac_try" in
  3677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3678. *) ac_try_echo=$ac_try;;
  3679. esac
  3680. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3681. printf "%s\n" "$ac_try_echo"; } >&5
  3682. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3683. ac_status=$?
  3684. if test -s conftest.err; then
  3685. sed '10a\
  3686. ... rest of stderr output deleted ...
  3687. 10q' conftest.err >conftest.er1
  3688. cat conftest.er1 >&5
  3689. fi
  3690. rm -f conftest.er1 conftest.err
  3691. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3692. test $ac_status = 0; }
  3693. done
  3694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3695. /* end confdefs.h. */
  3696. int
  3697. main (void)
  3698. {
  3699. ;
  3700. return 0;
  3701. }
  3702. _ACEOF
  3703. ac_clean_files_save=$ac_clean_files
  3704. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3705. # Try to create an executable without -o first, disregard a.out.
  3706. # It will help us diagnose broken compilers, and finding out an intuition
  3707. # of exeext.
  3708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3709. printf %s "checking whether the C compiler works... " >&6; }
  3710. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3711. # The possible output files:
  3712. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3713. ac_rmfiles=
  3714. for ac_file in $ac_files
  3715. do
  3716. case $ac_file in
  3717. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3718. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3719. esac
  3720. done
  3721. rm -f $ac_rmfiles
  3722. if { { ac_try="$ac_link_default"
  3723. case "(($ac_try" in
  3724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3725. *) ac_try_echo=$ac_try;;
  3726. esac
  3727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3728. printf "%s\n" "$ac_try_echo"; } >&5
  3729. (eval "$ac_link_default") 2>&5
  3730. ac_status=$?
  3731. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3732. test $ac_status = 0; }
  3733. then :
  3734. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3735. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3736. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3737. # so that the user can short-circuit this test for compilers unknown to
  3738. # Autoconf.
  3739. for ac_file in $ac_files ''
  3740. do
  3741. test -f "$ac_file" || continue
  3742. case $ac_file in
  3743. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3744. ;;
  3745. [ab].out )
  3746. # We found the default executable, but exeext='' is most
  3747. # certainly right.
  3748. break;;
  3749. *.* )
  3750. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3751. then :; else
  3752. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3753. fi
  3754. # We set ac_cv_exeext here because the later test for it is not
  3755. # safe: cross compilers may not add the suffix if given an `-o'
  3756. # argument, so we may need to know it at that point already.
  3757. # Even if this section looks crufty: it has the advantage of
  3758. # actually working.
  3759. break;;
  3760. * )
  3761. break;;
  3762. esac
  3763. done
  3764. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3765. else $as_nop
  3766. ac_file=''
  3767. fi
  3768. if test -z "$ac_file"
  3769. then :
  3770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3771. printf "%s\n" "no" >&6; }
  3772. printf "%s\n" "$as_me: failed program was:" >&5
  3773. sed 's/^/| /' conftest.$ac_ext >&5
  3774. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3775. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3776. as_fn_error 77 "C compiler cannot create executables
  3777. See \`config.log' for more details" "$LINENO" 5; }
  3778. else $as_nop
  3779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3780. printf "%s\n" "yes" >&6; }
  3781. fi
  3782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3783. printf %s "checking for C compiler default output file name... " >&6; }
  3784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3785. printf "%s\n" "$ac_file" >&6; }
  3786. ac_exeext=$ac_cv_exeext
  3787. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3788. ac_clean_files=$ac_clean_files_save
  3789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3790. printf %s "checking for suffix of executables... " >&6; }
  3791. if { { ac_try="$ac_link"
  3792. case "(($ac_try" in
  3793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3794. *) ac_try_echo=$ac_try;;
  3795. esac
  3796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3797. printf "%s\n" "$ac_try_echo"; } >&5
  3798. (eval "$ac_link") 2>&5
  3799. ac_status=$?
  3800. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3801. test $ac_status = 0; }
  3802. then :
  3803. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3804. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3805. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3806. # `rm'.
  3807. for ac_file in conftest.exe conftest conftest.*; do
  3808. test -f "$ac_file" || continue
  3809. case $ac_file in
  3810. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3811. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3812. break;;
  3813. * ) break;;
  3814. esac
  3815. done
  3816. else $as_nop
  3817. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3818. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3819. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3820. See \`config.log' for more details" "$LINENO" 5; }
  3821. fi
  3822. rm -f conftest conftest$ac_cv_exeext
  3823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3824. printf "%s\n" "$ac_cv_exeext" >&6; }
  3825. rm -f conftest.$ac_ext
  3826. EXEEXT=$ac_cv_exeext
  3827. ac_exeext=$EXEEXT
  3828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3829. /* end confdefs.h. */
  3830. #include <stdio.h>
  3831. int
  3832. main (void)
  3833. {
  3834. FILE *f = fopen ("conftest.out", "w");
  3835. return ferror (f) || fclose (f) != 0;
  3836. ;
  3837. return 0;
  3838. }
  3839. _ACEOF
  3840. ac_clean_files="$ac_clean_files conftest.out"
  3841. # Check that the compiler produces executables we can run. If not, either
  3842. # the compiler is broken, or we cross compile.
  3843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3844. printf %s "checking whether we are cross compiling... " >&6; }
  3845. if test "$cross_compiling" != yes; then
  3846. { { ac_try="$ac_link"
  3847. case "(($ac_try" in
  3848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3849. *) ac_try_echo=$ac_try;;
  3850. esac
  3851. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3852. printf "%s\n" "$ac_try_echo"; } >&5
  3853. (eval "$ac_link") 2>&5
  3854. ac_status=$?
  3855. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3856. test $ac_status = 0; }
  3857. if { ac_try='./conftest$ac_cv_exeext'
  3858. { { case "(($ac_try" in
  3859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3860. *) ac_try_echo=$ac_try;;
  3861. esac
  3862. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3863. printf "%s\n" "$ac_try_echo"; } >&5
  3864. (eval "$ac_try") 2>&5
  3865. ac_status=$?
  3866. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3867. test $ac_status = 0; }; }; then
  3868. cross_compiling=no
  3869. else
  3870. if test "$cross_compiling" = maybe; then
  3871. cross_compiling=yes
  3872. else
  3873. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3874. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3875. as_fn_error 77 "cannot run C compiled programs.
  3876. If you meant to cross compile, use \`--host'.
  3877. See \`config.log' for more details" "$LINENO" 5; }
  3878. fi
  3879. fi
  3880. fi
  3881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3882. printf "%s\n" "$cross_compiling" >&6; }
  3883. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3884. ac_clean_files=$ac_clean_files_save
  3885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3886. printf %s "checking for suffix of object files... " >&6; }
  3887. if test ${ac_cv_objext+y}
  3888. then :
  3889. printf %s "(cached) " >&6
  3890. else $as_nop
  3891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3892. /* end confdefs.h. */
  3893. int
  3894. main (void)
  3895. {
  3896. ;
  3897. return 0;
  3898. }
  3899. _ACEOF
  3900. rm -f conftest.o conftest.obj
  3901. if { { ac_try="$ac_compile"
  3902. case "(($ac_try" in
  3903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3904. *) ac_try_echo=$ac_try;;
  3905. esac
  3906. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3907. printf "%s\n" "$ac_try_echo"; } >&5
  3908. (eval "$ac_compile") 2>&5
  3909. ac_status=$?
  3910. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3911. test $ac_status = 0; }
  3912. then :
  3913. for ac_file in conftest.o conftest.obj conftest.*; do
  3914. test -f "$ac_file" || continue;
  3915. case $ac_file in
  3916. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3917. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3918. break;;
  3919. esac
  3920. done
  3921. else $as_nop
  3922. printf "%s\n" "$as_me: failed program was:" >&5
  3923. sed 's/^/| /' conftest.$ac_ext >&5
  3924. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3925. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3926. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3927. See \`config.log' for more details" "$LINENO" 5; }
  3928. fi
  3929. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3930. fi
  3931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3932. printf "%s\n" "$ac_cv_objext" >&6; }
  3933. OBJEXT=$ac_cv_objext
  3934. ac_objext=$OBJEXT
  3935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3936. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3937. if test ${ac_cv_c_compiler_gnu+y}
  3938. then :
  3939. printf %s "(cached) " >&6
  3940. else $as_nop
  3941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3942. /* end confdefs.h. */
  3943. int
  3944. main (void)
  3945. {
  3946. #ifndef __GNUC__
  3947. choke me
  3948. #endif
  3949. ;
  3950. return 0;
  3951. }
  3952. _ACEOF
  3953. if ac_fn_c_try_compile "$LINENO"
  3954. then :
  3955. ac_compiler_gnu=yes
  3956. else $as_nop
  3957. ac_compiler_gnu=no
  3958. fi
  3959. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3960. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3961. fi
  3962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3963. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3965. if test $ac_compiler_gnu = yes; then
  3966. GCC=yes
  3967. else
  3968. GCC=
  3969. fi
  3970. ac_test_CFLAGS=${CFLAGS+y}
  3971. ac_save_CFLAGS=$CFLAGS
  3972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3973. printf %s "checking whether $CC accepts -g... " >&6; }
  3974. if test ${ac_cv_prog_cc_g+y}
  3975. then :
  3976. printf %s "(cached) " >&6
  3977. else $as_nop
  3978. ac_save_c_werror_flag=$ac_c_werror_flag
  3979. ac_c_werror_flag=yes
  3980. ac_cv_prog_cc_g=no
  3981. CFLAGS="-g"
  3982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3983. /* end confdefs.h. */
  3984. int
  3985. main (void)
  3986. {
  3987. ;
  3988. return 0;
  3989. }
  3990. _ACEOF
  3991. if ac_fn_c_try_compile "$LINENO"
  3992. then :
  3993. ac_cv_prog_cc_g=yes
  3994. else $as_nop
  3995. CFLAGS=""
  3996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3997. /* end confdefs.h. */
  3998. int
  3999. main (void)
  4000. {
  4001. ;
  4002. return 0;
  4003. }
  4004. _ACEOF
  4005. if ac_fn_c_try_compile "$LINENO"
  4006. then :
  4007. else $as_nop
  4008. ac_c_werror_flag=$ac_save_c_werror_flag
  4009. CFLAGS="-g"
  4010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4011. /* end confdefs.h. */
  4012. int
  4013. main (void)
  4014. {
  4015. ;
  4016. return 0;
  4017. }
  4018. _ACEOF
  4019. if ac_fn_c_try_compile "$LINENO"
  4020. then :
  4021. ac_cv_prog_cc_g=yes
  4022. fi
  4023. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4024. fi
  4025. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4026. fi
  4027. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4028. ac_c_werror_flag=$ac_save_c_werror_flag
  4029. fi
  4030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4031. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4032. if test $ac_test_CFLAGS; then
  4033. CFLAGS=$ac_save_CFLAGS
  4034. elif test $ac_cv_prog_cc_g = yes; then
  4035. if test "$GCC" = yes; then
  4036. CFLAGS="-g -O2"
  4037. else
  4038. CFLAGS="-g"
  4039. fi
  4040. else
  4041. if test "$GCC" = yes; then
  4042. CFLAGS="-O2"
  4043. else
  4044. CFLAGS=
  4045. fi
  4046. fi
  4047. ac_prog_cc_stdc=no
  4048. if test x$ac_prog_cc_stdc = xno
  4049. then :
  4050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4051. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4052. if test ${ac_cv_prog_cc_c11+y}
  4053. then :
  4054. printf %s "(cached) " >&6
  4055. else $as_nop
  4056. ac_cv_prog_cc_c11=no
  4057. ac_save_CC=$CC
  4058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4059. /* end confdefs.h. */
  4060. $ac_c_conftest_c11_program
  4061. _ACEOF
  4062. for ac_arg in '' -std=gnu11
  4063. do
  4064. CC="$ac_save_CC $ac_arg"
  4065. if ac_fn_c_try_compile "$LINENO"
  4066. then :
  4067. ac_cv_prog_cc_c11=$ac_arg
  4068. fi
  4069. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4070. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4071. done
  4072. rm -f conftest.$ac_ext
  4073. CC=$ac_save_CC
  4074. fi
  4075. if test "x$ac_cv_prog_cc_c11" = xno
  4076. then :
  4077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4078. printf "%s\n" "unsupported" >&6; }
  4079. else $as_nop
  4080. if test "x$ac_cv_prog_cc_c11" = x
  4081. then :
  4082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4083. printf "%s\n" "none needed" >&6; }
  4084. else $as_nop
  4085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4086. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4087. CC="$CC $ac_cv_prog_cc_c11"
  4088. fi
  4089. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4090. ac_prog_cc_stdc=c11
  4091. fi
  4092. fi
  4093. if test x$ac_prog_cc_stdc = xno
  4094. then :
  4095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4096. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4097. if test ${ac_cv_prog_cc_c99+y}
  4098. then :
  4099. printf %s "(cached) " >&6
  4100. else $as_nop
  4101. ac_cv_prog_cc_c99=no
  4102. ac_save_CC=$CC
  4103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4104. /* end confdefs.h. */
  4105. $ac_c_conftest_c99_program
  4106. _ACEOF
  4107. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4108. do
  4109. CC="$ac_save_CC $ac_arg"
  4110. if ac_fn_c_try_compile "$LINENO"
  4111. then :
  4112. ac_cv_prog_cc_c99=$ac_arg
  4113. fi
  4114. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4115. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4116. done
  4117. rm -f conftest.$ac_ext
  4118. CC=$ac_save_CC
  4119. fi
  4120. if test "x$ac_cv_prog_cc_c99" = xno
  4121. then :
  4122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4123. printf "%s\n" "unsupported" >&6; }
  4124. else $as_nop
  4125. if test "x$ac_cv_prog_cc_c99" = x
  4126. then :
  4127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4128. printf "%s\n" "none needed" >&6; }
  4129. else $as_nop
  4130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4131. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4132. CC="$CC $ac_cv_prog_cc_c99"
  4133. fi
  4134. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4135. ac_prog_cc_stdc=c99
  4136. fi
  4137. fi
  4138. if test x$ac_prog_cc_stdc = xno
  4139. then :
  4140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4141. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4142. if test ${ac_cv_prog_cc_c89+y}
  4143. then :
  4144. printf %s "(cached) " >&6
  4145. else $as_nop
  4146. ac_cv_prog_cc_c89=no
  4147. ac_save_CC=$CC
  4148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4149. /* end confdefs.h. */
  4150. $ac_c_conftest_c89_program
  4151. _ACEOF
  4152. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4153. do
  4154. CC="$ac_save_CC $ac_arg"
  4155. if ac_fn_c_try_compile "$LINENO"
  4156. then :
  4157. ac_cv_prog_cc_c89=$ac_arg
  4158. fi
  4159. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4160. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4161. done
  4162. rm -f conftest.$ac_ext
  4163. CC=$ac_save_CC
  4164. fi
  4165. if test "x$ac_cv_prog_cc_c89" = xno
  4166. then :
  4167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4168. printf "%s\n" "unsupported" >&6; }
  4169. else $as_nop
  4170. if test "x$ac_cv_prog_cc_c89" = x
  4171. then :
  4172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4173. printf "%s\n" "none needed" >&6; }
  4174. else $as_nop
  4175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4176. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4177. CC="$CC $ac_cv_prog_cc_c89"
  4178. fi
  4179. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4180. ac_prog_cc_stdc=c89
  4181. fi
  4182. fi
  4183. ac_ext=c
  4184. ac_cpp='$CPP $CPPFLAGS'
  4185. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4186. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4187. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4189. printf %s "checking for a sed that does not truncate output... " >&6; }
  4190. if test ${ac_cv_path_SED+y}
  4191. then :
  4192. printf %s "(cached) " >&6
  4193. else $as_nop
  4194. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4195. for ac_i in 1 2 3 4 5 6 7; do
  4196. ac_script="$ac_script$as_nl$ac_script"
  4197. done
  4198. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4199. { ac_script=; unset ac_script;}
  4200. if test -z "$SED"; then
  4201. ac_path_SED_found=false
  4202. # Loop through the user's path and test for each of PROGNAME-LIST
  4203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4204. for as_dir in $PATH
  4205. do
  4206. IFS=$as_save_IFS
  4207. case $as_dir in #(((
  4208. '') as_dir=./ ;;
  4209. */) ;;
  4210. *) as_dir=$as_dir/ ;;
  4211. esac
  4212. for ac_prog in sed gsed
  4213. do
  4214. for ac_exec_ext in '' $ac_executable_extensions; do
  4215. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4216. as_fn_executable_p "$ac_path_SED" || continue
  4217. # Check for GNU ac_path_SED and select it if it is found.
  4218. # Check for GNU $ac_path_SED
  4219. case `"$ac_path_SED" --version 2>&1` in
  4220. *GNU*)
  4221. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4222. *)
  4223. ac_count=0
  4224. printf %s 0123456789 >"conftest.in"
  4225. while :
  4226. do
  4227. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4228. mv "conftest.tmp" "conftest.in"
  4229. cp "conftest.in" "conftest.nl"
  4230. printf "%s\n" '' >> "conftest.nl"
  4231. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4232. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4233. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4234. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4235. # Best one so far, save it but keep looking for a better one
  4236. ac_cv_path_SED="$ac_path_SED"
  4237. ac_path_SED_max=$ac_count
  4238. fi
  4239. # 10*(2^10) chars as input seems more than enough
  4240. test $ac_count -gt 10 && break
  4241. done
  4242. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4243. esac
  4244. $ac_path_SED_found && break 3
  4245. done
  4246. done
  4247. done
  4248. IFS=$as_save_IFS
  4249. if test -z "$ac_cv_path_SED"; then
  4250. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4251. fi
  4252. else
  4253. ac_cv_path_SED=$SED
  4254. fi
  4255. fi
  4256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4257. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4258. SED="$ac_cv_path_SED"
  4259. rm -f conftest.sed
  4260. test -z "$SED" && SED=sed
  4261. Xsed="$SED -e 1s/^X//"
  4262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4263. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4264. if test ${ac_cv_path_GREP+y}
  4265. then :
  4266. printf %s "(cached) " >&6
  4267. else $as_nop
  4268. if test -z "$GREP"; then
  4269. ac_path_GREP_found=false
  4270. # Loop through the user's path and test for each of PROGNAME-LIST
  4271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4272. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4273. do
  4274. IFS=$as_save_IFS
  4275. case $as_dir in #(((
  4276. '') as_dir=./ ;;
  4277. */) ;;
  4278. *) as_dir=$as_dir/ ;;
  4279. esac
  4280. for ac_prog in grep ggrep
  4281. do
  4282. for ac_exec_ext in '' $ac_executable_extensions; do
  4283. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4284. as_fn_executable_p "$ac_path_GREP" || continue
  4285. # Check for GNU ac_path_GREP and select it if it is found.
  4286. # Check for GNU $ac_path_GREP
  4287. case `"$ac_path_GREP" --version 2>&1` in
  4288. *GNU*)
  4289. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4290. *)
  4291. ac_count=0
  4292. printf %s 0123456789 >"conftest.in"
  4293. while :
  4294. do
  4295. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4296. mv "conftest.tmp" "conftest.in"
  4297. cp "conftest.in" "conftest.nl"
  4298. printf "%s\n" 'GREP' >> "conftest.nl"
  4299. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4300. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4301. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4302. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4303. # Best one so far, save it but keep looking for a better one
  4304. ac_cv_path_GREP="$ac_path_GREP"
  4305. ac_path_GREP_max=$ac_count
  4306. fi
  4307. # 10*(2^10) chars as input seems more than enough
  4308. test $ac_count -gt 10 && break
  4309. done
  4310. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4311. esac
  4312. $ac_path_GREP_found && break 3
  4313. done
  4314. done
  4315. done
  4316. IFS=$as_save_IFS
  4317. if test -z "$ac_cv_path_GREP"; then
  4318. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4319. fi
  4320. else
  4321. ac_cv_path_GREP=$GREP
  4322. fi
  4323. fi
  4324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4325. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4326. GREP="$ac_cv_path_GREP"
  4327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4328. printf %s "checking for egrep... " >&6; }
  4329. if test ${ac_cv_path_EGREP+y}
  4330. then :
  4331. printf %s "(cached) " >&6
  4332. else $as_nop
  4333. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4334. then ac_cv_path_EGREP="$GREP -E"
  4335. else
  4336. if test -z "$EGREP"; then
  4337. ac_path_EGREP_found=false
  4338. # Loop through the user's path and test for each of PROGNAME-LIST
  4339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4340. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4341. do
  4342. IFS=$as_save_IFS
  4343. case $as_dir in #(((
  4344. '') as_dir=./ ;;
  4345. */) ;;
  4346. *) as_dir=$as_dir/ ;;
  4347. esac
  4348. for ac_prog in egrep
  4349. do
  4350. for ac_exec_ext in '' $ac_executable_extensions; do
  4351. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4352. as_fn_executable_p "$ac_path_EGREP" || continue
  4353. # Check for GNU ac_path_EGREP and select it if it is found.
  4354. # Check for GNU $ac_path_EGREP
  4355. case `"$ac_path_EGREP" --version 2>&1` in
  4356. *GNU*)
  4357. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4358. *)
  4359. ac_count=0
  4360. printf %s 0123456789 >"conftest.in"
  4361. while :
  4362. do
  4363. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4364. mv "conftest.tmp" "conftest.in"
  4365. cp "conftest.in" "conftest.nl"
  4366. printf "%s\n" 'EGREP' >> "conftest.nl"
  4367. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4368. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4369. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4370. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4371. # Best one so far, save it but keep looking for a better one
  4372. ac_cv_path_EGREP="$ac_path_EGREP"
  4373. ac_path_EGREP_max=$ac_count
  4374. fi
  4375. # 10*(2^10) chars as input seems more than enough
  4376. test $ac_count -gt 10 && break
  4377. done
  4378. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4379. esac
  4380. $ac_path_EGREP_found && break 3
  4381. done
  4382. done
  4383. done
  4384. IFS=$as_save_IFS
  4385. if test -z "$ac_cv_path_EGREP"; then
  4386. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4387. fi
  4388. else
  4389. ac_cv_path_EGREP=$EGREP
  4390. fi
  4391. fi
  4392. fi
  4393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4394. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4395. EGREP="$ac_cv_path_EGREP"
  4396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4397. printf %s "checking for fgrep... " >&6; }
  4398. if test ${ac_cv_path_FGREP+y}
  4399. then :
  4400. printf %s "(cached) " >&6
  4401. else $as_nop
  4402. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4403. then ac_cv_path_FGREP="$GREP -F"
  4404. else
  4405. if test -z "$FGREP"; then
  4406. ac_path_FGREP_found=false
  4407. # Loop through the user's path and test for each of PROGNAME-LIST
  4408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4409. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4410. do
  4411. IFS=$as_save_IFS
  4412. case $as_dir in #(((
  4413. '') as_dir=./ ;;
  4414. */) ;;
  4415. *) as_dir=$as_dir/ ;;
  4416. esac
  4417. for ac_prog in fgrep
  4418. do
  4419. for ac_exec_ext in '' $ac_executable_extensions; do
  4420. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4421. as_fn_executable_p "$ac_path_FGREP" || continue
  4422. # Check for GNU ac_path_FGREP and select it if it is found.
  4423. # Check for GNU $ac_path_FGREP
  4424. case `"$ac_path_FGREP" --version 2>&1` in
  4425. *GNU*)
  4426. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4427. *)
  4428. ac_count=0
  4429. printf %s 0123456789 >"conftest.in"
  4430. while :
  4431. do
  4432. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4433. mv "conftest.tmp" "conftest.in"
  4434. cp "conftest.in" "conftest.nl"
  4435. printf "%s\n" 'FGREP' >> "conftest.nl"
  4436. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4437. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4438. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4439. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4440. # Best one so far, save it but keep looking for a better one
  4441. ac_cv_path_FGREP="$ac_path_FGREP"
  4442. ac_path_FGREP_max=$ac_count
  4443. fi
  4444. # 10*(2^10) chars as input seems more than enough
  4445. test $ac_count -gt 10 && break
  4446. done
  4447. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4448. esac
  4449. $ac_path_FGREP_found && break 3
  4450. done
  4451. done
  4452. done
  4453. IFS=$as_save_IFS
  4454. if test -z "$ac_cv_path_FGREP"; then
  4455. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4456. fi
  4457. else
  4458. ac_cv_path_FGREP=$FGREP
  4459. fi
  4460. fi
  4461. fi
  4462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4463. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4464. FGREP="$ac_cv_path_FGREP"
  4465. test -z "$GREP" && GREP=grep
  4466. # Check whether --with-gnu-ld was given.
  4467. if test ${with_gnu_ld+y}
  4468. then :
  4469. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4470. else $as_nop
  4471. with_gnu_ld=no
  4472. fi
  4473. ac_prog=ld
  4474. if test yes = "$GCC"; then
  4475. # Check if gcc -print-prog-name=ld gives a path.
  4476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4477. printf %s "checking for ld used by $CC... " >&6; }
  4478. case $host in
  4479. *-*-mingw*)
  4480. # gcc leaves a trailing carriage return, which upsets mingw
  4481. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4482. *)
  4483. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4484. esac
  4485. case $ac_prog in
  4486. # Accept absolute paths.
  4487. [\\/]* | ?:[\\/]*)
  4488. re_direlt='/[^/][^/]*/\.\./'
  4489. # Canonicalize the pathname of ld
  4490. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4491. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4492. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4493. done
  4494. test -z "$LD" && LD=$ac_prog
  4495. ;;
  4496. "")
  4497. # If it fails, then pretend we aren't using GCC.
  4498. ac_prog=ld
  4499. ;;
  4500. *)
  4501. # If it is relative, then search for the first ld in PATH.
  4502. with_gnu_ld=unknown
  4503. ;;
  4504. esac
  4505. elif test yes = "$with_gnu_ld"; then
  4506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4507. printf %s "checking for GNU ld... " >&6; }
  4508. else
  4509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4510. printf %s "checking for non-GNU ld... " >&6; }
  4511. fi
  4512. if test ${lt_cv_path_LD+y}
  4513. then :
  4514. printf %s "(cached) " >&6
  4515. else $as_nop
  4516. if test -z "$LD"; then
  4517. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4518. for ac_dir in $PATH; do
  4519. IFS=$lt_save_ifs
  4520. test -z "$ac_dir" && ac_dir=.
  4521. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4522. lt_cv_path_LD=$ac_dir/$ac_prog
  4523. # Check to see if the program is GNU ld. I'd rather use --version,
  4524. # but apparently some variants of GNU ld only accept -v.
  4525. # Break only if it was the GNU/non-GNU ld that we prefer.
  4526. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4527. *GNU* | *'with BFD'*)
  4528. test no != "$with_gnu_ld" && break
  4529. ;;
  4530. *)
  4531. test yes != "$with_gnu_ld" && break
  4532. ;;
  4533. esac
  4534. fi
  4535. done
  4536. IFS=$lt_save_ifs
  4537. else
  4538. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4539. fi
  4540. fi
  4541. LD=$lt_cv_path_LD
  4542. if test -n "$LD"; then
  4543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4544. printf "%s\n" "$LD" >&6; }
  4545. else
  4546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4547. printf "%s\n" "no" >&6; }
  4548. fi
  4549. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4551. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4552. if test ${lt_cv_prog_gnu_ld+y}
  4553. then :
  4554. printf %s "(cached) " >&6
  4555. else $as_nop
  4556. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4557. case `$LD -v 2>&1 </dev/null` in
  4558. *GNU* | *'with BFD'*)
  4559. lt_cv_prog_gnu_ld=yes
  4560. ;;
  4561. *)
  4562. lt_cv_prog_gnu_ld=no
  4563. ;;
  4564. esac
  4565. fi
  4566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4567. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4568. with_gnu_ld=$lt_cv_prog_gnu_ld
  4569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4570. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4571. if test ${lt_cv_path_NM+y}
  4572. then :
  4573. printf %s "(cached) " >&6
  4574. else $as_nop
  4575. if test -n "$NM"; then
  4576. # Let the user override the test.
  4577. lt_cv_path_NM=$NM
  4578. else
  4579. lt_nm_to_check=${ac_tool_prefix}nm
  4580. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4581. lt_nm_to_check="$lt_nm_to_check nm"
  4582. fi
  4583. for lt_tmp_nm in $lt_nm_to_check; do
  4584. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4585. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4586. IFS=$lt_save_ifs
  4587. test -z "$ac_dir" && ac_dir=.
  4588. tmp_nm=$ac_dir/$lt_tmp_nm
  4589. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4590. # Check to see if the nm accepts a BSD-compat flag.
  4591. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4592. # nm: unknown option "B" ignored
  4593. # Tru64's nm complains that /dev/null is an invalid object file
  4594. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4595. case $build_os in
  4596. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4597. *) lt_bad_file=/dev/null ;;
  4598. esac
  4599. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4600. *$lt_bad_file* | *'Invalid file or object type'*)
  4601. lt_cv_path_NM="$tmp_nm -B"
  4602. break 2
  4603. ;;
  4604. *)
  4605. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4606. */dev/null*)
  4607. lt_cv_path_NM="$tmp_nm -p"
  4608. break 2
  4609. ;;
  4610. *)
  4611. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4612. continue # so that we can try to find one that supports BSD flags
  4613. ;;
  4614. esac
  4615. ;;
  4616. esac
  4617. fi
  4618. done
  4619. IFS=$lt_save_ifs
  4620. done
  4621. : ${lt_cv_path_NM=no}
  4622. fi
  4623. fi
  4624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4625. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4626. if test no != "$lt_cv_path_NM"; then
  4627. NM=$lt_cv_path_NM
  4628. else
  4629. # Didn't find any BSD compatible name lister, look for dumpbin.
  4630. if test -n "$DUMPBIN"; then :
  4631. # Let the user override the test.
  4632. else
  4633. if test -n "$ac_tool_prefix"; then
  4634. for ac_prog in dumpbin "link -dump"
  4635. do
  4636. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4637. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4639. printf %s "checking for $ac_word... " >&6; }
  4640. if test ${ac_cv_prog_DUMPBIN+y}
  4641. then :
  4642. printf %s "(cached) " >&6
  4643. else $as_nop
  4644. if test -n "$DUMPBIN"; then
  4645. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4646. else
  4647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4648. for as_dir in $PATH
  4649. do
  4650. IFS=$as_save_IFS
  4651. case $as_dir in #(((
  4652. '') as_dir=./ ;;
  4653. */) ;;
  4654. *) as_dir=$as_dir/ ;;
  4655. esac
  4656. for ac_exec_ext in '' $ac_executable_extensions; do
  4657. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4658. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4659. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4660. break 2
  4661. fi
  4662. done
  4663. done
  4664. IFS=$as_save_IFS
  4665. fi
  4666. fi
  4667. DUMPBIN=$ac_cv_prog_DUMPBIN
  4668. if test -n "$DUMPBIN"; then
  4669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4670. printf "%s\n" "$DUMPBIN" >&6; }
  4671. else
  4672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4673. printf "%s\n" "no" >&6; }
  4674. fi
  4675. test -n "$DUMPBIN" && break
  4676. done
  4677. fi
  4678. if test -z "$DUMPBIN"; then
  4679. ac_ct_DUMPBIN=$DUMPBIN
  4680. for ac_prog in dumpbin "link -dump"
  4681. do
  4682. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4683. set dummy $ac_prog; ac_word=$2
  4684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4685. printf %s "checking for $ac_word... " >&6; }
  4686. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4687. then :
  4688. printf %s "(cached) " >&6
  4689. else $as_nop
  4690. if test -n "$ac_ct_DUMPBIN"; then
  4691. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4692. else
  4693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4694. for as_dir in $PATH
  4695. do
  4696. IFS=$as_save_IFS
  4697. case $as_dir in #(((
  4698. '') as_dir=./ ;;
  4699. */) ;;
  4700. *) as_dir=$as_dir/ ;;
  4701. esac
  4702. for ac_exec_ext in '' $ac_executable_extensions; do
  4703. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4704. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4705. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4706. break 2
  4707. fi
  4708. done
  4709. done
  4710. IFS=$as_save_IFS
  4711. fi
  4712. fi
  4713. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4714. if test -n "$ac_ct_DUMPBIN"; then
  4715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4716. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4717. else
  4718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4719. printf "%s\n" "no" >&6; }
  4720. fi
  4721. test -n "$ac_ct_DUMPBIN" && break
  4722. done
  4723. if test "x$ac_ct_DUMPBIN" = x; then
  4724. DUMPBIN=":"
  4725. else
  4726. case $cross_compiling:$ac_tool_warned in
  4727. yes:)
  4728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4729. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4730. ac_tool_warned=yes ;;
  4731. esac
  4732. DUMPBIN=$ac_ct_DUMPBIN
  4733. fi
  4734. fi
  4735. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4736. *COFF*)
  4737. DUMPBIN="$DUMPBIN -symbols -headers"
  4738. ;;
  4739. *)
  4740. DUMPBIN=:
  4741. ;;
  4742. esac
  4743. fi
  4744. if test : != "$DUMPBIN"; then
  4745. NM=$DUMPBIN
  4746. fi
  4747. fi
  4748. test -z "$NM" && NM=nm
  4749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4750. printf %s "checking the name lister ($NM) interface... " >&6; }
  4751. if test ${lt_cv_nm_interface+y}
  4752. then :
  4753. printf %s "(cached) " >&6
  4754. else $as_nop
  4755. lt_cv_nm_interface="BSD nm"
  4756. echo "int some_variable = 0;" > conftest.$ac_ext
  4757. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4758. (eval "$ac_compile" 2>conftest.err)
  4759. cat conftest.err >&5
  4760. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4761. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4762. cat conftest.err >&5
  4763. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4764. cat conftest.out >&5
  4765. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4766. lt_cv_nm_interface="MS dumpbin"
  4767. fi
  4768. rm -f conftest*
  4769. fi
  4770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4771. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4773. printf %s "checking whether ln -s works... " >&6; }
  4774. LN_S=$as_ln_s
  4775. if test "$LN_S" = "ln -s"; then
  4776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4777. printf "%s\n" "yes" >&6; }
  4778. else
  4779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4780. printf "%s\n" "no, using $LN_S" >&6; }
  4781. fi
  4782. # find the maximum length of command line arguments
  4783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4784. printf %s "checking the maximum length of command line arguments... " >&6; }
  4785. if test ${lt_cv_sys_max_cmd_len+y}
  4786. then :
  4787. printf %s "(cached) " >&6
  4788. else $as_nop
  4789. i=0
  4790. teststring=ABCD
  4791. case $build_os in
  4792. msdosdjgpp*)
  4793. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4794. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4795. # during glob expansion). Even if it were fixed, the result of this
  4796. # check would be larger than it should be.
  4797. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4798. ;;
  4799. gnu*)
  4800. # Under GNU Hurd, this test is not required because there is
  4801. # no limit to the length of command line arguments.
  4802. # Libtool will interpret -1 as no limit whatsoever
  4803. lt_cv_sys_max_cmd_len=-1;
  4804. ;;
  4805. cygwin* | mingw* | cegcc*)
  4806. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4807. # about 5 minutes as the teststring grows exponentially.
  4808. # Worse, since 9x/ME are not pre-emptively multitasking,
  4809. # you end up with a "frozen" computer, even though with patience
  4810. # the test eventually succeeds (with a max line length of 256k).
  4811. # Instead, let's just punt: use the minimum linelength reported by
  4812. # all of the supported platforms: 8192 (on NT/2K/XP).
  4813. lt_cv_sys_max_cmd_len=8192;
  4814. ;;
  4815. mint*)
  4816. # On MiNT this can take a long time and run out of memory.
  4817. lt_cv_sys_max_cmd_len=8192;
  4818. ;;
  4819. amigaos*)
  4820. # On AmigaOS with pdksh, this test takes hours, literally.
  4821. # So we just punt and use a minimum line length of 8192.
  4822. lt_cv_sys_max_cmd_len=8192;
  4823. ;;
  4824. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4825. # This has been around since 386BSD, at least. Likely further.
  4826. if test -x /sbin/sysctl; then
  4827. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4828. elif test -x /usr/sbin/sysctl; then
  4829. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4830. else
  4831. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4832. fi
  4833. # And add a safety zone
  4834. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4835. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4836. ;;
  4837. interix*)
  4838. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4839. lt_cv_sys_max_cmd_len=196608
  4840. ;;
  4841. os2*)
  4842. # The test takes a long time on OS/2.
  4843. lt_cv_sys_max_cmd_len=8192
  4844. ;;
  4845. osf*)
  4846. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4847. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4848. # nice to cause kernel panics so lets avoid the loop below.
  4849. # First set a reasonable default.
  4850. lt_cv_sys_max_cmd_len=16384
  4851. #
  4852. if test -x /sbin/sysconfig; then
  4853. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4854. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4855. esac
  4856. fi
  4857. ;;
  4858. sco3.2v5*)
  4859. lt_cv_sys_max_cmd_len=102400
  4860. ;;
  4861. sysv5* | sco5v6* | sysv4.2uw2*)
  4862. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4863. if test -n "$kargmax"; then
  4864. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4865. else
  4866. lt_cv_sys_max_cmd_len=32768
  4867. fi
  4868. ;;
  4869. *)
  4870. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4871. if test -n "$lt_cv_sys_max_cmd_len" && \
  4872. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4873. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4874. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4875. else
  4876. # Make teststring a little bigger before we do anything with it.
  4877. # a 1K string should be a reasonable start.
  4878. for i in 1 2 3 4 5 6 7 8; do
  4879. teststring=$teststring$teststring
  4880. done
  4881. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4882. # If test is not a shell built-in, we'll probably end up computing a
  4883. # maximum length that is only half of the actual maximum length, but
  4884. # we can't tell.
  4885. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4886. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4887. test 17 != "$i" # 1/2 MB should be enough
  4888. do
  4889. i=`expr $i + 1`
  4890. teststring=$teststring$teststring
  4891. done
  4892. # Only check the string length outside the loop.
  4893. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4894. teststring=
  4895. # Add a significant safety factor because C++ compilers can tack on
  4896. # massive amounts of additional arguments before passing them to the
  4897. # linker. It appears as though 1/2 is a usable value.
  4898. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4899. fi
  4900. ;;
  4901. esac
  4902. fi
  4903. if test -n "$lt_cv_sys_max_cmd_len"; then
  4904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4905. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4906. else
  4907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4908. printf "%s\n" "none" >&6; }
  4909. fi
  4910. max_cmd_len=$lt_cv_sys_max_cmd_len
  4911. : ${CP="cp -f"}
  4912. : ${MV="mv -f"}
  4913. : ${RM="rm -f"}
  4914. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4915. lt_unset=unset
  4916. else
  4917. lt_unset=false
  4918. fi
  4919. # test EBCDIC or ASCII
  4920. case `echo X|tr X '\101'` in
  4921. A) # ASCII based system
  4922. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4923. lt_SP2NL='tr \040 \012'
  4924. lt_NL2SP='tr \015\012 \040\040'
  4925. ;;
  4926. *) # EBCDIC based system
  4927. lt_SP2NL='tr \100 \n'
  4928. lt_NL2SP='tr \r\n \100\100'
  4929. ;;
  4930. esac
  4931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4932. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4933. if test ${lt_cv_to_host_file_cmd+y}
  4934. then :
  4935. printf %s "(cached) " >&6
  4936. else $as_nop
  4937. case $host in
  4938. *-*-mingw* )
  4939. case $build in
  4940. *-*-mingw* ) # actually msys
  4941. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4942. ;;
  4943. *-*-cygwin* )
  4944. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4945. ;;
  4946. * ) # otherwise, assume *nix
  4947. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4948. ;;
  4949. esac
  4950. ;;
  4951. *-*-cygwin* )
  4952. case $build in
  4953. *-*-mingw* ) # actually msys
  4954. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4955. ;;
  4956. *-*-cygwin* )
  4957. lt_cv_to_host_file_cmd=func_convert_file_noop
  4958. ;;
  4959. * ) # otherwise, assume *nix
  4960. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4961. ;;
  4962. esac
  4963. ;;
  4964. * ) # unhandled hosts (and "normal" native builds)
  4965. lt_cv_to_host_file_cmd=func_convert_file_noop
  4966. ;;
  4967. esac
  4968. fi
  4969. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4971. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4973. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4974. if test ${lt_cv_to_tool_file_cmd+y}
  4975. then :
  4976. printf %s "(cached) " >&6
  4977. else $as_nop
  4978. #assume ordinary cross tools, or native build.
  4979. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4980. case $host in
  4981. *-*-mingw* )
  4982. case $build in
  4983. *-*-mingw* ) # actually msys
  4984. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4985. ;;
  4986. esac
  4987. ;;
  4988. esac
  4989. fi
  4990. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4992. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4994. printf %s "checking for $LD option to reload object files... " >&6; }
  4995. if test ${lt_cv_ld_reload_flag+y}
  4996. then :
  4997. printf %s "(cached) " >&6
  4998. else $as_nop
  4999. lt_cv_ld_reload_flag='-r'
  5000. fi
  5001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5002. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5003. reload_flag=$lt_cv_ld_reload_flag
  5004. case $reload_flag in
  5005. "" | " "*) ;;
  5006. *) reload_flag=" $reload_flag" ;;
  5007. esac
  5008. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5009. case $host_os in
  5010. cygwin* | mingw* | pw32* | cegcc*)
  5011. if test yes != "$GCC"; then
  5012. reload_cmds=false
  5013. fi
  5014. ;;
  5015. darwin*)
  5016. if test yes = "$GCC"; then
  5017. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5018. else
  5019. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5020. fi
  5021. ;;
  5022. esac
  5023. if test -n "$ac_tool_prefix"; then
  5024. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5025. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5027. printf %s "checking for $ac_word... " >&6; }
  5028. if test ${ac_cv_prog_OBJDUMP+y}
  5029. then :
  5030. printf %s "(cached) " >&6
  5031. else $as_nop
  5032. if test -n "$OBJDUMP"; then
  5033. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5034. else
  5035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5036. for as_dir in $PATH
  5037. do
  5038. IFS=$as_save_IFS
  5039. case $as_dir in #(((
  5040. '') as_dir=./ ;;
  5041. */) ;;
  5042. *) as_dir=$as_dir/ ;;
  5043. esac
  5044. for ac_exec_ext in '' $ac_executable_extensions; do
  5045. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5046. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5047. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5048. break 2
  5049. fi
  5050. done
  5051. done
  5052. IFS=$as_save_IFS
  5053. fi
  5054. fi
  5055. OBJDUMP=$ac_cv_prog_OBJDUMP
  5056. if test -n "$OBJDUMP"; then
  5057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5058. printf "%s\n" "$OBJDUMP" >&6; }
  5059. else
  5060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5061. printf "%s\n" "no" >&6; }
  5062. fi
  5063. fi
  5064. if test -z "$ac_cv_prog_OBJDUMP"; then
  5065. ac_ct_OBJDUMP=$OBJDUMP
  5066. # Extract the first word of "objdump", so it can be a program name with args.
  5067. set dummy objdump; ac_word=$2
  5068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5069. printf %s "checking for $ac_word... " >&6; }
  5070. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5071. then :
  5072. printf %s "(cached) " >&6
  5073. else $as_nop
  5074. if test -n "$ac_ct_OBJDUMP"; then
  5075. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5076. else
  5077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5078. for as_dir in $PATH
  5079. do
  5080. IFS=$as_save_IFS
  5081. case $as_dir in #(((
  5082. '') as_dir=./ ;;
  5083. */) ;;
  5084. *) as_dir=$as_dir/ ;;
  5085. esac
  5086. for ac_exec_ext in '' $ac_executable_extensions; do
  5087. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5088. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5089. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5090. break 2
  5091. fi
  5092. done
  5093. done
  5094. IFS=$as_save_IFS
  5095. fi
  5096. fi
  5097. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5098. if test -n "$ac_ct_OBJDUMP"; then
  5099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5100. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5101. else
  5102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5103. printf "%s\n" "no" >&6; }
  5104. fi
  5105. if test "x$ac_ct_OBJDUMP" = x; then
  5106. OBJDUMP="false"
  5107. else
  5108. case $cross_compiling:$ac_tool_warned in
  5109. yes:)
  5110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5111. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5112. ac_tool_warned=yes ;;
  5113. esac
  5114. OBJDUMP=$ac_ct_OBJDUMP
  5115. fi
  5116. else
  5117. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5118. fi
  5119. test -z "$OBJDUMP" && OBJDUMP=objdump
  5120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5121. printf %s "checking how to recognize dependent libraries... " >&6; }
  5122. if test ${lt_cv_deplibs_check_method+y}
  5123. then :
  5124. printf %s "(cached) " >&6
  5125. else $as_nop
  5126. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5127. lt_cv_file_magic_test_file=
  5128. lt_cv_deplibs_check_method='unknown'
  5129. # Need to set the preceding variable on all platforms that support
  5130. # interlibrary dependencies.
  5131. # 'none' -- dependencies not supported.
  5132. # 'unknown' -- same as none, but documents that we really don't know.
  5133. # 'pass_all' -- all dependencies passed with no checks.
  5134. # 'test_compile' -- check by making test program.
  5135. # 'file_magic [[regex]]' -- check by looking for files in library path
  5136. # that responds to the $file_magic_cmd with a given extended regex.
  5137. # If you have 'file' or equivalent on your system and you're not sure
  5138. # whether 'pass_all' will *always* work, you probably want this one.
  5139. case $host_os in
  5140. aix[4-9]*)
  5141. lt_cv_deplibs_check_method=pass_all
  5142. ;;
  5143. beos*)
  5144. lt_cv_deplibs_check_method=pass_all
  5145. ;;
  5146. bsdi[45]*)
  5147. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5148. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5149. lt_cv_file_magic_test_file=/shlib/libc.so
  5150. ;;
  5151. cygwin*)
  5152. # func_win32_libid is a shell function defined in ltmain.sh
  5153. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5154. lt_cv_file_magic_cmd='func_win32_libid'
  5155. lt_cv_deplibs_check_method=pass_all # SDL customization
  5156. ;;
  5157. mingw* | pw32*)
  5158. # Base MSYS/MinGW do not provide the 'file' command needed by
  5159. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5160. # unless we find 'file', for example because we are cross-compiling.
  5161. if ( file / ) >/dev/null 2>&1; then
  5162. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5163. lt_cv_file_magic_cmd='func_win32_libid'
  5164. else
  5165. # Keep this pattern in sync with the one in func_win32_libid.
  5166. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5167. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5168. fi
  5169. lt_cv_deplibs_check_method=pass_all # SDL customization
  5170. ;;
  5171. cegcc*)
  5172. # use the weaker test based on 'objdump'. See mingw*.
  5173. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5174. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5175. ;;
  5176. darwin* | rhapsody*)
  5177. lt_cv_deplibs_check_method=pass_all
  5178. ;;
  5179. freebsd* | dragonfly* | midnightbsd*)
  5180. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5181. case $host_cpu in
  5182. i*86 )
  5183. # Not sure whether the presence of OpenBSD here was a mistake.
  5184. # Let's accept both of them until this is cleared up.
  5185. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5186. lt_cv_file_magic_cmd=/usr/bin/file
  5187. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5188. ;;
  5189. esac
  5190. else
  5191. lt_cv_deplibs_check_method=pass_all
  5192. fi
  5193. ;;
  5194. haiku*)
  5195. lt_cv_deplibs_check_method=pass_all
  5196. ;;
  5197. hpux10.20* | hpux11*)
  5198. lt_cv_file_magic_cmd=/usr/bin/file
  5199. case $host_cpu in
  5200. ia64*)
  5201. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5202. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5203. ;;
  5204. hppa*64*)
  5205. 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]'
  5206. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5207. ;;
  5208. *)
  5209. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5210. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5211. ;;
  5212. esac
  5213. ;;
  5214. interix[3-9]*)
  5215. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5216. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5217. ;;
  5218. irix5* | irix6* | nonstopux*)
  5219. case $LD in
  5220. *-32|*"-32 ") libmagic=32-bit;;
  5221. *-n32|*"-n32 ") libmagic=N32;;
  5222. *-64|*"-64 ") libmagic=64-bit;;
  5223. *) libmagic=never-match;;
  5224. esac
  5225. lt_cv_deplibs_check_method=pass_all
  5226. ;;
  5227. # This must be glibc/ELF.
  5228. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5229. lt_cv_deplibs_check_method=pass_all
  5230. ;;
  5231. netbsd*)
  5232. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5233. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5234. else
  5235. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5236. fi
  5237. ;;
  5238. newos6*)
  5239. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5240. lt_cv_file_magic_cmd=/usr/bin/file
  5241. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5242. ;;
  5243. *nto* | *qnx*)
  5244. lt_cv_deplibs_check_method=pass_all
  5245. ;;
  5246. openbsd* | bitrig*)
  5247. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5248. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5249. else
  5250. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5251. fi
  5252. ;;
  5253. osf3* | osf4* | osf5*)
  5254. lt_cv_deplibs_check_method=pass_all
  5255. ;;
  5256. rdos*)
  5257. lt_cv_deplibs_check_method=pass_all
  5258. ;;
  5259. solaris*)
  5260. lt_cv_deplibs_check_method=pass_all
  5261. ;;
  5262. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5263. lt_cv_deplibs_check_method=pass_all
  5264. ;;
  5265. sysv4 | sysv4.3*)
  5266. case $host_vendor in
  5267. motorola)
  5268. 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]'
  5269. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5270. ;;
  5271. ncr)
  5272. lt_cv_deplibs_check_method=pass_all
  5273. ;;
  5274. sequent)
  5275. lt_cv_file_magic_cmd='/bin/file'
  5276. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5277. ;;
  5278. sni)
  5279. lt_cv_file_magic_cmd='/bin/file'
  5280. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5281. lt_cv_file_magic_test_file=/lib/libc.so
  5282. ;;
  5283. siemens)
  5284. lt_cv_deplibs_check_method=pass_all
  5285. ;;
  5286. pc)
  5287. lt_cv_deplibs_check_method=pass_all
  5288. ;;
  5289. esac
  5290. ;;
  5291. tpf*)
  5292. lt_cv_deplibs_check_method=pass_all
  5293. ;;
  5294. os2*)
  5295. lt_cv_deplibs_check_method=pass_all
  5296. ;;
  5297. esac
  5298. fi
  5299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5300. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5301. file_magic_glob=
  5302. want_nocaseglob=no
  5303. if test "$build" = "$host"; then
  5304. case $host_os in
  5305. mingw* | pw32*)
  5306. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5307. want_nocaseglob=yes
  5308. else
  5309. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5310. fi
  5311. ;;
  5312. esac
  5313. fi
  5314. file_magic_cmd=$lt_cv_file_magic_cmd
  5315. deplibs_check_method=$lt_cv_deplibs_check_method
  5316. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5317. if test -n "$ac_tool_prefix"; then
  5318. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5319. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5321. printf %s "checking for $ac_word... " >&6; }
  5322. if test ${ac_cv_prog_DLLTOOL+y}
  5323. then :
  5324. printf %s "(cached) " >&6
  5325. else $as_nop
  5326. if test -n "$DLLTOOL"; then
  5327. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5328. else
  5329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5330. for as_dir in $PATH
  5331. do
  5332. IFS=$as_save_IFS
  5333. case $as_dir in #(((
  5334. '') as_dir=./ ;;
  5335. */) ;;
  5336. *) as_dir=$as_dir/ ;;
  5337. esac
  5338. for ac_exec_ext in '' $ac_executable_extensions; do
  5339. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5340. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5341. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5342. break 2
  5343. fi
  5344. done
  5345. done
  5346. IFS=$as_save_IFS
  5347. fi
  5348. fi
  5349. DLLTOOL=$ac_cv_prog_DLLTOOL
  5350. if test -n "$DLLTOOL"; then
  5351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5352. printf "%s\n" "$DLLTOOL" >&6; }
  5353. else
  5354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5355. printf "%s\n" "no" >&6; }
  5356. fi
  5357. fi
  5358. if test -z "$ac_cv_prog_DLLTOOL"; then
  5359. ac_ct_DLLTOOL=$DLLTOOL
  5360. # Extract the first word of "dlltool", so it can be a program name with args.
  5361. set dummy dlltool; ac_word=$2
  5362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5363. printf %s "checking for $ac_word... " >&6; }
  5364. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5365. then :
  5366. printf %s "(cached) " >&6
  5367. else $as_nop
  5368. if test -n "$ac_ct_DLLTOOL"; then
  5369. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5370. else
  5371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5372. for as_dir in $PATH
  5373. do
  5374. IFS=$as_save_IFS
  5375. case $as_dir in #(((
  5376. '') as_dir=./ ;;
  5377. */) ;;
  5378. *) as_dir=$as_dir/ ;;
  5379. esac
  5380. for ac_exec_ext in '' $ac_executable_extensions; do
  5381. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5382. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5383. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5384. break 2
  5385. fi
  5386. done
  5387. done
  5388. IFS=$as_save_IFS
  5389. fi
  5390. fi
  5391. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5392. if test -n "$ac_ct_DLLTOOL"; then
  5393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5394. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5395. else
  5396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5397. printf "%s\n" "no" >&6; }
  5398. fi
  5399. if test "x$ac_ct_DLLTOOL" = x; then
  5400. DLLTOOL="false"
  5401. else
  5402. case $cross_compiling:$ac_tool_warned in
  5403. yes:)
  5404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5405. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5406. ac_tool_warned=yes ;;
  5407. esac
  5408. DLLTOOL=$ac_ct_DLLTOOL
  5409. fi
  5410. else
  5411. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5412. fi
  5413. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5415. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5416. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5417. then :
  5418. printf %s "(cached) " >&6
  5419. else $as_nop
  5420. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5421. case $host_os in
  5422. cygwin* | mingw* | pw32* | cegcc*)
  5423. # two different shell functions defined in ltmain.sh;
  5424. # decide which one to use based on capabilities of $DLLTOOL
  5425. case `$DLLTOOL --help 2>&1` in
  5426. *--identify-strict*)
  5427. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5428. ;;
  5429. *)
  5430. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5431. ;;
  5432. esac
  5433. ;;
  5434. *)
  5435. # fallback: assume linklib IS sharedlib
  5436. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5437. ;;
  5438. esac
  5439. fi
  5440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5441. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5442. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5443. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5444. if test -n "$ac_tool_prefix"; then
  5445. for ac_prog in ar
  5446. do
  5447. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5448. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5450. printf %s "checking for $ac_word... " >&6; }
  5451. if test ${ac_cv_prog_AR+y}
  5452. then :
  5453. printf %s "(cached) " >&6
  5454. else $as_nop
  5455. if test -n "$AR"; then
  5456. ac_cv_prog_AR="$AR" # Let the user override the test.
  5457. else
  5458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5459. for as_dir in $PATH
  5460. do
  5461. IFS=$as_save_IFS
  5462. case $as_dir in #(((
  5463. '') as_dir=./ ;;
  5464. */) ;;
  5465. *) as_dir=$as_dir/ ;;
  5466. esac
  5467. for ac_exec_ext in '' $ac_executable_extensions; do
  5468. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5469. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5470. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5471. break 2
  5472. fi
  5473. done
  5474. done
  5475. IFS=$as_save_IFS
  5476. fi
  5477. fi
  5478. AR=$ac_cv_prog_AR
  5479. if test -n "$AR"; then
  5480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5481. printf "%s\n" "$AR" >&6; }
  5482. else
  5483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5484. printf "%s\n" "no" >&6; }
  5485. fi
  5486. test -n "$AR" && break
  5487. done
  5488. fi
  5489. if test -z "$AR"; then
  5490. ac_ct_AR=$AR
  5491. for ac_prog in ar
  5492. do
  5493. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5494. set dummy $ac_prog; ac_word=$2
  5495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5496. printf %s "checking for $ac_word... " >&6; }
  5497. if test ${ac_cv_prog_ac_ct_AR+y}
  5498. then :
  5499. printf %s "(cached) " >&6
  5500. else $as_nop
  5501. if test -n "$ac_ct_AR"; then
  5502. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5503. else
  5504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5505. for as_dir in $PATH
  5506. do
  5507. IFS=$as_save_IFS
  5508. case $as_dir in #(((
  5509. '') as_dir=./ ;;
  5510. */) ;;
  5511. *) as_dir=$as_dir/ ;;
  5512. esac
  5513. for ac_exec_ext in '' $ac_executable_extensions; do
  5514. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5515. ac_cv_prog_ac_ct_AR="$ac_prog"
  5516. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5517. break 2
  5518. fi
  5519. done
  5520. done
  5521. IFS=$as_save_IFS
  5522. fi
  5523. fi
  5524. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5525. if test -n "$ac_ct_AR"; then
  5526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5527. printf "%s\n" "$ac_ct_AR" >&6; }
  5528. else
  5529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5530. printf "%s\n" "no" >&6; }
  5531. fi
  5532. test -n "$ac_ct_AR" && break
  5533. done
  5534. if test "x$ac_ct_AR" = x; then
  5535. AR="false"
  5536. else
  5537. case $cross_compiling:$ac_tool_warned in
  5538. yes:)
  5539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5540. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5541. ac_tool_warned=yes ;;
  5542. esac
  5543. AR=$ac_ct_AR
  5544. fi
  5545. fi
  5546. : ${AR=ar}
  5547. : ${AR_FLAGS=cru}
  5548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5549. printf %s "checking for archiver @FILE support... " >&6; }
  5550. if test ${lt_cv_ar_at_file+y}
  5551. then :
  5552. printf %s "(cached) " >&6
  5553. else $as_nop
  5554. lt_cv_ar_at_file=no
  5555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5556. /* end confdefs.h. */
  5557. int
  5558. main (void)
  5559. {
  5560. ;
  5561. return 0;
  5562. }
  5563. _ACEOF
  5564. if ac_fn_c_try_compile "$LINENO"
  5565. then :
  5566. echo conftest.$ac_objext > conftest.lst
  5567. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5568. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5569. (eval $lt_ar_try) 2>&5
  5570. ac_status=$?
  5571. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5572. test $ac_status = 0; }
  5573. if test 0 -eq "$ac_status"; then
  5574. # Ensure the archiver fails upon bogus file names.
  5575. rm -f conftest.$ac_objext libconftest.a
  5576. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5577. (eval $lt_ar_try) 2>&5
  5578. ac_status=$?
  5579. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5580. test $ac_status = 0; }
  5581. if test 0 -ne "$ac_status"; then
  5582. lt_cv_ar_at_file=@
  5583. fi
  5584. fi
  5585. rm -f conftest.* libconftest.a
  5586. fi
  5587. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5588. fi
  5589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5590. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5591. if test no = "$lt_cv_ar_at_file"; then
  5592. archiver_list_spec=
  5593. else
  5594. archiver_list_spec=$lt_cv_ar_at_file
  5595. fi
  5596. if test -n "$ac_tool_prefix"; then
  5597. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5598. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5600. printf %s "checking for $ac_word... " >&6; }
  5601. if test ${ac_cv_prog_STRIP+y}
  5602. then :
  5603. printf %s "(cached) " >&6
  5604. else $as_nop
  5605. if test -n "$STRIP"; then
  5606. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5607. else
  5608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5609. for as_dir in $PATH
  5610. do
  5611. IFS=$as_save_IFS
  5612. case $as_dir in #(((
  5613. '') as_dir=./ ;;
  5614. */) ;;
  5615. *) as_dir=$as_dir/ ;;
  5616. esac
  5617. for ac_exec_ext in '' $ac_executable_extensions; do
  5618. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5619. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5620. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5621. break 2
  5622. fi
  5623. done
  5624. done
  5625. IFS=$as_save_IFS
  5626. fi
  5627. fi
  5628. STRIP=$ac_cv_prog_STRIP
  5629. if test -n "$STRIP"; then
  5630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5631. printf "%s\n" "$STRIP" >&6; }
  5632. else
  5633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5634. printf "%s\n" "no" >&6; }
  5635. fi
  5636. fi
  5637. if test -z "$ac_cv_prog_STRIP"; then
  5638. ac_ct_STRIP=$STRIP
  5639. # Extract the first word of "strip", so it can be a program name with args.
  5640. set dummy strip; ac_word=$2
  5641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5642. printf %s "checking for $ac_word... " >&6; }
  5643. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5644. then :
  5645. printf %s "(cached) " >&6
  5646. else $as_nop
  5647. if test -n "$ac_ct_STRIP"; then
  5648. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5649. else
  5650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5651. for as_dir in $PATH
  5652. do
  5653. IFS=$as_save_IFS
  5654. case $as_dir in #(((
  5655. '') as_dir=./ ;;
  5656. */) ;;
  5657. *) as_dir=$as_dir/ ;;
  5658. esac
  5659. for ac_exec_ext in '' $ac_executable_extensions; do
  5660. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5661. ac_cv_prog_ac_ct_STRIP="strip"
  5662. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5663. break 2
  5664. fi
  5665. done
  5666. done
  5667. IFS=$as_save_IFS
  5668. fi
  5669. fi
  5670. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5671. if test -n "$ac_ct_STRIP"; then
  5672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5673. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5674. else
  5675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5676. printf "%s\n" "no" >&6; }
  5677. fi
  5678. if test "x$ac_ct_STRIP" = x; then
  5679. STRIP=":"
  5680. else
  5681. case $cross_compiling:$ac_tool_warned in
  5682. yes:)
  5683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5684. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5685. ac_tool_warned=yes ;;
  5686. esac
  5687. STRIP=$ac_ct_STRIP
  5688. fi
  5689. else
  5690. STRIP="$ac_cv_prog_STRIP"
  5691. fi
  5692. test -z "$STRIP" && STRIP=:
  5693. if test -n "$ac_tool_prefix"; then
  5694. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5695. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5697. printf %s "checking for $ac_word... " >&6; }
  5698. if test ${ac_cv_prog_RANLIB+y}
  5699. then :
  5700. printf %s "(cached) " >&6
  5701. else $as_nop
  5702. if test -n "$RANLIB"; then
  5703. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5704. else
  5705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5706. for as_dir in $PATH
  5707. do
  5708. IFS=$as_save_IFS
  5709. case $as_dir in #(((
  5710. '') as_dir=./ ;;
  5711. */) ;;
  5712. *) as_dir=$as_dir/ ;;
  5713. esac
  5714. for ac_exec_ext in '' $ac_executable_extensions; do
  5715. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5716. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5717. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5718. break 2
  5719. fi
  5720. done
  5721. done
  5722. IFS=$as_save_IFS
  5723. fi
  5724. fi
  5725. RANLIB=$ac_cv_prog_RANLIB
  5726. if test -n "$RANLIB"; then
  5727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5728. printf "%s\n" "$RANLIB" >&6; }
  5729. else
  5730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5731. printf "%s\n" "no" >&6; }
  5732. fi
  5733. fi
  5734. if test -z "$ac_cv_prog_RANLIB"; then
  5735. ac_ct_RANLIB=$RANLIB
  5736. # Extract the first word of "ranlib", so it can be a program name with args.
  5737. set dummy ranlib; ac_word=$2
  5738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5739. printf %s "checking for $ac_word... " >&6; }
  5740. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5741. then :
  5742. printf %s "(cached) " >&6
  5743. else $as_nop
  5744. if test -n "$ac_ct_RANLIB"; then
  5745. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5746. else
  5747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5748. for as_dir in $PATH
  5749. do
  5750. IFS=$as_save_IFS
  5751. case $as_dir in #(((
  5752. '') as_dir=./ ;;
  5753. */) ;;
  5754. *) as_dir=$as_dir/ ;;
  5755. esac
  5756. for ac_exec_ext in '' $ac_executable_extensions; do
  5757. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5758. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5759. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5760. break 2
  5761. fi
  5762. done
  5763. done
  5764. IFS=$as_save_IFS
  5765. fi
  5766. fi
  5767. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5768. if test -n "$ac_ct_RANLIB"; then
  5769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5770. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5771. else
  5772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5773. printf "%s\n" "no" >&6; }
  5774. fi
  5775. if test "x$ac_ct_RANLIB" = x; then
  5776. RANLIB=":"
  5777. else
  5778. case $cross_compiling:$ac_tool_warned in
  5779. yes:)
  5780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5781. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5782. ac_tool_warned=yes ;;
  5783. esac
  5784. RANLIB=$ac_ct_RANLIB
  5785. fi
  5786. else
  5787. RANLIB="$ac_cv_prog_RANLIB"
  5788. fi
  5789. test -z "$RANLIB" && RANLIB=:
  5790. # Determine commands to create old-style static archives.
  5791. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5792. old_postinstall_cmds='chmod 644 $oldlib'
  5793. old_postuninstall_cmds=
  5794. if test -n "$RANLIB"; then
  5795. case $host_os in
  5796. bitrig* | openbsd*)
  5797. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5798. ;;
  5799. *)
  5800. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5801. ;;
  5802. esac
  5803. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5804. fi
  5805. case $host_os in
  5806. darwin*)
  5807. lock_old_archive_extraction=yes ;;
  5808. *)
  5809. lock_old_archive_extraction=no ;;
  5810. esac
  5811. for ac_prog in gawk mawk nawk awk
  5812. do
  5813. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5814. set dummy $ac_prog; ac_word=$2
  5815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5816. printf %s "checking for $ac_word... " >&6; }
  5817. if test ${ac_cv_prog_AWK+y}
  5818. then :
  5819. printf %s "(cached) " >&6
  5820. else $as_nop
  5821. if test -n "$AWK"; then
  5822. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5823. else
  5824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5825. for as_dir in $PATH
  5826. do
  5827. IFS=$as_save_IFS
  5828. case $as_dir in #(((
  5829. '') as_dir=./ ;;
  5830. */) ;;
  5831. *) as_dir=$as_dir/ ;;
  5832. esac
  5833. for ac_exec_ext in '' $ac_executable_extensions; do
  5834. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5835. ac_cv_prog_AWK="$ac_prog"
  5836. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5837. break 2
  5838. fi
  5839. done
  5840. done
  5841. IFS=$as_save_IFS
  5842. fi
  5843. fi
  5844. AWK=$ac_cv_prog_AWK
  5845. if test -n "$AWK"; then
  5846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5847. printf "%s\n" "$AWK" >&6; }
  5848. else
  5849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5850. printf "%s\n" "no" >&6; }
  5851. fi
  5852. test -n "$AWK" && break
  5853. done
  5854. # If no C compiler was specified, use CC.
  5855. LTCC=${LTCC-"$CC"}
  5856. # If no C compiler flags were specified, use CFLAGS.
  5857. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5858. # Allow CC to be a program name with arguments.
  5859. compiler=$CC
  5860. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5862. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5863. if test ${lt_cv_sys_global_symbol_pipe+y}
  5864. then :
  5865. printf %s "(cached) " >&6
  5866. else $as_nop
  5867. # These are sane defaults that work on at least a few old systems.
  5868. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5869. # Character class describing NM global symbol codes.
  5870. symcode='[BCDEGRST]'
  5871. # Regexp to match symbols that can be accessed directly from C.
  5872. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5873. # Define system-specific variables.
  5874. case $host_os in
  5875. aix*)
  5876. symcode='[BCDT]'
  5877. ;;
  5878. cygwin* | mingw* | pw32* | cegcc*)
  5879. symcode='[ABCDGISTW]'
  5880. ;;
  5881. hpux*)
  5882. if test ia64 = "$host_cpu"; then
  5883. symcode='[ABCDEGRST]'
  5884. fi
  5885. ;;
  5886. irix* | nonstopux*)
  5887. symcode='[BCDEGRST]'
  5888. ;;
  5889. osf*)
  5890. symcode='[BCDEGQRST]'
  5891. ;;
  5892. solaris*)
  5893. symcode='[BCDRT]'
  5894. ;;
  5895. sco3.2v5*)
  5896. symcode='[DT]'
  5897. ;;
  5898. sysv4.2uw2*)
  5899. symcode='[DT]'
  5900. ;;
  5901. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5902. symcode='[ABDT]'
  5903. ;;
  5904. sysv4)
  5905. symcode='[DFNSTU]'
  5906. ;;
  5907. esac
  5908. # If we're using GNU nm, then use its standard symbol codes.
  5909. case `$NM -V 2>&1` in
  5910. *GNU* | *'with BFD'*)
  5911. symcode='[ABCDGIRSTW]' ;;
  5912. esac
  5913. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5914. # Gets list of data symbols to import.
  5915. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5916. # Adjust the below global symbol transforms to fixup imported variables.
  5917. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5918. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5919. lt_c_name_lib_hook="\
  5920. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5921. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5922. else
  5923. # Disable hooks by default.
  5924. lt_cv_sys_global_symbol_to_import=
  5925. lt_cdecl_hook=
  5926. lt_c_name_hook=
  5927. lt_c_name_lib_hook=
  5928. fi
  5929. # Transform an extracted symbol line into a proper C declaration.
  5930. # Some systems (esp. on ia64) link data and code symbols differently,
  5931. # so use this general approach.
  5932. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5933. $lt_cdecl_hook\
  5934. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5935. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5936. # Transform an extracted symbol line into symbol name and symbol address
  5937. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5938. $lt_c_name_hook\
  5939. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5940. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5941. # Transform an extracted symbol line into symbol name with lib prefix and
  5942. # symbol address.
  5943. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5944. $lt_c_name_lib_hook\
  5945. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5946. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5947. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5948. # Handle CRLF in mingw tool chain
  5949. opt_cr=
  5950. case $build_os in
  5951. mingw*)
  5952. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5953. ;;
  5954. esac
  5955. # Try without a prefix underscore, then with it.
  5956. for ac_symprfx in "" "_"; do
  5957. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5958. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5959. # Write the raw and C identifiers.
  5960. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5961. # Fake it for dumpbin and say T for any non-static function,
  5962. # D for any global variable and I for any imported variable.
  5963. # Also find C++ and __fastcall symbols from MSVC++,
  5964. # which start with @ or ?.
  5965. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5966. " {last_section=section; section=\$ 3};"\
  5967. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5968. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5969. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5970. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5971. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5972. " \$ 0!~/External *\|/{next};"\
  5973. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5974. " {if(hide[section]) next};"\
  5975. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5976. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5977. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5978. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5979. " ' prfx=^$ac_symprfx"
  5980. else
  5981. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5982. fi
  5983. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5984. # Check to see that the pipe works correctly.
  5985. pipe_works=no
  5986. rm -f conftest*
  5987. cat > conftest.$ac_ext <<_LT_EOF
  5988. #ifdef __cplusplus
  5989. extern "C" {
  5990. #endif
  5991. char nm_test_var;
  5992. void nm_test_func(void);
  5993. void nm_test_func(void){}
  5994. #ifdef __cplusplus
  5995. }
  5996. #endif
  5997. int main(){nm_test_var='a';nm_test_func();return(0);}
  5998. _LT_EOF
  5999. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6000. (eval $ac_compile) 2>&5
  6001. ac_status=$?
  6002. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6003. test $ac_status = 0; }; then
  6004. # Now try to grab the symbols.
  6005. nlist=conftest.nm
  6006. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6007. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6008. ac_status=$?
  6009. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6010. test $ac_status = 0; } && test -s "$nlist"; then
  6011. # Try sorting and uniquifying the output.
  6012. if sort "$nlist" | uniq > "$nlist"T; then
  6013. mv -f "$nlist"T "$nlist"
  6014. else
  6015. rm -f "$nlist"T
  6016. fi
  6017. # Make sure that we snagged all the symbols we need.
  6018. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6019. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6020. cat <<_LT_EOF > conftest.$ac_ext
  6021. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6022. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6023. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6024. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6025. # define LT_DLSYM_CONST
  6026. #elif defined __osf__
  6027. /* This system does not cope well with relocations in const data. */
  6028. # define LT_DLSYM_CONST
  6029. #else
  6030. # define LT_DLSYM_CONST const
  6031. #endif
  6032. #ifdef __cplusplus
  6033. extern "C" {
  6034. #endif
  6035. _LT_EOF
  6036. # Now generate the symbol file.
  6037. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6038. cat <<_LT_EOF >> conftest.$ac_ext
  6039. /* The mapping between symbol names and symbols. */
  6040. LT_DLSYM_CONST struct {
  6041. const char *name;
  6042. void *address;
  6043. }
  6044. lt__PROGRAM__LTX_preloaded_symbols[] =
  6045. {
  6046. { "@PROGRAM@", (void *) 0 },
  6047. _LT_EOF
  6048. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6049. cat <<\_LT_EOF >> conftest.$ac_ext
  6050. {0, (void *) 0}
  6051. };
  6052. /* This works around a problem in FreeBSD linker */
  6053. #ifdef FREEBSD_WORKAROUND
  6054. static const void *lt_preloaded_setup() {
  6055. return lt__PROGRAM__LTX_preloaded_symbols;
  6056. }
  6057. #endif
  6058. #ifdef __cplusplus
  6059. }
  6060. #endif
  6061. _LT_EOF
  6062. # Now try linking the two files.
  6063. mv conftest.$ac_objext conftstm.$ac_objext
  6064. lt_globsym_save_LIBS=$LIBS
  6065. lt_globsym_save_CFLAGS=$CFLAGS
  6066. LIBS=conftstm.$ac_objext
  6067. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6068. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6069. (eval $ac_link) 2>&5
  6070. ac_status=$?
  6071. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6072. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6073. pipe_works=yes
  6074. fi
  6075. LIBS=$lt_globsym_save_LIBS
  6076. CFLAGS=$lt_globsym_save_CFLAGS
  6077. else
  6078. echo "cannot find nm_test_func in $nlist" >&5
  6079. fi
  6080. else
  6081. echo "cannot find nm_test_var in $nlist" >&5
  6082. fi
  6083. else
  6084. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6085. fi
  6086. else
  6087. echo "$progname: failed program was:" >&5
  6088. cat conftest.$ac_ext >&5
  6089. fi
  6090. rm -rf conftest* conftst*
  6091. # Do not use the global_symbol_pipe unless it works.
  6092. if test yes = "$pipe_works"; then
  6093. break
  6094. else
  6095. lt_cv_sys_global_symbol_pipe=
  6096. fi
  6097. done
  6098. fi
  6099. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6100. lt_cv_sys_global_symbol_to_cdecl=
  6101. fi
  6102. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6104. printf "%s\n" "failed" >&6; }
  6105. else
  6106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6107. printf "%s\n" "ok" >&6; }
  6108. fi
  6109. # Response file support.
  6110. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6111. nm_file_list_spec='@'
  6112. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6113. nm_file_list_spec='@'
  6114. fi
  6115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6116. printf %s "checking for sysroot... " >&6; }
  6117. # Check whether --with-sysroot was given.
  6118. if test ${with_sysroot+y}
  6119. then :
  6120. withval=$with_sysroot;
  6121. else $as_nop
  6122. with_sysroot=no
  6123. fi
  6124. lt_sysroot=
  6125. case $with_sysroot in #(
  6126. yes)
  6127. if test yes = "$GCC"; then
  6128. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6129. fi
  6130. ;; #(
  6131. /*)
  6132. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6133. ;; #(
  6134. no|'')
  6135. ;; #(
  6136. *)
  6137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6138. printf "%s\n" "$with_sysroot" >&6; }
  6139. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6140. ;;
  6141. esac
  6142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6143. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6145. printf %s "checking for a working dd... " >&6; }
  6146. if test ${ac_cv_path_lt_DD+y}
  6147. then :
  6148. printf %s "(cached) " >&6
  6149. else $as_nop
  6150. printf 0123456789abcdef0123456789abcdef >conftest.i
  6151. cat conftest.i conftest.i >conftest2.i
  6152. : ${lt_DD:=$DD}
  6153. if test -z "$lt_DD"; then
  6154. ac_path_lt_DD_found=false
  6155. # Loop through the user's path and test for each of PROGNAME-LIST
  6156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6157. for as_dir in $PATH
  6158. do
  6159. IFS=$as_save_IFS
  6160. case $as_dir in #(((
  6161. '') as_dir=./ ;;
  6162. */) ;;
  6163. *) as_dir=$as_dir/ ;;
  6164. esac
  6165. for ac_prog in dd
  6166. do
  6167. for ac_exec_ext in '' $ac_executable_extensions; do
  6168. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6169. as_fn_executable_p "$ac_path_lt_DD" || continue
  6170. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6171. cmp -s conftest.i conftest.out \
  6172. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6173. fi
  6174. $ac_path_lt_DD_found && break 3
  6175. done
  6176. done
  6177. done
  6178. IFS=$as_save_IFS
  6179. if test -z "$ac_cv_path_lt_DD"; then
  6180. :
  6181. fi
  6182. else
  6183. ac_cv_path_lt_DD=$lt_DD
  6184. fi
  6185. rm -f conftest.i conftest2.i conftest.out
  6186. fi
  6187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6188. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6190. printf %s "checking how to truncate binary pipes... " >&6; }
  6191. if test ${lt_cv_truncate_bin+y}
  6192. then :
  6193. printf %s "(cached) " >&6
  6194. else $as_nop
  6195. printf 0123456789abcdef0123456789abcdef >conftest.i
  6196. cat conftest.i conftest.i >conftest2.i
  6197. lt_cv_truncate_bin=
  6198. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6199. cmp -s conftest.i conftest.out \
  6200. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6201. fi
  6202. rm -f conftest.i conftest2.i conftest.out
  6203. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6204. fi
  6205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6206. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6207. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6208. func_cc_basename ()
  6209. {
  6210. for cc_temp in $*""; do
  6211. case $cc_temp in
  6212. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6213. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6214. \-*) ;;
  6215. *) break;;
  6216. esac
  6217. done
  6218. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6219. }
  6220. # Check whether --enable-libtool-lock was given.
  6221. if test ${enable_libtool_lock+y}
  6222. then :
  6223. enableval=$enable_libtool_lock;
  6224. fi
  6225. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6226. # Some flags need to be propagated to the compiler or linker for good
  6227. # libtool support.
  6228. case $host in
  6229. ia64-*-hpux*)
  6230. # Find out what ABI is being produced by ac_compile, and set mode
  6231. # options accordingly.
  6232. echo 'int i;' > conftest.$ac_ext
  6233. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6234. (eval $ac_compile) 2>&5
  6235. ac_status=$?
  6236. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6237. test $ac_status = 0; }; then
  6238. case `/usr/bin/file conftest.$ac_objext` in
  6239. *ELF-32*)
  6240. HPUX_IA64_MODE=32
  6241. ;;
  6242. *ELF-64*)
  6243. HPUX_IA64_MODE=64
  6244. ;;
  6245. esac
  6246. fi
  6247. rm -rf conftest*
  6248. ;;
  6249. *-*-irix6*)
  6250. # Find out what ABI is being produced by ac_compile, and set linker
  6251. # options accordingly.
  6252. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6253. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6254. (eval $ac_compile) 2>&5
  6255. ac_status=$?
  6256. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6257. test $ac_status = 0; }; then
  6258. if test yes = "$lt_cv_prog_gnu_ld"; then
  6259. case `/usr/bin/file conftest.$ac_objext` in
  6260. *32-bit*)
  6261. LD="${LD-ld} -melf32bsmip"
  6262. ;;
  6263. *N32*)
  6264. LD="${LD-ld} -melf32bmipn32"
  6265. ;;
  6266. *64-bit*)
  6267. LD="${LD-ld} -melf64bmip"
  6268. ;;
  6269. esac
  6270. else
  6271. case `/usr/bin/file conftest.$ac_objext` in
  6272. *32-bit*)
  6273. LD="${LD-ld} -32"
  6274. ;;
  6275. *N32*)
  6276. LD="${LD-ld} -n32"
  6277. ;;
  6278. *64-bit*)
  6279. LD="${LD-ld} -64"
  6280. ;;
  6281. esac
  6282. fi
  6283. fi
  6284. rm -rf conftest*
  6285. ;;
  6286. mips64*-*linux*)
  6287. # Find out what ABI is being produced by ac_compile, and set linker
  6288. # options accordingly.
  6289. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6290. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6291. (eval $ac_compile) 2>&5
  6292. ac_status=$?
  6293. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6294. test $ac_status = 0; }; then
  6295. emul=elf
  6296. case `/usr/bin/file conftest.$ac_objext` in
  6297. *32-bit*)
  6298. emul="${emul}32"
  6299. ;;
  6300. *64-bit*)
  6301. emul="${emul}64"
  6302. ;;
  6303. esac
  6304. case `/usr/bin/file conftest.$ac_objext` in
  6305. *MSB*)
  6306. emul="${emul}btsmip"
  6307. ;;
  6308. *LSB*)
  6309. emul="${emul}ltsmip"
  6310. ;;
  6311. esac
  6312. case `/usr/bin/file conftest.$ac_objext` in
  6313. *N32*)
  6314. emul="${emul}n32"
  6315. ;;
  6316. esac
  6317. LD="${LD-ld} -m $emul"
  6318. fi
  6319. rm -rf conftest*
  6320. ;;
  6321. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6322. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6323. # Find out what ABI is being produced by ac_compile, and set linker
  6324. # options accordingly. Note that the listed cases only cover the
  6325. # situations where additional linker options are needed (such as when
  6326. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6327. # vice versa); the common cases where no linker options are needed do
  6328. # not appear in the list.
  6329. echo 'int i;' > conftest.$ac_ext
  6330. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6331. (eval $ac_compile) 2>&5
  6332. ac_status=$?
  6333. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6334. test $ac_status = 0; }; then
  6335. case `/usr/bin/file conftest.o` in
  6336. *32-bit*)
  6337. case $host in
  6338. x86_64-*kfreebsd*-gnu)
  6339. LD="${LD-ld} -m elf_i386_fbsd"
  6340. ;;
  6341. x86_64-*linux*)
  6342. case `/usr/bin/file conftest.o` in
  6343. *x86-64*)
  6344. LD="${LD-ld} -m elf32_x86_64"
  6345. ;;
  6346. *)
  6347. LD="${LD-ld} -m elf_i386"
  6348. ;;
  6349. esac
  6350. ;;
  6351. powerpc64le-*linux*)
  6352. LD="${LD-ld} -m elf32lppclinux"
  6353. ;;
  6354. powerpc64-*linux*)
  6355. LD="${LD-ld} -m elf32ppclinux"
  6356. ;;
  6357. s390x-*linux*)
  6358. LD="${LD-ld} -m elf_s390"
  6359. ;;
  6360. sparc64-*linux*)
  6361. LD="${LD-ld} -m elf32_sparc"
  6362. ;;
  6363. esac
  6364. ;;
  6365. *64-bit*)
  6366. case $host in
  6367. x86_64-*kfreebsd*-gnu)
  6368. LD="${LD-ld} -m elf_x86_64_fbsd"
  6369. ;;
  6370. x86_64-*linux*)
  6371. LD="${LD-ld} -m elf_x86_64"
  6372. ;;
  6373. powerpcle-*linux*|powerpc64le-*linux*)
  6374. LD="${LD-ld} -m elf64lppc"
  6375. ;;
  6376. powerpc-*linux*|powerpc64-*linux*)
  6377. LD="${LD-ld} -m elf64ppc"
  6378. ;;
  6379. s390*-*linux*|s390*-*tpf*)
  6380. LD="${LD-ld} -m elf64_s390"
  6381. ;;
  6382. sparc*-*linux*)
  6383. LD="${LD-ld} -m elf64_sparc"
  6384. ;;
  6385. esac
  6386. ;;
  6387. esac
  6388. fi
  6389. rm -rf conftest*
  6390. ;;
  6391. *-*-sco3.2v5*)
  6392. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6393. SAVE_CFLAGS=$CFLAGS
  6394. CFLAGS="$CFLAGS -belf"
  6395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6396. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6397. if test ${lt_cv_cc_needs_belf+y}
  6398. then :
  6399. printf %s "(cached) " >&6
  6400. else $as_nop
  6401. ac_ext=c
  6402. ac_cpp='$CPP $CPPFLAGS'
  6403. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6404. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6405. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6407. /* end confdefs.h. */
  6408. int
  6409. main (void)
  6410. {
  6411. ;
  6412. return 0;
  6413. }
  6414. _ACEOF
  6415. if ac_fn_c_try_link "$LINENO"
  6416. then :
  6417. lt_cv_cc_needs_belf=yes
  6418. else $as_nop
  6419. lt_cv_cc_needs_belf=no
  6420. fi
  6421. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6422. conftest$ac_exeext conftest.$ac_ext
  6423. ac_ext=c
  6424. ac_cpp='$CPP $CPPFLAGS'
  6425. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6426. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6427. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6428. fi
  6429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6430. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6431. if test yes != "$lt_cv_cc_needs_belf"; then
  6432. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6433. CFLAGS=$SAVE_CFLAGS
  6434. fi
  6435. ;;
  6436. *-*solaris*)
  6437. # Find out what ABI is being produced by ac_compile, and set linker
  6438. # options accordingly.
  6439. echo 'int i;' > conftest.$ac_ext
  6440. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6441. (eval $ac_compile) 2>&5
  6442. ac_status=$?
  6443. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6444. test $ac_status = 0; }; then
  6445. case `/usr/bin/file conftest.o` in
  6446. *64-bit*)
  6447. case $lt_cv_prog_gnu_ld in
  6448. yes*)
  6449. case $host in
  6450. i?86-*-solaris*|x86_64-*-solaris*)
  6451. LD="${LD-ld} -m elf_x86_64"
  6452. ;;
  6453. sparc*-*-solaris*)
  6454. LD="${LD-ld} -m elf64_sparc"
  6455. ;;
  6456. esac
  6457. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6458. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6459. LD=${LD-ld}_sol2
  6460. fi
  6461. ;;
  6462. *)
  6463. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6464. LD="${LD-ld} -64"
  6465. fi
  6466. ;;
  6467. esac
  6468. ;;
  6469. esac
  6470. fi
  6471. rm -rf conftest*
  6472. ;;
  6473. esac
  6474. need_locks=$enable_libtool_lock
  6475. if test -n "$ac_tool_prefix"; then
  6476. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6477. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6479. printf %s "checking for $ac_word... " >&6; }
  6480. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6481. then :
  6482. printf %s "(cached) " >&6
  6483. else $as_nop
  6484. if test -n "$MANIFEST_TOOL"; then
  6485. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6486. else
  6487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6488. for as_dir in $PATH
  6489. do
  6490. IFS=$as_save_IFS
  6491. case $as_dir in #(((
  6492. '') as_dir=./ ;;
  6493. */) ;;
  6494. *) as_dir=$as_dir/ ;;
  6495. esac
  6496. for ac_exec_ext in '' $ac_executable_extensions; do
  6497. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6498. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6499. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6500. break 2
  6501. fi
  6502. done
  6503. done
  6504. IFS=$as_save_IFS
  6505. fi
  6506. fi
  6507. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6508. if test -n "$MANIFEST_TOOL"; then
  6509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6510. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6511. else
  6512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6513. printf "%s\n" "no" >&6; }
  6514. fi
  6515. fi
  6516. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6517. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6518. # Extract the first word of "mt", so it can be a program name with args.
  6519. set dummy mt; ac_word=$2
  6520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6521. printf %s "checking for $ac_word... " >&6; }
  6522. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6523. then :
  6524. printf %s "(cached) " >&6
  6525. else $as_nop
  6526. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6527. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6528. else
  6529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6530. for as_dir in $PATH
  6531. do
  6532. IFS=$as_save_IFS
  6533. case $as_dir in #(((
  6534. '') as_dir=./ ;;
  6535. */) ;;
  6536. *) as_dir=$as_dir/ ;;
  6537. esac
  6538. for ac_exec_ext in '' $ac_executable_extensions; do
  6539. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6540. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6541. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6542. break 2
  6543. fi
  6544. done
  6545. done
  6546. IFS=$as_save_IFS
  6547. fi
  6548. fi
  6549. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6550. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6552. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6553. else
  6554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6555. printf "%s\n" "no" >&6; }
  6556. fi
  6557. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6558. MANIFEST_TOOL=":"
  6559. else
  6560. case $cross_compiling:$ac_tool_warned in
  6561. yes:)
  6562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6563. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6564. ac_tool_warned=yes ;;
  6565. esac
  6566. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6567. fi
  6568. else
  6569. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6570. fi
  6571. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6573. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6574. if test ${lt_cv_path_mainfest_tool+y}
  6575. then :
  6576. printf %s "(cached) " >&6
  6577. else $as_nop
  6578. lt_cv_path_mainfest_tool=no
  6579. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6580. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6581. cat conftest.err >&5
  6582. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6583. lt_cv_path_mainfest_tool=yes
  6584. fi
  6585. rm -f conftest*
  6586. fi
  6587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6588. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6589. if test yes != "$lt_cv_path_mainfest_tool"; then
  6590. MANIFEST_TOOL=:
  6591. fi
  6592. case $host_os in
  6593. rhapsody* | darwin*)
  6594. if test -n "$ac_tool_prefix"; then
  6595. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6596. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6598. printf %s "checking for $ac_word... " >&6; }
  6599. if test ${ac_cv_prog_DSYMUTIL+y}
  6600. then :
  6601. printf %s "(cached) " >&6
  6602. else $as_nop
  6603. if test -n "$DSYMUTIL"; then
  6604. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6605. else
  6606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6607. for as_dir in $PATH
  6608. do
  6609. IFS=$as_save_IFS
  6610. case $as_dir in #(((
  6611. '') as_dir=./ ;;
  6612. */) ;;
  6613. *) as_dir=$as_dir/ ;;
  6614. esac
  6615. for ac_exec_ext in '' $ac_executable_extensions; do
  6616. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6617. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6618. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6619. break 2
  6620. fi
  6621. done
  6622. done
  6623. IFS=$as_save_IFS
  6624. fi
  6625. fi
  6626. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6627. if test -n "$DSYMUTIL"; then
  6628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6629. printf "%s\n" "$DSYMUTIL" >&6; }
  6630. else
  6631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6632. printf "%s\n" "no" >&6; }
  6633. fi
  6634. fi
  6635. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6636. ac_ct_DSYMUTIL=$DSYMUTIL
  6637. # Extract the first word of "dsymutil", so it can be a program name with args.
  6638. set dummy dsymutil; ac_word=$2
  6639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6640. printf %s "checking for $ac_word... " >&6; }
  6641. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6642. then :
  6643. printf %s "(cached) " >&6
  6644. else $as_nop
  6645. if test -n "$ac_ct_DSYMUTIL"; then
  6646. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6647. else
  6648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6649. for as_dir in $PATH
  6650. do
  6651. IFS=$as_save_IFS
  6652. case $as_dir in #(((
  6653. '') as_dir=./ ;;
  6654. */) ;;
  6655. *) as_dir=$as_dir/ ;;
  6656. esac
  6657. for ac_exec_ext in '' $ac_executable_extensions; do
  6658. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6659. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6660. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6661. break 2
  6662. fi
  6663. done
  6664. done
  6665. IFS=$as_save_IFS
  6666. fi
  6667. fi
  6668. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6669. if test -n "$ac_ct_DSYMUTIL"; then
  6670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6671. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6672. else
  6673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6674. printf "%s\n" "no" >&6; }
  6675. fi
  6676. if test "x$ac_ct_DSYMUTIL" = x; then
  6677. DSYMUTIL=":"
  6678. else
  6679. case $cross_compiling:$ac_tool_warned in
  6680. yes:)
  6681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6682. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6683. ac_tool_warned=yes ;;
  6684. esac
  6685. DSYMUTIL=$ac_ct_DSYMUTIL
  6686. fi
  6687. else
  6688. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6689. fi
  6690. if test -n "$ac_tool_prefix"; then
  6691. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6692. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6694. printf %s "checking for $ac_word... " >&6; }
  6695. if test ${ac_cv_prog_NMEDIT+y}
  6696. then :
  6697. printf %s "(cached) " >&6
  6698. else $as_nop
  6699. if test -n "$NMEDIT"; then
  6700. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6701. else
  6702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6703. for as_dir in $PATH
  6704. do
  6705. IFS=$as_save_IFS
  6706. case $as_dir in #(((
  6707. '') as_dir=./ ;;
  6708. */) ;;
  6709. *) as_dir=$as_dir/ ;;
  6710. esac
  6711. for ac_exec_ext in '' $ac_executable_extensions; do
  6712. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6713. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6714. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6715. break 2
  6716. fi
  6717. done
  6718. done
  6719. IFS=$as_save_IFS
  6720. fi
  6721. fi
  6722. NMEDIT=$ac_cv_prog_NMEDIT
  6723. if test -n "$NMEDIT"; then
  6724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6725. printf "%s\n" "$NMEDIT" >&6; }
  6726. else
  6727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6728. printf "%s\n" "no" >&6; }
  6729. fi
  6730. fi
  6731. if test -z "$ac_cv_prog_NMEDIT"; then
  6732. ac_ct_NMEDIT=$NMEDIT
  6733. # Extract the first word of "nmedit", so it can be a program name with args.
  6734. set dummy nmedit; ac_word=$2
  6735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6736. printf %s "checking for $ac_word... " >&6; }
  6737. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6738. then :
  6739. printf %s "(cached) " >&6
  6740. else $as_nop
  6741. if test -n "$ac_ct_NMEDIT"; then
  6742. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6743. else
  6744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6745. for as_dir in $PATH
  6746. do
  6747. IFS=$as_save_IFS
  6748. case $as_dir in #(((
  6749. '') as_dir=./ ;;
  6750. */) ;;
  6751. *) as_dir=$as_dir/ ;;
  6752. esac
  6753. for ac_exec_ext in '' $ac_executable_extensions; do
  6754. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6755. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6756. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6757. break 2
  6758. fi
  6759. done
  6760. done
  6761. IFS=$as_save_IFS
  6762. fi
  6763. fi
  6764. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6765. if test -n "$ac_ct_NMEDIT"; then
  6766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6767. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6768. else
  6769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6770. printf "%s\n" "no" >&6; }
  6771. fi
  6772. if test "x$ac_ct_NMEDIT" = x; then
  6773. NMEDIT=":"
  6774. else
  6775. case $cross_compiling:$ac_tool_warned in
  6776. yes:)
  6777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6778. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6779. ac_tool_warned=yes ;;
  6780. esac
  6781. NMEDIT=$ac_ct_NMEDIT
  6782. fi
  6783. else
  6784. NMEDIT="$ac_cv_prog_NMEDIT"
  6785. fi
  6786. if test -n "$ac_tool_prefix"; then
  6787. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6788. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6790. printf %s "checking for $ac_word... " >&6; }
  6791. if test ${ac_cv_prog_LIPO+y}
  6792. then :
  6793. printf %s "(cached) " >&6
  6794. else $as_nop
  6795. if test -n "$LIPO"; then
  6796. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6797. else
  6798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6799. for as_dir in $PATH
  6800. do
  6801. IFS=$as_save_IFS
  6802. case $as_dir in #(((
  6803. '') as_dir=./ ;;
  6804. */) ;;
  6805. *) as_dir=$as_dir/ ;;
  6806. esac
  6807. for ac_exec_ext in '' $ac_executable_extensions; do
  6808. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6809. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6810. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6811. break 2
  6812. fi
  6813. done
  6814. done
  6815. IFS=$as_save_IFS
  6816. fi
  6817. fi
  6818. LIPO=$ac_cv_prog_LIPO
  6819. if test -n "$LIPO"; then
  6820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6821. printf "%s\n" "$LIPO" >&6; }
  6822. else
  6823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6824. printf "%s\n" "no" >&6; }
  6825. fi
  6826. fi
  6827. if test -z "$ac_cv_prog_LIPO"; then
  6828. ac_ct_LIPO=$LIPO
  6829. # Extract the first word of "lipo", so it can be a program name with args.
  6830. set dummy lipo; ac_word=$2
  6831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6832. printf %s "checking for $ac_word... " >&6; }
  6833. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6834. then :
  6835. printf %s "(cached) " >&6
  6836. else $as_nop
  6837. if test -n "$ac_ct_LIPO"; then
  6838. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6839. else
  6840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6841. for as_dir in $PATH
  6842. do
  6843. IFS=$as_save_IFS
  6844. case $as_dir in #(((
  6845. '') as_dir=./ ;;
  6846. */) ;;
  6847. *) as_dir=$as_dir/ ;;
  6848. esac
  6849. for ac_exec_ext in '' $ac_executable_extensions; do
  6850. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6851. ac_cv_prog_ac_ct_LIPO="lipo"
  6852. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6853. break 2
  6854. fi
  6855. done
  6856. done
  6857. IFS=$as_save_IFS
  6858. fi
  6859. fi
  6860. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6861. if test -n "$ac_ct_LIPO"; then
  6862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6863. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6864. else
  6865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6866. printf "%s\n" "no" >&6; }
  6867. fi
  6868. if test "x$ac_ct_LIPO" = x; then
  6869. LIPO=":"
  6870. else
  6871. case $cross_compiling:$ac_tool_warned in
  6872. yes:)
  6873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6874. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6875. ac_tool_warned=yes ;;
  6876. esac
  6877. LIPO=$ac_ct_LIPO
  6878. fi
  6879. else
  6880. LIPO="$ac_cv_prog_LIPO"
  6881. fi
  6882. if test -n "$ac_tool_prefix"; then
  6883. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6884. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6886. printf %s "checking for $ac_word... " >&6; }
  6887. if test ${ac_cv_prog_OTOOL+y}
  6888. then :
  6889. printf %s "(cached) " >&6
  6890. else $as_nop
  6891. if test -n "$OTOOL"; then
  6892. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6893. else
  6894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6895. for as_dir in $PATH
  6896. do
  6897. IFS=$as_save_IFS
  6898. case $as_dir in #(((
  6899. '') as_dir=./ ;;
  6900. */) ;;
  6901. *) as_dir=$as_dir/ ;;
  6902. esac
  6903. for ac_exec_ext in '' $ac_executable_extensions; do
  6904. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6905. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6906. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6907. break 2
  6908. fi
  6909. done
  6910. done
  6911. IFS=$as_save_IFS
  6912. fi
  6913. fi
  6914. OTOOL=$ac_cv_prog_OTOOL
  6915. if test -n "$OTOOL"; then
  6916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6917. printf "%s\n" "$OTOOL" >&6; }
  6918. else
  6919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6920. printf "%s\n" "no" >&6; }
  6921. fi
  6922. fi
  6923. if test -z "$ac_cv_prog_OTOOL"; then
  6924. ac_ct_OTOOL=$OTOOL
  6925. # Extract the first word of "otool", so it can be a program name with args.
  6926. set dummy otool; ac_word=$2
  6927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6928. printf %s "checking for $ac_word... " >&6; }
  6929. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6930. then :
  6931. printf %s "(cached) " >&6
  6932. else $as_nop
  6933. if test -n "$ac_ct_OTOOL"; then
  6934. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6935. else
  6936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6937. for as_dir in $PATH
  6938. do
  6939. IFS=$as_save_IFS
  6940. case $as_dir in #(((
  6941. '') as_dir=./ ;;
  6942. */) ;;
  6943. *) as_dir=$as_dir/ ;;
  6944. esac
  6945. for ac_exec_ext in '' $ac_executable_extensions; do
  6946. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6947. ac_cv_prog_ac_ct_OTOOL="otool"
  6948. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6949. break 2
  6950. fi
  6951. done
  6952. done
  6953. IFS=$as_save_IFS
  6954. fi
  6955. fi
  6956. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6957. if test -n "$ac_ct_OTOOL"; then
  6958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6959. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6960. else
  6961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6962. printf "%s\n" "no" >&6; }
  6963. fi
  6964. if test "x$ac_ct_OTOOL" = x; then
  6965. OTOOL=":"
  6966. else
  6967. case $cross_compiling:$ac_tool_warned in
  6968. yes:)
  6969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6970. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6971. ac_tool_warned=yes ;;
  6972. esac
  6973. OTOOL=$ac_ct_OTOOL
  6974. fi
  6975. else
  6976. OTOOL="$ac_cv_prog_OTOOL"
  6977. fi
  6978. if test -n "$ac_tool_prefix"; then
  6979. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6980. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6982. printf %s "checking for $ac_word... " >&6; }
  6983. if test ${ac_cv_prog_OTOOL64+y}
  6984. then :
  6985. printf %s "(cached) " >&6
  6986. else $as_nop
  6987. if test -n "$OTOOL64"; then
  6988. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6989. else
  6990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6991. for as_dir in $PATH
  6992. do
  6993. IFS=$as_save_IFS
  6994. case $as_dir in #(((
  6995. '') as_dir=./ ;;
  6996. */) ;;
  6997. *) as_dir=$as_dir/ ;;
  6998. esac
  6999. for ac_exec_ext in '' $ac_executable_extensions; do
  7000. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7001. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7002. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7003. break 2
  7004. fi
  7005. done
  7006. done
  7007. IFS=$as_save_IFS
  7008. fi
  7009. fi
  7010. OTOOL64=$ac_cv_prog_OTOOL64
  7011. if test -n "$OTOOL64"; then
  7012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7013. printf "%s\n" "$OTOOL64" >&6; }
  7014. else
  7015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7016. printf "%s\n" "no" >&6; }
  7017. fi
  7018. fi
  7019. if test -z "$ac_cv_prog_OTOOL64"; then
  7020. ac_ct_OTOOL64=$OTOOL64
  7021. # Extract the first word of "otool64", so it can be a program name with args.
  7022. set dummy otool64; ac_word=$2
  7023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7024. printf %s "checking for $ac_word... " >&6; }
  7025. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7026. then :
  7027. printf %s "(cached) " >&6
  7028. else $as_nop
  7029. if test -n "$ac_ct_OTOOL64"; then
  7030. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7031. else
  7032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7033. for as_dir in $PATH
  7034. do
  7035. IFS=$as_save_IFS
  7036. case $as_dir in #(((
  7037. '') as_dir=./ ;;
  7038. */) ;;
  7039. *) as_dir=$as_dir/ ;;
  7040. esac
  7041. for ac_exec_ext in '' $ac_executable_extensions; do
  7042. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7043. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7044. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7045. break 2
  7046. fi
  7047. done
  7048. done
  7049. IFS=$as_save_IFS
  7050. fi
  7051. fi
  7052. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7053. if test -n "$ac_ct_OTOOL64"; then
  7054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7055. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7056. else
  7057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7058. printf "%s\n" "no" >&6; }
  7059. fi
  7060. if test "x$ac_ct_OTOOL64" = x; then
  7061. OTOOL64=":"
  7062. else
  7063. case $cross_compiling:$ac_tool_warned in
  7064. yes:)
  7065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7066. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7067. ac_tool_warned=yes ;;
  7068. esac
  7069. OTOOL64=$ac_ct_OTOOL64
  7070. fi
  7071. else
  7072. OTOOL64="$ac_cv_prog_OTOOL64"
  7073. fi
  7074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7075. printf %s "checking for -single_module linker flag... " >&6; }
  7076. if test ${lt_cv_apple_cc_single_mod+y}
  7077. then :
  7078. printf %s "(cached) " >&6
  7079. else $as_nop
  7080. lt_cv_apple_cc_single_mod=no
  7081. if test -z "$LT_MULTI_MODULE"; then
  7082. # By default we will add the -single_module flag. You can override
  7083. # by either setting the environment variable LT_MULTI_MODULE
  7084. # non-empty at configure time, or by adding -multi_module to the
  7085. # link flags.
  7086. rm -rf libconftest.dylib*
  7087. echo "int foo(void){return 1;}" > conftest.c
  7088. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7089. -dynamiclib -Wl,-single_module conftest.c" >&5
  7090. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7091. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7092. _lt_result=$?
  7093. # If there is a non-empty error log, and "single_module"
  7094. # appears in it, assume the flag caused a linker warning
  7095. if test -s conftest.err && $GREP single_module conftest.err; then
  7096. cat conftest.err >&5
  7097. # Otherwise, if the output was created with a 0 exit code from
  7098. # the compiler, it worked.
  7099. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7100. lt_cv_apple_cc_single_mod=yes
  7101. else
  7102. cat conftest.err >&5
  7103. fi
  7104. rm -rf libconftest.dylib*
  7105. rm -f conftest.*
  7106. fi
  7107. fi
  7108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7109. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7111. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7112. if test ${lt_cv_ld_exported_symbols_list+y}
  7113. then :
  7114. printf %s "(cached) " >&6
  7115. else $as_nop
  7116. lt_cv_ld_exported_symbols_list=no
  7117. save_LDFLAGS=$LDFLAGS
  7118. echo "_main" > conftest.sym
  7119. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7121. /* end confdefs.h. */
  7122. int
  7123. main (void)
  7124. {
  7125. ;
  7126. return 0;
  7127. }
  7128. _ACEOF
  7129. if ac_fn_c_try_link "$LINENO"
  7130. then :
  7131. lt_cv_ld_exported_symbols_list=yes
  7132. else $as_nop
  7133. lt_cv_ld_exported_symbols_list=no
  7134. fi
  7135. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7136. conftest$ac_exeext conftest.$ac_ext
  7137. LDFLAGS=$save_LDFLAGS
  7138. fi
  7139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7140. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7142. printf %s "checking for -force_load linker flag... " >&6; }
  7143. if test ${lt_cv_ld_force_load+y}
  7144. then :
  7145. printf %s "(cached) " >&6
  7146. else $as_nop
  7147. lt_cv_ld_force_load=no
  7148. cat > conftest.c << _LT_EOF
  7149. int forced_loaded() { return 2;}
  7150. _LT_EOF
  7151. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7152. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7153. echo "$AR cru libconftest.a conftest.o" >&5
  7154. $AR cru libconftest.a conftest.o 2>&5
  7155. echo "$RANLIB libconftest.a" >&5
  7156. $RANLIB libconftest.a 2>&5
  7157. cat > conftest.c << _LT_EOF
  7158. int main() { return 0;}
  7159. _LT_EOF
  7160. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7161. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7162. _lt_result=$?
  7163. if test -s conftest.err && $GREP force_load conftest.err; then
  7164. cat conftest.err >&5
  7165. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7166. lt_cv_ld_force_load=yes
  7167. else
  7168. cat conftest.err >&5
  7169. fi
  7170. rm -f conftest.err libconftest.a conftest conftest.c
  7171. rm -rf conftest.dSYM
  7172. fi
  7173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7174. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7175. case $host_os in
  7176. rhapsody* | darwin1.[012])
  7177. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7178. darwin1.*)
  7179. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7180. darwin*)
  7181. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7182. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7183. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7184. *)
  7185. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7186. esac
  7187. ;;
  7188. esac
  7189. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7190. _lt_dar_single_mod='$single_module'
  7191. fi
  7192. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7193. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7194. else
  7195. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7196. fi
  7197. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7198. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7199. else
  7200. _lt_dsymutil=
  7201. fi
  7202. ;;
  7203. esac
  7204. # func_munge_path_list VARIABLE PATH
  7205. # -----------------------------------
  7206. # VARIABLE is name of variable containing _space_ separated list of
  7207. # directories to be munged by the contents of PATH, which is string
  7208. # having a format:
  7209. # "DIR[:DIR]:"
  7210. # string "DIR[ DIR]" will be prepended to VARIABLE
  7211. # ":DIR[:DIR]"
  7212. # string "DIR[ DIR]" will be appended to VARIABLE
  7213. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7214. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7215. # "DIRA[ DIRA]" will be appended to VARIABLE
  7216. # "DIR[:DIR]"
  7217. # VARIABLE will be replaced by "DIR[ DIR]"
  7218. func_munge_path_list ()
  7219. {
  7220. case x$2 in
  7221. x)
  7222. ;;
  7223. *:)
  7224. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7225. ;;
  7226. x:*)
  7227. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7228. ;;
  7229. *::*)
  7230. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7231. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7232. ;;
  7233. *)
  7234. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7235. ;;
  7236. esac
  7237. }
  7238. ac_header= ac_cache=
  7239. for ac_item in $ac_header_c_list
  7240. do
  7241. if test $ac_cache; then
  7242. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7243. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7244. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7245. fi
  7246. ac_header= ac_cache=
  7247. elif test $ac_header; then
  7248. ac_cache=$ac_item
  7249. else
  7250. ac_header=$ac_item
  7251. fi
  7252. done
  7253. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7254. then :
  7255. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7256. fi
  7257. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7258. "
  7259. if test "x$ac_cv_header_dlfcn_h" = xyes
  7260. then :
  7261. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7262. fi
  7263. # Set options
  7264. enable_win32_dll=yes
  7265. case $host in
  7266. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7267. if test -n "$ac_tool_prefix"; then
  7268. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7269. set dummy ${ac_tool_prefix}as; ac_word=$2
  7270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7271. printf %s "checking for $ac_word... " >&6; }
  7272. if test ${ac_cv_prog_AS+y}
  7273. then :
  7274. printf %s "(cached) " >&6
  7275. else $as_nop
  7276. if test -n "$AS"; then
  7277. ac_cv_prog_AS="$AS" # Let the user override the test.
  7278. else
  7279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7280. for as_dir in $PATH
  7281. do
  7282. IFS=$as_save_IFS
  7283. case $as_dir in #(((
  7284. '') as_dir=./ ;;
  7285. */) ;;
  7286. *) as_dir=$as_dir/ ;;
  7287. esac
  7288. for ac_exec_ext in '' $ac_executable_extensions; do
  7289. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7290. ac_cv_prog_AS="${ac_tool_prefix}as"
  7291. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7292. break 2
  7293. fi
  7294. done
  7295. done
  7296. IFS=$as_save_IFS
  7297. fi
  7298. fi
  7299. AS=$ac_cv_prog_AS
  7300. if test -n "$AS"; then
  7301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7302. printf "%s\n" "$AS" >&6; }
  7303. else
  7304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7305. printf "%s\n" "no" >&6; }
  7306. fi
  7307. fi
  7308. if test -z "$ac_cv_prog_AS"; then
  7309. ac_ct_AS=$AS
  7310. # Extract the first word of "as", so it can be a program name with args.
  7311. set dummy as; ac_word=$2
  7312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7313. printf %s "checking for $ac_word... " >&6; }
  7314. if test ${ac_cv_prog_ac_ct_AS+y}
  7315. then :
  7316. printf %s "(cached) " >&6
  7317. else $as_nop
  7318. if test -n "$ac_ct_AS"; then
  7319. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7320. else
  7321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7322. for as_dir in $PATH
  7323. do
  7324. IFS=$as_save_IFS
  7325. case $as_dir in #(((
  7326. '') as_dir=./ ;;
  7327. */) ;;
  7328. *) as_dir=$as_dir/ ;;
  7329. esac
  7330. for ac_exec_ext in '' $ac_executable_extensions; do
  7331. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7332. ac_cv_prog_ac_ct_AS="as"
  7333. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7334. break 2
  7335. fi
  7336. done
  7337. done
  7338. IFS=$as_save_IFS
  7339. fi
  7340. fi
  7341. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7342. if test -n "$ac_ct_AS"; then
  7343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7344. printf "%s\n" "$ac_ct_AS" >&6; }
  7345. else
  7346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7347. printf "%s\n" "no" >&6; }
  7348. fi
  7349. if test "x$ac_ct_AS" = x; then
  7350. AS="false"
  7351. else
  7352. case $cross_compiling:$ac_tool_warned in
  7353. yes:)
  7354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7355. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7356. ac_tool_warned=yes ;;
  7357. esac
  7358. AS=$ac_ct_AS
  7359. fi
  7360. else
  7361. AS="$ac_cv_prog_AS"
  7362. fi
  7363. if test -n "$ac_tool_prefix"; then
  7364. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7365. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7367. printf %s "checking for $ac_word... " >&6; }
  7368. if test ${ac_cv_prog_DLLTOOL+y}
  7369. then :
  7370. printf %s "(cached) " >&6
  7371. else $as_nop
  7372. if test -n "$DLLTOOL"; then
  7373. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7374. else
  7375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7376. for as_dir in $PATH
  7377. do
  7378. IFS=$as_save_IFS
  7379. case $as_dir in #(((
  7380. '') as_dir=./ ;;
  7381. */) ;;
  7382. *) as_dir=$as_dir/ ;;
  7383. esac
  7384. for ac_exec_ext in '' $ac_executable_extensions; do
  7385. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7386. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7387. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7388. break 2
  7389. fi
  7390. done
  7391. done
  7392. IFS=$as_save_IFS
  7393. fi
  7394. fi
  7395. DLLTOOL=$ac_cv_prog_DLLTOOL
  7396. if test -n "$DLLTOOL"; then
  7397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7398. printf "%s\n" "$DLLTOOL" >&6; }
  7399. else
  7400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7401. printf "%s\n" "no" >&6; }
  7402. fi
  7403. fi
  7404. if test -z "$ac_cv_prog_DLLTOOL"; then
  7405. ac_ct_DLLTOOL=$DLLTOOL
  7406. # Extract the first word of "dlltool", so it can be a program name with args.
  7407. set dummy dlltool; ac_word=$2
  7408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7409. printf %s "checking for $ac_word... " >&6; }
  7410. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7411. then :
  7412. printf %s "(cached) " >&6
  7413. else $as_nop
  7414. if test -n "$ac_ct_DLLTOOL"; then
  7415. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7416. else
  7417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7418. for as_dir in $PATH
  7419. do
  7420. IFS=$as_save_IFS
  7421. case $as_dir in #(((
  7422. '') as_dir=./ ;;
  7423. */) ;;
  7424. *) as_dir=$as_dir/ ;;
  7425. esac
  7426. for ac_exec_ext in '' $ac_executable_extensions; do
  7427. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7428. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7429. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7430. break 2
  7431. fi
  7432. done
  7433. done
  7434. IFS=$as_save_IFS
  7435. fi
  7436. fi
  7437. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7438. if test -n "$ac_ct_DLLTOOL"; then
  7439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7440. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7441. else
  7442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7443. printf "%s\n" "no" >&6; }
  7444. fi
  7445. if test "x$ac_ct_DLLTOOL" = x; then
  7446. DLLTOOL="false"
  7447. else
  7448. case $cross_compiling:$ac_tool_warned in
  7449. yes:)
  7450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7451. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7452. ac_tool_warned=yes ;;
  7453. esac
  7454. DLLTOOL=$ac_ct_DLLTOOL
  7455. fi
  7456. else
  7457. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7458. fi
  7459. if test -n "$ac_tool_prefix"; then
  7460. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7461. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7463. printf %s "checking for $ac_word... " >&6; }
  7464. if test ${ac_cv_prog_OBJDUMP+y}
  7465. then :
  7466. printf %s "(cached) " >&6
  7467. else $as_nop
  7468. if test -n "$OBJDUMP"; then
  7469. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7470. else
  7471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7472. for as_dir in $PATH
  7473. do
  7474. IFS=$as_save_IFS
  7475. case $as_dir in #(((
  7476. '') as_dir=./ ;;
  7477. */) ;;
  7478. *) as_dir=$as_dir/ ;;
  7479. esac
  7480. for ac_exec_ext in '' $ac_executable_extensions; do
  7481. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7482. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7483. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7484. break 2
  7485. fi
  7486. done
  7487. done
  7488. IFS=$as_save_IFS
  7489. fi
  7490. fi
  7491. OBJDUMP=$ac_cv_prog_OBJDUMP
  7492. if test -n "$OBJDUMP"; then
  7493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7494. printf "%s\n" "$OBJDUMP" >&6; }
  7495. else
  7496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7497. printf "%s\n" "no" >&6; }
  7498. fi
  7499. fi
  7500. if test -z "$ac_cv_prog_OBJDUMP"; then
  7501. ac_ct_OBJDUMP=$OBJDUMP
  7502. # Extract the first word of "objdump", so it can be a program name with args.
  7503. set dummy objdump; ac_word=$2
  7504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7505. printf %s "checking for $ac_word... " >&6; }
  7506. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7507. then :
  7508. printf %s "(cached) " >&6
  7509. else $as_nop
  7510. if test -n "$ac_ct_OBJDUMP"; then
  7511. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7512. else
  7513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7514. for as_dir in $PATH
  7515. do
  7516. IFS=$as_save_IFS
  7517. case $as_dir in #(((
  7518. '') as_dir=./ ;;
  7519. */) ;;
  7520. *) as_dir=$as_dir/ ;;
  7521. esac
  7522. for ac_exec_ext in '' $ac_executable_extensions; do
  7523. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7524. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7525. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7526. break 2
  7527. fi
  7528. done
  7529. done
  7530. IFS=$as_save_IFS
  7531. fi
  7532. fi
  7533. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7534. if test -n "$ac_ct_OBJDUMP"; then
  7535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7536. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7537. else
  7538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7539. printf "%s\n" "no" >&6; }
  7540. fi
  7541. if test "x$ac_ct_OBJDUMP" = x; then
  7542. OBJDUMP="false"
  7543. else
  7544. case $cross_compiling:$ac_tool_warned in
  7545. yes:)
  7546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7547. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7548. ac_tool_warned=yes ;;
  7549. esac
  7550. OBJDUMP=$ac_ct_OBJDUMP
  7551. fi
  7552. else
  7553. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7554. fi
  7555. ;;
  7556. esac
  7557. test -z "$AS" && AS=as
  7558. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7559. test -z "$OBJDUMP" && OBJDUMP=objdump
  7560. enable_dlopen=no
  7561. # Check whether --enable-shared was given.
  7562. if test ${enable_shared+y}
  7563. then :
  7564. enableval=$enable_shared; p=${PACKAGE-default}
  7565. case $enableval in
  7566. yes) enable_shared=yes ;;
  7567. no) enable_shared=no ;;
  7568. *)
  7569. enable_shared=no
  7570. # Look at the argument we got. We use all the common list separators.
  7571. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7572. for pkg in $enableval; do
  7573. IFS=$lt_save_ifs
  7574. if test "X$pkg" = "X$p"; then
  7575. enable_shared=yes
  7576. fi
  7577. done
  7578. IFS=$lt_save_ifs
  7579. ;;
  7580. esac
  7581. else $as_nop
  7582. enable_shared=yes
  7583. fi
  7584. # Check whether --enable-static was given.
  7585. if test ${enable_static+y}
  7586. then :
  7587. enableval=$enable_static; p=${PACKAGE-default}
  7588. case $enableval in
  7589. yes) enable_static=yes ;;
  7590. no) enable_static=no ;;
  7591. *)
  7592. enable_static=no
  7593. # Look at the argument we got. We use all the common list separators.
  7594. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7595. for pkg in $enableval; do
  7596. IFS=$lt_save_ifs
  7597. if test "X$pkg" = "X$p"; then
  7598. enable_static=yes
  7599. fi
  7600. done
  7601. IFS=$lt_save_ifs
  7602. ;;
  7603. esac
  7604. else $as_nop
  7605. enable_static=yes
  7606. fi
  7607. # Check whether --with-pic was given.
  7608. if test ${with_pic+y}
  7609. then :
  7610. withval=$with_pic; lt_p=${PACKAGE-default}
  7611. case $withval in
  7612. yes|no) pic_mode=$withval ;;
  7613. *)
  7614. pic_mode=default
  7615. # Look at the argument we got. We use all the common list separators.
  7616. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7617. for lt_pkg in $withval; do
  7618. IFS=$lt_save_ifs
  7619. if test "X$lt_pkg" = "X$lt_p"; then
  7620. pic_mode=yes
  7621. fi
  7622. done
  7623. IFS=$lt_save_ifs
  7624. ;;
  7625. esac
  7626. else $as_nop
  7627. pic_mode=default
  7628. fi
  7629. # Check whether --enable-fast-install was given.
  7630. if test ${enable_fast_install+y}
  7631. then :
  7632. enableval=$enable_fast_install; p=${PACKAGE-default}
  7633. case $enableval in
  7634. yes) enable_fast_install=yes ;;
  7635. no) enable_fast_install=no ;;
  7636. *)
  7637. enable_fast_install=no
  7638. # Look at the argument we got. We use all the common list separators.
  7639. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7640. for pkg in $enableval; do
  7641. IFS=$lt_save_ifs
  7642. if test "X$pkg" = "X$p"; then
  7643. enable_fast_install=yes
  7644. fi
  7645. done
  7646. IFS=$lt_save_ifs
  7647. ;;
  7648. esac
  7649. else $as_nop
  7650. enable_fast_install=yes
  7651. fi
  7652. shared_archive_member_spec=
  7653. case $host,$enable_shared in
  7654. power*-*-aix[5-9]*,yes)
  7655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7656. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7657. # Check whether --with-aix-soname was given.
  7658. if test ${with_aix_soname+y}
  7659. then :
  7660. withval=$with_aix_soname; case $withval in
  7661. aix|svr4|both)
  7662. ;;
  7663. *)
  7664. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7665. ;;
  7666. esac
  7667. lt_cv_with_aix_soname=$with_aix_soname
  7668. else $as_nop
  7669. if test ${lt_cv_with_aix_soname+y}
  7670. then :
  7671. printf %s "(cached) " >&6
  7672. else $as_nop
  7673. lt_cv_with_aix_soname=aix
  7674. fi
  7675. with_aix_soname=$lt_cv_with_aix_soname
  7676. fi
  7677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7678. printf "%s\n" "$with_aix_soname" >&6; }
  7679. if test aix != "$with_aix_soname"; then
  7680. # For the AIX way of multilib, we name the shared archive member
  7681. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7682. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7683. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7684. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7685. if test 64 = "${OBJECT_MODE-32}"; then
  7686. shared_archive_member_spec=shr_64
  7687. else
  7688. shared_archive_member_spec=shr
  7689. fi
  7690. fi
  7691. ;;
  7692. *)
  7693. with_aix_soname=aix
  7694. ;;
  7695. esac
  7696. # This can be used to rebuild libtool when needed
  7697. LIBTOOL_DEPS=$ltmain
  7698. # Always use our own libtool.
  7699. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7700. test -z "$LN_S" && LN_S="ln -s"
  7701. if test -n "${ZSH_VERSION+set}"; then
  7702. setopt NO_GLOB_SUBST
  7703. fi
  7704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7705. printf %s "checking for objdir... " >&6; }
  7706. if test ${lt_cv_objdir+y}
  7707. then :
  7708. printf %s "(cached) " >&6
  7709. else $as_nop
  7710. rm -f .libs 2>/dev/null
  7711. mkdir .libs 2>/dev/null
  7712. if test -d .libs; then
  7713. lt_cv_objdir=.libs
  7714. else
  7715. # MS-DOS does not allow filenames that begin with a dot.
  7716. lt_cv_objdir=_libs
  7717. fi
  7718. rmdir .libs 2>/dev/null
  7719. fi
  7720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7721. printf "%s\n" "$lt_cv_objdir" >&6; }
  7722. objdir=$lt_cv_objdir
  7723. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7724. case $host_os in
  7725. aix3*)
  7726. # AIX sometimes has problems with the GCC collect2 program. For some
  7727. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7728. # vanish in a puff of smoke.
  7729. if test set != "${COLLECT_NAMES+set}"; then
  7730. COLLECT_NAMES=
  7731. export COLLECT_NAMES
  7732. fi
  7733. ;;
  7734. esac
  7735. # Global variables:
  7736. ofile=libtool
  7737. can_build_shared=yes
  7738. # All known linkers require a '.a' archive for static linking (except MSVC,
  7739. # which needs '.lib').
  7740. libext=a
  7741. with_gnu_ld=$lt_cv_prog_gnu_ld
  7742. old_CC=$CC
  7743. old_CFLAGS=$CFLAGS
  7744. # Set sane defaults for various variables
  7745. test -z "$CC" && CC=cc
  7746. test -z "$LTCC" && LTCC=$CC
  7747. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7748. test -z "$LD" && LD=ld
  7749. test -z "$ac_objext" && ac_objext=o
  7750. func_cc_basename $compiler
  7751. cc_basename=$func_cc_basename_result
  7752. # Only perform the check for file, if the check method requires it
  7753. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7754. case $deplibs_check_method in
  7755. file_magic*)
  7756. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7758. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7759. if test ${lt_cv_path_MAGIC_CMD+y}
  7760. then :
  7761. printf %s "(cached) " >&6
  7762. else $as_nop
  7763. case $MAGIC_CMD in
  7764. [\\/*] | ?:[\\/]*)
  7765. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7766. ;;
  7767. *)
  7768. lt_save_MAGIC_CMD=$MAGIC_CMD
  7769. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7770. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7771. for ac_dir in $ac_dummy; do
  7772. IFS=$lt_save_ifs
  7773. test -z "$ac_dir" && ac_dir=.
  7774. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7775. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7776. if test -n "$file_magic_test_file"; then
  7777. case $deplibs_check_method in
  7778. "file_magic "*)
  7779. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7780. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7781. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7782. $EGREP "$file_magic_regex" > /dev/null; then
  7783. :
  7784. else
  7785. cat <<_LT_EOF 1>&2
  7786. *** Warning: the command libtool uses to detect shared libraries,
  7787. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7788. *** The result is that libtool may fail to recognize shared libraries
  7789. *** as such. This will affect the creation of libtool libraries that
  7790. *** depend on shared libraries, but programs linked with such libtool
  7791. *** libraries will work regardless of this problem. Nevertheless, you
  7792. *** may want to report the problem to your system manager and/or to
  7793. *** bug-libtool@gnu.org
  7794. _LT_EOF
  7795. fi ;;
  7796. esac
  7797. fi
  7798. break
  7799. fi
  7800. done
  7801. IFS=$lt_save_ifs
  7802. MAGIC_CMD=$lt_save_MAGIC_CMD
  7803. ;;
  7804. esac
  7805. fi
  7806. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7807. if test -n "$MAGIC_CMD"; then
  7808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7809. printf "%s\n" "$MAGIC_CMD" >&6; }
  7810. else
  7811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7812. printf "%s\n" "no" >&6; }
  7813. fi
  7814. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7815. if test -n "$ac_tool_prefix"; then
  7816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7817. printf %s "checking for file... " >&6; }
  7818. if test ${lt_cv_path_MAGIC_CMD+y}
  7819. then :
  7820. printf %s "(cached) " >&6
  7821. else $as_nop
  7822. case $MAGIC_CMD in
  7823. [\\/*] | ?:[\\/]*)
  7824. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7825. ;;
  7826. *)
  7827. lt_save_MAGIC_CMD=$MAGIC_CMD
  7828. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7829. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7830. for ac_dir in $ac_dummy; do
  7831. IFS=$lt_save_ifs
  7832. test -z "$ac_dir" && ac_dir=.
  7833. if test -f "$ac_dir/file"; then
  7834. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7835. if test -n "$file_magic_test_file"; then
  7836. case $deplibs_check_method in
  7837. "file_magic "*)
  7838. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7839. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7840. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7841. $EGREP "$file_magic_regex" > /dev/null; then
  7842. :
  7843. else
  7844. cat <<_LT_EOF 1>&2
  7845. *** Warning: the command libtool uses to detect shared libraries,
  7846. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7847. *** The result is that libtool may fail to recognize shared libraries
  7848. *** as such. This will affect the creation of libtool libraries that
  7849. *** depend on shared libraries, but programs linked with such libtool
  7850. *** libraries will work regardless of this problem. Nevertheless, you
  7851. *** may want to report the problem to your system manager and/or to
  7852. *** bug-libtool@gnu.org
  7853. _LT_EOF
  7854. fi ;;
  7855. esac
  7856. fi
  7857. break
  7858. fi
  7859. done
  7860. IFS=$lt_save_ifs
  7861. MAGIC_CMD=$lt_save_MAGIC_CMD
  7862. ;;
  7863. esac
  7864. fi
  7865. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7866. if test -n "$MAGIC_CMD"; then
  7867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7868. printf "%s\n" "$MAGIC_CMD" >&6; }
  7869. else
  7870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7871. printf "%s\n" "no" >&6; }
  7872. fi
  7873. else
  7874. MAGIC_CMD=:
  7875. fi
  7876. fi
  7877. fi
  7878. ;;
  7879. esac
  7880. # Use C for the default configuration in the libtool script
  7881. lt_save_CC=$CC
  7882. ac_ext=c
  7883. ac_cpp='$CPP $CPPFLAGS'
  7884. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7885. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7886. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7887. # Source file extension for C test sources.
  7888. ac_ext=c
  7889. # Object file extension for compiled C test sources.
  7890. objext=o
  7891. objext=$objext
  7892. # Code to be used in simple compile tests
  7893. lt_simple_compile_test_code="int some_variable = 0;"
  7894. # Code to be used in simple link tests
  7895. lt_simple_link_test_code='int main(){return(0);}'
  7896. # If no C compiler was specified, use CC.
  7897. LTCC=${LTCC-"$CC"}
  7898. # If no C compiler flags were specified, use CFLAGS.
  7899. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7900. # Allow CC to be a program name with arguments.
  7901. compiler=$CC
  7902. # Save the default compiler, since it gets overwritten when the other
  7903. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7904. compiler_DEFAULT=$CC
  7905. # save warnings/boilerplate of simple test code
  7906. ac_outfile=conftest.$ac_objext
  7907. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7908. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7909. _lt_compiler_boilerplate=`cat conftest.err`
  7910. $RM conftest*
  7911. ac_outfile=conftest.$ac_objext
  7912. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7913. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7914. _lt_linker_boilerplate=`cat conftest.err`
  7915. $RM -r conftest*
  7916. ## CAVEAT EMPTOR:
  7917. ## There is no encapsulation within the following macros, do not change
  7918. ## the running order or otherwise move them around unless you know exactly
  7919. ## what you are doing...
  7920. if test -n "$compiler"; then
  7921. lt_prog_compiler_no_builtin_flag=
  7922. if test yes = "$GCC"; then
  7923. case $cc_basename in
  7924. nvcc*)
  7925. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7926. *)
  7927. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7928. esac
  7929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7930. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7931. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7932. then :
  7933. printf %s "(cached) " >&6
  7934. else $as_nop
  7935. lt_cv_prog_compiler_rtti_exceptions=no
  7936. ac_outfile=conftest.$ac_objext
  7937. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7938. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7939. # Insert the option either (1) after the last *FLAGS variable, or
  7940. # (2) before a word containing "conftest.", or (3) at the end.
  7941. # Note that $ac_compile itself does not contain backslashes and begins
  7942. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7943. # The option is referenced via a variable to avoid confusing sed.
  7944. lt_compile=`echo "$ac_compile" | $SED \
  7945. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7946. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7947. -e 's:$: $lt_compiler_flag:'`
  7948. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7949. (eval "$lt_compile" 2>conftest.err)
  7950. ac_status=$?
  7951. cat conftest.err >&5
  7952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7953. if (exit $ac_status) && test -s "$ac_outfile"; then
  7954. # The compiler can only warn and ignore the option if not recognized
  7955. # So say no if there are warnings other than the usual output.
  7956. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7957. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7958. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7959. lt_cv_prog_compiler_rtti_exceptions=yes
  7960. fi
  7961. fi
  7962. $RM conftest*
  7963. fi
  7964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7965. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7966. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7967. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7968. else
  7969. :
  7970. fi
  7971. fi
  7972. lt_prog_compiler_wl=
  7973. lt_prog_compiler_pic=
  7974. lt_prog_compiler_static=
  7975. if test yes = "$GCC"; then
  7976. lt_prog_compiler_wl='-Wl,'
  7977. lt_prog_compiler_static='-static'
  7978. case $host_os in
  7979. aix*)
  7980. # All AIX code is PIC.
  7981. if test ia64 = "$host_cpu"; then
  7982. # AIX 5 now supports IA64 processor
  7983. lt_prog_compiler_static='-Bstatic'
  7984. fi
  7985. lt_prog_compiler_pic='-fPIC'
  7986. ;;
  7987. amigaos*)
  7988. case $host_cpu in
  7989. powerpc)
  7990. # see comment about AmigaOS4 .so support
  7991. lt_prog_compiler_pic='-fPIC'
  7992. ;;
  7993. m68k)
  7994. # FIXME: we need at least 68020 code to build shared libraries, but
  7995. # adding the '-m68020' flag to GCC prevents building anything better,
  7996. # like '-m68040'.
  7997. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7998. ;;
  7999. esac
  8000. ;;
  8001. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8002. # PIC is the default for these OSes.
  8003. ;;
  8004. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8005. # This hack is so that the source file can tell whether it is being
  8006. # built for inclusion in a dll (and should export symbols for example).
  8007. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8008. # (--disable-auto-import) libraries
  8009. lt_prog_compiler_pic='-DDLL_EXPORT'
  8010. case $host_os in
  8011. os2*)
  8012. lt_prog_compiler_static='$wl-static'
  8013. ;;
  8014. esac
  8015. ;;
  8016. darwin* | rhapsody*)
  8017. # PIC is the default on this platform
  8018. # Common symbols not allowed in MH_DYLIB files
  8019. lt_prog_compiler_pic='-fno-common'
  8020. ;;
  8021. haiku*)
  8022. # PIC is the default for Haiku.
  8023. # The "-static" flag exists, but is broken.
  8024. lt_prog_compiler_static=
  8025. ;;
  8026. hpux*)
  8027. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8028. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8029. # sets the default TLS model and affects inlining.
  8030. case $host_cpu in
  8031. hppa*64*)
  8032. # +Z the default
  8033. ;;
  8034. *)
  8035. lt_prog_compiler_pic='-fPIC'
  8036. ;;
  8037. esac
  8038. ;;
  8039. interix[3-9]*)
  8040. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8041. # Instead, we relocate shared libraries at runtime.
  8042. ;;
  8043. msdosdjgpp*)
  8044. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8045. # on systems that don't support them.
  8046. lt_prog_compiler_can_build_shared=no
  8047. enable_shared=no
  8048. ;;
  8049. *nto* | *qnx*)
  8050. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8051. # it will coredump.
  8052. lt_prog_compiler_pic='-fPIC -shared'
  8053. ;;
  8054. sysv4*MP*)
  8055. if test -d /usr/nec; then
  8056. lt_prog_compiler_pic=-Kconform_pic
  8057. fi
  8058. ;;
  8059. *)
  8060. lt_prog_compiler_pic='-fPIC'
  8061. ;;
  8062. esac
  8063. case $cc_basename in
  8064. nvcc*) # Cuda Compiler Driver 2.2
  8065. lt_prog_compiler_wl='-Xlinker '
  8066. if test -n "$lt_prog_compiler_pic"; then
  8067. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8068. fi
  8069. ;;
  8070. esac
  8071. else
  8072. # PORTME Check for flag to pass linker flags through the system compiler.
  8073. case $host_os in
  8074. aix*)
  8075. lt_prog_compiler_wl='-Wl,'
  8076. if test ia64 = "$host_cpu"; then
  8077. # AIX 5 now supports IA64 processor
  8078. lt_prog_compiler_static='-Bstatic'
  8079. else
  8080. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8081. fi
  8082. ;;
  8083. darwin* | rhapsody*)
  8084. # PIC is the default on this platform
  8085. # Common symbols not allowed in MH_DYLIB files
  8086. lt_prog_compiler_pic='-fno-common'
  8087. case $cc_basename in
  8088. nagfor*)
  8089. # NAG Fortran compiler
  8090. lt_prog_compiler_wl='-Wl,-Wl,,'
  8091. lt_prog_compiler_pic='-PIC'
  8092. lt_prog_compiler_static='-Bstatic'
  8093. ;;
  8094. esac
  8095. ;;
  8096. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8097. # This hack is so that the source file can tell whether it is being
  8098. # built for inclusion in a dll (and should export symbols for example).
  8099. lt_prog_compiler_pic='-DDLL_EXPORT'
  8100. case $host_os in
  8101. os2*)
  8102. lt_prog_compiler_static='$wl-static'
  8103. ;;
  8104. esac
  8105. ;;
  8106. hpux9* | hpux10* | hpux11*)
  8107. lt_prog_compiler_wl='-Wl,'
  8108. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8109. # not for PA HP-UX.
  8110. case $host_cpu in
  8111. hppa*64*|ia64*)
  8112. # +Z the default
  8113. ;;
  8114. *)
  8115. lt_prog_compiler_pic='+Z'
  8116. ;;
  8117. esac
  8118. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8119. lt_prog_compiler_static='$wl-a ${wl}archive'
  8120. ;;
  8121. irix5* | irix6* | nonstopux*)
  8122. lt_prog_compiler_wl='-Wl,'
  8123. # PIC (with -KPIC) is the default.
  8124. lt_prog_compiler_static='-non_shared'
  8125. ;;
  8126. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8127. case $cc_basename in
  8128. # old Intel for x86_64, which still supported -KPIC.
  8129. ecc*)
  8130. lt_prog_compiler_wl='-Wl,'
  8131. lt_prog_compiler_pic='-KPIC'
  8132. lt_prog_compiler_static='-static'
  8133. ;;
  8134. # icc used to be incompatible with GCC.
  8135. # ICC 10 doesn't accept -KPIC any more.
  8136. icc* | ifort*)
  8137. lt_prog_compiler_wl='-Wl,'
  8138. lt_prog_compiler_pic='-fPIC'
  8139. lt_prog_compiler_static='-static'
  8140. ;;
  8141. # Lahey Fortran 8.1.
  8142. lf95*)
  8143. lt_prog_compiler_wl='-Wl,'
  8144. lt_prog_compiler_pic='--shared'
  8145. lt_prog_compiler_static='--static'
  8146. ;;
  8147. nagfor*)
  8148. # NAG Fortran compiler
  8149. lt_prog_compiler_wl='-Wl,-Wl,,'
  8150. lt_prog_compiler_pic='-PIC'
  8151. lt_prog_compiler_static='-Bstatic'
  8152. ;;
  8153. tcc*)
  8154. # Fabrice Bellard et al's Tiny C Compiler
  8155. lt_prog_compiler_wl='-Wl,'
  8156. lt_prog_compiler_pic='-fPIC'
  8157. lt_prog_compiler_static='-static'
  8158. ;;
  8159. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8160. # Portland Group compilers (*not* the Pentium gcc compiler,
  8161. # which looks to be a dead project)
  8162. lt_prog_compiler_wl='-Wl,'
  8163. lt_prog_compiler_pic='-fpic'
  8164. lt_prog_compiler_static='-Bstatic'
  8165. ;;
  8166. ccc*)
  8167. lt_prog_compiler_wl='-Wl,'
  8168. # All Alpha code is PIC.
  8169. lt_prog_compiler_static='-non_shared'
  8170. ;;
  8171. xl* | bgxl* | bgf* | mpixl*)
  8172. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8173. lt_prog_compiler_wl='-Wl,'
  8174. lt_prog_compiler_pic='-qpic'
  8175. lt_prog_compiler_static='-qstaticlink'
  8176. ;;
  8177. *)
  8178. case `$CC -V 2>&1 | sed 5q` in
  8179. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8180. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8181. lt_prog_compiler_pic='-KPIC'
  8182. lt_prog_compiler_static='-Bstatic'
  8183. lt_prog_compiler_wl=''
  8184. ;;
  8185. *Sun\ F* | *Sun*Fortran*)
  8186. lt_prog_compiler_pic='-KPIC'
  8187. lt_prog_compiler_static='-Bstatic'
  8188. lt_prog_compiler_wl='-Qoption ld '
  8189. ;;
  8190. *Sun\ C*)
  8191. # Sun C 5.9
  8192. lt_prog_compiler_pic='-KPIC'
  8193. lt_prog_compiler_static='-Bstatic'
  8194. lt_prog_compiler_wl='-Wl,'
  8195. ;;
  8196. *Intel*\ [CF]*Compiler*)
  8197. lt_prog_compiler_wl='-Wl,'
  8198. lt_prog_compiler_pic='-fPIC'
  8199. lt_prog_compiler_static='-static'
  8200. ;;
  8201. *Portland\ Group*)
  8202. lt_prog_compiler_wl='-Wl,'
  8203. lt_prog_compiler_pic='-fpic'
  8204. lt_prog_compiler_static='-Bstatic'
  8205. ;;
  8206. esac
  8207. ;;
  8208. esac
  8209. ;;
  8210. newsos6)
  8211. lt_prog_compiler_pic='-KPIC'
  8212. lt_prog_compiler_static='-Bstatic'
  8213. ;;
  8214. *nto* | *qnx*)
  8215. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8216. # it will coredump.
  8217. lt_prog_compiler_pic='-fPIC -shared'
  8218. ;;
  8219. osf3* | osf4* | osf5*)
  8220. lt_prog_compiler_wl='-Wl,'
  8221. # All OSF/1 code is PIC.
  8222. lt_prog_compiler_static='-non_shared'
  8223. ;;
  8224. rdos*)
  8225. lt_prog_compiler_static='-non_shared'
  8226. ;;
  8227. solaris*)
  8228. lt_prog_compiler_pic='-KPIC'
  8229. lt_prog_compiler_static='-Bstatic'
  8230. case $cc_basename in
  8231. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8232. lt_prog_compiler_wl='-Qoption ld ';;
  8233. *)
  8234. lt_prog_compiler_wl='-Wl,';;
  8235. esac
  8236. ;;
  8237. sunos4*)
  8238. lt_prog_compiler_wl='-Qoption ld '
  8239. lt_prog_compiler_pic='-PIC'
  8240. lt_prog_compiler_static='-Bstatic'
  8241. ;;
  8242. sysv4 | sysv4.2uw2* | sysv4.3*)
  8243. lt_prog_compiler_wl='-Wl,'
  8244. lt_prog_compiler_pic='-KPIC'
  8245. lt_prog_compiler_static='-Bstatic'
  8246. ;;
  8247. sysv4*MP*)
  8248. if test -d /usr/nec; then
  8249. lt_prog_compiler_pic='-Kconform_pic'
  8250. lt_prog_compiler_static='-Bstatic'
  8251. fi
  8252. ;;
  8253. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8254. lt_prog_compiler_wl='-Wl,'
  8255. lt_prog_compiler_pic='-KPIC'
  8256. lt_prog_compiler_static='-Bstatic'
  8257. ;;
  8258. unicos*)
  8259. lt_prog_compiler_wl='-Wl,'
  8260. lt_prog_compiler_can_build_shared=no
  8261. ;;
  8262. uts4*)
  8263. lt_prog_compiler_pic='-pic'
  8264. lt_prog_compiler_static='-Bstatic'
  8265. ;;
  8266. *)
  8267. lt_prog_compiler_can_build_shared=no
  8268. ;;
  8269. esac
  8270. fi
  8271. case $host_os in
  8272. # For platforms that do not support PIC, -DPIC is meaningless:
  8273. *djgpp*)
  8274. lt_prog_compiler_pic=
  8275. ;;
  8276. *)
  8277. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8278. ;;
  8279. esac
  8280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8281. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8282. if test ${lt_cv_prog_compiler_pic+y}
  8283. then :
  8284. printf %s "(cached) " >&6
  8285. else $as_nop
  8286. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8287. fi
  8288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8289. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8290. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8291. #
  8292. # Check to make sure the PIC flag actually works.
  8293. #
  8294. if test -n "$lt_prog_compiler_pic"; then
  8295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8296. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8297. if test ${lt_cv_prog_compiler_pic_works+y}
  8298. then :
  8299. printf %s "(cached) " >&6
  8300. else $as_nop
  8301. lt_cv_prog_compiler_pic_works=no
  8302. ac_outfile=conftest.$ac_objext
  8303. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8304. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8305. # Insert the option either (1) after the last *FLAGS variable, or
  8306. # (2) before a word containing "conftest.", or (3) at the end.
  8307. # Note that $ac_compile itself does not contain backslashes and begins
  8308. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8309. # The option is referenced via a variable to avoid confusing sed.
  8310. lt_compile=`echo "$ac_compile" | $SED \
  8311. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8312. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8313. -e 's:$: $lt_compiler_flag:'`
  8314. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8315. (eval "$lt_compile" 2>conftest.err)
  8316. ac_status=$?
  8317. cat conftest.err >&5
  8318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8319. if (exit $ac_status) && test -s "$ac_outfile"; then
  8320. # The compiler can only warn and ignore the option if not recognized
  8321. # So say no if there are warnings other than the usual output.
  8322. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8323. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8324. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8325. lt_cv_prog_compiler_pic_works=yes
  8326. fi
  8327. fi
  8328. $RM conftest*
  8329. fi
  8330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8331. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8332. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8333. case $lt_prog_compiler_pic in
  8334. "" | " "*) ;;
  8335. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8336. esac
  8337. else
  8338. lt_prog_compiler_pic=
  8339. lt_prog_compiler_can_build_shared=no
  8340. fi
  8341. fi
  8342. #
  8343. # Check to make sure the static flag actually works.
  8344. #
  8345. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8347. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8348. if test ${lt_cv_prog_compiler_static_works+y}
  8349. then :
  8350. printf %s "(cached) " >&6
  8351. else $as_nop
  8352. lt_cv_prog_compiler_static_works=no
  8353. save_LDFLAGS=$LDFLAGS
  8354. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8355. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8356. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8357. # The linker can only warn and ignore the option if not recognized
  8358. # So say no if there are warnings
  8359. if test -s conftest.err; then
  8360. # Append any errors to the config.log.
  8361. cat conftest.err 1>&5
  8362. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8363. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8364. if diff conftest.exp conftest.er2 >/dev/null; then
  8365. lt_cv_prog_compiler_static_works=yes
  8366. fi
  8367. else
  8368. lt_cv_prog_compiler_static_works=yes
  8369. fi
  8370. fi
  8371. $RM -r conftest*
  8372. LDFLAGS=$save_LDFLAGS
  8373. fi
  8374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8375. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8376. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8377. :
  8378. else
  8379. lt_prog_compiler_static=
  8380. fi
  8381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8382. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8383. if test ${lt_cv_prog_compiler_c_o+y}
  8384. then :
  8385. printf %s "(cached) " >&6
  8386. else $as_nop
  8387. lt_cv_prog_compiler_c_o=no
  8388. $RM -r conftest 2>/dev/null
  8389. mkdir conftest
  8390. cd conftest
  8391. mkdir out
  8392. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8393. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8394. # Insert the option either (1) after the last *FLAGS variable, or
  8395. # (2) before a word containing "conftest.", or (3) at the end.
  8396. # Note that $ac_compile itself does not contain backslashes and begins
  8397. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8398. lt_compile=`echo "$ac_compile" | $SED \
  8399. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8400. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8401. -e 's:$: $lt_compiler_flag:'`
  8402. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8403. (eval "$lt_compile" 2>out/conftest.err)
  8404. ac_status=$?
  8405. cat out/conftest.err >&5
  8406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8407. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8408. then
  8409. # The compiler can only warn and ignore the option if not recognized
  8410. # So say no if there are warnings
  8411. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8412. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8413. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8414. lt_cv_prog_compiler_c_o=yes
  8415. fi
  8416. fi
  8417. chmod u+w . 2>&5
  8418. $RM conftest*
  8419. # SGI C++ compiler will create directory out/ii_files/ for
  8420. # template instantiation
  8421. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8422. $RM out/* && rmdir out
  8423. cd ..
  8424. $RM -r conftest
  8425. $RM conftest*
  8426. fi
  8427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8428. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8430. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8431. if test ${lt_cv_prog_compiler_c_o+y}
  8432. then :
  8433. printf %s "(cached) " >&6
  8434. else $as_nop
  8435. lt_cv_prog_compiler_c_o=no
  8436. $RM -r conftest 2>/dev/null
  8437. mkdir conftest
  8438. cd conftest
  8439. mkdir out
  8440. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8441. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8442. # Insert the option either (1) after the last *FLAGS variable, or
  8443. # (2) before a word containing "conftest.", or (3) at the end.
  8444. # Note that $ac_compile itself does not contain backslashes and begins
  8445. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8446. lt_compile=`echo "$ac_compile" | $SED \
  8447. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8448. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8449. -e 's:$: $lt_compiler_flag:'`
  8450. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8451. (eval "$lt_compile" 2>out/conftest.err)
  8452. ac_status=$?
  8453. cat out/conftest.err >&5
  8454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8455. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8456. then
  8457. # The compiler can only warn and ignore the option if not recognized
  8458. # So say no if there are warnings
  8459. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8460. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8461. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8462. lt_cv_prog_compiler_c_o=yes
  8463. fi
  8464. fi
  8465. chmod u+w . 2>&5
  8466. $RM conftest*
  8467. # SGI C++ compiler will create directory out/ii_files/ for
  8468. # template instantiation
  8469. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8470. $RM out/* && rmdir out
  8471. cd ..
  8472. $RM -r conftest
  8473. $RM conftest*
  8474. fi
  8475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8476. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8477. hard_links=nottested
  8478. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8479. # do not overwrite the value of need_locks provided by the user
  8480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8481. printf %s "checking if we can lock with hard links... " >&6; }
  8482. hard_links=yes
  8483. $RM conftest*
  8484. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8485. touch conftest.a
  8486. ln conftest.a conftest.b 2>&5 || hard_links=no
  8487. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8489. printf "%s\n" "$hard_links" >&6; }
  8490. if test no = "$hard_links"; then
  8491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8492. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8493. need_locks=warn
  8494. fi
  8495. else
  8496. need_locks=no
  8497. fi
  8498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8499. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8500. runpath_var=
  8501. allow_undefined_flag=
  8502. always_export_symbols=no
  8503. archive_cmds=
  8504. archive_expsym_cmds=
  8505. compiler_needs_object=no
  8506. enable_shared_with_static_runtimes=no
  8507. export_dynamic_flag_spec=
  8508. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8509. hardcode_automatic=no
  8510. hardcode_direct=no
  8511. hardcode_direct_absolute=no
  8512. hardcode_libdir_flag_spec=
  8513. hardcode_libdir_separator=
  8514. hardcode_minus_L=no
  8515. hardcode_shlibpath_var=unsupported
  8516. inherit_rpath=no
  8517. link_all_deplibs=unknown
  8518. module_cmds=
  8519. module_expsym_cmds=
  8520. old_archive_from_new_cmds=
  8521. old_archive_from_expsyms_cmds=
  8522. thread_safe_flag_spec=
  8523. whole_archive_flag_spec=
  8524. # include_expsyms should be a list of space-separated symbols to be *always*
  8525. # included in the symbol list
  8526. include_expsyms=
  8527. # exclude_expsyms can be an extended regexp of symbols to exclude
  8528. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8529. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8530. # as well as any symbol that contains 'd'.
  8531. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8532. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8533. # platforms (ab)use it in PIC code, but their linkers get confused if
  8534. # the symbol is explicitly referenced. Since portable code cannot
  8535. # rely on this symbol name, it's probably fine to never include it in
  8536. # preloaded symbol tables.
  8537. # Exclude shared library initialization/finalization symbols.
  8538. extract_expsyms_cmds=
  8539. case $host_os in
  8540. cygwin* | mingw* | pw32* | cegcc*)
  8541. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8542. # When not using gcc, we currently assume that we are using
  8543. # Microsoft Visual C++.
  8544. if test yes != "$GCC"; then
  8545. with_gnu_ld=no
  8546. fi
  8547. ;;
  8548. interix*)
  8549. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8550. with_gnu_ld=yes
  8551. ;;
  8552. openbsd* | bitrig*)
  8553. with_gnu_ld=no
  8554. ;;
  8555. esac
  8556. ld_shlibs=yes
  8557. # On some targets, GNU ld is compatible enough with the native linker
  8558. # that we're better off using the native interface for both.
  8559. lt_use_gnu_ld_interface=no
  8560. if test yes = "$with_gnu_ld"; then
  8561. case $host_os in
  8562. aix*)
  8563. # The AIX port of GNU ld has always aspired to compatibility
  8564. # with the native linker. However, as the warning in the GNU ld
  8565. # block says, versions before 2.19.5* couldn't really create working
  8566. # shared libraries, regardless of the interface used.
  8567. case `$LD -v 2>&1` in
  8568. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8569. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8570. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8571. *)
  8572. lt_use_gnu_ld_interface=yes
  8573. ;;
  8574. esac
  8575. ;;
  8576. *)
  8577. lt_use_gnu_ld_interface=yes
  8578. ;;
  8579. esac
  8580. fi
  8581. if test yes = "$lt_use_gnu_ld_interface"; then
  8582. # If archive_cmds runs LD, not CC, wlarc should be empty
  8583. wlarc='$wl'
  8584. # Set some defaults for GNU ld with shared library support. These
  8585. # are reset later if shared libraries are not supported. Putting them
  8586. # here allows them to be overridden if necessary.
  8587. runpath_var=LD_RUN_PATH
  8588. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8589. export_dynamic_flag_spec='$wl--export-dynamic'
  8590. # ancient GNU ld didn't support --whole-archive et. al.
  8591. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8592. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8593. else
  8594. whole_archive_flag_spec=
  8595. fi
  8596. supports_anon_versioning=no
  8597. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8598. *GNU\ gold*) supports_anon_versioning=yes ;;
  8599. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8600. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8601. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8602. *\ 2.11.*) ;; # other 2.11 versions
  8603. *) supports_anon_versioning=yes ;;
  8604. esac
  8605. # See if GNU ld supports shared libraries.
  8606. case $host_os in
  8607. aix[3-9]*)
  8608. # On AIX/PPC, the GNU linker is very broken
  8609. if test ia64 != "$host_cpu"; then
  8610. ld_shlibs=no
  8611. cat <<_LT_EOF 1>&2
  8612. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8613. *** to be unable to reliably create shared libraries on AIX.
  8614. *** Therefore, libtool is disabling shared libraries support. If you
  8615. *** really care for shared libraries, you may want to install binutils
  8616. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8617. *** You will then need to restart the configuration process.
  8618. _LT_EOF
  8619. fi
  8620. ;;
  8621. amigaos*)
  8622. case $host_cpu in
  8623. powerpc)
  8624. # see comment about AmigaOS4 .so support
  8625. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8626. archive_expsym_cmds=''
  8627. ;;
  8628. m68k)
  8629. 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)'
  8630. hardcode_libdir_flag_spec='-L$libdir'
  8631. hardcode_minus_L=yes
  8632. ;;
  8633. esac
  8634. ;;
  8635. beos*)
  8636. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8637. allow_undefined_flag=unsupported
  8638. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8639. # support --undefined. This deserves some investigation. FIXME
  8640. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8641. else
  8642. ld_shlibs=no
  8643. fi
  8644. ;;
  8645. cygwin* | mingw* | pw32* | cegcc*)
  8646. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8647. # as there is no search path for DLLs.
  8648. hardcode_libdir_flag_spec='-L$libdir'
  8649. export_dynamic_flag_spec='$wl--export-all-symbols'
  8650. allow_undefined_flag=unsupported
  8651. always_export_symbols=no
  8652. enable_shared_with_static_runtimes=yes
  8653. 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'
  8654. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8655. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8656. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8657. # If the export-symbols file already is a .def file, use it as
  8658. # is; otherwise, prepend EXPORTS...
  8659. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8660. cp $export_symbols $output_objdir/$soname.def;
  8661. else
  8662. echo EXPORTS > $output_objdir/$soname.def;
  8663. cat $export_symbols >> $output_objdir/$soname.def;
  8664. fi~
  8665. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8666. else
  8667. ld_shlibs=no
  8668. fi
  8669. ;;
  8670. haiku*)
  8671. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8672. link_all_deplibs=yes
  8673. ;;
  8674. os2*)
  8675. hardcode_libdir_flag_spec='-L$libdir'
  8676. hardcode_minus_L=yes
  8677. allow_undefined_flag=unsupported
  8678. shrext_cmds=.dll
  8679. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8680. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8681. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8682. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8683. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8684. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8685. emximp -o $lib $output_objdir/$libname.def'
  8686. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8687. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8688. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8689. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8690. prefix_cmds="$SED"~
  8691. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8692. prefix_cmds="$prefix_cmds -e 1d";
  8693. fi~
  8694. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8695. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8696. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8697. emximp -o $lib $output_objdir/$libname.def'
  8698. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8699. enable_shared_with_static_runtimes=yes
  8700. file_list_spec='@'
  8701. ;;
  8702. interix[3-9]*)
  8703. hardcode_direct=no
  8704. hardcode_shlibpath_var=no
  8705. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8706. export_dynamic_flag_spec='$wl-E'
  8707. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8708. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8709. # default) and relocated if they conflict, which is a slow very memory
  8710. # consuming and fragmenting process. To avoid this, we pick a random,
  8711. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8712. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8713. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8714. 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'
  8715. ;;
  8716. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8717. tmp_diet=no
  8718. if test linux-dietlibc = "$host_os"; then
  8719. case $cc_basename in
  8720. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8721. esac
  8722. fi
  8723. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8724. && test no = "$tmp_diet"
  8725. then
  8726. tmp_addflag=' $pic_flag'
  8727. tmp_sharedflag='-shared'
  8728. case $cc_basename,$host_cpu in
  8729. pgcc*) # Portland Group C compiler
  8730. 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'
  8731. tmp_addflag=' $pic_flag'
  8732. ;;
  8733. pgf77* | pgf90* | pgf95* | pgfortran*)
  8734. # Portland Group f77 and f90 compilers
  8735. 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'
  8736. tmp_addflag=' $pic_flag -Mnomain' ;;
  8737. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8738. tmp_addflag=' -i_dynamic' ;;
  8739. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8740. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8741. ifc* | ifort*) # Intel Fortran compiler
  8742. tmp_addflag=' -nofor_main' ;;
  8743. lf95*) # Lahey Fortran 8.1
  8744. whole_archive_flag_spec=
  8745. tmp_sharedflag='--shared' ;;
  8746. nagfor*) # NAGFOR 5.3
  8747. tmp_sharedflag='-Wl,-shared' ;;
  8748. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8749. tmp_sharedflag='-qmkshrobj'
  8750. tmp_addflag= ;;
  8751. nvcc*) # Cuda Compiler Driver 2.2
  8752. 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'
  8753. compiler_needs_object=yes
  8754. ;;
  8755. esac
  8756. case `$CC -V 2>&1 | sed 5q` in
  8757. *Sun\ C*) # Sun C 5.9
  8758. 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'
  8759. compiler_needs_object=yes
  8760. tmp_sharedflag='-G' ;;
  8761. *Sun\ F*) # Sun Fortran 8.3
  8762. tmp_sharedflag='-G' ;;
  8763. esac
  8764. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8765. if test yes = "$supports_anon_versioning"; then
  8766. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8767. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8768. echo "local: *; };" >> $output_objdir/$libname.ver~
  8769. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8770. fi
  8771. case $cc_basename in
  8772. tcc*)
  8773. export_dynamic_flag_spec='-rdynamic'
  8774. ;;
  8775. xlf* | bgf* | bgxlf* | mpixlf*)
  8776. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8777. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8778. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8779. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8780. if test yes = "$supports_anon_versioning"; then
  8781. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8782. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8783. echo "local: *; };" >> $output_objdir/$libname.ver~
  8784. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8785. fi
  8786. ;;
  8787. esac
  8788. else
  8789. ld_shlibs=no
  8790. fi
  8791. ;;
  8792. netbsd*)
  8793. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8794. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8795. wlarc=
  8796. else
  8797. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8798. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8799. fi
  8800. ;;
  8801. solaris*)
  8802. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8803. ld_shlibs=no
  8804. cat <<_LT_EOF 1>&2
  8805. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8806. *** create shared libraries on Solaris systems. Therefore, libtool
  8807. *** is disabling shared libraries support. We urge you to upgrade GNU
  8808. *** binutils to release 2.9.1 or newer. Another option is to modify
  8809. *** your PATH or compiler configuration so that the native linker is
  8810. *** used, and then restart.
  8811. _LT_EOF
  8812. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8813. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8814. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8815. else
  8816. ld_shlibs=no
  8817. fi
  8818. ;;
  8819. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8820. case `$LD -v 2>&1` in
  8821. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8822. ld_shlibs=no
  8823. cat <<_LT_EOF 1>&2
  8824. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8825. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8826. *** is disabling shared libraries support. We urge you to upgrade GNU
  8827. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8828. *** your PATH or compiler configuration so that the native linker is
  8829. *** used, and then restart.
  8830. _LT_EOF
  8831. ;;
  8832. *)
  8833. # For security reasons, it is highly recommended that you always
  8834. # use absolute paths for naming shared libraries, and exclude the
  8835. # DT_RUNPATH tag from executables and libraries. But doing so
  8836. # requires that you compile everything twice, which is a pain.
  8837. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8838. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8839. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8840. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8841. else
  8842. ld_shlibs=no
  8843. fi
  8844. ;;
  8845. esac
  8846. ;;
  8847. sunos4*)
  8848. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8849. wlarc=
  8850. hardcode_direct=yes
  8851. hardcode_shlibpath_var=no
  8852. ;;
  8853. *)
  8854. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8855. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8856. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8857. else
  8858. ld_shlibs=no
  8859. fi
  8860. ;;
  8861. esac
  8862. if test no = "$ld_shlibs"; then
  8863. runpath_var=
  8864. hardcode_libdir_flag_spec=
  8865. export_dynamic_flag_spec=
  8866. whole_archive_flag_spec=
  8867. fi
  8868. else
  8869. # PORTME fill in a description of your system's linker (not GNU ld)
  8870. case $host_os in
  8871. aix3*)
  8872. allow_undefined_flag=unsupported
  8873. always_export_symbols=yes
  8874. 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'
  8875. # Note: this linker hardcodes the directories in LIBPATH if there
  8876. # are no directories specified by -L.
  8877. hardcode_minus_L=yes
  8878. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8879. # Neither direct hardcoding nor static linking is supported with a
  8880. # broken collect2.
  8881. hardcode_direct=unsupported
  8882. fi
  8883. ;;
  8884. aix[4-9]*)
  8885. if test ia64 = "$host_cpu"; then
  8886. # On IA64, the linker does run time linking by default, so we don't
  8887. # have to do anything special.
  8888. aix_use_runtimelinking=no
  8889. exp_sym_flag='-Bexport'
  8890. no_entry_flag=
  8891. else
  8892. # If we're using GNU nm, then we don't want the "-C" option.
  8893. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8894. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8895. # weak defined symbols like other global defined symbols, whereas
  8896. # GNU nm marks them as "W".
  8897. # While the 'weak' keyword is ignored in the Export File, we need
  8898. # it in the Import File for the 'aix-soname' feature, so we have
  8899. # to replace the "-B" option with "-P" for AIX nm.
  8900. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8901. 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'
  8902. else
  8903. 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'
  8904. fi
  8905. aix_use_runtimelinking=no
  8906. # Test if we are trying to use run time linking or normal
  8907. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8908. # have runtime linking enabled, and use it for executables.
  8909. # For shared libraries, we enable/disable runtime linking
  8910. # depending on the kind of the shared library created -
  8911. # when "with_aix_soname,aix_use_runtimelinking" is:
  8912. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8913. # "aix,yes" lib.so shared, rtl:yes, for executables
  8914. # lib.a static archive
  8915. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8916. # lib.a(lib.so.V) shared, rtl:no, for executables
  8917. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8918. # lib.a(lib.so.V) shared, rtl:no
  8919. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8920. # lib.a static archive
  8921. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8922. for ld_flag in $LDFLAGS; do
  8923. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8924. aix_use_runtimelinking=yes
  8925. break
  8926. fi
  8927. done
  8928. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8929. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8930. # so we don't have lib.a shared libs to link our executables.
  8931. # We have to force runtime linking in this case.
  8932. aix_use_runtimelinking=yes
  8933. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8934. fi
  8935. ;;
  8936. esac
  8937. exp_sym_flag='-bexport'
  8938. no_entry_flag='-bnoentry'
  8939. fi
  8940. # When large executables or shared objects are built, AIX ld can
  8941. # have problems creating the table of contents. If linking a library
  8942. # or program results in "error TOC overflow" add -mminimal-toc to
  8943. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8944. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8945. archive_cmds=''
  8946. hardcode_direct=yes
  8947. hardcode_direct_absolute=yes
  8948. hardcode_libdir_separator=':'
  8949. link_all_deplibs=yes
  8950. file_list_spec='$wl-f,'
  8951. case $with_aix_soname,$aix_use_runtimelinking in
  8952. aix,*) ;; # traditional, no import file
  8953. svr4,* | *,yes) # use import file
  8954. # The Import File defines what to hardcode.
  8955. hardcode_direct=no
  8956. hardcode_direct_absolute=no
  8957. ;;
  8958. esac
  8959. if test yes = "$GCC"; then
  8960. case $host_os in aix4.[012]|aix4.[012].*)
  8961. # We only want to do this on AIX 4.2 and lower, the check
  8962. # below for broken collect2 doesn't work under 4.3+
  8963. collect2name=`$CC -print-prog-name=collect2`
  8964. if test -f "$collect2name" &&
  8965. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8966. then
  8967. # We have reworked collect2
  8968. :
  8969. else
  8970. # We have old collect2
  8971. hardcode_direct=unsupported
  8972. # It fails to find uninstalled libraries when the uninstalled
  8973. # path is not listed in the libpath. Setting hardcode_minus_L
  8974. # to unsupported forces relinking
  8975. hardcode_minus_L=yes
  8976. hardcode_libdir_flag_spec='-L$libdir'
  8977. hardcode_libdir_separator=
  8978. fi
  8979. ;;
  8980. esac
  8981. shared_flag='-shared'
  8982. if test yes = "$aix_use_runtimelinking"; then
  8983. shared_flag="$shared_flag "'$wl-G'
  8984. fi
  8985. # Need to ensure runtime linking is disabled for the traditional
  8986. # shared library, or the linker may eventually find shared libraries
  8987. # /with/ Import File - we do not want to mix them.
  8988. shared_flag_aix='-shared'
  8989. shared_flag_svr4='-shared $wl-G'
  8990. else
  8991. # not using gcc
  8992. if test ia64 = "$host_cpu"; then
  8993. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8994. # chokes on -Wl,-G. The following line is correct:
  8995. shared_flag='-G'
  8996. else
  8997. if test yes = "$aix_use_runtimelinking"; then
  8998. shared_flag='$wl-G'
  8999. else
  9000. shared_flag='$wl-bM:SRE'
  9001. fi
  9002. shared_flag_aix='$wl-bM:SRE'
  9003. shared_flag_svr4='$wl-G'
  9004. fi
  9005. fi
  9006. export_dynamic_flag_spec='$wl-bexpall'
  9007. # It seems that -bexpall does not export symbols beginning with
  9008. # underscore (_), so it is better to generate a list of symbols to export.
  9009. always_export_symbols=yes
  9010. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9011. # Warning - without using the other runtime loading flags (-brtl),
  9012. # -berok will link without error, but may produce a broken library.
  9013. allow_undefined_flag='-berok'
  9014. # Determine the default libpath from the value encoded in an
  9015. # empty executable.
  9016. if test set = "${lt_cv_aix_libpath+set}"; then
  9017. aix_libpath=$lt_cv_aix_libpath
  9018. else
  9019. if test ${lt_cv_aix_libpath_+y}
  9020. then :
  9021. printf %s "(cached) " >&6
  9022. else $as_nop
  9023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9024. /* end confdefs.h. */
  9025. int
  9026. main (void)
  9027. {
  9028. ;
  9029. return 0;
  9030. }
  9031. _ACEOF
  9032. if ac_fn_c_try_link "$LINENO"
  9033. then :
  9034. lt_aix_libpath_sed='
  9035. /Import File Strings/,/^$/ {
  9036. /^0/ {
  9037. s/^0 *\([^ ]*\) *$/\1/
  9038. p
  9039. }
  9040. }'
  9041. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9042. # Check for a 64-bit object if we didn't find anything.
  9043. if test -z "$lt_cv_aix_libpath_"; then
  9044. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9045. fi
  9046. fi
  9047. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9048. conftest$ac_exeext conftest.$ac_ext
  9049. if test -z "$lt_cv_aix_libpath_"; then
  9050. lt_cv_aix_libpath_=/usr/lib:/lib
  9051. fi
  9052. fi
  9053. aix_libpath=$lt_cv_aix_libpath_
  9054. fi
  9055. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9056. 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
  9057. else
  9058. if test ia64 = "$host_cpu"; then
  9059. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9060. allow_undefined_flag="-z nodefs"
  9061. 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"
  9062. else
  9063. # Determine the default libpath from the value encoded in an
  9064. # empty executable.
  9065. if test set = "${lt_cv_aix_libpath+set}"; then
  9066. aix_libpath=$lt_cv_aix_libpath
  9067. else
  9068. if test ${lt_cv_aix_libpath_+y}
  9069. then :
  9070. printf %s "(cached) " >&6
  9071. else $as_nop
  9072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9073. /* end confdefs.h. */
  9074. int
  9075. main (void)
  9076. {
  9077. ;
  9078. return 0;
  9079. }
  9080. _ACEOF
  9081. if ac_fn_c_try_link "$LINENO"
  9082. then :
  9083. lt_aix_libpath_sed='
  9084. /Import File Strings/,/^$/ {
  9085. /^0/ {
  9086. s/^0 *\([^ ]*\) *$/\1/
  9087. p
  9088. }
  9089. }'
  9090. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9091. # Check for a 64-bit object if we didn't find anything.
  9092. if test -z "$lt_cv_aix_libpath_"; then
  9093. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9094. fi
  9095. fi
  9096. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9097. conftest$ac_exeext conftest.$ac_ext
  9098. if test -z "$lt_cv_aix_libpath_"; then
  9099. lt_cv_aix_libpath_=/usr/lib:/lib
  9100. fi
  9101. fi
  9102. aix_libpath=$lt_cv_aix_libpath_
  9103. fi
  9104. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9105. # Warning - without using the other run time loading flags,
  9106. # -berok will link without error, but may produce a broken library.
  9107. no_undefined_flag=' $wl-bernotok'
  9108. allow_undefined_flag=' $wl-berok'
  9109. if test yes = "$with_gnu_ld"; then
  9110. # We only use this code for GNU lds that support --whole-archive.
  9111. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9112. else
  9113. # Exported symbols can be pulled into shared objects from archives
  9114. whole_archive_flag_spec='$convenience'
  9115. fi
  9116. archive_cmds_need_lc=yes
  9117. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9118. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9119. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9120. if test svr4 != "$with_aix_soname"; then
  9121. # This is similar to how AIX traditionally builds its shared libraries.
  9122. 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'
  9123. fi
  9124. if test aix != "$with_aix_soname"; then
  9125. 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'
  9126. else
  9127. # used by -dlpreopen to get the symbols
  9128. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9129. fi
  9130. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9131. fi
  9132. fi
  9133. ;;
  9134. amigaos*)
  9135. case $host_cpu in
  9136. powerpc)
  9137. # see comment about AmigaOS4 .so support
  9138. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9139. archive_expsym_cmds=''
  9140. ;;
  9141. m68k)
  9142. 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)'
  9143. hardcode_libdir_flag_spec='-L$libdir'
  9144. hardcode_minus_L=yes
  9145. ;;
  9146. esac
  9147. ;;
  9148. bsdi[45]*)
  9149. export_dynamic_flag_spec=-rdynamic
  9150. ;;
  9151. cygwin* | mingw* | pw32* | cegcc*)
  9152. # When not using gcc, we currently assume that we are using
  9153. # Microsoft Visual C++.
  9154. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9155. # no search path for DLLs.
  9156. case $cc_basename in
  9157. cl*)
  9158. # Native MSVC
  9159. hardcode_libdir_flag_spec=' '
  9160. allow_undefined_flag=unsupported
  9161. always_export_symbols=yes
  9162. file_list_spec='@'
  9163. # Tell ltmain to make .lib files, not .a files.
  9164. libext=lib
  9165. # Tell ltmain to make .dll files, not .so files.
  9166. shrext_cmds=.dll
  9167. # FIXME: Setting linknames here is a bad hack.
  9168. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9169. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9170. cp "$export_symbols" "$output_objdir/$soname.def";
  9171. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9172. else
  9173. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9174. fi~
  9175. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9176. linknames='
  9177. # The linker will not automatically build a static lib if we build a DLL.
  9178. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9179. enable_shared_with_static_runtimes=yes
  9180. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9181. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9182. # Don't use ranlib
  9183. old_postinstall_cmds='chmod 644 $oldlib'
  9184. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9185. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9186. case $lt_outputfile in
  9187. *.exe|*.EXE) ;;
  9188. *)
  9189. lt_outputfile=$lt_outputfile.exe
  9190. lt_tool_outputfile=$lt_tool_outputfile.exe
  9191. ;;
  9192. esac~
  9193. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9194. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9195. $RM "$lt_outputfile.manifest";
  9196. fi'
  9197. ;;
  9198. *)
  9199. # Assume MSVC wrapper
  9200. hardcode_libdir_flag_spec=' '
  9201. allow_undefined_flag=unsupported
  9202. # Tell ltmain to make .lib files, not .a files.
  9203. libext=lib
  9204. # Tell ltmain to make .dll files, not .so files.
  9205. shrext_cmds=.dll
  9206. # FIXME: Setting linknames here is a bad hack.
  9207. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9208. # The linker will automatically build a .lib file if we build a DLL.
  9209. old_archive_from_new_cmds='true'
  9210. # FIXME: Should let the user specify the lib program.
  9211. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9212. enable_shared_with_static_runtimes=yes
  9213. ;;
  9214. esac
  9215. ;;
  9216. darwin* | rhapsody*)
  9217. archive_cmds_need_lc=no
  9218. hardcode_direct=no
  9219. hardcode_automatic=yes
  9220. hardcode_shlibpath_var=unsupported
  9221. if test yes = "$lt_cv_ld_force_load"; then
  9222. 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\"`'
  9223. else
  9224. whole_archive_flag_spec=''
  9225. fi
  9226. link_all_deplibs=yes
  9227. allow_undefined_flag=$_lt_dar_allow_undefined
  9228. case $cc_basename in
  9229. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9230. *) _lt_dar_can_shared=$GCC ;;
  9231. esac
  9232. if test yes = "$_lt_dar_can_shared"; then
  9233. output_verbose_link_cmd=func_echo_all
  9234. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9235. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9236. 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"
  9237. 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"
  9238. else
  9239. ld_shlibs=no
  9240. fi
  9241. ;;
  9242. dgux*)
  9243. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9244. hardcode_libdir_flag_spec='-L$libdir'
  9245. hardcode_shlibpath_var=no
  9246. ;;
  9247. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9248. # support. Future versions do this automatically, but an explicit c++rt0.o
  9249. # does not break anything, and helps significantly (at the cost of a little
  9250. # extra space).
  9251. freebsd2.2*)
  9252. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9253. hardcode_libdir_flag_spec='-R$libdir'
  9254. hardcode_direct=yes
  9255. hardcode_shlibpath_var=no
  9256. ;;
  9257. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9258. freebsd2.*)
  9259. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9260. hardcode_direct=yes
  9261. hardcode_minus_L=yes
  9262. hardcode_shlibpath_var=no
  9263. ;;
  9264. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9265. freebsd* | dragonfly* | midnightbsd*)
  9266. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9267. hardcode_libdir_flag_spec='-R$libdir'
  9268. hardcode_direct=yes
  9269. hardcode_shlibpath_var=no
  9270. ;;
  9271. hpux9*)
  9272. if test yes = "$GCC"; then
  9273. 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'
  9274. else
  9275. 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'
  9276. fi
  9277. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9278. hardcode_libdir_separator=:
  9279. hardcode_direct=yes
  9280. # hardcode_minus_L: Not really in the search PATH,
  9281. # but as the default location of the library.
  9282. hardcode_minus_L=yes
  9283. export_dynamic_flag_spec='$wl-E'
  9284. ;;
  9285. hpux10*)
  9286. if test yes,no = "$GCC,$with_gnu_ld"; then
  9287. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9288. else
  9289. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9290. fi
  9291. if test no = "$with_gnu_ld"; then
  9292. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9293. hardcode_libdir_separator=:
  9294. hardcode_direct=yes
  9295. hardcode_direct_absolute=yes
  9296. export_dynamic_flag_spec='$wl-E'
  9297. # hardcode_minus_L: Not really in the search PATH,
  9298. # but as the default location of the library.
  9299. hardcode_minus_L=yes
  9300. fi
  9301. ;;
  9302. hpux11*)
  9303. if test yes,no = "$GCC,$with_gnu_ld"; then
  9304. case $host_cpu in
  9305. hppa*64*)
  9306. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9307. ;;
  9308. ia64*)
  9309. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9310. ;;
  9311. *)
  9312. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9313. ;;
  9314. esac
  9315. else
  9316. case $host_cpu in
  9317. hppa*64*)
  9318. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9319. ;;
  9320. ia64*)
  9321. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9322. ;;
  9323. *)
  9324. # Older versions of the 11.00 compiler do not understand -b yet
  9325. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9327. printf %s "checking if $CC understands -b... " >&6; }
  9328. if test ${lt_cv_prog_compiler__b+y}
  9329. then :
  9330. printf %s "(cached) " >&6
  9331. else $as_nop
  9332. lt_cv_prog_compiler__b=no
  9333. save_LDFLAGS=$LDFLAGS
  9334. LDFLAGS="$LDFLAGS -b"
  9335. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9336. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9337. # The linker can only warn and ignore the option if not recognized
  9338. # So say no if there are warnings
  9339. if test -s conftest.err; then
  9340. # Append any errors to the config.log.
  9341. cat conftest.err 1>&5
  9342. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9343. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9344. if diff conftest.exp conftest.er2 >/dev/null; then
  9345. lt_cv_prog_compiler__b=yes
  9346. fi
  9347. else
  9348. lt_cv_prog_compiler__b=yes
  9349. fi
  9350. fi
  9351. $RM -r conftest*
  9352. LDFLAGS=$save_LDFLAGS
  9353. fi
  9354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9355. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9356. if test yes = "$lt_cv_prog_compiler__b"; then
  9357. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9358. else
  9359. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9360. fi
  9361. ;;
  9362. esac
  9363. fi
  9364. if test no = "$with_gnu_ld"; then
  9365. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9366. hardcode_libdir_separator=:
  9367. case $host_cpu in
  9368. hppa*64*|ia64*)
  9369. hardcode_direct=no
  9370. hardcode_shlibpath_var=no
  9371. ;;
  9372. *)
  9373. hardcode_direct=yes
  9374. hardcode_direct_absolute=yes
  9375. export_dynamic_flag_spec='$wl-E'
  9376. # hardcode_minus_L: Not really in the search PATH,
  9377. # but as the default location of the library.
  9378. hardcode_minus_L=yes
  9379. ;;
  9380. esac
  9381. fi
  9382. ;;
  9383. irix5* | irix6* | nonstopux*)
  9384. if test yes = "$GCC"; then
  9385. 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'
  9386. # Try to use the -exported_symbol ld option, if it does not
  9387. # work, assume that -exports_file does not work either and
  9388. # implicitly export all symbols.
  9389. # This should be the same for all languages, so no per-tag cache variable.
  9390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9391. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9392. if test ${lt_cv_irix_exported_symbol+y}
  9393. then :
  9394. printf %s "(cached) " >&6
  9395. else $as_nop
  9396. save_LDFLAGS=$LDFLAGS
  9397. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9399. /* end confdefs.h. */
  9400. int foo (void) { return 0; }
  9401. _ACEOF
  9402. if ac_fn_c_try_link "$LINENO"
  9403. then :
  9404. lt_cv_irix_exported_symbol=yes
  9405. else $as_nop
  9406. lt_cv_irix_exported_symbol=no
  9407. fi
  9408. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9409. conftest$ac_exeext conftest.$ac_ext
  9410. LDFLAGS=$save_LDFLAGS
  9411. fi
  9412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9413. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9414. if test yes = "$lt_cv_irix_exported_symbol"; then
  9415. 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'
  9416. fi
  9417. else
  9418. 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'
  9419. 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'
  9420. fi
  9421. archive_cmds_need_lc='no'
  9422. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9423. hardcode_libdir_separator=:
  9424. inherit_rpath=yes
  9425. link_all_deplibs=yes
  9426. ;;
  9427. linux*)
  9428. case $cc_basename in
  9429. tcc*)
  9430. # Fabrice Bellard et al's Tiny C Compiler
  9431. ld_shlibs=yes
  9432. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9433. ;;
  9434. esac
  9435. ;;
  9436. netbsd*)
  9437. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9438. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9439. else
  9440. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9441. fi
  9442. hardcode_libdir_flag_spec='-R$libdir'
  9443. hardcode_direct=yes
  9444. hardcode_shlibpath_var=no
  9445. ;;
  9446. newsos6)
  9447. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9448. hardcode_direct=yes
  9449. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9450. hardcode_libdir_separator=:
  9451. hardcode_shlibpath_var=no
  9452. ;;
  9453. *nto* | *qnx*)
  9454. ;;
  9455. openbsd* | bitrig*)
  9456. if test -f /usr/libexec/ld.so; then
  9457. hardcode_direct=yes
  9458. hardcode_shlibpath_var=no
  9459. hardcode_direct_absolute=yes
  9460. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9461. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9462. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9463. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9464. export_dynamic_flag_spec='$wl-E'
  9465. else
  9466. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9467. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9468. fi
  9469. else
  9470. ld_shlibs=no
  9471. fi
  9472. ;;
  9473. os2*)
  9474. hardcode_libdir_flag_spec='-L$libdir'
  9475. hardcode_minus_L=yes
  9476. allow_undefined_flag=unsupported
  9477. shrext_cmds=.dll
  9478. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9479. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9480. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9481. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9482. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9483. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9484. emximp -o $lib $output_objdir/$libname.def'
  9485. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9486. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9487. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9488. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9489. prefix_cmds="$SED"~
  9490. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9491. prefix_cmds="$prefix_cmds -e 1d";
  9492. fi~
  9493. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9494. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9495. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9496. emximp -o $lib $output_objdir/$libname.def'
  9497. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9498. enable_shared_with_static_runtimes=yes
  9499. file_list_spec='@'
  9500. ;;
  9501. osf3*)
  9502. if test yes = "$GCC"; then
  9503. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9504. 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'
  9505. else
  9506. allow_undefined_flag=' -expect_unresolved \*'
  9507. 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'
  9508. fi
  9509. archive_cmds_need_lc='no'
  9510. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9511. hardcode_libdir_separator=:
  9512. ;;
  9513. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9514. if test yes = "$GCC"; then
  9515. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9516. 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'
  9517. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9518. else
  9519. allow_undefined_flag=' -expect_unresolved \*'
  9520. 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'
  9521. 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~
  9522. $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'
  9523. # Both c and cxx compiler support -rpath directly
  9524. hardcode_libdir_flag_spec='-rpath $libdir'
  9525. fi
  9526. archive_cmds_need_lc='no'
  9527. hardcode_libdir_separator=:
  9528. ;;
  9529. solaris*)
  9530. no_undefined_flag=' -z defs'
  9531. if test yes = "$GCC"; then
  9532. wlarc='$wl'
  9533. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9534. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9535. $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'
  9536. else
  9537. case `$CC -V 2>&1` in
  9538. *"Compilers 5.0"*)
  9539. wlarc=''
  9540. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9541. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9542. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9543. ;;
  9544. *)
  9545. wlarc='$wl'
  9546. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9547. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9548. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9549. ;;
  9550. esac
  9551. fi
  9552. hardcode_libdir_flag_spec='-R$libdir'
  9553. hardcode_shlibpath_var=no
  9554. case $host_os in
  9555. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9556. *)
  9557. # The compiler driver will combine and reorder linker options,
  9558. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9559. # but is careful enough not to reorder.
  9560. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9561. if test yes = "$GCC"; then
  9562. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9563. else
  9564. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9565. fi
  9566. ;;
  9567. esac
  9568. link_all_deplibs=yes
  9569. ;;
  9570. sunos4*)
  9571. if test sequent = "$host_vendor"; then
  9572. # Use $CC to link under sequent, because it throws in some extra .o
  9573. # files that make .init and .fini sections work.
  9574. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9575. else
  9576. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9577. fi
  9578. hardcode_libdir_flag_spec='-L$libdir'
  9579. hardcode_direct=yes
  9580. hardcode_minus_L=yes
  9581. hardcode_shlibpath_var=no
  9582. ;;
  9583. sysv4)
  9584. case $host_vendor in
  9585. sni)
  9586. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9587. hardcode_direct=yes # is this really true???
  9588. ;;
  9589. siemens)
  9590. ## LD is ld it makes a PLAMLIB
  9591. ## CC just makes a GrossModule.
  9592. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9593. reload_cmds='$CC -r -o $output$reload_objs'
  9594. hardcode_direct=no
  9595. ;;
  9596. motorola)
  9597. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9598. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9599. ;;
  9600. esac
  9601. runpath_var='LD_RUN_PATH'
  9602. hardcode_shlibpath_var=no
  9603. ;;
  9604. sysv4.3*)
  9605. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9606. hardcode_shlibpath_var=no
  9607. export_dynamic_flag_spec='-Bexport'
  9608. ;;
  9609. sysv4*MP*)
  9610. if test -d /usr/nec; then
  9611. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9612. hardcode_shlibpath_var=no
  9613. runpath_var=LD_RUN_PATH
  9614. hardcode_runpath_var=yes
  9615. ld_shlibs=yes
  9616. fi
  9617. ;;
  9618. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9619. no_undefined_flag='$wl-z,text'
  9620. archive_cmds_need_lc=no
  9621. hardcode_shlibpath_var=no
  9622. runpath_var='LD_RUN_PATH'
  9623. if test yes = "$GCC"; then
  9624. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9625. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9626. else
  9627. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9628. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9629. fi
  9630. ;;
  9631. sysv5* | sco3.2v5* | sco5v6*)
  9632. # Note: We CANNOT use -z defs as we might desire, because we do not
  9633. # link with -lc, and that would cause any symbols used from libc to
  9634. # always be unresolved, which means just about no library would
  9635. # ever link correctly. If we're not using GNU ld we use -z text
  9636. # though, which does catch some bad symbols but isn't as heavy-handed
  9637. # as -z defs.
  9638. no_undefined_flag='$wl-z,text'
  9639. allow_undefined_flag='$wl-z,nodefs'
  9640. archive_cmds_need_lc=no
  9641. hardcode_shlibpath_var=no
  9642. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9643. hardcode_libdir_separator=':'
  9644. link_all_deplibs=yes
  9645. export_dynamic_flag_spec='$wl-Bexport'
  9646. runpath_var='LD_RUN_PATH'
  9647. if test yes = "$GCC"; then
  9648. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9649. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9650. else
  9651. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9652. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9653. fi
  9654. ;;
  9655. uts4*)
  9656. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9657. hardcode_libdir_flag_spec='-L$libdir'
  9658. hardcode_shlibpath_var=no
  9659. ;;
  9660. *)
  9661. ld_shlibs=no
  9662. ;;
  9663. esac
  9664. if test sni = "$host_vendor"; then
  9665. case $host in
  9666. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9667. export_dynamic_flag_spec='$wl-Blargedynsym'
  9668. ;;
  9669. esac
  9670. fi
  9671. fi
  9672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9673. printf "%s\n" "$ld_shlibs" >&6; }
  9674. test no = "$ld_shlibs" && can_build_shared=no
  9675. with_gnu_ld=$with_gnu_ld
  9676. #
  9677. # Do we need to explicitly link libc?
  9678. #
  9679. case "x$archive_cmds_need_lc" in
  9680. x|xyes)
  9681. # Assume -lc should be added
  9682. archive_cmds_need_lc=yes
  9683. if test yes,yes = "$GCC,$enable_shared"; then
  9684. case $archive_cmds in
  9685. *'~'*)
  9686. # FIXME: we may have to deal with multi-command sequences.
  9687. ;;
  9688. '$CC '*)
  9689. # Test whether the compiler implicitly links with -lc since on some
  9690. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9691. # to ld, don't add -lc before -lgcc.
  9692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9693. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9694. if test ${lt_cv_archive_cmds_need_lc+y}
  9695. then :
  9696. printf %s "(cached) " >&6
  9697. else $as_nop
  9698. $RM conftest*
  9699. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9700. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9701. (eval $ac_compile) 2>&5
  9702. ac_status=$?
  9703. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9704. test $ac_status = 0; } 2>conftest.err; then
  9705. soname=conftest
  9706. lib=conftest
  9707. libobjs=conftest.$ac_objext
  9708. deplibs=
  9709. wl=$lt_prog_compiler_wl
  9710. pic_flag=$lt_prog_compiler_pic
  9711. compiler_flags=-v
  9712. linker_flags=-v
  9713. verstring=
  9714. output_objdir=.
  9715. libname=conftest
  9716. lt_save_allow_undefined_flag=$allow_undefined_flag
  9717. allow_undefined_flag=
  9718. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9719. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9720. ac_status=$?
  9721. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9722. test $ac_status = 0; }
  9723. then
  9724. lt_cv_archive_cmds_need_lc=no
  9725. else
  9726. lt_cv_archive_cmds_need_lc=yes
  9727. fi
  9728. allow_undefined_flag=$lt_save_allow_undefined_flag
  9729. else
  9730. cat conftest.err 1>&5
  9731. fi
  9732. $RM conftest*
  9733. fi
  9734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9735. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9736. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9737. ;;
  9738. esac
  9739. fi
  9740. ;;
  9741. esac
  9742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9743. printf %s "checking dynamic linker characteristics... " >&6; }
  9744. if test yes = "$GCC"; then
  9745. case $host_os in
  9746. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9747. *) lt_awk_arg='/^libraries:/' ;;
  9748. esac
  9749. case $host_os in
  9750. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9751. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9752. esac
  9753. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9754. case $lt_search_path_spec in
  9755. *\;*)
  9756. # if the path contains ";" then we assume it to be the separator
  9757. # otherwise default to the standard path separator (i.e. ":") - it is
  9758. # assumed that no part of a normal pathname contains ";" but that should
  9759. # okay in the real world where ";" in dirpaths is itself problematic.
  9760. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9761. ;;
  9762. *)
  9763. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9764. ;;
  9765. esac
  9766. # Ok, now we have the path, separated by spaces, we can step through it
  9767. # and add multilib dir if necessary...
  9768. lt_tmp_lt_search_path_spec=
  9769. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9770. # ...but if some path component already ends with the multilib dir we assume
  9771. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9772. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9773. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9774. lt_multi_os_dir=
  9775. ;;
  9776. esac
  9777. for lt_sys_path in $lt_search_path_spec; do
  9778. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9779. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9780. elif test -n "$lt_multi_os_dir"; then
  9781. test -d "$lt_sys_path" && \
  9782. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9783. fi
  9784. done
  9785. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9786. BEGIN {RS = " "; FS = "/|\n";} {
  9787. lt_foo = "";
  9788. lt_count = 0;
  9789. for (lt_i = NF; lt_i > 0; lt_i--) {
  9790. if ($lt_i != "" && $lt_i != ".") {
  9791. if ($lt_i == "..") {
  9792. lt_count++;
  9793. } else {
  9794. if (lt_count == 0) {
  9795. lt_foo = "/" $lt_i lt_foo;
  9796. } else {
  9797. lt_count--;
  9798. }
  9799. }
  9800. }
  9801. }
  9802. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9803. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9804. }'`
  9805. # AWK program above erroneously prepends '/' to C:/dos/paths
  9806. # for these hosts.
  9807. case $host_os in
  9808. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9809. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9810. esac
  9811. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9812. else
  9813. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9814. fi
  9815. library_names_spec=
  9816. libname_spec='lib$name'
  9817. soname_spec=
  9818. shrext_cmds=.so
  9819. postinstall_cmds=
  9820. postuninstall_cmds=
  9821. finish_cmds=
  9822. finish_eval=
  9823. shlibpath_var=
  9824. shlibpath_overrides_runpath=unknown
  9825. version_type=none
  9826. dynamic_linker="$host_os ld.so"
  9827. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9828. need_lib_prefix=unknown
  9829. hardcode_into_libs=no
  9830. # when you set need_version to no, make sure it does not cause -set_version
  9831. # flags to be left without arguments
  9832. need_version=unknown
  9833. case $host_os in
  9834. aix3*)
  9835. version_type=linux # correct to gnu/linux during the next big refactor
  9836. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9837. shlibpath_var=LIBPATH
  9838. # AIX 3 has no versioning support, so we append a major version to the name.
  9839. soname_spec='$libname$release$shared_ext$major'
  9840. ;;
  9841. aix[4-9]*)
  9842. version_type=linux # correct to gnu/linux during the next big refactor
  9843. need_lib_prefix=no
  9844. need_version=no
  9845. hardcode_into_libs=yes
  9846. if test ia64 = "$host_cpu"; then
  9847. # AIX 5 supports IA64
  9848. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9849. shlibpath_var=LD_LIBRARY_PATH
  9850. else
  9851. # With GCC up to 2.95.x, collect2 would create an import file
  9852. # for dependence libraries. The import file would start with
  9853. # the line '#! .'. This would cause the generated library to
  9854. # depend on '.', always an invalid library. This was fixed in
  9855. # development snapshots of GCC prior to 3.0.
  9856. case $host_os in
  9857. aix4 | aix4.[01] | aix4.[01].*)
  9858. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9859. echo ' yes '
  9860. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9861. :
  9862. else
  9863. can_build_shared=no
  9864. fi
  9865. ;;
  9866. esac
  9867. # Using Import Files as archive members, it is possible to support
  9868. # filename-based versioning of shared library archives on AIX. While
  9869. # this would work for both with and without runtime linking, it will
  9870. # prevent static linking of such archives. So we do filename-based
  9871. # shared library versioning with .so extension only, which is used
  9872. # when both runtime linking and shared linking is enabled.
  9873. # Unfortunately, runtime linking may impact performance, so we do
  9874. # not want this to be the default eventually. Also, we use the
  9875. # versioned .so libs for executables only if there is the -brtl
  9876. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9877. # To allow for filename-based versioning support, we need to create
  9878. # libNAME.so.V as an archive file, containing:
  9879. # *) an Import File, referring to the versioned filename of the
  9880. # archive as well as the shared archive member, telling the
  9881. # bitwidth (32 or 64) of that shared object, and providing the
  9882. # list of exported symbols of that shared object, eventually
  9883. # decorated with the 'weak' keyword
  9884. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9885. # it being seen by the linker.
  9886. # At run time we better use the real file rather than another symlink,
  9887. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9888. case $with_aix_soname,$aix_use_runtimelinking in
  9889. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9890. # soname into executable. Probably we can add versioning support to
  9891. # collect2, so additional links can be useful in future.
  9892. aix,yes) # traditional libtool
  9893. dynamic_linker='AIX unversionable lib.so'
  9894. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9895. # instead of lib<name>.a to let people know that these are not
  9896. # typical AIX shared libraries.
  9897. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9898. ;;
  9899. aix,no) # traditional AIX only
  9900. dynamic_linker='AIX lib.a(lib.so.V)'
  9901. # We preserve .a as extension for shared libraries through AIX4.2
  9902. # and later when we are not doing run time linking.
  9903. library_names_spec='$libname$release.a $libname.a'
  9904. soname_spec='$libname$release$shared_ext$major'
  9905. ;;
  9906. svr4,*) # full svr4 only
  9907. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9908. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9909. # We do not specify a path in Import Files, so LIBPATH fires.
  9910. shlibpath_overrides_runpath=yes
  9911. ;;
  9912. *,yes) # both, prefer svr4
  9913. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9914. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9915. # unpreferred sharedlib libNAME.a needs extra handling
  9916. 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"'
  9917. 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"'
  9918. # We do not specify a path in Import Files, so LIBPATH fires.
  9919. shlibpath_overrides_runpath=yes
  9920. ;;
  9921. *,no) # both, prefer aix
  9922. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9923. library_names_spec='$libname$release.a $libname.a'
  9924. soname_spec='$libname$release$shared_ext$major'
  9925. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9926. 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)'
  9927. 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"'
  9928. ;;
  9929. esac
  9930. shlibpath_var=LIBPATH
  9931. fi
  9932. ;;
  9933. amigaos*)
  9934. case $host_cpu in
  9935. powerpc)
  9936. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9937. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9938. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9939. ;;
  9940. m68k)
  9941. library_names_spec='$libname.ixlibrary $libname.a'
  9942. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9943. 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'
  9944. ;;
  9945. esac
  9946. ;;
  9947. beos*)
  9948. library_names_spec='$libname$shared_ext'
  9949. dynamic_linker="$host_os ld.so"
  9950. shlibpath_var=LIBRARY_PATH
  9951. ;;
  9952. bsdi[45]*)
  9953. version_type=linux # correct to gnu/linux during the next big refactor
  9954. need_version=no
  9955. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9956. soname_spec='$libname$release$shared_ext$major'
  9957. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9958. shlibpath_var=LD_LIBRARY_PATH
  9959. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9960. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9961. # the default ld.so.conf also contains /usr/contrib/lib and
  9962. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9963. # libtool to hard-code these into programs
  9964. ;;
  9965. cygwin* | mingw* | pw32* | cegcc*)
  9966. version_type=windows
  9967. shrext_cmds=.dll
  9968. need_version=no
  9969. need_lib_prefix=no
  9970. case $GCC,$cc_basename in
  9971. yes,*)
  9972. # gcc
  9973. library_names_spec='$libname.dll.a'
  9974. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9975. postinstall_cmds='base_file=`basename \$file`~
  9976. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9977. dldir=$destdir/`dirname \$dlpath`~
  9978. test -d \$dldir || mkdir -p \$dldir~
  9979. $install_prog $dir/$dlname \$dldir/$dlname~
  9980. chmod a+x \$dldir/$dlname~
  9981. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9982. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9983. fi'
  9984. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9985. dlpath=$dir/\$dldll~
  9986. $RM \$dlpath'
  9987. shlibpath_overrides_runpath=yes
  9988. case $host_os in
  9989. cygwin*)
  9990. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9991. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9992. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9993. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9994. ;;
  9995. mingw* | cegcc*)
  9996. # MinGW DLLs use traditional 'lib' prefix
  9997. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9998. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9999. ;;
  10000. pw32*)
  10001. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10002. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10003. ;;
  10004. esac
  10005. dynamic_linker='Win32 ld.exe'
  10006. ;;
  10007. *,cl*)
  10008. # Native MSVC
  10009. libname_spec='$name'
  10010. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10011. library_names_spec='$libname.dll.lib'
  10012. case $build_os in
  10013. mingw*)
  10014. sys_lib_search_path_spec=
  10015. lt_save_ifs=$IFS
  10016. IFS=';'
  10017. for lt_path in $LIB
  10018. do
  10019. IFS=$lt_save_ifs
  10020. # Let DOS variable expansion print the short 8.3 style file name.
  10021. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10022. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10023. done
  10024. IFS=$lt_save_ifs
  10025. # Convert to MSYS style.
  10026. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10027. ;;
  10028. cygwin*)
  10029. # Convert to unix form, then to dos form, then back to unix form
  10030. # but this time dos style (no spaces!) so that the unix form looks
  10031. # like /cygdrive/c/PROGRA~1:/cygdr...
  10032. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10033. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10034. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10035. ;;
  10036. *)
  10037. sys_lib_search_path_spec=$LIB
  10038. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10039. # It is most probably a Windows format PATH.
  10040. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10041. else
  10042. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10043. fi
  10044. # FIXME: find the short name or the path components, as spaces are
  10045. # common. (e.g. "Program Files" -> "PROGRA~1")
  10046. ;;
  10047. esac
  10048. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10049. postinstall_cmds='base_file=`basename \$file`~
  10050. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10051. dldir=$destdir/`dirname \$dlpath`~
  10052. test -d \$dldir || mkdir -p \$dldir~
  10053. $install_prog $dir/$dlname \$dldir/$dlname'
  10054. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10055. dlpath=$dir/\$dldll~
  10056. $RM \$dlpath'
  10057. shlibpath_overrides_runpath=yes
  10058. dynamic_linker='Win32 link.exe'
  10059. ;;
  10060. *)
  10061. # Assume MSVC wrapper
  10062. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10063. dynamic_linker='Win32 ld.exe'
  10064. ;;
  10065. esac
  10066. # FIXME: first we should search . and the directory the executable is in
  10067. shlibpath_var=PATH
  10068. ;;
  10069. darwin* | rhapsody*)
  10070. dynamic_linker="$host_os dyld"
  10071. version_type=darwin
  10072. need_lib_prefix=no
  10073. need_version=no
  10074. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10075. soname_spec='$libname$release$major$shared_ext'
  10076. shlibpath_overrides_runpath=yes
  10077. shlibpath_var=DYLD_LIBRARY_PATH
  10078. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10079. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10080. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10081. ;;
  10082. dgux*)
  10083. version_type=linux # correct to gnu/linux during the next big refactor
  10084. need_lib_prefix=no
  10085. need_version=no
  10086. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10087. soname_spec='$libname$release$shared_ext$major'
  10088. shlibpath_var=LD_LIBRARY_PATH
  10089. ;;
  10090. freebsd* | dragonfly* | midnightbsd*)
  10091. # DragonFly does not have aout. When/if they implement a new
  10092. # versioning mechanism, adjust this.
  10093. if test -x /usr/bin/objformat; then
  10094. objformat=`/usr/bin/objformat`
  10095. else
  10096. case $host_os in
  10097. freebsd[23].*) objformat=aout ;;
  10098. *) objformat=elf ;;
  10099. esac
  10100. fi
  10101. version_type=freebsd-$objformat
  10102. case $version_type in
  10103. freebsd-elf*)
  10104. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10105. soname_spec='$libname$release$shared_ext$major'
  10106. need_version=no
  10107. need_lib_prefix=no
  10108. ;;
  10109. freebsd-*)
  10110. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10111. need_version=yes
  10112. ;;
  10113. esac
  10114. shlibpath_var=LD_LIBRARY_PATH
  10115. case $host_os in
  10116. freebsd2.*)
  10117. shlibpath_overrides_runpath=yes
  10118. ;;
  10119. freebsd3.[01]* | freebsdelf3.[01]*)
  10120. shlibpath_overrides_runpath=yes
  10121. hardcode_into_libs=yes
  10122. ;;
  10123. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10124. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10125. shlibpath_overrides_runpath=no
  10126. hardcode_into_libs=yes
  10127. ;;
  10128. *) # from 4.6 on, and DragonFly
  10129. shlibpath_overrides_runpath=yes
  10130. hardcode_into_libs=yes
  10131. ;;
  10132. esac
  10133. ;;
  10134. haiku*)
  10135. version_type=linux # correct to gnu/linux during the next big refactor
  10136. need_lib_prefix=no
  10137. need_version=no
  10138. dynamic_linker="$host_os runtime_loader"
  10139. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10140. soname_spec='$libname$release$shared_ext$major'
  10141. shlibpath_var=LIBRARY_PATH
  10142. shlibpath_overrides_runpath=no
  10143. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10144. hardcode_into_libs=yes
  10145. ;;
  10146. hpux9* | hpux10* | hpux11*)
  10147. # Give a soname corresponding to the major version so that dld.sl refuses to
  10148. # link against other versions.
  10149. version_type=sunos
  10150. need_lib_prefix=no
  10151. need_version=no
  10152. case $host_cpu in
  10153. ia64*)
  10154. shrext_cmds='.so'
  10155. hardcode_into_libs=yes
  10156. dynamic_linker="$host_os dld.so"
  10157. shlibpath_var=LD_LIBRARY_PATH
  10158. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10159. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10160. soname_spec='$libname$release$shared_ext$major'
  10161. if test 32 = "$HPUX_IA64_MODE"; then
  10162. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10163. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10164. else
  10165. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10166. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10167. fi
  10168. ;;
  10169. hppa*64*)
  10170. shrext_cmds='.sl'
  10171. hardcode_into_libs=yes
  10172. dynamic_linker="$host_os dld.sl"
  10173. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10174. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10175. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10176. soname_spec='$libname$release$shared_ext$major'
  10177. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10178. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10179. ;;
  10180. *)
  10181. shrext_cmds='.sl'
  10182. dynamic_linker="$host_os dld.sl"
  10183. shlibpath_var=SHLIB_PATH
  10184. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10185. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10186. soname_spec='$libname$release$shared_ext$major'
  10187. ;;
  10188. esac
  10189. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10190. postinstall_cmds='chmod 555 $lib'
  10191. # or fails outright, so override atomically:
  10192. install_override_mode=555
  10193. ;;
  10194. interix[3-9]*)
  10195. version_type=linux # correct to gnu/linux during the next big refactor
  10196. need_lib_prefix=no
  10197. need_version=no
  10198. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10199. soname_spec='$libname$release$shared_ext$major'
  10200. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10201. shlibpath_var=LD_LIBRARY_PATH
  10202. shlibpath_overrides_runpath=no
  10203. hardcode_into_libs=yes
  10204. ;;
  10205. irix5* | irix6* | nonstopux*)
  10206. case $host_os in
  10207. nonstopux*) version_type=nonstopux ;;
  10208. *)
  10209. if test yes = "$lt_cv_prog_gnu_ld"; then
  10210. version_type=linux # correct to gnu/linux during the next big refactor
  10211. else
  10212. version_type=irix
  10213. fi ;;
  10214. esac
  10215. need_lib_prefix=no
  10216. need_version=no
  10217. soname_spec='$libname$release$shared_ext$major'
  10218. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10219. case $host_os in
  10220. irix5* | nonstopux*)
  10221. libsuff= shlibsuff=
  10222. ;;
  10223. *)
  10224. case $LD in # libtool.m4 will add one of these switches to LD
  10225. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10226. libsuff= shlibsuff= libmagic=32-bit;;
  10227. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10228. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10229. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10230. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10231. *) libsuff= shlibsuff= libmagic=never-match;;
  10232. esac
  10233. ;;
  10234. esac
  10235. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10236. shlibpath_overrides_runpath=no
  10237. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10238. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10239. hardcode_into_libs=yes
  10240. ;;
  10241. # No shared lib support for Linux oldld, aout, or coff.
  10242. linux*oldld* | linux*aout* | linux*coff*)
  10243. dynamic_linker=no
  10244. ;;
  10245. linux*android*)
  10246. version_type=none # Android doesn't support versioned libraries.
  10247. need_lib_prefix=no
  10248. need_version=no
  10249. library_names_spec='$libname$release$shared_ext'
  10250. soname_spec='$libname$release$shared_ext'
  10251. finish_cmds=
  10252. shlibpath_var=LD_LIBRARY_PATH
  10253. shlibpath_overrides_runpath=yes
  10254. # This implies no fast_install, which is unacceptable.
  10255. # Some rework will be needed to allow for fast_install
  10256. # before this can be enabled.
  10257. hardcode_into_libs=yes
  10258. dynamic_linker='Android linker'
  10259. # Don't embed -rpath directories since the linker doesn't support them.
  10260. hardcode_libdir_flag_spec='-L$libdir'
  10261. ;;
  10262. # This must be glibc/ELF.
  10263. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10264. version_type=linux # correct to gnu/linux during the next big refactor
  10265. need_lib_prefix=no
  10266. need_version=no
  10267. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10268. soname_spec='$libname$release$shared_ext$major'
  10269. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10270. shlibpath_var=LD_LIBRARY_PATH
  10271. shlibpath_overrides_runpath=no
  10272. # Some binutils ld are patched to set DT_RUNPATH
  10273. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10274. then :
  10275. printf %s "(cached) " >&6
  10276. else $as_nop
  10277. lt_cv_shlibpath_overrides_runpath=no
  10278. save_LDFLAGS=$LDFLAGS
  10279. save_libdir=$libdir
  10280. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10281. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10283. /* end confdefs.h. */
  10284. int
  10285. main (void)
  10286. {
  10287. ;
  10288. return 0;
  10289. }
  10290. _ACEOF
  10291. if ac_fn_c_try_link "$LINENO"
  10292. then :
  10293. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10294. then :
  10295. lt_cv_shlibpath_overrides_runpath=yes
  10296. fi
  10297. fi
  10298. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10299. conftest$ac_exeext conftest.$ac_ext
  10300. LDFLAGS=$save_LDFLAGS
  10301. libdir=$save_libdir
  10302. fi
  10303. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10304. # This implies no fast_install, which is unacceptable.
  10305. # Some rework will be needed to allow for fast_install
  10306. # before this can be enabled.
  10307. hardcode_into_libs=yes
  10308. # Add ABI-specific directories to the system library path.
  10309. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10310. # Ideally, we could use ldconfig to report *all* directores which are
  10311. # searched for libraries, however this is still not possible. Aside from not
  10312. # being certain /sbin/ldconfig is available, command
  10313. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10314. # even though it is searched at run-time. Try to do the best guess by
  10315. # appending ld.so.conf contents (and includes) to the search path.
  10316. if test -f /etc/ld.so.conf; then
  10317. 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' ' '`
  10318. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10319. fi
  10320. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10321. # powerpc, because MkLinux only supported shared libraries with the
  10322. # GNU dynamic linker. Since this was broken with cross compilers,
  10323. # most powerpc-linux boxes support dynamic linking these days and
  10324. # people can always --disable-shared, the test was removed, and we
  10325. # assume the GNU/Linux dynamic linker is in use.
  10326. dynamic_linker='GNU/Linux ld.so'
  10327. ;;
  10328. netbsd*)
  10329. version_type=sunos
  10330. need_lib_prefix=no
  10331. need_version=no
  10332. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10333. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10334. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10335. dynamic_linker='NetBSD (a.out) ld.so'
  10336. else
  10337. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10338. soname_spec='$libname$release$shared_ext$major'
  10339. dynamic_linker='NetBSD ld.elf_so'
  10340. fi
  10341. shlibpath_var=LD_LIBRARY_PATH
  10342. shlibpath_overrides_runpath=yes
  10343. hardcode_into_libs=yes
  10344. ;;
  10345. newsos6)
  10346. version_type=linux # correct to gnu/linux during the next big refactor
  10347. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10348. shlibpath_var=LD_LIBRARY_PATH
  10349. shlibpath_overrides_runpath=yes
  10350. ;;
  10351. *nto* | *qnx*)
  10352. version_type=qnx
  10353. need_lib_prefix=no
  10354. need_version=no
  10355. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10356. soname_spec='$libname$release$shared_ext$major'
  10357. shlibpath_var=LD_LIBRARY_PATH
  10358. shlibpath_overrides_runpath=no
  10359. hardcode_into_libs=yes
  10360. dynamic_linker='ldqnx.so'
  10361. ;;
  10362. openbsd* | bitrig*)
  10363. version_type=sunos
  10364. sys_lib_dlsearch_path_spec=/usr/lib
  10365. need_lib_prefix=no
  10366. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10367. need_version=no
  10368. else
  10369. need_version=yes
  10370. fi
  10371. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10372. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10373. shlibpath_var=LD_LIBRARY_PATH
  10374. shlibpath_overrides_runpath=yes
  10375. ;;
  10376. os2*)
  10377. libname_spec='$name'
  10378. shrext_cmds=.dll
  10379. need_lib_prefix=no
  10380. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10381. # SDL customization: removed versioning support.
  10382. # version_type=windows
  10383. # need_version=no
  10384. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10385. # v=$($ECHO $release$versuffix | tr -d .-);
  10386. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10387. # $ECHO $n$v`$shared_ext'
  10388. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10389. library_names_spec='${libname}_dll.$libext'
  10390. dynamic_linker='OS/2 ld.exe'
  10391. shlibpath_var=BEGINLIBPATH
  10392. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10393. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10394. postinstall_cmds='base_file=`basename \$file`~
  10395. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10396. dldir=$destdir/`dirname \$dlpath`~
  10397. test -d \$dldir || mkdir -p \$dldir~
  10398. $install_prog $dir/$dlname \$dldir/$dlname~
  10399. chmod a+x \$dldir/$dlname~
  10400. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10401. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10402. fi'
  10403. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10404. dlpath=$dir/\$dldll~
  10405. $RM \$dlpath'
  10406. ;;
  10407. osf3* | osf4* | osf5*)
  10408. version_type=osf
  10409. need_lib_prefix=no
  10410. need_version=no
  10411. soname_spec='$libname$release$shared_ext$major'
  10412. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10413. shlibpath_var=LD_LIBRARY_PATH
  10414. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10415. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10416. ;;
  10417. rdos*)
  10418. dynamic_linker=no
  10419. ;;
  10420. solaris*)
  10421. version_type=linux # correct to gnu/linux during the next big refactor
  10422. need_lib_prefix=no
  10423. need_version=no
  10424. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10425. soname_spec='$libname$release$shared_ext$major'
  10426. shlibpath_var=LD_LIBRARY_PATH
  10427. shlibpath_overrides_runpath=yes
  10428. hardcode_into_libs=yes
  10429. # ldd complains unless libraries are executable
  10430. postinstall_cmds='chmod +x $lib'
  10431. ;;
  10432. sunos4*)
  10433. version_type=sunos
  10434. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10435. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10436. shlibpath_var=LD_LIBRARY_PATH
  10437. shlibpath_overrides_runpath=yes
  10438. if test yes = "$with_gnu_ld"; then
  10439. need_lib_prefix=no
  10440. fi
  10441. need_version=yes
  10442. ;;
  10443. sysv4 | sysv4.3*)
  10444. version_type=linux # correct to gnu/linux during the next big refactor
  10445. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10446. soname_spec='$libname$release$shared_ext$major'
  10447. shlibpath_var=LD_LIBRARY_PATH
  10448. case $host_vendor in
  10449. sni)
  10450. shlibpath_overrides_runpath=no
  10451. need_lib_prefix=no
  10452. runpath_var=LD_RUN_PATH
  10453. ;;
  10454. siemens)
  10455. need_lib_prefix=no
  10456. ;;
  10457. motorola)
  10458. need_lib_prefix=no
  10459. need_version=no
  10460. shlibpath_overrides_runpath=no
  10461. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10462. ;;
  10463. esac
  10464. ;;
  10465. sysv4*MP*)
  10466. if test -d /usr/nec; then
  10467. version_type=linux # correct to gnu/linux during the next big refactor
  10468. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10469. soname_spec='$libname$shared_ext.$major'
  10470. shlibpath_var=LD_LIBRARY_PATH
  10471. fi
  10472. ;;
  10473. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10474. version_type=sco
  10475. need_lib_prefix=no
  10476. need_version=no
  10477. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10478. soname_spec='$libname$release$shared_ext$major'
  10479. shlibpath_var=LD_LIBRARY_PATH
  10480. shlibpath_overrides_runpath=yes
  10481. hardcode_into_libs=yes
  10482. if test yes = "$with_gnu_ld"; then
  10483. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10484. else
  10485. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10486. case $host_os in
  10487. sco3.2v5*)
  10488. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10489. ;;
  10490. esac
  10491. fi
  10492. sys_lib_dlsearch_path_spec='/usr/lib'
  10493. ;;
  10494. tpf*)
  10495. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10496. version_type=linux # correct to gnu/linux during the next big refactor
  10497. need_lib_prefix=no
  10498. need_version=no
  10499. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10500. shlibpath_var=LD_LIBRARY_PATH
  10501. shlibpath_overrides_runpath=no
  10502. hardcode_into_libs=yes
  10503. ;;
  10504. uts4*)
  10505. version_type=linux # correct to gnu/linux during the next big refactor
  10506. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10507. soname_spec='$libname$release$shared_ext$major'
  10508. shlibpath_var=LD_LIBRARY_PATH
  10509. ;;
  10510. *)
  10511. dynamic_linker=no
  10512. ;;
  10513. esac
  10514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10515. printf "%s\n" "$dynamic_linker" >&6; }
  10516. test no = "$dynamic_linker" && can_build_shared=no
  10517. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10518. if test yes = "$GCC"; then
  10519. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10520. fi
  10521. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10522. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10523. fi
  10524. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10525. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10526. fi
  10527. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10528. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10529. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10530. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10531. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10532. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10534. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10535. hardcode_action=
  10536. if test -n "$hardcode_libdir_flag_spec" ||
  10537. test -n "$runpath_var" ||
  10538. test yes = "$hardcode_automatic"; then
  10539. # We can hardcode non-existent directories.
  10540. if test no != "$hardcode_direct" &&
  10541. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10542. # have to relink, otherwise we might link with an installed library
  10543. # when we should be linking with a yet-to-be-installed one
  10544. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10545. test no != "$hardcode_minus_L"; then
  10546. # Linking always hardcodes the temporary library directory.
  10547. hardcode_action=relink
  10548. else
  10549. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10550. hardcode_action=immediate
  10551. fi
  10552. else
  10553. # We cannot hardcode anything, or else we can only hardcode existing
  10554. # directories.
  10555. hardcode_action=unsupported
  10556. fi
  10557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10558. printf "%s\n" "$hardcode_action" >&6; }
  10559. if test relink = "$hardcode_action" ||
  10560. test yes = "$inherit_rpath"; then
  10561. # Fast installation is not supported
  10562. enable_fast_install=no
  10563. elif test yes = "$shlibpath_overrides_runpath" ||
  10564. test no = "$enable_shared"; then
  10565. # Fast installation is not necessary
  10566. enable_fast_install=needless
  10567. fi
  10568. if test yes != "$enable_dlopen"; then
  10569. enable_dlopen=unknown
  10570. enable_dlopen_self=unknown
  10571. enable_dlopen_self_static=unknown
  10572. else
  10573. lt_cv_dlopen=no
  10574. lt_cv_dlopen_libs=
  10575. case $host_os in
  10576. beos*)
  10577. lt_cv_dlopen=load_add_on
  10578. lt_cv_dlopen_libs=
  10579. lt_cv_dlopen_self=yes
  10580. ;;
  10581. mingw* | pw32* | cegcc*)
  10582. lt_cv_dlopen=LoadLibrary
  10583. lt_cv_dlopen_libs=
  10584. ;;
  10585. cygwin*)
  10586. lt_cv_dlopen=dlopen
  10587. lt_cv_dlopen_libs=
  10588. ;;
  10589. darwin*)
  10590. # if libdl is installed we need to link against it
  10591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10592. printf %s "checking for dlopen in -ldl... " >&6; }
  10593. if test ${ac_cv_lib_dl_dlopen+y}
  10594. then :
  10595. printf %s "(cached) " >&6
  10596. else $as_nop
  10597. ac_check_lib_save_LIBS=$LIBS
  10598. LIBS="-ldl $LIBS"
  10599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10600. /* end confdefs.h. */
  10601. /* Override any GCC internal prototype to avoid an error.
  10602. Use char because int might match the return type of a GCC
  10603. builtin and then its argument prototype would still apply. */
  10604. char dlopen ();
  10605. int
  10606. main (void)
  10607. {
  10608. return dlopen ();
  10609. ;
  10610. return 0;
  10611. }
  10612. _ACEOF
  10613. if ac_fn_c_try_link "$LINENO"
  10614. then :
  10615. ac_cv_lib_dl_dlopen=yes
  10616. else $as_nop
  10617. ac_cv_lib_dl_dlopen=no
  10618. fi
  10619. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10620. conftest$ac_exeext conftest.$ac_ext
  10621. LIBS=$ac_check_lib_save_LIBS
  10622. fi
  10623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10624. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10625. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10626. then :
  10627. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10628. else $as_nop
  10629. lt_cv_dlopen=dyld
  10630. lt_cv_dlopen_libs=
  10631. lt_cv_dlopen_self=yes
  10632. fi
  10633. ;;
  10634. tpf*)
  10635. # Don't try to run any link tests for TPF. We know it's impossible
  10636. # because TPF is a cross-compiler, and we know how we open DSOs.
  10637. lt_cv_dlopen=dlopen
  10638. lt_cv_dlopen_libs=
  10639. lt_cv_dlopen_self=no
  10640. ;;
  10641. *)
  10642. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10643. if test "x$ac_cv_func_shl_load" = xyes
  10644. then :
  10645. lt_cv_dlopen=shl_load
  10646. else $as_nop
  10647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10648. printf %s "checking for shl_load in -ldld... " >&6; }
  10649. if test ${ac_cv_lib_dld_shl_load+y}
  10650. then :
  10651. printf %s "(cached) " >&6
  10652. else $as_nop
  10653. ac_check_lib_save_LIBS=$LIBS
  10654. LIBS="-ldld $LIBS"
  10655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10656. /* end confdefs.h. */
  10657. /* Override any GCC internal prototype to avoid an error.
  10658. Use char because int might match the return type of a GCC
  10659. builtin and then its argument prototype would still apply. */
  10660. char shl_load ();
  10661. int
  10662. main (void)
  10663. {
  10664. return shl_load ();
  10665. ;
  10666. return 0;
  10667. }
  10668. _ACEOF
  10669. if ac_fn_c_try_link "$LINENO"
  10670. then :
  10671. ac_cv_lib_dld_shl_load=yes
  10672. else $as_nop
  10673. ac_cv_lib_dld_shl_load=no
  10674. fi
  10675. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10676. conftest$ac_exeext conftest.$ac_ext
  10677. LIBS=$ac_check_lib_save_LIBS
  10678. fi
  10679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10680. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10681. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10682. then :
  10683. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10684. else $as_nop
  10685. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10686. if test "x$ac_cv_func_dlopen" = xyes
  10687. then :
  10688. lt_cv_dlopen=dlopen
  10689. else $as_nop
  10690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10691. printf %s "checking for dlopen in -ldl... " >&6; }
  10692. if test ${ac_cv_lib_dl_dlopen+y}
  10693. then :
  10694. printf %s "(cached) " >&6
  10695. else $as_nop
  10696. ac_check_lib_save_LIBS=$LIBS
  10697. LIBS="-ldl $LIBS"
  10698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10699. /* end confdefs.h. */
  10700. /* Override any GCC internal prototype to avoid an error.
  10701. Use char because int might match the return type of a GCC
  10702. builtin and then its argument prototype would still apply. */
  10703. char dlopen ();
  10704. int
  10705. main (void)
  10706. {
  10707. return dlopen ();
  10708. ;
  10709. return 0;
  10710. }
  10711. _ACEOF
  10712. if ac_fn_c_try_link "$LINENO"
  10713. then :
  10714. ac_cv_lib_dl_dlopen=yes
  10715. else $as_nop
  10716. ac_cv_lib_dl_dlopen=no
  10717. fi
  10718. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10719. conftest$ac_exeext conftest.$ac_ext
  10720. LIBS=$ac_check_lib_save_LIBS
  10721. fi
  10722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10723. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10724. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10725. then :
  10726. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10727. else $as_nop
  10728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10729. printf %s "checking for dlopen in -lsvld... " >&6; }
  10730. if test ${ac_cv_lib_svld_dlopen+y}
  10731. then :
  10732. printf %s "(cached) " >&6
  10733. else $as_nop
  10734. ac_check_lib_save_LIBS=$LIBS
  10735. LIBS="-lsvld $LIBS"
  10736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10737. /* end confdefs.h. */
  10738. /* Override any GCC internal prototype to avoid an error.
  10739. Use char because int might match the return type of a GCC
  10740. builtin and then its argument prototype would still apply. */
  10741. char dlopen ();
  10742. int
  10743. main (void)
  10744. {
  10745. return dlopen ();
  10746. ;
  10747. return 0;
  10748. }
  10749. _ACEOF
  10750. if ac_fn_c_try_link "$LINENO"
  10751. then :
  10752. ac_cv_lib_svld_dlopen=yes
  10753. else $as_nop
  10754. ac_cv_lib_svld_dlopen=no
  10755. fi
  10756. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10757. conftest$ac_exeext conftest.$ac_ext
  10758. LIBS=$ac_check_lib_save_LIBS
  10759. fi
  10760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10761. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10762. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10763. then :
  10764. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10765. else $as_nop
  10766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10767. printf %s "checking for dld_link in -ldld... " >&6; }
  10768. if test ${ac_cv_lib_dld_dld_link+y}
  10769. then :
  10770. printf %s "(cached) " >&6
  10771. else $as_nop
  10772. ac_check_lib_save_LIBS=$LIBS
  10773. LIBS="-ldld $LIBS"
  10774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10775. /* end confdefs.h. */
  10776. /* Override any GCC internal prototype to avoid an error.
  10777. Use char because int might match the return type of a GCC
  10778. builtin and then its argument prototype would still apply. */
  10779. char dld_link ();
  10780. int
  10781. main (void)
  10782. {
  10783. return dld_link ();
  10784. ;
  10785. return 0;
  10786. }
  10787. _ACEOF
  10788. if ac_fn_c_try_link "$LINENO"
  10789. then :
  10790. ac_cv_lib_dld_dld_link=yes
  10791. else $as_nop
  10792. ac_cv_lib_dld_dld_link=no
  10793. fi
  10794. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10795. conftest$ac_exeext conftest.$ac_ext
  10796. LIBS=$ac_check_lib_save_LIBS
  10797. fi
  10798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10799. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10800. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10801. then :
  10802. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10803. fi
  10804. fi
  10805. fi
  10806. fi
  10807. fi
  10808. fi
  10809. ;;
  10810. esac
  10811. if test no = "$lt_cv_dlopen"; then
  10812. enable_dlopen=no
  10813. else
  10814. enable_dlopen=yes
  10815. fi
  10816. case $lt_cv_dlopen in
  10817. dlopen)
  10818. save_CPPFLAGS=$CPPFLAGS
  10819. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10820. save_LDFLAGS=$LDFLAGS
  10821. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10822. save_LIBS=$LIBS
  10823. LIBS="$lt_cv_dlopen_libs $LIBS"
  10824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10825. printf %s "checking whether a program can dlopen itself... " >&6; }
  10826. if test ${lt_cv_dlopen_self+y}
  10827. then :
  10828. printf %s "(cached) " >&6
  10829. else $as_nop
  10830. if test yes = "$cross_compiling"; then :
  10831. lt_cv_dlopen_self=cross
  10832. else
  10833. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10834. lt_status=$lt_dlunknown
  10835. cat > conftest.$ac_ext <<_LT_EOF
  10836. #line $LINENO "configure"
  10837. #include "confdefs.h"
  10838. #if HAVE_DLFCN_H
  10839. #include <dlfcn.h>
  10840. #endif
  10841. #include <stdio.h>
  10842. #ifdef RTLD_GLOBAL
  10843. # define LT_DLGLOBAL RTLD_GLOBAL
  10844. #else
  10845. # ifdef DL_GLOBAL
  10846. # define LT_DLGLOBAL DL_GLOBAL
  10847. # else
  10848. # define LT_DLGLOBAL 0
  10849. # endif
  10850. #endif
  10851. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10852. find out it does not work in some platform. */
  10853. #ifndef LT_DLLAZY_OR_NOW
  10854. # ifdef RTLD_LAZY
  10855. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10856. # else
  10857. # ifdef DL_LAZY
  10858. # define LT_DLLAZY_OR_NOW DL_LAZY
  10859. # else
  10860. # ifdef RTLD_NOW
  10861. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10862. # else
  10863. # ifdef DL_NOW
  10864. # define LT_DLLAZY_OR_NOW DL_NOW
  10865. # else
  10866. # define LT_DLLAZY_OR_NOW 0
  10867. # endif
  10868. # endif
  10869. # endif
  10870. # endif
  10871. #endif
  10872. /* When -fvisibility=hidden is used, assume the code has been annotated
  10873. correspondingly for the symbols needed. */
  10874. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10875. int fnord () __attribute__((visibility("default")));
  10876. #endif
  10877. int fnord () { return 42; }
  10878. int main ()
  10879. {
  10880. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10881. int status = $lt_dlunknown;
  10882. if (self)
  10883. {
  10884. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10885. else
  10886. {
  10887. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10888. else puts (dlerror ());
  10889. }
  10890. /* dlclose (self); */
  10891. }
  10892. else
  10893. puts (dlerror ());
  10894. return status;
  10895. }
  10896. _LT_EOF
  10897. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10898. (eval $ac_link) 2>&5
  10899. ac_status=$?
  10900. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10901. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10902. (./conftest; exit; ) >&5 2>/dev/null
  10903. lt_status=$?
  10904. case x$lt_status in
  10905. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10906. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10907. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10908. esac
  10909. else :
  10910. # compilation failed
  10911. lt_cv_dlopen_self=no
  10912. fi
  10913. fi
  10914. rm -fr conftest*
  10915. fi
  10916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10917. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10918. if test yes = "$lt_cv_dlopen_self"; then
  10919. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10921. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10922. if test ${lt_cv_dlopen_self_static+y}
  10923. then :
  10924. printf %s "(cached) " >&6
  10925. else $as_nop
  10926. if test yes = "$cross_compiling"; then :
  10927. lt_cv_dlopen_self_static=cross
  10928. else
  10929. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10930. lt_status=$lt_dlunknown
  10931. cat > conftest.$ac_ext <<_LT_EOF
  10932. #line $LINENO "configure"
  10933. #include "confdefs.h"
  10934. #if HAVE_DLFCN_H
  10935. #include <dlfcn.h>
  10936. #endif
  10937. #include <stdio.h>
  10938. #ifdef RTLD_GLOBAL
  10939. # define LT_DLGLOBAL RTLD_GLOBAL
  10940. #else
  10941. # ifdef DL_GLOBAL
  10942. # define LT_DLGLOBAL DL_GLOBAL
  10943. # else
  10944. # define LT_DLGLOBAL 0
  10945. # endif
  10946. #endif
  10947. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10948. find out it does not work in some platform. */
  10949. #ifndef LT_DLLAZY_OR_NOW
  10950. # ifdef RTLD_LAZY
  10951. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10952. # else
  10953. # ifdef DL_LAZY
  10954. # define LT_DLLAZY_OR_NOW DL_LAZY
  10955. # else
  10956. # ifdef RTLD_NOW
  10957. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10958. # else
  10959. # ifdef DL_NOW
  10960. # define LT_DLLAZY_OR_NOW DL_NOW
  10961. # else
  10962. # define LT_DLLAZY_OR_NOW 0
  10963. # endif
  10964. # endif
  10965. # endif
  10966. # endif
  10967. #endif
  10968. /* When -fvisibility=hidden is used, assume the code has been annotated
  10969. correspondingly for the symbols needed. */
  10970. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10971. int fnord () __attribute__((visibility("default")));
  10972. #endif
  10973. int fnord () { return 42; }
  10974. int main ()
  10975. {
  10976. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10977. int status = $lt_dlunknown;
  10978. if (self)
  10979. {
  10980. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10981. else
  10982. {
  10983. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10984. else puts (dlerror ());
  10985. }
  10986. /* dlclose (self); */
  10987. }
  10988. else
  10989. puts (dlerror ());
  10990. return status;
  10991. }
  10992. _LT_EOF
  10993. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10994. (eval $ac_link) 2>&5
  10995. ac_status=$?
  10996. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10997. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10998. (./conftest; exit; ) >&5 2>/dev/null
  10999. lt_status=$?
  11000. case x$lt_status in
  11001. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11002. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11003. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11004. esac
  11005. else :
  11006. # compilation failed
  11007. lt_cv_dlopen_self_static=no
  11008. fi
  11009. fi
  11010. rm -fr conftest*
  11011. fi
  11012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11013. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11014. fi
  11015. CPPFLAGS=$save_CPPFLAGS
  11016. LDFLAGS=$save_LDFLAGS
  11017. LIBS=$save_LIBS
  11018. ;;
  11019. esac
  11020. case $lt_cv_dlopen_self in
  11021. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11022. *) enable_dlopen_self=unknown ;;
  11023. esac
  11024. case $lt_cv_dlopen_self_static in
  11025. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11026. *) enable_dlopen_self_static=unknown ;;
  11027. esac
  11028. fi
  11029. striplib=
  11030. old_striplib=
  11031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11032. printf %s "checking whether stripping libraries is possible... " >&6; }
  11033. if test -z "$STRIP"; then
  11034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11035. printf "%s\n" "no" >&6; }
  11036. else
  11037. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11038. old_striplib="$STRIP --strip-debug"
  11039. striplib="$STRIP --strip-unneeded"
  11040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11041. printf "%s\n" "yes" >&6; }
  11042. else
  11043. case $host_os in
  11044. darwin*)
  11045. # FIXME - insert some real tests, host_os isn't really good enough
  11046. striplib="$STRIP -x"
  11047. old_striplib="$STRIP -S"
  11048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11049. printf "%s\n" "yes" >&6; }
  11050. ;;
  11051. freebsd*)
  11052. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11053. old_striplib="$STRIP --strip-debug"
  11054. striplib="$STRIP --strip-unneeded"
  11055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11056. printf "%s\n" "yes" >&6; }
  11057. else
  11058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11059. printf "%s\n" "no" >&6; }
  11060. fi
  11061. ;;
  11062. *)
  11063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11064. printf "%s\n" "no" >&6; }
  11065. ;;
  11066. esac
  11067. fi
  11068. fi
  11069. # Report what library types will actually be built
  11070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11071. printf %s "checking if libtool supports shared libraries... " >&6; }
  11072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11073. printf "%s\n" "$can_build_shared" >&6; }
  11074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11075. printf %s "checking whether to build shared libraries... " >&6; }
  11076. test no = "$can_build_shared" && enable_shared=no
  11077. # On AIX, shared libraries and static libraries use the same namespace, and
  11078. # are all built from PIC.
  11079. case $host_os in
  11080. aix3*)
  11081. test yes = "$enable_shared" && enable_static=no
  11082. if test -n "$RANLIB"; then
  11083. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11084. postinstall_cmds='$RANLIB $lib'
  11085. fi
  11086. ;;
  11087. aix[4-9]*)
  11088. if test ia64 != "$host_cpu"; then
  11089. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11090. yes,aix,yes) ;; # shared object as lib.so file only
  11091. yes,svr4,*) ;; # shared object as lib.so archive member only
  11092. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11093. esac
  11094. fi
  11095. ;;
  11096. esac
  11097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11098. printf "%s\n" "$enable_shared" >&6; }
  11099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11100. printf %s "checking whether to build static libraries... " >&6; }
  11101. # Make sure either enable_shared or enable_static is yes.
  11102. test yes = "$enable_shared" || enable_static=yes
  11103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11104. printf "%s\n" "$enable_static" >&6; }
  11105. fi
  11106. ac_ext=c
  11107. ac_cpp='$CPP $CPPFLAGS'
  11108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11111. CC=$lt_save_CC
  11112. ac_config_commands="$ac_config_commands libtool"
  11113. # Only expand once:
  11114. if test -n "$ac_tool_prefix"; then
  11115. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11116. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11118. printf %s "checking for $ac_word... " >&6; }
  11119. if test ${ac_cv_prog_RC+y}
  11120. then :
  11121. printf %s "(cached) " >&6
  11122. else $as_nop
  11123. if test -n "$RC"; then
  11124. ac_cv_prog_RC="$RC" # Let the user override the test.
  11125. else
  11126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11127. for as_dir in $PATH
  11128. do
  11129. IFS=$as_save_IFS
  11130. case $as_dir in #(((
  11131. '') as_dir=./ ;;
  11132. */) ;;
  11133. *) as_dir=$as_dir/ ;;
  11134. esac
  11135. for ac_exec_ext in '' $ac_executable_extensions; do
  11136. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11137. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11138. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11139. break 2
  11140. fi
  11141. done
  11142. done
  11143. IFS=$as_save_IFS
  11144. fi
  11145. fi
  11146. RC=$ac_cv_prog_RC
  11147. if test -n "$RC"; then
  11148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11149. printf "%s\n" "$RC" >&6; }
  11150. else
  11151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11152. printf "%s\n" "no" >&6; }
  11153. fi
  11154. fi
  11155. if test -z "$ac_cv_prog_RC"; then
  11156. ac_ct_RC=$RC
  11157. # Extract the first word of "windres", so it can be a program name with args.
  11158. set dummy windres; ac_word=$2
  11159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11160. printf %s "checking for $ac_word... " >&6; }
  11161. if test ${ac_cv_prog_ac_ct_RC+y}
  11162. then :
  11163. printf %s "(cached) " >&6
  11164. else $as_nop
  11165. if test -n "$ac_ct_RC"; then
  11166. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11167. else
  11168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11169. for as_dir in $PATH
  11170. do
  11171. IFS=$as_save_IFS
  11172. case $as_dir in #(((
  11173. '') as_dir=./ ;;
  11174. */) ;;
  11175. *) as_dir=$as_dir/ ;;
  11176. esac
  11177. for ac_exec_ext in '' $ac_executable_extensions; do
  11178. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11179. ac_cv_prog_ac_ct_RC="windres"
  11180. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11181. break 2
  11182. fi
  11183. done
  11184. done
  11185. IFS=$as_save_IFS
  11186. fi
  11187. fi
  11188. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11189. if test -n "$ac_ct_RC"; then
  11190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11191. printf "%s\n" "$ac_ct_RC" >&6; }
  11192. else
  11193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11194. printf "%s\n" "no" >&6; }
  11195. fi
  11196. if test "x$ac_ct_RC" = x; then
  11197. RC=""
  11198. else
  11199. case $cross_compiling:$ac_tool_warned in
  11200. yes:)
  11201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11202. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11203. ac_tool_warned=yes ;;
  11204. esac
  11205. RC=$ac_ct_RC
  11206. fi
  11207. else
  11208. RC="$ac_cv_prog_RC"
  11209. fi
  11210. # Source file extension for RC test sources.
  11211. ac_ext=rc
  11212. # Object file extension for compiled RC test sources.
  11213. objext=o
  11214. objext_RC=$objext
  11215. # Code to be used in simple compile tests
  11216. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11217. # Code to be used in simple link tests
  11218. lt_simple_link_test_code=$lt_simple_compile_test_code
  11219. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11220. # If no C compiler was specified, use CC.
  11221. LTCC=${LTCC-"$CC"}
  11222. # If no C compiler flags were specified, use CFLAGS.
  11223. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11224. # Allow CC to be a program name with arguments.
  11225. compiler=$CC
  11226. # save warnings/boilerplate of simple test code
  11227. ac_outfile=conftest.$ac_objext
  11228. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11229. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11230. _lt_compiler_boilerplate=`cat conftest.err`
  11231. $RM conftest*
  11232. ac_outfile=conftest.$ac_objext
  11233. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11234. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11235. _lt_linker_boilerplate=`cat conftest.err`
  11236. $RM -r conftest*
  11237. # Allow CC to be a program name with arguments.
  11238. lt_save_CC=$CC
  11239. lt_save_CFLAGS=$CFLAGS
  11240. lt_save_GCC=$GCC
  11241. GCC=
  11242. CC=${RC-"windres"}
  11243. CFLAGS=
  11244. compiler=$CC
  11245. compiler_RC=$CC
  11246. func_cc_basename $compiler
  11247. cc_basename=$func_cc_basename_result
  11248. lt_cv_prog_compiler_c_o_RC=yes
  11249. if test -n "$compiler"; then
  11250. :
  11251. fi
  11252. GCC=$lt_save_GCC
  11253. ac_ext=c
  11254. ac_cpp='$CPP $CPPFLAGS'
  11255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11258. CC=$lt_save_CC
  11259. CFLAGS=$lt_save_CFLAGS
  11260. # For historical reasons, the library name redundantly includes the major
  11261. # version twice: libSDL2-2.0.so.0.
  11262. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11263. LT_RELEASE=2.0
  11264. # Increment this if there is an incompatible change - but if that happens,
  11265. # we should rename the library from SDL2 to SDL3, at which point this would
  11266. # reset to 0 anyway.
  11267. LT_MAJOR=0
  11268. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11269. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11270. LT_REVISION=$SDL_INTERFACE_AGE
  11271. for ac_prog in gawk mawk nawk awk
  11272. do
  11273. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11274. set dummy $ac_prog; ac_word=$2
  11275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11276. printf %s "checking for $ac_word... " >&6; }
  11277. if test ${ac_cv_prog_AWK+y}
  11278. then :
  11279. printf %s "(cached) " >&6
  11280. else $as_nop
  11281. if test -n "$AWK"; then
  11282. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11283. else
  11284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11285. for as_dir in $PATH
  11286. do
  11287. IFS=$as_save_IFS
  11288. case $as_dir in #(((
  11289. '') as_dir=./ ;;
  11290. */) ;;
  11291. *) as_dir=$as_dir/ ;;
  11292. esac
  11293. for ac_exec_ext in '' $ac_executable_extensions; do
  11294. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11295. ac_cv_prog_AWK="$ac_prog"
  11296. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11297. break 2
  11298. fi
  11299. done
  11300. done
  11301. IFS=$as_save_IFS
  11302. fi
  11303. fi
  11304. AWK=$ac_cv_prog_AWK
  11305. if test -n "$AWK"; then
  11306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11307. printf "%s\n" "$AWK" >&6; }
  11308. else
  11309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11310. printf "%s\n" "no" >&6; }
  11311. fi
  11312. test -n "$AWK" && break
  11313. done
  11314. ac_ext=c
  11315. ac_cpp='$CPP $CPPFLAGS'
  11316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11319. if test -n "$ac_tool_prefix"; then
  11320. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11321. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11323. printf %s "checking for $ac_word... " >&6; }
  11324. if test ${ac_cv_prog_CC+y}
  11325. then :
  11326. printf %s "(cached) " >&6
  11327. else $as_nop
  11328. if test -n "$CC"; then
  11329. ac_cv_prog_CC="$CC" # Let the user override the test.
  11330. else
  11331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11332. for as_dir in $PATH
  11333. do
  11334. IFS=$as_save_IFS
  11335. case $as_dir in #(((
  11336. '') as_dir=./ ;;
  11337. */) ;;
  11338. *) as_dir=$as_dir/ ;;
  11339. esac
  11340. for ac_exec_ext in '' $ac_executable_extensions; do
  11341. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11342. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11343. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11344. break 2
  11345. fi
  11346. done
  11347. done
  11348. IFS=$as_save_IFS
  11349. fi
  11350. fi
  11351. CC=$ac_cv_prog_CC
  11352. if test -n "$CC"; then
  11353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11354. printf "%s\n" "$CC" >&6; }
  11355. else
  11356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11357. printf "%s\n" "no" >&6; }
  11358. fi
  11359. fi
  11360. if test -z "$ac_cv_prog_CC"; then
  11361. ac_ct_CC=$CC
  11362. # Extract the first word of "gcc", so it can be a program name with args.
  11363. set dummy gcc; ac_word=$2
  11364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11365. printf %s "checking for $ac_word... " >&6; }
  11366. if test ${ac_cv_prog_ac_ct_CC+y}
  11367. then :
  11368. printf %s "(cached) " >&6
  11369. else $as_nop
  11370. if test -n "$ac_ct_CC"; then
  11371. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11372. else
  11373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11374. for as_dir in $PATH
  11375. do
  11376. IFS=$as_save_IFS
  11377. case $as_dir in #(((
  11378. '') as_dir=./ ;;
  11379. */) ;;
  11380. *) as_dir=$as_dir/ ;;
  11381. esac
  11382. for ac_exec_ext in '' $ac_executable_extensions; do
  11383. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11384. ac_cv_prog_ac_ct_CC="gcc"
  11385. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11386. break 2
  11387. fi
  11388. done
  11389. done
  11390. IFS=$as_save_IFS
  11391. fi
  11392. fi
  11393. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11394. if test -n "$ac_ct_CC"; then
  11395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11396. printf "%s\n" "$ac_ct_CC" >&6; }
  11397. else
  11398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11399. printf "%s\n" "no" >&6; }
  11400. fi
  11401. if test "x$ac_ct_CC" = x; then
  11402. CC=""
  11403. else
  11404. case $cross_compiling:$ac_tool_warned in
  11405. yes:)
  11406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11407. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11408. ac_tool_warned=yes ;;
  11409. esac
  11410. CC=$ac_ct_CC
  11411. fi
  11412. else
  11413. CC="$ac_cv_prog_CC"
  11414. fi
  11415. if test -z "$CC"; then
  11416. if test -n "$ac_tool_prefix"; then
  11417. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11418. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11420. printf %s "checking for $ac_word... " >&6; }
  11421. if test ${ac_cv_prog_CC+y}
  11422. then :
  11423. printf %s "(cached) " >&6
  11424. else $as_nop
  11425. if test -n "$CC"; then
  11426. ac_cv_prog_CC="$CC" # Let the user override the test.
  11427. else
  11428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11429. for as_dir in $PATH
  11430. do
  11431. IFS=$as_save_IFS
  11432. case $as_dir in #(((
  11433. '') as_dir=./ ;;
  11434. */) ;;
  11435. *) as_dir=$as_dir/ ;;
  11436. esac
  11437. for ac_exec_ext in '' $ac_executable_extensions; do
  11438. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11439. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11440. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11441. break 2
  11442. fi
  11443. done
  11444. done
  11445. IFS=$as_save_IFS
  11446. fi
  11447. fi
  11448. CC=$ac_cv_prog_CC
  11449. if test -n "$CC"; then
  11450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11451. printf "%s\n" "$CC" >&6; }
  11452. else
  11453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11454. printf "%s\n" "no" >&6; }
  11455. fi
  11456. fi
  11457. fi
  11458. if test -z "$CC"; then
  11459. # Extract the first word of "cc", so it can be a program name with args.
  11460. set dummy cc; ac_word=$2
  11461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11462. printf %s "checking for $ac_word... " >&6; }
  11463. if test ${ac_cv_prog_CC+y}
  11464. then :
  11465. printf %s "(cached) " >&6
  11466. else $as_nop
  11467. if test -n "$CC"; then
  11468. ac_cv_prog_CC="$CC" # Let the user override the test.
  11469. else
  11470. ac_prog_rejected=no
  11471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11472. for as_dir in $PATH
  11473. do
  11474. IFS=$as_save_IFS
  11475. case $as_dir in #(((
  11476. '') as_dir=./ ;;
  11477. */) ;;
  11478. *) as_dir=$as_dir/ ;;
  11479. esac
  11480. for ac_exec_ext in '' $ac_executable_extensions; do
  11481. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11482. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11483. ac_prog_rejected=yes
  11484. continue
  11485. fi
  11486. ac_cv_prog_CC="cc"
  11487. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11488. break 2
  11489. fi
  11490. done
  11491. done
  11492. IFS=$as_save_IFS
  11493. if test $ac_prog_rejected = yes; then
  11494. # We found a bogon in the path, so make sure we never use it.
  11495. set dummy $ac_cv_prog_CC
  11496. shift
  11497. if test $# != 0; then
  11498. # We chose a different compiler from the bogus one.
  11499. # However, it has the same basename, so the bogon will be chosen
  11500. # first if we set CC to just the basename; use the full file name.
  11501. shift
  11502. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11503. fi
  11504. fi
  11505. fi
  11506. fi
  11507. CC=$ac_cv_prog_CC
  11508. if test -n "$CC"; then
  11509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11510. printf "%s\n" "$CC" >&6; }
  11511. else
  11512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11513. printf "%s\n" "no" >&6; }
  11514. fi
  11515. fi
  11516. if test -z "$CC"; then
  11517. if test -n "$ac_tool_prefix"; then
  11518. for ac_prog in cl.exe
  11519. do
  11520. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11521. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11523. printf %s "checking for $ac_word... " >&6; }
  11524. if test ${ac_cv_prog_CC+y}
  11525. then :
  11526. printf %s "(cached) " >&6
  11527. else $as_nop
  11528. if test -n "$CC"; then
  11529. ac_cv_prog_CC="$CC" # Let the user override the test.
  11530. else
  11531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11532. for as_dir in $PATH
  11533. do
  11534. IFS=$as_save_IFS
  11535. case $as_dir in #(((
  11536. '') as_dir=./ ;;
  11537. */) ;;
  11538. *) as_dir=$as_dir/ ;;
  11539. esac
  11540. for ac_exec_ext in '' $ac_executable_extensions; do
  11541. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11542. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11543. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11544. break 2
  11545. fi
  11546. done
  11547. done
  11548. IFS=$as_save_IFS
  11549. fi
  11550. fi
  11551. CC=$ac_cv_prog_CC
  11552. if test -n "$CC"; then
  11553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11554. printf "%s\n" "$CC" >&6; }
  11555. else
  11556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11557. printf "%s\n" "no" >&6; }
  11558. fi
  11559. test -n "$CC" && break
  11560. done
  11561. fi
  11562. if test -z "$CC"; then
  11563. ac_ct_CC=$CC
  11564. for ac_prog in cl.exe
  11565. do
  11566. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11567. set dummy $ac_prog; ac_word=$2
  11568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11569. printf %s "checking for $ac_word... " >&6; }
  11570. if test ${ac_cv_prog_ac_ct_CC+y}
  11571. then :
  11572. printf %s "(cached) " >&6
  11573. else $as_nop
  11574. if test -n "$ac_ct_CC"; then
  11575. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11576. else
  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. ac_cv_prog_ac_ct_CC="$ac_prog"
  11589. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11590. break 2
  11591. fi
  11592. done
  11593. done
  11594. IFS=$as_save_IFS
  11595. fi
  11596. fi
  11597. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11598. if test -n "$ac_ct_CC"; then
  11599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11600. printf "%s\n" "$ac_ct_CC" >&6; }
  11601. else
  11602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11603. printf "%s\n" "no" >&6; }
  11604. fi
  11605. test -n "$ac_ct_CC" && break
  11606. done
  11607. if test "x$ac_ct_CC" = x; then
  11608. CC=""
  11609. else
  11610. case $cross_compiling:$ac_tool_warned in
  11611. yes:)
  11612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11613. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11614. ac_tool_warned=yes ;;
  11615. esac
  11616. CC=$ac_ct_CC
  11617. fi
  11618. fi
  11619. fi
  11620. if test -z "$CC"; then
  11621. if test -n "$ac_tool_prefix"; then
  11622. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11623. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11625. printf %s "checking for $ac_word... " >&6; }
  11626. if test ${ac_cv_prog_CC+y}
  11627. then :
  11628. printf %s "(cached) " >&6
  11629. else $as_nop
  11630. if test -n "$CC"; then
  11631. ac_cv_prog_CC="$CC" # Let the user override the test.
  11632. else
  11633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11634. for as_dir in $PATH
  11635. do
  11636. IFS=$as_save_IFS
  11637. case $as_dir in #(((
  11638. '') as_dir=./ ;;
  11639. */) ;;
  11640. *) as_dir=$as_dir/ ;;
  11641. esac
  11642. for ac_exec_ext in '' $ac_executable_extensions; do
  11643. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11644. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11645. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11646. break 2
  11647. fi
  11648. done
  11649. done
  11650. IFS=$as_save_IFS
  11651. fi
  11652. fi
  11653. CC=$ac_cv_prog_CC
  11654. if test -n "$CC"; then
  11655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11656. printf "%s\n" "$CC" >&6; }
  11657. else
  11658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11659. printf "%s\n" "no" >&6; }
  11660. fi
  11661. fi
  11662. if test -z "$ac_cv_prog_CC"; then
  11663. ac_ct_CC=$CC
  11664. # Extract the first word of "clang", so it can be a program name with args.
  11665. set dummy clang; ac_word=$2
  11666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11667. printf %s "checking for $ac_word... " >&6; }
  11668. if test ${ac_cv_prog_ac_ct_CC+y}
  11669. then :
  11670. printf %s "(cached) " >&6
  11671. else $as_nop
  11672. if test -n "$ac_ct_CC"; then
  11673. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11674. else
  11675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11676. for as_dir in $PATH
  11677. do
  11678. IFS=$as_save_IFS
  11679. case $as_dir in #(((
  11680. '') as_dir=./ ;;
  11681. */) ;;
  11682. *) as_dir=$as_dir/ ;;
  11683. esac
  11684. for ac_exec_ext in '' $ac_executable_extensions; do
  11685. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11686. ac_cv_prog_ac_ct_CC="clang"
  11687. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11688. break 2
  11689. fi
  11690. done
  11691. done
  11692. IFS=$as_save_IFS
  11693. fi
  11694. fi
  11695. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11696. if test -n "$ac_ct_CC"; then
  11697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11698. printf "%s\n" "$ac_ct_CC" >&6; }
  11699. else
  11700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11701. printf "%s\n" "no" >&6; }
  11702. fi
  11703. if test "x$ac_ct_CC" = x; then
  11704. CC=""
  11705. else
  11706. case $cross_compiling:$ac_tool_warned in
  11707. yes:)
  11708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11709. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11710. ac_tool_warned=yes ;;
  11711. esac
  11712. CC=$ac_ct_CC
  11713. fi
  11714. else
  11715. CC="$ac_cv_prog_CC"
  11716. fi
  11717. fi
  11718. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11719. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11720. as_fn_error $? "no acceptable C compiler found in \$PATH
  11721. See \`config.log' for more details" "$LINENO" 5; }
  11722. # Provide some information about the compiler.
  11723. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11724. set X $ac_compile
  11725. ac_compiler=$2
  11726. for ac_option in --version -v -V -qversion -version; do
  11727. { { ac_try="$ac_compiler $ac_option >&5"
  11728. case "(($ac_try" in
  11729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11730. *) ac_try_echo=$ac_try;;
  11731. esac
  11732. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11733. printf "%s\n" "$ac_try_echo"; } >&5
  11734. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11735. ac_status=$?
  11736. if test -s conftest.err; then
  11737. sed '10a\
  11738. ... rest of stderr output deleted ...
  11739. 10q' conftest.err >conftest.er1
  11740. cat conftest.er1 >&5
  11741. fi
  11742. rm -f conftest.er1 conftest.err
  11743. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11744. test $ac_status = 0; }
  11745. done
  11746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11747. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11748. if test ${ac_cv_c_compiler_gnu+y}
  11749. then :
  11750. printf %s "(cached) " >&6
  11751. else $as_nop
  11752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11753. /* end confdefs.h. */
  11754. int
  11755. main (void)
  11756. {
  11757. #ifndef __GNUC__
  11758. choke me
  11759. #endif
  11760. ;
  11761. return 0;
  11762. }
  11763. _ACEOF
  11764. if ac_fn_c_try_compile "$LINENO"
  11765. then :
  11766. ac_compiler_gnu=yes
  11767. else $as_nop
  11768. ac_compiler_gnu=no
  11769. fi
  11770. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11771. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11772. fi
  11773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11774. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11775. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11776. if test $ac_compiler_gnu = yes; then
  11777. GCC=yes
  11778. else
  11779. GCC=
  11780. fi
  11781. ac_test_CFLAGS=${CFLAGS+y}
  11782. ac_save_CFLAGS=$CFLAGS
  11783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11784. printf %s "checking whether $CC accepts -g... " >&6; }
  11785. if test ${ac_cv_prog_cc_g+y}
  11786. then :
  11787. printf %s "(cached) " >&6
  11788. else $as_nop
  11789. ac_save_c_werror_flag=$ac_c_werror_flag
  11790. ac_c_werror_flag=yes
  11791. ac_cv_prog_cc_g=no
  11792. CFLAGS="-g"
  11793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11794. /* end confdefs.h. */
  11795. int
  11796. main (void)
  11797. {
  11798. ;
  11799. return 0;
  11800. }
  11801. _ACEOF
  11802. if ac_fn_c_try_compile "$LINENO"
  11803. then :
  11804. ac_cv_prog_cc_g=yes
  11805. else $as_nop
  11806. CFLAGS=""
  11807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11808. /* end confdefs.h. */
  11809. int
  11810. main (void)
  11811. {
  11812. ;
  11813. return 0;
  11814. }
  11815. _ACEOF
  11816. if ac_fn_c_try_compile "$LINENO"
  11817. then :
  11818. else $as_nop
  11819. ac_c_werror_flag=$ac_save_c_werror_flag
  11820. CFLAGS="-g"
  11821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11822. /* end confdefs.h. */
  11823. int
  11824. main (void)
  11825. {
  11826. ;
  11827. return 0;
  11828. }
  11829. _ACEOF
  11830. if ac_fn_c_try_compile "$LINENO"
  11831. then :
  11832. ac_cv_prog_cc_g=yes
  11833. fi
  11834. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11835. fi
  11836. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11837. fi
  11838. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11839. ac_c_werror_flag=$ac_save_c_werror_flag
  11840. fi
  11841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11842. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11843. if test $ac_test_CFLAGS; then
  11844. CFLAGS=$ac_save_CFLAGS
  11845. elif test $ac_cv_prog_cc_g = yes; then
  11846. if test "$GCC" = yes; then
  11847. CFLAGS="-g -O2"
  11848. else
  11849. CFLAGS="-g"
  11850. fi
  11851. else
  11852. if test "$GCC" = yes; then
  11853. CFLAGS="-O2"
  11854. else
  11855. CFLAGS=
  11856. fi
  11857. fi
  11858. ac_prog_cc_stdc=no
  11859. if test x$ac_prog_cc_stdc = xno
  11860. then :
  11861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11862. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11863. if test ${ac_cv_prog_cc_c11+y}
  11864. then :
  11865. printf %s "(cached) " >&6
  11866. else $as_nop
  11867. ac_cv_prog_cc_c11=no
  11868. ac_save_CC=$CC
  11869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11870. /* end confdefs.h. */
  11871. $ac_c_conftest_c11_program
  11872. _ACEOF
  11873. for ac_arg in '' -std=gnu11
  11874. do
  11875. CC="$ac_save_CC $ac_arg"
  11876. if ac_fn_c_try_compile "$LINENO"
  11877. then :
  11878. ac_cv_prog_cc_c11=$ac_arg
  11879. fi
  11880. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11881. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11882. done
  11883. rm -f conftest.$ac_ext
  11884. CC=$ac_save_CC
  11885. fi
  11886. if test "x$ac_cv_prog_cc_c11" = xno
  11887. then :
  11888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11889. printf "%s\n" "unsupported" >&6; }
  11890. else $as_nop
  11891. if test "x$ac_cv_prog_cc_c11" = x
  11892. then :
  11893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11894. printf "%s\n" "none needed" >&6; }
  11895. else $as_nop
  11896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11897. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11898. CC="$CC $ac_cv_prog_cc_c11"
  11899. fi
  11900. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11901. ac_prog_cc_stdc=c11
  11902. fi
  11903. fi
  11904. if test x$ac_prog_cc_stdc = xno
  11905. then :
  11906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11907. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11908. if test ${ac_cv_prog_cc_c99+y}
  11909. then :
  11910. printf %s "(cached) " >&6
  11911. else $as_nop
  11912. ac_cv_prog_cc_c99=no
  11913. ac_save_CC=$CC
  11914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11915. /* end confdefs.h. */
  11916. $ac_c_conftest_c99_program
  11917. _ACEOF
  11918. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11919. do
  11920. CC="$ac_save_CC $ac_arg"
  11921. if ac_fn_c_try_compile "$LINENO"
  11922. then :
  11923. ac_cv_prog_cc_c99=$ac_arg
  11924. fi
  11925. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11926. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11927. done
  11928. rm -f conftest.$ac_ext
  11929. CC=$ac_save_CC
  11930. fi
  11931. if test "x$ac_cv_prog_cc_c99" = xno
  11932. then :
  11933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11934. printf "%s\n" "unsupported" >&6; }
  11935. else $as_nop
  11936. if test "x$ac_cv_prog_cc_c99" = x
  11937. then :
  11938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11939. printf "%s\n" "none needed" >&6; }
  11940. else $as_nop
  11941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11942. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11943. CC="$CC $ac_cv_prog_cc_c99"
  11944. fi
  11945. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11946. ac_prog_cc_stdc=c99
  11947. fi
  11948. fi
  11949. if test x$ac_prog_cc_stdc = xno
  11950. then :
  11951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11952. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11953. if test ${ac_cv_prog_cc_c89+y}
  11954. then :
  11955. printf %s "(cached) " >&6
  11956. else $as_nop
  11957. ac_cv_prog_cc_c89=no
  11958. ac_save_CC=$CC
  11959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11960. /* end confdefs.h. */
  11961. $ac_c_conftest_c89_program
  11962. _ACEOF
  11963. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11964. do
  11965. CC="$ac_save_CC $ac_arg"
  11966. if ac_fn_c_try_compile "$LINENO"
  11967. then :
  11968. ac_cv_prog_cc_c89=$ac_arg
  11969. fi
  11970. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11971. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11972. done
  11973. rm -f conftest.$ac_ext
  11974. CC=$ac_save_CC
  11975. fi
  11976. if test "x$ac_cv_prog_cc_c89" = xno
  11977. then :
  11978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11979. printf "%s\n" "unsupported" >&6; }
  11980. else $as_nop
  11981. if test "x$ac_cv_prog_cc_c89" = x
  11982. then :
  11983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11984. printf "%s\n" "none needed" >&6; }
  11985. else $as_nop
  11986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11987. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11988. CC="$CC $ac_cv_prog_cc_c89"
  11989. fi
  11990. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11991. ac_prog_cc_stdc=c89
  11992. fi
  11993. fi
  11994. ac_ext=c
  11995. ac_cpp='$CPP $CPPFLAGS'
  11996. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11997. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11998. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11999. ac_ext=cpp
  12000. ac_cpp='$CXXCPP $CPPFLAGS'
  12001. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12002. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12003. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12004. if test -z "$CXX"; then
  12005. if test -n "$CCC"; then
  12006. CXX=$CCC
  12007. else
  12008. if test -n "$ac_tool_prefix"; then
  12009. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12010. do
  12011. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12012. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12014. printf %s "checking for $ac_word... " >&6; }
  12015. if test ${ac_cv_prog_CXX+y}
  12016. then :
  12017. printf %s "(cached) " >&6
  12018. else $as_nop
  12019. if test -n "$CXX"; then
  12020. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12021. else
  12022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12023. for as_dir in $PATH
  12024. do
  12025. IFS=$as_save_IFS
  12026. case $as_dir in #(((
  12027. '') as_dir=./ ;;
  12028. */) ;;
  12029. *) as_dir=$as_dir/ ;;
  12030. esac
  12031. for ac_exec_ext in '' $ac_executable_extensions; do
  12032. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12033. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12034. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12035. break 2
  12036. fi
  12037. done
  12038. done
  12039. IFS=$as_save_IFS
  12040. fi
  12041. fi
  12042. CXX=$ac_cv_prog_CXX
  12043. if test -n "$CXX"; then
  12044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12045. printf "%s\n" "$CXX" >&6; }
  12046. else
  12047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12048. printf "%s\n" "no" >&6; }
  12049. fi
  12050. test -n "$CXX" && break
  12051. done
  12052. fi
  12053. if test -z "$CXX"; then
  12054. ac_ct_CXX=$CXX
  12055. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12056. do
  12057. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12058. set dummy $ac_prog; ac_word=$2
  12059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12060. printf %s "checking for $ac_word... " >&6; }
  12061. if test ${ac_cv_prog_ac_ct_CXX+y}
  12062. then :
  12063. printf %s "(cached) " >&6
  12064. else $as_nop
  12065. if test -n "$ac_ct_CXX"; then
  12066. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12067. else
  12068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12069. for as_dir in $PATH
  12070. do
  12071. IFS=$as_save_IFS
  12072. case $as_dir in #(((
  12073. '') as_dir=./ ;;
  12074. */) ;;
  12075. *) as_dir=$as_dir/ ;;
  12076. esac
  12077. for ac_exec_ext in '' $ac_executable_extensions; do
  12078. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12079. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12080. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12081. break 2
  12082. fi
  12083. done
  12084. done
  12085. IFS=$as_save_IFS
  12086. fi
  12087. fi
  12088. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12089. if test -n "$ac_ct_CXX"; then
  12090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12091. printf "%s\n" "$ac_ct_CXX" >&6; }
  12092. else
  12093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12094. printf "%s\n" "no" >&6; }
  12095. fi
  12096. test -n "$ac_ct_CXX" && break
  12097. done
  12098. if test "x$ac_ct_CXX" = x; then
  12099. CXX="g++"
  12100. else
  12101. case $cross_compiling:$ac_tool_warned in
  12102. yes:)
  12103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12104. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12105. ac_tool_warned=yes ;;
  12106. esac
  12107. CXX=$ac_ct_CXX
  12108. fi
  12109. fi
  12110. fi
  12111. fi
  12112. # Provide some information about the compiler.
  12113. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12114. set X $ac_compile
  12115. ac_compiler=$2
  12116. for ac_option in --version -v -V -qversion; do
  12117. { { ac_try="$ac_compiler $ac_option >&5"
  12118. case "(($ac_try" in
  12119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12120. *) ac_try_echo=$ac_try;;
  12121. esac
  12122. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12123. printf "%s\n" "$ac_try_echo"; } >&5
  12124. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12125. ac_status=$?
  12126. if test -s conftest.err; then
  12127. sed '10a\
  12128. ... rest of stderr output deleted ...
  12129. 10q' conftest.err >conftest.er1
  12130. cat conftest.er1 >&5
  12131. fi
  12132. rm -f conftest.er1 conftest.err
  12133. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12134. test $ac_status = 0; }
  12135. done
  12136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12137. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12138. if test ${ac_cv_cxx_compiler_gnu+y}
  12139. then :
  12140. printf %s "(cached) " >&6
  12141. else $as_nop
  12142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12143. /* end confdefs.h. */
  12144. int
  12145. main (void)
  12146. {
  12147. #ifndef __GNUC__
  12148. choke me
  12149. #endif
  12150. ;
  12151. return 0;
  12152. }
  12153. _ACEOF
  12154. if ac_fn_cxx_try_compile "$LINENO"
  12155. then :
  12156. ac_compiler_gnu=yes
  12157. else $as_nop
  12158. ac_compiler_gnu=no
  12159. fi
  12160. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12161. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12162. fi
  12163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12164. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12165. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12166. if test $ac_compiler_gnu = yes; then
  12167. GXX=yes
  12168. else
  12169. GXX=
  12170. fi
  12171. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12172. ac_save_CXXFLAGS=$CXXFLAGS
  12173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12174. printf %s "checking whether $CXX accepts -g... " >&6; }
  12175. if test ${ac_cv_prog_cxx_g+y}
  12176. then :
  12177. printf %s "(cached) " >&6
  12178. else $as_nop
  12179. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12180. ac_cxx_werror_flag=yes
  12181. ac_cv_prog_cxx_g=no
  12182. CXXFLAGS="-g"
  12183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12184. /* end confdefs.h. */
  12185. int
  12186. main (void)
  12187. {
  12188. ;
  12189. return 0;
  12190. }
  12191. _ACEOF
  12192. if ac_fn_cxx_try_compile "$LINENO"
  12193. then :
  12194. ac_cv_prog_cxx_g=yes
  12195. else $as_nop
  12196. CXXFLAGS=""
  12197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12198. /* end confdefs.h. */
  12199. int
  12200. main (void)
  12201. {
  12202. ;
  12203. return 0;
  12204. }
  12205. _ACEOF
  12206. if ac_fn_cxx_try_compile "$LINENO"
  12207. then :
  12208. else $as_nop
  12209. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12210. CXXFLAGS="-g"
  12211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12212. /* end confdefs.h. */
  12213. int
  12214. main (void)
  12215. {
  12216. ;
  12217. return 0;
  12218. }
  12219. _ACEOF
  12220. if ac_fn_cxx_try_compile "$LINENO"
  12221. then :
  12222. ac_cv_prog_cxx_g=yes
  12223. fi
  12224. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12225. fi
  12226. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12227. fi
  12228. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12229. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12230. fi
  12231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12232. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12233. if test $ac_test_CXXFLAGS; then
  12234. CXXFLAGS=$ac_save_CXXFLAGS
  12235. elif test $ac_cv_prog_cxx_g = yes; then
  12236. if test "$GXX" = yes; then
  12237. CXXFLAGS="-g -O2"
  12238. else
  12239. CXXFLAGS="-g"
  12240. fi
  12241. else
  12242. if test "$GXX" = yes; then
  12243. CXXFLAGS="-O2"
  12244. else
  12245. CXXFLAGS=
  12246. fi
  12247. fi
  12248. ac_prog_cxx_stdcxx=no
  12249. if test x$ac_prog_cxx_stdcxx = xno
  12250. then :
  12251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12252. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12253. if test ${ac_cv_prog_cxx_11+y}
  12254. then :
  12255. printf %s "(cached) " >&6
  12256. else $as_nop
  12257. ac_cv_prog_cxx_11=no
  12258. ac_save_CXX=$CXX
  12259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12260. /* end confdefs.h. */
  12261. $ac_cxx_conftest_cxx11_program
  12262. _ACEOF
  12263. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12264. do
  12265. CXX="$ac_save_CXX $ac_arg"
  12266. if ac_fn_cxx_try_compile "$LINENO"
  12267. then :
  12268. ac_cv_prog_cxx_cxx11=$ac_arg
  12269. fi
  12270. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12271. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12272. done
  12273. rm -f conftest.$ac_ext
  12274. CXX=$ac_save_CXX
  12275. fi
  12276. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12277. then :
  12278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12279. printf "%s\n" "unsupported" >&6; }
  12280. else $as_nop
  12281. if test "x$ac_cv_prog_cxx_cxx11" = x
  12282. then :
  12283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12284. printf "%s\n" "none needed" >&6; }
  12285. else $as_nop
  12286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12287. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12288. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12289. fi
  12290. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12291. ac_prog_cxx_stdcxx=cxx11
  12292. fi
  12293. fi
  12294. if test x$ac_prog_cxx_stdcxx = xno
  12295. then :
  12296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12297. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12298. if test ${ac_cv_prog_cxx_98+y}
  12299. then :
  12300. printf %s "(cached) " >&6
  12301. else $as_nop
  12302. ac_cv_prog_cxx_98=no
  12303. ac_save_CXX=$CXX
  12304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12305. /* end confdefs.h. */
  12306. $ac_cxx_conftest_cxx98_program
  12307. _ACEOF
  12308. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12309. do
  12310. CXX="$ac_save_CXX $ac_arg"
  12311. if ac_fn_cxx_try_compile "$LINENO"
  12312. then :
  12313. ac_cv_prog_cxx_cxx98=$ac_arg
  12314. fi
  12315. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12316. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12317. done
  12318. rm -f conftest.$ac_ext
  12319. CXX=$ac_save_CXX
  12320. fi
  12321. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12322. then :
  12323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12324. printf "%s\n" "unsupported" >&6; }
  12325. else $as_nop
  12326. if test "x$ac_cv_prog_cxx_cxx98" = x
  12327. then :
  12328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12329. printf "%s\n" "none needed" >&6; }
  12330. else $as_nop
  12331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12332. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12333. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12334. fi
  12335. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12336. ac_prog_cxx_stdcxx=cxx98
  12337. fi
  12338. fi
  12339. ac_ext=c
  12340. ac_cpp='$CPP $CPPFLAGS'
  12341. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12342. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12344. func_stripname_cnf ()
  12345. {
  12346. case $2 in
  12347. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12348. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12349. esac
  12350. } # func_stripname_cnf
  12351. if test -n "$CXX" && ( test no != "$CXX" &&
  12352. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12353. (test g++ != "$CXX"))); then
  12354. ac_ext=cpp
  12355. ac_cpp='$CXXCPP $CPPFLAGS'
  12356. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12357. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12358. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12360. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12361. if test -z "$CXXCPP"; then
  12362. if test ${ac_cv_prog_CXXCPP+y}
  12363. then :
  12364. printf %s "(cached) " >&6
  12365. else $as_nop
  12366. # Double quotes because $CXX needs to be expanded
  12367. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12368. do
  12369. ac_preproc_ok=false
  12370. for ac_cxx_preproc_warn_flag in '' yes
  12371. do
  12372. # Use a header file that comes with gcc, so configuring glibc
  12373. # with a fresh cross-compiler works.
  12374. # On the NeXT, cc -E runs the code through the compiler's parser,
  12375. # not just through cpp. "Syntax error" is here to catch this case.
  12376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12377. /* end confdefs.h. */
  12378. #include <limits.h>
  12379. Syntax error
  12380. _ACEOF
  12381. if ac_fn_cxx_try_cpp "$LINENO"
  12382. then :
  12383. else $as_nop
  12384. # Broken: fails on valid input.
  12385. continue
  12386. fi
  12387. rm -f conftest.err conftest.i conftest.$ac_ext
  12388. # OK, works on sane cases. Now check whether nonexistent headers
  12389. # can be detected and how.
  12390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12391. /* end confdefs.h. */
  12392. #include <ac_nonexistent.h>
  12393. _ACEOF
  12394. if ac_fn_cxx_try_cpp "$LINENO"
  12395. then :
  12396. # Broken: success on invalid input.
  12397. continue
  12398. else $as_nop
  12399. # Passes both tests.
  12400. ac_preproc_ok=:
  12401. break
  12402. fi
  12403. rm -f conftest.err conftest.i conftest.$ac_ext
  12404. done
  12405. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12406. rm -f conftest.i conftest.err conftest.$ac_ext
  12407. if $ac_preproc_ok
  12408. then :
  12409. break
  12410. fi
  12411. done
  12412. ac_cv_prog_CXXCPP=$CXXCPP
  12413. fi
  12414. CXXCPP=$ac_cv_prog_CXXCPP
  12415. else
  12416. ac_cv_prog_CXXCPP=$CXXCPP
  12417. fi
  12418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12419. printf "%s\n" "$CXXCPP" >&6; }
  12420. ac_preproc_ok=false
  12421. for ac_cxx_preproc_warn_flag in '' yes
  12422. do
  12423. # Use a header file that comes with gcc, so configuring glibc
  12424. # with a fresh cross-compiler works.
  12425. # On the NeXT, cc -E runs the code through the compiler's parser,
  12426. # not just through cpp. "Syntax error" is here to catch this case.
  12427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12428. /* end confdefs.h. */
  12429. #include <limits.h>
  12430. Syntax error
  12431. _ACEOF
  12432. if ac_fn_cxx_try_cpp "$LINENO"
  12433. then :
  12434. else $as_nop
  12435. # Broken: fails on valid input.
  12436. continue
  12437. fi
  12438. rm -f conftest.err conftest.i conftest.$ac_ext
  12439. # OK, works on sane cases. Now check whether nonexistent headers
  12440. # can be detected and how.
  12441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12442. /* end confdefs.h. */
  12443. #include <ac_nonexistent.h>
  12444. _ACEOF
  12445. if ac_fn_cxx_try_cpp "$LINENO"
  12446. then :
  12447. # Broken: success on invalid input.
  12448. continue
  12449. else $as_nop
  12450. # Passes both tests.
  12451. ac_preproc_ok=:
  12452. break
  12453. fi
  12454. rm -f conftest.err conftest.i conftest.$ac_ext
  12455. done
  12456. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12457. rm -f conftest.i conftest.err conftest.$ac_ext
  12458. if $ac_preproc_ok
  12459. then :
  12460. else $as_nop
  12461. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12462. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12463. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12464. See \`config.log' for more details" "$LINENO" 5; }
  12465. fi
  12466. ac_ext=c
  12467. ac_cpp='$CPP $CPPFLAGS'
  12468. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12469. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12470. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12471. else
  12472. _lt_caught_CXX_error=yes
  12473. fi
  12474. ac_ext=cpp
  12475. ac_cpp='$CXXCPP $CPPFLAGS'
  12476. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12477. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12478. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12479. archive_cmds_need_lc_CXX=no
  12480. allow_undefined_flag_CXX=
  12481. always_export_symbols_CXX=no
  12482. archive_expsym_cmds_CXX=
  12483. compiler_needs_object_CXX=no
  12484. export_dynamic_flag_spec_CXX=
  12485. hardcode_direct_CXX=no
  12486. hardcode_direct_absolute_CXX=no
  12487. hardcode_libdir_flag_spec_CXX=
  12488. hardcode_libdir_separator_CXX=
  12489. hardcode_minus_L_CXX=no
  12490. hardcode_shlibpath_var_CXX=unsupported
  12491. hardcode_automatic_CXX=no
  12492. inherit_rpath_CXX=no
  12493. module_cmds_CXX=
  12494. module_expsym_cmds_CXX=
  12495. link_all_deplibs_CXX=unknown
  12496. old_archive_cmds_CXX=$old_archive_cmds
  12497. reload_flag_CXX=$reload_flag
  12498. reload_cmds_CXX=$reload_cmds
  12499. no_undefined_flag_CXX=
  12500. whole_archive_flag_spec_CXX=
  12501. enable_shared_with_static_runtimes_CXX=no
  12502. # Source file extension for C++ test sources.
  12503. ac_ext=cpp
  12504. # Object file extension for compiled C++ test sources.
  12505. objext=o
  12506. objext_CXX=$objext
  12507. # No sense in running all these tests if we already determined that
  12508. # the CXX compiler isn't working. Some variables (like enable_shared)
  12509. # are currently assumed to apply to all compilers on this platform,
  12510. # and will be corrupted by setting them based on a non-working compiler.
  12511. if test yes != "$_lt_caught_CXX_error"; then
  12512. # Code to be used in simple compile tests
  12513. lt_simple_compile_test_code="int some_variable = 0;"
  12514. # Code to be used in simple link tests
  12515. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12516. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12517. # If no C compiler was specified, use CC.
  12518. LTCC=${LTCC-"$CC"}
  12519. # If no C compiler flags were specified, use CFLAGS.
  12520. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12521. # Allow CC to be a program name with arguments.
  12522. compiler=$CC
  12523. # save warnings/boilerplate of simple test code
  12524. ac_outfile=conftest.$ac_objext
  12525. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12526. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12527. _lt_compiler_boilerplate=`cat conftest.err`
  12528. $RM conftest*
  12529. ac_outfile=conftest.$ac_objext
  12530. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12531. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12532. _lt_linker_boilerplate=`cat conftest.err`
  12533. $RM -r conftest*
  12534. # Allow CC to be a program name with arguments.
  12535. lt_save_CC=$CC
  12536. lt_save_CFLAGS=$CFLAGS
  12537. lt_save_LD=$LD
  12538. lt_save_GCC=$GCC
  12539. GCC=$GXX
  12540. lt_save_with_gnu_ld=$with_gnu_ld
  12541. lt_save_path_LD=$lt_cv_path_LD
  12542. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12543. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12544. else
  12545. $as_unset lt_cv_prog_gnu_ld
  12546. fi
  12547. if test -n "${lt_cv_path_LDCXX+set}"; then
  12548. lt_cv_path_LD=$lt_cv_path_LDCXX
  12549. else
  12550. $as_unset lt_cv_path_LD
  12551. fi
  12552. test -z "${LDCXX+set}" || LD=$LDCXX
  12553. CC=${CXX-"c++"}
  12554. CFLAGS=$CXXFLAGS
  12555. compiler=$CC
  12556. compiler_CXX=$CC
  12557. func_cc_basename $compiler
  12558. cc_basename=$func_cc_basename_result
  12559. if test -n "$compiler"; then
  12560. # We don't want -fno-exception when compiling C++ code, so set the
  12561. # no_builtin_flag separately
  12562. if test yes = "$GXX"; then
  12563. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12564. else
  12565. lt_prog_compiler_no_builtin_flag_CXX=
  12566. fi
  12567. if test yes = "$GXX"; then
  12568. # Set up default GNU C++ configuration
  12569. # Check whether --with-gnu-ld was given.
  12570. if test ${with_gnu_ld+y}
  12571. then :
  12572. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12573. else $as_nop
  12574. with_gnu_ld=no
  12575. fi
  12576. ac_prog=ld
  12577. if test yes = "$GCC"; then
  12578. # Check if gcc -print-prog-name=ld gives a path.
  12579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12580. printf %s "checking for ld used by $CC... " >&6; }
  12581. case $host in
  12582. *-*-mingw*)
  12583. # gcc leaves a trailing carriage return, which upsets mingw
  12584. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12585. *)
  12586. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12587. esac
  12588. case $ac_prog in
  12589. # Accept absolute paths.
  12590. [\\/]* | ?:[\\/]*)
  12591. re_direlt='/[^/][^/]*/\.\./'
  12592. # Canonicalize the pathname of ld
  12593. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12594. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12595. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12596. done
  12597. test -z "$LD" && LD=$ac_prog
  12598. ;;
  12599. "")
  12600. # If it fails, then pretend we aren't using GCC.
  12601. ac_prog=ld
  12602. ;;
  12603. *)
  12604. # If it is relative, then search for the first ld in PATH.
  12605. with_gnu_ld=unknown
  12606. ;;
  12607. esac
  12608. elif test yes = "$with_gnu_ld"; then
  12609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12610. printf %s "checking for GNU ld... " >&6; }
  12611. else
  12612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12613. printf %s "checking for non-GNU ld... " >&6; }
  12614. fi
  12615. if test ${lt_cv_path_LD+y}
  12616. then :
  12617. printf %s "(cached) " >&6
  12618. else $as_nop
  12619. if test -z "$LD"; then
  12620. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12621. for ac_dir in $PATH; do
  12622. IFS=$lt_save_ifs
  12623. test -z "$ac_dir" && ac_dir=.
  12624. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12625. lt_cv_path_LD=$ac_dir/$ac_prog
  12626. # Check to see if the program is GNU ld. I'd rather use --version,
  12627. # but apparently some variants of GNU ld only accept -v.
  12628. # Break only if it was the GNU/non-GNU ld that we prefer.
  12629. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12630. *GNU* | *'with BFD'*)
  12631. test no != "$with_gnu_ld" && break
  12632. ;;
  12633. *)
  12634. test yes != "$with_gnu_ld" && break
  12635. ;;
  12636. esac
  12637. fi
  12638. done
  12639. IFS=$lt_save_ifs
  12640. else
  12641. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12642. fi
  12643. fi
  12644. LD=$lt_cv_path_LD
  12645. if test -n "$LD"; then
  12646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12647. printf "%s\n" "$LD" >&6; }
  12648. else
  12649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12650. printf "%s\n" "no" >&6; }
  12651. fi
  12652. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12654. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12655. if test ${lt_cv_prog_gnu_ld+y}
  12656. then :
  12657. printf %s "(cached) " >&6
  12658. else $as_nop
  12659. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12660. case `$LD -v 2>&1 </dev/null` in
  12661. *GNU* | *'with BFD'*)
  12662. lt_cv_prog_gnu_ld=yes
  12663. ;;
  12664. *)
  12665. lt_cv_prog_gnu_ld=no
  12666. ;;
  12667. esac
  12668. fi
  12669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12670. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12671. with_gnu_ld=$lt_cv_prog_gnu_ld
  12672. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12673. # archiving commands below assume that GNU ld is being used.
  12674. if test yes = "$with_gnu_ld"; then
  12675. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12676. 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'
  12677. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12678. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12679. # If archive_cmds runs LD, not CC, wlarc should be empty
  12680. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12681. # investigate it a little bit more. (MM)
  12682. wlarc='$wl'
  12683. # ancient GNU ld didn't support --whole-archive et. al.
  12684. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12685. $GREP 'no-whole-archive' > /dev/null; then
  12686. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12687. else
  12688. whole_archive_flag_spec_CXX=
  12689. fi
  12690. else
  12691. with_gnu_ld=no
  12692. wlarc=
  12693. # A generic and very simple default shared library creation
  12694. # command for GNU C++ for the case where it uses the native
  12695. # linker, instead of GNU ld. If possible, this setting should
  12696. # overridden to take advantage of the native linker features on
  12697. # the platform it is being used on.
  12698. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12699. fi
  12700. # Commands to make compiler produce verbose output that lists
  12701. # what "hidden" libraries, object files and flags are used when
  12702. # linking a shared library.
  12703. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12704. else
  12705. GXX=no
  12706. with_gnu_ld=no
  12707. wlarc=
  12708. fi
  12709. # PORTME: fill in a description of your system's C++ link characteristics
  12710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12711. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12712. ld_shlibs_CXX=yes
  12713. case $host_os in
  12714. aix3*)
  12715. # FIXME: insert proper C++ library support
  12716. ld_shlibs_CXX=no
  12717. ;;
  12718. aix[4-9]*)
  12719. if test ia64 = "$host_cpu"; then
  12720. # On IA64, the linker does run time linking by default, so we don't
  12721. # have to do anything special.
  12722. aix_use_runtimelinking=no
  12723. exp_sym_flag='-Bexport'
  12724. no_entry_flag=
  12725. else
  12726. aix_use_runtimelinking=no
  12727. # Test if we are trying to use run time linking or normal
  12728. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12729. # have runtime linking enabled, and use it for executables.
  12730. # For shared libraries, we enable/disable runtime linking
  12731. # depending on the kind of the shared library created -
  12732. # when "with_aix_soname,aix_use_runtimelinking" is:
  12733. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12734. # "aix,yes" lib.so shared, rtl:yes, for executables
  12735. # lib.a static archive
  12736. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12737. # lib.a(lib.so.V) shared, rtl:no, for executables
  12738. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12739. # lib.a(lib.so.V) shared, rtl:no
  12740. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12741. # lib.a static archive
  12742. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12743. for ld_flag in $LDFLAGS; do
  12744. case $ld_flag in
  12745. *-brtl*)
  12746. aix_use_runtimelinking=yes
  12747. break
  12748. ;;
  12749. esac
  12750. done
  12751. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12752. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12753. # so we don't have lib.a shared libs to link our executables.
  12754. # We have to force runtime linking in this case.
  12755. aix_use_runtimelinking=yes
  12756. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12757. fi
  12758. ;;
  12759. esac
  12760. exp_sym_flag='-bexport'
  12761. no_entry_flag='-bnoentry'
  12762. fi
  12763. # When large executables or shared objects are built, AIX ld can
  12764. # have problems creating the table of contents. If linking a library
  12765. # or program results in "error TOC overflow" add -mminimal-toc to
  12766. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12767. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12768. archive_cmds_CXX=''
  12769. hardcode_direct_CXX=yes
  12770. hardcode_direct_absolute_CXX=yes
  12771. hardcode_libdir_separator_CXX=':'
  12772. link_all_deplibs_CXX=yes
  12773. file_list_spec_CXX='$wl-f,'
  12774. case $with_aix_soname,$aix_use_runtimelinking in
  12775. aix,*) ;; # no import file
  12776. svr4,* | *,yes) # use import file
  12777. # The Import File defines what to hardcode.
  12778. hardcode_direct_CXX=no
  12779. hardcode_direct_absolute_CXX=no
  12780. ;;
  12781. esac
  12782. if test yes = "$GXX"; then
  12783. case $host_os in aix4.[012]|aix4.[012].*)
  12784. # We only want to do this on AIX 4.2 and lower, the check
  12785. # below for broken collect2 doesn't work under 4.3+
  12786. collect2name=`$CC -print-prog-name=collect2`
  12787. if test -f "$collect2name" &&
  12788. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12789. then
  12790. # We have reworked collect2
  12791. :
  12792. else
  12793. # We have old collect2
  12794. hardcode_direct_CXX=unsupported
  12795. # It fails to find uninstalled libraries when the uninstalled
  12796. # path is not listed in the libpath. Setting hardcode_minus_L
  12797. # to unsupported forces relinking
  12798. hardcode_minus_L_CXX=yes
  12799. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12800. hardcode_libdir_separator_CXX=
  12801. fi
  12802. esac
  12803. shared_flag='-shared'
  12804. if test yes = "$aix_use_runtimelinking"; then
  12805. shared_flag=$shared_flag' $wl-G'
  12806. fi
  12807. # Need to ensure runtime linking is disabled for the traditional
  12808. # shared library, or the linker may eventually find shared libraries
  12809. # /with/ Import File - we do not want to mix them.
  12810. shared_flag_aix='-shared'
  12811. shared_flag_svr4='-shared $wl-G'
  12812. else
  12813. # not using gcc
  12814. if test ia64 = "$host_cpu"; then
  12815. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12816. # chokes on -Wl,-G. The following line is correct:
  12817. shared_flag='-G'
  12818. else
  12819. if test yes = "$aix_use_runtimelinking"; then
  12820. shared_flag='$wl-G'
  12821. else
  12822. shared_flag='$wl-bM:SRE'
  12823. fi
  12824. shared_flag_aix='$wl-bM:SRE'
  12825. shared_flag_svr4='$wl-G'
  12826. fi
  12827. fi
  12828. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12829. # It seems that -bexpall does not export symbols beginning with
  12830. # underscore (_), so it is better to generate a list of symbols to
  12831. # export.
  12832. always_export_symbols_CXX=yes
  12833. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12834. # Warning - without using the other runtime loading flags (-brtl),
  12835. # -berok will link without error, but may produce a broken library.
  12836. # The "-G" linker flag allows undefined symbols.
  12837. no_undefined_flag_CXX='-bernotok'
  12838. # Determine the default libpath from the value encoded in an empty
  12839. # executable.
  12840. if test set = "${lt_cv_aix_libpath+set}"; then
  12841. aix_libpath=$lt_cv_aix_libpath
  12842. else
  12843. if test ${lt_cv_aix_libpath__CXX+y}
  12844. then :
  12845. printf %s "(cached) " >&6
  12846. else $as_nop
  12847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12848. /* end confdefs.h. */
  12849. int
  12850. main (void)
  12851. {
  12852. ;
  12853. return 0;
  12854. }
  12855. _ACEOF
  12856. if ac_fn_cxx_try_link "$LINENO"
  12857. then :
  12858. lt_aix_libpath_sed='
  12859. /Import File Strings/,/^$/ {
  12860. /^0/ {
  12861. s/^0 *\([^ ]*\) *$/\1/
  12862. p
  12863. }
  12864. }'
  12865. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12866. # Check for a 64-bit object if we didn't find anything.
  12867. if test -z "$lt_cv_aix_libpath__CXX"; then
  12868. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12869. fi
  12870. fi
  12871. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12872. conftest$ac_exeext conftest.$ac_ext
  12873. if test -z "$lt_cv_aix_libpath__CXX"; then
  12874. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12875. fi
  12876. fi
  12877. aix_libpath=$lt_cv_aix_libpath__CXX
  12878. fi
  12879. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12880. 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
  12881. else
  12882. if test ia64 = "$host_cpu"; then
  12883. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12884. allow_undefined_flag_CXX="-z nodefs"
  12885. 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"
  12886. else
  12887. # Determine the default libpath from the value encoded in an
  12888. # empty executable.
  12889. if test set = "${lt_cv_aix_libpath+set}"; then
  12890. aix_libpath=$lt_cv_aix_libpath
  12891. else
  12892. if test ${lt_cv_aix_libpath__CXX+y}
  12893. then :
  12894. printf %s "(cached) " >&6
  12895. else $as_nop
  12896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12897. /* end confdefs.h. */
  12898. int
  12899. main (void)
  12900. {
  12901. ;
  12902. return 0;
  12903. }
  12904. _ACEOF
  12905. if ac_fn_cxx_try_link "$LINENO"
  12906. then :
  12907. lt_aix_libpath_sed='
  12908. /Import File Strings/,/^$/ {
  12909. /^0/ {
  12910. s/^0 *\([^ ]*\) *$/\1/
  12911. p
  12912. }
  12913. }'
  12914. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12915. # Check for a 64-bit object if we didn't find anything.
  12916. if test -z "$lt_cv_aix_libpath__CXX"; then
  12917. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12918. fi
  12919. fi
  12920. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12921. conftest$ac_exeext conftest.$ac_ext
  12922. if test -z "$lt_cv_aix_libpath__CXX"; then
  12923. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12924. fi
  12925. fi
  12926. aix_libpath=$lt_cv_aix_libpath__CXX
  12927. fi
  12928. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12929. # Warning - without using the other run time loading flags,
  12930. # -berok will link without error, but may produce a broken library.
  12931. no_undefined_flag_CXX=' $wl-bernotok'
  12932. allow_undefined_flag_CXX=' $wl-berok'
  12933. if test yes = "$with_gnu_ld"; then
  12934. # We only use this code for GNU lds that support --whole-archive.
  12935. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12936. else
  12937. # Exported symbols can be pulled into shared objects from archives
  12938. whole_archive_flag_spec_CXX='$convenience'
  12939. fi
  12940. archive_cmds_need_lc_CXX=yes
  12941. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12942. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12943. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12944. if test svr4 != "$with_aix_soname"; then
  12945. # This is similar to how AIX traditionally builds its shared
  12946. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12947. 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'
  12948. fi
  12949. if test aix != "$with_aix_soname"; then
  12950. 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'
  12951. else
  12952. # used by -dlpreopen to get the symbols
  12953. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12954. fi
  12955. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12956. fi
  12957. fi
  12958. ;;
  12959. beos*)
  12960. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12961. allow_undefined_flag_CXX=unsupported
  12962. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12963. # support --undefined. This deserves some investigation. FIXME
  12964. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12965. else
  12966. ld_shlibs_CXX=no
  12967. fi
  12968. ;;
  12969. chorus*)
  12970. case $cc_basename in
  12971. *)
  12972. # FIXME: insert proper C++ library support
  12973. ld_shlibs_CXX=no
  12974. ;;
  12975. esac
  12976. ;;
  12977. cygwin* | mingw* | pw32* | cegcc*)
  12978. case $GXX,$cc_basename in
  12979. ,cl* | no,cl*)
  12980. # Native MSVC
  12981. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12982. # no search path for DLLs.
  12983. hardcode_libdir_flag_spec_CXX=' '
  12984. allow_undefined_flag_CXX=unsupported
  12985. always_export_symbols_CXX=yes
  12986. file_list_spec_CXX='@'
  12987. # Tell ltmain to make .lib files, not .a files.
  12988. libext=lib
  12989. # Tell ltmain to make .dll files, not .so files.
  12990. shrext_cmds=.dll
  12991. # FIXME: Setting linknames here is a bad hack.
  12992. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12993. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12994. cp "$export_symbols" "$output_objdir/$soname.def";
  12995. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12996. else
  12997. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12998. fi~
  12999. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13000. linknames='
  13001. # The linker will not automatically build a static lib if we build a DLL.
  13002. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13003. enable_shared_with_static_runtimes_CXX=yes
  13004. # Don't use ranlib
  13005. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13006. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13007. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13008. case $lt_outputfile in
  13009. *.exe|*.EXE) ;;
  13010. *)
  13011. lt_outputfile=$lt_outputfile.exe
  13012. lt_tool_outputfile=$lt_tool_outputfile.exe
  13013. ;;
  13014. esac~
  13015. func_to_tool_file "$lt_outputfile"~
  13016. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13017. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13018. $RM "$lt_outputfile.manifest";
  13019. fi'
  13020. ;;
  13021. *)
  13022. # g++
  13023. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13024. # as there is no search path for DLLs.
  13025. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13026. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13027. allow_undefined_flag_CXX=unsupported
  13028. always_export_symbols_CXX=no
  13029. enable_shared_with_static_runtimes_CXX=yes
  13030. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13031. 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'
  13032. # If the export-symbols file already is a .def file, use it as
  13033. # is; otherwise, prepend EXPORTS...
  13034. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13035. cp $export_symbols $output_objdir/$soname.def;
  13036. else
  13037. echo EXPORTS > $output_objdir/$soname.def;
  13038. cat $export_symbols >> $output_objdir/$soname.def;
  13039. fi~
  13040. $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'
  13041. else
  13042. ld_shlibs_CXX=no
  13043. fi
  13044. ;;
  13045. esac
  13046. ;;
  13047. darwin* | rhapsody*)
  13048. archive_cmds_need_lc_CXX=no
  13049. hardcode_direct_CXX=no
  13050. hardcode_automatic_CXX=yes
  13051. hardcode_shlibpath_var_CXX=unsupported
  13052. if test yes = "$lt_cv_ld_force_load"; then
  13053. 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\"`'
  13054. else
  13055. whole_archive_flag_spec_CXX=''
  13056. fi
  13057. link_all_deplibs_CXX=yes
  13058. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13059. case $cc_basename in
  13060. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13061. *) _lt_dar_can_shared=$GCC ;;
  13062. esac
  13063. if test yes = "$_lt_dar_can_shared"; then
  13064. output_verbose_link_cmd=func_echo_all
  13065. 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"
  13066. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13067. 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"
  13068. 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"
  13069. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13070. 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"
  13071. 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"
  13072. fi
  13073. else
  13074. ld_shlibs_CXX=no
  13075. fi
  13076. ;;
  13077. os2*)
  13078. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13079. hardcode_minus_L_CXX=yes
  13080. allow_undefined_flag_CXX=unsupported
  13081. shrext_cmds=.dll
  13082. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13083. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13084. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13085. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13086. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13087. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13088. emximp -o $lib $output_objdir/$libname.def'
  13089. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13090. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13091. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13092. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13093. prefix_cmds="$SED"~
  13094. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13095. prefix_cmds="$prefix_cmds -e 1d";
  13096. fi~
  13097. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13098. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13099. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13100. emximp -o $lib $output_objdir/$libname.def'
  13101. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13102. enable_shared_with_static_runtimes_CXX=yes
  13103. file_list_spec_CXX='@'
  13104. ;;
  13105. dgux*)
  13106. case $cc_basename in
  13107. ec++*)
  13108. # FIXME: insert proper C++ library support
  13109. ld_shlibs_CXX=no
  13110. ;;
  13111. ghcx*)
  13112. # Green Hills C++ Compiler
  13113. # FIXME: insert proper C++ library support
  13114. ld_shlibs_CXX=no
  13115. ;;
  13116. *)
  13117. # FIXME: insert proper C++ library support
  13118. ld_shlibs_CXX=no
  13119. ;;
  13120. esac
  13121. ;;
  13122. freebsd2.*)
  13123. # C++ shared libraries reported to be fairly broken before
  13124. # switch to ELF
  13125. ld_shlibs_CXX=no
  13126. ;;
  13127. freebsd-elf*)
  13128. archive_cmds_need_lc_CXX=no
  13129. ;;
  13130. freebsd* | dragonfly* | midnightbsd*)
  13131. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13132. # conventions
  13133. ld_shlibs_CXX=yes
  13134. ;;
  13135. haiku*)
  13136. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13137. link_all_deplibs_CXX=yes
  13138. ;;
  13139. hpux9*)
  13140. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13141. hardcode_libdir_separator_CXX=:
  13142. export_dynamic_flag_spec_CXX='$wl-E'
  13143. hardcode_direct_CXX=yes
  13144. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13145. # but as the default
  13146. # location of the library.
  13147. case $cc_basename in
  13148. CC*)
  13149. # FIXME: insert proper C++ library support
  13150. ld_shlibs_CXX=no
  13151. ;;
  13152. aCC*)
  13153. 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'
  13154. # Commands to make compiler produce verbose output that lists
  13155. # what "hidden" libraries, object files and flags are used when
  13156. # linking a shared library.
  13157. #
  13158. # There doesn't appear to be a way to prevent this compiler from
  13159. # explicitly linking system object files so we need to strip them
  13160. # from the output so that they don't get included in the library
  13161. # dependencies.
  13162. 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"'
  13163. ;;
  13164. *)
  13165. if test yes = "$GXX"; then
  13166. 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'
  13167. else
  13168. # FIXME: insert proper C++ library support
  13169. ld_shlibs_CXX=no
  13170. fi
  13171. ;;
  13172. esac
  13173. ;;
  13174. hpux10*|hpux11*)
  13175. if test no = "$with_gnu_ld"; then
  13176. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13177. hardcode_libdir_separator_CXX=:
  13178. case $host_cpu in
  13179. hppa*64*|ia64*)
  13180. ;;
  13181. *)
  13182. export_dynamic_flag_spec_CXX='$wl-E'
  13183. ;;
  13184. esac
  13185. fi
  13186. case $host_cpu in
  13187. hppa*64*|ia64*)
  13188. hardcode_direct_CXX=no
  13189. hardcode_shlibpath_var_CXX=no
  13190. ;;
  13191. *)
  13192. hardcode_direct_CXX=yes
  13193. hardcode_direct_absolute_CXX=yes
  13194. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13195. # but as the default
  13196. # location of the library.
  13197. ;;
  13198. esac
  13199. case $cc_basename in
  13200. CC*)
  13201. # FIXME: insert proper C++ library support
  13202. ld_shlibs_CXX=no
  13203. ;;
  13204. aCC*)
  13205. case $host_cpu in
  13206. hppa*64*)
  13207. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13208. ;;
  13209. ia64*)
  13210. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13211. ;;
  13212. *)
  13213. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13214. ;;
  13215. esac
  13216. # Commands to make compiler produce verbose output that lists
  13217. # what "hidden" libraries, object files and flags are used when
  13218. # linking a shared library.
  13219. #
  13220. # There doesn't appear to be a way to prevent this compiler from
  13221. # explicitly linking system object files so we need to strip them
  13222. # from the output so that they don't get included in the library
  13223. # dependencies.
  13224. 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"'
  13225. ;;
  13226. *)
  13227. if test yes = "$GXX"; then
  13228. if test no = "$with_gnu_ld"; then
  13229. case $host_cpu in
  13230. hppa*64*)
  13231. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13232. ;;
  13233. ia64*)
  13234. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13235. ;;
  13236. *)
  13237. 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'
  13238. ;;
  13239. esac
  13240. fi
  13241. else
  13242. # FIXME: insert proper C++ library support
  13243. ld_shlibs_CXX=no
  13244. fi
  13245. ;;
  13246. esac
  13247. ;;
  13248. interix[3-9]*)
  13249. hardcode_direct_CXX=no
  13250. hardcode_shlibpath_var_CXX=no
  13251. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13252. export_dynamic_flag_spec_CXX='$wl-E'
  13253. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13254. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13255. # default) and relocated if they conflict, which is a slow very memory
  13256. # consuming and fragmenting process. To avoid this, we pick a random,
  13257. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13258. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13259. 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'
  13260. 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'
  13261. ;;
  13262. irix5* | irix6*)
  13263. case $cc_basename in
  13264. CC*)
  13265. # SGI C++
  13266. 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'
  13267. # Archives containing C++ object files must be created using
  13268. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13269. # necessary to make sure instantiated templates are included
  13270. # in the archive.
  13271. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13272. ;;
  13273. *)
  13274. if test yes = "$GXX"; then
  13275. if test no = "$with_gnu_ld"; then
  13276. 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'
  13277. else
  13278. 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'
  13279. fi
  13280. fi
  13281. link_all_deplibs_CXX=yes
  13282. ;;
  13283. esac
  13284. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13285. hardcode_libdir_separator_CXX=:
  13286. inherit_rpath_CXX=yes
  13287. ;;
  13288. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13289. case $cc_basename in
  13290. KCC*)
  13291. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13292. # KCC will only create a shared library if the output file
  13293. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13294. # to its proper name (with version) after linking.
  13295. 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'
  13296. 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'
  13297. # Commands to make compiler produce verbose output that lists
  13298. # what "hidden" libraries, object files and flags are used when
  13299. # linking a shared library.
  13300. #
  13301. # There doesn't appear to be a way to prevent this compiler from
  13302. # explicitly linking system object files so we need to strip them
  13303. # from the output so that they don't get included in the library
  13304. # dependencies.
  13305. 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"'
  13306. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13307. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13308. # Archives containing C++ object files must be created using
  13309. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13310. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13311. ;;
  13312. icpc* | ecpc* )
  13313. # Intel C++
  13314. with_gnu_ld=yes
  13315. # version 8.0 and above of icpc choke on multiply defined symbols
  13316. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13317. # earlier do not add the objects themselves.
  13318. case `$CC -V 2>&1` in
  13319. *"Version 7."*)
  13320. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13321. 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'
  13322. ;;
  13323. *) # Version 8.0 or newer
  13324. tmp_idyn=
  13325. case $host_cpu in
  13326. ia64*) tmp_idyn=' -i_dynamic';;
  13327. esac
  13328. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13329. 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'
  13330. ;;
  13331. esac
  13332. archive_cmds_need_lc_CXX=no
  13333. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13334. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13335. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13336. ;;
  13337. pgCC* | pgcpp*)
  13338. # Portland Group C++ compiler
  13339. case `$CC -V` in
  13340. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13341. prelink_cmds_CXX='tpldir=Template.dir~
  13342. rm -rf $tpldir~
  13343. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13344. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13345. old_archive_cmds_CXX='tpldir=Template.dir~
  13346. rm -rf $tpldir~
  13347. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13348. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13349. $RANLIB $oldlib'
  13350. archive_cmds_CXX='tpldir=Template.dir~
  13351. rm -rf $tpldir~
  13352. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13353. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13354. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13355. rm -rf $tpldir~
  13356. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13357. $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'
  13358. ;;
  13359. *) # Version 6 and above use weak symbols
  13360. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13361. 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'
  13362. ;;
  13363. esac
  13364. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13365. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13366. 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'
  13367. ;;
  13368. cxx*)
  13369. # Compaq C++
  13370. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13371. 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'
  13372. runpath_var=LD_RUN_PATH
  13373. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13374. hardcode_libdir_separator_CXX=:
  13375. # Commands to make compiler produce verbose output that lists
  13376. # what "hidden" libraries, object files and flags are used when
  13377. # linking a shared library.
  13378. #
  13379. # There doesn't appear to be a way to prevent this compiler from
  13380. # explicitly linking system object files so we need to strip them
  13381. # from the output so that they don't get included in the library
  13382. # dependencies.
  13383. 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'
  13384. ;;
  13385. xl* | mpixl* | bgxl*)
  13386. # IBM XL 8.0 on PPC, with GNU ld
  13387. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13388. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13389. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13390. if test yes = "$supports_anon_versioning"; then
  13391. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13392. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13393. echo "local: *; };" >> $output_objdir/$libname.ver~
  13394. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13395. fi
  13396. ;;
  13397. *)
  13398. case `$CC -V 2>&1 | sed 5q` in
  13399. *Sun\ C*)
  13400. # Sun C++ 5.9
  13401. no_undefined_flag_CXX=' -zdefs'
  13402. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13403. 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'
  13404. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13405. 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'
  13406. compiler_needs_object_CXX=yes
  13407. # Not sure whether something based on
  13408. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13409. # would be better.
  13410. output_verbose_link_cmd='func_echo_all'
  13411. # Archives containing C++ object files must be created using
  13412. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13413. # necessary to make sure instantiated templates are included
  13414. # in the archive.
  13415. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13416. ;;
  13417. esac
  13418. ;;
  13419. esac
  13420. ;;
  13421. lynxos*)
  13422. # FIXME: insert proper C++ library support
  13423. ld_shlibs_CXX=no
  13424. ;;
  13425. m88k*)
  13426. # FIXME: insert proper C++ library support
  13427. ld_shlibs_CXX=no
  13428. ;;
  13429. mvs*)
  13430. case $cc_basename in
  13431. cxx*)
  13432. # FIXME: insert proper C++ library support
  13433. ld_shlibs_CXX=no
  13434. ;;
  13435. *)
  13436. # FIXME: insert proper C++ library support
  13437. ld_shlibs_CXX=no
  13438. ;;
  13439. esac
  13440. ;;
  13441. netbsd*)
  13442. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13443. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13444. wlarc=
  13445. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13446. hardcode_direct_CXX=yes
  13447. hardcode_shlibpath_var_CXX=no
  13448. fi
  13449. # Workaround some broken pre-1.5 toolchains
  13450. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13451. ;;
  13452. *nto* | *qnx*)
  13453. ld_shlibs_CXX=yes
  13454. ;;
  13455. openbsd* | bitrig*)
  13456. if test -f /usr/libexec/ld.so; then
  13457. hardcode_direct_CXX=yes
  13458. hardcode_shlibpath_var_CXX=no
  13459. hardcode_direct_absolute_CXX=yes
  13460. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13461. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13462. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13463. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13464. export_dynamic_flag_spec_CXX='$wl-E'
  13465. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13466. fi
  13467. output_verbose_link_cmd=func_echo_all
  13468. else
  13469. ld_shlibs_CXX=no
  13470. fi
  13471. ;;
  13472. osf3* | osf4* | osf5*)
  13473. case $cc_basename in
  13474. KCC*)
  13475. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13476. # KCC will only create a shared library if the output file
  13477. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13478. # to its proper name (with version) after linking.
  13479. 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'
  13480. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13481. hardcode_libdir_separator_CXX=:
  13482. # Archives containing C++ object files must be created using
  13483. # the KAI C++ compiler.
  13484. case $host in
  13485. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13486. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13487. esac
  13488. ;;
  13489. RCC*)
  13490. # Rational C++ 2.4.1
  13491. # FIXME: insert proper C++ library support
  13492. ld_shlibs_CXX=no
  13493. ;;
  13494. cxx*)
  13495. case $host in
  13496. osf3*)
  13497. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13498. 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'
  13499. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13500. ;;
  13501. *)
  13502. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13503. 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'
  13504. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13505. echo "-hidden">> $lib.exp~
  13506. $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~
  13507. $RM $lib.exp'
  13508. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13509. ;;
  13510. esac
  13511. hardcode_libdir_separator_CXX=:
  13512. # Commands to make compiler produce verbose output that lists
  13513. # what "hidden" libraries, object files and flags are used when
  13514. # linking a shared library.
  13515. #
  13516. # There doesn't appear to be a way to prevent this compiler from
  13517. # explicitly linking system object files so we need to strip them
  13518. # from the output so that they don't get included in the library
  13519. # dependencies.
  13520. 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"'
  13521. ;;
  13522. *)
  13523. if test yes,no = "$GXX,$with_gnu_ld"; then
  13524. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13525. case $host in
  13526. osf3*)
  13527. 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'
  13528. ;;
  13529. *)
  13530. 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'
  13531. ;;
  13532. esac
  13533. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13534. hardcode_libdir_separator_CXX=:
  13535. # Commands to make compiler produce verbose output that lists
  13536. # what "hidden" libraries, object files and flags are used when
  13537. # linking a shared library.
  13538. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13539. else
  13540. # FIXME: insert proper C++ library support
  13541. ld_shlibs_CXX=no
  13542. fi
  13543. ;;
  13544. esac
  13545. ;;
  13546. psos*)
  13547. # FIXME: insert proper C++ library support
  13548. ld_shlibs_CXX=no
  13549. ;;
  13550. sunos4*)
  13551. case $cc_basename in
  13552. CC*)
  13553. # Sun C++ 4.x
  13554. # FIXME: insert proper C++ library support
  13555. ld_shlibs_CXX=no
  13556. ;;
  13557. lcc*)
  13558. # Lucid
  13559. # FIXME: insert proper C++ library support
  13560. ld_shlibs_CXX=no
  13561. ;;
  13562. *)
  13563. # FIXME: insert proper C++ library support
  13564. ld_shlibs_CXX=no
  13565. ;;
  13566. esac
  13567. ;;
  13568. solaris*)
  13569. case $cc_basename in
  13570. CC* | sunCC*)
  13571. # Sun C++ 4.2, 5.x and Centerline C++
  13572. archive_cmds_need_lc_CXX=yes
  13573. no_undefined_flag_CXX=' -zdefs'
  13574. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13575. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13576. $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'
  13577. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13578. hardcode_shlibpath_var_CXX=no
  13579. case $host_os in
  13580. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13581. *)
  13582. # The compiler driver will combine and reorder linker options,
  13583. # but understands '-z linker_flag'.
  13584. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13585. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13586. ;;
  13587. esac
  13588. link_all_deplibs_CXX=yes
  13589. output_verbose_link_cmd='func_echo_all'
  13590. # Archives containing C++ object files must be created using
  13591. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13592. # necessary to make sure instantiated templates are included
  13593. # in the archive.
  13594. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13595. ;;
  13596. gcx*)
  13597. # Green Hills C++ Compiler
  13598. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13599. # The C++ compiler must be used to create the archive.
  13600. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13601. ;;
  13602. *)
  13603. # GNU C++ compiler with Solaris linker
  13604. if test yes,no = "$GXX,$with_gnu_ld"; then
  13605. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13606. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13607. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13608. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13609. $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'
  13610. # Commands to make compiler produce verbose output that lists
  13611. # what "hidden" libraries, object files and flags are used when
  13612. # linking a shared library.
  13613. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13614. else
  13615. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13616. # platform.
  13617. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13618. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13619. $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'
  13620. # Commands to make compiler produce verbose output that lists
  13621. # what "hidden" libraries, object files and flags are used when
  13622. # linking a shared library.
  13623. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13624. fi
  13625. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13626. case $host_os in
  13627. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13628. *)
  13629. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13630. ;;
  13631. esac
  13632. fi
  13633. ;;
  13634. esac
  13635. ;;
  13636. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13637. no_undefined_flag_CXX='$wl-z,text'
  13638. archive_cmds_need_lc_CXX=no
  13639. hardcode_shlibpath_var_CXX=no
  13640. runpath_var='LD_RUN_PATH'
  13641. case $cc_basename in
  13642. CC*)
  13643. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13644. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13645. ;;
  13646. *)
  13647. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13648. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13649. ;;
  13650. esac
  13651. ;;
  13652. sysv5* | sco3.2v5* | sco5v6*)
  13653. # Note: We CANNOT use -z defs as we might desire, because we do not
  13654. # link with -lc, and that would cause any symbols used from libc to
  13655. # always be unresolved, which means just about no library would
  13656. # ever link correctly. If we're not using GNU ld we use -z text
  13657. # though, which does catch some bad symbols but isn't as heavy-handed
  13658. # as -z defs.
  13659. no_undefined_flag_CXX='$wl-z,text'
  13660. allow_undefined_flag_CXX='$wl-z,nodefs'
  13661. archive_cmds_need_lc_CXX=no
  13662. hardcode_shlibpath_var_CXX=no
  13663. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13664. hardcode_libdir_separator_CXX=':'
  13665. link_all_deplibs_CXX=yes
  13666. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13667. runpath_var='LD_RUN_PATH'
  13668. case $cc_basename in
  13669. CC*)
  13670. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13671. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13672. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13673. '"$old_archive_cmds_CXX"
  13674. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13675. '"$reload_cmds_CXX"
  13676. ;;
  13677. *)
  13678. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13679. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13680. ;;
  13681. esac
  13682. ;;
  13683. tandem*)
  13684. case $cc_basename in
  13685. NCC*)
  13686. # NonStop-UX NCC 3.20
  13687. # FIXME: insert proper C++ library support
  13688. ld_shlibs_CXX=no
  13689. ;;
  13690. *)
  13691. # FIXME: insert proper C++ library support
  13692. ld_shlibs_CXX=no
  13693. ;;
  13694. esac
  13695. ;;
  13696. vxworks*)
  13697. # FIXME: insert proper C++ library support
  13698. ld_shlibs_CXX=no
  13699. ;;
  13700. *)
  13701. # FIXME: insert proper C++ library support
  13702. ld_shlibs_CXX=no
  13703. ;;
  13704. esac
  13705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13706. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13707. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13708. GCC_CXX=$GXX
  13709. LD_CXX=$LD
  13710. ## CAVEAT EMPTOR:
  13711. ## There is no encapsulation within the following macros, do not change
  13712. ## the running order or otherwise move them around unless you know exactly
  13713. ## what you are doing...
  13714. # Dependencies to place before and after the object being linked:
  13715. predep_objects_CXX=
  13716. postdep_objects_CXX=
  13717. predeps_CXX=
  13718. postdeps_CXX=
  13719. compiler_lib_search_path_CXX=
  13720. cat > conftest.$ac_ext <<_LT_EOF
  13721. class Foo
  13722. {
  13723. public:
  13724. Foo (void) { a = 0; }
  13725. private:
  13726. int a;
  13727. };
  13728. _LT_EOF
  13729. _lt_libdeps_save_CFLAGS=$CFLAGS
  13730. case "$CC $CFLAGS " in #(
  13731. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13732. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13733. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13734. esac
  13735. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13736. (eval $ac_compile) 2>&5
  13737. ac_status=$?
  13738. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13739. test $ac_status = 0; }; then
  13740. # Parse the compiler output and extract the necessary
  13741. # objects, libraries and library flags.
  13742. # Sentinel used to keep track of whether or not we are before
  13743. # the conftest object file.
  13744. pre_test_object_deps_done=no
  13745. for p in `eval "$output_verbose_link_cmd"`; do
  13746. case $prev$p in
  13747. -L* | -R* | -l*)
  13748. # Some compilers place space between "-{L,R}" and the path.
  13749. # Remove the space.
  13750. if test x-L = "x$p" ||
  13751. test x-R = "x$p" ||
  13752. test x-l = "x$p"; then
  13753. prev=$p
  13754. continue
  13755. fi
  13756. # Expand the sysroot to ease extracting the directories later.
  13757. if test -z "$prev"; then
  13758. case $p in
  13759. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13760. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13761. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13762. esac
  13763. fi
  13764. case $p in
  13765. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13766. esac
  13767. if test no = "$pre_test_object_deps_done"; then
  13768. case $prev in
  13769. -L | -R)
  13770. # Internal compiler library paths should come after those
  13771. # provided the user. The postdeps already come after the
  13772. # user supplied libs so there is no need to process them.
  13773. if test -z "$compiler_lib_search_path_CXX"; then
  13774. compiler_lib_search_path_CXX=$prev$p
  13775. else
  13776. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13777. fi
  13778. ;;
  13779. # The "-l" case would never come before the object being
  13780. # linked, so don't bother handling this case.
  13781. esac
  13782. else
  13783. if test -z "$postdeps_CXX"; then
  13784. postdeps_CXX=$prev$p
  13785. else
  13786. postdeps_CXX="${postdeps_CXX} $prev$p"
  13787. fi
  13788. fi
  13789. prev=
  13790. ;;
  13791. *.lto.$objext) ;; # Ignore GCC LTO objects
  13792. *.$objext)
  13793. # This assumes that the test object file only shows up
  13794. # once in the compiler output.
  13795. if test "$p" = "conftest.$objext"; then
  13796. pre_test_object_deps_done=yes
  13797. continue
  13798. fi
  13799. if test no = "$pre_test_object_deps_done"; then
  13800. if test -z "$predep_objects_CXX"; then
  13801. predep_objects_CXX=$p
  13802. else
  13803. predep_objects_CXX="$predep_objects_CXX $p"
  13804. fi
  13805. else
  13806. if test -z "$postdep_objects_CXX"; then
  13807. postdep_objects_CXX=$p
  13808. else
  13809. postdep_objects_CXX="$postdep_objects_CXX $p"
  13810. fi
  13811. fi
  13812. ;;
  13813. *) ;; # Ignore the rest.
  13814. esac
  13815. done
  13816. # Clean up.
  13817. rm -f a.out a.exe
  13818. else
  13819. echo "libtool.m4: error: problem compiling CXX test program"
  13820. fi
  13821. $RM -f confest.$objext
  13822. CFLAGS=$_lt_libdeps_save_CFLAGS
  13823. # PORTME: override above test on systems where it is broken
  13824. case $host_os in
  13825. interix[3-9]*)
  13826. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13827. # hack all around it, let's just trust "g++" to DTRT.
  13828. predep_objects_CXX=
  13829. postdep_objects_CXX=
  13830. postdeps_CXX=
  13831. ;;
  13832. esac
  13833. case " $postdeps_CXX " in
  13834. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13835. esac
  13836. compiler_lib_search_dirs_CXX=
  13837. if test -n "${compiler_lib_search_path_CXX}"; then
  13838. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13839. fi
  13840. lt_prog_compiler_wl_CXX=
  13841. lt_prog_compiler_pic_CXX=
  13842. lt_prog_compiler_static_CXX=
  13843. # C++ specific cases for pic, static, wl, etc.
  13844. if test yes = "$GXX"; then
  13845. lt_prog_compiler_wl_CXX='-Wl,'
  13846. lt_prog_compiler_static_CXX='-static'
  13847. case $host_os in
  13848. aix*)
  13849. # All AIX code is PIC.
  13850. if test ia64 = "$host_cpu"; then
  13851. # AIX 5 now supports IA64 processor
  13852. lt_prog_compiler_static_CXX='-Bstatic'
  13853. fi
  13854. lt_prog_compiler_pic_CXX='-fPIC'
  13855. ;;
  13856. amigaos*)
  13857. case $host_cpu in
  13858. powerpc)
  13859. # see comment about AmigaOS4 .so support
  13860. lt_prog_compiler_pic_CXX='-fPIC'
  13861. ;;
  13862. m68k)
  13863. # FIXME: we need at least 68020 code to build shared libraries, but
  13864. # adding the '-m68020' flag to GCC prevents building anything better,
  13865. # like '-m68040'.
  13866. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13867. ;;
  13868. esac
  13869. ;;
  13870. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13871. # PIC is the default for these OSes.
  13872. ;;
  13873. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13874. # This hack is so that the source file can tell whether it is being
  13875. # built for inclusion in a dll (and should export symbols for example).
  13876. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13877. # (--disable-auto-import) libraries
  13878. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13879. case $host_os in
  13880. os2*)
  13881. lt_prog_compiler_static_CXX='$wl-static'
  13882. ;;
  13883. esac
  13884. ;;
  13885. darwin* | rhapsody*)
  13886. # PIC is the default on this platform
  13887. # Common symbols not allowed in MH_DYLIB files
  13888. lt_prog_compiler_pic_CXX='-fno-common'
  13889. ;;
  13890. *djgpp*)
  13891. # DJGPP does not support shared libraries at all
  13892. lt_prog_compiler_pic_CXX=
  13893. ;;
  13894. haiku*)
  13895. # PIC is the default for Haiku.
  13896. # The "-static" flag exists, but is broken.
  13897. lt_prog_compiler_static_CXX=
  13898. ;;
  13899. interix[3-9]*)
  13900. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13901. # Instead, we relocate shared libraries at runtime.
  13902. ;;
  13903. sysv4*MP*)
  13904. if test -d /usr/nec; then
  13905. lt_prog_compiler_pic_CXX=-Kconform_pic
  13906. fi
  13907. ;;
  13908. hpux*)
  13909. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13910. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13911. # sets the default TLS model and affects inlining.
  13912. case $host_cpu in
  13913. hppa*64*)
  13914. ;;
  13915. *)
  13916. lt_prog_compiler_pic_CXX='-fPIC'
  13917. ;;
  13918. esac
  13919. ;;
  13920. *qnx* | *nto*)
  13921. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13922. # it will coredump.
  13923. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13924. ;;
  13925. *)
  13926. lt_prog_compiler_pic_CXX='-fPIC'
  13927. ;;
  13928. esac
  13929. else
  13930. case $host_os in
  13931. aix[4-9]*)
  13932. # All AIX code is PIC.
  13933. if test ia64 = "$host_cpu"; then
  13934. # AIX 5 now supports IA64 processor
  13935. lt_prog_compiler_static_CXX='-Bstatic'
  13936. else
  13937. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13938. fi
  13939. ;;
  13940. chorus*)
  13941. case $cc_basename in
  13942. cxch68*)
  13943. # Green Hills C++ Compiler
  13944. # _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"
  13945. ;;
  13946. esac
  13947. ;;
  13948. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13949. # This hack is so that the source file can tell whether it is being
  13950. # built for inclusion in a dll (and should export symbols for example).
  13951. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13952. ;;
  13953. dgux*)
  13954. case $cc_basename in
  13955. ec++*)
  13956. lt_prog_compiler_pic_CXX='-KPIC'
  13957. ;;
  13958. ghcx*)
  13959. # Green Hills C++ Compiler
  13960. lt_prog_compiler_pic_CXX='-pic'
  13961. ;;
  13962. *)
  13963. ;;
  13964. esac
  13965. ;;
  13966. freebsd* | dragonfly* | midnightbsd*)
  13967. # FreeBSD uses GNU C++
  13968. ;;
  13969. hpux9* | hpux10* | hpux11*)
  13970. case $cc_basename in
  13971. CC*)
  13972. lt_prog_compiler_wl_CXX='-Wl,'
  13973. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13974. if test ia64 != "$host_cpu"; then
  13975. lt_prog_compiler_pic_CXX='+Z'
  13976. fi
  13977. ;;
  13978. aCC*)
  13979. lt_prog_compiler_wl_CXX='-Wl,'
  13980. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13981. case $host_cpu in
  13982. hppa*64*|ia64*)
  13983. # +Z the default
  13984. ;;
  13985. *)
  13986. lt_prog_compiler_pic_CXX='+Z'
  13987. ;;
  13988. esac
  13989. ;;
  13990. *)
  13991. ;;
  13992. esac
  13993. ;;
  13994. interix*)
  13995. # This is c89, which is MS Visual C++ (no shared libs)
  13996. # Anyone wants to do a port?
  13997. ;;
  13998. irix5* | irix6* | nonstopux*)
  13999. case $cc_basename in
  14000. CC*)
  14001. lt_prog_compiler_wl_CXX='-Wl,'
  14002. lt_prog_compiler_static_CXX='-non_shared'
  14003. # CC pic flag -KPIC is the default.
  14004. ;;
  14005. *)
  14006. ;;
  14007. esac
  14008. ;;
  14009. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14010. case $cc_basename in
  14011. KCC*)
  14012. # KAI C++ Compiler
  14013. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14014. lt_prog_compiler_pic_CXX='-fPIC'
  14015. ;;
  14016. ecpc* )
  14017. # old Intel C++ for x86_64, which still supported -KPIC.
  14018. lt_prog_compiler_wl_CXX='-Wl,'
  14019. lt_prog_compiler_pic_CXX='-KPIC'
  14020. lt_prog_compiler_static_CXX='-static'
  14021. ;;
  14022. icpc* )
  14023. # Intel C++, used to be incompatible with GCC.
  14024. # ICC 10 doesn't accept -KPIC any more.
  14025. lt_prog_compiler_wl_CXX='-Wl,'
  14026. lt_prog_compiler_pic_CXX='-fPIC'
  14027. lt_prog_compiler_static_CXX='-static'
  14028. ;;
  14029. pgCC* | pgcpp*)
  14030. # Portland Group C++ compiler
  14031. lt_prog_compiler_wl_CXX='-Wl,'
  14032. lt_prog_compiler_pic_CXX='-fpic'
  14033. lt_prog_compiler_static_CXX='-Bstatic'
  14034. ;;
  14035. cxx*)
  14036. # Compaq C++
  14037. # Make sure the PIC flag is empty. It appears that all Alpha
  14038. # Linux and Compaq Tru64 Unix objects are PIC.
  14039. lt_prog_compiler_pic_CXX=
  14040. lt_prog_compiler_static_CXX='-non_shared'
  14041. ;;
  14042. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14043. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14044. lt_prog_compiler_wl_CXX='-Wl,'
  14045. lt_prog_compiler_pic_CXX='-qpic'
  14046. lt_prog_compiler_static_CXX='-qstaticlink'
  14047. ;;
  14048. *)
  14049. case `$CC -V 2>&1 | sed 5q` in
  14050. *Sun\ C*)
  14051. # Sun C++ 5.9
  14052. lt_prog_compiler_pic_CXX='-KPIC'
  14053. lt_prog_compiler_static_CXX='-Bstatic'
  14054. lt_prog_compiler_wl_CXX='-Qoption ld '
  14055. ;;
  14056. esac
  14057. ;;
  14058. esac
  14059. ;;
  14060. lynxos*)
  14061. ;;
  14062. m88k*)
  14063. ;;
  14064. mvs*)
  14065. case $cc_basename in
  14066. cxx*)
  14067. lt_prog_compiler_pic_CXX='-W c,exportall'
  14068. ;;
  14069. *)
  14070. ;;
  14071. esac
  14072. ;;
  14073. netbsd*)
  14074. ;;
  14075. *qnx* | *nto*)
  14076. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14077. # it will coredump.
  14078. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14079. ;;
  14080. osf3* | osf4* | osf5*)
  14081. case $cc_basename in
  14082. KCC*)
  14083. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14084. ;;
  14085. RCC*)
  14086. # Rational C++ 2.4.1
  14087. lt_prog_compiler_pic_CXX='-pic'
  14088. ;;
  14089. cxx*)
  14090. # Digital/Compaq C++
  14091. lt_prog_compiler_wl_CXX='-Wl,'
  14092. # Make sure the PIC flag is empty. It appears that all Alpha
  14093. # Linux and Compaq Tru64 Unix objects are PIC.
  14094. lt_prog_compiler_pic_CXX=
  14095. lt_prog_compiler_static_CXX='-non_shared'
  14096. ;;
  14097. *)
  14098. ;;
  14099. esac
  14100. ;;
  14101. psos*)
  14102. ;;
  14103. solaris*)
  14104. case $cc_basename in
  14105. CC* | sunCC*)
  14106. # Sun C++ 4.2, 5.x and Centerline C++
  14107. lt_prog_compiler_pic_CXX='-KPIC'
  14108. lt_prog_compiler_static_CXX='-Bstatic'
  14109. lt_prog_compiler_wl_CXX='-Qoption ld '
  14110. ;;
  14111. gcx*)
  14112. # Green Hills C++ Compiler
  14113. lt_prog_compiler_pic_CXX='-PIC'
  14114. ;;
  14115. *)
  14116. ;;
  14117. esac
  14118. ;;
  14119. sunos4*)
  14120. case $cc_basename in
  14121. CC*)
  14122. # Sun C++ 4.x
  14123. lt_prog_compiler_pic_CXX='-pic'
  14124. lt_prog_compiler_static_CXX='-Bstatic'
  14125. ;;
  14126. lcc*)
  14127. # Lucid
  14128. lt_prog_compiler_pic_CXX='-pic'
  14129. ;;
  14130. *)
  14131. ;;
  14132. esac
  14133. ;;
  14134. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14135. case $cc_basename in
  14136. CC*)
  14137. lt_prog_compiler_wl_CXX='-Wl,'
  14138. lt_prog_compiler_pic_CXX='-KPIC'
  14139. lt_prog_compiler_static_CXX='-Bstatic'
  14140. ;;
  14141. esac
  14142. ;;
  14143. tandem*)
  14144. case $cc_basename in
  14145. NCC*)
  14146. # NonStop-UX NCC 3.20
  14147. lt_prog_compiler_pic_CXX='-KPIC'
  14148. ;;
  14149. *)
  14150. ;;
  14151. esac
  14152. ;;
  14153. vxworks*)
  14154. ;;
  14155. *)
  14156. lt_prog_compiler_can_build_shared_CXX=no
  14157. ;;
  14158. esac
  14159. fi
  14160. case $host_os in
  14161. # For platforms that do not support PIC, -DPIC is meaningless:
  14162. *djgpp*)
  14163. lt_prog_compiler_pic_CXX=
  14164. ;;
  14165. *)
  14166. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14167. ;;
  14168. esac
  14169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14170. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14171. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14172. then :
  14173. printf %s "(cached) " >&6
  14174. else $as_nop
  14175. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14176. fi
  14177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14178. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14179. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14180. #
  14181. # Check to make sure the PIC flag actually works.
  14182. #
  14183. if test -n "$lt_prog_compiler_pic_CXX"; then
  14184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14185. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14186. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14187. then :
  14188. printf %s "(cached) " >&6
  14189. else $as_nop
  14190. lt_cv_prog_compiler_pic_works_CXX=no
  14191. ac_outfile=conftest.$ac_objext
  14192. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14193. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14194. # Insert the option either (1) after the last *FLAGS variable, or
  14195. # (2) before a word containing "conftest.", or (3) at the end.
  14196. # Note that $ac_compile itself does not contain backslashes and begins
  14197. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14198. # The option is referenced via a variable to avoid confusing sed.
  14199. lt_compile=`echo "$ac_compile" | $SED \
  14200. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14201. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14202. -e 's:$: $lt_compiler_flag:'`
  14203. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14204. (eval "$lt_compile" 2>conftest.err)
  14205. ac_status=$?
  14206. cat conftest.err >&5
  14207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14208. if (exit $ac_status) && test -s "$ac_outfile"; then
  14209. # The compiler can only warn and ignore the option if not recognized
  14210. # So say no if there are warnings other than the usual output.
  14211. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14212. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14213. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14214. lt_cv_prog_compiler_pic_works_CXX=yes
  14215. fi
  14216. fi
  14217. $RM conftest*
  14218. fi
  14219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14220. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14221. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14222. case $lt_prog_compiler_pic_CXX in
  14223. "" | " "*) ;;
  14224. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14225. esac
  14226. else
  14227. lt_prog_compiler_pic_CXX=
  14228. lt_prog_compiler_can_build_shared_CXX=no
  14229. fi
  14230. fi
  14231. #
  14232. # Check to make sure the static flag actually works.
  14233. #
  14234. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14236. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14237. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14238. then :
  14239. printf %s "(cached) " >&6
  14240. else $as_nop
  14241. lt_cv_prog_compiler_static_works_CXX=no
  14242. save_LDFLAGS=$LDFLAGS
  14243. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14244. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14245. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14246. # The linker can only warn and ignore the option if not recognized
  14247. # So say no if there are warnings
  14248. if test -s conftest.err; then
  14249. # Append any errors to the config.log.
  14250. cat conftest.err 1>&5
  14251. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14252. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14253. if diff conftest.exp conftest.er2 >/dev/null; then
  14254. lt_cv_prog_compiler_static_works_CXX=yes
  14255. fi
  14256. else
  14257. lt_cv_prog_compiler_static_works_CXX=yes
  14258. fi
  14259. fi
  14260. $RM -r conftest*
  14261. LDFLAGS=$save_LDFLAGS
  14262. fi
  14263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14264. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14265. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14266. :
  14267. else
  14268. lt_prog_compiler_static_CXX=
  14269. fi
  14270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14271. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14272. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14273. then :
  14274. printf %s "(cached) " >&6
  14275. else $as_nop
  14276. lt_cv_prog_compiler_c_o_CXX=no
  14277. $RM -r conftest 2>/dev/null
  14278. mkdir conftest
  14279. cd conftest
  14280. mkdir out
  14281. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14282. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14283. # Insert the option either (1) after the last *FLAGS variable, or
  14284. # (2) before a word containing "conftest.", or (3) at the end.
  14285. # Note that $ac_compile itself does not contain backslashes and begins
  14286. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14287. lt_compile=`echo "$ac_compile" | $SED \
  14288. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14289. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14290. -e 's:$: $lt_compiler_flag:'`
  14291. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14292. (eval "$lt_compile" 2>out/conftest.err)
  14293. ac_status=$?
  14294. cat out/conftest.err >&5
  14295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14296. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14297. then
  14298. # The compiler can only warn and ignore the option if not recognized
  14299. # So say no if there are warnings
  14300. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14301. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14302. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14303. lt_cv_prog_compiler_c_o_CXX=yes
  14304. fi
  14305. fi
  14306. chmod u+w . 2>&5
  14307. $RM conftest*
  14308. # SGI C++ compiler will create directory out/ii_files/ for
  14309. # template instantiation
  14310. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14311. $RM out/* && rmdir out
  14312. cd ..
  14313. $RM -r conftest
  14314. $RM conftest*
  14315. fi
  14316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14317. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14319. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14320. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14321. then :
  14322. printf %s "(cached) " >&6
  14323. else $as_nop
  14324. lt_cv_prog_compiler_c_o_CXX=no
  14325. $RM -r conftest 2>/dev/null
  14326. mkdir conftest
  14327. cd conftest
  14328. mkdir out
  14329. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14330. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14331. # Insert the option either (1) after the last *FLAGS variable, or
  14332. # (2) before a word containing "conftest.", or (3) at the end.
  14333. # Note that $ac_compile itself does not contain backslashes and begins
  14334. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14335. lt_compile=`echo "$ac_compile" | $SED \
  14336. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14337. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14338. -e 's:$: $lt_compiler_flag:'`
  14339. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14340. (eval "$lt_compile" 2>out/conftest.err)
  14341. ac_status=$?
  14342. cat out/conftest.err >&5
  14343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14344. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14345. then
  14346. # The compiler can only warn and ignore the option if not recognized
  14347. # So say no if there are warnings
  14348. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14349. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14350. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14351. lt_cv_prog_compiler_c_o_CXX=yes
  14352. fi
  14353. fi
  14354. chmod u+w . 2>&5
  14355. $RM conftest*
  14356. # SGI C++ compiler will create directory out/ii_files/ for
  14357. # template instantiation
  14358. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14359. $RM out/* && rmdir out
  14360. cd ..
  14361. $RM -r conftest
  14362. $RM conftest*
  14363. fi
  14364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14365. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14366. hard_links=nottested
  14367. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14368. # do not overwrite the value of need_locks provided by the user
  14369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14370. printf %s "checking if we can lock with hard links... " >&6; }
  14371. hard_links=yes
  14372. $RM conftest*
  14373. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14374. touch conftest.a
  14375. ln conftest.a conftest.b 2>&5 || hard_links=no
  14376. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14378. printf "%s\n" "$hard_links" >&6; }
  14379. if test no = "$hard_links"; then
  14380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14381. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14382. need_locks=warn
  14383. fi
  14384. else
  14385. need_locks=no
  14386. fi
  14387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14388. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14389. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14390. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14391. case $host_os in
  14392. aix[4-9]*)
  14393. # If we're using GNU nm, then we don't want the "-C" option.
  14394. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14395. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14396. # weak defined symbols like other global defined symbols, whereas
  14397. # GNU nm marks them as "W".
  14398. # While the 'weak' keyword is ignored in the Export File, we need
  14399. # it in the Import File for the 'aix-soname' feature, so we have
  14400. # to replace the "-B" option with "-P" for AIX nm.
  14401. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14402. 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'
  14403. else
  14404. 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'
  14405. fi
  14406. ;;
  14407. pw32*)
  14408. export_symbols_cmds_CXX=$ltdll_cmds
  14409. ;;
  14410. cygwin* | mingw* | cegcc*)
  14411. case $cc_basename in
  14412. cl*)
  14413. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14414. ;;
  14415. *)
  14416. 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'
  14417. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14418. ;;
  14419. esac
  14420. ;;
  14421. *)
  14422. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14423. ;;
  14424. esac
  14425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14426. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14427. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14428. with_gnu_ld_CXX=$with_gnu_ld
  14429. #
  14430. # Do we need to explicitly link libc?
  14431. #
  14432. case "x$archive_cmds_need_lc_CXX" in
  14433. x|xyes)
  14434. # Assume -lc should be added
  14435. archive_cmds_need_lc_CXX=yes
  14436. if test yes,yes = "$GCC,$enable_shared"; then
  14437. case $archive_cmds_CXX in
  14438. *'~'*)
  14439. # FIXME: we may have to deal with multi-command sequences.
  14440. ;;
  14441. '$CC '*)
  14442. # Test whether the compiler implicitly links with -lc since on some
  14443. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14444. # to ld, don't add -lc before -lgcc.
  14445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14446. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14447. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14448. then :
  14449. printf %s "(cached) " >&6
  14450. else $as_nop
  14451. $RM conftest*
  14452. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14453. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14454. (eval $ac_compile) 2>&5
  14455. ac_status=$?
  14456. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14457. test $ac_status = 0; } 2>conftest.err; then
  14458. soname=conftest
  14459. lib=conftest
  14460. libobjs=conftest.$ac_objext
  14461. deplibs=
  14462. wl=$lt_prog_compiler_wl_CXX
  14463. pic_flag=$lt_prog_compiler_pic_CXX
  14464. compiler_flags=-v
  14465. linker_flags=-v
  14466. verstring=
  14467. output_objdir=.
  14468. libname=conftest
  14469. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14470. allow_undefined_flag_CXX=
  14471. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14472. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14473. ac_status=$?
  14474. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14475. test $ac_status = 0; }
  14476. then
  14477. lt_cv_archive_cmds_need_lc_CXX=no
  14478. else
  14479. lt_cv_archive_cmds_need_lc_CXX=yes
  14480. fi
  14481. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14482. else
  14483. cat conftest.err 1>&5
  14484. fi
  14485. $RM conftest*
  14486. fi
  14487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14488. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14489. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14490. ;;
  14491. esac
  14492. fi
  14493. ;;
  14494. esac
  14495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14496. printf %s "checking dynamic linker characteristics... " >&6; }
  14497. library_names_spec=
  14498. libname_spec='lib$name'
  14499. soname_spec=
  14500. shrext_cmds=.so
  14501. postinstall_cmds=
  14502. postuninstall_cmds=
  14503. finish_cmds=
  14504. finish_eval=
  14505. shlibpath_var=
  14506. shlibpath_overrides_runpath=unknown
  14507. version_type=none
  14508. dynamic_linker="$host_os ld.so"
  14509. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14510. need_lib_prefix=unknown
  14511. hardcode_into_libs=no
  14512. # when you set need_version to no, make sure it does not cause -set_version
  14513. # flags to be left without arguments
  14514. need_version=unknown
  14515. case $host_os in
  14516. aix3*)
  14517. version_type=linux # correct to gnu/linux during the next big refactor
  14518. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14519. shlibpath_var=LIBPATH
  14520. # AIX 3 has no versioning support, so we append a major version to the name.
  14521. soname_spec='$libname$release$shared_ext$major'
  14522. ;;
  14523. aix[4-9]*)
  14524. version_type=linux # correct to gnu/linux during the next big refactor
  14525. need_lib_prefix=no
  14526. need_version=no
  14527. hardcode_into_libs=yes
  14528. if test ia64 = "$host_cpu"; then
  14529. # AIX 5 supports IA64
  14530. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14531. shlibpath_var=LD_LIBRARY_PATH
  14532. else
  14533. # With GCC up to 2.95.x, collect2 would create an import file
  14534. # for dependence libraries. The import file would start with
  14535. # the line '#! .'. This would cause the generated library to
  14536. # depend on '.', always an invalid library. This was fixed in
  14537. # development snapshots of GCC prior to 3.0.
  14538. case $host_os in
  14539. aix4 | aix4.[01] | aix4.[01].*)
  14540. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14541. echo ' yes '
  14542. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14543. :
  14544. else
  14545. can_build_shared=no
  14546. fi
  14547. ;;
  14548. esac
  14549. # Using Import Files as archive members, it is possible to support
  14550. # filename-based versioning of shared library archives on AIX. While
  14551. # this would work for both with and without runtime linking, it will
  14552. # prevent static linking of such archives. So we do filename-based
  14553. # shared library versioning with .so extension only, which is used
  14554. # when both runtime linking and shared linking is enabled.
  14555. # Unfortunately, runtime linking may impact performance, so we do
  14556. # not want this to be the default eventually. Also, we use the
  14557. # versioned .so libs for executables only if there is the -brtl
  14558. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14559. # To allow for filename-based versioning support, we need to create
  14560. # libNAME.so.V as an archive file, containing:
  14561. # *) an Import File, referring to the versioned filename of the
  14562. # archive as well as the shared archive member, telling the
  14563. # bitwidth (32 or 64) of that shared object, and providing the
  14564. # list of exported symbols of that shared object, eventually
  14565. # decorated with the 'weak' keyword
  14566. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14567. # it being seen by the linker.
  14568. # At run time we better use the real file rather than another symlink,
  14569. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14570. case $with_aix_soname,$aix_use_runtimelinking in
  14571. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14572. # soname into executable. Probably we can add versioning support to
  14573. # collect2, so additional links can be useful in future.
  14574. aix,yes) # traditional libtool
  14575. dynamic_linker='AIX unversionable lib.so'
  14576. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14577. # instead of lib<name>.a to let people know that these are not
  14578. # typical AIX shared libraries.
  14579. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14580. ;;
  14581. aix,no) # traditional AIX only
  14582. dynamic_linker='AIX lib.a(lib.so.V)'
  14583. # We preserve .a as extension for shared libraries through AIX4.2
  14584. # and later when we are not doing run time linking.
  14585. library_names_spec='$libname$release.a $libname.a'
  14586. soname_spec='$libname$release$shared_ext$major'
  14587. ;;
  14588. svr4,*) # full svr4 only
  14589. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14590. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14591. # We do not specify a path in Import Files, so LIBPATH fires.
  14592. shlibpath_overrides_runpath=yes
  14593. ;;
  14594. *,yes) # both, prefer svr4
  14595. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14596. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14597. # unpreferred sharedlib libNAME.a needs extra handling
  14598. 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"'
  14599. 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"'
  14600. # We do not specify a path in Import Files, so LIBPATH fires.
  14601. shlibpath_overrides_runpath=yes
  14602. ;;
  14603. *,no) # both, prefer aix
  14604. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14605. library_names_spec='$libname$release.a $libname.a'
  14606. soname_spec='$libname$release$shared_ext$major'
  14607. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14608. 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)'
  14609. 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"'
  14610. ;;
  14611. esac
  14612. shlibpath_var=LIBPATH
  14613. fi
  14614. ;;
  14615. amigaos*)
  14616. case $host_cpu in
  14617. powerpc)
  14618. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14619. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14620. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14621. ;;
  14622. m68k)
  14623. library_names_spec='$libname.ixlibrary $libname.a'
  14624. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14625. 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'
  14626. ;;
  14627. esac
  14628. ;;
  14629. beos*)
  14630. library_names_spec='$libname$shared_ext'
  14631. dynamic_linker="$host_os ld.so"
  14632. shlibpath_var=LIBRARY_PATH
  14633. ;;
  14634. bsdi[45]*)
  14635. version_type=linux # correct to gnu/linux during the next big refactor
  14636. need_version=no
  14637. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14638. soname_spec='$libname$release$shared_ext$major'
  14639. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14640. shlibpath_var=LD_LIBRARY_PATH
  14641. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14642. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14643. # the default ld.so.conf also contains /usr/contrib/lib and
  14644. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14645. # libtool to hard-code these into programs
  14646. ;;
  14647. cygwin* | mingw* | pw32* | cegcc*)
  14648. version_type=windows
  14649. shrext_cmds=.dll
  14650. need_version=no
  14651. need_lib_prefix=no
  14652. case $GCC,$cc_basename in
  14653. yes,*)
  14654. # gcc
  14655. library_names_spec='$libname.dll.a'
  14656. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14657. postinstall_cmds='base_file=`basename \$file`~
  14658. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14659. dldir=$destdir/`dirname \$dlpath`~
  14660. test -d \$dldir || mkdir -p \$dldir~
  14661. $install_prog $dir/$dlname \$dldir/$dlname~
  14662. chmod a+x \$dldir/$dlname~
  14663. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14664. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14665. fi'
  14666. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14667. dlpath=$dir/\$dldll~
  14668. $RM \$dlpath'
  14669. shlibpath_overrides_runpath=yes
  14670. case $host_os in
  14671. cygwin*)
  14672. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14673. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14674. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14675. ;;
  14676. mingw* | cegcc*)
  14677. # MinGW DLLs use traditional 'lib' prefix
  14678. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14679. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14680. ;;
  14681. pw32*)
  14682. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14683. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14684. ;;
  14685. esac
  14686. dynamic_linker='Win32 ld.exe'
  14687. ;;
  14688. *,cl*)
  14689. # Native MSVC
  14690. libname_spec='$name'
  14691. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14692. library_names_spec='$libname.dll.lib'
  14693. case $build_os in
  14694. mingw*)
  14695. sys_lib_search_path_spec=
  14696. lt_save_ifs=$IFS
  14697. IFS=';'
  14698. for lt_path in $LIB
  14699. do
  14700. IFS=$lt_save_ifs
  14701. # Let DOS variable expansion print the short 8.3 style file name.
  14702. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14703. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14704. done
  14705. IFS=$lt_save_ifs
  14706. # Convert to MSYS style.
  14707. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14708. ;;
  14709. cygwin*)
  14710. # Convert to unix form, then to dos form, then back to unix form
  14711. # but this time dos style (no spaces!) so that the unix form looks
  14712. # like /cygdrive/c/PROGRA~1:/cygdr...
  14713. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14714. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14715. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14716. ;;
  14717. *)
  14718. sys_lib_search_path_spec=$LIB
  14719. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14720. # It is most probably a Windows format PATH.
  14721. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14722. else
  14723. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14724. fi
  14725. # FIXME: find the short name or the path components, as spaces are
  14726. # common. (e.g. "Program Files" -> "PROGRA~1")
  14727. ;;
  14728. esac
  14729. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14730. postinstall_cmds='base_file=`basename \$file`~
  14731. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14732. dldir=$destdir/`dirname \$dlpath`~
  14733. test -d \$dldir || mkdir -p \$dldir~
  14734. $install_prog $dir/$dlname \$dldir/$dlname'
  14735. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14736. dlpath=$dir/\$dldll~
  14737. $RM \$dlpath'
  14738. shlibpath_overrides_runpath=yes
  14739. dynamic_linker='Win32 link.exe'
  14740. ;;
  14741. *)
  14742. # Assume MSVC wrapper
  14743. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14744. dynamic_linker='Win32 ld.exe'
  14745. ;;
  14746. esac
  14747. # FIXME: first we should search . and the directory the executable is in
  14748. shlibpath_var=PATH
  14749. ;;
  14750. darwin* | rhapsody*)
  14751. dynamic_linker="$host_os dyld"
  14752. version_type=darwin
  14753. need_lib_prefix=no
  14754. need_version=no
  14755. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14756. soname_spec='$libname$release$major$shared_ext'
  14757. shlibpath_overrides_runpath=yes
  14758. shlibpath_var=DYLD_LIBRARY_PATH
  14759. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14760. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14761. ;;
  14762. dgux*)
  14763. version_type=linux # correct to gnu/linux during the next big refactor
  14764. need_lib_prefix=no
  14765. need_version=no
  14766. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14767. soname_spec='$libname$release$shared_ext$major'
  14768. shlibpath_var=LD_LIBRARY_PATH
  14769. ;;
  14770. freebsd* | dragonfly* | midnightbsd*)
  14771. # DragonFly does not have aout. When/if they implement a new
  14772. # versioning mechanism, adjust this.
  14773. if test -x /usr/bin/objformat; then
  14774. objformat=`/usr/bin/objformat`
  14775. else
  14776. case $host_os in
  14777. freebsd[23].*) objformat=aout ;;
  14778. *) objformat=elf ;;
  14779. esac
  14780. fi
  14781. version_type=freebsd-$objformat
  14782. case $version_type in
  14783. freebsd-elf*)
  14784. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14785. soname_spec='$libname$release$shared_ext$major'
  14786. need_version=no
  14787. need_lib_prefix=no
  14788. ;;
  14789. freebsd-*)
  14790. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14791. need_version=yes
  14792. ;;
  14793. esac
  14794. shlibpath_var=LD_LIBRARY_PATH
  14795. case $host_os in
  14796. freebsd2.*)
  14797. shlibpath_overrides_runpath=yes
  14798. ;;
  14799. freebsd3.[01]* | freebsdelf3.[01]*)
  14800. shlibpath_overrides_runpath=yes
  14801. hardcode_into_libs=yes
  14802. ;;
  14803. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14804. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14805. shlibpath_overrides_runpath=no
  14806. hardcode_into_libs=yes
  14807. ;;
  14808. *) # from 4.6 on, and DragonFly
  14809. shlibpath_overrides_runpath=yes
  14810. hardcode_into_libs=yes
  14811. ;;
  14812. esac
  14813. ;;
  14814. haiku*)
  14815. version_type=linux # correct to gnu/linux during the next big refactor
  14816. need_lib_prefix=no
  14817. need_version=no
  14818. dynamic_linker="$host_os runtime_loader"
  14819. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14820. soname_spec='$libname$release$shared_ext$major'
  14821. shlibpath_var=LIBRARY_PATH
  14822. shlibpath_overrides_runpath=no
  14823. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14824. hardcode_into_libs=yes
  14825. ;;
  14826. hpux9* | hpux10* | hpux11*)
  14827. # Give a soname corresponding to the major version so that dld.sl refuses to
  14828. # link against other versions.
  14829. version_type=sunos
  14830. need_lib_prefix=no
  14831. need_version=no
  14832. case $host_cpu in
  14833. ia64*)
  14834. shrext_cmds='.so'
  14835. hardcode_into_libs=yes
  14836. dynamic_linker="$host_os dld.so"
  14837. shlibpath_var=LD_LIBRARY_PATH
  14838. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14839. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14840. soname_spec='$libname$release$shared_ext$major'
  14841. if test 32 = "$HPUX_IA64_MODE"; then
  14842. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14843. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14844. else
  14845. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14846. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14847. fi
  14848. ;;
  14849. hppa*64*)
  14850. shrext_cmds='.sl'
  14851. hardcode_into_libs=yes
  14852. dynamic_linker="$host_os dld.sl"
  14853. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14854. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14855. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14856. soname_spec='$libname$release$shared_ext$major'
  14857. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14858. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14859. ;;
  14860. *)
  14861. shrext_cmds='.sl'
  14862. dynamic_linker="$host_os dld.sl"
  14863. shlibpath_var=SHLIB_PATH
  14864. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14865. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14866. soname_spec='$libname$release$shared_ext$major'
  14867. ;;
  14868. esac
  14869. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14870. postinstall_cmds='chmod 555 $lib'
  14871. # or fails outright, so override atomically:
  14872. install_override_mode=555
  14873. ;;
  14874. interix[3-9]*)
  14875. version_type=linux # correct to gnu/linux during the next big refactor
  14876. need_lib_prefix=no
  14877. need_version=no
  14878. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14879. soname_spec='$libname$release$shared_ext$major'
  14880. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14881. shlibpath_var=LD_LIBRARY_PATH
  14882. shlibpath_overrides_runpath=no
  14883. hardcode_into_libs=yes
  14884. ;;
  14885. irix5* | irix6* | nonstopux*)
  14886. case $host_os in
  14887. nonstopux*) version_type=nonstopux ;;
  14888. *)
  14889. if test yes = "$lt_cv_prog_gnu_ld"; then
  14890. version_type=linux # correct to gnu/linux during the next big refactor
  14891. else
  14892. version_type=irix
  14893. fi ;;
  14894. esac
  14895. need_lib_prefix=no
  14896. need_version=no
  14897. soname_spec='$libname$release$shared_ext$major'
  14898. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14899. case $host_os in
  14900. irix5* | nonstopux*)
  14901. libsuff= shlibsuff=
  14902. ;;
  14903. *)
  14904. case $LD in # libtool.m4 will add one of these switches to LD
  14905. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14906. libsuff= shlibsuff= libmagic=32-bit;;
  14907. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14908. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14909. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14910. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14911. *) libsuff= shlibsuff= libmagic=never-match;;
  14912. esac
  14913. ;;
  14914. esac
  14915. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14916. shlibpath_overrides_runpath=no
  14917. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14918. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14919. hardcode_into_libs=yes
  14920. ;;
  14921. # No shared lib support for Linux oldld, aout, or coff.
  14922. linux*oldld* | linux*aout* | linux*coff*)
  14923. dynamic_linker=no
  14924. ;;
  14925. linux*android*)
  14926. version_type=none # Android doesn't support versioned libraries.
  14927. need_lib_prefix=no
  14928. need_version=no
  14929. library_names_spec='$libname$release$shared_ext'
  14930. soname_spec='$libname$release$shared_ext'
  14931. finish_cmds=
  14932. shlibpath_var=LD_LIBRARY_PATH
  14933. shlibpath_overrides_runpath=yes
  14934. # This implies no fast_install, which is unacceptable.
  14935. # Some rework will be needed to allow for fast_install
  14936. # before this can be enabled.
  14937. hardcode_into_libs=yes
  14938. dynamic_linker='Android linker'
  14939. # Don't embed -rpath directories since the linker doesn't support them.
  14940. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14941. ;;
  14942. # This must be glibc/ELF.
  14943. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14944. version_type=linux # correct to gnu/linux during the next big refactor
  14945. need_lib_prefix=no
  14946. need_version=no
  14947. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14948. soname_spec='$libname$release$shared_ext$major'
  14949. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14950. shlibpath_var=LD_LIBRARY_PATH
  14951. shlibpath_overrides_runpath=no
  14952. # Some binutils ld are patched to set DT_RUNPATH
  14953. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14954. then :
  14955. printf %s "(cached) " >&6
  14956. else $as_nop
  14957. lt_cv_shlibpath_overrides_runpath=no
  14958. save_LDFLAGS=$LDFLAGS
  14959. save_libdir=$libdir
  14960. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14961. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14963. /* end confdefs.h. */
  14964. int
  14965. main (void)
  14966. {
  14967. ;
  14968. return 0;
  14969. }
  14970. _ACEOF
  14971. if ac_fn_cxx_try_link "$LINENO"
  14972. then :
  14973. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14974. then :
  14975. lt_cv_shlibpath_overrides_runpath=yes
  14976. fi
  14977. fi
  14978. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14979. conftest$ac_exeext conftest.$ac_ext
  14980. LDFLAGS=$save_LDFLAGS
  14981. libdir=$save_libdir
  14982. fi
  14983. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14984. # This implies no fast_install, which is unacceptable.
  14985. # Some rework will be needed to allow for fast_install
  14986. # before this can be enabled.
  14987. hardcode_into_libs=yes
  14988. # Add ABI-specific directories to the system library path.
  14989. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14990. # Ideally, we could use ldconfig to report *all* directores which are
  14991. # searched for libraries, however this is still not possible. Aside from not
  14992. # being certain /sbin/ldconfig is available, command
  14993. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14994. # even though it is searched at run-time. Try to do the best guess by
  14995. # appending ld.so.conf contents (and includes) to the search path.
  14996. if test -f /etc/ld.so.conf; then
  14997. 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' ' '`
  14998. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14999. fi
  15000. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15001. # powerpc, because MkLinux only supported shared libraries with the
  15002. # GNU dynamic linker. Since this was broken with cross compilers,
  15003. # most powerpc-linux boxes support dynamic linking these days and
  15004. # people can always --disable-shared, the test was removed, and we
  15005. # assume the GNU/Linux dynamic linker is in use.
  15006. dynamic_linker='GNU/Linux ld.so'
  15007. ;;
  15008. netbsd*)
  15009. version_type=sunos
  15010. need_lib_prefix=no
  15011. need_version=no
  15012. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15013. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15014. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15015. dynamic_linker='NetBSD (a.out) ld.so'
  15016. else
  15017. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15018. soname_spec='$libname$release$shared_ext$major'
  15019. dynamic_linker='NetBSD ld.elf_so'
  15020. fi
  15021. shlibpath_var=LD_LIBRARY_PATH
  15022. shlibpath_overrides_runpath=yes
  15023. hardcode_into_libs=yes
  15024. ;;
  15025. newsos6)
  15026. version_type=linux # correct to gnu/linux during the next big refactor
  15027. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15028. shlibpath_var=LD_LIBRARY_PATH
  15029. shlibpath_overrides_runpath=yes
  15030. ;;
  15031. *nto* | *qnx*)
  15032. version_type=qnx
  15033. need_lib_prefix=no
  15034. need_version=no
  15035. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15036. soname_spec='$libname$release$shared_ext$major'
  15037. shlibpath_var=LD_LIBRARY_PATH
  15038. shlibpath_overrides_runpath=no
  15039. hardcode_into_libs=yes
  15040. dynamic_linker='ldqnx.so'
  15041. ;;
  15042. openbsd* | bitrig*)
  15043. version_type=sunos
  15044. sys_lib_dlsearch_path_spec=/usr/lib
  15045. need_lib_prefix=no
  15046. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15047. need_version=no
  15048. else
  15049. need_version=yes
  15050. fi
  15051. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15052. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15053. shlibpath_var=LD_LIBRARY_PATH
  15054. shlibpath_overrides_runpath=yes
  15055. ;;
  15056. os2*)
  15057. libname_spec='$name'
  15058. shrext_cmds=.dll
  15059. need_lib_prefix=no
  15060. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15061. # SDL customization: removed versioning support.
  15062. # version_type=windows
  15063. # need_version=no
  15064. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15065. # v=$($ECHO $release$versuffix | tr -d .-);
  15066. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15067. # $ECHO $n$v`$shared_ext'
  15068. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15069. library_names_spec='${libname}_dll.$libext'
  15070. dynamic_linker='OS/2 ld.exe'
  15071. shlibpath_var=BEGINLIBPATH
  15072. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15073. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15074. postinstall_cmds='base_file=`basename \$file`~
  15075. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15076. dldir=$destdir/`dirname \$dlpath`~
  15077. test -d \$dldir || mkdir -p \$dldir~
  15078. $install_prog $dir/$dlname \$dldir/$dlname~
  15079. chmod a+x \$dldir/$dlname~
  15080. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15081. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15082. fi'
  15083. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15084. dlpath=$dir/\$dldll~
  15085. $RM \$dlpath'
  15086. ;;
  15087. osf3* | osf4* | osf5*)
  15088. version_type=osf
  15089. need_lib_prefix=no
  15090. need_version=no
  15091. soname_spec='$libname$release$shared_ext$major'
  15092. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15093. shlibpath_var=LD_LIBRARY_PATH
  15094. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15095. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15096. ;;
  15097. rdos*)
  15098. dynamic_linker=no
  15099. ;;
  15100. solaris*)
  15101. version_type=linux # correct to gnu/linux during the next big refactor
  15102. need_lib_prefix=no
  15103. need_version=no
  15104. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15105. soname_spec='$libname$release$shared_ext$major'
  15106. shlibpath_var=LD_LIBRARY_PATH
  15107. shlibpath_overrides_runpath=yes
  15108. hardcode_into_libs=yes
  15109. # ldd complains unless libraries are executable
  15110. postinstall_cmds='chmod +x $lib'
  15111. ;;
  15112. sunos4*)
  15113. version_type=sunos
  15114. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15115. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15116. shlibpath_var=LD_LIBRARY_PATH
  15117. shlibpath_overrides_runpath=yes
  15118. if test yes = "$with_gnu_ld"; then
  15119. need_lib_prefix=no
  15120. fi
  15121. need_version=yes
  15122. ;;
  15123. sysv4 | sysv4.3*)
  15124. version_type=linux # correct to gnu/linux during the next big refactor
  15125. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15126. soname_spec='$libname$release$shared_ext$major'
  15127. shlibpath_var=LD_LIBRARY_PATH
  15128. case $host_vendor in
  15129. sni)
  15130. shlibpath_overrides_runpath=no
  15131. need_lib_prefix=no
  15132. runpath_var=LD_RUN_PATH
  15133. ;;
  15134. siemens)
  15135. need_lib_prefix=no
  15136. ;;
  15137. motorola)
  15138. need_lib_prefix=no
  15139. need_version=no
  15140. shlibpath_overrides_runpath=no
  15141. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15142. ;;
  15143. esac
  15144. ;;
  15145. sysv4*MP*)
  15146. if test -d /usr/nec; then
  15147. version_type=linux # correct to gnu/linux during the next big refactor
  15148. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15149. soname_spec='$libname$shared_ext.$major'
  15150. shlibpath_var=LD_LIBRARY_PATH
  15151. fi
  15152. ;;
  15153. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15154. version_type=sco
  15155. need_lib_prefix=no
  15156. need_version=no
  15157. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15158. soname_spec='$libname$release$shared_ext$major'
  15159. shlibpath_var=LD_LIBRARY_PATH
  15160. shlibpath_overrides_runpath=yes
  15161. hardcode_into_libs=yes
  15162. if test yes = "$with_gnu_ld"; then
  15163. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15164. else
  15165. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15166. case $host_os in
  15167. sco3.2v5*)
  15168. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15169. ;;
  15170. esac
  15171. fi
  15172. sys_lib_dlsearch_path_spec='/usr/lib'
  15173. ;;
  15174. tpf*)
  15175. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15176. version_type=linux # correct to gnu/linux during the next big refactor
  15177. need_lib_prefix=no
  15178. need_version=no
  15179. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15180. shlibpath_var=LD_LIBRARY_PATH
  15181. shlibpath_overrides_runpath=no
  15182. hardcode_into_libs=yes
  15183. ;;
  15184. uts4*)
  15185. version_type=linux # correct to gnu/linux during the next big refactor
  15186. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15187. soname_spec='$libname$release$shared_ext$major'
  15188. shlibpath_var=LD_LIBRARY_PATH
  15189. ;;
  15190. *)
  15191. dynamic_linker=no
  15192. ;;
  15193. esac
  15194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15195. printf "%s\n" "$dynamic_linker" >&6; }
  15196. test no = "$dynamic_linker" && can_build_shared=no
  15197. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15198. if test yes = "$GCC"; then
  15199. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15200. fi
  15201. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15202. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15203. fi
  15204. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15205. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15206. fi
  15207. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15208. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15209. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15210. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15211. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15212. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15214. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15215. hardcode_action_CXX=
  15216. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15217. test -n "$runpath_var_CXX" ||
  15218. test yes = "$hardcode_automatic_CXX"; then
  15219. # We can hardcode non-existent directories.
  15220. if test no != "$hardcode_direct_CXX" &&
  15221. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15222. # have to relink, otherwise we might link with an installed library
  15223. # when we should be linking with a yet-to-be-installed one
  15224. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15225. test no != "$hardcode_minus_L_CXX"; then
  15226. # Linking always hardcodes the temporary library directory.
  15227. hardcode_action_CXX=relink
  15228. else
  15229. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15230. hardcode_action_CXX=immediate
  15231. fi
  15232. else
  15233. # We cannot hardcode anything, or else we can only hardcode existing
  15234. # directories.
  15235. hardcode_action_CXX=unsupported
  15236. fi
  15237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15238. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15239. if test relink = "$hardcode_action_CXX" ||
  15240. test yes = "$inherit_rpath_CXX"; then
  15241. # Fast installation is not supported
  15242. enable_fast_install=no
  15243. elif test yes = "$shlibpath_overrides_runpath" ||
  15244. test no = "$enable_shared"; then
  15245. # Fast installation is not necessary
  15246. enable_fast_install=needless
  15247. fi
  15248. fi # test -n "$compiler"
  15249. CC=$lt_save_CC
  15250. CFLAGS=$lt_save_CFLAGS
  15251. LDCXX=$LD
  15252. LD=$lt_save_LD
  15253. GCC=$lt_save_GCC
  15254. with_gnu_ld=$lt_save_with_gnu_ld
  15255. lt_cv_path_LDCXX=$lt_cv_path_LD
  15256. lt_cv_path_LD=$lt_save_path_LD
  15257. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15258. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15259. fi # test yes != "$_lt_caught_CXX_error"
  15260. ac_ext=c
  15261. ac_cpp='$CPP $CPPFLAGS'
  15262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15266. printf %s "checking for egrep... " >&6; }
  15267. if test ${ac_cv_path_EGREP+y}
  15268. then :
  15269. printf %s "(cached) " >&6
  15270. else $as_nop
  15271. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15272. then ac_cv_path_EGREP="$GREP -E"
  15273. else
  15274. if test -z "$EGREP"; then
  15275. ac_path_EGREP_found=false
  15276. # Loop through the user's path and test for each of PROGNAME-LIST
  15277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15278. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15279. do
  15280. IFS=$as_save_IFS
  15281. case $as_dir in #(((
  15282. '') as_dir=./ ;;
  15283. */) ;;
  15284. *) as_dir=$as_dir/ ;;
  15285. esac
  15286. for ac_prog in egrep
  15287. do
  15288. for ac_exec_ext in '' $ac_executable_extensions; do
  15289. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15290. as_fn_executable_p "$ac_path_EGREP" || continue
  15291. # Check for GNU ac_path_EGREP and select it if it is found.
  15292. # Check for GNU $ac_path_EGREP
  15293. case `"$ac_path_EGREP" --version 2>&1` in
  15294. *GNU*)
  15295. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15296. *)
  15297. ac_count=0
  15298. printf %s 0123456789 >"conftest.in"
  15299. while :
  15300. do
  15301. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15302. mv "conftest.tmp" "conftest.in"
  15303. cp "conftest.in" "conftest.nl"
  15304. printf "%s\n" 'EGREP' >> "conftest.nl"
  15305. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15306. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15307. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15308. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15309. # Best one so far, save it but keep looking for a better one
  15310. ac_cv_path_EGREP="$ac_path_EGREP"
  15311. ac_path_EGREP_max=$ac_count
  15312. fi
  15313. # 10*(2^10) chars as input seems more than enough
  15314. test $ac_count -gt 10 && break
  15315. done
  15316. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15317. esac
  15318. $ac_path_EGREP_found && break 3
  15319. done
  15320. done
  15321. done
  15322. IFS=$as_save_IFS
  15323. if test -z "$ac_cv_path_EGREP"; then
  15324. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15325. fi
  15326. else
  15327. ac_cv_path_EGREP=$EGREP
  15328. fi
  15329. fi
  15330. fi
  15331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15332. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15333. EGREP="$ac_cv_path_EGREP"
  15334. # Find a good install program. We prefer a C program (faster),
  15335. # so one script is as good as another. But avoid the broken or
  15336. # incompatible versions:
  15337. # SysV /etc/install, /usr/sbin/install
  15338. # SunOS /usr/etc/install
  15339. # IRIX /sbin/install
  15340. # AIX /bin/install
  15341. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15342. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15343. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15344. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15345. # OS/2's system install, which has a completely different semantic
  15346. # ./install, which can be erroneously created by make from ./install.sh.
  15347. # Reject install programs that cannot install multiple files.
  15348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15349. printf %s "checking for a BSD-compatible install... " >&6; }
  15350. if test -z "$INSTALL"; then
  15351. if test ${ac_cv_path_install+y}
  15352. then :
  15353. printf %s "(cached) " >&6
  15354. else $as_nop
  15355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15356. for as_dir in $PATH
  15357. do
  15358. IFS=$as_save_IFS
  15359. case $as_dir in #(((
  15360. '') as_dir=./ ;;
  15361. */) ;;
  15362. *) as_dir=$as_dir/ ;;
  15363. esac
  15364. # Account for fact that we put trailing slashes in our PATH walk.
  15365. case $as_dir in #((
  15366. ./ | /[cC]/* | \
  15367. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15368. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15369. /usr/ucb/* ) ;;
  15370. *)
  15371. # OSF1 and SCO ODT 3.0 have their own names for install.
  15372. # Don't use installbsd from OSF since it installs stuff as root
  15373. # by default.
  15374. for ac_prog in ginstall scoinst install; do
  15375. for ac_exec_ext in '' $ac_executable_extensions; do
  15376. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15377. if test $ac_prog = install &&
  15378. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15379. # AIX install. It has an incompatible calling convention.
  15380. :
  15381. elif test $ac_prog = install &&
  15382. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15383. # program-specific install script used by HP pwplus--don't use.
  15384. :
  15385. else
  15386. rm -rf conftest.one conftest.two conftest.dir
  15387. echo one > conftest.one
  15388. echo two > conftest.two
  15389. mkdir conftest.dir
  15390. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15391. test -s conftest.one && test -s conftest.two &&
  15392. test -s conftest.dir/conftest.one &&
  15393. test -s conftest.dir/conftest.two
  15394. then
  15395. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15396. break 3
  15397. fi
  15398. fi
  15399. fi
  15400. done
  15401. done
  15402. ;;
  15403. esac
  15404. done
  15405. IFS=$as_save_IFS
  15406. rm -rf conftest.one conftest.two conftest.dir
  15407. fi
  15408. if test ${ac_cv_path_install+y}; then
  15409. INSTALL=$ac_cv_path_install
  15410. else
  15411. # As a last resort, use the slow shell script. Don't cache a
  15412. # value for INSTALL within a source directory, because that will
  15413. # break other packages using the cache if that directory is
  15414. # removed, or if the value is a relative name.
  15415. INSTALL=$ac_install_sh
  15416. fi
  15417. fi
  15418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15419. printf "%s\n" "$INSTALL" >&6; }
  15420. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15421. # It thinks the first close brace ends the variable substitution.
  15422. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15423. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15424. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15426. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15427. set x ${MAKE-make}
  15428. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15429. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15430. then :
  15431. printf %s "(cached) " >&6
  15432. else $as_nop
  15433. cat >conftest.make <<\_ACEOF
  15434. SHELL = /bin/sh
  15435. all:
  15436. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15437. _ACEOF
  15438. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15439. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15440. *@@@%%%=?*=@@@%%%*)
  15441. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15442. *)
  15443. eval ac_cv_prog_make_${ac_make}_set=no;;
  15444. esac
  15445. rm -f conftest.make
  15446. fi
  15447. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15449. printf "%s\n" "yes" >&6; }
  15450. SET_MAKE=
  15451. else
  15452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15453. printf "%s\n" "no" >&6; }
  15454. SET_MAKE="MAKE=${MAKE-make}"
  15455. fi
  15456. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15457. if test -n "$ac_tool_prefix"; then
  15458. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15459. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15461. printf %s "checking for $ac_word... " >&6; }
  15462. if test ${ac_cv_path_PKG_CONFIG+y}
  15463. then :
  15464. printf %s "(cached) " >&6
  15465. else $as_nop
  15466. case $PKG_CONFIG in
  15467. [\\/]* | ?:[\\/]*)
  15468. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15469. ;;
  15470. *)
  15471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15472. for as_dir in $PATH
  15473. do
  15474. IFS=$as_save_IFS
  15475. case $as_dir in #(((
  15476. '') as_dir=./ ;;
  15477. */) ;;
  15478. *) as_dir=$as_dir/ ;;
  15479. esac
  15480. for ac_exec_ext in '' $ac_executable_extensions; do
  15481. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15482. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15483. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15484. break 2
  15485. fi
  15486. done
  15487. done
  15488. IFS=$as_save_IFS
  15489. ;;
  15490. esac
  15491. fi
  15492. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15493. if test -n "$PKG_CONFIG"; then
  15494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15495. printf "%s\n" "$PKG_CONFIG" >&6; }
  15496. else
  15497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15498. printf "%s\n" "no" >&6; }
  15499. fi
  15500. fi
  15501. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15502. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15503. # Extract the first word of "pkg-config", so it can be a program name with args.
  15504. set dummy pkg-config; ac_word=$2
  15505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15506. printf %s "checking for $ac_word... " >&6; }
  15507. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15508. then :
  15509. printf %s "(cached) " >&6
  15510. else $as_nop
  15511. case $ac_pt_PKG_CONFIG in
  15512. [\\/]* | ?:[\\/]*)
  15513. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15514. ;;
  15515. *)
  15516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15517. for as_dir in $PATH
  15518. do
  15519. IFS=$as_save_IFS
  15520. case $as_dir in #(((
  15521. '') as_dir=./ ;;
  15522. */) ;;
  15523. *) as_dir=$as_dir/ ;;
  15524. esac
  15525. for ac_exec_ext in '' $ac_executable_extensions; do
  15526. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15527. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15528. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15529. break 2
  15530. fi
  15531. done
  15532. done
  15533. IFS=$as_save_IFS
  15534. ;;
  15535. esac
  15536. fi
  15537. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15538. if test -n "$ac_pt_PKG_CONFIG"; then
  15539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15540. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15541. else
  15542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15543. printf "%s\n" "no" >&6; }
  15544. fi
  15545. if test "x$ac_pt_PKG_CONFIG" = x; then
  15546. PKG_CONFIG=""
  15547. else
  15548. case $cross_compiling:$ac_tool_warned in
  15549. yes:)
  15550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15551. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15552. ac_tool_warned=yes ;;
  15553. esac
  15554. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15555. fi
  15556. else
  15557. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15558. fi
  15559. fi
  15560. if test -n "$PKG_CONFIG"; then
  15561. _pkg_min_version=0.9.0
  15562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15563. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15564. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15566. printf "%s\n" "yes" >&6; }
  15567. else
  15568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15569. printf "%s\n" "no" >&6; }
  15570. PKG_CONFIG=""
  15571. fi
  15572. fi
  15573. if test -z "$AWK" ; then
  15574. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15575. fi
  15576. # Check whether --enable-largefile was given.
  15577. if test ${enable_largefile+y}
  15578. then :
  15579. enableval=$enable_largefile;
  15580. fi
  15581. if test "$enable_largefile" != no; then
  15582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15583. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15584. if test ${ac_cv_sys_largefile_CC+y}
  15585. then :
  15586. printf %s "(cached) " >&6
  15587. else $as_nop
  15588. ac_cv_sys_largefile_CC=no
  15589. if test "$GCC" != yes; then
  15590. ac_save_CC=$CC
  15591. while :; do
  15592. # IRIX 6.2 and later do not support large files by default,
  15593. # so use the C compiler's -n32 option if that helps.
  15594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15595. /* end confdefs.h. */
  15596. #include <sys/types.h>
  15597. /* Check that off_t can represent 2**63 - 1 correctly.
  15598. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15599. since some C++ compilers masquerading as C compilers
  15600. incorrectly reject 9223372036854775807. */
  15601. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15602. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15603. && LARGE_OFF_T % 2147483647 == 1)
  15604. ? 1 : -1];
  15605. int
  15606. main (void)
  15607. {
  15608. ;
  15609. return 0;
  15610. }
  15611. _ACEOF
  15612. if ac_fn_c_try_compile "$LINENO"
  15613. then :
  15614. break
  15615. fi
  15616. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15617. CC="$CC -n32"
  15618. if ac_fn_c_try_compile "$LINENO"
  15619. then :
  15620. ac_cv_sys_largefile_CC=' -n32'; break
  15621. fi
  15622. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15623. break
  15624. done
  15625. CC=$ac_save_CC
  15626. rm -f conftest.$ac_ext
  15627. fi
  15628. fi
  15629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15630. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15631. if test "$ac_cv_sys_largefile_CC" != no; then
  15632. CC=$CC$ac_cv_sys_largefile_CC
  15633. fi
  15634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15635. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15636. if test ${ac_cv_sys_file_offset_bits+y}
  15637. then :
  15638. printf %s "(cached) " >&6
  15639. else $as_nop
  15640. while :; do
  15641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15642. /* end confdefs.h. */
  15643. #include <sys/types.h>
  15644. /* Check that off_t can represent 2**63 - 1 correctly.
  15645. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15646. since some C++ compilers masquerading as C compilers
  15647. incorrectly reject 9223372036854775807. */
  15648. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15649. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15650. && LARGE_OFF_T % 2147483647 == 1)
  15651. ? 1 : -1];
  15652. int
  15653. main (void)
  15654. {
  15655. ;
  15656. return 0;
  15657. }
  15658. _ACEOF
  15659. if ac_fn_c_try_compile "$LINENO"
  15660. then :
  15661. ac_cv_sys_file_offset_bits=no; break
  15662. fi
  15663. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15665. /* end confdefs.h. */
  15666. #define _FILE_OFFSET_BITS 64
  15667. #include <sys/types.h>
  15668. /* Check that off_t can represent 2**63 - 1 correctly.
  15669. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15670. since some C++ compilers masquerading as C compilers
  15671. incorrectly reject 9223372036854775807. */
  15672. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15673. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15674. && LARGE_OFF_T % 2147483647 == 1)
  15675. ? 1 : -1];
  15676. int
  15677. main (void)
  15678. {
  15679. ;
  15680. return 0;
  15681. }
  15682. _ACEOF
  15683. if ac_fn_c_try_compile "$LINENO"
  15684. then :
  15685. ac_cv_sys_file_offset_bits=64; break
  15686. fi
  15687. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15688. ac_cv_sys_file_offset_bits=unknown
  15689. break
  15690. done
  15691. fi
  15692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15693. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15694. case $ac_cv_sys_file_offset_bits in #(
  15695. no | unknown) ;;
  15696. *)
  15697. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15698. ;;
  15699. esac
  15700. rm -rf conftest*
  15701. if test $ac_cv_sys_file_offset_bits = unknown; then
  15702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15703. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15704. if test ${ac_cv_sys_large_files+y}
  15705. then :
  15706. printf %s "(cached) " >&6
  15707. else $as_nop
  15708. while :; do
  15709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15710. /* end confdefs.h. */
  15711. #include <sys/types.h>
  15712. /* Check that off_t can represent 2**63 - 1 correctly.
  15713. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15714. since some C++ compilers masquerading as C compilers
  15715. incorrectly reject 9223372036854775807. */
  15716. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15717. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15718. && LARGE_OFF_T % 2147483647 == 1)
  15719. ? 1 : -1];
  15720. int
  15721. main (void)
  15722. {
  15723. ;
  15724. return 0;
  15725. }
  15726. _ACEOF
  15727. if ac_fn_c_try_compile "$LINENO"
  15728. then :
  15729. ac_cv_sys_large_files=no; break
  15730. fi
  15731. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15733. /* end confdefs.h. */
  15734. #define _LARGE_FILES 1
  15735. #include <sys/types.h>
  15736. /* Check that off_t can represent 2**63 - 1 correctly.
  15737. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15738. since some C++ compilers masquerading as C compilers
  15739. incorrectly reject 9223372036854775807. */
  15740. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15741. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15742. && LARGE_OFF_T % 2147483647 == 1)
  15743. ? 1 : -1];
  15744. int
  15745. main (void)
  15746. {
  15747. ;
  15748. return 0;
  15749. }
  15750. _ACEOF
  15751. if ac_fn_c_try_compile "$LINENO"
  15752. then :
  15753. ac_cv_sys_large_files=1; break
  15754. fi
  15755. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15756. ac_cv_sys_large_files=unknown
  15757. break
  15758. done
  15759. fi
  15760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15761. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15762. case $ac_cv_sys_large_files in #(
  15763. no | unknown) ;;
  15764. *)
  15765. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15766. ;;
  15767. esac
  15768. rm -rf conftest*
  15769. fi
  15770. fi
  15771. case "$host" in
  15772. *-*-mingw*)
  15773. # Except on msys, where make can't handle full pathnames (bug 1972)
  15774. ;;
  15775. *)
  15776. srcdir=`cd $srcdir && pwd`
  15777. ;;
  15778. esac
  15779. INCLUDE="-I$srcdir/include"
  15780. case "$host" in
  15781. *-*-nto-qnx*)
  15782. ;;
  15783. *)
  15784. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15785. ;;
  15786. esac
  15787. case "$host" in
  15788. *-*-haiku*)
  15789. LINKER='$(CXX)'
  15790. LIBTOOLLINKERTAG='CXX'
  15791. ;;
  15792. *)
  15793. LINKER='$(CC)'
  15794. LIBTOOLLINKERTAG='CC'
  15795. ;;
  15796. esac
  15797. if test x$srcdir != x.; then
  15798. INCLUDE="-Iinclude $INCLUDE"
  15799. elif test -d .git; then
  15800. as_fn_error $? "
  15801. *** When building from a git clone you should configure and build in a
  15802. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15803. " "$LINENO" 5
  15804. fi
  15805. BASE_CFLAGS=""
  15806. BASE_LDFLAGS=""
  15807. case "$host" in
  15808. *-*-cygwin*)
  15809. # We build SDL on cygwin without the UNIX emulation layer
  15810. save_CFLAGS="$CFLAGS"
  15811. have_no_cygwin=no
  15812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15813. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15814. CFLAGS="$save_CFLAGS -mno-cygwin"
  15815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15816. /* end confdefs.h. */
  15817. int
  15818. main (void)
  15819. {
  15820. ;
  15821. return 0;
  15822. }
  15823. _ACEOF
  15824. if ac_fn_c_try_compile "$LINENO"
  15825. then :
  15826. have_no_cygwin=yes
  15827. fi
  15828. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15830. printf "%s\n" "$have_no_cygwin" >&6; }
  15831. CFLAGS="$save_CFLAGS"
  15832. if test x$have_no_cygwin = xyes; then
  15833. BASE_CFLAGS="-mno-cygwin"
  15834. BASE_LDFLAGS="-mno-cygwin"
  15835. fi
  15836. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15837. ;;
  15838. esac
  15839. # Uncomment the following line if you want to force SDL and applications
  15840. # built with it to be compiled for a particular architecture.
  15841. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15842. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15843. # The default optimization for SDL is -O3 (Bug #31)
  15844. if test "x$orig_CFLAGS" = x; then
  15845. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15846. fi
  15847. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15848. BUILD_LDFLAGS="$LDFLAGS"
  15849. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15850. ## These are common directories to find software packages
  15851. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15852. # if test -d $path/include; then
  15853. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15854. # fi
  15855. # if test -d $path/lib; then
  15856. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15857. # fi
  15858. #done
  15859. SDL_CFLAGS="$BASE_CFLAGS"
  15860. SDL_LIBS="-lSDL2"
  15861. if test "x$BASE_LDFLAGS" != x; then
  15862. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15863. fi
  15864. if test "x$EXTRA_CFLAGS" != x; then
  15865. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15866. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15867. fi
  15868. if test "x$EXTRA_LDFLAGS" != x; then
  15869. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15870. fi
  15871. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15872. find_lib()
  15873. {
  15874. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15875. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15876. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15877. if test "$cross_compiling" = yes; then
  15878. host_lib_path=""
  15879. else
  15880. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15881. fi
  15882. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15883. 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`
  15884. if test x$lib != x; then
  15885. echo $lib
  15886. return
  15887. fi
  15888. done
  15889. }
  15890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15891. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15892. if test ${ac_cv_c_const+y}
  15893. then :
  15894. printf %s "(cached) " >&6
  15895. else $as_nop
  15896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15897. /* end confdefs.h. */
  15898. int
  15899. main (void)
  15900. {
  15901. #ifndef __cplusplus
  15902. /* Ultrix mips cc rejects this sort of thing. */
  15903. typedef int charset[2];
  15904. const charset cs = { 0, 0 };
  15905. /* SunOS 4.1.1 cc rejects this. */
  15906. char const *const *pcpcc;
  15907. char **ppc;
  15908. /* NEC SVR4.0.2 mips cc rejects this. */
  15909. struct point {int x, y;};
  15910. static struct point const zero = {0,0};
  15911. /* IBM XL C 1.02.0.0 rejects this.
  15912. It does not let you subtract one const X* pointer from another in
  15913. an arm of an if-expression whose if-part is not a constant
  15914. expression */
  15915. const char *g = "string";
  15916. pcpcc = &g + (g ? g-g : 0);
  15917. /* HPUX 7.0 cc rejects these. */
  15918. ++pcpcc;
  15919. ppc = (char**) pcpcc;
  15920. pcpcc = (char const *const *) ppc;
  15921. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15922. char tx;
  15923. char *t = &tx;
  15924. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15925. *t++ = 0;
  15926. if (s) return 0;
  15927. }
  15928. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15929. int x[] = {25, 17};
  15930. const int *foo = &x[0];
  15931. ++foo;
  15932. }
  15933. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15934. typedef const int *iptr;
  15935. iptr p = 0;
  15936. ++p;
  15937. }
  15938. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15939. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15940. struct s { int j; const int *ap[3]; } bx;
  15941. struct s *b = &bx; b->j = 5;
  15942. }
  15943. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15944. const int foo = 10;
  15945. if (!foo) return 0;
  15946. }
  15947. return !cs[0] && !zero.x;
  15948. #endif
  15949. ;
  15950. return 0;
  15951. }
  15952. _ACEOF
  15953. if ac_fn_c_try_compile "$LINENO"
  15954. then :
  15955. ac_cv_c_const=yes
  15956. else $as_nop
  15957. ac_cv_c_const=no
  15958. fi
  15959. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15960. fi
  15961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15962. printf "%s\n" "$ac_cv_c_const" >&6; }
  15963. if test $ac_cv_c_const = no; then
  15964. printf "%s\n" "#define const /**/" >>confdefs.h
  15965. fi
  15966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15967. printf %s "checking for inline... " >&6; }
  15968. if test ${ac_cv_c_inline+y}
  15969. then :
  15970. printf %s "(cached) " >&6
  15971. else $as_nop
  15972. ac_cv_c_inline=no
  15973. for ac_kw in inline __inline__ __inline; do
  15974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15975. /* end confdefs.h. */
  15976. #ifndef __cplusplus
  15977. typedef int foo_t;
  15978. static $ac_kw foo_t static_foo (void) {return 0; }
  15979. $ac_kw foo_t foo (void) {return 0; }
  15980. #endif
  15981. _ACEOF
  15982. if ac_fn_c_try_compile "$LINENO"
  15983. then :
  15984. ac_cv_c_inline=$ac_kw
  15985. fi
  15986. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15987. test "$ac_cv_c_inline" != no && break
  15988. done
  15989. fi
  15990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15991. printf "%s\n" "$ac_cv_c_inline" >&6; }
  15992. case $ac_cv_c_inline in
  15993. inline | yes) ;;
  15994. *)
  15995. case $ac_cv_c_inline in
  15996. no) ac_val=;;
  15997. *) ac_val=$ac_cv_c_inline;;
  15998. esac
  15999. cat >>confdefs.h <<_ACEOF
  16000. #ifndef __cplusplus
  16001. #define inline $ac_val
  16002. #endif
  16003. _ACEOF
  16004. ;;
  16005. esac
  16006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16007. printf %s "checking for working volatile... " >&6; }
  16008. if test ${ac_cv_c_volatile+y}
  16009. then :
  16010. printf %s "(cached) " >&6
  16011. else $as_nop
  16012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16013. /* end confdefs.h. */
  16014. int
  16015. main (void)
  16016. {
  16017. volatile int x;
  16018. int * volatile y = (int *) 0;
  16019. return !x && !y;
  16020. ;
  16021. return 0;
  16022. }
  16023. _ACEOF
  16024. if ac_fn_c_try_compile "$LINENO"
  16025. then :
  16026. ac_cv_c_volatile=yes
  16027. else $as_nop
  16028. ac_cv_c_volatile=no
  16029. fi
  16030. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16031. fi
  16032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16033. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16034. if test $ac_cv_c_volatile = no; then
  16035. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16036. fi
  16037. # Check whether --enable-assertions was given.
  16038. if test ${enable_assertions+y}
  16039. then :
  16040. enableval=$enable_assertions;
  16041. else $as_nop
  16042. enable_assertions=auto
  16043. fi
  16044. case "$enable_assertions" in
  16045. auto) # Use optimization settings to determine assertion level
  16046. ;;
  16047. disabled)
  16048. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16049. ;;
  16050. release)
  16051. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16052. ;;
  16053. enabled)
  16054. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16055. ;;
  16056. paranoid)
  16057. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16058. ;;
  16059. *)
  16060. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16061. ;;
  16062. esac
  16063. 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"
  16064. # Check whether --enable-dependency-tracking was given.
  16065. if test ${enable_dependency_tracking+y}
  16066. then :
  16067. enableval=$enable_dependency_tracking;
  16068. else $as_nop
  16069. enable_dependency_tracking=yes
  16070. fi
  16071. if test x$enable_dependency_tracking = xyes; then
  16072. have_gcc_mmd_mt=no
  16073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16074. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16076. /* end confdefs.h. */
  16077. #if !defined(__GNUC__) || __GNUC__ < 3
  16078. #error Dependency tracking requires GCC 3.0 or newer
  16079. #endif
  16080. int
  16081. main (void)
  16082. {
  16083. ;
  16084. return 0;
  16085. }
  16086. _ACEOF
  16087. if ac_fn_c_try_compile "$LINENO"
  16088. then :
  16089. have_gcc_mmd_mt=yes
  16090. fi
  16091. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16093. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16094. if test x$have_gcc_mmd_mt = xyes; then
  16095. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16096. fi
  16097. fi
  16098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16099. printf %s "checking for linker option --no-undefined... " >&6; }
  16100. have_no_undefined=no
  16101. case "$host" in
  16102. *-*-openbsd*)
  16103. ;;
  16104. *)
  16105. save_LDFLAGS="$LDFLAGS"
  16106. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16108. /* end confdefs.h. */
  16109. int
  16110. main (void)
  16111. {
  16112. ;
  16113. return 0;
  16114. }
  16115. _ACEOF
  16116. if ac_fn_c_try_link "$LINENO"
  16117. then :
  16118. have_no_undefined=yes
  16119. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16120. fi
  16121. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16122. conftest$ac_exeext conftest.$ac_ext
  16123. LDFLAGS="$save_LDFLAGS"
  16124. ;;
  16125. esac
  16126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16127. printf "%s\n" "$have_no_undefined" >&6; }
  16128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16129. printf %s "checking for linker option --dynamicbase... " >&6; }
  16130. have_dynamicbase=no
  16131. case "$host" in
  16132. *)
  16133. save_LDFLAGS="$LDFLAGS"
  16134. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16136. /* end confdefs.h. */
  16137. int
  16138. main (void)
  16139. {
  16140. ;
  16141. return 0;
  16142. }
  16143. _ACEOF
  16144. if ac_fn_c_try_link "$LINENO"
  16145. then :
  16146. have_dynamicbase=yes
  16147. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16148. fi
  16149. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16150. conftest$ac_exeext conftest.$ac_ext
  16151. LDFLAGS="$save_LDFLAGS"
  16152. ;;
  16153. esac
  16154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16155. printf "%s\n" "$have_dynamicbase" >&6; }
  16156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16157. printf %s "checking for linker option --nxcompat... " >&6; }
  16158. have_nxcompat=no
  16159. case "$host" in
  16160. *)
  16161. save_LDFLAGS="$LDFLAGS"
  16162. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16164. /* end confdefs.h. */
  16165. int
  16166. main (void)
  16167. {
  16168. ;
  16169. return 0;
  16170. }
  16171. _ACEOF
  16172. if ac_fn_c_try_link "$LINENO"
  16173. then :
  16174. have_nxcompat=yes
  16175. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16176. fi
  16177. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16178. conftest$ac_exeext conftest.$ac_ext
  16179. LDFLAGS="$save_LDFLAGS"
  16180. ;;
  16181. esac
  16182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16183. printf "%s\n" "$have_nxcompat" >&6; }
  16184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16185. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16186. have_high_entropy_va=no
  16187. case "$host" in
  16188. *)
  16189. save_LDFLAGS="$LDFLAGS"
  16190. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16192. /* end confdefs.h. */
  16193. int
  16194. main (void)
  16195. {
  16196. ;
  16197. return 0;
  16198. }
  16199. _ACEOF
  16200. if ac_fn_c_try_link "$LINENO"
  16201. then :
  16202. have_high_entropy_va=yes
  16203. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16204. fi
  16205. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16206. conftest$ac_exeext conftest.$ac_ext
  16207. LDFLAGS="$save_LDFLAGS"
  16208. ;;
  16209. esac
  16210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16211. printf "%s\n" "$have_high_entropy_va" >&6; }
  16212. # Check whether --enable-libc was given.
  16213. if test ${enable_libc+y}
  16214. then :
  16215. enableval=$enable_libc;
  16216. else $as_nop
  16217. enable_libc=yes
  16218. fi
  16219. if test x$enable_libc = xyes; then
  16220. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16221. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16222. if test "x$ac_cv_header_sys_types_h" = xyes
  16223. then :
  16224. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16225. fi
  16226. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16227. if test "x$ac_cv_header_stdio_h" = xyes
  16228. then :
  16229. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16230. fi
  16231. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16232. if test "x$ac_cv_header_stdlib_h" = xyes
  16233. then :
  16234. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16235. fi
  16236. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16237. if test "x$ac_cv_header_stddef_h" = xyes
  16238. then :
  16239. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16240. fi
  16241. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16242. if test "x$ac_cv_header_stdarg_h" = xyes
  16243. then :
  16244. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16245. fi
  16246. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16247. if test "x$ac_cv_header_malloc_h" = xyes
  16248. then :
  16249. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16250. fi
  16251. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16252. if test "x$ac_cv_header_memory_h" = xyes
  16253. then :
  16254. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16255. fi
  16256. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16257. if test "x$ac_cv_header_string_h" = xyes
  16258. then :
  16259. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16260. fi
  16261. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16262. if test "x$ac_cv_header_strings_h" = xyes
  16263. then :
  16264. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16265. fi
  16266. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16267. if test "x$ac_cv_header_wchar_h" = xyes
  16268. then :
  16269. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16270. fi
  16271. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16272. if test "x$ac_cv_header_inttypes_h" = xyes
  16273. then :
  16274. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16275. fi
  16276. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16277. if test "x$ac_cv_header_stdint_h" = xyes
  16278. then :
  16279. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16280. fi
  16281. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16282. if test "x$ac_cv_header_limits_h" = xyes
  16283. then :
  16284. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16285. fi
  16286. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16287. if test "x$ac_cv_header_ctype_h" = xyes
  16288. then :
  16289. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16290. fi
  16291. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16292. if test "x$ac_cv_header_math_h" = xyes
  16293. then :
  16294. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16295. fi
  16296. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16297. if test "x$ac_cv_header_float_h" = xyes
  16298. then :
  16299. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16300. fi
  16301. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16302. if test "x$ac_cv_header_iconv_h" = xyes
  16303. then :
  16304. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16305. fi
  16306. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16307. if test "x$ac_cv_header_signal_h" = xyes
  16308. then :
  16309. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16310. fi
  16311. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16312. if test "x$ac_cv_type_size_t" = xyes
  16313. then :
  16314. else $as_nop
  16315. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16316. fi
  16317. ac_ext=c
  16318. ac_cpp='$CPP $CPPFLAGS'
  16319. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16320. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16321. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16323. printf %s "checking how to run the C preprocessor... " >&6; }
  16324. # On Suns, sometimes $CPP names a directory.
  16325. if test -n "$CPP" && test -d "$CPP"; then
  16326. CPP=
  16327. fi
  16328. if test -z "$CPP"; then
  16329. if test ${ac_cv_prog_CPP+y}
  16330. then :
  16331. printf %s "(cached) " >&6
  16332. else $as_nop
  16333. # Double quotes because $CC needs to be expanded
  16334. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16335. do
  16336. ac_preproc_ok=false
  16337. for ac_c_preproc_warn_flag in '' yes
  16338. do
  16339. # Use a header file that comes with gcc, so configuring glibc
  16340. # with a fresh cross-compiler works.
  16341. # On the NeXT, cc -E runs the code through the compiler's parser,
  16342. # not just through cpp. "Syntax error" is here to catch this case.
  16343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16344. /* end confdefs.h. */
  16345. #include <limits.h>
  16346. Syntax error
  16347. _ACEOF
  16348. if ac_fn_c_try_cpp "$LINENO"
  16349. then :
  16350. else $as_nop
  16351. # Broken: fails on valid input.
  16352. continue
  16353. fi
  16354. rm -f conftest.err conftest.i conftest.$ac_ext
  16355. # OK, works on sane cases. Now check whether nonexistent headers
  16356. # can be detected and how.
  16357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16358. /* end confdefs.h. */
  16359. #include <ac_nonexistent.h>
  16360. _ACEOF
  16361. if ac_fn_c_try_cpp "$LINENO"
  16362. then :
  16363. # Broken: success on invalid input.
  16364. continue
  16365. else $as_nop
  16366. # Passes both tests.
  16367. ac_preproc_ok=:
  16368. break
  16369. fi
  16370. rm -f conftest.err conftest.i conftest.$ac_ext
  16371. done
  16372. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16373. rm -f conftest.i conftest.err conftest.$ac_ext
  16374. if $ac_preproc_ok
  16375. then :
  16376. break
  16377. fi
  16378. done
  16379. ac_cv_prog_CPP=$CPP
  16380. fi
  16381. CPP=$ac_cv_prog_CPP
  16382. else
  16383. ac_cv_prog_CPP=$CPP
  16384. fi
  16385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16386. printf "%s\n" "$CPP" >&6; }
  16387. ac_preproc_ok=false
  16388. for ac_c_preproc_warn_flag in '' yes
  16389. do
  16390. # Use a header file that comes with gcc, so configuring glibc
  16391. # with a fresh cross-compiler works.
  16392. # On the NeXT, cc -E runs the code through the compiler's parser,
  16393. # not just through cpp. "Syntax error" is here to catch this case.
  16394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16395. /* end confdefs.h. */
  16396. #include <limits.h>
  16397. Syntax error
  16398. _ACEOF
  16399. if ac_fn_c_try_cpp "$LINENO"
  16400. then :
  16401. else $as_nop
  16402. # Broken: fails on valid input.
  16403. continue
  16404. fi
  16405. rm -f conftest.err conftest.i conftest.$ac_ext
  16406. # OK, works on sane cases. Now check whether nonexistent headers
  16407. # can be detected and how.
  16408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16409. /* end confdefs.h. */
  16410. #include <ac_nonexistent.h>
  16411. _ACEOF
  16412. if ac_fn_c_try_cpp "$LINENO"
  16413. then :
  16414. # Broken: success on invalid input.
  16415. continue
  16416. else $as_nop
  16417. # Passes both tests.
  16418. ac_preproc_ok=:
  16419. break
  16420. fi
  16421. rm -f conftest.err conftest.i conftest.$ac_ext
  16422. done
  16423. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16424. rm -f conftest.i conftest.err conftest.$ac_ext
  16425. if $ac_preproc_ok
  16426. then :
  16427. else $as_nop
  16428. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16429. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16430. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16431. See \`config.log' for more details" "$LINENO" 5; }
  16432. fi
  16433. ac_ext=c
  16434. ac_cpp='$CPP $CPPFLAGS'
  16435. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16436. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16437. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16439. printf %s "checking for M_PI in math.h... " >&6; }
  16440. if test ${ac_cv_define_M_PI+y}
  16441. then :
  16442. printf %s "(cached) " >&6
  16443. else $as_nop
  16444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16445. /* end confdefs.h. */
  16446. #include <math.h>
  16447. #ifdef M_PI
  16448. YES_IS_DEFINED
  16449. #endif
  16450. _ACEOF
  16451. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16452. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16453. then :
  16454. ac_cv_define_M_PI=yes
  16455. else $as_nop
  16456. ac_cv_define_M_PI=no
  16457. fi
  16458. rm -rf conftest*
  16459. fi
  16460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16461. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16462. if test "$ac_cv_define_M_PI" = "yes" ; then
  16463. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16464. fi
  16465. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16466. # for constant arguments. Useless!
  16467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16468. printf %s "checking for working alloca.h... " >&6; }
  16469. if test ${ac_cv_working_alloca_h+y}
  16470. then :
  16471. printf %s "(cached) " >&6
  16472. else $as_nop
  16473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16474. /* end confdefs.h. */
  16475. #include <alloca.h>
  16476. int
  16477. main (void)
  16478. {
  16479. char *p = (char *) alloca (2 * sizeof (int));
  16480. if (p) return 0;
  16481. ;
  16482. return 0;
  16483. }
  16484. _ACEOF
  16485. if ac_fn_c_try_link "$LINENO"
  16486. then :
  16487. ac_cv_working_alloca_h=yes
  16488. else $as_nop
  16489. ac_cv_working_alloca_h=no
  16490. fi
  16491. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16492. conftest$ac_exeext conftest.$ac_ext
  16493. fi
  16494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16495. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16496. if test $ac_cv_working_alloca_h = yes; then
  16497. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16498. fi
  16499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16500. printf %s "checking for alloca... " >&6; }
  16501. if test ${ac_cv_func_alloca_works+y}
  16502. then :
  16503. printf %s "(cached) " >&6
  16504. else $as_nop
  16505. if test $ac_cv_working_alloca_h = yes; then
  16506. ac_cv_func_alloca_works=yes
  16507. else
  16508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16509. /* end confdefs.h. */
  16510. #include <stdlib.h>
  16511. #include <stddef.h>
  16512. #ifndef alloca
  16513. # ifdef __GNUC__
  16514. # define alloca __builtin_alloca
  16515. # elif defined _MSC_VER
  16516. # include <malloc.h>
  16517. # define alloca _alloca
  16518. # else
  16519. # ifdef __cplusplus
  16520. extern "C"
  16521. # endif
  16522. void *alloca (size_t);
  16523. # endif
  16524. #endif
  16525. int
  16526. main (void)
  16527. {
  16528. char *p = (char *) alloca (1);
  16529. if (p) return 0;
  16530. ;
  16531. return 0;
  16532. }
  16533. _ACEOF
  16534. if ac_fn_c_try_link "$LINENO"
  16535. then :
  16536. ac_cv_func_alloca_works=yes
  16537. else $as_nop
  16538. ac_cv_func_alloca_works=no
  16539. fi
  16540. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16541. conftest$ac_exeext conftest.$ac_ext
  16542. fi
  16543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16544. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16545. fi
  16546. if test $ac_cv_func_alloca_works = yes; then
  16547. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16548. else
  16549. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16550. # that cause trouble. Some versions do not even contain alloca or
  16551. # contain a buggy version. If you still want to use their alloca,
  16552. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16553. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16554. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16556. printf %s "checking stack direction for C alloca... " >&6; }
  16557. if test ${ac_cv_c_stack_direction+y}
  16558. then :
  16559. printf %s "(cached) " >&6
  16560. else $as_nop
  16561. if test "$cross_compiling" = yes
  16562. then :
  16563. ac_cv_c_stack_direction=0
  16564. else $as_nop
  16565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16566. /* end confdefs.h. */
  16567. $ac_includes_default
  16568. int
  16569. find_stack_direction (int *addr, int depth)
  16570. {
  16571. int dir, dummy = 0;
  16572. if (! addr)
  16573. addr = &dummy;
  16574. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16575. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16576. return dir + dummy;
  16577. }
  16578. int
  16579. main (int argc, char **argv)
  16580. {
  16581. return find_stack_direction (0, argc + !argv + 20) < 0;
  16582. }
  16583. _ACEOF
  16584. if ac_fn_c_try_run "$LINENO"
  16585. then :
  16586. ac_cv_c_stack_direction=1
  16587. else $as_nop
  16588. ac_cv_c_stack_direction=-1
  16589. fi
  16590. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16591. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16592. fi
  16593. fi
  16594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16595. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16596. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16597. fi
  16598. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16599. if test "x$ac_cv_func_mprotect" = xyes
  16600. then :
  16601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16602. /* end confdefs.h. */
  16603. #include <sys/types.h>
  16604. #include <sys/mman.h>
  16605. int
  16606. main (void)
  16607. {
  16608. ;
  16609. return 0;
  16610. }
  16611. _ACEOF
  16612. if ac_fn_c_try_compile "$LINENO"
  16613. then :
  16614. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16615. fi
  16616. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16617. fi
  16618. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16619. if test "x$ac_cv_func_malloc" = xyes
  16620. then :
  16621. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16622. fi
  16623. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16624. if test "x$ac_cv_func_calloc" = xyes
  16625. then :
  16626. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16627. fi
  16628. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16629. if test "x$ac_cv_func_realloc" = xyes
  16630. then :
  16631. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16632. fi
  16633. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16634. if test "x$ac_cv_func_free" = xyes
  16635. then :
  16636. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16637. fi
  16638. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16639. if test "x$ac_cv_func_getenv" = xyes
  16640. then :
  16641. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16642. fi
  16643. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16644. if test "x$ac_cv_func_setenv" = xyes
  16645. then :
  16646. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16647. fi
  16648. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16649. if test "x$ac_cv_func_putenv" = xyes
  16650. then :
  16651. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16652. fi
  16653. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16654. if test "x$ac_cv_func_unsetenv" = xyes
  16655. then :
  16656. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16657. fi
  16658. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16659. if test "x$ac_cv_func_bsearch" = xyes
  16660. then :
  16661. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16662. fi
  16663. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16664. if test "x$ac_cv_func_qsort" = xyes
  16665. then :
  16666. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16667. fi
  16668. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16669. if test "x$ac_cv_func_abs" = xyes
  16670. then :
  16671. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16672. fi
  16673. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16674. if test "x$ac_cv_func_bcopy" = xyes
  16675. then :
  16676. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16677. fi
  16678. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16679. if test "x$ac_cv_func_memset" = xyes
  16680. then :
  16681. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16682. fi
  16683. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16684. if test "x$ac_cv_func_memcmp" = xyes
  16685. then :
  16686. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16687. fi
  16688. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16689. if test "x$ac_cv_func_memcpy" = xyes
  16690. then :
  16691. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16692. fi
  16693. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16694. if test "x$ac_cv_func_memmove" = xyes
  16695. then :
  16696. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16697. fi
  16698. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16699. if test "x$ac_cv_func_wcslen" = xyes
  16700. then :
  16701. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16702. fi
  16703. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16704. if test "x$ac_cv_func_wcslcpy" = xyes
  16705. then :
  16706. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16707. fi
  16708. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16709. if test "x$ac_cv_func_wcslcat" = xyes
  16710. then :
  16711. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16712. fi
  16713. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16714. if test "x$ac_cv_func__wcsdup" = xyes
  16715. then :
  16716. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16717. fi
  16718. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16719. if test "x$ac_cv_func_wcsdup" = xyes
  16720. then :
  16721. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16722. fi
  16723. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16724. if test "x$ac_cv_func_wcsstr" = xyes
  16725. then :
  16726. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16727. fi
  16728. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16729. if test "x$ac_cv_func_wcscmp" = xyes
  16730. then :
  16731. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16732. fi
  16733. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16734. if test "x$ac_cv_func_wcsncmp" = xyes
  16735. then :
  16736. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16737. fi
  16738. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16739. if test "x$ac_cv_func_wcscasecmp" = xyes
  16740. then :
  16741. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16742. fi
  16743. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16744. if test "x$ac_cv_func__wcsicmp" = xyes
  16745. then :
  16746. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16747. fi
  16748. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16749. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16750. then :
  16751. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16752. fi
  16753. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16754. if test "x$ac_cv_func__wcsnicmp" = xyes
  16755. then :
  16756. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16757. fi
  16758. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16759. if test "x$ac_cv_func_strlen" = xyes
  16760. then :
  16761. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16762. fi
  16763. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16764. if test "x$ac_cv_func_strlcpy" = xyes
  16765. then :
  16766. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16767. fi
  16768. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16769. if test "x$ac_cv_func_strlcat" = xyes
  16770. then :
  16771. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16772. fi
  16773. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16774. if test "x$ac_cv_func__strrev" = xyes
  16775. then :
  16776. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16777. fi
  16778. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16779. if test "x$ac_cv_func__strupr" = xyes
  16780. then :
  16781. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16782. fi
  16783. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16784. if test "x$ac_cv_func__strlwr" = xyes
  16785. then :
  16786. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16787. fi
  16788. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16789. if test "x$ac_cv_func_index" = xyes
  16790. then :
  16791. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16792. fi
  16793. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16794. if test "x$ac_cv_func_rindex" = xyes
  16795. then :
  16796. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16797. fi
  16798. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16799. if test "x$ac_cv_func_strchr" = xyes
  16800. then :
  16801. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16802. fi
  16803. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16804. if test "x$ac_cv_func_strrchr" = xyes
  16805. then :
  16806. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16807. fi
  16808. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16809. if test "x$ac_cv_func_strstr" = xyes
  16810. then :
  16811. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16812. fi
  16813. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16814. if test "x$ac_cv_func_strtok_r" = xyes
  16815. then :
  16816. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16817. fi
  16818. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16819. if test "x$ac_cv_func_itoa" = xyes
  16820. then :
  16821. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16822. fi
  16823. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16824. if test "x$ac_cv_func__ltoa" = xyes
  16825. then :
  16826. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16827. fi
  16828. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16829. if test "x$ac_cv_func__uitoa" = xyes
  16830. then :
  16831. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16832. fi
  16833. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16834. if test "x$ac_cv_func__ultoa" = xyes
  16835. then :
  16836. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16837. fi
  16838. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16839. if test "x$ac_cv_func_strtod" = xyes
  16840. then :
  16841. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16842. fi
  16843. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16844. if test "x$ac_cv_func_strtol" = xyes
  16845. then :
  16846. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16847. fi
  16848. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16849. if test "x$ac_cv_func_strtoul" = xyes
  16850. then :
  16851. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16852. fi
  16853. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16854. if test "x$ac_cv_func__i64toa" = xyes
  16855. then :
  16856. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16857. fi
  16858. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16859. if test "x$ac_cv_func__ui64toa" = xyes
  16860. then :
  16861. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16862. fi
  16863. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16864. if test "x$ac_cv_func_strtoll" = xyes
  16865. then :
  16866. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16867. fi
  16868. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16869. if test "x$ac_cv_func_strtoull" = xyes
  16870. then :
  16871. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16872. fi
  16873. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16874. if test "x$ac_cv_func_atoi" = xyes
  16875. then :
  16876. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16877. fi
  16878. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16879. if test "x$ac_cv_func_atof" = xyes
  16880. then :
  16881. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16882. fi
  16883. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16884. if test "x$ac_cv_func_strcmp" = xyes
  16885. then :
  16886. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16887. fi
  16888. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16889. if test "x$ac_cv_func_strncmp" = xyes
  16890. then :
  16891. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16892. fi
  16893. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16894. if test "x$ac_cv_func__stricmp" = xyes
  16895. then :
  16896. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16897. fi
  16898. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16899. if test "x$ac_cv_func_strcasecmp" = xyes
  16900. then :
  16901. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16902. fi
  16903. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16904. if test "x$ac_cv_func__strnicmp" = xyes
  16905. then :
  16906. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16907. fi
  16908. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16909. if test "x$ac_cv_func_strncasecmp" = xyes
  16910. then :
  16911. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16912. fi
  16913. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16914. if test "x$ac_cv_func_vsscanf" = xyes
  16915. then :
  16916. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16917. fi
  16918. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16919. if test "x$ac_cv_func_vsnprintf" = xyes
  16920. then :
  16921. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16922. fi
  16923. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16924. if test "x$ac_cv_func_fopen64" = xyes
  16925. then :
  16926. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16927. fi
  16928. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  16929. if test "x$ac_cv_func_fseeko" = xyes
  16930. then :
  16931. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16932. fi
  16933. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  16934. if test "x$ac_cv_func_fseeko64" = xyes
  16935. then :
  16936. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  16937. fi
  16938. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  16939. if test "x$ac_cv_func_sigaction" = xyes
  16940. then :
  16941. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  16942. fi
  16943. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  16944. if test "x$ac_cv_func_setjmp" = xyes
  16945. then :
  16946. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  16947. fi
  16948. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  16949. if test "x$ac_cv_func_nanosleep" = xyes
  16950. then :
  16951. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  16952. fi
  16953. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  16954. if test "x$ac_cv_func_sysconf" = xyes
  16955. then :
  16956. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  16957. fi
  16958. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  16959. if test "x$ac_cv_func_sysctlbyname" = xyes
  16960. then :
  16961. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  16962. fi
  16963. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  16964. if test "x$ac_cv_func_getauxval" = xyes
  16965. then :
  16966. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  16967. fi
  16968. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  16969. if test "x$ac_cv_func_elf_aux_info" = xyes
  16970. then :
  16971. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  16972. fi
  16973. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  16974. if test "x$ac_cv_func_poll" = xyes
  16975. then :
  16976. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  16977. fi
  16978. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  16979. if test "x$ac_cv_func__Exit" = xyes
  16980. then :
  16981. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  16982. fi
  16983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  16984. printf %s "checking for pow in -lm... " >&6; }
  16985. if test ${ac_cv_lib_m_pow+y}
  16986. then :
  16987. printf %s "(cached) " >&6
  16988. else $as_nop
  16989. ac_check_lib_save_LIBS=$LIBS
  16990. LIBS="-lm $LIBS"
  16991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16992. /* end confdefs.h. */
  16993. /* Override any GCC internal prototype to avoid an error.
  16994. Use char because int might match the return type of a GCC
  16995. builtin and then its argument prototype would still apply. */
  16996. char pow ();
  16997. int
  16998. main (void)
  16999. {
  17000. return pow ();
  17001. ;
  17002. return 0;
  17003. }
  17004. _ACEOF
  17005. if ac_fn_c_try_link "$LINENO"
  17006. then :
  17007. ac_cv_lib_m_pow=yes
  17008. else $as_nop
  17009. ac_cv_lib_m_pow=no
  17010. fi
  17011. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17012. conftest$ac_exeext conftest.$ac_ext
  17013. LIBS=$ac_check_lib_save_LIBS
  17014. fi
  17015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17016. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17017. if test "x$ac_cv_lib_m_pow" = xyes
  17018. then :
  17019. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17020. fi
  17021. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17022. if test "x$ac_cv_func_acos" = xyes
  17023. then :
  17024. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17025. fi
  17026. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17027. if test "x$ac_cv_func_acosf" = xyes
  17028. then :
  17029. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17030. fi
  17031. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17032. if test "x$ac_cv_func_asin" = xyes
  17033. then :
  17034. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17035. fi
  17036. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17037. if test "x$ac_cv_func_asinf" = xyes
  17038. then :
  17039. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17040. fi
  17041. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17042. if test "x$ac_cv_func_atan" = xyes
  17043. then :
  17044. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17045. fi
  17046. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17047. if test "x$ac_cv_func_atanf" = xyes
  17048. then :
  17049. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17050. fi
  17051. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17052. if test "x$ac_cv_func_atan2" = xyes
  17053. then :
  17054. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17055. fi
  17056. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17057. if test "x$ac_cv_func_atan2f" = xyes
  17058. then :
  17059. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17060. fi
  17061. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17062. if test "x$ac_cv_func_ceil" = xyes
  17063. then :
  17064. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17065. fi
  17066. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17067. if test "x$ac_cv_func_ceilf" = xyes
  17068. then :
  17069. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17070. fi
  17071. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17072. if test "x$ac_cv_func_copysign" = xyes
  17073. then :
  17074. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17075. fi
  17076. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17077. if test "x$ac_cv_func_copysignf" = xyes
  17078. then :
  17079. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17080. fi
  17081. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17082. if test "x$ac_cv_func_cos" = xyes
  17083. then :
  17084. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17085. fi
  17086. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17087. if test "x$ac_cv_func_cosf" = xyes
  17088. then :
  17089. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17090. fi
  17091. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17092. if test "x$ac_cv_func_exp" = xyes
  17093. then :
  17094. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17095. fi
  17096. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17097. if test "x$ac_cv_func_expf" = xyes
  17098. then :
  17099. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17100. fi
  17101. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17102. if test "x$ac_cv_func_fabs" = xyes
  17103. then :
  17104. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17105. fi
  17106. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17107. if test "x$ac_cv_func_fabsf" = xyes
  17108. then :
  17109. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17110. fi
  17111. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17112. if test "x$ac_cv_func_floor" = xyes
  17113. then :
  17114. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17115. fi
  17116. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17117. if test "x$ac_cv_func_floorf" = xyes
  17118. then :
  17119. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17120. fi
  17121. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17122. if test "x$ac_cv_func_trunc" = xyes
  17123. then :
  17124. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17125. fi
  17126. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17127. if test "x$ac_cv_func_truncf" = xyes
  17128. then :
  17129. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17130. fi
  17131. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17132. if test "x$ac_cv_func_fmod" = xyes
  17133. then :
  17134. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17135. fi
  17136. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17137. if test "x$ac_cv_func_fmodf" = xyes
  17138. then :
  17139. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17140. fi
  17141. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17142. if test "x$ac_cv_func_log" = xyes
  17143. then :
  17144. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17145. fi
  17146. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17147. if test "x$ac_cv_func_logf" = xyes
  17148. then :
  17149. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17150. fi
  17151. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17152. if test "x$ac_cv_func_log10" = xyes
  17153. then :
  17154. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17155. fi
  17156. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17157. if test "x$ac_cv_func_log10f" = xyes
  17158. then :
  17159. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17160. fi
  17161. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17162. if test "x$ac_cv_func_lround" = xyes
  17163. then :
  17164. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17165. fi
  17166. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17167. if test "x$ac_cv_func_lroundf" = xyes
  17168. then :
  17169. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17170. fi
  17171. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17172. if test "x$ac_cv_func_pow" = xyes
  17173. then :
  17174. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17175. fi
  17176. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17177. if test "x$ac_cv_func_powf" = xyes
  17178. then :
  17179. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17180. fi
  17181. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17182. if test "x$ac_cv_func_round" = xyes
  17183. then :
  17184. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17185. fi
  17186. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17187. if test "x$ac_cv_func_roundf" = xyes
  17188. then :
  17189. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17190. fi
  17191. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17192. if test "x$ac_cv_func_scalbn" = xyes
  17193. then :
  17194. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17195. fi
  17196. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17197. if test "x$ac_cv_func_scalbnf" = xyes
  17198. then :
  17199. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17200. fi
  17201. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17202. if test "x$ac_cv_func_sin" = xyes
  17203. then :
  17204. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17205. fi
  17206. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17207. if test "x$ac_cv_func_sinf" = xyes
  17208. then :
  17209. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17210. fi
  17211. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17212. if test "x$ac_cv_func_sqrt" = xyes
  17213. then :
  17214. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17215. fi
  17216. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17217. if test "x$ac_cv_func_sqrtf" = xyes
  17218. then :
  17219. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17220. fi
  17221. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17222. if test "x$ac_cv_func_tan" = xyes
  17223. then :
  17224. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17225. fi
  17226. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17227. if test "x$ac_cv_func_tanf" = xyes
  17228. then :
  17229. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17230. fi
  17231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17232. printf %s "checking for iconv_open in -liconv... " >&6; }
  17233. if test ${ac_cv_lib_iconv_iconv_open+y}
  17234. then :
  17235. printf %s "(cached) " >&6
  17236. else $as_nop
  17237. ac_check_lib_save_LIBS=$LIBS
  17238. LIBS="-liconv $LIBS"
  17239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17240. /* end confdefs.h. */
  17241. /* Override any GCC internal prototype to avoid an error.
  17242. Use char because int might match the return type of a GCC
  17243. builtin and then its argument prototype would still apply. */
  17244. char iconv_open ();
  17245. int
  17246. main (void)
  17247. {
  17248. return iconv_open ();
  17249. ;
  17250. return 0;
  17251. }
  17252. _ACEOF
  17253. if ac_fn_c_try_link "$LINENO"
  17254. then :
  17255. ac_cv_lib_iconv_iconv_open=yes
  17256. else $as_nop
  17257. ac_cv_lib_iconv_iconv_open=no
  17258. fi
  17259. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17260. conftest$ac_exeext conftest.$ac_ext
  17261. LIBS=$ac_check_lib_save_LIBS
  17262. fi
  17263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17264. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17265. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17266. then :
  17267. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17268. fi
  17269. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17270. if test "x$ac_cv_func_iconv" = xyes
  17271. then :
  17272. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17273. fi
  17274. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17275. "
  17276. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17277. then :
  17278. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17279. fi
  17280. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17281. if test "x$ac_cv_header_libunwind_h" = xyes
  17282. then :
  17283. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17284. fi
  17285. fi
  17286. # Check whether --enable-gcc-atomics was given.
  17287. if test ${enable_gcc_atomics+y}
  17288. then :
  17289. enableval=$enable_gcc_atomics;
  17290. else $as_nop
  17291. enable_gcc_atomics=yes
  17292. fi
  17293. if test x$enable_gcc_atomics = xyes; then
  17294. have_gcc_atomics=no
  17295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17296. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17298. /* end confdefs.h. */
  17299. int
  17300. main (void)
  17301. {
  17302. int a;
  17303. void *x, *y, *z;
  17304. __sync_lock_test_and_set(&a, 4);
  17305. __sync_lock_test_and_set(&x, y);
  17306. __sync_fetch_and_add(&a, 1);
  17307. __sync_bool_compare_and_swap(&a, 5, 10);
  17308. __sync_bool_compare_and_swap(&x, y, z);
  17309. ;
  17310. return 0;
  17311. }
  17312. _ACEOF
  17313. if ac_fn_c_try_link "$LINENO"
  17314. then :
  17315. have_gcc_atomics=yes
  17316. fi
  17317. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17318. conftest$ac_exeext conftest.$ac_ext
  17319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17320. printf "%s\n" "$have_gcc_atomics" >&6; }
  17321. if test x$have_gcc_atomics = xyes; then
  17322. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17323. else
  17324. # See if we have the minimum operation needed for GCC atomics
  17325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17326. /* end confdefs.h. */
  17327. int
  17328. main (void)
  17329. {
  17330. int a;
  17331. __sync_lock_test_and_set(&a, 1);
  17332. __sync_lock_release(&a);
  17333. ;
  17334. return 0;
  17335. }
  17336. _ACEOF
  17337. if ac_fn_c_try_link "$LINENO"
  17338. then :
  17339. have_gcc_sync_lock_test_and_set=yes
  17340. fi
  17341. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17342. conftest$ac_exeext conftest.$ac_ext
  17343. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17344. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17345. fi
  17346. fi
  17347. fi
  17348. # Standard C sources
  17349. SOURCES="$SOURCES $srcdir/src/*.c"
  17350. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17351. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17352. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17353. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17354. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17355. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17356. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17357. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17358. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17359. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17360. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17361. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17362. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17363. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17364. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17365. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17366. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17367. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17368. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17369. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17370. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17371. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17372. case "$host" in
  17373. *-*-emscripten*)
  17374. default_atomic=no
  17375. ;;
  17376. *)
  17377. default_atomic=yes
  17378. ;;
  17379. esac
  17380. # Check whether --enable-atomic was given.
  17381. if test ${enable_atomic+y}
  17382. then :
  17383. enableval=$enable_atomic;
  17384. else $as_nop
  17385. enable_atomic=$default_atomic
  17386. fi
  17387. if test x$enable_atomic != xyes; then
  17388. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17389. else
  17390. SUMMARY_modules="${SUMMARY_modules} atomic"
  17391. fi
  17392. # Check whether --enable-audio was given.
  17393. if test ${enable_audio+y}
  17394. then :
  17395. enableval=$enable_audio;
  17396. else $as_nop
  17397. enable_audio=yes
  17398. fi
  17399. if test x$enable_audio != xyes; then
  17400. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17401. else
  17402. SUMMARY_modules="${SUMMARY_modules} audio"
  17403. fi
  17404. # Check whether --enable-video was given.
  17405. if test ${enable_video+y}
  17406. then :
  17407. enableval=$enable_video;
  17408. else $as_nop
  17409. enable_video=yes
  17410. fi
  17411. if test x$enable_video != xyes; then
  17412. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17413. else
  17414. SUMMARY_modules="${SUMMARY_modules} video"
  17415. fi
  17416. # Check whether --enable-render was given.
  17417. if test ${enable_render+y}
  17418. then :
  17419. enableval=$enable_render;
  17420. else $as_nop
  17421. enable_render=yes
  17422. fi
  17423. if test x$enable_render != xyes; then
  17424. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17425. else
  17426. SUMMARY_modules="${SUMMARY_modules} render"
  17427. fi
  17428. # Check whether --enable-events was given.
  17429. if test ${enable_events+y}
  17430. then :
  17431. enableval=$enable_events;
  17432. else $as_nop
  17433. enable_events=yes
  17434. fi
  17435. if test x$enable_events != xyes; then
  17436. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17437. else
  17438. SUMMARY_modules="${SUMMARY_modules} events"
  17439. fi
  17440. # Check whether --enable-joystick was given.
  17441. if test ${enable_joystick+y}
  17442. then :
  17443. enableval=$enable_joystick;
  17444. else $as_nop
  17445. enable_joystick=yes
  17446. fi
  17447. if test x$enable_joystick != xyes; then
  17448. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17449. else
  17450. SUMMARY_modules="${SUMMARY_modules} joystick"
  17451. fi
  17452. # Check whether --enable-haptic was given.
  17453. if test ${enable_haptic+y}
  17454. then :
  17455. enableval=$enable_haptic;
  17456. else $as_nop
  17457. enable_haptic=yes
  17458. fi
  17459. if test x$enable_haptic != xyes; then
  17460. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17461. else
  17462. SUMMARY_modules="${SUMMARY_modules} haptic"
  17463. fi
  17464. # Check whether --enable-hidapi was given.
  17465. if test ${enable_hidapi+y}
  17466. then :
  17467. enableval=$enable_hidapi;
  17468. else $as_nop
  17469. enable_hidapi=yes
  17470. fi
  17471. if test x$enable_hidapi != xyes; then
  17472. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17473. else
  17474. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17475. fi
  17476. # Check whether --enable-sensor was given.
  17477. if test ${enable_sensor+y}
  17478. then :
  17479. enableval=$enable_sensor;
  17480. else $as_nop
  17481. enable_sensor=yes
  17482. fi
  17483. if test x$enable_sensor != xyes; then
  17484. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17485. else
  17486. SUMMARY_modules="${SUMMARY_modules} sensor"
  17487. fi
  17488. # Check whether --enable-power was given.
  17489. if test ${enable_power+y}
  17490. then :
  17491. enableval=$enable_power;
  17492. else $as_nop
  17493. enable_power=yes
  17494. fi
  17495. if test x$enable_power != xyes; then
  17496. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17497. else
  17498. SUMMARY_modules="${SUMMARY_modules} power"
  17499. fi
  17500. # Check whether --enable-filesystem was given.
  17501. if test ${enable_filesystem+y}
  17502. then :
  17503. enableval=$enable_filesystem;
  17504. else $as_nop
  17505. enable_filesystem=yes
  17506. fi
  17507. if test x$enable_filesystem != xyes; then
  17508. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17509. else
  17510. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17511. fi
  17512. # Many subsystems depend on threads, so leave them enabled by default
  17513. #AC_ARG_ENABLE(threads,
  17514. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17515. # , enable_threads=yes)
  17516. enable_threads=yes
  17517. if test x$enable_threads != xyes; then
  17518. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17519. else
  17520. SUMMARY_modules="${SUMMARY_modules} threads"
  17521. fi
  17522. # Check whether --enable-timers was given.
  17523. if test ${enable_timers+y}
  17524. then :
  17525. enableval=$enable_timers;
  17526. else $as_nop
  17527. enable_timers=yes
  17528. fi
  17529. if test x$enable_timers != xyes; then
  17530. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17531. else
  17532. SUMMARY_modules="${SUMMARY_modules} timers"
  17533. fi
  17534. # Check whether --enable-file was given.
  17535. if test ${enable_file+y}
  17536. then :
  17537. enableval=$enable_file;
  17538. else $as_nop
  17539. enable_file=yes
  17540. fi
  17541. if test x$enable_file != xyes; then
  17542. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17543. else
  17544. SUMMARY_modules="${SUMMARY_modules} file"
  17545. fi
  17546. # Check whether --enable-misc was given.
  17547. if test ${enable_misc+y}
  17548. then :
  17549. enableval=$enable_misc;
  17550. else $as_nop
  17551. enable_misc=yes
  17552. fi
  17553. if test x$enable_misc != xyes; then
  17554. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17555. else
  17556. SUMMARY_modules="${SUMMARY_modules} misc"
  17557. fi
  17558. # Check whether --enable-locale was given.
  17559. if test ${enable_locale+y}
  17560. then :
  17561. enableval=$enable_locale;
  17562. else $as_nop
  17563. enable_locale=yes
  17564. fi
  17565. if test x$enable_locale != xyes; then
  17566. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17567. else
  17568. SUMMARY_modules="${SUMMARY_modules} locale"
  17569. fi
  17570. # Check whether --enable-loadso was given.
  17571. if test ${enable_loadso+y}
  17572. then :
  17573. enableval=$enable_loadso;
  17574. else $as_nop
  17575. enable_loadso=yes
  17576. fi
  17577. if test x$enable_loadso != xyes; then
  17578. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17579. else
  17580. SUMMARY_modules="${SUMMARY_modules} loadso"
  17581. fi
  17582. # Check whether --enable-cpuinfo was given.
  17583. if test ${enable_cpuinfo+y}
  17584. then :
  17585. enableval=$enable_cpuinfo;
  17586. else $as_nop
  17587. enable_cpuinfo=yes
  17588. fi
  17589. if test x$enable_cpuinfo != xyes; then
  17590. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17591. else
  17592. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17593. fi
  17594. # Check whether --enable-assembly was given.
  17595. if test ${enable_assembly+y}
  17596. then :
  17597. enableval=$enable_assembly;
  17598. else $as_nop
  17599. enable_assembly=yes
  17600. fi
  17601. if test x$enable_assembly = xyes; then
  17602. SUMMARY_modules="${SUMMARY_modules} assembly"
  17603. # Make sure that we don't generate floating point code that would
  17604. # cause illegal instruction exceptions on older processors
  17605. case "$host" in
  17606. *-*-darwin*)
  17607. # Don't need to worry about Apple hardware, it's all SSE capable
  17608. default_ssemath=yes
  17609. ;;
  17610. *64-*-*)
  17611. # x86 64-bit architectures all have SSE instructions
  17612. default_ssemath=yes
  17613. ;;
  17614. *)
  17615. default_ssemath=no
  17616. ;;
  17617. esac
  17618. # Check whether --enable-ssemath was given.
  17619. if test ${enable_ssemath+y}
  17620. then :
  17621. enableval=$enable_ssemath;
  17622. else $as_nop
  17623. enable_ssemath=$default_ssemath
  17624. fi
  17625. if test x$enable_ssemath = xno; then
  17626. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17627. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17628. fi
  17629. fi
  17630. # Check whether --enable-mmx was given.
  17631. if test ${enable_mmx+y}
  17632. then :
  17633. enableval=$enable_mmx;
  17634. else $as_nop
  17635. enable_mmx=yes
  17636. fi
  17637. if test x$enable_mmx = xyes; then
  17638. save_CFLAGS="$CFLAGS"
  17639. have_gcc_mmx=no
  17640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17641. printf %s "checking for GCC -mmmx option... " >&6; }
  17642. mmx_CFLAGS="-mmmx"
  17643. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17645. /* end confdefs.h. */
  17646. #ifdef __MINGW32__
  17647. #include <_mingw.h>
  17648. #ifdef __MINGW64_VERSION_MAJOR
  17649. #include <intrin.h>
  17650. #else
  17651. #include <mmintrin.h>
  17652. #endif
  17653. #else
  17654. #include <mmintrin.h>
  17655. #endif
  17656. #ifndef __MMX__
  17657. #error Assembler CPP flag not enabled
  17658. #endif
  17659. int
  17660. main (void)
  17661. {
  17662. ;
  17663. return 0;
  17664. }
  17665. _ACEOF
  17666. if ac_fn_c_try_compile "$LINENO"
  17667. then :
  17668. have_gcc_mmx=yes
  17669. fi
  17670. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17672. printf "%s\n" "$have_gcc_mmx" >&6; }
  17673. CFLAGS="$save_CFLAGS"
  17674. if test x$have_gcc_mmx = xyes; then
  17675. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17676. SUMMARY_math="${SUMMARY_math} mmx"
  17677. fi
  17678. fi
  17679. # Check whether --enable-3dnow was given.
  17680. if test ${enable_3dnow+y}
  17681. then :
  17682. enableval=$enable_3dnow;
  17683. else $as_nop
  17684. enable_3dnow=yes
  17685. fi
  17686. if test x$enable_3dnow = xyes; then
  17687. save_CFLAGS="$CFLAGS"
  17688. have_gcc_3dnow=no
  17689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17690. printf %s "checking for GCC -m3dnow option... " >&6; }
  17691. amd3dnow_CFLAGS="-m3dnow"
  17692. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17694. /* end confdefs.h. */
  17695. #include <mm3dnow.h>
  17696. #ifndef __3dNOW__
  17697. #error Assembler CPP flag not enabled
  17698. #endif
  17699. int
  17700. main (void)
  17701. {
  17702. void *p = 0;
  17703. _m_prefetch(p);
  17704. ;
  17705. return 0;
  17706. }
  17707. _ACEOF
  17708. if ac_fn_c_try_link "$LINENO"
  17709. then :
  17710. have_gcc_3dnow=yes
  17711. fi
  17712. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17713. conftest$ac_exeext conftest.$ac_ext
  17714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17715. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17716. CFLAGS="$save_CFLAGS"
  17717. if test x$have_gcc_3dnow = xyes; then
  17718. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17719. SUMMARY_math="${SUMMARY_math} 3dnow"
  17720. fi
  17721. fi
  17722. # Check whether --enable-sse was given.
  17723. if test ${enable_sse+y}
  17724. then :
  17725. enableval=$enable_sse;
  17726. else $as_nop
  17727. enable_sse=yes
  17728. fi
  17729. if test x$enable_sse = xyes; then
  17730. save_CFLAGS="$CFLAGS"
  17731. have_gcc_sse=no
  17732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17733. printf %s "checking for GCC -msse option... " >&6; }
  17734. sse_CFLAGS="-msse"
  17735. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17737. /* end confdefs.h. */
  17738. #ifdef __MINGW32__
  17739. #include <_mingw.h>
  17740. #ifdef __MINGW64_VERSION_MAJOR
  17741. #include <intrin.h>
  17742. #else
  17743. #include <xmmintrin.h>
  17744. #endif
  17745. #else
  17746. #include <xmmintrin.h>
  17747. #endif
  17748. #ifndef __SSE__
  17749. #error Assembler CPP flag not enabled
  17750. #endif
  17751. int
  17752. main (void)
  17753. {
  17754. ;
  17755. return 0;
  17756. }
  17757. _ACEOF
  17758. if ac_fn_c_try_compile "$LINENO"
  17759. then :
  17760. have_gcc_sse=yes
  17761. fi
  17762. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17764. printf "%s\n" "$have_gcc_sse" >&6; }
  17765. CFLAGS="$save_CFLAGS"
  17766. if test x$have_gcc_sse = xyes; then
  17767. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17768. SUMMARY_math="${SUMMARY_math} sse"
  17769. fi
  17770. fi
  17771. # Check whether --enable-sse2 was given.
  17772. if test ${enable_sse2+y}
  17773. then :
  17774. enableval=$enable_sse2;
  17775. else $as_nop
  17776. enable_sse2=$default_ssemath
  17777. fi
  17778. if test x$enable_sse2 = xyes; then
  17779. save_CFLAGS="$CFLAGS"
  17780. have_gcc_sse2=no
  17781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17782. printf %s "checking for GCC -msse2 option... " >&6; }
  17783. sse2_CFLAGS="-msse2"
  17784. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17786. /* end confdefs.h. */
  17787. #ifdef __MINGW32__
  17788. #include <_mingw.h>
  17789. #ifdef __MINGW64_VERSION_MAJOR
  17790. #include <intrin.h>
  17791. #else
  17792. #include <emmintrin.h>
  17793. #endif
  17794. #else
  17795. #include <emmintrin.h>
  17796. #endif
  17797. #ifndef __SSE2__
  17798. #error Assembler CPP flag not enabled
  17799. #endif
  17800. int
  17801. main (void)
  17802. {
  17803. ;
  17804. return 0;
  17805. }
  17806. _ACEOF
  17807. if ac_fn_c_try_compile "$LINENO"
  17808. then :
  17809. have_gcc_sse2=yes
  17810. fi
  17811. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17813. printf "%s\n" "$have_gcc_sse2" >&6; }
  17814. CFLAGS="$save_CFLAGS"
  17815. if test x$have_gcc_sse2 = xyes; then
  17816. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17817. SUMMARY_math="${SUMMARY_math} sse2"
  17818. fi
  17819. fi
  17820. # Check whether --enable-sse3 was given.
  17821. if test ${enable_sse3+y}
  17822. then :
  17823. enableval=$enable_sse3;
  17824. else $as_nop
  17825. enable_sse3=$default_ssemath
  17826. fi
  17827. if test x$enable_sse3 = xyes; then
  17828. save_CFLAGS="$CFLAGS"
  17829. have_gcc_sse3=no
  17830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17831. printf %s "checking for GCC -msse3 option... " >&6; }
  17832. sse3_CFLAGS="-msse3"
  17833. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17835. /* end confdefs.h. */
  17836. #ifdef __MINGW32__
  17837. #include <_mingw.h>
  17838. #ifdef __MINGW64_VERSION_MAJOR
  17839. #include <intrin.h>
  17840. #else
  17841. #include <pmmintrin.h>
  17842. #endif
  17843. #else
  17844. #include <pmmintrin.h>
  17845. #endif
  17846. #ifndef __SSE2__
  17847. #error Assembler CPP flag not enabled
  17848. #endif
  17849. int
  17850. main (void)
  17851. {
  17852. ;
  17853. return 0;
  17854. }
  17855. _ACEOF
  17856. if ac_fn_c_try_compile "$LINENO"
  17857. then :
  17858. have_gcc_sse3=yes
  17859. fi
  17860. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17862. printf "%s\n" "$have_gcc_sse3" >&6; }
  17863. CFLAGS="$save_CFLAGS"
  17864. if test x$have_gcc_sse3 = xyes; then
  17865. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17866. SUMMARY_math="${SUMMARY_math} sse3"
  17867. fi
  17868. fi
  17869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17870. printf %s "checking for immintrin.h... " >&6; }
  17871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17872. /* end confdefs.h. */
  17873. #include <immintrin.h>
  17874. int
  17875. main (void)
  17876. {
  17877. ;
  17878. return 0;
  17879. }
  17880. _ACEOF
  17881. if ac_fn_c_try_compile "$LINENO"
  17882. then :
  17883. have_immintrin_h_hdr=yes
  17884. else $as_nop
  17885. have_immintrin_h_hdr=no
  17886. fi
  17887. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17889. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17890. if test x$have_immintrin_h_hdr = xyes; then
  17891. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17892. fi
  17893. # Check whether --enable-altivec was given.
  17894. if test ${enable_altivec+y}
  17895. then :
  17896. enableval=$enable_altivec;
  17897. else $as_nop
  17898. enable_altivec=yes
  17899. fi
  17900. if test x$enable_altivec = xyes; then
  17901. save_CFLAGS="$CFLAGS"
  17902. have_gcc_altivec=no
  17903. have_altivec_h_hdr=no
  17904. altivec_CFLAGS="-maltivec"
  17905. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17907. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17909. /* end confdefs.h. */
  17910. #include <altivec.h>
  17911. vector unsigned int vzero() {
  17912. return vec_splat_u32(0);
  17913. }
  17914. int
  17915. main (void)
  17916. {
  17917. ;
  17918. return 0;
  17919. }
  17920. _ACEOF
  17921. if ac_fn_c_try_compile "$LINENO"
  17922. then :
  17923. have_gcc_altivec=yes
  17924. have_altivec_h_hdr=yes
  17925. fi
  17926. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17928. printf "%s\n" "$have_gcc_altivec" >&6; }
  17929. if test x$have_gcc_altivec = xno; then
  17930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17931. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  17932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17933. /* end confdefs.h. */
  17934. vector unsigned int vzero() {
  17935. return vec_splat_u32(0);
  17936. }
  17937. int
  17938. main (void)
  17939. {
  17940. ;
  17941. return 0;
  17942. }
  17943. _ACEOF
  17944. if ac_fn_c_try_compile "$LINENO"
  17945. then :
  17946. have_gcc_altivec=yes
  17947. fi
  17948. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17950. printf "%s\n" "$have_gcc_altivec" >&6; }
  17951. fi
  17952. if test x$have_gcc_altivec = xno; then
  17953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  17954. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  17955. altivec_CFLAGS="-faltivec"
  17956. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17958. /* end confdefs.h. */
  17959. #include <altivec.h>
  17960. vector unsigned int vzero() {
  17961. return vec_splat_u32(0);
  17962. }
  17963. int
  17964. main (void)
  17965. {
  17966. ;
  17967. return 0;
  17968. }
  17969. _ACEOF
  17970. if ac_fn_c_try_compile "$LINENO"
  17971. then :
  17972. have_gcc_altivec=yes
  17973. have_altivec_h_hdr=yes
  17974. fi
  17975. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17977. printf "%s\n" "$have_gcc_altivec" >&6; }
  17978. fi
  17979. if test x$have_gcc_altivec = xno; then
  17980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  17981. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  17982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17983. /* end confdefs.h. */
  17984. vector unsigned int vzero() {
  17985. return vec_splat_u32(0);
  17986. }
  17987. int
  17988. main (void)
  17989. {
  17990. ;
  17991. return 0;
  17992. }
  17993. _ACEOF
  17994. if ac_fn_c_try_compile "$LINENO"
  17995. then :
  17996. have_gcc_altivec=yes
  17997. fi
  17998. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18000. printf "%s\n" "$have_gcc_altivec" >&6; }
  18001. fi
  18002. CFLAGS="$save_CFLAGS"
  18003. if test x$have_gcc_altivec = xyes; then
  18004. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18005. if test x$have_altivec_h_hdr = xyes; then
  18006. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18007. fi
  18008. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18009. SUMMARY_math="${SUMMARY_math} altivec"
  18010. fi
  18011. fi
  18012. fi
  18013. # Check whether --enable-lsx was given.
  18014. if test ${enable_lsx+y}
  18015. then :
  18016. enableval=$enable_lsx;
  18017. else $as_nop
  18018. enable_lsx=yes
  18019. fi
  18020. if test x$enable_lsx = xyes; then
  18021. save_CFLAGS="$CFLAGS"
  18022. have_gcc_lsx=no
  18023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18024. printf %s "checking for GCC -mlsx option... " >&6; }
  18025. lsx_CFLAGS="-mlsx"
  18026. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18028. /* end confdefs.h. */
  18029. #ifndef __loongarch_sx
  18030. #error Assembler CPP flag not enabled
  18031. #endif
  18032. int
  18033. main (void)
  18034. {
  18035. ;
  18036. return 0;
  18037. }
  18038. _ACEOF
  18039. if ac_fn_c_try_compile "$LINENO"
  18040. then :
  18041. have_gcc_lsx=yes
  18042. fi
  18043. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18045. printf "%s\n" "$have_gcc_lsx" >&6; }
  18046. CFLAGS="$save_CFLAGS"
  18047. if test x$have_gcc_lsx = xyes; then
  18048. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18049. SUMMARY_math="${SUMMARY_math} lsx"
  18050. fi
  18051. fi
  18052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18053. printf %s "checking for lsxintrin.h... " >&6; }
  18054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18055. /* end confdefs.h. */
  18056. #include <lsxintrin.h>
  18057. int
  18058. main (void)
  18059. {
  18060. ;
  18061. return 0;
  18062. }
  18063. _ACEOF
  18064. if ac_fn_c_try_compile "$LINENO"
  18065. then :
  18066. have_lsxintrin_h_hdr=yes
  18067. else $as_nop
  18068. have_lsxintrin_h_hdr=no
  18069. fi
  18070. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18072. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18073. if test x$have_lsxintrin_h_hdr = xyes; then
  18074. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18075. fi
  18076. # Check whether --enable-lasx was given.
  18077. if test ${enable_lasx+y}
  18078. then :
  18079. enableval=$enable_lasx;
  18080. else $as_nop
  18081. enable_LASX=yes
  18082. fi
  18083. if test x$enable_LASX = xyes; then
  18084. save_CFLAGS="$CFLAGS"
  18085. have_gcc_lasx=no
  18086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18087. printf %s "checking for GCC -mlasx option... " >&6; }
  18088. lasx_CFLAGS="-mlasx"
  18089. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18091. /* end confdefs.h. */
  18092. #ifndef __loongarch_asx
  18093. #error Assembler CPP flag not enabled
  18094. #endif
  18095. int
  18096. main (void)
  18097. {
  18098. ;
  18099. return 0;
  18100. }
  18101. _ACEOF
  18102. if ac_fn_c_try_compile "$LINENO"
  18103. then :
  18104. have_gcc_lasx=yes
  18105. fi
  18106. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18108. printf "%s\n" "$have_gcc_lasx" >&6; }
  18109. CFLAGS="$save_CFLAGS"
  18110. if test x$have_gcc_lasx = xyes; then
  18111. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18112. SUMMARY_math="${SUMMARY_math} lasx"
  18113. fi
  18114. fi
  18115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18116. printf %s "checking for lasxintrin.h... " >&6; }
  18117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18118. /* end confdefs.h. */
  18119. #include <lasxintrin.h>
  18120. int
  18121. main (void)
  18122. {
  18123. ;
  18124. return 0;
  18125. }
  18126. _ACEOF
  18127. if ac_fn_c_try_compile "$LINENO"
  18128. then :
  18129. have_lasxintrin_h_hdr=yes
  18130. else $as_nop
  18131. have_lasxintrin_h_hdr=no
  18132. fi
  18133. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18135. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18136. if test x$have_lasxintrin_h_hdr = xyes; then
  18137. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18138. fi
  18139. CheckOSS()
  18140. {
  18141. # Check whether --enable-oss was given.
  18142. if test ${enable_oss+y}
  18143. then :
  18144. enableval=$enable_oss;
  18145. else $as_nop
  18146. enable_oss=maybe
  18147. fi
  18148. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  18149. # use sndio instead. So on there, we default to disabled. You can force
  18150. # it on if you really want, though.
  18151. if test x$enable_oss = xmaybe; then
  18152. enable_oss=yes
  18153. case "$host" in
  18154. *-*-openbsd*)
  18155. enable_oss=no;;
  18156. esac
  18157. fi
  18158. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18160. printf %s "checking for OSS audio support... " >&6; }
  18161. have_oss=no
  18162. if test x$have_oss != xyes; then
  18163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18164. /* end confdefs.h. */
  18165. #include <sys/soundcard.h>
  18166. int
  18167. main (void)
  18168. {
  18169. int arg = SNDCTL_DSP_SETFRAGMENT;
  18170. ;
  18171. return 0;
  18172. }
  18173. _ACEOF
  18174. if ac_fn_c_try_compile "$LINENO"
  18175. then :
  18176. have_oss=yes
  18177. fi
  18178. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18179. fi
  18180. if test x$have_oss != xyes; then
  18181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18182. /* end confdefs.h. */
  18183. #include <soundcard.h>
  18184. int
  18185. main (void)
  18186. {
  18187. int arg = SNDCTL_DSP_SETFRAGMENT;
  18188. ;
  18189. return 0;
  18190. }
  18191. _ACEOF
  18192. if ac_fn_c_try_compile "$LINENO"
  18193. then :
  18194. have_oss=yes
  18195. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  18196. fi
  18197. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18198. fi
  18199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18200. printf "%s\n" "$have_oss" >&6; }
  18201. if test x$have_oss = xyes; then
  18202. SUMMARY_audio="${SUMMARY_audio} oss"
  18203. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18204. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18205. have_audio=yes
  18206. # We may need to link with ossaudio emulation library
  18207. case "$host" in
  18208. *-*-openbsd*|*-*-netbsd*)
  18209. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18210. esac
  18211. fi
  18212. fi
  18213. }
  18214. CheckALSA()
  18215. {
  18216. # Check whether --enable-alsa was given.
  18217. if test ${enable_alsa+y}
  18218. then :
  18219. enableval=$enable_alsa;
  18220. else $as_nop
  18221. enable_alsa=yes
  18222. fi
  18223. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18224. alsa_save_CFLAGS="$CFLAGS"
  18225. alsa_save_LDFLAGS="$LDFLAGS"
  18226. alsa_save_LIBS="$LIBS"
  18227. alsa_found=yes
  18228. # Check whether --with-alsa-prefix was given.
  18229. if test ${with_alsa_prefix+y}
  18230. then :
  18231. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18232. else $as_nop
  18233. alsa_prefix=""
  18234. fi
  18235. # Check whether --with-alsa-inc-prefix was given.
  18236. if test ${with_alsa_inc_prefix+y}
  18237. then :
  18238. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18239. else $as_nop
  18240. alsa_inc_prefix=""
  18241. fi
  18242. # Check whether --enable-alsatest was given.
  18243. if test ${enable_alsatest+y}
  18244. then :
  18245. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18246. else $as_nop
  18247. enable_alsatest=yes
  18248. fi
  18249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18250. printf %s "checking for ALSA CFLAGS... " >&6; }
  18251. if test "$alsa_inc_prefix" != "" ; then
  18252. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18253. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18254. fi
  18255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18256. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18258. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18259. if test "$alsa_prefix" != "" ; then
  18260. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18261. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18262. fi
  18263. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18264. LIBS=`echo $LIBS | sed 's/-lm//'`
  18265. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18266. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18267. LIBS=`echo $LIBS | sed 's/ //'`
  18268. LIBS="$ALSA_LIBS $LIBS"
  18269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18270. printf "%s\n" "$ALSA_LIBS" >&6; }
  18271. min_alsa_version=1.0.11
  18272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18273. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18274. no_alsa=""
  18275. alsa_min_major_version=`echo $min_alsa_version | \
  18276. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18277. alsa_min_minor_version=`echo $min_alsa_version | \
  18278. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18279. alsa_min_micro_version=`echo $min_alsa_version | \
  18280. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18281. ac_ext=c
  18282. ac_cpp='$CPP $CPPFLAGS'
  18283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18287. /* end confdefs.h. */
  18288. #include <alsa/asoundlib.h>
  18289. int
  18290. main (void)
  18291. {
  18292. /* ensure backward compatibility */
  18293. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18294. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18295. #endif
  18296. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18297. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18298. #endif
  18299. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18300. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18301. #endif
  18302. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18303. exit(0);
  18304. # else
  18305. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18306. # error not present
  18307. # endif
  18308. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18309. exit(0);
  18310. # else
  18311. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18312. # error not present
  18313. # endif
  18314. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18315. # error not present
  18316. # endif
  18317. # endif
  18318. # endif
  18319. exit(0);
  18320. ;
  18321. return 0;
  18322. }
  18323. _ACEOF
  18324. if ac_fn_c_try_compile "$LINENO"
  18325. then :
  18326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18327. printf "%s\n" "found." >&6; }
  18328. else $as_nop
  18329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18330. printf "%s\n" "not present." >&6; }
  18331. alsa_found=no
  18332. fi
  18333. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18334. ac_ext=c
  18335. ac_cpp='$CPP $CPPFLAGS'
  18336. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18337. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18338. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18339. if test "x$enable_alsatest" = "xyes"; then
  18340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18341. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18342. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18343. then :
  18344. printf %s "(cached) " >&6
  18345. else $as_nop
  18346. ac_check_lib_save_LIBS=$LIBS
  18347. LIBS="-lasound $LIBS"
  18348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18349. /* end confdefs.h. */
  18350. /* Override any GCC internal prototype to avoid an error.
  18351. Use char because int might match the return type of a GCC
  18352. builtin and then its argument prototype would still apply. */
  18353. char snd_ctl_open ();
  18354. int
  18355. main (void)
  18356. {
  18357. return snd_ctl_open ();
  18358. ;
  18359. return 0;
  18360. }
  18361. _ACEOF
  18362. if ac_fn_c_try_link "$LINENO"
  18363. then :
  18364. ac_cv_lib_asound_snd_ctl_open=yes
  18365. else $as_nop
  18366. ac_cv_lib_asound_snd_ctl_open=no
  18367. fi
  18368. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18369. conftest$ac_exeext conftest.$ac_ext
  18370. LIBS=$ac_check_lib_save_LIBS
  18371. fi
  18372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18373. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18374. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18375. then :
  18376. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18377. LIBS="-lasound $LIBS"
  18378. else $as_nop
  18379. alsa_found=no
  18380. fi
  18381. fi
  18382. if test "x$alsa_found" = "xyes" ; then
  18383. have_alsa=yes
  18384. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18385. LIBS=`echo $LIBS | sed 's/ //'`
  18386. LIBS="-lasound $LIBS"
  18387. fi
  18388. if test "x$alsa_found" = "xno" ; then
  18389. have_alsa=no
  18390. CFLAGS="$alsa_save_CFLAGS"
  18391. LDFLAGS="$alsa_save_LDFLAGS"
  18392. LIBS="$alsa_save_LIBS"
  18393. ALSA_CFLAGS=""
  18394. ALSA_LIBS=""
  18395. fi
  18396. # Restore all flags from before the ALSA detection runs
  18397. CFLAGS="$alsa_save_CFLAGS"
  18398. LDFLAGS="$alsa_save_LDFLAGS"
  18399. LIBS="$alsa_save_LIBS"
  18400. if test x$have_alsa = xyes; then
  18401. # Check whether --enable-alsa-shared was given.
  18402. if test ${enable_alsa_shared+y}
  18403. then :
  18404. enableval=$enable_alsa_shared;
  18405. else $as_nop
  18406. enable_alsa_shared=yes
  18407. fi
  18408. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18409. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18410. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18411. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18412. if test x$have_loadso != xyes && \
  18413. test x$enable_alsa_shared = xyes; then
  18414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18415. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18416. fi
  18417. if test x$have_loadso = xyes && \
  18418. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18419. echo "-- dynamic libasound -> $alsa_lib"
  18420. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18421. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18422. else
  18423. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18424. SUMMARY_audio="${SUMMARY_audio} alsa"
  18425. fi
  18426. have_audio=yes
  18427. fi
  18428. fi
  18429. }
  18430. CheckJACK()
  18431. {
  18432. # Check whether --enable-jack was given.
  18433. if test ${enable_jack+y}
  18434. then :
  18435. enableval=$enable_jack;
  18436. else $as_nop
  18437. enable_jack=yes
  18438. fi
  18439. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18440. pkg_failed=no
  18441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18442. printf %s "checking for jack >= 0.125... " >&6; }
  18443. if test -n "$JACK_CFLAGS"; then
  18444. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18445. elif test -n "$PKG_CONFIG"; then
  18446. if test -n "$PKG_CONFIG" && \
  18447. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18448. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18449. ac_status=$?
  18450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18451. test $ac_status = 0; }; then
  18452. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18453. test "x$?" != "x0" && pkg_failed=yes
  18454. else
  18455. pkg_failed=yes
  18456. fi
  18457. else
  18458. pkg_failed=untried
  18459. fi
  18460. if test -n "$JACK_LIBS"; then
  18461. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18462. elif test -n "$PKG_CONFIG"; then
  18463. if test -n "$PKG_CONFIG" && \
  18464. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18465. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18466. ac_status=$?
  18467. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18468. test $ac_status = 0; }; then
  18469. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18470. test "x$?" != "x0" && pkg_failed=yes
  18471. else
  18472. pkg_failed=yes
  18473. fi
  18474. else
  18475. pkg_failed=untried
  18476. fi
  18477. if test $pkg_failed = yes; then
  18478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18479. printf "%s\n" "no" >&6; }
  18480. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18481. _pkg_short_errors_supported=yes
  18482. else
  18483. _pkg_short_errors_supported=no
  18484. fi
  18485. if test $_pkg_short_errors_supported = yes; then
  18486. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18487. else
  18488. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18489. fi
  18490. # Put the nasty error message in config.log where it belongs
  18491. echo "$JACK_PKG_ERRORS" >&5
  18492. audio_jack=no
  18493. elif test $pkg_failed = untried; then
  18494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18495. printf "%s\n" "no" >&6; }
  18496. audio_jack=no
  18497. else
  18498. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18499. JACK_LIBS=$pkg_cv_JACK_LIBS
  18500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18501. printf "%s\n" "yes" >&6; }
  18502. audio_jack=yes
  18503. fi
  18504. if test x$audio_jack = xyes; then
  18505. # Check whether --enable-jack-shared was given.
  18506. if test ${enable_jack_shared+y}
  18507. then :
  18508. enableval=$enable_jack_shared;
  18509. else $as_nop
  18510. enable_jack_shared=yes
  18511. fi
  18512. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18513. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18514. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18515. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18516. if test x$have_loadso != xyes && \
  18517. test x$enable_jack_shared = xyes; then
  18518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18519. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18520. fi
  18521. if test x$have_loadso = xyes && \
  18522. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18523. echo "-- dynamic libjack -> $jack_lib"
  18524. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18525. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18526. case "$host" in
  18527. # On Solaris, jack must be linked deferred explicitly
  18528. # to prevent undefined symbol failures.
  18529. *-*-solaris*)
  18530. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18531. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18532. esac
  18533. else
  18534. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18535. SUMMARY_audio="${SUMMARY_audio} jack"
  18536. fi
  18537. have_audio=yes
  18538. fi
  18539. fi
  18540. }
  18541. CheckESD()
  18542. {
  18543. # Check whether --enable-esd was given.
  18544. if test ${enable_esd+y}
  18545. then :
  18546. enableval=$enable_esd;
  18547. else $as_nop
  18548. enable_esd=yes
  18549. fi
  18550. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18551. # Check whether --with-esd-prefix was given.
  18552. if test ${with_esd_prefix+y}
  18553. then :
  18554. withval=$with_esd_prefix; esd_prefix="$withval"
  18555. else $as_nop
  18556. esd_prefix=""
  18557. fi
  18558. # Check whether --with-esd-exec-prefix was given.
  18559. if test ${with_esd_exec_prefix+y}
  18560. then :
  18561. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18562. else $as_nop
  18563. esd_exec_prefix=""
  18564. fi
  18565. # Check whether --enable-esdtest was given.
  18566. if test ${enable_esdtest+y}
  18567. then :
  18568. enableval=$enable_esdtest;
  18569. else $as_nop
  18570. enable_esdtest=yes
  18571. fi
  18572. if test x$esd_exec_prefix != x ; then
  18573. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18574. if test x${ESD_CONFIG+set} != xset ; then
  18575. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18576. fi
  18577. fi
  18578. if test x$esd_prefix != x ; then
  18579. esd_args="$esd_args --prefix=$esd_prefix"
  18580. if test x${ESD_CONFIG+set} != xset ; then
  18581. ESD_CONFIG=$esd_prefix/bin/esd-config
  18582. fi
  18583. fi
  18584. # Extract the first word of "esd-config", so it can be a program name with args.
  18585. set dummy esd-config; ac_word=$2
  18586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18587. printf %s "checking for $ac_word... " >&6; }
  18588. if test ${ac_cv_path_ESD_CONFIG+y}
  18589. then :
  18590. printf %s "(cached) " >&6
  18591. else $as_nop
  18592. case $ESD_CONFIG in
  18593. [\\/]* | ?:[\\/]*)
  18594. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18595. ;;
  18596. *)
  18597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18598. for as_dir in $PATH
  18599. do
  18600. IFS=$as_save_IFS
  18601. case $as_dir in #(((
  18602. '') as_dir=./ ;;
  18603. */) ;;
  18604. *) as_dir=$as_dir/ ;;
  18605. esac
  18606. for ac_exec_ext in '' $ac_executable_extensions; do
  18607. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18608. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18609. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18610. break 2
  18611. fi
  18612. done
  18613. done
  18614. IFS=$as_save_IFS
  18615. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18616. ;;
  18617. esac
  18618. fi
  18619. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18620. if test -n "$ESD_CONFIG"; then
  18621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18622. printf "%s\n" "$ESD_CONFIG" >&6; }
  18623. else
  18624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18625. printf "%s\n" "no" >&6; }
  18626. fi
  18627. min_esd_version=0.2.8
  18628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18629. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18630. no_esd=""
  18631. if test "$ESD_CONFIG" = "no" ; then
  18632. no_esd=yes
  18633. else
  18634. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18635. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18636. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18637. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18638. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18639. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18640. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18641. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18642. if test "x$enable_esdtest" = "xyes" ; then
  18643. ac_ext=c
  18644. ac_cpp='$CPP $CPPFLAGS'
  18645. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18646. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18647. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18648. ac_save_CFLAGS="$CFLAGS"
  18649. ac_save_LIBS="$LIBS"
  18650. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18651. LIBS="$LIBS $ESD_LIBS"
  18652. rm -f conf.esdtest
  18653. if test "$cross_compiling" = yes
  18654. then :
  18655. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18656. else $as_nop
  18657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18658. /* end confdefs.h. */
  18659. #include <stdio.h>
  18660. #include <stdlib.h>
  18661. #include <esd.h>
  18662. int main (void)
  18663. {
  18664. int major, minor, micro;
  18665. FILE *fp = fopen("conf.esdtest", "w");
  18666. if (fp) fclose(fp);
  18667. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18668. printf("%s, bad version string\n", "$min_esd_version");
  18669. exit(1);
  18670. }
  18671. if (($esd_major_version > major) ||
  18672. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18673. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18674. {
  18675. return 0;
  18676. }
  18677. else
  18678. {
  18679. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18680. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18681. printf("*** best to upgrade to the required version.\n");
  18682. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18683. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18684. printf("*** config.cache before re-running configure\n");
  18685. return 1;
  18686. }
  18687. }
  18688. _ACEOF
  18689. if ac_fn_c_try_run "$LINENO"
  18690. then :
  18691. else $as_nop
  18692. no_esd=yes
  18693. fi
  18694. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18695. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18696. fi
  18697. CFLAGS="$ac_save_CFLAGS"
  18698. LIBS="$ac_save_LIBS"
  18699. ac_ext=c
  18700. ac_cpp='$CPP $CPPFLAGS'
  18701. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18702. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18703. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18704. fi
  18705. fi
  18706. if test "x$no_esd" = x ; then
  18707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18708. printf "%s\n" "yes" >&6; }
  18709. have_esd=yes
  18710. else
  18711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18712. printf "%s\n" "no" >&6; }
  18713. if test "$ESD_CONFIG" = "no" ; then
  18714. echo "*** The esd-config script installed by ESD could not be found"
  18715. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  18716. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  18717. echo "*** full path to esd-config."
  18718. else
  18719. if test -f conf.esdtest ; then
  18720. :
  18721. else
  18722. echo "*** Could not run ESD test program, checking why..."
  18723. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18724. LIBS="$LIBS $ESD_LIBS"
  18725. ac_ext=c
  18726. ac_cpp='$CPP $CPPFLAGS'
  18727. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18728. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18729. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18731. /* end confdefs.h. */
  18732. #include <stdio.h>
  18733. #include <esd.h>
  18734. int
  18735. main (void)
  18736. {
  18737. return 0;
  18738. ;
  18739. return 0;
  18740. }
  18741. _ACEOF
  18742. if ac_fn_c_try_link "$LINENO"
  18743. then :
  18744. echo "*** The test program compiled, but did not run. This usually means"
  18745. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18746. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18747. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18748. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18749. echo "*** is required on your system"
  18750. echo "***"
  18751. echo "*** If you have an old version installed, it is best to remove it, although"
  18752. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18753. else $as_nop
  18754. echo "*** The test program failed to compile or link. See the file config.log for the"
  18755. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18756. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18757. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18758. fi
  18759. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18760. conftest$ac_exeext conftest.$ac_ext
  18761. CFLAGS="$ac_save_CFLAGS"
  18762. LIBS="$ac_save_LIBS"
  18763. ac_ext=c
  18764. ac_cpp='$CPP $CPPFLAGS'
  18765. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18766. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18767. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18768. fi
  18769. fi
  18770. ESD_CFLAGS=""
  18771. ESD_LIBS=""
  18772. have_esd=no
  18773. fi
  18774. rm -f conf.esdtest
  18775. if test x$have_esd = xyes; then
  18776. # Check whether --enable-esd-shared was given.
  18777. if test ${enable_esd_shared+y}
  18778. then :
  18779. enableval=$enable_esd_shared;
  18780. else $as_nop
  18781. enable_esd_shared=yes
  18782. fi
  18783. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18784. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18785. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18786. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18787. if test x$have_loadso != xyes && \
  18788. test x$enable_esd_shared = xyes; then
  18789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18790. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18791. fi
  18792. if test x$have_loadso = xyes && \
  18793. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18794. echo "-- dynamic libesd -> $esd_lib"
  18795. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18796. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18797. else
  18798. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18799. SUMMARY_audio="${SUMMARY_audio} esd"
  18800. fi
  18801. have_audio=yes
  18802. fi
  18803. fi
  18804. }
  18805. CheckPipewire()
  18806. {
  18807. # Check whether --enable-pipewire was given.
  18808. if test ${enable_pipewire+y}
  18809. then :
  18810. enableval=$enable_pipewire;
  18811. else $as_nop
  18812. enable_pipewire=yes
  18813. fi
  18814. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18815. pkg_failed=no
  18816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18817. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18818. if test -n "$PIPEWIRE_CFLAGS"; then
  18819. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18820. elif test -n "$PKG_CONFIG"; then
  18821. if test -n "$PKG_CONFIG" && \
  18822. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18823. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18824. ac_status=$?
  18825. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18826. test $ac_status = 0; }; then
  18827. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18828. test "x$?" != "x0" && pkg_failed=yes
  18829. else
  18830. pkg_failed=yes
  18831. fi
  18832. else
  18833. pkg_failed=untried
  18834. fi
  18835. if test -n "$PIPEWIRE_LIBS"; then
  18836. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18837. elif test -n "$PKG_CONFIG"; then
  18838. if test -n "$PKG_CONFIG" && \
  18839. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18840. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18841. ac_status=$?
  18842. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18843. test $ac_status = 0; }; then
  18844. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18845. test "x$?" != "x0" && pkg_failed=yes
  18846. else
  18847. pkg_failed=yes
  18848. fi
  18849. else
  18850. pkg_failed=untried
  18851. fi
  18852. if test $pkg_failed = yes; then
  18853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18854. printf "%s\n" "no" >&6; }
  18855. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18856. _pkg_short_errors_supported=yes
  18857. else
  18858. _pkg_short_errors_supported=no
  18859. fi
  18860. if test $_pkg_short_errors_supported = yes; then
  18861. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18862. else
  18863. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18864. fi
  18865. # Put the nasty error message in config.log where it belongs
  18866. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18867. audio_pipewire=no
  18868. elif test $pkg_failed = untried; then
  18869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18870. printf "%s\n" "no" >&6; }
  18871. audio_pipewire=no
  18872. else
  18873. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18874. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18876. printf "%s\n" "yes" >&6; }
  18877. audio_pipewire=yes
  18878. fi
  18879. if test x$audio_pipewire = xyes; then
  18880. # Check whether --enable-pipewire-shared was given.
  18881. if test ${enable_pipewire_shared+y}
  18882. then :
  18883. enableval=$enable_pipewire_shared;
  18884. else $as_nop
  18885. enable_pipewire_shared=yes
  18886. fi
  18887. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18888. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  18889. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  18890. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  18891. if test x$have_loadso != xyes && \
  18892. test x$enable_pipewire_shared = xyes; then
  18893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  18894. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  18895. fi
  18896. if test x$have_loadso = xyes && \
  18897. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  18898. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  18899. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  18900. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  18901. else
  18902. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  18903. SUMMARY_audio="${SUMMARY_audio} pipewire"
  18904. fi
  18905. have_audio=yes
  18906. fi
  18907. fi
  18908. }
  18909. CheckPulseAudio()
  18910. {
  18911. # Check whether --enable-pulseaudio was given.
  18912. if test ${enable_pulseaudio+y}
  18913. then :
  18914. enableval=$enable_pulseaudio;
  18915. else $as_nop
  18916. enable_pulseaudio=yes
  18917. fi
  18918. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  18919. pkg_failed=no
  18920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  18921. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  18922. if test -n "$PULSEAUDIO_CFLAGS"; then
  18923. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  18924. elif test -n "$PKG_CONFIG"; then
  18925. if test -n "$PKG_CONFIG" && \
  18926. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18927. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18928. ac_status=$?
  18929. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18930. test $ac_status = 0; }; then
  18931. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  18932. test "x$?" != "x0" && pkg_failed=yes
  18933. else
  18934. pkg_failed=yes
  18935. fi
  18936. else
  18937. pkg_failed=untried
  18938. fi
  18939. if test -n "$PULSEAUDIO_LIBS"; then
  18940. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  18941. elif test -n "$PKG_CONFIG"; then
  18942. if test -n "$PKG_CONFIG" && \
  18943. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18944. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18945. ac_status=$?
  18946. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18947. test $ac_status = 0; }; then
  18948. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  18949. test "x$?" != "x0" && pkg_failed=yes
  18950. else
  18951. pkg_failed=yes
  18952. fi
  18953. else
  18954. pkg_failed=untried
  18955. fi
  18956. if test $pkg_failed = yes; then
  18957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18958. printf "%s\n" "no" >&6; }
  18959. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18960. _pkg_short_errors_supported=yes
  18961. else
  18962. _pkg_short_errors_supported=no
  18963. fi
  18964. if test $_pkg_short_errors_supported = yes; then
  18965. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18966. else
  18967. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18968. fi
  18969. # Put the nasty error message in config.log where it belongs
  18970. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  18971. audio_pulseaudio=no
  18972. elif test $pkg_failed = untried; then
  18973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18974. printf "%s\n" "no" >&6; }
  18975. audio_pulseaudio=no
  18976. else
  18977. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  18978. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  18979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18980. printf "%s\n" "yes" >&6; }
  18981. audio_pulseaudio=yes
  18982. fi
  18983. if test x$audio_pulseaudio = xyes; then
  18984. # Check whether --enable-pulseaudio-shared was given.
  18985. if test ${enable_pulseaudio_shared+y}
  18986. then :
  18987. enableval=$enable_pulseaudio_shared;
  18988. else $as_nop
  18989. enable_pulseaudio_shared=yes
  18990. fi
  18991. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18992. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  18993. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  18994. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  18995. if test x$have_loadso != xyes && \
  18996. test x$enable_pulseaudio_shared = xyes; then
  18997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  18998. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  18999. fi
  19000. if test x$have_loadso = xyes && \
  19001. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19002. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19003. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19004. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19005. case "$host" in
  19006. # On Solaris, pulseaudio must be linked deferred explicitly
  19007. # to prevent undefined symbol failures.
  19008. *-*-solaris*)
  19009. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19010. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19011. esac
  19012. else
  19013. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19014. SUMMARY_audio="${SUMMARY_audio} pulse"
  19015. fi
  19016. have_audio=yes
  19017. fi
  19018. fi
  19019. }
  19020. CheckARTSC()
  19021. {
  19022. # Check whether --enable-arts was given.
  19023. if test ${enable_arts+y}
  19024. then :
  19025. enableval=$enable_arts;
  19026. else $as_nop
  19027. enable_arts=yes
  19028. fi
  19029. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19030. # Extract the first word of "artsc-config", so it can be a program name with args.
  19031. set dummy artsc-config; ac_word=$2
  19032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19033. printf %s "checking for $ac_word... " >&6; }
  19034. if test ${ac_cv_path_ARTSCONFIG+y}
  19035. then :
  19036. printf %s "(cached) " >&6
  19037. else $as_nop
  19038. case $ARTSCONFIG in
  19039. [\\/]* | ?:[\\/]*)
  19040. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19041. ;;
  19042. *)
  19043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19044. for as_dir in $PATH
  19045. do
  19046. IFS=$as_save_IFS
  19047. case $as_dir in #(((
  19048. '') as_dir=./ ;;
  19049. */) ;;
  19050. *) as_dir=$as_dir/ ;;
  19051. esac
  19052. for ac_exec_ext in '' $ac_executable_extensions; do
  19053. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19054. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19055. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19056. break 2
  19057. fi
  19058. done
  19059. done
  19060. IFS=$as_save_IFS
  19061. ;;
  19062. esac
  19063. fi
  19064. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19065. if test -n "$ARTSCONFIG"; then
  19066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19067. printf "%s\n" "$ARTSCONFIG" >&6; }
  19068. else
  19069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19070. printf "%s\n" "no" >&6; }
  19071. fi
  19072. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19073. : # arts isn't installed
  19074. else
  19075. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19076. ARTS_LIBS=`$ARTSCONFIG --libs`
  19077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19078. printf %s "checking for aRts development environment... " >&6; }
  19079. audio_arts=no
  19080. save_CFLAGS="$CFLAGS"
  19081. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19083. /* end confdefs.h. */
  19084. #include <artsc.h>
  19085. int
  19086. main (void)
  19087. {
  19088. arts_stream_t stream;
  19089. ;
  19090. return 0;
  19091. }
  19092. _ACEOF
  19093. if ac_fn_c_try_compile "$LINENO"
  19094. then :
  19095. audio_arts=yes
  19096. fi
  19097. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19098. CFLAGS="$save_CFLAGS"
  19099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19100. printf "%s\n" "$audio_arts" >&6; }
  19101. if test x$audio_arts = xyes; then
  19102. # Check whether --enable-arts-shared was given.
  19103. if test ${enable_arts_shared+y}
  19104. then :
  19105. enableval=$enable_arts_shared;
  19106. else $as_nop
  19107. enable_arts_shared=yes
  19108. fi
  19109. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19110. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19111. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19112. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19113. if test x$have_loadso != xyes && \
  19114. test x$enable_arts_shared = xyes; then
  19115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19116. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19117. fi
  19118. if test x$have_loadso = xyes && \
  19119. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19120. echo "-- dynamic libartsc -> $arts_lib"
  19121. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19122. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19123. else
  19124. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19125. SUMMARY_audio="${SUMMARY_audio} arts"
  19126. fi
  19127. have_audio=yes
  19128. fi
  19129. fi
  19130. fi
  19131. }
  19132. CheckNAS()
  19133. {
  19134. # Check whether --enable-nas was given.
  19135. if test ${enable_nas+y}
  19136. then :
  19137. enableval=$enable_nas;
  19138. else $as_nop
  19139. enable_nas=yes
  19140. fi
  19141. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19142. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19143. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19144. then :
  19145. have_nas_hdr=yes
  19146. fi
  19147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19148. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19149. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19150. then :
  19151. printf %s "(cached) " >&6
  19152. else $as_nop
  19153. ac_check_lib_save_LIBS=$LIBS
  19154. LIBS="-laudio $LIBS"
  19155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19156. /* end confdefs.h. */
  19157. /* Override any GCC internal prototype to avoid an error.
  19158. Use char because int might match the return type of a GCC
  19159. builtin and then its argument prototype would still apply. */
  19160. char AuOpenServer ();
  19161. int
  19162. main (void)
  19163. {
  19164. return AuOpenServer ();
  19165. ;
  19166. return 0;
  19167. }
  19168. _ACEOF
  19169. if ac_fn_c_try_link "$LINENO"
  19170. then :
  19171. ac_cv_lib_audio_AuOpenServer=yes
  19172. else $as_nop
  19173. ac_cv_lib_audio_AuOpenServer=no
  19174. fi
  19175. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19176. conftest$ac_exeext conftest.$ac_ext
  19177. LIBS=$ac_check_lib_save_LIBS
  19178. fi
  19179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19180. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19181. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19182. then :
  19183. have_nas_lib=yes
  19184. fi
  19185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19186. printf %s "checking for NAS audio support... " >&6; }
  19187. have_nas=no
  19188. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19189. have_nas=yes
  19190. NAS_LIBS="-laudio"
  19191. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19192. have_nas=yes
  19193. NAS_CFLAGS="-I/usr/X11R6/include/"
  19194. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19195. fi
  19196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19197. printf "%s\n" "$have_nas" >&6; }
  19198. if test x$have_nas = xyes; then
  19199. # Check whether --enable-nas-shared was given.
  19200. if test ${enable_nas_shared+y}
  19201. then :
  19202. enableval=$enable_nas_shared;
  19203. else $as_nop
  19204. enable_nas_shared=yes
  19205. fi
  19206. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19207. if test x$have_loadso != xyes && \
  19208. test x$enable_nas_shared = xyes; then
  19209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19210. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19211. fi
  19212. if test x$have_loadso = xyes && \
  19213. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19214. echo "-- dynamic libaudio -> $nas_lib"
  19215. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19216. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19217. else
  19218. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19219. SUMMARY_audio="${SUMMARY_audio} nas"
  19220. fi
  19221. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19222. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19223. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19224. have_audio=yes
  19225. fi
  19226. fi
  19227. }
  19228. CheckSNDIO()
  19229. {
  19230. # Check whether --enable-sndio was given.
  19231. if test ${enable_sndio+y}
  19232. then :
  19233. enableval=$enable_sndio;
  19234. else $as_nop
  19235. enable_sndio=yes
  19236. fi
  19237. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19238. ac_fn_c_check_header_compile "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  19239. if test "x$ac_cv_header_sndio_h" = xyes
  19240. then :
  19241. have_sndio_hdr=yes
  19242. fi
  19243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  19244. printf %s "checking for sio_open in -lsndio... " >&6; }
  19245. if test ${ac_cv_lib_sndio_sio_open+y}
  19246. then :
  19247. printf %s "(cached) " >&6
  19248. else $as_nop
  19249. ac_check_lib_save_LIBS=$LIBS
  19250. LIBS="-lsndio $LIBS"
  19251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19252. /* end confdefs.h. */
  19253. /* Override any GCC internal prototype to avoid an error.
  19254. Use char because int might match the return type of a GCC
  19255. builtin and then its argument prototype would still apply. */
  19256. char sio_open ();
  19257. int
  19258. main (void)
  19259. {
  19260. return sio_open ();
  19261. ;
  19262. return 0;
  19263. }
  19264. _ACEOF
  19265. if ac_fn_c_try_link "$LINENO"
  19266. then :
  19267. ac_cv_lib_sndio_sio_open=yes
  19268. else $as_nop
  19269. ac_cv_lib_sndio_sio_open=no
  19270. fi
  19271. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19272. conftest$ac_exeext conftest.$ac_ext
  19273. LIBS=$ac_check_lib_save_LIBS
  19274. fi
  19275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  19276. printf "%s\n" "$ac_cv_lib_sndio_sio_open" >&6; }
  19277. if test "x$ac_cv_lib_sndio_sio_open" = xyes
  19278. then :
  19279. have_sndio_lib=yes
  19280. fi
  19281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  19282. printf %s "checking for sndio audio support... " >&6; }
  19283. have_sndio=no
  19284. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  19285. have_sndio=yes
  19286. SNDIO_LIBS="-lsndio"
  19287. fi
  19288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  19289. printf "%s\n" "$have_sndio" >&6; }
  19290. if test x$have_sndio = xyes; then
  19291. # Check whether --enable-sndio-shared was given.
  19292. if test ${enable_sndio_shared+y}
  19293. then :
  19294. enableval=$enable_sndio_shared;
  19295. else $as_nop
  19296. enable_sndio_shared=yes
  19297. fi
  19298. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19299. if test x$have_loadso != xyes && \
  19300. test x$enable_sndio_shared = xyes; then
  19301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19302. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19303. fi
  19304. if test x$have_loadso = xyes && \
  19305. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19306. echo "-- dynamic libsndio -> $sndio_lib"
  19307. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19308. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19309. else
  19310. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19311. SUMMARY_audio="${SUMMARY_audio} sndio"
  19312. fi
  19313. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19314. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19315. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19316. have_audio=yes
  19317. fi
  19318. fi
  19319. }
  19320. CheckFusionSound()
  19321. {
  19322. # Check whether --enable-fusionsound was given.
  19323. if test ${enable_fusionsound+y}
  19324. then :
  19325. enableval=$enable_fusionsound;
  19326. else $as_nop
  19327. enable_fusionsound=no
  19328. fi
  19329. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19330. pkg_failed=no
  19331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19332. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19333. if test -n "$FUSIONSOUND_CFLAGS"; then
  19334. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19335. elif test -n "$PKG_CONFIG"; then
  19336. if test -n "$PKG_CONFIG" && \
  19337. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19338. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19339. ac_status=$?
  19340. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19341. test $ac_status = 0; }; then
  19342. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19343. test "x$?" != "x0" && pkg_failed=yes
  19344. else
  19345. pkg_failed=yes
  19346. fi
  19347. else
  19348. pkg_failed=untried
  19349. fi
  19350. if test -n "$FUSIONSOUND_LIBS"; then
  19351. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19352. elif test -n "$PKG_CONFIG"; then
  19353. if test -n "$PKG_CONFIG" && \
  19354. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19355. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19356. ac_status=$?
  19357. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19358. test $ac_status = 0; }; then
  19359. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19360. test "x$?" != "x0" && pkg_failed=yes
  19361. else
  19362. pkg_failed=yes
  19363. fi
  19364. else
  19365. pkg_failed=untried
  19366. fi
  19367. if test $pkg_failed = yes; then
  19368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19369. printf "%s\n" "no" >&6; }
  19370. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19371. _pkg_short_errors_supported=yes
  19372. else
  19373. _pkg_short_errors_supported=no
  19374. fi
  19375. if test $_pkg_short_errors_supported = yes; then
  19376. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19377. else
  19378. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19379. fi
  19380. # Put the nasty error message in config.log where it belongs
  19381. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19382. fusionsound=no
  19383. elif test $pkg_failed = untried; then
  19384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19385. printf "%s\n" "no" >&6; }
  19386. fusionsound=no
  19387. else
  19388. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19389. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19391. printf "%s\n" "yes" >&6; }
  19392. fusionsound=yes
  19393. fi
  19394. if test x$fusionsound = xyes; then
  19395. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19396. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19397. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19398. # Check whether --enable-fusionsound-shared was given.
  19399. if test ${enable_fusionsound_shared+y}
  19400. then :
  19401. enableval=$enable_fusionsound_shared;
  19402. else $as_nop
  19403. enable_fusionsound_shared=yes
  19404. fi
  19405. fusionsound_shared=no
  19406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19407. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19408. if test x$have_loadso != xyes && \
  19409. test x$enable_fusionsound_shared = xyes; then
  19410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19411. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19412. fi
  19413. if test x$have_loadso = xyes && \
  19414. test x$enable_fusionsound_shared = xyes; then
  19415. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19416. fusionsound_shared=yes
  19417. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19418. else
  19419. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19420. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19421. fi
  19422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19423. printf "%s\n" "$fusionsound_shared" >&6; }
  19424. have_audio=yes
  19425. fi
  19426. fi
  19427. }
  19428. CheckDiskAudio()
  19429. {
  19430. # Check whether --enable-diskaudio was given.
  19431. if test ${enable_diskaudio+y}
  19432. then :
  19433. enableval=$enable_diskaudio;
  19434. else $as_nop
  19435. enable_diskaudio=yes
  19436. fi
  19437. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19438. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19439. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19440. SUMMARY_audio="${SUMMARY_audio} disk"
  19441. have_audio=yes
  19442. fi
  19443. }
  19444. CheckDummyAudio()
  19445. {
  19446. # Check whether --enable-dummyaudio was given.
  19447. if test ${enable_dummyaudio+y}
  19448. then :
  19449. enableval=$enable_dummyaudio;
  19450. else $as_nop
  19451. enable_dummyaudio=yes
  19452. fi
  19453. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19454. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19455. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19456. SUMMARY_audio="${SUMMARY_audio} dummy"
  19457. have_audio=yes
  19458. fi
  19459. }
  19460. CheckLibSampleRate()
  19461. {
  19462. # Check whether --enable-libsamplerate was given.
  19463. if test ${enable_libsamplerate+y}
  19464. then :
  19465. enableval=$enable_libsamplerate;
  19466. else $as_nop
  19467. enable_libsamplerate=yes
  19468. fi
  19469. if test x$enable_libsamplerate = xyes; then
  19470. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19471. if test "x$ac_cv_header_samplerate_h" = xyes
  19472. then :
  19473. have_samplerate_h_hdr=yes
  19474. else $as_nop
  19475. have_samplerate_h_hdr=no
  19476. fi
  19477. if test x$have_samplerate_h_hdr = xyes; then
  19478. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19479. # Check whether --enable-libsamplerate-shared was given.
  19480. if test ${enable_libsamplerate_shared+y}
  19481. then :
  19482. enableval=$enable_libsamplerate_shared;
  19483. else $as_nop
  19484. enable_libsamplerate_shared=yes
  19485. fi
  19486. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19487. if test x$have_loadso != xyes && \
  19488. test x$enable_libsamplerate_shared = xyes; then
  19489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19490. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19491. fi
  19492. if test x$have_loadso = xyes && \
  19493. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19494. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19495. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19496. else
  19497. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19498. fi
  19499. fi
  19500. fi
  19501. }
  19502. CheckARM()
  19503. {
  19504. # Check whether --enable-arm-simd was given.
  19505. if test ${enable_arm_simd+y}
  19506. then :
  19507. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19508. else $as_nop
  19509. enable_arm_simd=no
  19510. fi
  19511. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19512. save_CFLAGS="$CFLAGS"
  19513. have_arm_simd=no
  19514. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19516. printf %s "checking for ARM SIMD... " >&6; }
  19517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19518. /* end confdefs.h. */
  19519. .text
  19520. .arch armv6
  19521. .object_arch armv4
  19522. .arm
  19523. .altmacro
  19524. #ifndef __ARM_EABI__
  19525. #error EABI is required (to be sure that calling conventions are compatible)
  19526. #endif
  19527. pld [r0]
  19528. uqadd8 r0, r0, r0
  19529. _ACEOF
  19530. if ac_fn_c_try_compile "$LINENO"
  19531. then :
  19532. have_arm_simd=yes
  19533. fi
  19534. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19536. printf "%s\n" "$have_arm_simd" >&6; }
  19537. CFLAGS="$save_CFLAGS"
  19538. if test x$have_arm_simd = xyes; then
  19539. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19540. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19541. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19542. fi
  19543. fi
  19544. }
  19545. CheckNEON()
  19546. {
  19547. # Check whether --enable-arm-neon was given.
  19548. if test ${enable_arm_neon+y}
  19549. then :
  19550. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19551. else $as_nop
  19552. enable_arm_neon=no
  19553. fi
  19554. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19555. save_CFLAGS="$CFLAGS"
  19556. have_arm_neon=no
  19557. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19559. printf %s "checking for ARM NEON... " >&6; }
  19560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19561. /* end confdefs.h. */
  19562. .text
  19563. .fpu neon
  19564. .arch armv7a
  19565. .object_arch armv4
  19566. .eabi_attribute 10, 0
  19567. .arm
  19568. .altmacro
  19569. #ifndef __ARM_EABI__
  19570. #error EABI is required (to be sure that calling conventions are compatible)
  19571. #endif
  19572. pld [r0]
  19573. vmovn.u16 d0, q0
  19574. _ACEOF
  19575. if ac_fn_c_try_compile "$LINENO"
  19576. then :
  19577. have_arm_neon=yes
  19578. fi
  19579. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19581. printf "%s\n" "$have_arm_neon" >&6; }
  19582. CFLAGS="$save_CFLAGS"
  19583. if test x$have_arm_neon = xyes; then
  19584. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19585. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19586. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19587. fi
  19588. fi
  19589. }
  19590. CheckObjectiveCARC()
  19591. {
  19592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19593. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19594. have_clang_objc_arc=no
  19595. save_CFLAGS="$CFLAGS"
  19596. CFLAGS="$save_CFLAGS -fobjc-arc"
  19597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19598. /* end confdefs.h. */
  19599. int x = 0;
  19600. int
  19601. main (void)
  19602. {
  19603. ;
  19604. return 0;
  19605. }
  19606. _ACEOF
  19607. if ac_fn_c_try_compile "$LINENO"
  19608. then :
  19609. have_clang_objc_arc=yes
  19610. fi
  19611. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19613. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19614. CFLAGS="$save_CFLAGS"
  19615. if test x$have_clang_objc_arc = xyes; then
  19616. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19617. fi
  19618. }
  19619. CheckVisibilityHidden()
  19620. {
  19621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19622. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19623. have_gcc_fvisibility=no
  19624. visibility_CFLAGS="-fvisibility=hidden"
  19625. save_CFLAGS="$CFLAGS"
  19626. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19628. /* end confdefs.h. */
  19629. #if !defined(__GNUC__) || __GNUC__ < 4
  19630. #error SDL only uses visibility attributes in GCC 4 or newer
  19631. #endif
  19632. int
  19633. main (void)
  19634. {
  19635. ;
  19636. return 0;
  19637. }
  19638. _ACEOF
  19639. if ac_fn_c_try_compile "$LINENO"
  19640. then :
  19641. have_gcc_fvisibility=yes
  19642. fi
  19643. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19645. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19646. CFLAGS="$save_CFLAGS"
  19647. if test x$have_gcc_fvisibility = xyes; then
  19648. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19649. fi
  19650. }
  19651. CheckNoStrictAliasing()
  19652. {
  19653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19654. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19655. have_gcc_no_strict_aliasing=no
  19656. save_CFLAGS="$CFLAGS"
  19657. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19659. /* end confdefs.h. */
  19660. int x = 0;
  19661. int
  19662. main (void)
  19663. {
  19664. ;
  19665. return 0;
  19666. }
  19667. _ACEOF
  19668. if ac_fn_c_try_compile "$LINENO"
  19669. then :
  19670. have_gcc_no_strict_aliasing=yes
  19671. fi
  19672. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19674. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19675. CFLAGS="$save_CFLAGS"
  19676. if test x$have_gcc_no_strict_aliasing = xyes; then
  19677. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19678. fi
  19679. }
  19680. CheckStackBoundary()
  19681. {
  19682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19683. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19684. have_gcc_preferred_stack_boundary=no
  19685. save_CFLAGS="$CFLAGS"
  19686. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19688. /* end confdefs.h. */
  19689. int x = 0;
  19690. int
  19691. main (void)
  19692. {
  19693. ;
  19694. return 0;
  19695. }
  19696. _ACEOF
  19697. if ac_fn_c_try_compile "$LINENO"
  19698. then :
  19699. have_gcc_preferred_stack_boundary=yes
  19700. fi
  19701. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19703. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19704. CFLAGS="$save_CFLAGS"
  19705. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19706. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19707. fi
  19708. }
  19709. CheckDeclarationAfterStatement()
  19710. {
  19711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19712. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19713. have_gcc_declaration_after_statement=no
  19714. save_CFLAGS="$CFLAGS"
  19715. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19717. /* end confdefs.h. */
  19718. int x = 0;
  19719. int
  19720. main (void)
  19721. {
  19722. ;
  19723. return 0;
  19724. }
  19725. _ACEOF
  19726. if ac_fn_c_try_compile "$LINENO"
  19727. then :
  19728. have_gcc_declaration_after_statement=yes
  19729. fi
  19730. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19732. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19733. CFLAGS="$save_CFLAGS"
  19734. if test x$have_gcc_declaration_after_statement = xyes; then
  19735. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19736. fi
  19737. }
  19738. CheckWarnAll()
  19739. {
  19740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19741. printf %s "checking for GCC -Wall option... " >&6; }
  19742. have_gcc_Wall=no
  19743. save_CFLAGS="$CFLAGS"
  19744. CFLAGS="$save_CFLAGS -Wall"
  19745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19746. /* end confdefs.h. */
  19747. int x = 0;
  19748. int
  19749. main (void)
  19750. {
  19751. ;
  19752. return 0;
  19753. }
  19754. _ACEOF
  19755. if ac_fn_c_try_compile "$LINENO"
  19756. then :
  19757. have_gcc_Wall=yes
  19758. fi
  19759. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19761. printf "%s\n" "$have_gcc_Wall" >&6; }
  19762. CFLAGS="$save_CFLAGS"
  19763. if test x$have_gcc_Wall = xyes; then
  19764. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19766. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19767. need_gcc_Wno_multichar=no
  19768. case "$host" in
  19769. *-*-haiku*)
  19770. need_gcc_Wno_multichar=yes
  19771. ;;
  19772. esac
  19773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19774. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19775. if test x$need_gcc_Wno_multichar = xyes; then
  19776. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19777. fi
  19778. fi
  19779. }
  19780. CheckWayland()
  19781. {
  19782. # Check whether --enable-video-wayland was given.
  19783. if test ${enable_video_wayland+y}
  19784. then :
  19785. enableval=$enable_video_wayland;
  19786. else $as_nop
  19787. enable_video_wayland=yes
  19788. fi
  19789. # Check whether --enable-video-wayland-qt-touch was given.
  19790. if test ${enable_video_wayland_qt_touch+y}
  19791. then :
  19792. enableval=$enable_video_wayland_qt_touch;
  19793. else $as_nop
  19794. enable_video_wayland_qt_touch=yes
  19795. fi
  19796. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19798. printf %s "checking for Wayland support... " >&6; }
  19799. video_wayland=no
  19800. if test x$video_opengl_egl = xyes && \
  19801. test x$video_opengles_v2 = xyes; then
  19802. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19803. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19804. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19805. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19806. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19807. then :
  19808. WAYLAND_SCANNER_CODE_MODE=private-code
  19809. else $as_nop
  19810. WAYLAND_SCANNER_CODE_MODE=code
  19811. fi
  19812. video_wayland=yes
  19813. fi
  19814. fi
  19815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19816. printf "%s\n" "$video_wayland" >&6; }
  19817. if test x$video_wayland = xyes; then
  19818. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19819. if test x$enable_video_wayland_qt_touch = xyes; then
  19820. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19821. fi
  19822. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19823. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19824. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19825. # Check whether --enable-wayland-shared was given.
  19826. if test ${enable_wayland_shared+y}
  19827. then :
  19828. enableval=$enable_wayland_shared;
  19829. else $as_nop
  19830. enable_wayland_shared=maybe
  19831. fi
  19832. case "$host" in
  19833. *)
  19834. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19835. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19836. if test x$wayland_egl_lib = x; then
  19837. # This works in Ubuntu 13.10, maybe others
  19838. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19839. fi
  19840. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19841. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19842. ;;
  19843. esac
  19844. if test x$enable_wayland_shared = xmaybe; then
  19845. enable_wayland_shared=yes
  19846. fi
  19847. if test x$have_loadso != xyes && \
  19848. test x$enable_wayland_shared = xyes; then
  19849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  19850. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  19851. enable_wayland_shared=no
  19852. fi
  19853. if test x$have_loadso = xyes && \
  19854. test x$enable_wayland_shared = xyes && \
  19855. test x$wayland_client_lib != x && \
  19856. test x$wayland_egl_lib != x && \
  19857. test x$wayland_cursor_lib != x && \
  19858. test x$xkbcommon_lib != x; then
  19859. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  19860. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  19861. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  19862. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  19863. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  19864. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  19865. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  19866. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  19867. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  19868. else
  19869. enable_wayland_shared=no
  19870. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  19871. SUMMARY_video="${SUMMARY_video} wayland"
  19872. fi
  19873. have_video=yes
  19874. # Check whether --enable-libdecor was given.
  19875. if test ${enable_libdecor+y}
  19876. then :
  19877. enableval=$enable_libdecor;
  19878. else $as_nop
  19879. enable_libdecor=yes
  19880. fi
  19881. if test x$enable_libdecor = xyes; then
  19882. pkg_failed=no
  19883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  19884. printf %s "checking for libdecor-0... " >&6; }
  19885. if test -n "$DECOR_CFLAGS"; then
  19886. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  19887. elif test -n "$PKG_CONFIG"; then
  19888. if test -n "$PKG_CONFIG" && \
  19889. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19890. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19891. ac_status=$?
  19892. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19893. test $ac_status = 0; }; then
  19894. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  19895. test "x$?" != "x0" && pkg_failed=yes
  19896. else
  19897. pkg_failed=yes
  19898. fi
  19899. else
  19900. pkg_failed=untried
  19901. fi
  19902. if test -n "$DECOR_LIBS"; then
  19903. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  19904. elif test -n "$PKG_CONFIG"; then
  19905. if test -n "$PKG_CONFIG" && \
  19906. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19907. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19908. ac_status=$?
  19909. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19910. test $ac_status = 0; }; then
  19911. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  19912. test "x$?" != "x0" && pkg_failed=yes
  19913. else
  19914. pkg_failed=yes
  19915. fi
  19916. else
  19917. pkg_failed=untried
  19918. fi
  19919. if test $pkg_failed = yes; then
  19920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19921. printf "%s\n" "no" >&6; }
  19922. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19923. _pkg_short_errors_supported=yes
  19924. else
  19925. _pkg_short_errors_supported=no
  19926. fi
  19927. if test $_pkg_short_errors_supported = yes; then
  19928. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  19929. else
  19930. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  19931. fi
  19932. # Put the nasty error message in config.log where it belongs
  19933. echo "$DECOR_PKG_ERRORS" >&5
  19934. video_libdecor=no
  19935. elif test $pkg_failed = untried; then
  19936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19937. printf "%s\n" "no" >&6; }
  19938. video_libdecor=no
  19939. else
  19940. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  19941. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  19942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19943. printf "%s\n" "yes" >&6; }
  19944. video_libdecor=yes
  19945. fi
  19946. if test x$video_libdecor = xyes; then
  19947. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  19948. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  19949. # Check whether --enable-libdecor-shared was given.
  19950. if test ${enable_libdecor_shared+y}
  19951. then :
  19952. enableval=$enable_libdecor_shared;
  19953. else $as_nop
  19954. enable_libdecor_shared=yes
  19955. fi
  19956. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19957. if test x$enable_wayland_shared != xyes; then
  19958. enable_libdecor_shared=no
  19959. fi
  19960. if test x$have_loadso != xyes && \
  19961. test x$enable_libdecor_shared = xyes; then
  19962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  19963. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  19964. fi
  19965. if test x$have_loadso = xyes && \
  19966. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  19967. echo "-- dynamic libdecor -> $decor_lib"
  19968. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  19969. else
  19970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  19971. fi
  19972. fi
  19973. fi
  19974. fi
  19975. fi
  19976. }
  19977. CheckNativeClient()
  19978. {
  19979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19980. /* end confdefs.h. */
  19981. #if !defined(__native_client__)
  19982. #error "NO NACL"
  19983. #endif
  19984. int
  19985. main (void)
  19986. {
  19987. ;
  19988. return 0;
  19989. }
  19990. _ACEOF
  19991. if ac_fn_c_try_compile "$LINENO"
  19992. then :
  19993. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  19994. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  19995. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  19996. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  19997. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19998. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19999. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20000. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20001. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20002. SUMMARY_audio="${SUMMARY_audio} nacl"
  20003. have_audio=yes
  20004. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20005. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20006. have_video=yes
  20007. fi
  20008. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20009. }
  20010. CheckRPI()
  20011. {
  20012. # Check whether --enable-video-rpi was given.
  20013. if test ${enable_video_rpi+y}
  20014. then :
  20015. enableval=$enable_video_rpi;
  20016. else $as_nop
  20017. enable_video_rpi=yes
  20018. fi
  20019. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20020. pkg_failed=no
  20021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20022. printf %s "checking for bcm_host brcmegl... " >&6; }
  20023. if test -n "$RPI_CFLAGS"; then
  20024. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20025. elif test -n "$PKG_CONFIG"; then
  20026. if test -n "$PKG_CONFIG" && \
  20027. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20028. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20029. ac_status=$?
  20030. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20031. test $ac_status = 0; }; then
  20032. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20033. test "x$?" != "x0" && pkg_failed=yes
  20034. else
  20035. pkg_failed=yes
  20036. fi
  20037. else
  20038. pkg_failed=untried
  20039. fi
  20040. if test -n "$RPI_LIBS"; then
  20041. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20042. elif test -n "$PKG_CONFIG"; then
  20043. if test -n "$PKG_CONFIG" && \
  20044. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20045. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20046. ac_status=$?
  20047. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20048. test $ac_status = 0; }; then
  20049. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20050. test "x$?" != "x0" && pkg_failed=yes
  20051. else
  20052. pkg_failed=yes
  20053. fi
  20054. else
  20055. pkg_failed=untried
  20056. fi
  20057. if test $pkg_failed = yes; then
  20058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20059. printf "%s\n" "no" >&6; }
  20060. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20061. _pkg_short_errors_supported=yes
  20062. else
  20063. _pkg_short_errors_supported=no
  20064. fi
  20065. if test $_pkg_short_errors_supported = yes; then
  20066. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20067. else
  20068. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20069. fi
  20070. # Put the nasty error message in config.log where it belongs
  20071. echo "$RPI_PKG_ERRORS" >&5
  20072. video_rpi=no
  20073. elif test $pkg_failed = untried; then
  20074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20075. printf "%s\n" "no" >&6; }
  20076. video_rpi=no
  20077. else
  20078. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20079. RPI_LIBS=$pkg_cv_RPI_LIBS
  20080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20081. printf "%s\n" "yes" >&6; }
  20082. video_rpi=yes
  20083. fi
  20084. if test x$video_rpi = xno; then
  20085. if test x$ARCH = xnetbsd; then
  20086. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20087. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20088. else
  20089. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20090. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20091. fi
  20092. fi
  20093. # Save the original compiler flags and libraries
  20094. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20095. # Add the Raspberry Pi compiler flags and libraries
  20096. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20098. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20099. have_video_rpi=no
  20100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20101. /* end confdefs.h. */
  20102. #include <bcm_host.h>
  20103. #include <EGL/eglplatform.h>
  20104. int
  20105. main (void)
  20106. {
  20107. EGL_DISPMANX_WINDOW_T window;
  20108. bcm_host_init();
  20109. ;
  20110. return 0;
  20111. }
  20112. _ACEOF
  20113. if ac_fn_c_try_link "$LINENO"
  20114. then :
  20115. have_video_rpi=yes
  20116. fi
  20117. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20118. conftest$ac_exeext conftest.$ac_ext
  20119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20120. printf "%s\n" "$have_video_rpi" >&6; }
  20121. # Restore the compiler flags and libraries
  20122. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20123. if test x$have_video_rpi = xyes; then
  20124. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20125. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20126. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20127. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20128. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20129. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20130. SUMMARY_video="${SUMMARY_video} rpi"
  20131. have_video=yes
  20132. fi
  20133. fi
  20134. }
  20135. CheckX11()
  20136. {
  20137. # Check whether --enable-video-x11 was given.
  20138. if test ${enable_video_x11+y}
  20139. then :
  20140. enableval=$enable_video_x11;
  20141. else $as_nop
  20142. enable_video_x11=yes
  20143. fi
  20144. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20145. case "$host" in
  20146. *-*-darwin*)
  20147. # This isn't necessary for X11, but fixes GLX detection
  20148. if test "x$x_includes" = xNONE && \
  20149. test "x$x_libraries" = xNONE && \
  20150. test -d /opt/X11/include && \
  20151. test -d /opt/X11/lib; then
  20152. x_includes="/opt/X11/include"
  20153. x_libraries="/opt/X11/lib"
  20154. fi
  20155. ;;
  20156. esac
  20157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20158. printf %s "checking for X... " >&6; }
  20159. # Check whether --with-x was given.
  20160. if test ${with_x+y}
  20161. then :
  20162. withval=$with_x;
  20163. fi
  20164. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20165. if test "x$with_x" = xno; then
  20166. # The user explicitly disabled X.
  20167. have_x=disabled
  20168. else
  20169. case $x_includes,$x_libraries in #(
  20170. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20171. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20172. then :
  20173. printf %s "(cached) " >&6
  20174. else $as_nop
  20175. # One or both of the vars are not set, and there is no cached value.
  20176. ac_x_includes=no
  20177. ac_x_libraries=no
  20178. # Do we need to do anything special at all?
  20179. ac_save_LIBS=$LIBS
  20180. LIBS="-lX11 $LIBS"
  20181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20182. /* end confdefs.h. */
  20183. #include <X11/Xlib.h>
  20184. int
  20185. main (void)
  20186. {
  20187. XrmInitialize ()
  20188. ;
  20189. return 0;
  20190. }
  20191. _ACEOF
  20192. if ac_fn_c_try_link "$LINENO"
  20193. then :
  20194. # We can compile and link X programs with no special options.
  20195. ac_x_includes=
  20196. ac_x_libraries=
  20197. fi
  20198. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20199. conftest$ac_exeext conftest.$ac_ext
  20200. LIBS="$ac_save_LIBS"
  20201. # If that didn't work, only try xmkmf and file system searches
  20202. # for native compilation.
  20203. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20204. then :
  20205. rm -f -r conftest.dir
  20206. if mkdir conftest.dir; then
  20207. cd conftest.dir
  20208. cat >Imakefile <<'_ACEOF'
  20209. incroot:
  20210. @echo incroot='${INCROOT}'
  20211. usrlibdir:
  20212. @echo usrlibdir='${USRLIBDIR}'
  20213. libdir:
  20214. @echo libdir='${LIBDIR}'
  20215. _ACEOF
  20216. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20217. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20218. for ac_var in incroot usrlibdir libdir; do
  20219. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20220. done
  20221. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20222. for ac_extension in a so sl dylib la dll; do
  20223. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20224. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20225. ac_im_usrlibdir=$ac_im_libdir; break
  20226. fi
  20227. done
  20228. # Screen out bogus values from the imake configuration. They are
  20229. # bogus both because they are the default anyway, and because
  20230. # using them would break gcc on systems where it needs fixed includes.
  20231. case $ac_im_incroot in
  20232. /usr/include) ac_x_includes= ;;
  20233. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20234. esac
  20235. case $ac_im_usrlibdir in
  20236. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20237. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20238. esac
  20239. fi
  20240. cd ..
  20241. rm -f -r conftest.dir
  20242. fi
  20243. # Standard set of common directories for X headers.
  20244. # Check X11 before X11Rn because it is often a symlink to the current release.
  20245. ac_x_header_dirs='
  20246. /usr/X11/include
  20247. /usr/X11R7/include
  20248. /usr/X11R6/include
  20249. /usr/X11R5/include
  20250. /usr/X11R4/include
  20251. /usr/include/X11
  20252. /usr/include/X11R7
  20253. /usr/include/X11R6
  20254. /usr/include/X11R5
  20255. /usr/include/X11R4
  20256. /usr/local/X11/include
  20257. /usr/local/X11R7/include
  20258. /usr/local/X11R6/include
  20259. /usr/local/X11R5/include
  20260. /usr/local/X11R4/include
  20261. /usr/local/include/X11
  20262. /usr/local/include/X11R7
  20263. /usr/local/include/X11R6
  20264. /usr/local/include/X11R5
  20265. /usr/local/include/X11R4
  20266. /opt/X11/include
  20267. /usr/X386/include
  20268. /usr/x386/include
  20269. /usr/XFree86/include/X11
  20270. /usr/include
  20271. /usr/local/include
  20272. /usr/unsupported/include
  20273. /usr/athena/include
  20274. /usr/local/x11r5/include
  20275. /usr/lpp/Xamples/include
  20276. /usr/openwin/include
  20277. /usr/openwin/share/include'
  20278. if test "$ac_x_includes" = no; then
  20279. # Guess where to find include files, by looking for Xlib.h.
  20280. # First, try using that file with no special directory specified.
  20281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20282. /* end confdefs.h. */
  20283. #include <X11/Xlib.h>
  20284. _ACEOF
  20285. if ac_fn_c_try_cpp "$LINENO"
  20286. then :
  20287. # We can compile using X headers with no special include directory.
  20288. ac_x_includes=
  20289. else $as_nop
  20290. for ac_dir in $ac_x_header_dirs; do
  20291. if test -r "$ac_dir/X11/Xlib.h"; then
  20292. ac_x_includes=$ac_dir
  20293. break
  20294. fi
  20295. done
  20296. fi
  20297. rm -f conftest.err conftest.i conftest.$ac_ext
  20298. fi # $ac_x_includes = no
  20299. if test "$ac_x_libraries" = no; then
  20300. # Check for the libraries.
  20301. # See if we find them without any special options.
  20302. # Don't add to $LIBS permanently.
  20303. ac_save_LIBS=$LIBS
  20304. LIBS="-lX11 $LIBS"
  20305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20306. /* end confdefs.h. */
  20307. #include <X11/Xlib.h>
  20308. int
  20309. main (void)
  20310. {
  20311. XrmInitialize ()
  20312. ;
  20313. return 0;
  20314. }
  20315. _ACEOF
  20316. if ac_fn_c_try_link "$LINENO"
  20317. then :
  20318. LIBS=$ac_save_LIBS
  20319. # We can link X programs with no special library path.
  20320. ac_x_libraries=
  20321. else $as_nop
  20322. LIBS=$ac_save_LIBS
  20323. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20324. do
  20325. # Don't even attempt the hair of trying to link an X program!
  20326. for ac_extension in a so sl dylib la dll; do
  20327. if test -r "$ac_dir/libX11.$ac_extension"; then
  20328. ac_x_libraries=$ac_dir
  20329. break 2
  20330. fi
  20331. done
  20332. done
  20333. fi
  20334. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20335. conftest$ac_exeext conftest.$ac_ext
  20336. fi # $ac_x_libraries = no
  20337. fi
  20338. # Record the results.
  20339. case $ac_x_includes,$ac_x_libraries in #(
  20340. no,* | *,no | *\'*) :
  20341. # Didn't find X, or a directory has "'" in its name.
  20342. ac_cv_have_x="have_x=no" ;; #(
  20343. *) :
  20344. # Record where we found X for the cache.
  20345. ac_cv_have_x="have_x=yes\
  20346. ac_x_includes='$ac_x_includes'\
  20347. ac_x_libraries='$ac_x_libraries'" ;;
  20348. esac
  20349. fi
  20350. ;; #(
  20351. *) have_x=yes;;
  20352. esac
  20353. eval "$ac_cv_have_x"
  20354. fi # $with_x != no
  20355. if test "$have_x" != yes; then
  20356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20357. printf "%s\n" "$have_x" >&6; }
  20358. no_x=yes
  20359. else
  20360. # If each of the values was on the command line, it overrides each guess.
  20361. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20362. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20363. # Update the cache value to reflect the command line values.
  20364. ac_cv_have_x="have_x=yes\
  20365. ac_x_includes='$x_includes'\
  20366. ac_x_libraries='$x_libraries'"
  20367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20368. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20369. fi
  20370. if test "$no_x" = yes; then
  20371. # Not all programs may use this symbol, but it does not hurt to define it.
  20372. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20373. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20374. else
  20375. if test -n "$x_includes"; then
  20376. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20377. fi
  20378. # It would also be nice to do this for all -L options, not just this one.
  20379. if test -n "$x_libraries"; then
  20380. X_LIBS="$X_LIBS -L$x_libraries"
  20381. # For Solaris; some versions of Sun CC require a space after -R and
  20382. # others require no space. Words are not sufficient . . . .
  20383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20384. printf %s "checking whether -R must be followed by a space... " >&6; }
  20385. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20386. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20387. ac_c_werror_flag=yes
  20388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20389. /* end confdefs.h. */
  20390. int
  20391. main (void)
  20392. {
  20393. ;
  20394. return 0;
  20395. }
  20396. _ACEOF
  20397. if ac_fn_c_try_link "$LINENO"
  20398. then :
  20399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20400. printf "%s\n" "no" >&6; }
  20401. X_LIBS="$X_LIBS -R$x_libraries"
  20402. else $as_nop
  20403. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20405. /* end confdefs.h. */
  20406. int
  20407. main (void)
  20408. {
  20409. ;
  20410. return 0;
  20411. }
  20412. _ACEOF
  20413. if ac_fn_c_try_link "$LINENO"
  20414. then :
  20415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20416. printf "%s\n" "yes" >&6; }
  20417. X_LIBS="$X_LIBS -R $x_libraries"
  20418. else $as_nop
  20419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20420. printf "%s\n" "neither works" >&6; }
  20421. fi
  20422. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20423. conftest$ac_exeext conftest.$ac_ext
  20424. fi
  20425. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20426. conftest$ac_exeext conftest.$ac_ext
  20427. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20428. LIBS=$ac_xsave_LIBS
  20429. fi
  20430. # Check for system-dependent libraries X programs must link with.
  20431. # Do this before checking for the system-independent R6 libraries
  20432. # (-lICE), since we may need -lsocket or whatever for X linking.
  20433. if test "$ISC" = yes; then
  20434. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20435. else
  20436. # Martyn Johnson says this is needed for Ultrix, if the X
  20437. # libraries were built with DECnet support. And Karl Berry says
  20438. # the Alpha needs dnet_stub (dnet does not exist).
  20439. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20441. /* end confdefs.h. */
  20442. /* Override any GCC internal prototype to avoid an error.
  20443. Use char because int might match the return type of a GCC
  20444. builtin and then its argument prototype would still apply. */
  20445. char XOpenDisplay ();
  20446. int
  20447. main (void)
  20448. {
  20449. return XOpenDisplay ();
  20450. ;
  20451. return 0;
  20452. }
  20453. _ACEOF
  20454. if ac_fn_c_try_link "$LINENO"
  20455. then :
  20456. else $as_nop
  20457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20458. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20459. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20460. then :
  20461. printf %s "(cached) " >&6
  20462. else $as_nop
  20463. ac_check_lib_save_LIBS=$LIBS
  20464. LIBS="-ldnet $LIBS"
  20465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20466. /* end confdefs.h. */
  20467. /* Override any GCC internal prototype to avoid an error.
  20468. Use char because int might match the return type of a GCC
  20469. builtin and then its argument prototype would still apply. */
  20470. char dnet_ntoa ();
  20471. int
  20472. main (void)
  20473. {
  20474. return dnet_ntoa ();
  20475. ;
  20476. return 0;
  20477. }
  20478. _ACEOF
  20479. if ac_fn_c_try_link "$LINENO"
  20480. then :
  20481. ac_cv_lib_dnet_dnet_ntoa=yes
  20482. else $as_nop
  20483. ac_cv_lib_dnet_dnet_ntoa=no
  20484. fi
  20485. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20486. conftest$ac_exeext conftest.$ac_ext
  20487. LIBS=$ac_check_lib_save_LIBS
  20488. fi
  20489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20490. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20491. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20492. then :
  20493. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20494. fi
  20495. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20497. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20498. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20499. then :
  20500. printf %s "(cached) " >&6
  20501. else $as_nop
  20502. ac_check_lib_save_LIBS=$LIBS
  20503. LIBS="-ldnet_stub $LIBS"
  20504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20505. /* end confdefs.h. */
  20506. /* Override any GCC internal prototype to avoid an error.
  20507. Use char because int might match the return type of a GCC
  20508. builtin and then its argument prototype would still apply. */
  20509. char dnet_ntoa ();
  20510. int
  20511. main (void)
  20512. {
  20513. return dnet_ntoa ();
  20514. ;
  20515. return 0;
  20516. }
  20517. _ACEOF
  20518. if ac_fn_c_try_link "$LINENO"
  20519. then :
  20520. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20521. else $as_nop
  20522. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20523. fi
  20524. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20525. conftest$ac_exeext conftest.$ac_ext
  20526. LIBS=$ac_check_lib_save_LIBS
  20527. fi
  20528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20529. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20530. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20531. then :
  20532. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20533. fi
  20534. fi
  20535. fi
  20536. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20537. conftest$ac_exeext conftest.$ac_ext
  20538. LIBS="$ac_xsave_LIBS"
  20539. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20540. # to get the SysV transport functions.
  20541. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20542. # needs -lnsl.
  20543. # The nsl library prevents programs from opening the X display
  20544. # on Irix 5.2, according to T.E. Dickey.
  20545. # The functions gethostbyname, getservbyname, and inet_addr are
  20546. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20547. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20548. if test "x$ac_cv_func_gethostbyname" = xyes
  20549. then :
  20550. fi
  20551. if test $ac_cv_func_gethostbyname = no; then
  20552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20553. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20554. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20555. then :
  20556. printf %s "(cached) " >&6
  20557. else $as_nop
  20558. ac_check_lib_save_LIBS=$LIBS
  20559. LIBS="-lnsl $LIBS"
  20560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20561. /* end confdefs.h. */
  20562. /* Override any GCC internal prototype to avoid an error.
  20563. Use char because int might match the return type of a GCC
  20564. builtin and then its argument prototype would still apply. */
  20565. char gethostbyname ();
  20566. int
  20567. main (void)
  20568. {
  20569. return gethostbyname ();
  20570. ;
  20571. return 0;
  20572. }
  20573. _ACEOF
  20574. if ac_fn_c_try_link "$LINENO"
  20575. then :
  20576. ac_cv_lib_nsl_gethostbyname=yes
  20577. else $as_nop
  20578. ac_cv_lib_nsl_gethostbyname=no
  20579. fi
  20580. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20581. conftest$ac_exeext conftest.$ac_ext
  20582. LIBS=$ac_check_lib_save_LIBS
  20583. fi
  20584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20585. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20586. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20587. then :
  20588. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20589. fi
  20590. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20592. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20593. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20594. then :
  20595. printf %s "(cached) " >&6
  20596. else $as_nop
  20597. ac_check_lib_save_LIBS=$LIBS
  20598. LIBS="-lbsd $LIBS"
  20599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20600. /* end confdefs.h. */
  20601. /* Override any GCC internal prototype to avoid an error.
  20602. Use char because int might match the return type of a GCC
  20603. builtin and then its argument prototype would still apply. */
  20604. char gethostbyname ();
  20605. int
  20606. main (void)
  20607. {
  20608. return gethostbyname ();
  20609. ;
  20610. return 0;
  20611. }
  20612. _ACEOF
  20613. if ac_fn_c_try_link "$LINENO"
  20614. then :
  20615. ac_cv_lib_bsd_gethostbyname=yes
  20616. else $as_nop
  20617. ac_cv_lib_bsd_gethostbyname=no
  20618. fi
  20619. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20620. conftest$ac_exeext conftest.$ac_ext
  20621. LIBS=$ac_check_lib_save_LIBS
  20622. fi
  20623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20624. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20625. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20626. then :
  20627. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20628. fi
  20629. fi
  20630. fi
  20631. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20632. # socket/setsockopt and other routines are undefined under SCO ODT
  20633. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20634. # on later versions), says Simon Leinen: it contains gethostby*
  20635. # variants that don't use the name server (or something). -lsocket
  20636. # must be given before -lnsl if both are needed. We assume that
  20637. # if connect needs -lnsl, so does gethostbyname.
  20638. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20639. if test "x$ac_cv_func_connect" = xyes
  20640. then :
  20641. fi
  20642. if test $ac_cv_func_connect = no; then
  20643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20644. printf %s "checking for connect in -lsocket... " >&6; }
  20645. if test ${ac_cv_lib_socket_connect+y}
  20646. then :
  20647. printf %s "(cached) " >&6
  20648. else $as_nop
  20649. ac_check_lib_save_LIBS=$LIBS
  20650. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20652. /* end confdefs.h. */
  20653. /* Override any GCC internal prototype to avoid an error.
  20654. Use char because int might match the return type of a GCC
  20655. builtin and then its argument prototype would still apply. */
  20656. char connect ();
  20657. int
  20658. main (void)
  20659. {
  20660. return connect ();
  20661. ;
  20662. return 0;
  20663. }
  20664. _ACEOF
  20665. if ac_fn_c_try_link "$LINENO"
  20666. then :
  20667. ac_cv_lib_socket_connect=yes
  20668. else $as_nop
  20669. ac_cv_lib_socket_connect=no
  20670. fi
  20671. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20672. conftest$ac_exeext conftest.$ac_ext
  20673. LIBS=$ac_check_lib_save_LIBS
  20674. fi
  20675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20676. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20677. if test "x$ac_cv_lib_socket_connect" = xyes
  20678. then :
  20679. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20680. fi
  20681. fi
  20682. # Guillermo Gomez says -lposix is necessary on A/UX.
  20683. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20684. if test "x$ac_cv_func_remove" = xyes
  20685. then :
  20686. fi
  20687. if test $ac_cv_func_remove = no; then
  20688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20689. printf %s "checking for remove in -lposix... " >&6; }
  20690. if test ${ac_cv_lib_posix_remove+y}
  20691. then :
  20692. printf %s "(cached) " >&6
  20693. else $as_nop
  20694. ac_check_lib_save_LIBS=$LIBS
  20695. LIBS="-lposix $LIBS"
  20696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20697. /* end confdefs.h. */
  20698. /* Override any GCC internal prototype to avoid an error.
  20699. Use char because int might match the return type of a GCC
  20700. builtin and then its argument prototype would still apply. */
  20701. char remove ();
  20702. int
  20703. main (void)
  20704. {
  20705. return remove ();
  20706. ;
  20707. return 0;
  20708. }
  20709. _ACEOF
  20710. if ac_fn_c_try_link "$LINENO"
  20711. then :
  20712. ac_cv_lib_posix_remove=yes
  20713. else $as_nop
  20714. ac_cv_lib_posix_remove=no
  20715. fi
  20716. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20717. conftest$ac_exeext conftest.$ac_ext
  20718. LIBS=$ac_check_lib_save_LIBS
  20719. fi
  20720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20721. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20722. if test "x$ac_cv_lib_posix_remove" = xyes
  20723. then :
  20724. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20725. fi
  20726. fi
  20727. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20728. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20729. if test "x$ac_cv_func_shmat" = xyes
  20730. then :
  20731. fi
  20732. if test $ac_cv_func_shmat = no; then
  20733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20734. printf %s "checking for shmat in -lipc... " >&6; }
  20735. if test ${ac_cv_lib_ipc_shmat+y}
  20736. then :
  20737. printf %s "(cached) " >&6
  20738. else $as_nop
  20739. ac_check_lib_save_LIBS=$LIBS
  20740. LIBS="-lipc $LIBS"
  20741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20742. /* end confdefs.h. */
  20743. /* Override any GCC internal prototype to avoid an error.
  20744. Use char because int might match the return type of a GCC
  20745. builtin and then its argument prototype would still apply. */
  20746. char shmat ();
  20747. int
  20748. main (void)
  20749. {
  20750. return shmat ();
  20751. ;
  20752. return 0;
  20753. }
  20754. _ACEOF
  20755. if ac_fn_c_try_link "$LINENO"
  20756. then :
  20757. ac_cv_lib_ipc_shmat=yes
  20758. else $as_nop
  20759. ac_cv_lib_ipc_shmat=no
  20760. fi
  20761. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20762. conftest$ac_exeext conftest.$ac_ext
  20763. LIBS=$ac_check_lib_save_LIBS
  20764. fi
  20765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20766. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20767. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20768. then :
  20769. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20770. fi
  20771. fi
  20772. fi
  20773. # Check for libraries that X11R6 Xt/Xaw programs need.
  20774. ac_save_LDFLAGS=$LDFLAGS
  20775. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20776. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20777. # check for ICE first), but we must link in the order -lSM -lICE or
  20778. # we get undefined symbols. So assume we have SM if we have ICE.
  20779. # These have to be linked with before -lX11, unlike the other
  20780. # libraries we check for below, so use a different variable.
  20781. # John Interrante, Karl Berry
  20782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20783. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20784. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20785. then :
  20786. printf %s "(cached) " >&6
  20787. else $as_nop
  20788. ac_check_lib_save_LIBS=$LIBS
  20789. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20791. /* end confdefs.h. */
  20792. /* Override any GCC internal prototype to avoid an error.
  20793. Use char because int might match the return type of a GCC
  20794. builtin and then its argument prototype would still apply. */
  20795. char IceConnectionNumber ();
  20796. int
  20797. main (void)
  20798. {
  20799. return IceConnectionNumber ();
  20800. ;
  20801. return 0;
  20802. }
  20803. _ACEOF
  20804. if ac_fn_c_try_link "$LINENO"
  20805. then :
  20806. ac_cv_lib_ICE_IceConnectionNumber=yes
  20807. else $as_nop
  20808. ac_cv_lib_ICE_IceConnectionNumber=no
  20809. fi
  20810. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20811. conftest$ac_exeext conftest.$ac_ext
  20812. LIBS=$ac_check_lib_save_LIBS
  20813. fi
  20814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20815. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20816. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20817. then :
  20818. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20819. fi
  20820. LDFLAGS=$ac_save_LDFLAGS
  20821. fi
  20822. if test x$have_x = xyes; then
  20823. # Check whether --enable-x11-shared was given.
  20824. if test ${enable_x11_shared+y}
  20825. then :
  20826. enableval=$enable_x11_shared;
  20827. else $as_nop
  20828. enable_x11_shared=maybe
  20829. fi
  20830. case "$host" in
  20831. *-*-darwin*)
  20832. # Apple now puts this in /opt/X11
  20833. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20834. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20835. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20836. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20837. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20838. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20839. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20840. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20841. ;;
  20842. *-*-openbsd*)
  20843. x11_lib='libX11.so'
  20844. x11ext_lib='libXext.so'
  20845. xcursor_lib='libXcursor.so'
  20846. xinput_lib='libXi.so'
  20847. xfixes_lib='libXfixes.so'
  20848. xrandr_lib='libXrandr.so'
  20849. xrender_lib='libXrender.so'
  20850. xss_lib='libXss.so'
  20851. ;;
  20852. *)
  20853. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20854. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20855. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20856. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20857. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20858. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20859. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20860. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20861. ;;
  20862. esac
  20863. if test x$ac_cv_func_shmat != xyes; then
  20864. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  20865. fi
  20866. CFLAGS="$CFLAGS $X_CFLAGS"
  20867. LDFLAGS="$LDFLAGS $X_LIBS"
  20868. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  20869. #include <X11/Xproto.h>
  20870. "
  20871. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  20872. then :
  20873. have_xext_h_hdr=yes
  20874. else $as_nop
  20875. have_xext_h_hdr=no
  20876. fi
  20877. if test x$have_xext_h_hdr != xyes; then
  20878. as_fn_error $? "
  20879. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  20880. " "$LINENO" 5
  20881. fi
  20882. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  20883. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  20884. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  20885. # Needed so SDL applications can include SDL_syswm.h
  20886. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  20887. if test x$enable_x11_shared = xmaybe; then
  20888. enable_x11_shared=yes
  20889. fi
  20890. if test x$have_loadso != xyes && \
  20891. test x$enable_x11_shared = xyes; then
  20892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  20893. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  20894. enable_x11_shared=no
  20895. fi
  20896. if test x$have_loadso = xyes && \
  20897. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  20898. echo "-- dynamic libX11 -> $x11_lib"
  20899. echo "-- dynamic libX11ext -> $x11ext_lib"
  20900. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  20901. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  20902. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  20903. else
  20904. enable_x11_shared=no
  20905. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  20906. SUMMARY_video="${SUMMARY_video} x11"
  20907. fi
  20908. have_video=yes
  20909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  20910. printf %s "checking for XGenericEvent... " >&6; }
  20911. have_XGenericEvent=no
  20912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20913. /* end confdefs.h. */
  20914. #include <X11/Xlib.h>
  20915. int
  20916. main (void)
  20917. {
  20918. Display *display;
  20919. XEvent event;
  20920. XGenericEventCookie *cookie = &event.xcookie;
  20921. XNextEvent(display, &event);
  20922. XGetEventData(display, cookie);
  20923. XFreeEventData(display, cookie);
  20924. ;
  20925. return 0;
  20926. }
  20927. _ACEOF
  20928. if ac_fn_c_try_compile "$LINENO"
  20929. then :
  20930. have_XGenericEvent=yes
  20931. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  20932. fi
  20933. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  20935. printf "%s\n" "$have_XGenericEvent" >&6; }
  20936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  20937. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  20938. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  20939. then :
  20940. printf %s "(cached) " >&6
  20941. else $as_nop
  20942. ac_check_lib_save_LIBS=$LIBS
  20943. LIBS="-lX11 $LIBS"
  20944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20945. /* end confdefs.h. */
  20946. /* Override any GCC internal prototype to avoid an error.
  20947. Use char because int might match the return type of a GCC
  20948. builtin and then its argument prototype would still apply. */
  20949. char XkbKeycodeToKeysym ();
  20950. int
  20951. main (void)
  20952. {
  20953. return XkbKeycodeToKeysym ();
  20954. ;
  20955. return 0;
  20956. }
  20957. _ACEOF
  20958. if ac_fn_c_try_link "$LINENO"
  20959. then :
  20960. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  20961. else $as_nop
  20962. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  20963. fi
  20964. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20965. conftest$ac_exeext conftest.$ac_ext
  20966. LIBS=$ac_check_lib_save_LIBS
  20967. fi
  20968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  20969. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  20970. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  20971. then :
  20972. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  20973. fi
  20974. # Check whether --enable-video-x11-xcursor was given.
  20975. if test ${enable_video_x11_xcursor+y}
  20976. then :
  20977. enableval=$enable_video_x11_xcursor;
  20978. else $as_nop
  20979. enable_video_x11_xcursor=yes
  20980. fi
  20981. if test x$enable_video_x11_xcursor = xyes; then
  20982. definitely_enable_video_x11_xcursor=no
  20983. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  20984. "
  20985. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  20986. then :
  20987. have_xcursor_h_hdr=yes
  20988. else $as_nop
  20989. have_xcursor_h_hdr=no
  20990. fi
  20991. if test x$have_xcursor_h_hdr = xyes; then
  20992. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  20993. echo "-- dynamic libXcursor -> $xcursor_lib"
  20994. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  20995. definitely_enable_video_x11_xcursor=yes
  20996. else
  20997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  20998. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  20999. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21000. then :
  21001. printf %s "(cached) " >&6
  21002. else $as_nop
  21003. ac_check_lib_save_LIBS=$LIBS
  21004. LIBS="-lXcursor $LIBS"
  21005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21006. /* end confdefs.h. */
  21007. /* Override any GCC internal prototype to avoid an error.
  21008. Use char because int might match the return type of a GCC
  21009. builtin and then its argument prototype would still apply. */
  21010. char XcursorImageCreate ();
  21011. int
  21012. main (void)
  21013. {
  21014. return XcursorImageCreate ();
  21015. ;
  21016. return 0;
  21017. }
  21018. _ACEOF
  21019. if ac_fn_c_try_link "$LINENO"
  21020. then :
  21021. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21022. else $as_nop
  21023. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21024. fi
  21025. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21026. conftest$ac_exeext conftest.$ac_ext
  21027. LIBS=$ac_check_lib_save_LIBS
  21028. fi
  21029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21030. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21031. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21032. then :
  21033. have_xcursor_lib=yes
  21034. fi
  21035. if test x$have_xcursor_lib = xyes ; then
  21036. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21037. definitely_enable_video_x11_xcursor=yes
  21038. fi
  21039. fi
  21040. fi
  21041. fi
  21042. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21043. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21044. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21045. fi
  21046. # Check whether --enable-video-x11-xdbe was given.
  21047. if test ${enable_video_x11_xdbe+y}
  21048. then :
  21049. enableval=$enable_video_x11_xdbe;
  21050. else $as_nop
  21051. enable_video_x11_xdbe=yes
  21052. fi
  21053. if test x$enable_video_x11_xdbe = xyes; then
  21054. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21055. "
  21056. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21057. then :
  21058. have_dbe_h_hdr=yes
  21059. else $as_nop
  21060. have_dbe_h_hdr=no
  21061. fi
  21062. if test x$have_dbe_h_hdr = xyes; then
  21063. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21064. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21065. fi
  21066. fi
  21067. # Check whether --enable-video-x11-xinput was given.
  21068. if test ${enable_video_x11_xinput+y}
  21069. then :
  21070. enableval=$enable_video_x11_xinput;
  21071. else $as_nop
  21072. enable_video_x11_xinput=yes
  21073. fi
  21074. if test x$enable_video_x11_xinput = xyes; then
  21075. definitely_enable_video_x11_xinput=no
  21076. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21077. "
  21078. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21079. then :
  21080. have_xinput_h_hdr=yes
  21081. else $as_nop
  21082. have_xinput_h_hdr=no
  21083. fi
  21084. if test x$have_xinput_h_hdr = xyes; then
  21085. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21086. echo "-- dynamic libXi -> $xinput_lib"
  21087. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21088. definitely_enable_video_x11_xinput=yes
  21089. else
  21090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21091. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21092. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21093. then :
  21094. printf %s "(cached) " >&6
  21095. else $as_nop
  21096. ac_check_lib_save_LIBS=$LIBS
  21097. LIBS="-lXi $LIBS"
  21098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21099. /* end confdefs.h. */
  21100. /* Override any GCC internal prototype to avoid an error.
  21101. Use char because int might match the return type of a GCC
  21102. builtin and then its argument prototype would still apply. */
  21103. char XOpenDevice ();
  21104. int
  21105. main (void)
  21106. {
  21107. return XOpenDevice ();
  21108. ;
  21109. return 0;
  21110. }
  21111. _ACEOF
  21112. if ac_fn_c_try_link "$LINENO"
  21113. then :
  21114. ac_cv_lib_Xi_XOpenDevice=yes
  21115. else $as_nop
  21116. ac_cv_lib_Xi_XOpenDevice=no
  21117. fi
  21118. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21119. conftest$ac_exeext conftest.$ac_ext
  21120. LIBS=$ac_check_lib_save_LIBS
  21121. fi
  21122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21123. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21124. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21125. then :
  21126. have_xinput_lib=yes
  21127. fi
  21128. if test x$have_xinput_lib = xyes ; then
  21129. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21130. definitely_enable_video_x11_xinput=yes
  21131. fi
  21132. fi
  21133. fi
  21134. fi
  21135. if test x$definitely_enable_video_x11_xinput = xyes; then
  21136. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21137. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21139. printf %s "checking for xinput2 multitouch... " >&6; }
  21140. have_xinput2_multitouch=no
  21141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21142. /* end confdefs.h. */
  21143. #include <X11/Xlib.h>
  21144. #include <X11/Xproto.h>
  21145. #include <X11/extensions/XInput2.h>
  21146. int
  21147. main (void)
  21148. {
  21149. int event_type = XI_TouchBegin;
  21150. XITouchClassInfo *t;
  21151. ;
  21152. return 0;
  21153. }
  21154. _ACEOF
  21155. if ac_fn_c_try_compile "$LINENO"
  21156. then :
  21157. have_xinput2_multitouch=yes
  21158. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21159. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21160. fi
  21161. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21163. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21164. fi
  21165. # Check whether --enable-video-x11-xfixes was given.
  21166. if test ${enable_video_x11_xfixes+y}
  21167. then :
  21168. enableval=$enable_video_x11_xfixes;
  21169. else $as_nop
  21170. enable_video_x11_xfixes=yes
  21171. fi
  21172. if test x$enable_video_x11_xfixes = xyes; then
  21173. definitely_enable_video_x11_xfixes=no
  21174. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21176. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21178. /* end confdefs.h. */
  21179. #include <X11/Xlib.h>
  21180. #include <X11/Xproto.h>
  21181. #include <X11/extensions/XInput2.h>
  21182. #include <X11/extensions/Xfixes.h>
  21183. int
  21184. main (void)
  21185. {
  21186. BarrierEventID b;
  21187. ;
  21188. return 0;
  21189. }
  21190. _ACEOF
  21191. if ac_fn_c_try_compile "$LINENO"
  21192. then :
  21193. have_xfixes_h_hdr=yes
  21194. else $as_nop
  21195. have_xfixes_h_hdr=no
  21196. fi
  21197. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21199. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21200. if test x$have_xfixes_h_hdr = xyes; then
  21201. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21202. echo "-- dynamic libXfixes -> $xfixes_lib"
  21203. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21204. definitely_enable_video_x11_xfixes=yes
  21205. else
  21206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21207. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21208. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21209. then :
  21210. printf %s "(cached) " >&6
  21211. else $as_nop
  21212. ac_check_lib_save_LIBS=$LIBS
  21213. LIBS="-lXfixes $LIBS"
  21214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21215. /* end confdefs.h. */
  21216. /* Override any GCC internal prototype to avoid an error.
  21217. Use char because int might match the return type of a GCC
  21218. builtin and then its argument prototype would still apply. */
  21219. char XFixesCreatePointerBarrier ();
  21220. int
  21221. main (void)
  21222. {
  21223. return XFixesCreatePointerBarrier ();
  21224. ;
  21225. return 0;
  21226. }
  21227. _ACEOF
  21228. if ac_fn_c_try_link "$LINENO"
  21229. then :
  21230. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21231. else $as_nop
  21232. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21233. fi
  21234. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21235. conftest$ac_exeext conftest.$ac_ext
  21236. LIBS=$ac_check_lib_save_LIBS
  21237. fi
  21238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21239. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21240. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21241. then :
  21242. have_xfixes_lib=yes
  21243. fi
  21244. if test x$have_xfixes_lib = xyes ; then
  21245. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21246. definitely_enable_video_x11_xfixes=yes
  21247. fi
  21248. fi
  21249. fi
  21250. fi
  21251. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21252. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21253. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21254. fi
  21255. # Check whether --enable-video-x11-xrandr was given.
  21256. if test ${enable_video_x11_xrandr+y}
  21257. then :
  21258. enableval=$enable_video_x11_xrandr;
  21259. else $as_nop
  21260. enable_video_x11_xrandr=yes
  21261. fi
  21262. if test x$enable_video_x11_xrandr = xyes; then
  21263. definitely_enable_video_x11_xrandr=no
  21264. have_xrandr_h_hdr=no
  21265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21266. /* end confdefs.h. */
  21267. #include <X11/Xlib.h>
  21268. #include <X11/extensions/Xrandr.h>
  21269. int
  21270. main (void)
  21271. {
  21272. XRRScreenResources *res = NULL;
  21273. ;
  21274. return 0;
  21275. }
  21276. _ACEOF
  21277. if ac_fn_c_try_compile "$LINENO"
  21278. then :
  21279. have_xrandr_h_hdr=yes
  21280. fi
  21281. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21282. if test x$have_xrandr_h_hdr = xyes; then
  21283. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21284. echo "-- dynamic libXrandr -> $xrandr_lib"
  21285. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21286. definitely_enable_video_x11_xrandr=yes
  21287. else
  21288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21289. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21290. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21291. then :
  21292. printf %s "(cached) " >&6
  21293. else $as_nop
  21294. ac_check_lib_save_LIBS=$LIBS
  21295. LIBS="-lXrandr $LIBS"
  21296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21297. /* end confdefs.h. */
  21298. /* Override any GCC internal prototype to avoid an error.
  21299. Use char because int might match the return type of a GCC
  21300. builtin and then its argument prototype would still apply. */
  21301. char XRRQueryExtension ();
  21302. int
  21303. main (void)
  21304. {
  21305. return XRRQueryExtension ();
  21306. ;
  21307. return 0;
  21308. }
  21309. _ACEOF
  21310. if ac_fn_c_try_link "$LINENO"
  21311. then :
  21312. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21313. else $as_nop
  21314. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21315. fi
  21316. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21317. conftest$ac_exeext conftest.$ac_ext
  21318. LIBS=$ac_check_lib_save_LIBS
  21319. fi
  21320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21321. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21322. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21323. then :
  21324. have_xrandr_lib=yes
  21325. fi
  21326. if test x$have_xrandr_lib = xyes ; then
  21327. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21328. definitely_enable_video_x11_xrandr=yes
  21329. fi
  21330. fi
  21331. fi
  21332. fi
  21333. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21334. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21335. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21336. fi
  21337. # Check whether --enable-video-x11-scrnsaver was given.
  21338. if test ${enable_video_x11_scrnsaver+y}
  21339. then :
  21340. enableval=$enable_video_x11_scrnsaver;
  21341. else $as_nop
  21342. enable_video_x11_scrnsaver=yes
  21343. fi
  21344. if test x$enable_video_x11_scrnsaver = xyes; then
  21345. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21346. "
  21347. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21348. then :
  21349. have_scrnsaver_h_hdr=yes
  21350. else $as_nop
  21351. have_scrnsaver_h_hdr=no
  21352. fi
  21353. if test x$have_scrnsaver_h_hdr = xyes; then
  21354. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21355. echo "-- dynamic libXss -> $xss_lib"
  21356. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21357. definitely_enable_video_x11_scrnsaver=yes
  21358. else
  21359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21360. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21361. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21362. then :
  21363. printf %s "(cached) " >&6
  21364. else $as_nop
  21365. ac_check_lib_save_LIBS=$LIBS
  21366. LIBS="-lXss $LIBS"
  21367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21368. /* end confdefs.h. */
  21369. /* Override any GCC internal prototype to avoid an error.
  21370. Use char because int might match the return type of a GCC
  21371. builtin and then its argument prototype would still apply. */
  21372. char XScreenSaverSuspend ();
  21373. int
  21374. main (void)
  21375. {
  21376. return XScreenSaverSuspend ();
  21377. ;
  21378. return 0;
  21379. }
  21380. _ACEOF
  21381. if ac_fn_c_try_link "$LINENO"
  21382. then :
  21383. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21384. else $as_nop
  21385. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21386. fi
  21387. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21388. conftest$ac_exeext conftest.$ac_ext
  21389. LIBS=$ac_check_lib_save_LIBS
  21390. fi
  21391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21392. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21393. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21394. then :
  21395. have_xss_lib=yes
  21396. fi
  21397. if test x$have_xss_lib = xyes ; then
  21398. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21399. definitely_enable_video_x11_scrnsaver=yes
  21400. fi
  21401. fi
  21402. fi
  21403. fi
  21404. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21405. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21406. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21407. fi
  21408. # Check whether --enable-video-x11-xshape was given.
  21409. if test ${enable_video_x11_xshape+y}
  21410. then :
  21411. enableval=$enable_video_x11_xshape;
  21412. else $as_nop
  21413. enable_video_x11_xshape=yes
  21414. fi
  21415. if test x$enable_video_x11_xshape = xyes; then
  21416. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21417. "
  21418. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21419. then :
  21420. have_shape_h_hdr=yes
  21421. else $as_nop
  21422. have_shape_h_hdr=no
  21423. fi
  21424. if test x$have_shape_h_hdr = xyes; then
  21425. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21426. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21427. fi
  21428. fi
  21429. fi
  21430. fi
  21431. if test x$have_x != xyes; then
  21432. # Prevent Mesa from including X11 headers
  21433. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21434. fi
  21435. }
  21436. CheckVivanteVideo()
  21437. {
  21438. # Check whether --enable-video-vivante was given.
  21439. if test ${enable_video_vivante+y}
  21440. then :
  21441. enableval=$enable_video_vivante;
  21442. else $as_nop
  21443. enable_video_vivante=yes
  21444. fi
  21445. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21447. printf %s "checking for Vivante VDK API... " >&6; }
  21448. have_vivante_vdk=no
  21449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21450. /* end confdefs.h. */
  21451. #define LINUX
  21452. #define EGL_API_FB
  21453. #include <gc_vdk.h>
  21454. int
  21455. main (void)
  21456. {
  21457. ;
  21458. return 0;
  21459. }
  21460. _ACEOF
  21461. if ac_fn_c_try_compile "$LINENO"
  21462. then :
  21463. have_vivante_vdk=yes
  21464. fi
  21465. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21467. printf "%s\n" "$have_vivante_vdk" >&6; }
  21468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21469. printf %s "checking for Vivante FB API... " >&6; }
  21470. have_vivante_egl=no
  21471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21472. /* end confdefs.h. */
  21473. #define LINUX
  21474. #define EGL_API_FB
  21475. #include <EGL/eglvivante.h>
  21476. int
  21477. main (void)
  21478. {
  21479. ;
  21480. return 0;
  21481. }
  21482. _ACEOF
  21483. if ac_fn_c_try_compile "$LINENO"
  21484. then :
  21485. have_vivante_egl=yes
  21486. fi
  21487. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21489. printf "%s\n" "$have_vivante_egl" >&6; }
  21490. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21491. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21492. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21493. if test x$have_vivante_vdk = xyes; then
  21494. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21495. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21496. fi
  21497. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21498. SUMMARY_video="${SUMMARY_video} vivante"
  21499. have_video=yes
  21500. fi
  21501. fi
  21502. }
  21503. CheckHaikuVideo()
  21504. {
  21505. if test x$enable_video = xyes; then
  21506. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21507. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21508. have_video=yes
  21509. SUMMARY_video="${SUMMARY_video} haiku"
  21510. fi
  21511. }
  21512. CheckCOCOA()
  21513. {
  21514. # Check whether --enable-video-cocoa was given.
  21515. if test ${enable_video_cocoa+y}
  21516. then :
  21517. enableval=$enable_video_cocoa;
  21518. else $as_nop
  21519. enable_video_cocoa=yes
  21520. fi
  21521. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21522. save_CFLAGS="$CFLAGS"
  21523. CFLAGS="$CFLAGS -x objective-c"
  21524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21525. printf %s "checking for Cocoa framework... " >&6; }
  21526. have_cocoa=no
  21527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21528. /* end confdefs.h. */
  21529. #import <Cocoa/Cocoa.h>
  21530. int
  21531. main (void)
  21532. {
  21533. ;
  21534. return 0;
  21535. }
  21536. _ACEOF
  21537. if ac_fn_c_try_compile "$LINENO"
  21538. then :
  21539. have_cocoa=yes
  21540. fi
  21541. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21543. printf "%s\n" "$have_cocoa" >&6; }
  21544. CFLAGS="$save_CFLAGS"
  21545. if test x$have_cocoa = xyes; then
  21546. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21547. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21548. SUMMARY_video="${SUMMARY_video} cocoa"
  21549. have_video=yes
  21550. fi
  21551. fi
  21552. }
  21553. CheckMETAL()
  21554. {
  21555. # Check whether --enable-video-metal was given.
  21556. if test ${enable_video_metal+y}
  21557. then :
  21558. enableval=$enable_video_metal;
  21559. else $as_nop
  21560. enable_video_metal=yes
  21561. fi
  21562. # Check whether --enable-render-metal was given.
  21563. if test ${enable_render_metal+y}
  21564. then :
  21565. enableval=$enable_render_metal;
  21566. else $as_nop
  21567. enable_render_metal=yes
  21568. fi
  21569. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21570. save_CFLAGS="$CFLAGS"
  21571. CFLAGS="$CFLAGS -x objective-c"
  21572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21573. printf %s "checking for Metal framework... " >&6; }
  21574. have_metal=no
  21575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21576. /* end confdefs.h. */
  21577. #import <Cocoa/Cocoa.h>
  21578. #import <Metal/Metal.h>
  21579. #import <QuartzCore/CAMetalLayer.h>
  21580. #if TARGET_CPU_X86
  21581. #error Metal doesn't work on this configuration
  21582. #endif
  21583. int
  21584. main (void)
  21585. {
  21586. ;
  21587. return 0;
  21588. }
  21589. _ACEOF
  21590. if ac_fn_c_try_compile "$LINENO"
  21591. then :
  21592. have_metal=yes
  21593. fi
  21594. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21595. CFLAGS="$save_CFLAGS"
  21596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21597. printf "%s\n" "$have_metal" >&6; }
  21598. if test x$have_metal = xyes; then
  21599. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21600. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21601. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21602. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21603. fi
  21604. SUMMARY_video="${SUMMARY_video} metal"
  21605. else
  21606. enable_video_metal=no
  21607. enable_render_metal=no
  21608. fi
  21609. fi
  21610. }
  21611. CheckDirectFB()
  21612. {
  21613. # Check whether --enable-video-directfb was given.
  21614. if test ${enable_video_directfb+y}
  21615. then :
  21616. enableval=$enable_video_directfb;
  21617. else $as_nop
  21618. enable_video_directfb=no
  21619. fi
  21620. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21621. pkg_failed=no
  21622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21623. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21624. if test -n "$DIRECTFB_CFLAGS"; then
  21625. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21626. elif test -n "$PKG_CONFIG"; then
  21627. if test -n "$PKG_CONFIG" && \
  21628. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21629. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21630. ac_status=$?
  21631. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21632. test $ac_status = 0; }; then
  21633. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21634. test "x$?" != "x0" && pkg_failed=yes
  21635. else
  21636. pkg_failed=yes
  21637. fi
  21638. else
  21639. pkg_failed=untried
  21640. fi
  21641. if test -n "$DIRECTFB_LIBS"; then
  21642. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21643. elif test -n "$PKG_CONFIG"; then
  21644. if test -n "$PKG_CONFIG" && \
  21645. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21646. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21647. ac_status=$?
  21648. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21649. test $ac_status = 0; }; then
  21650. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21651. test "x$?" != "x0" && pkg_failed=yes
  21652. else
  21653. pkg_failed=yes
  21654. fi
  21655. else
  21656. pkg_failed=untried
  21657. fi
  21658. if test $pkg_failed = yes; then
  21659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21660. printf "%s\n" "no" >&6; }
  21661. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21662. _pkg_short_errors_supported=yes
  21663. else
  21664. _pkg_short_errors_supported=no
  21665. fi
  21666. if test $_pkg_short_errors_supported = yes; then
  21667. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21668. else
  21669. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21670. fi
  21671. # Put the nasty error message in config.log where it belongs
  21672. echo "$DIRECTFB_PKG_ERRORS" >&5
  21673. video_directfb=no
  21674. elif test $pkg_failed = untried; then
  21675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21676. printf "%s\n" "no" >&6; }
  21677. video_directfb=no
  21678. else
  21679. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21680. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21682. printf "%s\n" "yes" >&6; }
  21683. video_directfb=yes
  21684. fi
  21685. if test x$video_directfb = xyes; then
  21686. # SuSE 11.1 installs directfb-config without directfb-devel
  21687. save_CPPFLAGS="$CPPFLAGS"
  21688. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21689. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21690. if test "x$ac_cv_header_directfb_h" = xyes
  21691. then :
  21692. have_directfb_hdr=yes
  21693. else $as_nop
  21694. have_directfb_hdr=no
  21695. fi
  21696. CPPFLAGS="$save_CPPFLAGS"
  21697. video_directfb=$have_directfb_hdr
  21698. fi
  21699. if test x$video_directfb = xyes; then
  21700. # Check whether --enable-directfb-shared was given.
  21701. if test ${enable_directfb_shared+y}
  21702. then :
  21703. enableval=$enable_directfb_shared;
  21704. else $as_nop
  21705. enable_directfb_shared=yes
  21706. fi
  21707. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21708. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21709. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21710. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21711. directfb_shared=no
  21712. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21713. if test x$have_loadso != xyes && \
  21714. test x$enable_directfb_shared = xyes; then
  21715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21716. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21717. fi
  21718. if test x$have_loadso = xyes && \
  21719. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21720. directfb_shared=yes
  21721. echo "-- dynamic libdirectfb -> $directfb_lib"
  21722. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21723. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21724. else
  21725. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21726. SUMMARY_video="${SUMMARY_video} directfb"
  21727. fi
  21728. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21729. have_video=yes
  21730. fi
  21731. fi
  21732. }
  21733. CheckKMSDRM()
  21734. {
  21735. # Check whether --enable-video-kmsdrm was given.
  21736. if test ${enable_video_kmsdrm+y}
  21737. then :
  21738. enableval=$enable_video_kmsdrm;
  21739. else $as_nop
  21740. enable_video_kmsdrm=yes
  21741. fi
  21742. if test x$enable_video = xyes && \
  21743. test x$enable_video_kmsdrm = xyes && \
  21744. test x$video_opengl_egl = xyes; then
  21745. video_kmsdrm=no
  21746. pkg_failed=no
  21747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21748. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21749. if test -n "$LIBDRM_CFLAGS"; then
  21750. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21751. elif test -n "$PKG_CONFIG"; then
  21752. if test -n "$PKG_CONFIG" && \
  21753. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21754. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21755. ac_status=$?
  21756. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21757. test $ac_status = 0; }; then
  21758. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21759. test "x$?" != "x0" && pkg_failed=yes
  21760. else
  21761. pkg_failed=yes
  21762. fi
  21763. else
  21764. pkg_failed=untried
  21765. fi
  21766. if test -n "$LIBDRM_LIBS"; then
  21767. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21768. elif test -n "$PKG_CONFIG"; then
  21769. if test -n "$PKG_CONFIG" && \
  21770. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21771. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21772. ac_status=$?
  21773. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21774. test $ac_status = 0; }; then
  21775. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21776. test "x$?" != "x0" && pkg_failed=yes
  21777. else
  21778. pkg_failed=yes
  21779. fi
  21780. else
  21781. pkg_failed=untried
  21782. fi
  21783. if test $pkg_failed = yes; then
  21784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21785. printf "%s\n" "no" >&6; }
  21786. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21787. _pkg_short_errors_supported=yes
  21788. else
  21789. _pkg_short_errors_supported=no
  21790. fi
  21791. if test $_pkg_short_errors_supported = yes; then
  21792. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21793. else
  21794. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21795. fi
  21796. # Put the nasty error message in config.log where it belongs
  21797. echo "$LIBDRM_PKG_ERRORS" >&5
  21798. libdrm_avail=no
  21799. elif test $pkg_failed = untried; then
  21800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21801. printf "%s\n" "no" >&6; }
  21802. libdrm_avail=no
  21803. else
  21804. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21805. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21807. printf "%s\n" "yes" >&6; }
  21808. libdrm_avail=yes
  21809. fi
  21810. pkg_failed=no
  21811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21812. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21813. if test -n "$LIBGBM_CFLAGS"; then
  21814. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21815. elif test -n "$PKG_CONFIG"; then
  21816. if test -n "$PKG_CONFIG" && \
  21817. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21818. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21819. ac_status=$?
  21820. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21821. test $ac_status = 0; }; then
  21822. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21823. test "x$?" != "x0" && pkg_failed=yes
  21824. else
  21825. pkg_failed=yes
  21826. fi
  21827. else
  21828. pkg_failed=untried
  21829. fi
  21830. if test -n "$LIBGBM_LIBS"; then
  21831. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21832. elif test -n "$PKG_CONFIG"; then
  21833. if test -n "$PKG_CONFIG" && \
  21834. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21835. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21836. ac_status=$?
  21837. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21838. test $ac_status = 0; }; then
  21839. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  21840. test "x$?" != "x0" && pkg_failed=yes
  21841. else
  21842. pkg_failed=yes
  21843. fi
  21844. else
  21845. pkg_failed=untried
  21846. fi
  21847. if test $pkg_failed = yes; then
  21848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21849. printf "%s\n" "no" >&6; }
  21850. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21851. _pkg_short_errors_supported=yes
  21852. else
  21853. _pkg_short_errors_supported=no
  21854. fi
  21855. if test $_pkg_short_errors_supported = yes; then
  21856. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21857. else
  21858. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21859. fi
  21860. # Put the nasty error message in config.log where it belongs
  21861. echo "$LIBGBM_PKG_ERRORS" >&5
  21862. libgbm_avail=no
  21863. elif test $pkg_failed = untried; then
  21864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21865. printf "%s\n" "no" >&6; }
  21866. libgbm_avail=no
  21867. else
  21868. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  21869. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  21870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21871. printf "%s\n" "yes" >&6; }
  21872. libgbm_avail=yes
  21873. fi
  21874. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  21875. video_kmsdrm=yes
  21876. fi
  21877. if test x$video_kmsdrm = xyes; then
  21878. # Check whether --enable-kmsdrm-shared was given.
  21879. if test ${enable_kmsdrm_shared+y}
  21880. then :
  21881. enableval=$enable_kmsdrm_shared;
  21882. else $as_nop
  21883. enable_kmsdrm_shared=yes
  21884. fi
  21885. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  21886. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  21887. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  21888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  21889. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  21890. kmsdrm_shared=no
  21891. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  21892. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  21893. if test x$have_loadso != xyes && \
  21894. test x$enable_kmsdrm_shared = xyes; then
  21895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  21896. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  21897. fi
  21898. if test x$have_loadso = xyes && \
  21899. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  21900. kmsdrm_shared=yes
  21901. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  21902. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  21903. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  21904. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  21905. else
  21906. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  21907. SUMMARY_video="${SUMMARY_video} kmsdrm"
  21908. fi
  21909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  21910. printf "%s\n" "$kmsdrm_shared" >&6; }
  21911. if test x$kmsdrm_shared = xyes; then
  21912. echo "-- dynamic libdrm -> $drm_lib"
  21913. echo "-- dynamic libgbm -> $gbm_lib"
  21914. fi
  21915. have_video=yes
  21916. fi
  21917. fi
  21918. }
  21919. CheckDummyVideo()
  21920. {
  21921. # Check whether --enable-video-dummy was given.
  21922. if test ${enable_video_dummy+y}
  21923. then :
  21924. enableval=$enable_video_dummy;
  21925. else $as_nop
  21926. enable_video_dummy=yes
  21927. fi
  21928. if test x$enable_video_dummy = xyes; then
  21929. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  21930. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  21931. have_video=yes
  21932. SUMMARY_video="${SUMMARY_video} dummy"
  21933. fi
  21934. }
  21935. CheckOffscreenVideo()
  21936. {
  21937. # Check whether --enable-video-offscreen was given.
  21938. if test ${enable_video_offscreen+y}
  21939. then :
  21940. enableval=$enable_video_offscreen;
  21941. else $as_nop
  21942. enable_video_offscreen=no
  21943. fi
  21944. if test x$enable_video_offscreen = xyes; then
  21945. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  21946. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  21947. have_video=yes
  21948. SUMMARY_video="${SUMMARY_video} offscreen"
  21949. fi
  21950. }
  21951. CheckQNXVideo()
  21952. {
  21953. if test x$enable_video = xyes; then
  21954. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  21955. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  21956. have_video=yes
  21957. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  21958. SUMMARY_video="${SUMMARY_video} qnx"
  21959. fi
  21960. }
  21961. CheckQNXAudio()
  21962. {
  21963. if test x$enable_audio = xyes; then
  21964. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  21965. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  21966. have_audio=yes
  21967. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  21968. SUMMARY_audio="${SUMMARY_audio} qsa"
  21969. fi
  21970. }
  21971. # Check whether --enable-video-opengl was given.
  21972. if test ${enable_video_opengl+y}
  21973. then :
  21974. enableval=$enable_video_opengl;
  21975. else $as_nop
  21976. enable_video_opengl=yes
  21977. fi
  21978. CheckGLX()
  21979. {
  21980. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  21982. printf %s "checking for GLX support... " >&6; }
  21983. video_opengl_glx=no
  21984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21985. /* end confdefs.h. */
  21986. #include <GL/glx.h>
  21987. int
  21988. main (void)
  21989. {
  21990. ;
  21991. return 0;
  21992. }
  21993. _ACEOF
  21994. if ac_fn_c_try_compile "$LINENO"
  21995. then :
  21996. video_opengl_glx=yes
  21997. fi
  21998. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22000. printf "%s\n" "$video_opengl_glx" >&6; }
  22001. if test x$video_opengl_glx = xyes; then
  22002. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22003. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22004. fi
  22005. fi
  22006. }
  22007. # Check whether --enable-video-opengles was given.
  22008. if test ${enable_video_opengles+y}
  22009. then :
  22010. enableval=$enable_video_opengles;
  22011. else $as_nop
  22012. enable_video_opengles=yes
  22013. fi
  22014. # Check whether --enable-video-opengles1 was given.
  22015. if test ${enable_video_opengles1+y}
  22016. then :
  22017. enableval=$enable_video_opengles1;
  22018. else $as_nop
  22019. enable_video_opengles1=yes
  22020. fi
  22021. # Check whether --enable-video-opengles2 was given.
  22022. if test ${enable_video_opengles2+y}
  22023. then :
  22024. enableval=$enable_video_opengles2;
  22025. else $as_nop
  22026. enable_video_opengles2=yes
  22027. fi
  22028. CheckEGL()
  22029. {
  22030. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22032. printf %s "checking for EGL support... " >&6; }
  22033. video_opengl_egl=no
  22034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22035. /* end confdefs.h. */
  22036. #define LINUX
  22037. #define EGL_API_FB
  22038. #define MESA_EGL_NO_X11_HEADERS
  22039. #define EGL_NO_X11
  22040. #include <EGL/egl.h>
  22041. #include <EGL/eglext.h>
  22042. int
  22043. main (void)
  22044. {
  22045. ;
  22046. return 0;
  22047. }
  22048. _ACEOF
  22049. if ac_fn_c_try_compile "$LINENO"
  22050. then :
  22051. video_opengl_egl=yes
  22052. fi
  22053. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22055. printf "%s\n" "$video_opengl_egl" >&6; }
  22056. if test x$video_opengl_egl = xyes; then
  22057. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22058. fi
  22059. fi
  22060. }
  22061. CheckOpenGL()
  22062. {
  22063. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22065. printf %s "checking for OpenGL headers... " >&6; }
  22066. video_opengl=no
  22067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22068. /* end confdefs.h. */
  22069. #include <GL/gl.h>
  22070. #include <GL/glext.h>
  22071. int
  22072. main (void)
  22073. {
  22074. ;
  22075. return 0;
  22076. }
  22077. _ACEOF
  22078. if ac_fn_c_try_compile "$LINENO"
  22079. then :
  22080. video_opengl=yes
  22081. fi
  22082. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22084. printf "%s\n" "$video_opengl" >&6; }
  22085. if test x$video_opengl = xyes; then
  22086. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22087. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22088. SUMMARY_video="${SUMMARY_video} opengl"
  22089. fi
  22090. fi
  22091. }
  22092. CheckOpenGLES()
  22093. {
  22094. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22095. if test x$enable_video_opengles1 = xyes; then
  22096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22097. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22098. video_opengles_v1=no
  22099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22100. /* end confdefs.h. */
  22101. #include <GLES/gl.h>
  22102. #include <GLES/glext.h>
  22103. int
  22104. main (void)
  22105. {
  22106. ;
  22107. return 0;
  22108. }
  22109. _ACEOF
  22110. if ac_fn_c_try_compile "$LINENO"
  22111. then :
  22112. video_opengles_v1=yes
  22113. fi
  22114. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22116. printf "%s\n" "$video_opengles_v1" >&6; }
  22117. if test x$video_opengles_v1 = xyes; then
  22118. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22119. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22120. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22121. fi
  22122. fi
  22123. if test x$enable_video_opengles2 = xyes; then
  22124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22125. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22126. video_opengles_v2=no
  22127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22128. /* end confdefs.h. */
  22129. #include <GLES2/gl2.h>
  22130. #include <GLES2/gl2ext.h>
  22131. int
  22132. main (void)
  22133. {
  22134. ;
  22135. return 0;
  22136. }
  22137. _ACEOF
  22138. if ac_fn_c_try_compile "$LINENO"
  22139. then :
  22140. video_opengles_v2=yes
  22141. fi
  22142. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22144. printf "%s\n" "$video_opengles_v2" >&6; }
  22145. if test x$video_opengles_v2 = xyes; then
  22146. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22147. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22148. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22149. fi
  22150. fi
  22151. fi
  22152. }
  22153. CheckWINDOWSGL()
  22154. {
  22155. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22156. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22157. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22158. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22159. SUMMARY_video="${SUMMARY_video} opengl"
  22160. fi
  22161. }
  22162. CheckWINDOWSGLES()
  22163. {
  22164. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22166. printf %s "checking for EGL support... " >&6; }
  22167. video_opengl_egl=no
  22168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22169. /* end confdefs.h. */
  22170. #include <EGL/egl.h>
  22171. int
  22172. main (void)
  22173. {
  22174. ;
  22175. return 0;
  22176. }
  22177. _ACEOF
  22178. if ac_fn_c_try_compile "$LINENO"
  22179. then :
  22180. video_opengl_egl=yes
  22181. fi
  22182. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22184. printf "%s\n" "$video_opengl_egl" >&6; }
  22185. if test x$video_opengl_egl = xyes; then
  22186. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22187. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22188. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22189. fi
  22190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22191. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22192. video_opengles_v2=no
  22193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22194. /* end confdefs.h. */
  22195. #include <GLES2/gl2.h>
  22196. #include <GLES2/gl2ext.h>
  22197. int
  22198. main (void)
  22199. {
  22200. ;
  22201. return 0;
  22202. }
  22203. _ACEOF
  22204. if ac_fn_c_try_compile "$LINENO"
  22205. then :
  22206. video_opengles_v2=yes
  22207. fi
  22208. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22210. printf "%s\n" "$video_opengles_v2" >&6; }
  22211. if test x$video_opengles_v2 = xyes; then
  22212. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22213. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22214. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22215. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22216. fi
  22217. fi
  22218. }
  22219. CheckHaikuGL()
  22220. {
  22221. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22222. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22223. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22224. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22225. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22226. SUMMARY_video="${SUMMARY_video} opengl"
  22227. fi
  22228. }
  22229. CheckMacGL()
  22230. {
  22231. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22232. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22233. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22234. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22235. SUMMARY_video="${SUMMARY_video} opengl"
  22236. fi
  22237. }
  22238. CheckMacGLES()
  22239. {
  22240. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22241. video_opengl_egl=yes
  22242. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22243. video_opengles_v2=yes
  22244. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22245. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22246. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22247. fi
  22248. }
  22249. CheckEmscriptenGLES()
  22250. {
  22251. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22253. printf %s "checking for EGL support... " >&6; }
  22254. video_opengl_egl=no
  22255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22256. /* end confdefs.h. */
  22257. #include <EGL/egl.h>
  22258. int
  22259. main (void)
  22260. {
  22261. ;
  22262. return 0;
  22263. }
  22264. _ACEOF
  22265. if ac_fn_c_try_compile "$LINENO"
  22266. then :
  22267. video_opengl_egl=yes
  22268. fi
  22269. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22271. printf "%s\n" "$video_opengl_egl" >&6; }
  22272. if test x$video_opengl_egl = xyes; then
  22273. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22274. fi
  22275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22276. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22277. video_opengles_v2=no
  22278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22279. /* end confdefs.h. */
  22280. #include <GLES2/gl2.h>
  22281. #include <GLES2/gl2ext.h>
  22282. int
  22283. main (void)
  22284. {
  22285. ;
  22286. return 0;
  22287. }
  22288. _ACEOF
  22289. if ac_fn_c_try_compile "$LINENO"
  22290. then :
  22291. video_opengles_v2=yes
  22292. fi
  22293. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22295. printf "%s\n" "$video_opengles_v2" >&6; }
  22296. if test x$video_opengles_v2 = xyes; then
  22297. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22298. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22299. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22300. fi
  22301. fi
  22302. }
  22303. # Check whether --enable-video-vulkan was given.
  22304. if test ${enable_video_vulkan+y}
  22305. then :
  22306. enableval=$enable_video_vulkan;
  22307. else $as_nop
  22308. enable_video_vulkan=yes
  22309. fi
  22310. CheckVulkan()
  22311. {
  22312. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22313. case "$host" in
  22314. *-*-android*)
  22315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22316. /* end confdefs.h. */
  22317. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22318. #error Vulkan doesn't work on this configuration
  22319. #endif
  22320. int
  22321. main (void)
  22322. {
  22323. ;
  22324. return 0;
  22325. }
  22326. _ACEOF
  22327. if ac_fn_c_try_compile "$LINENO"
  22328. then :
  22329. else $as_nop
  22330. enable_video_vulkan=no
  22331. fi
  22332. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22333. ;;
  22334. *-*-darwin*)
  22335. save_CFLAGS="$CFLAGS"
  22336. CFLAGS="$CFLAGS -x objective-c"
  22337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22338. /* end confdefs.h. */
  22339. #include <Cocoa/Cocoa.h>
  22340. #include <Metal/Metal.h>
  22341. #include <QuartzCore/CAMetalLayer.h>
  22342. #if TARGET_CPU_X86
  22343. #error Vulkan doesn't work on this configuration
  22344. #endif
  22345. int
  22346. main (void)
  22347. {
  22348. ;
  22349. return 0;
  22350. }
  22351. _ACEOF
  22352. if ac_fn_c_try_compile "$LINENO"
  22353. then :
  22354. else $as_nop
  22355. enable_video_vulkan=no
  22356. fi
  22357. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22358. CFLAGS="$save_CFLAGS"
  22359. ;;
  22360. *)
  22361. ;;
  22362. esac
  22363. if test x$enable_video_vulkan = xno; then
  22364. # For reasons I am totally unable to see, I get an undefined macro error if
  22365. # I put this in the AC_TRY_COMPILE.
  22366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22367. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22368. fi
  22369. fi
  22370. if test x$have_loadso != xyes; then
  22371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22372. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22373. enable_video_vulkan=no
  22374. fi
  22375. if test x$enable_video_vulkan = xyes; then
  22376. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22377. SUMMARY_video="${SUMMARY_video} vulkan"
  22378. fi
  22379. }
  22380. CheckInputEvents()
  22381. {
  22382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22383. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22384. use_input_events=no
  22385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22386. /* end confdefs.h. */
  22387. #include <linux/input.h>
  22388. int
  22389. main (void)
  22390. {
  22391. #ifndef EVIOCGNAME
  22392. #error EVIOCGNAME() ioctl not available
  22393. #endif
  22394. ;
  22395. return 0;
  22396. }
  22397. _ACEOF
  22398. if ac_fn_c_try_compile "$LINENO"
  22399. then :
  22400. use_input_events=yes
  22401. fi
  22402. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22404. printf "%s\n" "$use_input_events" >&6; }
  22405. if test x$use_input_events = xyes; then
  22406. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22407. SUMMARY_input="${SUMMARY_input} linuxev"
  22408. fi
  22409. }
  22410. CheckInputKD()
  22411. {
  22412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22413. printf %s "checking for Linux kd.h... " >&6; }
  22414. use_input_kd=no
  22415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22416. /* end confdefs.h. */
  22417. #include <linux/kd.h>
  22418. #include <linux/keyboard.h>
  22419. #include <sys/ioctl.h>
  22420. int
  22421. main (void)
  22422. {
  22423. struct kbentry kbe;
  22424. kbe.kb_table = KG_CTRL;
  22425. ioctl(0, KDGKBENT, &kbe);
  22426. ;
  22427. return 0;
  22428. }
  22429. _ACEOF
  22430. if ac_fn_c_try_compile "$LINENO"
  22431. then :
  22432. use_input_kd=yes
  22433. fi
  22434. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22436. printf "%s\n" "$use_input_kd" >&6; }
  22437. if test x$use_input_kd = xyes; then
  22438. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22439. SUMMARY_input="${SUMMARY_input} linuxkd"
  22440. fi
  22441. }
  22442. CheckInputKBIO()
  22443. {
  22444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22445. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22446. use_input_kbio=no
  22447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22448. /* end confdefs.h. */
  22449. #include <sys/kbio.h>
  22450. #include <sys/ioctl.h>
  22451. int
  22452. main (void)
  22453. {
  22454. accentmap_t accTable;
  22455. ioctl(0, KDENABIO, 1);
  22456. ;
  22457. return 0;
  22458. }
  22459. _ACEOF
  22460. if ac_fn_c_try_compile "$LINENO"
  22461. then :
  22462. use_input_kbio=yes
  22463. fi
  22464. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22466. printf "%s\n" "$use_input_kbio" >&6; }
  22467. if test x$use_input_kbio = xyes; then
  22468. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22469. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22470. fi
  22471. }
  22472. CheckInputWSCONS()
  22473. {
  22474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22475. printf %s "checking for OpenBSD wscons... " >&6; }
  22476. use_input_wscons=no
  22477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22478. /* end confdefs.h. */
  22479. #include <sys/time.h>
  22480. #include <dev/wscons/wsconsio.h>
  22481. #include <dev/wscons/wsksymdef.h>
  22482. #include <dev/wscons/wsksymvar.h>
  22483. #include <sys/ioctl.h>
  22484. int
  22485. main (void)
  22486. {
  22487. struct wskbd_map_data data;
  22488. ioctl(0, WSKBDIO_GETMAP, &data);
  22489. ;
  22490. return 0;
  22491. }
  22492. _ACEOF
  22493. if ac_fn_c_try_compile "$LINENO"
  22494. then :
  22495. use_input_wscons=yes
  22496. fi
  22497. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22499. printf "%s\n" "$use_input_wscons" >&6; }
  22500. if test x$use_input_wscons = xyes; then
  22501. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22502. SUMMARY_input="${SUMMARY_input} wscons"
  22503. fi
  22504. }
  22505. CheckLibUDev()
  22506. {
  22507. # Check whether --enable-libudev was given.
  22508. if test ${enable_libudev+y}
  22509. then :
  22510. enableval=$enable_libudev;
  22511. else $as_nop
  22512. enable_libudev=yes
  22513. fi
  22514. if test x$enable_libudev = xyes; then
  22515. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22516. if test "x$ac_cv_header_libudev_h" = xyes
  22517. then :
  22518. have_libudev_h_hdr=yes
  22519. else $as_nop
  22520. have_libudev_h_hdr=no
  22521. fi
  22522. if test x$have_libudev_h_hdr = xyes; then
  22523. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22524. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22525. if test x$udev_lib != x; then
  22526. echo "-- dynamic udev -> $udev_lib"
  22527. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22528. fi
  22529. fi
  22530. fi
  22531. }
  22532. CheckDBus()
  22533. {
  22534. # Check whether --enable-dbus was given.
  22535. if test ${enable_dbus+y}
  22536. then :
  22537. enableval=$enable_dbus;
  22538. else $as_nop
  22539. enable_dbus=yes
  22540. fi
  22541. if test x$enable_dbus = xyes; then
  22542. pkg_failed=no
  22543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22544. printf %s "checking for dbus-1... " >&6; }
  22545. if test -n "$DBUS_CFLAGS"; then
  22546. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22547. elif test -n "$PKG_CONFIG"; then
  22548. if test -n "$PKG_CONFIG" && \
  22549. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22550. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22551. ac_status=$?
  22552. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22553. test $ac_status = 0; }; then
  22554. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22555. test "x$?" != "x0" && pkg_failed=yes
  22556. else
  22557. pkg_failed=yes
  22558. fi
  22559. else
  22560. pkg_failed=untried
  22561. fi
  22562. if test -n "$DBUS_LIBS"; then
  22563. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22564. elif test -n "$PKG_CONFIG"; then
  22565. if test -n "$PKG_CONFIG" && \
  22566. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22567. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22568. ac_status=$?
  22569. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22570. test $ac_status = 0; }; then
  22571. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22572. test "x$?" != "x0" && pkg_failed=yes
  22573. else
  22574. pkg_failed=yes
  22575. fi
  22576. else
  22577. pkg_failed=untried
  22578. fi
  22579. if test $pkg_failed = yes; then
  22580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22581. printf "%s\n" "no" >&6; }
  22582. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22583. _pkg_short_errors_supported=yes
  22584. else
  22585. _pkg_short_errors_supported=no
  22586. fi
  22587. if test $_pkg_short_errors_supported = yes; then
  22588. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22589. else
  22590. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22591. fi
  22592. # Put the nasty error message in config.log where it belongs
  22593. echo "$DBUS_PKG_ERRORS" >&5
  22594. have_dbus=no
  22595. elif test $pkg_failed = untried; then
  22596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22597. printf "%s\n" "no" >&6; }
  22598. have_dbus=no
  22599. else
  22600. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22601. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22603. printf "%s\n" "yes" >&6; }
  22604. have_dbus=yes
  22605. fi
  22606. save_CPPFLAGS="$CPPFLAGS"
  22607. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22608. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22609. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22610. then :
  22611. have_dbus_dbus_h_hdr=yes
  22612. else $as_nop
  22613. have_dbus_dbus_h_hdr=no
  22614. fi
  22615. CPPFLAGS="$save_CPPFLAGS"
  22616. if test x$have_dbus_dbus_h_hdr = xyes; then
  22617. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22618. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22619. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22620. fi
  22621. fi
  22622. }
  22623. CheckIME()
  22624. {
  22625. # Check whether --enable-ime was given.
  22626. if test ${enable_ime+y}
  22627. then :
  22628. enableval=$enable_ime;
  22629. else $as_nop
  22630. enable_ime=yes
  22631. fi
  22632. if test x$enable_ime = xyes; then
  22633. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22634. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22635. fi
  22636. }
  22637. CheckInotify()
  22638. {
  22639. save_LIBS="$LIBS"
  22640. case "$host" in
  22641. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22642. ;;
  22643. esac
  22644. for ac_header in sys/inotify.h
  22645. do :
  22646. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22647. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22648. then :
  22649. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22650. have_inotify_inotify_h_hdr=yes
  22651. fi
  22652. done
  22653. for ac_func in inotify_init
  22654. do :
  22655. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22656. if test "x$ac_cv_func_inotify_init" = xyes
  22657. then :
  22658. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22659. have_inotify=yes
  22660. fi
  22661. done
  22662. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22663. if test "x$ac_cv_func_inotify_init1" = xyes
  22664. then :
  22665. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22666. fi
  22667. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22668. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22669. case "$host" in
  22670. *-*-freebsd*|*-*-dragonfly*)
  22671. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22672. ;;
  22673. esac
  22674. fi
  22675. LIBS="$save_LIBS"
  22676. }
  22677. CheckIBus()
  22678. {
  22679. # Check whether --enable-ibus was given.
  22680. if test ${enable_ibus+y}
  22681. then :
  22682. enableval=$enable_ibus;
  22683. else $as_nop
  22684. enable_ibus=yes
  22685. fi
  22686. if test x$enable_ibus = xyes; then
  22687. pkg_failed=no
  22688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22689. printf %s "checking for ibus-1.0... " >&6; }
  22690. if test -n "$IBUS_CFLAGS"; then
  22691. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22692. elif test -n "$PKG_CONFIG"; then
  22693. if test -n "$PKG_CONFIG" && \
  22694. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22695. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22696. ac_status=$?
  22697. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22698. test $ac_status = 0; }; then
  22699. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22700. test "x$?" != "x0" && pkg_failed=yes
  22701. else
  22702. pkg_failed=yes
  22703. fi
  22704. else
  22705. pkg_failed=untried
  22706. fi
  22707. if test -n "$IBUS_LIBS"; then
  22708. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22709. elif test -n "$PKG_CONFIG"; then
  22710. if test -n "$PKG_CONFIG" && \
  22711. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22712. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22713. ac_status=$?
  22714. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22715. test $ac_status = 0; }; then
  22716. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22717. test "x$?" != "x0" && pkg_failed=yes
  22718. else
  22719. pkg_failed=yes
  22720. fi
  22721. else
  22722. pkg_failed=untried
  22723. fi
  22724. if test $pkg_failed = yes; then
  22725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22726. printf "%s\n" "no" >&6; }
  22727. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22728. _pkg_short_errors_supported=yes
  22729. else
  22730. _pkg_short_errors_supported=no
  22731. fi
  22732. if test $_pkg_short_errors_supported = yes; then
  22733. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22734. else
  22735. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22736. fi
  22737. # Put the nasty error message in config.log where it belongs
  22738. echo "$IBUS_PKG_ERRORS" >&5
  22739. have_ibus=no
  22740. elif test $pkg_failed = untried; then
  22741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22742. printf "%s\n" "no" >&6; }
  22743. have_ibus=no
  22744. else
  22745. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22746. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22748. printf "%s\n" "yes" >&6; }
  22749. have_ibus=yes
  22750. fi
  22751. save_CPPFLAGS="$CPPFLAGS"
  22752. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22753. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22754. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22755. then :
  22756. have_ibus_ibus_h_hdr=yes
  22757. else $as_nop
  22758. have_ibus_ibus_h_hdr=no
  22759. fi
  22760. CPPFLAGS="$save_CPPFLAGS"
  22761. if test x$have_ibus_ibus_h_hdr = xyes; then
  22762. if test x$enable_ime != xyes; then
  22763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22764. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22765. have_ibus_ibus_h_hdr=no
  22766. elif test x$enable_dbus != xyes; then
  22767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22768. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22769. have_ibus_ibus_h_hdr=no
  22770. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22772. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22773. have_ibus_ibus_h_hdr=no
  22774. else
  22775. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22776. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22777. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22778. fi
  22779. fi
  22780. fi
  22781. }
  22782. CheckFcitx()
  22783. {
  22784. # Check whether --enable-fcitx was given.
  22785. if test ${enable_fcitx+y}
  22786. then :
  22787. enableval=$enable_fcitx;
  22788. else $as_nop
  22789. enable_fcitx=yes
  22790. fi
  22791. if test x$enable_fcitx = xyes; then
  22792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22793. printf %s "checking for fcitx support... " >&6; }
  22794. have_fcitx=no
  22795. if test x$enable_ime != xyes; then
  22796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22797. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22798. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22800. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22801. else
  22802. have_fcitx=yes
  22803. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22804. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22805. fi
  22806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22807. printf "%s\n" "$have_fcitx" >&6; }
  22808. fi
  22809. }
  22810. CheckJoystickMFI()
  22811. {
  22812. # Check whether --enable-joystick-mfi was given.
  22813. if test ${enable_joystick_mfi+y}
  22814. then :
  22815. enableval=$enable_joystick_mfi;
  22816. else $as_nop
  22817. enable_joystick_mfi=yes
  22818. fi
  22819. if test x$enable_joystick_mfi = xyes; then
  22820. save_CFLAGS="$CFLAGS"
  22821. save_LDFLAGS="$LDFLAGS"
  22822. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22823. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22825. printf %s "checking for GameController framework... " >&6; }
  22826. enable_joystick_mfi=no
  22827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22828. /* end confdefs.h. */
  22829. #include <AvailabilityMacros.h>
  22830. #include <TargetConditionals.h>
  22831. #import <GameController/GameController.h>
  22832. int
  22833. main (void)
  22834. {
  22835. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22836. #error GameController framework doesn't work on this configuration
  22837. #endif
  22838. #if TARGET_CPU_X86
  22839. #error GameController framework doesn't work on this configuration
  22840. #endif
  22841. ;
  22842. return 0;
  22843. }
  22844. _ACEOF
  22845. if ac_fn_c_try_link "$LINENO"
  22846. then :
  22847. enable_joystick_mfi=yes
  22848. fi
  22849. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22850. conftest$ac_exeext conftest.$ac_ext
  22851. CFLAGS="$save_CFLAGS"
  22852. LDFLAGS="$save_LDFLAGS"
  22853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  22854. printf "%s\n" "$enable_joystick_mfi" >&6; }
  22855. if test x$enable_joystick_mfi = xyes; then
  22856. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22857. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  22858. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22859. fi
  22860. fi
  22861. }
  22862. CheckPTHREAD()
  22863. {
  22864. case "$host" in
  22865. *-*-emscripten*)
  22866. enable_pthreads_default=no
  22867. ;;
  22868. *)
  22869. enable_pthreads_default=yes
  22870. ;;
  22871. esac
  22872. # Check whether --enable-pthreads was given.
  22873. if test ${enable_pthreads+y}
  22874. then :
  22875. enableval=$enable_pthreads;
  22876. else $as_nop
  22877. enable_pthreads=maybe
  22878. fi
  22879. # Check whether --enable-pthread-sem was given.
  22880. if test ${enable_pthread_sem+y}
  22881. then :
  22882. enableval=$enable_pthread_sem;
  22883. else $as_nop
  22884. enable_pthread_sem=maybe
  22885. fi
  22886. if test x$enable_pthreads = xmaybe; then
  22887. enable_pthreads=$enable_pthreads_default
  22888. fi
  22889. if test x$enable_pthread_sem = xmaybe; then
  22890. enable_pthread_sem=$enable_pthreads
  22891. fi
  22892. case "$host" in
  22893. *-*-android*)
  22894. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22895. pthread_lib=""
  22896. ;;
  22897. *-*-linux*|*-*-uclinux*)
  22898. pthread_cflags="-D_REENTRANT"
  22899. pthread_lib="-lpthread"
  22900. ;;
  22901. *-*-bsdi*)
  22902. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22903. pthread_lib=""
  22904. ;;
  22905. *-*-darwin*)
  22906. pthread_cflags="-D_THREAD_SAFE"
  22907. # causes Carbon.p complaints?
  22908. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22909. ;;
  22910. *-*-freebsd*|*-*-dragonfly*)
  22911. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22912. pthread_lib="-pthread"
  22913. ;;
  22914. *-*-netbsd*)
  22915. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22916. pthread_lib="-lpthread"
  22917. ;;
  22918. *-*-openbsd*)
  22919. pthread_cflags="-D_REENTRANT"
  22920. pthread_lib="-pthread"
  22921. ;;
  22922. *-*-solaris2.9)
  22923. # From Solaris 9+, posix4's preferred name is rt.
  22924. pthread_cflags="-D_REENTRANT"
  22925. pthread_lib="-lpthread -lrt"
  22926. ;;
  22927. *-*-solaris2.10)
  22928. # Solaris 10+ merged pthread into libc.
  22929. pthread_cflags="-D_REENTRANT"
  22930. pthread_lib="-lrt"
  22931. ;;
  22932. *-*-solaris*)
  22933. # Solaris 11+ merged rt into libc.
  22934. pthread_cflags="-D_REENTRANT"
  22935. pthread_lib=""
  22936. ;;
  22937. *-*-sysv5*)
  22938. pthread_cflags="-D_REENTRANT -Kthread"
  22939. pthread_lib=""
  22940. ;;
  22941. *-*-aix*)
  22942. pthread_cflags="-D_REENTRANT -mthreads"
  22943. pthread_lib="-lpthread"
  22944. ;;
  22945. *-*-hpux11*)
  22946. pthread_cflags="-D_REENTRANT"
  22947. pthread_lib="-L/usr/lib -lpthread"
  22948. ;;
  22949. *-*-haiku*)
  22950. pthread_cflags="-D_REENTRANT"
  22951. pthread_lib=""
  22952. ;;
  22953. *-*-nto*)
  22954. pthread_cflags="-D_REENTRANT"
  22955. pthread_lib=""
  22956. ;;
  22957. *-*-emscripten*)
  22958. pthread_cflags="-D_REENTRANT -pthread"
  22959. pthread_lib="-pthread"
  22960. ;;
  22961. *)
  22962. pthread_cflags="-D_REENTRANT"
  22963. pthread_lib="-lpthread"
  22964. ;;
  22965. esac
  22966. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  22967. # Save the original compiler flags and libraries
  22968. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22969. # Add the pthread compiler flags and libraries
  22970. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22971. # Check to see if we have pthread support on this system
  22972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  22973. printf %s "checking for pthreads... " >&6; }
  22974. use_pthreads=no
  22975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22976. /* end confdefs.h. */
  22977. #include <pthread.h>
  22978. int
  22979. main (void)
  22980. {
  22981. pthread_attr_t type;
  22982. pthread_attr_init(&type);
  22983. ;
  22984. return 0;
  22985. }
  22986. _ACEOF
  22987. if ac_fn_c_try_link "$LINENO"
  22988. then :
  22989. use_pthreads=yes
  22990. fi
  22991. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22992. conftest$ac_exeext conftest.$ac_ext
  22993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  22994. printf "%s\n" "$use_pthreads" >&6; }
  22995. # Restore the compiler flags and libraries
  22996. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22997. # Do futher testing if we have pthread support...
  22998. if test x$use_pthreads = xyes; then
  22999. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23000. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23001. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23002. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23003. # Save the original compiler flags and libraries
  23004. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23005. # Add the pthread compiler flags and libraries
  23006. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23007. # Check to see if recursive mutexes are available
  23008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23009. printf %s "checking for recursive mutexes... " >&6; }
  23010. has_recursive_mutexes=no
  23011. if test x$has_recursive_mutexes = xno; then
  23012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23013. /* end confdefs.h. */
  23014. #define _GNU_SOURCE 1
  23015. #include <pthread.h>
  23016. int
  23017. main (void)
  23018. {
  23019. pthread_mutexattr_t attr;
  23020. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23021. ;
  23022. return 0;
  23023. }
  23024. _ACEOF
  23025. if ac_fn_c_try_link "$LINENO"
  23026. then :
  23027. has_recursive_mutexes=yes
  23028. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23029. fi
  23030. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23031. conftest$ac_exeext conftest.$ac_ext
  23032. fi
  23033. if test x$has_recursive_mutexes = xno; then
  23034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23035. /* end confdefs.h. */
  23036. #define _GNU_SOURCE 1
  23037. #include <pthread.h>
  23038. int
  23039. main (void)
  23040. {
  23041. pthread_mutexattr_t attr;
  23042. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23043. ;
  23044. return 0;
  23045. }
  23046. _ACEOF
  23047. if ac_fn_c_try_link "$LINENO"
  23048. then :
  23049. has_recursive_mutexes=yes
  23050. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23051. fi
  23052. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23053. conftest$ac_exeext conftest.$ac_ext
  23054. fi
  23055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23056. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23057. # Check to see if pthread semaphore support is missing
  23058. if test x$enable_pthread_sem = xyes; then
  23059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23060. printf %s "checking for pthread semaphores... " >&6; }
  23061. have_pthread_sem=no
  23062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23063. /* end confdefs.h. */
  23064. #include <pthread.h>
  23065. #include <semaphore.h>
  23066. int
  23067. main (void)
  23068. {
  23069. ;
  23070. return 0;
  23071. }
  23072. _ACEOF
  23073. if ac_fn_c_try_compile "$LINENO"
  23074. then :
  23075. have_pthread_sem=yes
  23076. fi
  23077. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23079. printf "%s\n" "$have_pthread_sem" >&6; }
  23080. fi
  23081. if test x$have_pthread_sem = xyes; then
  23082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23083. printf %s "checking for sem_timedwait... " >&6; }
  23084. have_sem_timedwait=no
  23085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23086. /* end confdefs.h. */
  23087. #include <pthread.h>
  23088. #include <semaphore.h>
  23089. int
  23090. main (void)
  23091. {
  23092. sem_timedwait(NULL, NULL);
  23093. ;
  23094. return 0;
  23095. }
  23096. _ACEOF
  23097. if ac_fn_c_try_link "$LINENO"
  23098. then :
  23099. have_sem_timedwait=yes
  23100. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23101. fi
  23102. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23103. conftest$ac_exeext conftest.$ac_ext
  23104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23105. printf "%s\n" "$have_sem_timedwait" >&6; }
  23106. fi
  23107. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23108. "
  23109. if test "x$ac_cv_header_pthread_np_h" = xyes
  23110. then :
  23111. have_pthread_np_h=yes
  23112. else $as_nop
  23113. have_pthread_np_h=no
  23114. fi
  23115. if test x$have_pthread_np_h = xyes; then
  23116. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23117. fi
  23118. # Check to see if pthread naming is available
  23119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23120. printf %s "checking for pthread_setname_np... " >&6; }
  23121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23122. /* end confdefs.h. */
  23123. /* Override any GCC internal prototype to avoid an error.
  23124. Use char because int might match the return type of a GCC
  23125. builtin and then its argument prototype would still apply. */
  23126. char pthread_setname_np ();
  23127. int
  23128. main (void)
  23129. {
  23130. return pthread_setname_np ();
  23131. ;
  23132. return 0;
  23133. }
  23134. _ACEOF
  23135. if ac_fn_c_try_link "$LINENO"
  23136. then :
  23137. has_pthread_setname_np=yes
  23138. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23139. else $as_nop
  23140. has_pthread_setname_np=no
  23141. fi
  23142. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23143. conftest$ac_exeext conftest.$ac_ext
  23144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23145. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23147. printf %s "checking for pthread_set_name_np... " >&6; }
  23148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23149. /* end confdefs.h. */
  23150. /* Override any GCC internal prototype to avoid an error.
  23151. Use char because int might match the return type of a GCC
  23152. builtin and then its argument prototype would still apply. */
  23153. char pthread_set_name_np ();
  23154. int
  23155. main (void)
  23156. {
  23157. return pthread_set_name_np ();
  23158. ;
  23159. return 0;
  23160. }
  23161. _ACEOF
  23162. if ac_fn_c_try_link "$LINENO"
  23163. then :
  23164. has_pthread_set_name_np=yes
  23165. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23166. else $as_nop
  23167. has_pthread_set_name_np=no
  23168. fi
  23169. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23170. conftest$ac_exeext conftest.$ac_ext
  23171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23172. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23173. # Restore the compiler flags and libraries
  23174. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23175. # Basic thread creation functions
  23176. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23177. # Semaphores
  23178. # We can fake these with mutexes and condition variables if necessary
  23179. if test x$have_pthread_sem = xyes; then
  23180. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23181. else
  23182. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23183. fi
  23184. # Mutexes
  23185. # We can fake these with semaphores if necessary
  23186. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23187. # Condition variables
  23188. # We can fake these with semaphores and mutexes if necessary
  23189. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23190. # Thread local storage
  23191. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23192. have_threads=yes
  23193. fi
  23194. fi
  23195. }
  23196. CheckWINDOWS()
  23197. {
  23198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23199. printf %s "checking Windows compiler... " >&6; }
  23200. have_win32_gcc=no
  23201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23202. /* end confdefs.h. */
  23203. #include <windows.h>
  23204. int
  23205. main (void)
  23206. {
  23207. ;
  23208. return 0;
  23209. }
  23210. _ACEOF
  23211. if ac_fn_c_try_compile "$LINENO"
  23212. then :
  23213. have_win32_gcc=yes
  23214. fi
  23215. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23217. printf "%s\n" "$have_win32_gcc" >&6; }
  23218. if test x$have_win32_gcc != xyes; then
  23219. as_fn_error $? "
  23220. *** Your compiler ($CC) does not produce Windows executables!
  23221. " "$LINENO" 5
  23222. fi
  23223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23224. printf %s "checking Windows CE... " >&6; }
  23225. have_wince=no
  23226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23227. /* end confdefs.h. */
  23228. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23229. #error This is not Windows CE
  23230. #endif
  23231. int
  23232. main (void)
  23233. {
  23234. ;
  23235. return 0;
  23236. }
  23237. _ACEOF
  23238. if ac_fn_c_try_compile "$LINENO"
  23239. then :
  23240. have_wince=yes
  23241. as_fn_error $? "
  23242. *** Sorry, Windows CE is no longer supported.
  23243. " "$LINENO" 5
  23244. fi
  23245. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23247. printf "%s\n" "$have_wince" >&6; }
  23248. # This fixes Windows stack alignment with newer GCC
  23249. CheckStackBoundary
  23250. # headers needed elsewhere
  23251. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23252. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23253. then :
  23254. have_tpcshrd_h=yes
  23255. fi
  23256. if test x$have_tpcshrd_h = xyes; then
  23257. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23258. fi
  23259. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23260. if test "x$ac_cv_header_roapi_h" = xyes
  23261. then :
  23262. have_roapi_h=yes
  23263. fi
  23264. if test x$have_roapi_h = xyes; then
  23265. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23266. fi
  23267. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23268. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23269. then :
  23270. have_shellscalingapi_h=yes
  23271. fi
  23272. if test x$shellscalingapi_h = xyes; then
  23273. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23274. fi
  23275. }
  23276. CheckOS2()
  23277. {
  23278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23279. printf %s "checking OS/2 compiler... " >&6; }
  23280. have_os2_gcc=no
  23281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23282. /* end confdefs.h. */
  23283. #include <os2.h>
  23284. int
  23285. main (void)
  23286. {
  23287. ;
  23288. return 0;
  23289. }
  23290. _ACEOF
  23291. if ac_fn_c_try_compile "$LINENO"
  23292. then :
  23293. have_os2_gcc=yes
  23294. fi
  23295. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23297. printf "%s\n" "$have_os2_gcc" >&6; }
  23298. if test x$have_os2_gcc != xyes; then
  23299. as_fn_error $? "
  23300. *** Your compiler ($CC) does not produce OS/2 executables!
  23301. " "$LINENO" 5
  23302. fi
  23303. }
  23304. CheckDIRECTX()
  23305. {
  23306. # Check whether --enable-directx was given.
  23307. if test ${enable_directx+y}
  23308. then :
  23309. enableval=$enable_directx;
  23310. else $as_nop
  23311. enable_directx=yes
  23312. fi
  23313. if test x$enable_directx = xyes; then
  23314. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23315. if test "x$ac_cv_header_d3d9_h" = xyes
  23316. then :
  23317. have_d3d=yes
  23318. fi
  23319. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23320. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23321. then :
  23322. have_d3d11=yes
  23323. fi
  23324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23325. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23327. /* end confdefs.h. */
  23328. #include <winsdkver.h>
  23329. #include <sdkddkver.h>
  23330. #include <d3d12.h>
  23331. ID3D12Device1 *device;
  23332. #if WDK_NTDDI_VERSION <= 0x0A000008
  23333. asdf
  23334. #endif
  23335. int
  23336. main (void)
  23337. {
  23338. ;
  23339. return 0;
  23340. }
  23341. _ACEOF
  23342. if ac_fn_c_try_compile "$LINENO"
  23343. then :
  23344. have_d3d12=yes
  23345. else $as_nop
  23346. have_d3d12=no
  23347. fi
  23348. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23350. printf "%s\n" "$have_d3d12" >&6; }
  23351. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23352. if test "x$ac_cv_header_ddraw_h" = xyes
  23353. then :
  23354. have_ddraw=yes
  23355. fi
  23356. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23357. if test "x$ac_cv_header_dsound_h" = xyes
  23358. then :
  23359. have_dsound=yes
  23360. fi
  23361. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23362. if test "x$ac_cv_header_dinput_h" = xyes
  23363. then :
  23364. have_dinput=yes
  23365. fi
  23366. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23367. if test "x$ac_cv_header_dxgi_h" = xyes
  23368. then :
  23369. have_dxgi=yes
  23370. fi
  23371. if test x$have_ddraw = xyes; then
  23372. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23373. fi
  23374. if test x$have_dinput = xyes; then
  23375. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23376. fi
  23377. if test x$have_dsound = xyes; then
  23378. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23379. fi
  23380. if test x$have_dxgi = xyes; then
  23381. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23382. fi
  23383. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23384. # FIXME: ...so force it off for now.
  23385. case "$host" in
  23386. *-*-cygwin*)
  23387. have_dinput=false
  23388. ;;
  23389. esac
  23390. fi
  23391. # Check whether --enable-xinput was given.
  23392. if test ${enable_xinput+y}
  23393. then :
  23394. enableval=$enable_xinput;
  23395. else $as_nop
  23396. enable_xinput=yes
  23397. fi
  23398. if test x$enable_xinput = xyes; then
  23399. have_xinput_gamepadex=no
  23400. have_xinput_stateex=no
  23401. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23402. if test "x$ac_cv_header_xinput_h" = xyes
  23403. then :
  23404. have_xinput=yes
  23405. fi
  23406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23407. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23409. /* end confdefs.h. */
  23410. #include <windows.h>
  23411. #include <xinput.h>
  23412. XINPUT_GAMEPAD_EX x1;
  23413. int
  23414. main (void)
  23415. {
  23416. ;
  23417. return 0;
  23418. }
  23419. _ACEOF
  23420. if ac_fn_c_try_compile "$LINENO"
  23421. then :
  23422. have_xinput_gamepadex=yes
  23423. fi
  23424. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23426. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23428. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23430. /* end confdefs.h. */
  23431. #include <windows.h>
  23432. #include <xinput.h>
  23433. XINPUT_STATE_EX s1;
  23434. int
  23435. main (void)
  23436. {
  23437. ;
  23438. return 0;
  23439. }
  23440. _ACEOF
  23441. if ac_fn_c_try_compile "$LINENO"
  23442. then :
  23443. have_xinput_stateex=yes
  23444. fi
  23445. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23447. printf "%s\n" "$have_xinput_stateex" >&6; }
  23448. if test x$have_xinput = xyes; then
  23449. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23450. fi
  23451. if test x$have_xinput_gamepadex = xyes; then
  23452. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23453. fi
  23454. if test x$have_xinput_stateex = xyes; then
  23455. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23456. fi
  23457. fi
  23458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23459. printf %s "checking for windows.gaming.input.h... " >&6; }
  23460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23461. /* end confdefs.h. */
  23462. #define COBJMACROS
  23463. #include <windows.gaming.input.h>
  23464. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23465. int
  23466. main (void)
  23467. {
  23468. ;
  23469. return 0;
  23470. }
  23471. _ACEOF
  23472. if ac_fn_c_try_compile "$LINENO"
  23473. then :
  23474. have_wgi=yes
  23475. else $as_nop
  23476. have_wgi=no
  23477. fi
  23478. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23480. printf "%s\n" "$have_wgi" >&6; }
  23481. if test x$have_wgi = xyes; then
  23482. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23483. fi
  23484. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23485. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23486. then :
  23487. have_wasapi=yes
  23488. fi
  23489. if test x$have_wasapi = xyes; then
  23490. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23491. fi
  23492. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23493. if test "x$ac_cv_header_audioclient_h" = xyes
  23494. then :
  23495. else $as_nop
  23496. have_wasapi=no
  23497. fi
  23498. if test x$have_wasapi = xyes; then
  23499. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23500. fi
  23501. # Check whether --enable-wasapi was given.
  23502. if test ${enable_wasapi+y}
  23503. then :
  23504. enableval=$enable_wasapi;
  23505. else $as_nop
  23506. enable_wasapi=yes
  23507. fi
  23508. }
  23509. CheckDLOPEN()
  23510. {
  23511. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23512. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23513. if test "x$ac_cv_header_dlfcn_h" = xyes
  23514. then :
  23515. have_dlfcn_h=yes
  23516. else $as_nop
  23517. have_dlfcn_h=no
  23518. fi
  23519. have_dlopen=no
  23520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23521. printf %s "checking for dlopen in -lc... " >&6; }
  23522. if test ${ac_cv_lib_c_dlopen+y}
  23523. then :
  23524. printf %s "(cached) " >&6
  23525. else $as_nop
  23526. ac_check_lib_save_LIBS=$LIBS
  23527. LIBS="-lc $LIBS"
  23528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23529. /* end confdefs.h. */
  23530. /* Override any GCC internal prototype to avoid an error.
  23531. Use char because int might match the return type of a GCC
  23532. builtin and then its argument prototype would still apply. */
  23533. char dlopen ();
  23534. int
  23535. main (void)
  23536. {
  23537. return dlopen ();
  23538. ;
  23539. return 0;
  23540. }
  23541. _ACEOF
  23542. if ac_fn_c_try_link "$LINENO"
  23543. then :
  23544. ac_cv_lib_c_dlopen=yes
  23545. else $as_nop
  23546. ac_cv_lib_c_dlopen=no
  23547. fi
  23548. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23549. conftest$ac_exeext conftest.$ac_ext
  23550. LIBS=$ac_check_lib_save_LIBS
  23551. fi
  23552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23553. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23554. if test "x$ac_cv_lib_c_dlopen" = xyes
  23555. then :
  23556. have_dlopen=yes
  23557. else $as_nop
  23558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23559. printf %s "checking for dlopen in -ldl... " >&6; }
  23560. if test ${ac_cv_lib_dl_dlopen+y}
  23561. then :
  23562. printf %s "(cached) " >&6
  23563. else $as_nop
  23564. ac_check_lib_save_LIBS=$LIBS
  23565. LIBS="-ldl $LIBS"
  23566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23567. /* end confdefs.h. */
  23568. /* Override any GCC internal prototype to avoid an error.
  23569. Use char because int might match the return type of a GCC
  23570. builtin and then its argument prototype would still apply. */
  23571. char dlopen ();
  23572. int
  23573. main (void)
  23574. {
  23575. return dlopen ();
  23576. ;
  23577. return 0;
  23578. }
  23579. _ACEOF
  23580. if ac_fn_c_try_link "$LINENO"
  23581. then :
  23582. ac_cv_lib_dl_dlopen=yes
  23583. else $as_nop
  23584. ac_cv_lib_dl_dlopen=no
  23585. fi
  23586. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23587. conftest$ac_exeext conftest.$ac_ext
  23588. LIBS=$ac_check_lib_save_LIBS
  23589. fi
  23590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23591. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23592. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23593. then :
  23594. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23595. fi
  23596. fi
  23597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23598. printf %s "checking for dlopen... " >&6; }
  23599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23600. printf "%s\n" "$have_dlopen" >&6; }
  23601. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23602. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23603. if test x$enable_loadso = xyes; then
  23604. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23605. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23606. have_loadso=yes
  23607. fi
  23608. fi
  23609. }
  23610. CheckO_CLOEXEC()
  23611. {
  23612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23613. printf %s "checking for O_CLOEXEC... " >&6; }
  23614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23615. /* end confdefs.h. */
  23616. #include <fcntl.h>
  23617. int flag = O_CLOEXEC;
  23618. int
  23619. main (void)
  23620. {
  23621. ;
  23622. return 0;
  23623. }
  23624. _ACEOF
  23625. if ac_fn_c_try_compile "$LINENO"
  23626. then :
  23627. have_o_cloexec=yes
  23628. else $as_nop
  23629. have_o_cloexec=no
  23630. fi
  23631. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23633. printf "%s\n" "$have_o_cloexec" >&6; }
  23634. if test $have_o_cloexec = yes; then
  23635. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23636. fi
  23637. }
  23638. CheckUSBHID()
  23639. {
  23640. case "$host" in
  23641. *-*-*bsd*|*-*-dragonfly*)
  23642. if test x$enable_joystick = xyes; then
  23643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23644. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23645. if test ${ac_cv_lib_usbhid_hid_init+y}
  23646. then :
  23647. printf %s "(cached) " >&6
  23648. else $as_nop
  23649. ac_check_lib_save_LIBS=$LIBS
  23650. LIBS="-lusbhid $LIBS"
  23651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23652. /* end confdefs.h. */
  23653. /* Override any GCC internal prototype to avoid an error.
  23654. Use char because int might match the return type of a GCC
  23655. builtin and then its argument prototype would still apply. */
  23656. char hid_init ();
  23657. int
  23658. main (void)
  23659. {
  23660. return hid_init ();
  23661. ;
  23662. return 0;
  23663. }
  23664. _ACEOF
  23665. if ac_fn_c_try_link "$LINENO"
  23666. then :
  23667. ac_cv_lib_usbhid_hid_init=yes
  23668. else $as_nop
  23669. ac_cv_lib_usbhid_hid_init=no
  23670. fi
  23671. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23672. conftest$ac_exeext conftest.$ac_ext
  23673. LIBS=$ac_check_lib_save_LIBS
  23674. fi
  23675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23676. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23677. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23678. then :
  23679. have_libusbhid=yes
  23680. fi
  23681. if test x$have_libusbhid = xyes; then
  23682. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23683. if test "x$ac_cv_header_usbhid_h" = xyes
  23684. then :
  23685. USB_CFLAGS="-DHAVE_USBHID_H"
  23686. fi
  23687. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23688. if test "x$ac_cv_header_libusbhid_h" = xyes
  23689. then :
  23690. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23691. fi
  23692. USB_LIBS="$USB_LIBS -lusbhid"
  23693. else
  23694. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23695. if test "x$ac_cv_header_usb_h" = xyes
  23696. then :
  23697. USB_CFLAGS="-DHAVE_USB_H"
  23698. fi
  23699. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23700. if test "x$ac_cv_header_libusb_h" = xyes
  23701. then :
  23702. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23703. fi
  23704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23705. printf %s "checking for hid_init in -lusb... " >&6; }
  23706. if test ${ac_cv_lib_usb_hid_init+y}
  23707. then :
  23708. printf %s "(cached) " >&6
  23709. else $as_nop
  23710. ac_check_lib_save_LIBS=$LIBS
  23711. LIBS="-lusb $LIBS"
  23712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23713. /* end confdefs.h. */
  23714. /* Override any GCC internal prototype to avoid an error.
  23715. Use char because int might match the return type of a GCC
  23716. builtin and then its argument prototype would still apply. */
  23717. char hid_init ();
  23718. int
  23719. main (void)
  23720. {
  23721. return hid_init ();
  23722. ;
  23723. return 0;
  23724. }
  23725. _ACEOF
  23726. if ac_fn_c_try_link "$LINENO"
  23727. then :
  23728. ac_cv_lib_usb_hid_init=yes
  23729. else $as_nop
  23730. ac_cv_lib_usb_hid_init=no
  23731. fi
  23732. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23733. conftest$ac_exeext conftest.$ac_ext
  23734. LIBS=$ac_check_lib_save_LIBS
  23735. fi
  23736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23737. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23738. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23739. then :
  23740. USB_LIBS="$USB_LIBS -lusb"
  23741. fi
  23742. fi
  23743. save_CFLAGS="$CFLAGS"
  23744. CFLAGS="$CFLAGS $USB_CFLAGS"
  23745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23746. printf %s "checking for usbhid... " >&6; }
  23747. have_usbhid=no
  23748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23749. /* end confdefs.h. */
  23750. #include <sys/types.h>
  23751. #if defined(HAVE_USB_H)
  23752. #include <usb.h>
  23753. #endif
  23754. #ifdef __DragonFly__
  23755. # include <bus/u4b/usb.h>
  23756. # include <bus/u4b/usbhid.h>
  23757. #else
  23758. # include <dev/usb/usb.h>
  23759. # include <dev/usb/usbhid.h>
  23760. #endif
  23761. #if defined(HAVE_USBHID_H)
  23762. #include <usbhid.h>
  23763. #elif defined(HAVE_LIBUSB_H)
  23764. #include <libusb.h>
  23765. #elif defined(HAVE_LIBUSBHID_H)
  23766. #include <libusbhid.h>
  23767. #endif
  23768. int
  23769. main (void)
  23770. {
  23771. struct report_desc *repdesc;
  23772. struct usb_ctl_report *repbuf;
  23773. hid_kind_t hidkind;
  23774. ;
  23775. return 0;
  23776. }
  23777. _ACEOF
  23778. if ac_fn_c_try_compile "$LINENO"
  23779. then :
  23780. have_usbhid=yes
  23781. fi
  23782. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23784. printf "%s\n" "$have_usbhid" >&6; }
  23785. if test x$have_usbhid = xyes; then
  23786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23787. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23788. have_usbhid_ucr_data=no
  23789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23790. /* end confdefs.h. */
  23791. #include <sys/types.h>
  23792. #if defined(HAVE_USB_H)
  23793. #include <usb.h>
  23794. #endif
  23795. #ifdef __DragonFly__
  23796. # include <bus/u4b/usb.h>
  23797. # include <bus/u4b/usbhid.h>
  23798. #else
  23799. # include <dev/usb/usb.h>
  23800. # include <dev/usb/usbhid.h>
  23801. #endif
  23802. #if defined(HAVE_USBHID_H)
  23803. #include <usbhid.h>
  23804. #elif defined(HAVE_LIBUSB_H)
  23805. #include <libusb.h>
  23806. #elif defined(HAVE_LIBUSBHID_H)
  23807. #include <libusbhid.h>
  23808. #endif
  23809. int
  23810. main (void)
  23811. {
  23812. struct usb_ctl_report buf;
  23813. if (buf.ucr_data) { }
  23814. ;
  23815. return 0;
  23816. }
  23817. _ACEOF
  23818. if ac_fn_c_try_compile "$LINENO"
  23819. then :
  23820. have_usbhid_ucr_data=yes
  23821. fi
  23822. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23823. if test x$have_usbhid_ucr_data = xyes; then
  23824. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23825. fi
  23826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23827. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23829. printf %s "checking for new usbhid API... " >&6; }
  23830. have_usbhid_new=no
  23831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23832. /* end confdefs.h. */
  23833. #include <sys/types.h>
  23834. #if defined(HAVE_USB_H)
  23835. #include <usb.h>
  23836. #endif
  23837. #ifdef __DragonFly__
  23838. #include <bus/u4b/usb.h>
  23839. #include <bus/u4b/usbhid.h>
  23840. #else
  23841. #include <dev/usb/usb.h>
  23842. #include <dev/usb/usbhid.h>
  23843. #endif
  23844. #if defined(HAVE_USBHID_H)
  23845. #include <usbhid.h>
  23846. #elif defined(HAVE_LIBUSB_H)
  23847. #include <libusb.h>
  23848. #elif defined(HAVE_LIBUSBHID_H)
  23849. #include <libusbhid.h>
  23850. #endif
  23851. int
  23852. main (void)
  23853. {
  23854. report_desc_t d;
  23855. hid_start_parse(d, 1, 1);
  23856. ;
  23857. return 0;
  23858. }
  23859. _ACEOF
  23860. if ac_fn_c_try_compile "$LINENO"
  23861. then :
  23862. have_usbhid_new=yes
  23863. fi
  23864. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23865. if test x$have_usbhid_new = xyes; then
  23866. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  23867. fi
  23868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  23869. printf "%s\n" "$have_usbhid_new" >&6; }
  23870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  23871. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  23872. have_machine_joystick=no
  23873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23874. /* end confdefs.h. */
  23875. #include <machine/joystick.h>
  23876. int
  23877. main (void)
  23878. {
  23879. struct joystick t;
  23880. ;
  23881. return 0;
  23882. }
  23883. _ACEOF
  23884. if ac_fn_c_try_compile "$LINENO"
  23885. then :
  23886. have_machine_joystick=yes
  23887. fi
  23888. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23889. if test x$have_machine_joystick = xyes; then
  23890. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  23891. fi
  23892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  23893. printf "%s\n" "$have_machine_joystick" >&6; }
  23894. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  23895. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  23896. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  23897. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  23898. have_joystick=yes
  23899. fi
  23900. CFLAGS="$save_CFLAGS"
  23901. fi
  23902. ;;
  23903. esac
  23904. }
  23905. CheckHIDAPI()
  23906. {
  23907. # Check whether --enable-hidapi-joystick was given.
  23908. if test ${enable_hidapi_joystick+y}
  23909. then :
  23910. enableval=$enable_hidapi_joystick;
  23911. else $as_nop
  23912. enable_hidapi_joystick=yes
  23913. fi
  23914. # Check whether --enable-hidapi-libusb was given.
  23915. if test ${enable_hidapi_libusb+y}
  23916. then :
  23917. enableval=$enable_hidapi_libusb;
  23918. else $as_nop
  23919. enable_hidapi_libusb=maybe
  23920. fi
  23921. if test x$enable_hidapi = xyes; then
  23922. case "$host" in
  23923. # libusb does not support iOS
  23924. *-ios-* )
  23925. enable_hidapi_libusb=no
  23926. ;;
  23927. # On the other hand, *BSD specifically uses libusb only
  23928. *-*-*bsd* )
  23929. enable_hidapi_libusb=yes
  23930. require_hidapi_libusb=yes
  23931. ;;
  23932. *-*-os2* )
  23933. enable_hidapi_libusb=yes
  23934. ;;
  23935. esac
  23936. hidapi_support=yes
  23937. if test x$enable_hidapi_libusb = xyes; then
  23938. pkg_failed=no
  23939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  23940. printf %s "checking for libusb-1.0... " >&6; }
  23941. if test -n "$LIBUSB_CFLAGS"; then
  23942. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  23943. elif test -n "$PKG_CONFIG"; then
  23944. if test -n "$PKG_CONFIG" && \
  23945. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23946. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23947. ac_status=$?
  23948. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23949. test $ac_status = 0; }; then
  23950. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  23951. test "x$?" != "x0" && pkg_failed=yes
  23952. else
  23953. pkg_failed=yes
  23954. fi
  23955. else
  23956. pkg_failed=untried
  23957. fi
  23958. if test -n "$LIBUSB_LIBS"; then
  23959. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  23960. elif test -n "$PKG_CONFIG"; then
  23961. if test -n "$PKG_CONFIG" && \
  23962. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23963. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23964. ac_status=$?
  23965. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23966. test $ac_status = 0; }; then
  23967. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  23968. test "x$?" != "x0" && pkg_failed=yes
  23969. else
  23970. pkg_failed=yes
  23971. fi
  23972. else
  23973. pkg_failed=untried
  23974. fi
  23975. if test $pkg_failed = yes; then
  23976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23977. printf "%s\n" "no" >&6; }
  23978. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23979. _pkg_short_errors_supported=yes
  23980. else
  23981. _pkg_short_errors_supported=no
  23982. fi
  23983. if test $_pkg_short_errors_supported = yes; then
  23984. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23985. else
  23986. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23987. fi
  23988. # Put the nasty error message in config.log where it belongs
  23989. echo "$LIBUSB_PKG_ERRORS" >&5
  23990. have_libusb=no
  23991. elif test $pkg_failed = untried; then
  23992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23993. printf "%s\n" "no" >&6; }
  23994. have_libusb=no
  23995. else
  23996. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  23997. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  23998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23999. printf "%s\n" "yes" >&6; }
  24000. have_libusb=yes
  24001. fi
  24002. save_CPPFLAGS="$CPPFLAGS"
  24003. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24004. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24005. if test "x$ac_cv_header_libusb_h" = xyes
  24006. then :
  24007. have_libusb_h=yes
  24008. else $as_nop
  24009. have_libusb_h=no
  24010. fi
  24011. CPPFLAGS="$save_CPPFLAGS"
  24012. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24013. hidapi_support=no
  24014. fi
  24015. fi
  24016. if test x$hidapi_support = xyes; then
  24017. if test x$have_libusb_h = xyes; then
  24018. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24019. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24020. if test x$require_hidapi_libusb = xyes; then
  24021. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24022. else
  24023. if test x$have_loadso != xyes; then
  24024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24025. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24026. fi
  24027. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24028. libusb_lib=""
  24029. case "$host" in
  24030. *-*-darwin* )
  24031. libusb_lib="libusb-1.0.0.dylib"
  24032. ;;
  24033. *-*-cygwin* | *-*-mingw* )
  24034. libusb_lib="libusb-1.0.dll"
  24035. ;;
  24036. *-*-os2* )
  24037. libusb_lib="usb100.dll"
  24038. ;;
  24039. esac
  24040. if test x$libusb_lib = x; then
  24041. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24042. fi
  24043. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24044. fi
  24045. fi
  24046. fi
  24047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24048. printf %s "checking for hidapi joystick support... " >&6; }
  24049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24050. printf "%s\n" "$hidapi_support" >&6; }
  24051. fi
  24052. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24053. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24054. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24055. fi
  24056. }
  24057. CheckClockGettime()
  24058. {
  24059. # Check whether --enable-clock_gettime was given.
  24060. if test ${enable_clock_gettime+y}
  24061. then :
  24062. enableval=$enable_clock_gettime;
  24063. else $as_nop
  24064. enable_clock_gettime=yes
  24065. fi
  24066. if test x$enable_clock_gettime = xyes; then
  24067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24068. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24069. if test ${ac_cv_lib_rt_clock_gettime+y}
  24070. then :
  24071. printf %s "(cached) " >&6
  24072. else $as_nop
  24073. ac_check_lib_save_LIBS=$LIBS
  24074. LIBS="-lrt $LIBS"
  24075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24076. /* end confdefs.h. */
  24077. /* Override any GCC internal prototype to avoid an error.
  24078. Use char because int might match the return type of a GCC
  24079. builtin and then its argument prototype would still apply. */
  24080. char clock_gettime ();
  24081. int
  24082. main (void)
  24083. {
  24084. return clock_gettime ();
  24085. ;
  24086. return 0;
  24087. }
  24088. _ACEOF
  24089. if ac_fn_c_try_link "$LINENO"
  24090. then :
  24091. ac_cv_lib_rt_clock_gettime=yes
  24092. else $as_nop
  24093. ac_cv_lib_rt_clock_gettime=no
  24094. fi
  24095. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24096. conftest$ac_exeext conftest.$ac_ext
  24097. LIBS=$ac_check_lib_save_LIBS
  24098. fi
  24099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24100. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24101. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24102. then :
  24103. have_clock_gettime=yes
  24104. fi
  24105. if test x$have_clock_gettime = xyes; then
  24106. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24107. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24108. else
  24109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24110. printf %s "checking for clock_gettime in -lc... " >&6; }
  24111. if test ${ac_cv_lib_c_clock_gettime+y}
  24112. then :
  24113. printf %s "(cached) " >&6
  24114. else $as_nop
  24115. ac_check_lib_save_LIBS=$LIBS
  24116. LIBS="-lc $LIBS"
  24117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24118. /* end confdefs.h. */
  24119. /* Override any GCC internal prototype to avoid an error.
  24120. Use char because int might match the return type of a GCC
  24121. builtin and then its argument prototype would still apply. */
  24122. char clock_gettime ();
  24123. int
  24124. main (void)
  24125. {
  24126. return clock_gettime ();
  24127. ;
  24128. return 0;
  24129. }
  24130. _ACEOF
  24131. if ac_fn_c_try_link "$LINENO"
  24132. then :
  24133. ac_cv_lib_c_clock_gettime=yes
  24134. else $as_nop
  24135. ac_cv_lib_c_clock_gettime=no
  24136. fi
  24137. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24138. conftest$ac_exeext conftest.$ac_ext
  24139. LIBS=$ac_check_lib_save_LIBS
  24140. fi
  24141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24142. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24143. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24144. then :
  24145. have_clock_gettime=yes
  24146. fi
  24147. if test x$have_clock_gettime = xyes; then
  24148. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24149. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24150. fi
  24151. fi
  24152. fi
  24153. }
  24154. CheckLinuxVersion()
  24155. {
  24156. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24157. if test "x$ac_cv_header_linux_version_h" = xyes
  24158. then :
  24159. have_linux_version_h=yes
  24160. fi
  24161. if test x$have_linux_version_h = xyes; then
  24162. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24163. fi
  24164. }
  24165. CheckRPATH()
  24166. {
  24167. # Check whether --enable-rpath was given.
  24168. if test ${enable_rpath+y}
  24169. then :
  24170. enableval=$enable_rpath;
  24171. else $as_nop
  24172. enable_rpath=yes
  24173. fi
  24174. }
  24175. CheckEventSignals()
  24176. {
  24177. # Check whether --enable-backgrounding-signal was given.
  24178. if test ${enable_backgrounding_signal+y}
  24179. then :
  24180. enableval=$enable_backgrounding_signal;
  24181. else $as_nop
  24182. enable_backgrounding_signal=no
  24183. fi
  24184. if test x$enable_backgrounding_signal != xno; then
  24185. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24186. fi
  24187. # Check whether --enable-foregrounding-signal was given.
  24188. if test ${enable_foregrounding_signal+y}
  24189. then :
  24190. enableval=$enable_foregrounding_signal;
  24191. else $as_nop
  24192. enable_foregrounding_signal=no
  24193. fi
  24194. if test x$enable_foregrounding_signal != xno; then
  24195. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24196. fi
  24197. }
  24198. CheckVirtualJoystick()
  24199. {
  24200. # Check whether --enable-joystick-virtual was given.
  24201. if test ${enable_joystick_virtual+y}
  24202. then :
  24203. enableval=$enable_joystick_virtual;
  24204. else $as_nop
  24205. enable_joystick_virtual=yes
  24206. fi
  24207. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24208. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24209. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24210. have_joystick_virtual=yes
  24211. fi
  24212. }
  24213. CheckWarnAll
  24214. CheckNoStrictAliasing
  24215. CheckEventSignals
  24216. have_locale=no
  24217. case "$host" in
  24218. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24219. case "$host" in
  24220. *-*-android*)
  24221. # Android
  24222. ARCH=android
  24223. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24224. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24225. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24226. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24227. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24228. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24229. if test x$enable_video = xyes; then
  24230. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24231. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24232. SUMMARY_video="${SUMMARY_video} android"
  24233. have_video=yes
  24234. fi
  24235. ;;
  24236. *-*-linux*) ARCH=linux ;;
  24237. *-*-uclinux*) ARCH=linux ;;
  24238. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24239. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24240. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24241. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24242. *-*-bsdi*) ARCH=bsdi ;;
  24243. *-*-freebsd*) ARCH=freebsd ;;
  24244. *-*-dragonfly*) ARCH=freebsd ;;
  24245. *-*-netbsd*) ARCH=netbsd ;;
  24246. *-*-openbsd*) ARCH=openbsd ;;
  24247. *-*-sysv5*) ARCH=sysv5 ;;
  24248. *-*-solaris*) ARCH=solaris ;;
  24249. *-*-hpux*) ARCH=hpux ;;
  24250. *-*-aix*) ARCH=aix ;;
  24251. *-*-minix*) ARCH=minix ;;
  24252. *-*-nto*) ARCH=nto
  24253. CheckQNXVideo
  24254. ;;
  24255. esac
  24256. CheckVisibilityHidden
  24257. CheckDeclarationAfterStatement
  24258. CheckDummyVideo
  24259. CheckOffscreenVideo
  24260. CheckDiskAudio
  24261. CheckDummyAudio
  24262. CheckDLOPEN
  24263. CheckARM
  24264. CheckNEON
  24265. CheckO_CLOEXEC
  24266. CheckOSS
  24267. CheckALSA
  24268. CheckPipewire
  24269. CheckPulseAudio
  24270. CheckJACK
  24271. CheckARTSC
  24272. CheckESD
  24273. CheckNAS
  24274. CheckSNDIO
  24275. CheckFusionSound
  24276. CheckLibSampleRate
  24277. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24278. CheckRPI
  24279. CheckX11
  24280. CheckDirectFB
  24281. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24282. CheckEGL
  24283. CheckKMSDRM
  24284. CheckGLX
  24285. CheckOpenGL
  24286. CheckOpenGLES
  24287. CheckVulkan
  24288. CheckWayland
  24289. CheckInputEvents
  24290. CheckLibUDev
  24291. CheckDBus
  24292. CheckIME
  24293. CheckInotify
  24294. CheckIBus
  24295. CheckFcitx
  24296. case $ARCH in
  24297. linux)
  24298. CheckInputKD
  24299. ;;
  24300. freebsd)
  24301. CheckInputKBIO
  24302. ;;
  24303. openbsd|netbsd)
  24304. CheckInputWSCONS
  24305. ;;
  24306. esac
  24307. CheckUSBHID
  24308. CheckHIDAPI
  24309. CheckPTHREAD
  24310. CheckClockGettime
  24311. CheckLinuxVersion
  24312. CheckRPATH
  24313. CheckVivanteVideo
  24314. # Set up files for the misc library
  24315. if test x$enable_misc = xyes; then
  24316. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24317. have_misc=yes
  24318. fi
  24319. # Set up files for the locale library
  24320. if test x$enable_locale = xyes; then
  24321. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24322. have_locale=yes
  24323. fi
  24324. # Set up files for the audio library
  24325. if test x$enable_audio = xyes; then
  24326. case $ARCH in
  24327. sysv5|solaris|hpux)
  24328. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24329. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24330. SUMMARY_audio="${SUMMARY_audio} sun"
  24331. have_audio=yes
  24332. ;;
  24333. netbsd) # Don't use this on OpenBSD, it's busted.
  24334. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24335. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24336. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24337. have_audio=yes
  24338. ;;
  24339. aix)
  24340. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24341. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24342. SUMMARY_audio="${SUMMARY_audio} paudio"
  24343. have_audio=yes
  24344. ;;
  24345. android)
  24346. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24347. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24348. SUMMARY_audio="${SUMMARY_audio} android"
  24349. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24350. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24351. SUMMARY_audio="${SUMMARY_audio} openslES"
  24352. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24353. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24354. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24355. have_audio=yes
  24356. ;;
  24357. nto)
  24358. CheckQNXAudio
  24359. ;;
  24360. esac
  24361. fi
  24362. # Set up files for the joystick library
  24363. if test x$enable_joystick = xyes; then
  24364. case $ARCH in
  24365. linux)
  24366. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24367. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24368. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24369. have_joystick=yes
  24370. ;;
  24371. freebsd)
  24372. if test x$use_input_events = xyes; then
  24373. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24374. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24375. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24376. have_joystick=yes
  24377. fi
  24378. ;;
  24379. android)
  24380. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24381. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24382. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24383. have_joystick=yes
  24384. ;;
  24385. esac
  24386. fi
  24387. # Set up files for the haptic library
  24388. if test x$enable_haptic = xyes; then
  24389. case $ARCH in
  24390. linux|freebsd)
  24391. if test x$use_input_events = xyes; then
  24392. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24393. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24394. have_haptic=yes
  24395. fi
  24396. ;;
  24397. android)
  24398. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24399. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24400. have_haptic=yes
  24401. ;;
  24402. esac
  24403. fi
  24404. # Set up files for the sensor library
  24405. if test x$enable_sensor = xyes; then
  24406. case $ARCH in
  24407. android)
  24408. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24409. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24410. have_sensor=yes
  24411. ;;
  24412. esac
  24413. fi
  24414. # Set up files for the power library
  24415. if test x$enable_power = xyes; then
  24416. case $ARCH in
  24417. linux)
  24418. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24419. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24420. have_power=yes
  24421. ;;
  24422. android)
  24423. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24424. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24425. have_power=yes
  24426. ;;
  24427. esac
  24428. fi
  24429. # Set up files for the filesystem library
  24430. if test x$enable_filesystem = xyes; then
  24431. case $ARCH in
  24432. android)
  24433. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24434. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24435. have_filesystem=yes
  24436. ;;
  24437. *)
  24438. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24439. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24440. have_filesystem=yes
  24441. ;;
  24442. esac
  24443. fi
  24444. # Set up files for the timer library
  24445. if test x$enable_timers = xyes; then
  24446. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24447. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24448. have_timers=yes
  24449. fi
  24450. # Set up files for udev hotplugging support
  24451. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24452. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24453. fi
  24454. # Set up files for evdev input
  24455. if test x$use_input_events = xyes; then
  24456. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24457. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24458. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24459. fi
  24460. # Set up files for wscons input
  24461. if test x$use_input_wscons = xyes; then
  24462. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24463. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24464. fi
  24465. # Set up other core UNIX files
  24466. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24467. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24468. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24469. ;;
  24470. *-*-cygwin* | *-*-mingw*)
  24471. ARCH=win32
  24472. if test "$build" != "$host"; then # cross-compiling
  24473. # Default cross-compile location
  24474. ac_default_prefix=/usr/local/cross-tools/$host
  24475. else
  24476. # Look for the location of the tools and install there
  24477. if test "$BUILD_PREFIX" != ""; then
  24478. ac_default_prefix=$BUILD_PREFIX
  24479. fi
  24480. fi
  24481. if test x$enable_loadso = xyes; then
  24482. have_loadso=yes
  24483. fi
  24484. CheckDeclarationAfterStatement
  24485. CheckDummyVideo
  24486. CheckOffscreenVideo
  24487. CheckDiskAudio
  24488. CheckDummyAudio
  24489. CheckWINDOWS
  24490. CheckWINDOWSGL
  24491. CheckWINDOWSGLES
  24492. CheckVulkan
  24493. CheckDIRECTX
  24494. CheckHIDAPI
  24495. # Set up the core platform files
  24496. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24497. # Set up files for the misc library
  24498. if test x$enable_misc = xyes; then
  24499. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24500. have_misc=yes
  24501. fi
  24502. # Use the Windows locale APIs.
  24503. if test x$enable_locale = xyes; then
  24504. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24505. have_locale=yes
  24506. fi
  24507. # Set up files for the video library
  24508. if test x$enable_video = xyes; then
  24509. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24510. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24511. have_video=yes
  24512. # Check whether --enable-render-d3d was given.
  24513. if test ${enable_render_d3d+y}
  24514. then :
  24515. enableval=$enable_render_d3d;
  24516. else $as_nop
  24517. enable_render_d3d=yes
  24518. fi
  24519. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24520. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24521. SUMMARY_video="${SUMMARY_video} d3d9"
  24522. fi
  24523. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24524. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24525. SUMMARY_video="${SUMMARY_video} d3d11"
  24526. fi
  24527. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24528. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24529. SUMMARY_video="${SUMMARY_video} d3d12"
  24530. fi
  24531. fi
  24532. # Set up files for the audio library
  24533. if test x$enable_audio = xyes; then
  24534. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24535. SUMMARY_audio="${SUMMARY_audio} winmm"
  24536. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24537. if test x$have_dsound = xyes; then
  24538. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24539. SUMMARY_audio="${SUMMARY_audio} directsound"
  24540. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24541. fi
  24542. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24543. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24544. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24545. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24546. fi
  24547. have_audio=yes
  24548. fi
  24549. # Set up files for the joystick library
  24550. if test x$enable_joystick = xyes; then
  24551. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24552. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24553. if test x$have_xinput = xyes; then
  24554. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24555. fi
  24556. if test x$have_wgi = xyes; then
  24557. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24558. fi
  24559. if test x$have_dinput = xyes; then
  24560. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24561. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24562. fi
  24563. fi
  24564. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24565. have_joystick=yes
  24566. fi
  24567. if test x$enable_haptic = xyes; then
  24568. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24569. if test x$have_xinput = xyes; then
  24570. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24571. fi
  24572. if test x$have_dinput = xyes; then
  24573. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24574. fi
  24575. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24576. have_haptic=yes
  24577. fi
  24578. fi
  24579. # Set up files for the sensor library
  24580. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24581. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24582. then :
  24583. have_winsensors=yes
  24584. else $as_nop
  24585. have_winsensors=no
  24586. fi
  24587. if test x$have_winsensors = xyes; then
  24588. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24589. fi
  24590. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24591. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24592. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24593. have_sensor=yes
  24594. fi
  24595. # Set up files for the power library
  24596. if test x$enable_power = xyes; then
  24597. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24598. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24599. have_power=yes
  24600. fi
  24601. # Set up files for the filesystem library
  24602. if test x$enable_filesystem = xyes; then
  24603. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24604. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24605. have_filesystem=yes
  24606. fi
  24607. # Set up files for the thread library
  24608. if test x$enable_threads = xyes; then
  24609. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24610. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24611. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24612. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24613. have_threads=yes
  24614. fi
  24615. # Set up files for the timer library
  24616. if test x$enable_timers = xyes; then
  24617. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24618. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24619. have_timers=yes
  24620. fi
  24621. # Set up files for the shared object loading library
  24622. if test x$enable_loadso = xyes; then
  24623. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24624. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24625. fi
  24626. # Set up the system libraries we need
  24627. if test -f /lib/w32api/libuuid.a; then
  24628. LIBUUID=/lib/w32api/libuuid.a
  24629. else
  24630. LIBUUID=-luuid
  24631. fi
  24632. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24633. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24634. # The Windows platform requires special setup
  24635. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24636. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24637. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24638. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24639. # Check to see if this is a mingw or cygwin build
  24640. have_mingw32=
  24641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24642. printf %s "checking for main in -lmingw32... " >&6; }
  24643. if test ${ac_cv_lib_mingw32_main+y}
  24644. then :
  24645. printf %s "(cached) " >&6
  24646. else $as_nop
  24647. ac_check_lib_save_LIBS=$LIBS
  24648. LIBS="-lmingw32 $LIBS"
  24649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24650. /* end confdefs.h. */
  24651. int
  24652. main (void)
  24653. {
  24654. return main ();
  24655. ;
  24656. return 0;
  24657. }
  24658. _ACEOF
  24659. if ac_fn_c_try_link "$LINENO"
  24660. then :
  24661. ac_cv_lib_mingw32_main=yes
  24662. else $as_nop
  24663. ac_cv_lib_mingw32_main=no
  24664. fi
  24665. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24666. conftest$ac_exeext conftest.$ac_ext
  24667. LIBS=$ac_check_lib_save_LIBS
  24668. fi
  24669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24670. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24671. if test "x$ac_cv_lib_mingw32_main" = xyes
  24672. then :
  24673. have_mingw32=yes
  24674. fi
  24675. if test x$have_mingw32 = xyes; then
  24676. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24677. else
  24678. SDL_LIBS="-lcygwin $SDL_LIBS"
  24679. fi
  24680. ;;
  24681. *-*-beos*)
  24682. as_fn_error $? "
  24683. *** BeOS support has been removed as of SDL 2.0.2.
  24684. " "$LINENO" 5
  24685. ;;
  24686. *-*-haiku*)
  24687. ARCH=haiku
  24688. ac_default_prefix=/boot/system
  24689. CheckDummyVideo
  24690. CheckOffscreenVideo
  24691. CheckDiskAudio
  24692. CheckDummyAudio
  24693. CheckDLOPEN
  24694. CheckO_CLOEXEC
  24695. CheckHaikuVideo
  24696. CheckHaikuGL
  24697. CheckPTHREAD
  24698. # Set up files for the audio library
  24699. if test x$enable_audio = xyes; then
  24700. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24701. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24702. SUMMARY_audio="${SUMMARY_audio} haiku"
  24703. have_audio=yes
  24704. fi
  24705. # Set up files for the joystick library
  24706. if test x$enable_joystick = xyes; then
  24707. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24708. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24709. have_joystick=yes
  24710. fi
  24711. # Set up files for the timer library
  24712. if test x$enable_timers = xyes; then
  24713. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24714. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24715. have_timers=yes
  24716. fi
  24717. # Set up files for the system power library
  24718. if test x$enable_power = xyes; then
  24719. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24720. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24721. have_power=yes
  24722. fi
  24723. # Set up files for the system filesystem library
  24724. if test x$enable_filesystem = xyes; then
  24725. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24726. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24727. have_filesystem=yes
  24728. fi
  24729. # Set up files for the misc library
  24730. if test x$enable_misc = xyes; then
  24731. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24732. have_misc=yes
  24733. fi
  24734. # Set up files for the locale library
  24735. if test x$enable_locale = xyes; then
  24736. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24737. have_locale=yes
  24738. fi
  24739. # The Haiku platform requires special setup.
  24740. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24741. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24742. ;;
  24743. *-ios-*)
  24744. ARCH=ios
  24745. CheckVisibilityHidden
  24746. CheckDeclarationAfterStatement
  24747. CheckDummyVideo
  24748. CheckOffscreenVideo
  24749. CheckDiskAudio
  24750. CheckDummyAudio
  24751. CheckDLOPEN
  24752. CheckO_CLOEXEC
  24753. CheckMETAL
  24754. CheckVulkan
  24755. CheckPTHREAD
  24756. # Set up files for the misc library
  24757. if test x$enable_misc = xyes; then
  24758. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24759. have_misc=yes
  24760. fi
  24761. # Set up files for the locale library
  24762. if test x$enable_locale = xyes; then
  24763. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24764. have_locale=yes
  24765. fi
  24766. # Set up files for the audio library
  24767. if test x$enable_audio = xyes; then
  24768. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24769. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24770. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24771. have_audio=yes
  24772. fi
  24773. # Set up files for the joystick library
  24774. if test x$enable_joystick = xyes; then
  24775. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24776. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24777. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24778. have_joystick=yes
  24779. else
  24780. # Need this code for accelerometer as joystick support
  24781. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24782. fi
  24783. # Set up files for the haptic library
  24784. #if test x$enable_haptic = xyes; then
  24785. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24786. # have_haptic=yes
  24787. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24788. #fi
  24789. # Set up files for the sensor library
  24790. if test x$enable_sensor = xyes; then
  24791. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24792. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24793. have_sensor=yes
  24794. fi
  24795. # Set up files for the power library
  24796. if test x$enable_power = xyes; then
  24797. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24798. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24799. have_power=yes
  24800. fi
  24801. # Set up files for the filesystem library
  24802. if test x$enable_filesystem = xyes; then
  24803. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24804. have_filesystem=yes
  24805. fi
  24806. # Set up additional files for the file library
  24807. if test x$enable_file = xyes; then
  24808. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24809. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24810. fi
  24811. # Set up files for the timer library
  24812. if test x$enable_timers = xyes; then
  24813. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24814. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24815. have_timers=yes
  24816. fi
  24817. # Set up other core UNIX files
  24818. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24819. # The iOS platform requires special setup.
  24820. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24821. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24822. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  24823. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  24824. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24825. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24826. SUMMARY_video="${SUMMARY_video} uikit"
  24827. have_video=yes
  24828. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  24829. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24830. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24831. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24832. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24833. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24834. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24835. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  24836. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  24837. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  24838. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  24839. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24840. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  24841. fi
  24842. ;;
  24843. *-*-darwin* )
  24844. # This could be either full "Mac OS X", or plain "Darwin" which is
  24845. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  24846. # Next line is broken, and a few files below require Mac OS X (full)
  24847. ARCH=macosx
  24848. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  24849. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  24850. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  24851. CheckObjectiveCARC
  24852. CheckVisibilityHidden
  24853. CheckDeclarationAfterStatement
  24854. CheckDummyVideo
  24855. CheckOffscreenVideo
  24856. CheckDiskAudio
  24857. CheckDummyAudio
  24858. CheckDLOPEN
  24859. CheckO_CLOEXEC
  24860. CheckCOCOA
  24861. CheckMETAL
  24862. CheckX11
  24863. CheckMacGL
  24864. CheckMacGLES
  24865. CheckGLX
  24866. CheckOpenGL
  24867. CheckVulkan
  24868. CheckPTHREAD
  24869. CheckHIDAPI
  24870. # Set up files for the misc library
  24871. if test x$enable_misc = xyes; then
  24872. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  24873. have_misc=yes
  24874. fi
  24875. # Set up files for the locale library
  24876. if test x$enable_locale = xyes; then
  24877. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24878. have_locale=yes
  24879. fi
  24880. # Set up files for the audio library
  24881. if test x$enable_audio = xyes; then
  24882. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24883. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24884. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  24885. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24886. have_audio=yes
  24887. fi
  24888. # Set up files for the joystick library
  24889. if test x$enable_joystick = xyes; then
  24890. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  24891. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  24892. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24893. CheckJoystickMFI
  24894. have_joystick=yes
  24895. fi
  24896. # Set up files for the haptic library
  24897. if test x$enable_haptic = xyes; then
  24898. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  24899. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24900. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24901. have_haptic=yes
  24902. fi
  24903. # Set up files for the power library
  24904. if test x$enable_power = xyes; then
  24905. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  24906. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  24907. have_power=yes
  24908. fi
  24909. # Set up files for the filesystem library
  24910. if test x$enable_filesystem = xyes; then
  24911. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24912. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24913. have_filesystem=yes
  24914. fi
  24915. # Set up files for the timer library
  24916. if test x$enable_timers = xyes; then
  24917. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24918. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24919. have_timers=yes
  24920. fi
  24921. # Set up additional files for the file library
  24922. if test x$enable_file = xyes; then
  24923. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24924. fi
  24925. # Set up other core UNIX files
  24926. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24927. # The Mac OS X platform requires special setup.
  24928. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24929. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  24930. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  24931. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  24932. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  24933. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24934. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  24935. fi
  24936. ;;
  24937. *-nacl|*-pnacl)
  24938. ARCH=nacl
  24939. CheckNativeClient
  24940. CheckDummyAudio
  24941. CheckDummyVideo
  24942. CheckOffscreenVideo
  24943. CheckInputEvents
  24944. CheckPTHREAD
  24945. CheckO_CLOEXEC
  24946. # Set up files for the timer library
  24947. if test x$enable_timers = xyes; then
  24948. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24949. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24950. have_timers=yes
  24951. fi
  24952. if test x$enable_filesystem = xyes; then
  24953. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  24954. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  24955. have_filesystem=yes
  24956. fi
  24957. ;;
  24958. *-*-emscripten* )
  24959. if test x$enable_video = xyes; then
  24960. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24961. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  24962. have_video=yes
  24963. SUMMARY_video="${SUMMARY_video} emscripten"
  24964. fi
  24965. if test x$enable_audio = xyes; then
  24966. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24967. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  24968. have_audio=yes
  24969. SUMMARY_audio="${SUMMARY_audio} emscripten"
  24970. fi
  24971. CheckVisibilityHidden
  24972. CheckDeclarationAfterStatement
  24973. CheckDummyVideo
  24974. CheckOffscreenVideo
  24975. CheckDiskAudio
  24976. CheckDummyAudio
  24977. CheckPTHREAD
  24978. CheckDLOPEN
  24979. CheckClockGettime
  24980. CheckEmscriptenGLES
  24981. # Set up files for the misc library
  24982. if test x$enable_misc = xyes; then
  24983. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  24984. have_misc=yes
  24985. fi
  24986. # Set up files for the power library
  24987. if test x$enable_power = xyes; then
  24988. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  24989. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  24990. have_power=yes
  24991. fi
  24992. # Set up files for the joystick library
  24993. if test x$enable_joystick = xyes; then
  24994. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  24995. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  24996. have_joystick=yes
  24997. fi
  24998. # Set up files for the filesystem library
  24999. if test x$enable_filesystem = xyes; then
  25000. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25001. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25002. have_filesystem=yes
  25003. fi
  25004. # Set up files for the timer library
  25005. if test x$enable_timers = xyes; then
  25006. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25007. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25008. have_timers=yes
  25009. fi
  25010. # Set up files for the locale library
  25011. if test x$enable_locale = xyes; then
  25012. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25013. have_locale=yes
  25014. fi
  25015. ;;
  25016. *-*-riscos*)
  25017. ARCH=riscos
  25018. CheckVisibilityHidden
  25019. CheckDeclarationAfterStatement
  25020. CheckDummyVideo
  25021. CheckOffscreenVideo
  25022. CheckDiskAudio
  25023. CheckDummyAudio
  25024. CheckDLOPEN
  25025. CheckO_CLOEXEC
  25026. CheckOSS
  25027. CheckPTHREAD
  25028. CheckClockGettime
  25029. # Set up files for the misc library
  25030. if test x$enable_misc = xyes; then
  25031. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25032. have_misc=yes
  25033. fi
  25034. # Set up files for the video library
  25035. if test x$enable_video = xyes; then
  25036. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25037. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25038. have_video=yes
  25039. SUMMARY_video="${SUMMARY_video} riscos"
  25040. fi
  25041. # Set up files for the filesystem library
  25042. if test x$enable_filesystem = xyes; then
  25043. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25044. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25045. have_filesystem=yes
  25046. fi
  25047. # Set up files for the timer library
  25048. if test x$enable_timers = xyes; then
  25049. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25050. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25051. have_timers=yes
  25052. fi
  25053. ;;
  25054. *-*-os2*)
  25055. ARCH=os2
  25056. if test "$build" != "$host"; then # cross-compiling
  25057. # Default cross-compile location
  25058. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25059. else
  25060. # Look for the location of the tools and install there
  25061. if test "$BUILD_PREFIX" != ""; then
  25062. ac_default_prefix=$BUILD_PREFIX
  25063. fi
  25064. fi
  25065. enable_static=no # disable static builds
  25066. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25067. CheckOS2
  25068. CheckDeclarationAfterStatement
  25069. CheckDummyVideo
  25070. CheckDiskAudio
  25071. CheckDummyAudio
  25072. CheckHIDAPI
  25073. # Set up the core platform files
  25074. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25075. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25076. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25077. fi
  25078. # Use the Unix locale APIs.
  25079. if test x$enable_locale = xyes; then
  25080. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25081. have_locale=yes
  25082. fi
  25083. # Set up files for the video library
  25084. if test x$enable_video = xyes; then
  25085. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25086. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25087. have_video=yes
  25088. SUMMARY_video="${SUMMARY_video} os/2"
  25089. fi
  25090. # Set up files for the audio library
  25091. if test x$enable_audio = xyes; then
  25092. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25093. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25094. have_audio=yes
  25095. SUMMARY_audio="${SUMMARY_audio} os/2"
  25096. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25097. fi
  25098. # Set up files for the thread library
  25099. if test x$enable_threads = xyes; then
  25100. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25101. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25102. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25103. have_threads=yes
  25104. fi
  25105. # Set up files for the timer library
  25106. if test x$enable_timers = xyes; then
  25107. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25108. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25109. have_timers=yes
  25110. fi
  25111. # Set up files for the shared object loading library
  25112. if test x$enable_loadso = xyes; then
  25113. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25114. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25115. have_loadso=yes
  25116. fi
  25117. # Set up files for the filesystem library
  25118. if test x$enable_filesystem = xyes; then
  25119. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25120. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25121. have_filesystem=yes
  25122. fi
  25123. # Set up files for the joystick library
  25124. if test x$enable_joystick = xyes; then
  25125. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25126. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25127. have_joystick=yes
  25128. fi
  25129. ;;
  25130. *)
  25131. as_fn_error $? "
  25132. *** Unsupported host: Please add to configure.ac
  25133. " "$LINENO" 5
  25134. ;;
  25135. esac
  25136. CheckVirtualJoystick
  25137. # Check whether to install sdl2-config
  25138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25139. printf %s "checking whether to install sdl2-config... " >&6; }
  25140. # Check whether --enable-sdl2-config was given.
  25141. if test ${enable_sdl2_config+y}
  25142. then :
  25143. enableval=$enable_sdl2_config; case "${enableval}" in
  25144. yes) enable_sdl2_config="TRUE" ;;
  25145. no) enable_sdl2_config="FALSE" ;;
  25146. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25147. esac
  25148. else $as_nop
  25149. enable_sdl2_config="TRUE"
  25150. fi
  25151. if test "$enable_sdl2_config" = "TRUE"; then
  25152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25153. printf "%s\n" "yes" >&6; }
  25154. else
  25155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25156. printf "%s\n" "no" >&6; }
  25157. fi
  25158. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25159. # Verify that we have all the platform specific files we need
  25160. if test x$have_audio != xyes; then
  25161. if test x$enable_audio = xyes; then
  25162. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25163. fi
  25164. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25165. fi
  25166. if test x$have_video != xyes; then
  25167. if test x$enable_video = xyes; then
  25168. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25169. fi
  25170. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25171. fi
  25172. if test x$have_misc != xyes; then
  25173. if test x$enable_misc = xyes; then
  25174. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25175. fi
  25176. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25177. fi
  25178. if test x$have_locale != xyes; then
  25179. if test x$enable_locale = xyes; then
  25180. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25181. fi
  25182. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25183. fi
  25184. if test x$have_joystick != xyes; then
  25185. if test x$enable_joystick = xyes; then
  25186. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25187. fi
  25188. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25189. fi
  25190. if test x$have_haptic != xyes; then
  25191. if test x$enable_haptic = xyes; then
  25192. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25193. fi
  25194. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25195. fi
  25196. if test x$have_sensor != xyes; then
  25197. if test x$enable_sensor = xyes; then
  25198. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25199. fi
  25200. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25201. fi
  25202. if test x$have_threads != xyes; then
  25203. if test x$enable_threads = xyes; then
  25204. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25205. fi
  25206. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25207. fi
  25208. if test x$have_timers != xyes; then
  25209. if test x$enable_timers = xyes; then
  25210. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25211. fi
  25212. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25213. fi
  25214. if test x$have_filesystem != xyes; then
  25215. if test x$enable_filesystem = xyes; then
  25216. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25217. fi
  25218. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25219. fi
  25220. if test x$have_loadso != xyes; then
  25221. if test x$enable_loadso = xyes; then
  25222. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25223. fi
  25224. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25225. fi
  25226. if test x$SDLMAIN_SOURCES = x; then
  25227. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25228. fi
  25229. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25230. if test x$video_wayland = xyes; then
  25231. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25232. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25233. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25234. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25235. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25236. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25237. echo ;\
  25238. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25239. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25240. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25241. echo ;\
  25242. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25243. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25244. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25245. echo ;\
  25246. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25247. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25248. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25249. done ;\
  25250. echo ;\
  25251. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25252. fi
  25253. OBJECTS=`echo $SOURCES`
  25254. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25255. for EXT in asm cc m c S; do
  25256. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25257. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25258. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25259. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25260. done
  25261. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25262. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25263. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25264. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25265. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25266. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25267. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25268. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25269. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25270. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25271. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25272. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25273. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25274. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25275. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25276. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25277. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25278. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25279. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25280. # Set runtime shared library paths as needed
  25281. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25282. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25283. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25285. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25286. have_enable_new_dtags=no
  25287. save_LDFLAGS="$LDFLAGS"
  25288. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25290. /* end confdefs.h. */
  25291. int
  25292. main (void)
  25293. {
  25294. ;
  25295. return 0;
  25296. }
  25297. _ACEOF
  25298. if ac_fn_c_try_link "$LINENO"
  25299. then :
  25300. have_enable_new_dtags=yes
  25301. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25302. fi
  25303. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25304. conftest$ac_exeext conftest.$ac_ext
  25305. LDFLAGS="$save_LDFLAGS"
  25306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25307. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25308. fi
  25309. if test $ARCH = solaris; then
  25310. SDL_RLD_FLAGS="-R\${libdir}"
  25311. fi
  25312. else
  25313. SDL_RLD_FLAGS=""
  25314. fi
  25315. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25316. pkg_cmakedir='$libdir/cmake/SDL2'
  25317. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25318. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25319. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25320. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25321. _lcl_receval="$_lcl_from"
  25322. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25323. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25324. _lcl_receval_old=''
  25325. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25326. _lcl_receval_old="$_lcl_receval"
  25327. eval _lcl_receval="\"$_lcl_receval\""
  25328. done
  25329. echo "$_lcl_receval")`
  25330. _lcl_receval="$_lcl_to"
  25331. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25332. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25333. _lcl_receval_old=''
  25334. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25335. _lcl_receval_old="$_lcl_receval"
  25336. eval _lcl_receval="\"$_lcl_receval\""
  25337. done
  25338. echo "$_lcl_receval")`
  25339. _lcl_notation="$_lcl_from$_lcl_to"
  25340. case ":$_lcl_from:" in
  25341. # change empty paths to '.'
  25342. ::) _lcl_from='.' ;;
  25343. # strip trailing slashes
  25344. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25345. :*:) ;;
  25346. esac
  25347. # squeeze repeated slashes
  25348. case '/' in
  25349. # if the path contains any backslashes, turn slashes into backslashes
  25350. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25351. # if the path contains slashes, also turn backslashes into slashes
  25352. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25353. esac
  25354. case ":$_lcl_to:" in
  25355. # change empty paths to '.'
  25356. ::) _lcl_to='.' ;;
  25357. # strip trailing slashes
  25358. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25359. :*:) ;;
  25360. esac
  25361. # squeeze repeated slashes
  25362. case '/' in
  25363. # if the path contains any backslashes, turn slashes into backslashes
  25364. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25365. # if the path contains slashes, also turn backslashes into slashes
  25366. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25367. esac
  25368. _lcl_common_prefix=''
  25369. _lcl_second_prefix_match=''
  25370. while test "$_lcl_second_prefix_match" != 0; do
  25371. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25372. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25373. if test "$_lcl_second_prefix_match" != 0; then
  25374. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25375. _lcl_common_prefix="$_lcl_first_prefix"
  25376. else
  25377. _lcl_second_prefix_match=0
  25378. fi
  25379. fi
  25380. done
  25381. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25382. _lcl_first_rel=''
  25383. _lcl_tmp='xxx'
  25384. while test "$_lcl_tmp" != ''; do
  25385. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25386. if test "$_lcl_first_suffix" != ''; then
  25387. _lcl_first_suffix="$_lcl_tmp"
  25388. _lcl_first_rel="../$_lcl_first_rel"
  25389. fi
  25390. done
  25391. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25392. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25393. case ":$_lcl_result_tmp:" in
  25394. # change empty paths to '.'
  25395. ::) _lcl_result_tmp='.' ;;
  25396. # strip trailing slashes
  25397. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25398. :*:) ;;
  25399. esac
  25400. # squeeze repeated slashes
  25401. case "$_lcl_notation" in
  25402. # if the path contains any backslashes, turn slashes into backslashes
  25403. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25404. # if the path contains slashes, also turn backslashes into slashes
  25405. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25406. esac
  25407. eval $_lcl_result_var='$_lcl_result_tmp'
  25408. done
  25409. if test x$enable_shared = xyes; then
  25410. PKGCONFIG_LIBS_PRIV="
  25411. Libs.private:"
  25412. ENABLE_SHARED_TRUE=
  25413. ENABLE_SHARED_FALSE="#"
  25414. else
  25415. PKGCONFIG_LIBS_PRIV=
  25416. ENABLE_SHARED_TRUE="#"
  25417. ENABLE_SHARED_FALSE=
  25418. fi
  25419. if test x$enable_static = xyes; then
  25420. ENABLE_STATIC_TRUE=
  25421. ENABLE_STATIC_FALSE="#"
  25422. else
  25423. ENABLE_STATIC_TRUE="#"
  25424. ENABLE_STATIC_FALSE=
  25425. fi
  25426. cat >Makefile.rules <<__EOF__
  25427. # Build rules for objects
  25428. -include \$(OBJECTS:.lo=.d)
  25429. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25430. $srcdir/src/SDL.c: update-revision
  25431. $DEPENDS
  25432. $VERSION_DEPENDS
  25433. $SDLMAIN_DEPENDS
  25434. $SDLTEST_DEPENDS
  25435. $WAYLAND_PROTOCOLS_DEPENDS
  25436. __EOF__
  25437. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25438. ac_config_commands="$ac_config_commands sdl2_config"
  25439. SUMMARY="SDL2 Configure Summary:\n"
  25440. if test x$enable_shared = xyes; then
  25441. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25442. fi
  25443. if test x$enable_static = xyes; then
  25444. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25445. fi
  25446. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25447. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25448. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25449. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25450. if test x$have_x = xyes; then
  25451. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25452. fi
  25453. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25454. if test x$have_joystick_virtual = xyes; then
  25455. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25456. else
  25457. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25458. fi
  25459. if test x$have_samplerate_h_hdr = xyes; then
  25460. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25461. else
  25462. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25463. fi
  25464. if test x$have_libudev_h_hdr = xyes; then
  25465. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25466. else
  25467. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25468. fi
  25469. if test x$have_dbus_dbus_h_hdr = xyes; then
  25470. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25471. else
  25472. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25473. fi
  25474. if test x$enable_ime = xyes; then
  25475. SUMMARY="${SUMMARY}Using ime : YES\n"
  25476. else
  25477. SUMMARY="${SUMMARY}Using ime : NO\n"
  25478. fi
  25479. if test x$have_ibus_ibus_h_hdr = xyes; then
  25480. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25481. else
  25482. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25483. fi
  25484. if test x$have_fcitx = xyes; then
  25485. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25486. else
  25487. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25488. fi
  25489. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25490. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25491. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25492. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25493. SUMMARY="${SUMMARY}configure script with:\n"
  25494. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25495. fi
  25496. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25497. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25498. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25499. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25500. SUMMARY="${SUMMARY}configure script with:\n"
  25501. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25502. fi
  25503. ac_config_commands="$ac_config_commands summary"
  25504. cat >confcache <<\_ACEOF
  25505. # This file is a shell script that caches the results of configure
  25506. # tests run on this system so they can be shared between configure
  25507. # scripts and configure runs, see configure's option --config-cache.
  25508. # It is not useful on other systems. If it contains results you don't
  25509. # want to keep, you may remove or edit it.
  25510. #
  25511. # config.status only pays attention to the cache file if you give it
  25512. # the --recheck option to rerun configure.
  25513. #
  25514. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25515. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25516. # following values.
  25517. _ACEOF
  25518. # The following way of writing the cache mishandles newlines in values,
  25519. # but we know of no workaround that is simple, portable, and efficient.
  25520. # So, we kill variables containing newlines.
  25521. # Ultrix sh set writes to stderr and can't be redirected directly,
  25522. # and sets the high bit in the cache file unless we assign to the vars.
  25523. (
  25524. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25525. eval ac_val=\$$ac_var
  25526. case $ac_val in #(
  25527. *${as_nl}*)
  25528. case $ac_var in #(
  25529. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25530. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25531. esac
  25532. case $ac_var in #(
  25533. _ | IFS | as_nl) ;; #(
  25534. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25535. *) { eval $ac_var=; unset $ac_var;} ;;
  25536. esac ;;
  25537. esac
  25538. done
  25539. (set) 2>&1 |
  25540. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25541. *${as_nl}ac_space=\ *)
  25542. # `set' does not quote correctly, so add quotes: double-quote
  25543. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25544. sed -n \
  25545. "s/'/'\\\\''/g;
  25546. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25547. ;; #(
  25548. *)
  25549. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25550. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25551. ;;
  25552. esac |
  25553. sort
  25554. ) |
  25555. sed '
  25556. /^ac_cv_env_/b end
  25557. t clear
  25558. :clear
  25559. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25560. t end
  25561. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25562. :end' >>confcache
  25563. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25564. if test -w "$cache_file"; then
  25565. if test "x$cache_file" != "x/dev/null"; then
  25566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25567. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25568. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25569. cat confcache >"$cache_file"
  25570. else
  25571. case $cache_file in #(
  25572. */* | ?:*)
  25573. mv -f confcache "$cache_file"$$ &&
  25574. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25575. *)
  25576. mv -f confcache "$cache_file" ;;
  25577. esac
  25578. fi
  25579. fi
  25580. else
  25581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25582. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25583. fi
  25584. fi
  25585. rm -f confcache
  25586. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25587. # Let make expand exec_prefix.
  25588. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25589. DEFS=-DHAVE_CONFIG_H
  25590. ac_libobjs=
  25591. ac_ltlibobjs=
  25592. U=
  25593. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25594. # 1. Remove the extension, and $U if already installed.
  25595. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25596. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25597. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25598. # will be set to the directory where LIBOBJS objects are built.
  25599. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25600. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25601. done
  25602. LIBOBJS=$ac_libobjs
  25603. LTLIBOBJS=$ac_ltlibobjs
  25604. : "${CONFIG_STATUS=./config.status}"
  25605. ac_write_fail=0
  25606. ac_clean_files_save=$ac_clean_files
  25607. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25609. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25610. as_write_fail=0
  25611. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25612. #! $SHELL
  25613. # Generated by $as_me.
  25614. # Run this file to recreate the current configuration.
  25615. # Compiler output produced by configure, useful for debugging
  25616. # configure, is in config.log if it exists.
  25617. debug=false
  25618. ac_cs_recheck=false
  25619. ac_cs_silent=false
  25620. SHELL=\${CONFIG_SHELL-$SHELL}
  25621. export SHELL
  25622. _ASEOF
  25623. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25624. ## -------------------- ##
  25625. ## M4sh Initialization. ##
  25626. ## -------------------- ##
  25627. # Be more Bourne compatible
  25628. DUALCASE=1; export DUALCASE # for MKS sh
  25629. as_nop=:
  25630. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25631. then :
  25632. emulate sh
  25633. NULLCMD=:
  25634. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25635. # is contrary to our usage. Disable this feature.
  25636. alias -g '${1+"$@"}'='"$@"'
  25637. setopt NO_GLOB_SUBST
  25638. else $as_nop
  25639. case `(set -o) 2>/dev/null` in #(
  25640. *posix*) :
  25641. set -o posix ;; #(
  25642. *) :
  25643. ;;
  25644. esac
  25645. fi
  25646. # Reset variables that may have inherited troublesome values from
  25647. # the environment.
  25648. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25649. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25650. # side effect of setting IFS to empty, thus disabling word splitting.)
  25651. # Quoting is to prevent editors from complaining about space-tab.
  25652. as_nl='
  25653. '
  25654. export as_nl
  25655. IFS=" "" $as_nl"
  25656. PS1='$ '
  25657. PS2='> '
  25658. PS4='+ '
  25659. # Ensure predictable behavior from utilities with locale-dependent output.
  25660. LC_ALL=C
  25661. export LC_ALL
  25662. LANGUAGE=C
  25663. export LANGUAGE
  25664. # We cannot yet rely on "unset" to work, but we need these variables
  25665. # to be unset--not just set to an empty or harmless value--now, to
  25666. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25667. # also avoids known problems related to "unset" and subshell syntax
  25668. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25669. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25670. do eval test \${$as_var+y} \
  25671. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25672. done
  25673. # Ensure that fds 0, 1, and 2 are open.
  25674. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25675. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25676. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25677. # The user is always right.
  25678. if ${PATH_SEPARATOR+false} :; then
  25679. PATH_SEPARATOR=:
  25680. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25681. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25682. PATH_SEPARATOR=';'
  25683. }
  25684. fi
  25685. # Find who we are. Look in the path if we contain no directory separator.
  25686. as_myself=
  25687. case $0 in #((
  25688. *[\\/]* ) as_myself=$0 ;;
  25689. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25690. for as_dir in $PATH
  25691. do
  25692. IFS=$as_save_IFS
  25693. case $as_dir in #(((
  25694. '') as_dir=./ ;;
  25695. */) ;;
  25696. *) as_dir=$as_dir/ ;;
  25697. esac
  25698. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25699. done
  25700. IFS=$as_save_IFS
  25701. ;;
  25702. esac
  25703. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25704. # in which case we are not to be found in the path.
  25705. if test "x$as_myself" = x; then
  25706. as_myself=$0
  25707. fi
  25708. if test ! -f "$as_myself"; then
  25709. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25710. exit 1
  25711. fi
  25712. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25713. # ----------------------------------------
  25714. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25715. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25716. # script with STATUS, using 1 if that was 0.
  25717. as_fn_error ()
  25718. {
  25719. as_status=$1; test $as_status -eq 0 && as_status=1
  25720. if test "$4"; then
  25721. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25722. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25723. fi
  25724. printf "%s\n" "$as_me: error: $2" >&2
  25725. as_fn_exit $as_status
  25726. } # as_fn_error
  25727. # as_fn_set_status STATUS
  25728. # -----------------------
  25729. # Set $? to STATUS, without forking.
  25730. as_fn_set_status ()
  25731. {
  25732. return $1
  25733. } # as_fn_set_status
  25734. # as_fn_exit STATUS
  25735. # -----------------
  25736. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25737. as_fn_exit ()
  25738. {
  25739. set +e
  25740. as_fn_set_status $1
  25741. exit $1
  25742. } # as_fn_exit
  25743. # as_fn_unset VAR
  25744. # ---------------
  25745. # Portably unset VAR.
  25746. as_fn_unset ()
  25747. {
  25748. { eval $1=; unset $1;}
  25749. }
  25750. as_unset=as_fn_unset
  25751. # as_fn_append VAR VALUE
  25752. # ----------------------
  25753. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25754. # advantage of any shell optimizations that allow amortized linear growth over
  25755. # repeated appends, instead of the typical quadratic growth present in naive
  25756. # implementations.
  25757. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  25758. then :
  25759. eval 'as_fn_append ()
  25760. {
  25761. eval $1+=\$2
  25762. }'
  25763. else $as_nop
  25764. as_fn_append ()
  25765. {
  25766. eval $1=\$$1\$2
  25767. }
  25768. fi # as_fn_append
  25769. # as_fn_arith ARG...
  25770. # ------------------
  25771. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25772. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25773. # must be portable across $(()) and expr.
  25774. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  25775. then :
  25776. eval 'as_fn_arith ()
  25777. {
  25778. as_val=$(( $* ))
  25779. }'
  25780. else $as_nop
  25781. as_fn_arith ()
  25782. {
  25783. as_val=`expr "$@" || test $? -eq 1`
  25784. }
  25785. fi # as_fn_arith
  25786. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25787. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25788. as_expr=expr
  25789. else
  25790. as_expr=false
  25791. fi
  25792. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25793. as_basename=basename
  25794. else
  25795. as_basename=false
  25796. fi
  25797. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25798. as_dirname=dirname
  25799. else
  25800. as_dirname=false
  25801. fi
  25802. as_me=`$as_basename -- "$0" ||
  25803. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25804. X"$0" : 'X\(//\)$' \| \
  25805. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25806. printf "%s\n" X/"$0" |
  25807. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25808. s//\1/
  25809. q
  25810. }
  25811. /^X\/\(\/\/\)$/{
  25812. s//\1/
  25813. q
  25814. }
  25815. /^X\/\(\/\).*/{
  25816. s//\1/
  25817. q
  25818. }
  25819. s/.*/./; q'`
  25820. # Avoid depending upon Character Ranges.
  25821. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25822. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25823. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25824. as_cr_digits='0123456789'
  25825. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25826. # Determine whether it's possible to make 'echo' print without a newline.
  25827. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  25828. # for compatibility with existing Makefiles.
  25829. ECHO_C= ECHO_N= ECHO_T=
  25830. case `echo -n x` in #(((((
  25831. -n*)
  25832. case `echo 'xy\c'` in
  25833. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25834. xy) ECHO_C='\c';;
  25835. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  25836. ECHO_T=' ';;
  25837. esac;;
  25838. *)
  25839. ECHO_N='-n';;
  25840. esac
  25841. # For backward compatibility with old third-party macros, we provide
  25842. # the shell variables $as_echo and $as_echo_n. New code should use
  25843. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  25844. as_echo='printf %s\n'
  25845. as_echo_n='printf %s'
  25846. rm -f conf$$ conf$$.exe conf$$.file
  25847. if test -d conf$$.dir; then
  25848. rm -f conf$$.dir/conf$$.file
  25849. else
  25850. rm -f conf$$.dir
  25851. mkdir conf$$.dir 2>/dev/null
  25852. fi
  25853. if (echo >conf$$.file) 2>/dev/null; then
  25854. if ln -s conf$$.file conf$$ 2>/dev/null; then
  25855. as_ln_s='ln -s'
  25856. # ... but there are two gotchas:
  25857. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  25858. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  25859. # In both cases, we have to default to `cp -pR'.
  25860. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  25861. as_ln_s='cp -pR'
  25862. elif ln conf$$.file conf$$ 2>/dev/null; then
  25863. as_ln_s=ln
  25864. else
  25865. as_ln_s='cp -pR'
  25866. fi
  25867. else
  25868. as_ln_s='cp -pR'
  25869. fi
  25870. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  25871. rmdir conf$$.dir 2>/dev/null
  25872. # as_fn_mkdir_p
  25873. # -------------
  25874. # Create "$as_dir" as a directory, including parents if necessary.
  25875. as_fn_mkdir_p ()
  25876. {
  25877. case $as_dir in #(
  25878. -*) as_dir=./$as_dir;;
  25879. esac
  25880. test -d "$as_dir" || eval $as_mkdir_p || {
  25881. as_dirs=
  25882. while :; do
  25883. case $as_dir in #(
  25884. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  25885. *) as_qdir=$as_dir;;
  25886. esac
  25887. as_dirs="'$as_qdir' $as_dirs"
  25888. as_dir=`$as_dirname -- "$as_dir" ||
  25889. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25890. X"$as_dir" : 'X\(//\)[^/]' \| \
  25891. X"$as_dir" : 'X\(//\)$' \| \
  25892. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25893. printf "%s\n" X"$as_dir" |
  25894. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25895. s//\1/
  25896. q
  25897. }
  25898. /^X\(\/\/\)[^/].*/{
  25899. s//\1/
  25900. q
  25901. }
  25902. /^X\(\/\/\)$/{
  25903. s//\1/
  25904. q
  25905. }
  25906. /^X\(\/\).*/{
  25907. s//\1/
  25908. q
  25909. }
  25910. s/.*/./; q'`
  25911. test -d "$as_dir" && break
  25912. done
  25913. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25914. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  25915. } # as_fn_mkdir_p
  25916. if mkdir -p . 2>/dev/null; then
  25917. as_mkdir_p='mkdir -p "$as_dir"'
  25918. else
  25919. test -d ./-p && rmdir ./-p
  25920. as_mkdir_p=false
  25921. fi
  25922. # as_fn_executable_p FILE
  25923. # -----------------------
  25924. # Test if FILE is an executable regular file.
  25925. as_fn_executable_p ()
  25926. {
  25927. test -f "$1" && test -x "$1"
  25928. } # as_fn_executable_p
  25929. as_test_x='test -x'
  25930. as_executable_p=as_fn_executable_p
  25931. # Sed expression to map a string onto a valid CPP name.
  25932. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  25933. # Sed expression to map a string onto a valid variable name.
  25934. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25935. exec 6>&1
  25936. ## ----------------------------------- ##
  25937. ## Main body of $CONFIG_STATUS script. ##
  25938. ## ----------------------------------- ##
  25939. _ASEOF
  25940. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  25941. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25942. # Save the log message, to keep $0 and so on meaningful, and to
  25943. # report actual input values of CONFIG_FILES etc. instead of their
  25944. # values after options handling.
  25945. ac_log="
  25946. This file was extended by $as_me, which was
  25947. generated by GNU Autoconf 2.71. Invocation command line was
  25948. CONFIG_FILES = $CONFIG_FILES
  25949. CONFIG_HEADERS = $CONFIG_HEADERS
  25950. CONFIG_LINKS = $CONFIG_LINKS
  25951. CONFIG_COMMANDS = $CONFIG_COMMANDS
  25952. $ $0 $@
  25953. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  25954. "
  25955. _ACEOF
  25956. case $ac_config_files in *"
  25957. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  25958. esac
  25959. case $ac_config_headers in *"
  25960. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  25961. esac
  25962. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25963. # Files that config.status was made for.
  25964. config_files="$ac_config_files"
  25965. config_headers="$ac_config_headers"
  25966. config_commands="$ac_config_commands"
  25967. _ACEOF
  25968. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25969. ac_cs_usage="\
  25970. \`$as_me' instantiates files and other configuration actions
  25971. from templates according to the current configuration. Unless the files
  25972. and actions are specified as TAGs, all are instantiated by default.
  25973. Usage: $0 [OPTION]... [TAG]...
  25974. -h, --help print this help, then exit
  25975. -V, --version print version number and configuration settings, then exit
  25976. --config print configuration, then exit
  25977. -q, --quiet, --silent
  25978. do not print progress messages
  25979. -d, --debug don't remove temporary files
  25980. --recheck update $as_me by reconfiguring in the same conditions
  25981. --file=FILE[:TEMPLATE]
  25982. instantiate the configuration file FILE
  25983. --header=FILE[:TEMPLATE]
  25984. instantiate the configuration header FILE
  25985. Configuration files:
  25986. $config_files
  25987. Configuration headers:
  25988. $config_headers
  25989. Configuration commands:
  25990. $config_commands
  25991. Report bugs to the package provider."
  25992. _ACEOF
  25993. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  25994. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  25995. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25996. ac_cs_config='$ac_cs_config_escaped'
  25997. ac_cs_version="\\
  25998. config.status
  25999. configured by $0, generated by GNU Autoconf 2.71,
  26000. with options \\"\$ac_cs_config\\"
  26001. Copyright (C) 2021 Free Software Foundation, Inc.
  26002. This config.status script is free software; the Free Software Foundation
  26003. gives unlimited permission to copy, distribute and modify it."
  26004. ac_pwd='$ac_pwd'
  26005. srcdir='$srcdir'
  26006. INSTALL='$INSTALL'
  26007. AWK='$AWK'
  26008. test -n "\$AWK" || AWK=awk
  26009. _ACEOF
  26010. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26011. # The default lists apply if the user does not specify any file.
  26012. ac_need_defaults=:
  26013. while test $# != 0
  26014. do
  26015. case $1 in
  26016. --*=?*)
  26017. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26018. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26019. ac_shift=:
  26020. ;;
  26021. --*=)
  26022. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26023. ac_optarg=
  26024. ac_shift=:
  26025. ;;
  26026. *)
  26027. ac_option=$1
  26028. ac_optarg=$2
  26029. ac_shift=shift
  26030. ;;
  26031. esac
  26032. case $ac_option in
  26033. # Handling of the options.
  26034. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26035. ac_cs_recheck=: ;;
  26036. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26037. printf "%s\n" "$ac_cs_version"; exit ;;
  26038. --config | --confi | --conf | --con | --co | --c )
  26039. printf "%s\n" "$ac_cs_config"; exit ;;
  26040. --debug | --debu | --deb | --de | --d | -d )
  26041. debug=: ;;
  26042. --file | --fil | --fi | --f )
  26043. $ac_shift
  26044. case $ac_optarg in
  26045. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26046. '') as_fn_error $? "missing file argument" ;;
  26047. esac
  26048. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26049. ac_need_defaults=false;;
  26050. --header | --heade | --head | --hea )
  26051. $ac_shift
  26052. case $ac_optarg in
  26053. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26054. esac
  26055. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26056. ac_need_defaults=false;;
  26057. --he | --h)
  26058. # Conflict between --help and --header
  26059. as_fn_error $? "ambiguous option: \`$1'
  26060. Try \`$0 --help' for more information.";;
  26061. --help | --hel | -h )
  26062. printf "%s\n" "$ac_cs_usage"; exit ;;
  26063. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26064. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26065. ac_cs_silent=: ;;
  26066. # This is an error.
  26067. -*) as_fn_error $? "unrecognized option: \`$1'
  26068. Try \`$0 --help' for more information." ;;
  26069. *) as_fn_append ac_config_targets " $1"
  26070. ac_need_defaults=false ;;
  26071. esac
  26072. shift
  26073. done
  26074. ac_configure_extra_args=
  26075. if $ac_cs_silent; then
  26076. exec 6>/dev/null
  26077. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26078. fi
  26079. _ACEOF
  26080. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26081. if \$ac_cs_recheck; then
  26082. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26083. shift
  26084. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26085. CONFIG_SHELL='$SHELL'
  26086. export CONFIG_SHELL
  26087. exec "\$@"
  26088. fi
  26089. _ACEOF
  26090. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26091. exec 5>>config.log
  26092. {
  26093. echo
  26094. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26095. ## Running $as_me. ##
  26096. _ASBOX
  26097. printf "%s\n" "$ac_log"
  26098. } >&5
  26099. _ACEOF
  26100. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26101. #
  26102. # INIT-COMMANDS
  26103. #
  26104. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26105. # if CDPATH is set.
  26106. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26107. sed_quote_subst='$sed_quote_subst'
  26108. double_quote_subst='$double_quote_subst'
  26109. delay_variable_subst='$delay_variable_subst'
  26110. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26111. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26112. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26113. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26114. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26115. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26116. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26117. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26118. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26119. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26120. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26121. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26122. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26123. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26124. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26125. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26126. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26127. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26128. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26129. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26130. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26131. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26132. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26133. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26134. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26135. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26136. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26137. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26138. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26139. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26140. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26141. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26142. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26143. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26144. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26145. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26146. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26147. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26148. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26149. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26150. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26151. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26152. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26153. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26154. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26155. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26156. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26157. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26158. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26159. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26160. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26161. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26162. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26163. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26164. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26165. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26166. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26167. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26168. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26169. 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"`'
  26170. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26171. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26172. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26173. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26174. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26175. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26176. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26177. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26178. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26179. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26180. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26181. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26182. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26183. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26184. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26185. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26186. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26187. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26188. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26189. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26190. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26191. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26192. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26193. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26194. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26195. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26196. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26197. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26198. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26199. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26200. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26201. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26202. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26203. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26204. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26205. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26206. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26207. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26208. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26209. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26210. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26211. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26212. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26213. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26214. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26215. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26216. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26217. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26218. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26219. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26220. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26221. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26222. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26223. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26224. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26225. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26226. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26227. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26228. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26229. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26230. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26231. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26232. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26233. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26234. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26235. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26236. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26237. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26238. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26239. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26240. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26241. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26242. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26243. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26244. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26245. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26246. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26247. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26248. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26249. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26250. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26251. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26252. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26253. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26254. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26255. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26256. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26257. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26258. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26259. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26260. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26261. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26262. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26263. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26264. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26265. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26266. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26267. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26268. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26269. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26270. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26271. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26272. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26273. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26274. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26275. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26276. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26277. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26278. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26279. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26280. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26281. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26282. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26283. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26284. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26285. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26286. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26287. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26288. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26289. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26290. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26291. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26292. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26293. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26294. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26295. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26296. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26297. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26298. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26299. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26300. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26301. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26302. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26303. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26304. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26305. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26306. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26307. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26308. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26309. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26310. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26311. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26312. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26313. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26314. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26315. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26316. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26317. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26318. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26319. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26320. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26321. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26322. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26323. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26324. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26325. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26326. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26327. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26328. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26329. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26330. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26331. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26332. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26333. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26334. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26335. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26336. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26337. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26338. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26339. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26340. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26341. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26342. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26343. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26344. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26345. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26346. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26347. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26348. LTCC='$LTCC'
  26349. LTCFLAGS='$LTCFLAGS'
  26350. compiler='$compiler_DEFAULT'
  26351. # A function that is used when there is no print builtin or printf.
  26352. func_fallback_echo ()
  26353. {
  26354. eval 'cat <<_LTECHO_EOF
  26355. \$1
  26356. _LTECHO_EOF'
  26357. }
  26358. # Quote evaled strings.
  26359. for var in AS \
  26360. DLLTOOL \
  26361. OBJDUMP \
  26362. SHELL \
  26363. ECHO \
  26364. PATH_SEPARATOR \
  26365. SED \
  26366. GREP \
  26367. EGREP \
  26368. FGREP \
  26369. LD \
  26370. NM \
  26371. LN_S \
  26372. lt_SP2NL \
  26373. lt_NL2SP \
  26374. reload_flag \
  26375. deplibs_check_method \
  26376. file_magic_cmd \
  26377. file_magic_glob \
  26378. want_nocaseglob \
  26379. sharedlib_from_linklib_cmd \
  26380. AR \
  26381. AR_FLAGS \
  26382. archiver_list_spec \
  26383. STRIP \
  26384. RANLIB \
  26385. CC \
  26386. CFLAGS \
  26387. compiler \
  26388. lt_cv_sys_global_symbol_pipe \
  26389. lt_cv_sys_global_symbol_to_cdecl \
  26390. lt_cv_sys_global_symbol_to_import \
  26391. lt_cv_sys_global_symbol_to_c_name_address \
  26392. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26393. lt_cv_nm_interface \
  26394. nm_file_list_spec \
  26395. lt_cv_truncate_bin \
  26396. lt_prog_compiler_no_builtin_flag \
  26397. lt_prog_compiler_pic \
  26398. lt_prog_compiler_wl \
  26399. lt_prog_compiler_static \
  26400. lt_cv_prog_compiler_c_o \
  26401. need_locks \
  26402. MANIFEST_TOOL \
  26403. DSYMUTIL \
  26404. NMEDIT \
  26405. LIPO \
  26406. OTOOL \
  26407. OTOOL64 \
  26408. shrext_cmds \
  26409. export_dynamic_flag_spec \
  26410. whole_archive_flag_spec \
  26411. compiler_needs_object \
  26412. with_gnu_ld \
  26413. allow_undefined_flag \
  26414. no_undefined_flag \
  26415. hardcode_libdir_flag_spec \
  26416. hardcode_libdir_separator \
  26417. exclude_expsyms \
  26418. include_expsyms \
  26419. file_list_spec \
  26420. variables_saved_for_relink \
  26421. libname_spec \
  26422. library_names_spec \
  26423. soname_spec \
  26424. install_override_mode \
  26425. finish_eval \
  26426. old_striplib \
  26427. striplib \
  26428. compiler_lib_search_dirs \
  26429. predep_objects \
  26430. postdep_objects \
  26431. predeps \
  26432. postdeps \
  26433. compiler_lib_search_path \
  26434. LD_RC \
  26435. LD_CXX \
  26436. reload_flag_RC \
  26437. reload_flag_CXX \
  26438. compiler_RC \
  26439. compiler_CXX \
  26440. lt_prog_compiler_no_builtin_flag_RC \
  26441. lt_prog_compiler_no_builtin_flag_CXX \
  26442. lt_prog_compiler_pic_RC \
  26443. lt_prog_compiler_pic_CXX \
  26444. lt_prog_compiler_wl_RC \
  26445. lt_prog_compiler_wl_CXX \
  26446. lt_prog_compiler_static_RC \
  26447. lt_prog_compiler_static_CXX \
  26448. lt_cv_prog_compiler_c_o_RC \
  26449. lt_cv_prog_compiler_c_o_CXX \
  26450. export_dynamic_flag_spec_RC \
  26451. export_dynamic_flag_spec_CXX \
  26452. whole_archive_flag_spec_RC \
  26453. whole_archive_flag_spec_CXX \
  26454. compiler_needs_object_RC \
  26455. compiler_needs_object_CXX \
  26456. with_gnu_ld_RC \
  26457. with_gnu_ld_CXX \
  26458. allow_undefined_flag_RC \
  26459. allow_undefined_flag_CXX \
  26460. no_undefined_flag_RC \
  26461. no_undefined_flag_CXX \
  26462. hardcode_libdir_flag_spec_RC \
  26463. hardcode_libdir_flag_spec_CXX \
  26464. hardcode_libdir_separator_RC \
  26465. hardcode_libdir_separator_CXX \
  26466. exclude_expsyms_RC \
  26467. exclude_expsyms_CXX \
  26468. include_expsyms_RC \
  26469. include_expsyms_CXX \
  26470. file_list_spec_RC \
  26471. file_list_spec_CXX \
  26472. compiler_lib_search_dirs_RC \
  26473. compiler_lib_search_dirs_CXX \
  26474. predep_objects_RC \
  26475. predep_objects_CXX \
  26476. postdep_objects_RC \
  26477. postdep_objects_CXX \
  26478. predeps_RC \
  26479. predeps_CXX \
  26480. postdeps_RC \
  26481. postdeps_CXX \
  26482. compiler_lib_search_path_RC \
  26483. compiler_lib_search_path_CXX; do
  26484. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26485. *[\\\\\\\`\\"\\\$]*)
  26486. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26487. ;;
  26488. *)
  26489. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26490. ;;
  26491. esac
  26492. done
  26493. # Double-quote double-evaled strings.
  26494. for var in reload_cmds \
  26495. old_postinstall_cmds \
  26496. old_postuninstall_cmds \
  26497. old_archive_cmds \
  26498. extract_expsyms_cmds \
  26499. old_archive_from_new_cmds \
  26500. old_archive_from_expsyms_cmds \
  26501. archive_cmds \
  26502. archive_expsym_cmds \
  26503. module_cmds \
  26504. module_expsym_cmds \
  26505. export_symbols_cmds \
  26506. prelink_cmds \
  26507. postlink_cmds \
  26508. postinstall_cmds \
  26509. postuninstall_cmds \
  26510. finish_cmds \
  26511. sys_lib_search_path_spec \
  26512. configure_time_dlsearch_path \
  26513. configure_time_lt_sys_library_path \
  26514. reload_cmds_RC \
  26515. reload_cmds_CXX \
  26516. old_archive_cmds_RC \
  26517. old_archive_cmds_CXX \
  26518. old_archive_from_new_cmds_RC \
  26519. old_archive_from_new_cmds_CXX \
  26520. old_archive_from_expsyms_cmds_RC \
  26521. old_archive_from_expsyms_cmds_CXX \
  26522. archive_cmds_RC \
  26523. archive_cmds_CXX \
  26524. archive_expsym_cmds_RC \
  26525. archive_expsym_cmds_CXX \
  26526. module_cmds_RC \
  26527. module_cmds_CXX \
  26528. module_expsym_cmds_RC \
  26529. module_expsym_cmds_CXX \
  26530. export_symbols_cmds_RC \
  26531. export_symbols_cmds_CXX \
  26532. prelink_cmds_RC \
  26533. prelink_cmds_CXX \
  26534. postlink_cmds_RC \
  26535. postlink_cmds_CXX; do
  26536. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26537. *[\\\\\\\`\\"\\\$]*)
  26538. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26539. ;;
  26540. *)
  26541. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26542. ;;
  26543. esac
  26544. done
  26545. ac_aux_dir='$ac_aux_dir'
  26546. # See if we are running on zsh, and set the options that allow our
  26547. # commands through without removal of \ escapes INIT.
  26548. if test -n "\${ZSH_VERSION+set}"; then
  26549. setopt NO_GLOB_SUBST
  26550. fi
  26551. PACKAGE='$PACKAGE'
  26552. VERSION='$VERSION'
  26553. RM='$RM'
  26554. ofile='$ofile'
  26555. SUMMARY="$SUMMARY"
  26556. _ACEOF
  26557. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26558. # Handling of arguments.
  26559. for ac_config_target in $ac_config_targets
  26560. do
  26561. case $ac_config_target in
  26562. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26563. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26564. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26565. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26566. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26567. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26568. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26569. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26570. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26571. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26572. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26573. esac
  26574. done
  26575. # If the user did not use the arguments to specify the items to instantiate,
  26576. # then the envvar interface is used. Set only those that are not.
  26577. # We use the long form for the default assignment because of an extremely
  26578. # bizarre bug on SunOS 4.1.3.
  26579. if $ac_need_defaults; then
  26580. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26581. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26582. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26583. fi
  26584. # Have a temporary directory for convenience. Make it in the build tree
  26585. # simply because there is no reason against having it here, and in addition,
  26586. # creating and moving files from /tmp can sometimes cause problems.
  26587. # Hook for its removal unless debugging.
  26588. # Note that there is a small window in which the directory will not be cleaned:
  26589. # after its creation but before its name has been assigned to `$tmp'.
  26590. $debug ||
  26591. {
  26592. tmp= ac_tmp=
  26593. trap 'exit_status=$?
  26594. : "${ac_tmp:=$tmp}"
  26595. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26596. ' 0
  26597. trap 'as_fn_exit 1' 1 2 13 15
  26598. }
  26599. # Create a (secure) tmp directory for tmp files.
  26600. {
  26601. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26602. test -d "$tmp"
  26603. } ||
  26604. {
  26605. tmp=./conf$$-$RANDOM
  26606. (umask 077 && mkdir "$tmp")
  26607. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26608. ac_tmp=$tmp
  26609. # Set up the scripts for CONFIG_FILES section.
  26610. # No need to generate them if there are no CONFIG_FILES.
  26611. # This happens for instance with `./config.status config.h'.
  26612. if test -n "$CONFIG_FILES"; then
  26613. ac_cr=`echo X | tr X '\015'`
  26614. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26615. # But we know of no other shell where ac_cr would be empty at this
  26616. # point, so we can use a bashism as a fallback.
  26617. if test "x$ac_cr" = x; then
  26618. eval ac_cr=\$\'\\r\'
  26619. fi
  26620. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26621. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26622. ac_cs_awk_cr='\\r'
  26623. else
  26624. ac_cs_awk_cr=$ac_cr
  26625. fi
  26626. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26627. _ACEOF
  26628. {
  26629. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26630. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26631. echo "_ACEOF"
  26632. } >conf$$subs.sh ||
  26633. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26634. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26635. ac_delim='%!_!# '
  26636. for ac_last_try in false false false false false :; do
  26637. . ./conf$$subs.sh ||
  26638. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26639. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26640. if test $ac_delim_n = $ac_delim_num; then
  26641. break
  26642. elif $ac_last_try; then
  26643. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26644. else
  26645. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26646. fi
  26647. done
  26648. rm -f conf$$subs.sh
  26649. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26650. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26651. _ACEOF
  26652. sed -n '
  26653. h
  26654. s/^/S["/; s/!.*/"]=/
  26655. p
  26656. g
  26657. s/^[^!]*!//
  26658. :repl
  26659. t repl
  26660. s/'"$ac_delim"'$//
  26661. t delim
  26662. :nl
  26663. h
  26664. s/\(.\{148\}\)..*/\1/
  26665. t more1
  26666. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26667. p
  26668. n
  26669. b repl
  26670. :more1
  26671. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26672. p
  26673. g
  26674. s/.\{148\}//
  26675. t nl
  26676. :delim
  26677. h
  26678. s/\(.\{148\}\)..*/\1/
  26679. t more2
  26680. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26681. p
  26682. b
  26683. :more2
  26684. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26685. p
  26686. g
  26687. s/.\{148\}//
  26688. t delim
  26689. ' <conf$$subs.awk | sed '
  26690. /^[^""]/{
  26691. N
  26692. s/\n//
  26693. }
  26694. ' >>$CONFIG_STATUS || ac_write_fail=1
  26695. rm -f conf$$subs.awk
  26696. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26697. _ACAWK
  26698. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26699. for (key in S) S_is_set[key] = 1
  26700. FS = ""
  26701. }
  26702. {
  26703. line = $ 0
  26704. nfields = split(line, field, "@")
  26705. substed = 0
  26706. len = length(field[1])
  26707. for (i = 2; i < nfields; i++) {
  26708. key = field[i]
  26709. keylen = length(key)
  26710. if (S_is_set[key]) {
  26711. value = S[key]
  26712. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26713. len += length(value) + length(field[++i])
  26714. substed = 1
  26715. } else
  26716. len += 1 + keylen
  26717. }
  26718. print line
  26719. }
  26720. _ACAWK
  26721. _ACEOF
  26722. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26723. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26724. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26725. else
  26726. cat
  26727. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26728. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26729. _ACEOF
  26730. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26731. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26732. # trailing colons and then remove the whole line if VPATH becomes empty
  26733. # (actually we leave an empty line to preserve line numbers).
  26734. if test "x$srcdir" = x.; then
  26735. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26736. h
  26737. s///
  26738. s/^/:/
  26739. s/[ ]*$/:/
  26740. s/:\$(srcdir):/:/g
  26741. s/:\${srcdir}:/:/g
  26742. s/:@srcdir@:/:/g
  26743. s/^:*//
  26744. s/:*$//
  26745. x
  26746. s/\(=[ ]*\).*/\1/
  26747. G
  26748. s/\n//
  26749. s/^[^=]*=[ ]*$//
  26750. }'
  26751. fi
  26752. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26753. fi # test -n "$CONFIG_FILES"
  26754. # Set up the scripts for CONFIG_HEADERS section.
  26755. # No need to generate them if there are no CONFIG_HEADERS.
  26756. # This happens for instance with `./config.status Makefile'.
  26757. if test -n "$CONFIG_HEADERS"; then
  26758. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  26759. BEGIN {
  26760. _ACEOF
  26761. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26762. # here-document in config.status, that substitutes the proper values into
  26763. # config.h.in to produce config.h.
  26764. # Create a delimiter string that does not exist in confdefs.h, to ease
  26765. # handling of long lines.
  26766. ac_delim='%!_!# '
  26767. for ac_last_try in false false :; do
  26768. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  26769. if test -z "$ac_tt"; then
  26770. break
  26771. elif $ac_last_try; then
  26772. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26773. else
  26774. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26775. fi
  26776. done
  26777. # For the awk script, D is an array of macro values keyed by name,
  26778. # likewise P contains macro parameters if any. Preserve backslash
  26779. # newline sequences.
  26780. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26781. sed -n '
  26782. s/.\{148\}/&'"$ac_delim"'/g
  26783. t rset
  26784. :rset
  26785. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26786. t def
  26787. d
  26788. :def
  26789. s/\\$//
  26790. t bsnl
  26791. s/["\\]/\\&/g
  26792. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26793. D["\1"]=" \3"/p
  26794. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26795. d
  26796. :bsnl
  26797. s/["\\]/\\&/g
  26798. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26799. D["\1"]=" \3\\\\\\n"\\/p
  26800. t cont
  26801. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26802. t cont
  26803. d
  26804. :cont
  26805. n
  26806. s/.\{148\}/&'"$ac_delim"'/g
  26807. t clear
  26808. :clear
  26809. s/\\$//
  26810. t bsnlc
  26811. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26812. d
  26813. :bsnlc
  26814. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26815. b cont
  26816. ' <confdefs.h | sed '
  26817. s/'"$ac_delim"'/"\\\
  26818. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26819. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26820. for (key in D) D_is_set[key] = 1
  26821. FS = ""
  26822. }
  26823. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26824. line = \$ 0
  26825. split(line, arg, " ")
  26826. if (arg[1] == "#") {
  26827. defundef = arg[2]
  26828. mac1 = arg[3]
  26829. } else {
  26830. defundef = substr(arg[1], 2)
  26831. mac1 = arg[2]
  26832. }
  26833. split(mac1, mac2, "(") #)
  26834. macro = mac2[1]
  26835. prefix = substr(line, 1, index(line, defundef) - 1)
  26836. if (D_is_set[macro]) {
  26837. # Preserve the white space surrounding the "#".
  26838. print prefix "define", macro P[macro] D[macro]
  26839. next
  26840. } else {
  26841. # Replace #undef with comments. This is necessary, for example,
  26842. # in the case of _POSIX_SOURCE, which is predefined and required
  26843. # on some systems where configure will not decide to define it.
  26844. if (defundef == "undef") {
  26845. print "/*", prefix defundef, macro, "*/"
  26846. next
  26847. }
  26848. }
  26849. }
  26850. { print }
  26851. _ACAWK
  26852. _ACEOF
  26853. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26854. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  26855. fi # test -n "$CONFIG_HEADERS"
  26856. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  26857. shift
  26858. for ac_tag
  26859. do
  26860. case $ac_tag in
  26861. :[FHLC]) ac_mode=$ac_tag; continue;;
  26862. esac
  26863. case $ac_mode$ac_tag in
  26864. :[FHL]*:*);;
  26865. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  26866. :[FH]-) ac_tag=-:-;;
  26867. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  26868. esac
  26869. ac_save_IFS=$IFS
  26870. IFS=:
  26871. set x $ac_tag
  26872. IFS=$ac_save_IFS
  26873. shift
  26874. ac_file=$1
  26875. shift
  26876. case $ac_mode in
  26877. :L) ac_source=$1;;
  26878. :[FH])
  26879. ac_file_inputs=
  26880. for ac_f
  26881. do
  26882. case $ac_f in
  26883. -) ac_f="$ac_tmp/stdin";;
  26884. *) # Look for the file first in the build tree, then in the source tree
  26885. # (if the path is not absolute). The absolute path cannot be DOS-style,
  26886. # because $ac_f cannot contain `:'.
  26887. test -f "$ac_f" ||
  26888. case $ac_f in
  26889. [\\/$]*) false;;
  26890. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  26891. esac ||
  26892. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  26893. esac
  26894. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  26895. as_fn_append ac_file_inputs " '$ac_f'"
  26896. done
  26897. # Let's still pretend it is `configure' which instantiates (i.e., don't
  26898. # use $as_me), people would be surprised to read:
  26899. # /* config.h. Generated by config.status. */
  26900. configure_input='Generated from '`
  26901. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  26902. `' by configure.'
  26903. if test x"$ac_file" != x-; then
  26904. configure_input="$ac_file. $configure_input"
  26905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  26906. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  26907. fi
  26908. # Neutralize special characters interpreted by sed in replacement strings.
  26909. case $configure_input in #(
  26910. *\&* | *\|* | *\\* )
  26911. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  26912. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  26913. *) ac_sed_conf_input=$configure_input;;
  26914. esac
  26915. case $ac_tag in
  26916. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  26917. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  26918. esac
  26919. ;;
  26920. esac
  26921. ac_dir=`$as_dirname -- "$ac_file" ||
  26922. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26923. X"$ac_file" : 'X\(//\)[^/]' \| \
  26924. X"$ac_file" : 'X\(//\)$' \| \
  26925. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  26926. printf "%s\n" X"$ac_file" |
  26927. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26928. s//\1/
  26929. q
  26930. }
  26931. /^X\(\/\/\)[^/].*/{
  26932. s//\1/
  26933. q
  26934. }
  26935. /^X\(\/\/\)$/{
  26936. s//\1/
  26937. q
  26938. }
  26939. /^X\(\/\).*/{
  26940. s//\1/
  26941. q
  26942. }
  26943. s/.*/./; q'`
  26944. as_dir="$ac_dir"; as_fn_mkdir_p
  26945. ac_builddir=.
  26946. case "$ac_dir" in
  26947. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26948. *)
  26949. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  26950. # A ".." for each directory in $ac_dir_suffix.
  26951. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  26952. case $ac_top_builddir_sub in
  26953. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26954. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  26955. esac ;;
  26956. esac
  26957. ac_abs_top_builddir=$ac_pwd
  26958. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  26959. # for backward compatibility:
  26960. ac_top_builddir=$ac_top_build_prefix
  26961. case $srcdir in
  26962. .) # We are building in place.
  26963. ac_srcdir=.
  26964. ac_top_srcdir=$ac_top_builddir_sub
  26965. ac_abs_top_srcdir=$ac_pwd ;;
  26966. [\\/]* | ?:[\\/]* ) # Absolute name.
  26967. ac_srcdir=$srcdir$ac_dir_suffix;
  26968. ac_top_srcdir=$srcdir
  26969. ac_abs_top_srcdir=$srcdir ;;
  26970. *) # Relative name.
  26971. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  26972. ac_top_srcdir=$ac_top_build_prefix$srcdir
  26973. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  26974. esac
  26975. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  26976. case $ac_mode in
  26977. :F)
  26978. #
  26979. # CONFIG_FILE
  26980. #
  26981. case $INSTALL in
  26982. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  26983. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  26984. esac
  26985. _ACEOF
  26986. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26987. # If the template does not know about datarootdir, expand it.
  26988. # FIXME: This hack should be removed a few years after 2.60.
  26989. ac_datarootdir_hack=; ac_datarootdir_seen=
  26990. ac_sed_dataroot='
  26991. /datarootdir/ {
  26992. p
  26993. q
  26994. }
  26995. /@datadir@/p
  26996. /@docdir@/p
  26997. /@infodir@/p
  26998. /@localedir@/p
  26999. /@mandir@/p'
  27000. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27001. *datarootdir*) ac_datarootdir_seen=yes;;
  27002. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27004. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27005. _ACEOF
  27006. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27007. ac_datarootdir_hack='
  27008. s&@datadir@&$datadir&g
  27009. s&@docdir@&$docdir&g
  27010. s&@infodir@&$infodir&g
  27011. s&@localedir@&$localedir&g
  27012. s&@mandir@&$mandir&g
  27013. s&\\\${datarootdir}&$datarootdir&g' ;;
  27014. esac
  27015. _ACEOF
  27016. # Neutralize VPATH when `$srcdir' = `.'.
  27017. # Shell code in configure.ac might set extrasub.
  27018. # FIXME: do we really want to maintain this feature?
  27019. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27020. ac_sed_extra="$ac_vpsub
  27021. $extrasub
  27022. _ACEOF
  27023. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27024. :t
  27025. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27026. s|@configure_input@|$ac_sed_conf_input|;t t
  27027. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27028. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27029. s&@srcdir@&$ac_srcdir&;t t
  27030. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27031. s&@top_srcdir@&$ac_top_srcdir&;t t
  27032. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27033. s&@builddir@&$ac_builddir&;t t
  27034. s&@abs_builddir@&$ac_abs_builddir&;t t
  27035. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27036. s&@INSTALL@&$ac_INSTALL&;t t
  27037. $ac_datarootdir_hack
  27038. "
  27039. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27040. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27041. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27042. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27043. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27044. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27046. which seems to be undefined. Please make sure it is defined" >&5
  27047. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27048. which seems to be undefined. Please make sure it is defined" >&2;}
  27049. rm -f "$ac_tmp/stdin"
  27050. case $ac_file in
  27051. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27052. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27053. esac \
  27054. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27055. ;;
  27056. :H)
  27057. #
  27058. # CONFIG_HEADER
  27059. #
  27060. if test x"$ac_file" != x-; then
  27061. {
  27062. printf "%s\n" "/* $configure_input */" >&1 \
  27063. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27064. } >"$ac_tmp/config.h" \
  27065. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27066. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27068. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27069. else
  27070. rm -f "$ac_file"
  27071. mv "$ac_tmp/config.h" "$ac_file" \
  27072. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27073. fi
  27074. else
  27075. printf "%s\n" "/* $configure_input */" >&1 \
  27076. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27077. || as_fn_error $? "could not create -" "$LINENO" 5
  27078. fi
  27079. ;;
  27080. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27081. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27082. ;;
  27083. esac
  27084. case $ac_file$ac_mode in
  27085. "libtool":C)
  27086. # See if we are running on zsh, and set the options that allow our
  27087. # commands through without removal of \ escapes.
  27088. if test -n "${ZSH_VERSION+set}"; then
  27089. setopt NO_GLOB_SUBST
  27090. fi
  27091. cfgfile=${ofile}T
  27092. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27093. $RM "$cfgfile"
  27094. cat <<_LT_EOF >> "$cfgfile"
  27095. #! $SHELL
  27096. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27097. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27098. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27099. # Provide generalized library-building support services.
  27100. # Written by Gordon Matzigkeit, 1996
  27101. # Copyright (C) 2014 Free Software Foundation, Inc.
  27102. # This is free software; see the source for copying conditions. There is NO
  27103. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27104. # GNU Libtool is free software; you can redistribute it and/or modify
  27105. # it under the terms of the GNU General Public License as published by
  27106. # the Free Software Foundation; either version 2 of of the License, or
  27107. # (at your option) any later version.
  27108. #
  27109. # As a special exception to the GNU General Public License, if you
  27110. # distribute this file as part of a program or library that is built
  27111. # using GNU Libtool, you may include this file under the same
  27112. # distribution terms that you use for the rest of that program.
  27113. #
  27114. # GNU Libtool is distributed in the hope that it will be useful, but
  27115. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27116. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27117. # GNU General Public License for more details.
  27118. #
  27119. # You should have received a copy of the GNU General Public License
  27120. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27121. # The names of the tagged configurations supported by this script.
  27122. available_tags='RC CXX '
  27123. # Configured defaults for sys_lib_dlsearch_path munging.
  27124. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27125. # ### BEGIN LIBTOOL CONFIG
  27126. # Which release of libtool.m4 was used?
  27127. macro_version=$macro_version
  27128. macro_revision=$macro_revision
  27129. # Assembler program.
  27130. AS=$lt_AS
  27131. # DLL creation program.
  27132. DLLTOOL=$lt_DLLTOOL
  27133. # Object dumper program.
  27134. OBJDUMP=$lt_OBJDUMP
  27135. # Whether or not to build shared libraries.
  27136. build_libtool_libs=$enable_shared
  27137. # Whether or not to build static libraries.
  27138. build_old_libs=$enable_static
  27139. # What type of objects to build.
  27140. pic_mode=$pic_mode
  27141. # Whether or not to optimize for fast installation.
  27142. fast_install=$enable_fast_install
  27143. # Shared archive member basename,for filename based shared library versioning on AIX.
  27144. shared_archive_member_spec=$shared_archive_member_spec
  27145. # Shell to use when invoking shell scripts.
  27146. SHELL=$lt_SHELL
  27147. # An echo program that protects backslashes.
  27148. ECHO=$lt_ECHO
  27149. # The PATH separator for the build system.
  27150. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27151. # The host system.
  27152. host_alias=$host_alias
  27153. host=$host
  27154. host_os=$host_os
  27155. # The build system.
  27156. build_alias=$build_alias
  27157. build=$build
  27158. build_os=$build_os
  27159. # A sed program that does not truncate output.
  27160. SED=$lt_SED
  27161. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27162. Xsed="\$SED -e 1s/^X//"
  27163. # A grep program that handles long lines.
  27164. GREP=$lt_GREP
  27165. # An ERE matcher.
  27166. EGREP=$lt_EGREP
  27167. # A literal string matcher.
  27168. FGREP=$lt_FGREP
  27169. # A BSD- or MS-compatible name lister.
  27170. NM=$lt_NM
  27171. # Whether we need soft or hard links.
  27172. LN_S=$lt_LN_S
  27173. # What is the maximum length of a command?
  27174. max_cmd_len=$max_cmd_len
  27175. # Object file suffix (normally "o").
  27176. objext=$ac_objext
  27177. # Executable file suffix (normally "").
  27178. exeext=$exeext
  27179. # whether the shell understands "unset".
  27180. lt_unset=$lt_unset
  27181. # turn spaces into newlines.
  27182. SP2NL=$lt_lt_SP2NL
  27183. # turn newlines into spaces.
  27184. NL2SP=$lt_lt_NL2SP
  27185. # convert \$build file names to \$host format.
  27186. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27187. # convert \$build files to toolchain format.
  27188. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27189. # Method to check whether dependent libraries are shared objects.
  27190. deplibs_check_method=$lt_deplibs_check_method
  27191. # Command to use when deplibs_check_method = "file_magic".
  27192. file_magic_cmd=$lt_file_magic_cmd
  27193. # How to find potential files when deplibs_check_method = "file_magic".
  27194. file_magic_glob=$lt_file_magic_glob
  27195. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27196. want_nocaseglob=$lt_want_nocaseglob
  27197. # Command to associate shared and link libraries.
  27198. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27199. # The archiver.
  27200. AR=$lt_AR
  27201. # Flags to create an archive.
  27202. AR_FLAGS=$lt_AR_FLAGS
  27203. # How to feed a file listing to the archiver.
  27204. archiver_list_spec=$lt_archiver_list_spec
  27205. # A symbol stripping program.
  27206. STRIP=$lt_STRIP
  27207. # Commands used to install an old-style archive.
  27208. RANLIB=$lt_RANLIB
  27209. old_postinstall_cmds=$lt_old_postinstall_cmds
  27210. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27211. # Whether to use a lock for old archive extraction.
  27212. lock_old_archive_extraction=$lock_old_archive_extraction
  27213. # A C compiler.
  27214. LTCC=$lt_CC
  27215. # LTCC compiler flags.
  27216. LTCFLAGS=$lt_CFLAGS
  27217. # Take the output of nm and produce a listing of raw symbols and C names.
  27218. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27219. # Transform the output of nm in a proper C declaration.
  27220. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27221. # Transform the output of nm into a list of symbols to manually relocate.
  27222. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27223. # Transform the output of nm in a C name address pair.
  27224. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27225. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27226. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27227. # The name lister interface.
  27228. nm_interface=$lt_lt_cv_nm_interface
  27229. # Specify filename containing input files for \$NM.
  27230. nm_file_list_spec=$lt_nm_file_list_spec
  27231. # The root where to search for dependent libraries,and where our libraries should be installed.
  27232. lt_sysroot=$lt_sysroot
  27233. # Command to truncate a binary pipe.
  27234. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27235. # The name of the directory that contains temporary libtool files.
  27236. objdir=$objdir
  27237. # Used to examine libraries when file_magic_cmd begins with "file".
  27238. MAGIC_CMD=$MAGIC_CMD
  27239. # Must we lock files when doing compilation?
  27240. need_locks=$lt_need_locks
  27241. # Manifest tool.
  27242. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27243. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27244. DSYMUTIL=$lt_DSYMUTIL
  27245. # Tool to change global to local symbols on Mac OS X.
  27246. NMEDIT=$lt_NMEDIT
  27247. # Tool to manipulate fat objects and archives on Mac OS X.
  27248. LIPO=$lt_LIPO
  27249. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27250. OTOOL=$lt_OTOOL
  27251. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27252. OTOOL64=$lt_OTOOL64
  27253. # Old archive suffix (normally "a").
  27254. libext=$libext
  27255. # Shared library suffix (normally ".so").
  27256. shrext_cmds=$lt_shrext_cmds
  27257. # The commands to extract the exported symbol list from a shared archive.
  27258. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27259. # Variables whose values should be saved in libtool wrapper scripts and
  27260. # restored at link time.
  27261. variables_saved_for_relink=$lt_variables_saved_for_relink
  27262. # Do we need the "lib" prefix for modules?
  27263. need_lib_prefix=$need_lib_prefix
  27264. # Do we need a version for libraries?
  27265. need_version=$need_version
  27266. # Library versioning type.
  27267. version_type=$version_type
  27268. # Shared library runtime path variable.
  27269. runpath_var=$runpath_var
  27270. # Shared library path variable.
  27271. shlibpath_var=$shlibpath_var
  27272. # Is shlibpath searched before the hard-coded library search path?
  27273. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27274. # Format of library name prefix.
  27275. libname_spec=$lt_libname_spec
  27276. # List of archive names. First name is the real one, the rest are links.
  27277. # The last name is the one that the linker finds with -lNAME
  27278. library_names_spec=$lt_library_names_spec
  27279. # The coded name of the library, if different from the real name.
  27280. soname_spec=$lt_soname_spec
  27281. # Permission mode override for installation of shared libraries.
  27282. install_override_mode=$lt_install_override_mode
  27283. # Command to use after installation of a shared archive.
  27284. postinstall_cmds=$lt_postinstall_cmds
  27285. # Command to use after uninstallation of a shared archive.
  27286. postuninstall_cmds=$lt_postuninstall_cmds
  27287. # Commands used to finish a libtool library installation in a directory.
  27288. finish_cmds=$lt_finish_cmds
  27289. # As "finish_cmds", except a single script fragment to be evaled but
  27290. # not shown.
  27291. finish_eval=$lt_finish_eval
  27292. # Whether we should hardcode library paths into libraries.
  27293. hardcode_into_libs=$hardcode_into_libs
  27294. # Compile-time system search path for libraries.
  27295. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27296. # Detected run-time system search path for libraries.
  27297. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27298. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27299. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27300. # Whether dlopen is supported.
  27301. dlopen_support=$enable_dlopen
  27302. # Whether dlopen of programs is supported.
  27303. dlopen_self=$enable_dlopen_self
  27304. # Whether dlopen of statically linked programs is supported.
  27305. dlopen_self_static=$enable_dlopen_self_static
  27306. # Commands to strip libraries.
  27307. old_striplib=$lt_old_striplib
  27308. striplib=$lt_striplib
  27309. # The linker used to build libraries.
  27310. LD=$lt_LD
  27311. # How to create reloadable object files.
  27312. reload_flag=$lt_reload_flag
  27313. reload_cmds=$lt_reload_cmds
  27314. # Commands used to build an old-style archive.
  27315. old_archive_cmds=$lt_old_archive_cmds
  27316. # A language specific compiler.
  27317. CC=$lt_compiler
  27318. # Is the compiler the GNU compiler?
  27319. with_gcc=$GCC
  27320. # Compiler flag to turn off builtin functions.
  27321. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27322. # Additional compiler flags for building library objects.
  27323. pic_flag=$lt_lt_prog_compiler_pic
  27324. # How to pass a linker flag through the compiler.
  27325. wl=$lt_lt_prog_compiler_wl
  27326. # Compiler flag to prevent dynamic linking.
  27327. link_static_flag=$lt_lt_prog_compiler_static
  27328. # Does compiler simultaneously support -c and -o options?
  27329. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27330. # Whether or not to add -lc for building shared libraries.
  27331. build_libtool_need_lc=$archive_cmds_need_lc
  27332. # Whether or not to disallow shared libs when runtime libs are static.
  27333. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27334. # Compiler flag to allow reflexive dlopens.
  27335. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27336. # Compiler flag to generate shared objects directly from archives.
  27337. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27338. # Whether the compiler copes with passing no objects directly.
  27339. compiler_needs_object=$lt_compiler_needs_object
  27340. # Create an old-style archive from a shared archive.
  27341. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27342. # Create a temporary old-style archive to link instead of a shared archive.
  27343. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27344. # Commands used to build a shared archive.
  27345. archive_cmds=$lt_archive_cmds
  27346. archive_expsym_cmds=$lt_archive_expsym_cmds
  27347. # Commands used to build a loadable module if different from building
  27348. # a shared archive.
  27349. module_cmds=$lt_module_cmds
  27350. module_expsym_cmds=$lt_module_expsym_cmds
  27351. # Whether we are building with GNU ld or not.
  27352. with_gnu_ld=$lt_with_gnu_ld
  27353. # Flag that allows shared libraries with undefined symbols to be built.
  27354. allow_undefined_flag=$lt_allow_undefined_flag
  27355. # Flag that enforces no undefined symbols.
  27356. no_undefined_flag=$lt_no_undefined_flag
  27357. # Flag to hardcode \$libdir into a binary during linking.
  27358. # This must work even if \$libdir does not exist
  27359. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27360. # Whether we need a single "-rpath" flag with a separated argument.
  27361. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27362. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27363. # DIR into the resulting binary.
  27364. hardcode_direct=$hardcode_direct
  27365. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27366. # DIR into the resulting binary and the resulting library dependency is
  27367. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27368. # library is relocated.
  27369. hardcode_direct_absolute=$hardcode_direct_absolute
  27370. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27371. # into the resulting binary.
  27372. hardcode_minus_L=$hardcode_minus_L
  27373. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27374. # into the resulting binary.
  27375. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27376. # Set to "yes" if building a shared library automatically hardcodes DIR
  27377. # into the library and all subsequent libraries and executables linked
  27378. # against it.
  27379. hardcode_automatic=$hardcode_automatic
  27380. # Set to yes if linker adds runtime paths of dependent libraries
  27381. # to runtime path list.
  27382. inherit_rpath=$inherit_rpath
  27383. # Whether libtool must link a program against all its dependency libraries.
  27384. link_all_deplibs=$link_all_deplibs
  27385. # Set to "yes" if exported symbols are required.
  27386. always_export_symbols=$always_export_symbols
  27387. # The commands to list exported symbols.
  27388. export_symbols_cmds=$lt_export_symbols_cmds
  27389. # Symbols that should not be listed in the preloaded symbols.
  27390. exclude_expsyms=$lt_exclude_expsyms
  27391. # Symbols that must always be exported.
  27392. include_expsyms=$lt_include_expsyms
  27393. # Commands necessary for linking programs (against libraries) with templates.
  27394. prelink_cmds=$lt_prelink_cmds
  27395. # Commands necessary for finishing linking programs.
  27396. postlink_cmds=$lt_postlink_cmds
  27397. # Specify filename containing input files.
  27398. file_list_spec=$lt_file_list_spec
  27399. # How to hardcode a shared library path into an executable.
  27400. hardcode_action=$hardcode_action
  27401. # The directories searched by this compiler when creating a shared library.
  27402. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27403. # Dependencies to place before and after the objects being linked to
  27404. # create a shared library.
  27405. predep_objects=$lt_predep_objects
  27406. postdep_objects=$lt_postdep_objects
  27407. predeps=$lt_predeps
  27408. postdeps=$lt_postdeps
  27409. # The library search path used internally by the compiler when linking
  27410. # a shared library.
  27411. compiler_lib_search_path=$lt_compiler_lib_search_path
  27412. # ### END LIBTOOL CONFIG
  27413. _LT_EOF
  27414. cat <<'_LT_EOF' >> "$cfgfile"
  27415. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27416. # func_munge_path_list VARIABLE PATH
  27417. # -----------------------------------
  27418. # VARIABLE is name of variable containing _space_ separated list of
  27419. # directories to be munged by the contents of PATH, which is string
  27420. # having a format:
  27421. # "DIR[:DIR]:"
  27422. # string "DIR[ DIR]" will be prepended to VARIABLE
  27423. # ":DIR[:DIR]"
  27424. # string "DIR[ DIR]" will be appended to VARIABLE
  27425. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27426. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27427. # "DIRA[ DIRA]" will be appended to VARIABLE
  27428. # "DIR[:DIR]"
  27429. # VARIABLE will be replaced by "DIR[ DIR]"
  27430. func_munge_path_list ()
  27431. {
  27432. case x$2 in
  27433. x)
  27434. ;;
  27435. *:)
  27436. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27437. ;;
  27438. x:*)
  27439. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27440. ;;
  27441. *::*)
  27442. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27443. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27444. ;;
  27445. *)
  27446. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27447. ;;
  27448. esac
  27449. }
  27450. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27451. func_cc_basename ()
  27452. {
  27453. for cc_temp in $*""; do
  27454. case $cc_temp in
  27455. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27456. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27457. \-*) ;;
  27458. *) break;;
  27459. esac
  27460. done
  27461. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27462. }
  27463. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27464. _LT_EOF
  27465. case $host_os in
  27466. aix3*)
  27467. cat <<\_LT_EOF >> "$cfgfile"
  27468. # AIX sometimes has problems with the GCC collect2 program. For some
  27469. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27470. # vanish in a puff of smoke.
  27471. if test set != "${COLLECT_NAMES+set}"; then
  27472. COLLECT_NAMES=
  27473. export COLLECT_NAMES
  27474. fi
  27475. _LT_EOF
  27476. ;;
  27477. esac
  27478. ltmain=$ac_aux_dir/ltmain.sh
  27479. # We use sed instead of cat because bash on DJGPP gets confused if
  27480. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27481. # text mode, it properly converts lines to CR/LF. This bash problem
  27482. # is reportedly fixed, but why not run on old versions too?
  27483. sed '$q' "$ltmain" >> "$cfgfile" \
  27484. || (rm -f "$cfgfile"; exit 1)
  27485. mv -f "$cfgfile" "$ofile" ||
  27486. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27487. chmod +x "$ofile"
  27488. cat <<_LT_EOF >> "$ofile"
  27489. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27490. # The linker used to build libraries.
  27491. LD=$lt_LD_RC
  27492. # How to create reloadable object files.
  27493. reload_flag=$lt_reload_flag_RC
  27494. reload_cmds=$lt_reload_cmds_RC
  27495. # Commands used to build an old-style archive.
  27496. old_archive_cmds=$lt_old_archive_cmds_RC
  27497. # A language specific compiler.
  27498. CC=$lt_compiler_RC
  27499. # Is the compiler the GNU compiler?
  27500. with_gcc=$GCC_RC
  27501. # Compiler flag to turn off builtin functions.
  27502. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27503. # Additional compiler flags for building library objects.
  27504. pic_flag=$lt_lt_prog_compiler_pic_RC
  27505. # How to pass a linker flag through the compiler.
  27506. wl=$lt_lt_prog_compiler_wl_RC
  27507. # Compiler flag to prevent dynamic linking.
  27508. link_static_flag=$lt_lt_prog_compiler_static_RC
  27509. # Does compiler simultaneously support -c and -o options?
  27510. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27511. # Whether or not to add -lc for building shared libraries.
  27512. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27513. # Whether or not to disallow shared libs when runtime libs are static.
  27514. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27515. # Compiler flag to allow reflexive dlopens.
  27516. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27517. # Compiler flag to generate shared objects directly from archives.
  27518. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27519. # Whether the compiler copes with passing no objects directly.
  27520. compiler_needs_object=$lt_compiler_needs_object_RC
  27521. # Create an old-style archive from a shared archive.
  27522. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27523. # Create a temporary old-style archive to link instead of a shared archive.
  27524. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27525. # Commands used to build a shared archive.
  27526. archive_cmds=$lt_archive_cmds_RC
  27527. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27528. # Commands used to build a loadable module if different from building
  27529. # a shared archive.
  27530. module_cmds=$lt_module_cmds_RC
  27531. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27532. # Whether we are building with GNU ld or not.
  27533. with_gnu_ld=$lt_with_gnu_ld_RC
  27534. # Flag that allows shared libraries with undefined symbols to be built.
  27535. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27536. # Flag that enforces no undefined symbols.
  27537. no_undefined_flag=$lt_no_undefined_flag_RC
  27538. # Flag to hardcode \$libdir into a binary during linking.
  27539. # This must work even if \$libdir does not exist
  27540. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27541. # Whether we need a single "-rpath" flag with a separated argument.
  27542. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27543. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27544. # DIR into the resulting binary.
  27545. hardcode_direct=$hardcode_direct_RC
  27546. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27547. # DIR into the resulting binary and the resulting library dependency is
  27548. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27549. # library is relocated.
  27550. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27551. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27552. # into the resulting binary.
  27553. hardcode_minus_L=$hardcode_minus_L_RC
  27554. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27555. # into the resulting binary.
  27556. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27557. # Set to "yes" if building a shared library automatically hardcodes DIR
  27558. # into the library and all subsequent libraries and executables linked
  27559. # against it.
  27560. hardcode_automatic=$hardcode_automatic_RC
  27561. # Set to yes if linker adds runtime paths of dependent libraries
  27562. # to runtime path list.
  27563. inherit_rpath=$inherit_rpath_RC
  27564. # Whether libtool must link a program against all its dependency libraries.
  27565. link_all_deplibs=$link_all_deplibs_RC
  27566. # Set to "yes" if exported symbols are required.
  27567. always_export_symbols=$always_export_symbols_RC
  27568. # The commands to list exported symbols.
  27569. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27570. # Symbols that should not be listed in the preloaded symbols.
  27571. exclude_expsyms=$lt_exclude_expsyms_RC
  27572. # Symbols that must always be exported.
  27573. include_expsyms=$lt_include_expsyms_RC
  27574. # Commands necessary for linking programs (against libraries) with templates.
  27575. prelink_cmds=$lt_prelink_cmds_RC
  27576. # Commands necessary for finishing linking programs.
  27577. postlink_cmds=$lt_postlink_cmds_RC
  27578. # Specify filename containing input files.
  27579. file_list_spec=$lt_file_list_spec_RC
  27580. # How to hardcode a shared library path into an executable.
  27581. hardcode_action=$hardcode_action_RC
  27582. # The directories searched by this compiler when creating a shared library.
  27583. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27584. # Dependencies to place before and after the objects being linked to
  27585. # create a shared library.
  27586. predep_objects=$lt_predep_objects_RC
  27587. postdep_objects=$lt_postdep_objects_RC
  27588. predeps=$lt_predeps_RC
  27589. postdeps=$lt_postdeps_RC
  27590. # The library search path used internally by the compiler when linking
  27591. # a shared library.
  27592. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27593. # ### END LIBTOOL TAG CONFIG: RC
  27594. _LT_EOF
  27595. cat <<_LT_EOF >> "$ofile"
  27596. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27597. # The linker used to build libraries.
  27598. LD=$lt_LD_CXX
  27599. # How to create reloadable object files.
  27600. reload_flag=$lt_reload_flag_CXX
  27601. reload_cmds=$lt_reload_cmds_CXX
  27602. # Commands used to build an old-style archive.
  27603. old_archive_cmds=$lt_old_archive_cmds_CXX
  27604. # A language specific compiler.
  27605. CC=$lt_compiler_CXX
  27606. # Is the compiler the GNU compiler?
  27607. with_gcc=$GCC_CXX
  27608. # Compiler flag to turn off builtin functions.
  27609. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27610. # Additional compiler flags for building library objects.
  27611. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27612. # How to pass a linker flag through the compiler.
  27613. wl=$lt_lt_prog_compiler_wl_CXX
  27614. # Compiler flag to prevent dynamic linking.
  27615. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27616. # Does compiler simultaneously support -c and -o options?
  27617. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27618. # Whether or not to add -lc for building shared libraries.
  27619. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27620. # Whether or not to disallow shared libs when runtime libs are static.
  27621. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27622. # Compiler flag to allow reflexive dlopens.
  27623. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27624. # Compiler flag to generate shared objects directly from archives.
  27625. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27626. # Whether the compiler copes with passing no objects directly.
  27627. compiler_needs_object=$lt_compiler_needs_object_CXX
  27628. # Create an old-style archive from a shared archive.
  27629. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27630. # Create a temporary old-style archive to link instead of a shared archive.
  27631. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27632. # Commands used to build a shared archive.
  27633. archive_cmds=$lt_archive_cmds_CXX
  27634. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27635. # Commands used to build a loadable module if different from building
  27636. # a shared archive.
  27637. module_cmds=$lt_module_cmds_CXX
  27638. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27639. # Whether we are building with GNU ld or not.
  27640. with_gnu_ld=$lt_with_gnu_ld_CXX
  27641. # Flag that allows shared libraries with undefined symbols to be built.
  27642. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27643. # Flag that enforces no undefined symbols.
  27644. no_undefined_flag=$lt_no_undefined_flag_CXX
  27645. # Flag to hardcode \$libdir into a binary during linking.
  27646. # This must work even if \$libdir does not exist
  27647. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27648. # Whether we need a single "-rpath" flag with a separated argument.
  27649. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27650. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27651. # DIR into the resulting binary.
  27652. hardcode_direct=$hardcode_direct_CXX
  27653. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27654. # DIR into the resulting binary and the resulting library dependency is
  27655. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27656. # library is relocated.
  27657. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27658. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27659. # into the resulting binary.
  27660. hardcode_minus_L=$hardcode_minus_L_CXX
  27661. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27662. # into the resulting binary.
  27663. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27664. # Set to "yes" if building a shared library automatically hardcodes DIR
  27665. # into the library and all subsequent libraries and executables linked
  27666. # against it.
  27667. hardcode_automatic=$hardcode_automatic_CXX
  27668. # Set to yes if linker adds runtime paths of dependent libraries
  27669. # to runtime path list.
  27670. inherit_rpath=$inherit_rpath_CXX
  27671. # Whether libtool must link a program against all its dependency libraries.
  27672. link_all_deplibs=$link_all_deplibs_CXX
  27673. # Set to "yes" if exported symbols are required.
  27674. always_export_symbols=$always_export_symbols_CXX
  27675. # The commands to list exported symbols.
  27676. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27677. # Symbols that should not be listed in the preloaded symbols.
  27678. exclude_expsyms=$lt_exclude_expsyms_CXX
  27679. # Symbols that must always be exported.
  27680. include_expsyms=$lt_include_expsyms_CXX
  27681. # Commands necessary for linking programs (against libraries) with templates.
  27682. prelink_cmds=$lt_prelink_cmds_CXX
  27683. # Commands necessary for finishing linking programs.
  27684. postlink_cmds=$lt_postlink_cmds_CXX
  27685. # Specify filename containing input files.
  27686. file_list_spec=$lt_file_list_spec_CXX
  27687. # How to hardcode a shared library path into an executable.
  27688. hardcode_action=$hardcode_action_CXX
  27689. # The directories searched by this compiler when creating a shared library.
  27690. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27691. # Dependencies to place before and after the objects being linked to
  27692. # create a shared library.
  27693. predep_objects=$lt_predep_objects_CXX
  27694. postdep_objects=$lt_postdep_objects_CXX
  27695. predeps=$lt_predeps_CXX
  27696. postdeps=$lt_postdeps_CXX
  27697. # The library search path used internally by the compiler when linking
  27698. # a shared library.
  27699. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27700. # ### END LIBTOOL TAG CONFIG: CXX
  27701. _LT_EOF
  27702. ;;
  27703. "sdl2_config":C) chmod a+x sdl2-config ;;
  27704. "summary":C) printf "$SUMMARY" ;;
  27705. esac
  27706. done # for ac_tag
  27707. as_fn_exit 0
  27708. _ACEOF
  27709. ac_clean_files=$ac_clean_files_save
  27710. test $ac_write_fail = 0 ||
  27711. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27712. # configure is writing to config.log, and then calls config.status.
  27713. # config.status does its own redirection, appending to config.log.
  27714. # Unfortunately, on DOS this fails, as config.log is still kept open
  27715. # by configure, so config.status won't be able to write to it; its
  27716. # output is simply discarded. So we exec the FD to /dev/null,
  27717. # effectively closing config.log, so it can be properly (re)opened and
  27718. # appended to by config.status. When coming back to configure, we
  27719. # need to make the FD available again.
  27720. if test "$no_create" != yes; then
  27721. ac_cs_success=:
  27722. ac_config_status_args=
  27723. test "$silent" = yes &&
  27724. ac_config_status_args="$ac_config_status_args --quiet"
  27725. exec 5>/dev/null
  27726. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27727. exec 5>>config.log
  27728. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27729. # would make configure fail if this is the last instruction.
  27730. $ac_cs_success || as_fn_exit 1
  27731. fi
  27732. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27734. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27735. fi